adding steps for calculation of EMI

EMI calculator under General math simply calculates the value, I would show the steps for the calculation. Kindly assign this to me under GSSoC.

Go ahead
Deadline 7 April,2021 11:59 PM IST


NPM not offering 1.0.0-alpha compat

For some reason I'm having to checkout master in npm to get this to work with vue 1.x

Published latest as 1.0.2

Thank you :bow:


Add icons for damage types

Some more icons in action:

I'll creata a basic Quick Reference Card to show them all off... We may need to revise the SVG paths to adjust the baseline for the icons if we want to use them.

Symbol Reference Card

Fit all damage type symbols on the reference card using footnotesize (bludgeoning is too long 🙈 )


angular.lowercase replacement error

The replacement of angular.lowercase() with String toLowerCase() in froala-sanitize.js is causing errors. The example would be line 333 where the parseEndTag(); is called.
The parseEndTag() definition looks like this:
function parseEndTag(tag, tagName) {
    var pos = 0, i;
    tagName = tagName.toLowerCase();
    if (tagName) {
        // Find the closest opened tag of the same type
        for (pos = stack.length - 1; pos >= 0; pos--) {
            if (stack[pos] === tagName) {
                break;
            }
        }
    }
...

When the parseEndTag() on line 333 is called without any parameters, the tagName.toLowerCase(); call results in an error since the tagName is undefined.
On the other hand, the old definition tagName = angular.lowercase(tagName); didn't cause any errors if the tagName was undefined.
I haven't checked other places with the replacement so I am not sure that's the only place where it happens.

Got the same problem (Version 2.8.5). I just moved the tagName = tagName.toLowerCase(); expression inside the if statement. Hopefully a new release will solve this problem 👍


[e2e] example of custom environment, with options for the run function

What does this PR do?

Draft example of custom e2e environments, with an attempt to reduce code required for a non-standard deployment. This is an experiment, requires cleaning before it can be merged.
Motivation

We are receiving requests for help setting up e2e environments with non standard setup. By standard I mean a host, an agent and a fakeintake, or a host and a agent on docker, plus the fakeintake. There is a perception of too much copy paste in the current implementation, I wonder if this is because we lack documentation for custom environments.
In the second custom run function I use self-exporting components: I will have folks requiring custom environments playing with it and gather feedback.
Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

Replaced by https://github.com/DataDog/datadog-agent/pull/24104


Add a pull request template

Suggested by @byakuren-hijiri here: https://github.com/tact-lang/tact/issues/186#issuecomment-2022786450

Fixed with #205


Components examples is not able to parse ordinal json

Swagger parser is not able to parse following examples:
components:   examples:     Things: |       {         "things": [           {             id: 1           },           {             id: 2           }         ]       }
Such scenarios are quite valid and should be handled by the library.

PR with fix was merged: https://github.com/swagger-api/swagger-parser/pull/1903


AOT compile error

Ionic-audio version:
[ X] 3.0.2
I'm submitting a ...
[ X] bug report
Current behavior:
When trying to compile with the --prod I receive the following error:
[10:59:38]  ngc started ...
[WARN] Error occurred during command execution from a CLI plugin (@ionic/cli-plugin-cordova). Your plugins may be out of date.
Error: Error encountered resolving symbol values statically. Calling function 'providers', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function,
 resolving symbol IonicAudioModule.forRoot in C:/Git/BEPapp/ionic/node_modules/ionic-audio/dist/ionic-audio.module.d.ts, resolving symbol AppModule in
C:/Git/BEPapp/ionic/src/app/app.module.ts, resolving symbol AppModule in C:/Git/BEPapp/ionic/src/app/app.module.ts

Expected behavior:
A compile with Aot
Steps to reproduce:
Execute: ionic cordova build android --prod
Regular build when executing "ionic cordova build android" succeeds.
Related code:
There probably is an issue somewhere in the implementation of the 'provides' function in the module:
export function providers(audioProvider) {
    audioProvider = audioProvider || { provide: AudioProvider, useFactory: audioProviderFactory };
    return [
        audioProvider
    ];
}

Other information:
package.json:
    "@angular/common": "4.1.2",
    "@angular/compiler": "4.1.2",
    "@angular/compiler-cli": "^4.1.2",
    "@angular/core": "4.1.2",
    "@angular/forms": "4.1.2",
    "@angular/http": "4.1.2",
    (...)
    "ionic-angular": "3.3.0",
    "ionic-audio": "^3.0.2",
    "ionic-native": "2.4.1",
    "ionicons": "3.0.0",

Related to:
#94 and #131

@thomdejong101 can you provide your app.module.ts file
Hi @thomdejong101,
Just want to see imports and providers
@NgModule({
  imports: [...],
  providers: [...]
});

me also facing the same issue please any one help me solve this friends

Error: Error encountered resolving symbol values statically. Calling function 'ɵmakeDecorator', function calls are not supported. Consider repl
acing the function or lambda with a reference to an exported function, resolving symbol Injectable in D:/anandan/ionic2App/podcast03062017/Podc
<EMAIL_ADDRESS>resolving symbol ɵf in D:/anandan/ionic2App/podcast03062017/Podcast/node_mod
<EMAIL_ADDRESS>resolving symbol ɵf in D:/anandan/ionic2App/podcast03062017/Podcast/node_modules/ionic-a
<EMAIL_ADDRESS>
and my app.module.ts
`import { NgModule, ErrorHandler } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { MyApp } from './app.component';
import { AboutPage } from '../pages/about/about';
import { ContactPage } from '../pages/contact/contact';
import { HomePage } from '../pages/home/home';
import { TabsPage } from '../pages/tabs/tabs';
import { ProfilePage } from '../pages/profile/profile';
import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
import { RecommendedPage } from '../pages/recommended/recommended';
import { RestProvider } from '../providers/rest/rest';
import { HttpModule } from '@angular/http';
import {PodcastmodalPage} from '../pages/podcastmodal/podcastmodal';
import {PersonalitymodalPage} from '../pages/personalitymodal/personalitymodal';
import {PersonalitiesPage} from '../pages/personalities/personalities';
import {EpisodemodalPage} from '../pages/episodemodal/episodemodal'
import { ArrayfilterPipe } from '../pipes/arrayfilter/arrayfilter';
import { RemovehtmltagPipe } from '../pipes/removehtmltag/removehtmltag';
import {EventsPage} from '../pages/events/events';
import {GenresPage} from '../pages/genres/genres';
import { EventsmodalPage } from '../pages/eventsmodal/eventsmodal';
import { MamaStackBlur} from '../mama-stack-blur';
import { ParallaxHeaderDirective } from '../directives/parallax-header/parallax-header';
import { IonicAudioModule } from 'ionic-audio';
import { ShareddataProvider } from '../providers/shareddata/shareddata';
import { SeperateProfilePipe } from '../pipes/seperate-profile/seperate-profile';
import { LoginPage } from '../pages/login/login';
import { CheckpodcastwlPipe } from '../pipes/checkpodcastwl/checkpodcastwl';
import { MatchclassPipe } from '../pipes/matchclass/matchclass';
import { Transfer} from '@ionic-native/transfer';
import { File } from '@ionic-native/file';
import { AndroidPermissions } from '@ionic-native/android-permissions';
@NgModule({
declarations: [
MyApp,
ContactPage,
HomePage,
TabsPage,
ProfilePage,
RecommendedPage,
PodcastmodalPage,
PersonalitymodalPage,
EpisodemodalPage,
ArrayfilterPipe,
RemovehtmltagPipe,
EventsPage,
GenresPage,
AboutPage,
EventsmodalPage,
MamaStackBlur,
ParallaxHeaderDirective,
PersonalitiesPage,
SeperateProfilePipe,
LoginPage,
CheckpodcastwlPipe,
MatchclassPipe
],
imports: [
BrowserModule,
HttpModule,
IonicModule.forRoot(MyApp, {
platform:{
android:{
activator:'none',
tabsHideOnSubPages:"true"
}
},
tabsPlacement: 'top'
}),
IonicAudioModule.forRoot()
],
bootstrap: [IonicApp],
entryComponents: [
MyApp,
ContactPage,
HomePage,
TabsPage,
ProfilePage,
RecommendedPage,
PodcastmodalPage,
PersonalitymodalPage,
EpisodemodalPage,
EventsPage,
GenresPage,
AboutPage,
EventsmodalPage,
PersonalitiesPage,
LoginPage
],
providers: [
StatusBar,
SplashScreen,
{provide: ErrorHandler, useClass: IonicErrorHandler},
RestProvider,
ShareddataProvider,
Transfer,
File,
AndroidPermissions
]
})
export class AppModule {}
`

@sfaizanh
These are my Imports and providers:
   imports: [
   	BrowserModule,
   	HttpModule,
   	IonicModule.forRoot(MyApp),
   	IonicAudioModule.forRoot(),
   ],
   providers: [{ provide: ErrorHandler, useClass: IonicErrorHandler }, DBProvider, GAProvider]

export function myCustomAudioProviderFactory() {
  return new WebAudioProvider();
}

@NgModule({
  declarations: [
    MyApp
  ],
  imports: [
    BrowserModule,
    IonicModule.forRoot(MyApp),
    IonicAudioModule.forRoot()
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp
  ],
  providers: [
    StatusBar,
    SplashScreen,
    { provide: AudioProvider, useFactory: myCustomAudioProviderFactory },
    { provide: ErrorHandler, useClass: IonicErrorHandler }
  ]
})

Add { provide: AudioProvider, useFactory: myCustomAudioProviderFactory } in providers and add
export function myCustomAudioProviderFactory() {
  return new WebAudioProvider();
}

before @NgModule

where  i add this @sfaizanh  in my app module or ionic-audio plugin module

@ANANDAN0693
export function myCustomAudioProviderFactory() {
  return new WebAudioProvider();
}

@NgModule({
  providers: [
    ....
    { provide: AudioProvider, useFactory: myCustomAudioProviderFactory }
  ]
})

see this my app.module
import { NgModule, ErrorHandler } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { MyApp } from './app.component';
import { AboutPage } from '../pages/about/about';
import { ContactPage } from '../pages/contact/contact';
import { HomePage } from '../pages/home/home';
import { TabsPage } from '../pages/tabs/tabs';
import { ProfilePage } from '../pages/profile/profile';
import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
import { RecommendedPage } from '../pages/recommended/recommended';
import { RestProvider } from '../providers/rest/rest';
import { HttpModule } from '@angular/http';
import {PodcastmodalPage} from '../pages/podcastmodal/podcastmodal';
import {PersonalitymodalPage} from '../pages/personalitymodal/personalitymodal';
import {PersonalitiesPage} from '../pages/personalities/personalities';
import {EpisodemodalPage} from '../pages/episodemodal/episodemodal'
import { ArrayfilterPipe } from '../pipes/arrayfilter/arrayfilter';
import { RemovehtmltagPipe } from '../pipes/removehtmltag/removehtmltag';
import {EventsPage} from '../pages/events/events';
import {GenresPage} from '../pages/genres/genres';
import { EventsmodalPage } from '../pages/eventsmodal/eventsmodal';
import { MamaStackBlur} from '../mama-stack-blur';
import { ParallaxHeaderDirective } from '../directives/parallax-header/parallax-header';
import { IonicAudioModule,AudioProvider,WebAudioProvider } from 'ionic-audio';
import { ShareddataProvider } from '../providers/shareddata/shareddata';
import { SeperateProfilePipe } from '../pipes/seperate-profile/seperate-profile';
import { LoginPage } from '../pages/login/login';
import { CheckpodcastwlPipe } from '../pipes/checkpodcastwl/checkpodcastwl';
import { MatchclassPipe } from '../pipes/matchclass/matchclass';
import { Transfer} from '@ionic-native/transfer';
import { File } from '@ionic-native/file';
import { AndroidPermissions } from '@ionic-native/android-permissions';

export function myCustomAudioProviderFactory() {
  return new WebAudioProvider();
}

@NgModule({
  declarations: [
    MyApp,
    ContactPage,
    HomePage,
    TabsPage,
    ProfilePage,
    RecommendedPage,
    PodcastmodalPage,
    PersonalitymodalPage,
    EpisodemodalPage,
    ArrayfilterPipe,
    RemovehtmltagPipe,
    EventsPage,
    GenresPage,
    AboutPage,
    EventsmodalPage,
    MamaStackBlur,
    ParallaxHeaderDirective,
    PersonalitiesPage,
    SeperateProfilePipe,
    LoginPage,
    CheckpodcastwlPipe,
    MatchclassPipe
  ],
  imports: [
    BrowserModule,
    HttpModule,
    IonicModule.forRoot(MyApp, {
      platform:{
        android:{
          activator:'none',
          tabsHideOnSubPages:"true"
        }
      },
      tabsPlacement: 'top'
    }),
    IonicAudioModule.forRoot()
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    ContactPage,
    HomePage,
    TabsPage,
    ProfilePage,
    RecommendedPage,
    PodcastmodalPage,
    PersonalitymodalPage,
    EpisodemodalPage,
    EventsPage,
    GenresPage,
    AboutPage,
    EventsmodalPage,
    PersonalitiesPage,
    LoginPage
  ],
  providers: [
    StatusBar,
    SplashScreen,
    {provide: ErrorHandler, useClass: IonicErrorHandler},
     { provide: AudioProvider, useFactory: myCustomAudioProviderFactory },
    RestProvider,
    ShareddataProvider,
    Transfer,
    File,
    AndroidPermissions
  ]
})
export class AppModule {}

Can you provide the error and in Terminal ionic info and paste here

global packages:
@ionic/cli-utils : 1.4.0
Cordova CLI      : 7.0.1
Ionic CLI        : 3.4.0

local packages:
@ionic/app-scripts              : 1.3.7
@ionic/cli-plugin-cordova       : 1.4.0
@ionic/cli-plugin-ionic-angular : 1.3.1
Cordova Platforms               : android 6.2.3
Ionic Framework                 : ionic-angular 3.3.0

System:
Node       : v6.9.4
OS         : Windows 8.1
Xcode      : not installed
ios-deploy : not installed
ios-sim    : not installed
npm        : 3.10.10

@sfaizanh
I have added the function and provider as you said. The error, however, does not change.
Note however that my error is different from the error of ANANDAN0693. His error is about the makedecorator where mine is about the providers function.
Error: Error encountered resolving symbol values statically. Calling function 'providers', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol IonicAudioModule.forRoot in C:/Git/BEPapp/ionic/node_modules/ionic-audio/dist/ionic-audio.module.d.ts, resolving symbol AppModule in C:/Git/BEPapp/ionic/src/app/app.module.ts, resolving symbol AppModule in C:/Git/BEPapp/ionic/src/app/app.module.ts
Below is my Ionic info
global packages:

    @ionic/cli-utils : 1.4.0
    Cordova CLI      : 6.5.0
    Ionic CLI        : 3.4.0

local packages:

    @ionic/app-scripts              : 1.3.7
    @ionic/cli-plugin-cordova       : 1.4.0
    @ionic/cli-plugin-ionic-angular : 1.3.1
    Cordova Platforms               : android 6.1.2 browser 4.1.0
    Ionic Framework                 : ionic-angular 3.3.0

System:

    Node       : v6.10.0
    OS         : Windows 10
    Xcode      : not installed
    ios-deploy : not installed
    ios-sim    : not installed
    npm        : 4.5.0

YES @thomdejong101  my issue differ from your issue now my issues is fixed by removing node-module folder from ionic-audio

Check node_modules/ionic-audio contain node_modules directory ? if exists then remove it as @ANANDAN0693 says

@sfaizanh As can be seen in this screenshot there is no node_modules map in the ionic-audio folder.

@ANANDAN0693 @sfaizanh @thomdejong101
For some reason I cannot explain this keeps appearing. I see it now too. It is really a pain when there is no documentation out there and we have to find the cause on a trial and error basis.

OK, it looks like I have been able to fix it in version 3.0.4. The way to go was to pass a factory function as a parameter to the IonicAudioModule.forRoot() method. I updated the demo project. I look forward to your feedback!

@arielfaur
Thank you for the update it works for me now. I pass in a null object which resolves correctly. Please dont forget to update the documentation on https://arielfaur.github.io/ionic-audio/2.0/index.html.

@thomdejong101 Are you sure it works with a null object? The module requires a factory function to determine which audio provider to use.

@arielfaur I just checked my solution. I was working because I still had the provider declared as mentioned earlier in this thread.
{ provide: AudioProvider, useFactory: myCustomAudioProviderFactory },
After removing this passing in null did crash the app but only after the build succeeded. I have replaced it with the myCustomAudioProviderFactory provided earlier. I do also receive multiple warnings when building on missing parameters.
Warning: Can't resolve all parameters for WebAudioTrack in C:/Git/BEPapp/ionic/node_modules/ionic-audio/dist/ionic-audio-web-track.d.ts: (?, ?). This will become an error in Angular v5.x
Warning: Can't resolve all parameters for CordovaAudioTrack in C:/Git/BEPapp/ionic/node_modules/ionic-audio/dist/ionic-audio-cordova-track.d.ts: (?). This will become an error in Angular v5.x

But the issue seems resolved so thank you.

Thanks @thomdejong101
Yes, I am aware of those warnings. I have time until the next big Angular release 😄
So the right way to initialize Ionic Audio is by passing a factory function. It is the only way I could make AOT work. At least Angular puts together a document explaining how to properly write modules for AOT, one day...hopefully 😃


Edit the README.md file

I need to edit the README.md file by writing the readme for my page.

Updated the README.md file.


cblas_dgemm crashed!

I cmake the OpenBlas，then include the "lapack-netlib\CBLAS\include" in my project and link the "lib\RELEASE\openblas.lib" and "lib\DEBUG\openblas.lib" to my project.Then i run my project, when it run the  "cblas_dgemm", it crashed! Then what should i do ? then OpenMp is default!

Then what should i do ?

Learn how to write a bug report.
In all seriousness, please include information such as:

What is your build environment? (OS, OS version, 32 bit or 64 bit, compiler, compiler version, type of CPU in the computer used for compiling)
What is your build target? (by default it is same as the machine you are using for compiling, if you have changed that or cross-compiling you should say that)
What version of OpenBLAS are you trying to build? (current git, 0.3.6 or something ancient like 0.2.2?)
How did it crash? What messages were given when it crashed?

Can you get exception code from event log or better backtrace while having x64dbg as jit debuger?
Also call you make to blas library (also seen in great deal in backtrace) will help on repeating the issue.

Rewording to your format : next you do following : install x64dbg , configure as JIT debugger, repeat the crash, and debug it.

It is usually better to include the *.h files that a make install produces in the final location, rather than the header files from the source directories directly. At the very least, you would need to copy the "cblas_mangling_with_flags.h.in" to its final name "cblas_mangling.h" to that cblas.h can include it) And as the others wrote, which version of OpenBLAS,  which cpu ?

If you are on 64bit Windows, you could also try the zip archive I put in #805

Thank you!My version is vs2019, windows10, x64. the new code of Openblas. Let have a try!

Please generate some picture of what happened.
What you say so far does not get far from initial statement of 'it does not work'
Namely :
Exception type
Any backtrace
Does same code work with mkl or reference BLAS?

I use the xianyi/OpenBLAS#805 openblas036-win64.zip, myproject works normally. I do not know why? I do not know how to user mkl，i install mkl，but don't know which file and *.lib should add to my project?

regarding MKL - google for "mkl link line advisor"
You mean "crashing" like windows debugger/crash reporter pops up or plainly some other error is displayed and everything stops?

You could also just check if it still works when you use the lib that you built yourself, but take the includes from the openblas036-win64.zip. Most likely the problem was just that you took the unmodified cblas.h template from lapack-netlib\CBLAS\include. (It is probably not necessary to try your code with mkl or the reference BLAS from netlib now that it works, unless you want to learn about them)

You could also just check if it still works when you use the lib that you built yourself, but take the includes from the openblas036-win64.zip. Most likely the problem was just that you took the unmodified cblas.h template from lapack-netlib\CBLAS\include. (It is probably not necessary to try your code with mkl or the reference BLAS from netlib now that it works, unless you want to learn about them)

Thank you! I test it, with my cmake lib and includes from the openblas036-win64.zip, it is also crashed!

This is my crashed snapshot!

Please generate some picture of what happened.
What you say so far does not get far from initial statement of 'it does not work'
Namely :
Exception type
Any backtrace
Does same code work with mkl or reference BLAS?
Linyx in a VM?
It crashed, as below snapshot!

Can you set breakpoint before cblas_dgemm to distingquish if enqueue fails or the blas call itself.
(c0...05 means memory protection violation, like access outside allocated memory.)

I can set breakpoint before cblas_dgemm , and i look at very variable value, they are normal, so how i should do to distingquish if enqueue fails or the blas call itself? Others, the same as #805 openblas036-win64.zip is woks, so i gues the blas call itself.

I do not think debugging the crash will produce any useful information - it looks like something went wrong with the compilation of OpenBLAS by Visual Studio. Did you follow the suggestions in the wiki,
https://github.com/xianyi/OpenBLAS/wiki/How-to-use-OpenBLAS-in-Microsoft-Visual-Studio ? (These were written from user reports, so maybe they are not quite up to date - the library in the zip was cross-compiled on Linux)

These were written from user reports,

I added one paragraph recently that gets asked often...

can set breakpoint before cblas_dgemm

You can dump call parameters there - then look back if arrays were of right size(s) ?
Also you should check memory map of what exctly was memory cell generating exception, usually something like hitting guard page after allocation, but can be something random - usually the area allocared (and maybe freed) right before is one that was mis-referenced.
Any better with MKL - in this case OpenBLAS has a bug .
(But if you can make minimal repeater, like arbitrary sized marices of zeroes clashing, it is much easier for us to try in other places)

I only think it went wrong with the compilation of OpenBLAS by Visual Studio. Because the #805 openblas036-win64.zip woks, but it compile under linux by cross compile. You can look forward this direction to find problem!

OK, thats in part good news.
We dont have so much windows. Could you try recording logs from the way you built OpenBLAS?
Other ways to build under windows (tell if any works without too much customisation):

Clang-cl
MinGW but setting HOSTCC to gcc, and CC/FC to full cross-compiler name, then following by cv2pdb
A linux vm or ubuntu subsystem v2

I only think it went wrong with the compilation of OpenBLAS by Visual Studio. Because the #805 openblas036-win64.zip woks, but it compile under linux by cross compile. You can look forward this direction to find problem!

OK, thats in part good news.
We dont have so much windows. Could you try recording logs from the way you built OpenBLAS?
Other ways to build under windows (tell if any works without too much customisation):
* Clang-cl

* MinGW but setting HOSTCC to gcc, and CC/FC to full cross-compiler name, then following by cv2pdb

* A linux vm or ubuntu subsystem v2

my cmake version is 3.15.0, vs2019 preview(x64), windows 10 x64.

Then i configure it, it tip many info, test is below,  such as :
CMake Warning at CMakeLists.txt:64 (message):
CMake support is experimental.  It does not yet support all build options
and may not produce the same Makefiles that OpenBLAS ships with.
GEMM multithread threshold set to 4.
Multi-threading enabled with 4 threads.
CMake Deprecation Warning at C:/Program Files/CMake/share/cmake-3.15/Modules/CMakeForceCompiler.cmake:103 (message):
The CMAKE_FORCE_Fortran_COMPILER macro is deprecated.  Instead just set
CMAKE_Fortran_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
cmake/f_check.cmake:27 (CMAKE_FORCE_Fortran_COMPILER)
cmake/prebuild.cmake:87 (include)
cmake/system.cmake:157 (include)
CMakeLists.txt:67 (include)
CMake Warning (dev) at cmake/prebuild.cmake:306 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
details.  Use the cmake_policy command to set the policy and suppress this
warning.
Quoted variables like "MSVC" will no longer be dereferenced when the policy
is set to NEW.  Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
cmake/system.cmake:157 (include)
CMakeLists.txt:67 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.
MSVC
Running getarch
GETARCH results:
CORE=generic
LIBCORE=generic
NUM_CORES=4
GENERIC=1
L1_DATA_SIZE=32768
L1_DATA_LINESIZE=128
L2_SIZE=512488
L2_LINESIZE=128
DTB_DEFAULT_ENTRIES=128
DTB_SIZE=4096
L2_ASSOCIATIVE=8
MAKE += -j 4
Compiling a 64-bit binary.
Building Single Precision
Building Double Precision
Building Complex Precision
Building Double Complex Precision
Reading vars from I:/OpenBLAS/OpenBLAS-develop/kernel/x86_64/KERNEL...
Reading vars from I:/OpenBLAS/OpenBLAS-develop/kernel/x86_64/KERNEL.generic...
CMake Warning (dev) at kernel/CMakeLists.txt:125 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
details.  Use the cmake_policy command to set the policy and suppress this
warning.
Quoted variables like "GENERIC" will no longer be dereferenced when the
policy is set to NEW.  Since the policy is not set the OLD behavior will be
used.
Call Stack (most recent call first):
kernel/CMakeLists.txt:547 (build_core)
This warning is for project developers.  Use -Wno-dev to suppress it.
CMake Warning (dev) at utest/CMakeLists.txt:4 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
details.  Use the cmake_policy command to set the policy and suppress this
warning.
Quoted variables like "MSVC" will no longer be dereferenced when the policy
is set to NEW.  Since the policy is not set the OLD behavior will be used.
This warning is for project developers.  Use -Wno-dev to suppress it.
Generating openblas_config.h in include/openblas
Generating f77blas.h in include/openblas
Generating cblas.h in include/openblas
Configuring done

Can you post a picture of cpu-z?
It looks like your CPU is not (yet/ by time of v0.3.6) detected by OpenBLAS. It should not be broken, but it is better properly added to OpenBLAS.
Policy warnings are OK - We support old versions (think what is available on 10 years old commercially supported enterprise Linux), no defects in whole log shown.

The problem here is simply that Visual Studio does not understand the dialect of assembler instructions we use in the optimized BLAS kernels (OpenBLAS has old "AT&T" syntax, common on Unix and used by the GNU tools, Microsoft expects "Intel" syntax - different order of operands, some different instructions). So with VS alone, you will only get the "generic" version of OpenBLAS functions written in C - a bit faster than the old reference BLAS, but much slower than the cpu-specific assembler versions.
(This is why the build instructions in the wiki suggest to install either clang or minwg compiler to build OpenBLAS.)
Now either there is a bug in the "generic" dgemm kernel (which has not been touched in years, I think) or VS2019 mis-compiles it. This certainly needs looking into, but you are much better off using the library from the zip file anyway.

Can you post a picture of cpu-z?
It looks like your CPU is not (yet/ by time of v0.3.6) detected by OpenBLAS. It should not be broken, but it is better properly added to OpenBLAS.
Policy warnings are OK - We support old versions (think what is available on 10 years old commercially supported enterprise Linux), no defects in whole log shown.

I wanted stepping numbers from CPU-Z to drill through cpuid_x86.c ;-)
Can you confirm this one https://valid.x86.fr/cache/screenshot/s0hgmn.png ?

@brada4 the cpuid really plays no role here (and i5-7500 should be detected alright) - on Windows with just the VS compiler, getarch is called (by prebuild.cmake) with -DFORCE_GENERIC to prevent the compiler from stumbling into assembly code that it cannot handle anyway.

I wanted stepping numbers from CPU-Z to drill through cpuid_x86.c ;-)
Can you confirm this one https://valid.x86.fr/cache/screenshot/s0hgmn.png ?
This is my cpu-z snapshot:

Martin already explained, your compiler is limited, not cpu at fault

Martin already explained, your compiler is limited, not cpu at fault

So the cmaked openblas is disabled  by vs. To use openblas in windows must compile it with clang and mingw cross compile?

Martin already explained, your compiler is limited, not cpu at fault

So the cmaked openblas is disabled by vs. To use openblas in windows must compile it with clang and mingw cross compile?


data argument to event of 'beforeSend.ic' is not useful

The beforeSend.ic documentation states:

Triggered before sending an intercooler AJAX request to the server. The second argument to the event is the data hash, and can be added or removed from to change the values sent to the server.

This wording is a little unclear, there's two ways to interpret it:

The 'data hash' is the data argument passed to the event callback (which is actually the 3rd argument)
The 'data hash' is the data property on the evt argument.

In either case, I get something that isn't very useful. The data argument is the post-encoded string that will go on the wire in the ajax request. The data property of the evt argument is undefined.
I would really like to have access to an object that represents all the fields in a form so that I can arbitrarily manipulate it before it gets encoded and sent to the server (as the documentation alludes to about changing values sent to the server).

Example: https://jsfiddle.net/coh62127/2/

I see in the code that we either construct a FormData or just a string and then manually append fields. An object with key/value pairs could instead be created, the trouble is how to grab the existing fields from a parent form. Currently this is via a call to closestForm.serialize(). Perhaps a call to closestForm.serializeArray() would achieve what I'm looking for?

I came across this today and had the same difficulties with the documentation as @flaub. I was hoping to remove one of the values in the data object before it gets sent to the server but I didn't see a straight forward way like the documentation mentions.

I have put up an example of how to modify intercooler requests client side:
http://intercoolerjs.org/examples/modifying_requests.html


Add settings to generate only required fields with SampleJsonDataGenerator

Currently, SampleJsonDataGenerator will generate all properties, regardless of whether they are required by the schema. Sometimes it can be useful to generate only the required fields, for example to generate minimum viable examples.
This PR adds settings that control the generation of required fields without changing the default behavior.

Thanks for the PR.
However I currently cannot release a new version as there are already breaking changes in master and I'm working on v11.
Hopefully in the next weeks (there is a preview package however).

Is this ready?

That is fine, I will use my fork in the meantime and switch to the official package once it's released.
Yes, from my side, this is ready. Thanks for the quick review


Add certificates deduplication feature

This PR is related to the issue de-duplicate CA from the trust bundle #155
It add feature of certificates de-duplication, meaning to exclude certificates which were already added to a certificates bundle, thus save memory.

/retest

/retest

/lgtm /cc @SgtCoDFish
Thanks @arsenalzp! With this new certPool type I think this can be improved even further in a follow-up PR.
Maybe you can rebase and squash commits?

It was done.

/retest
/lgtm

/lgtm /approve
Thanks so much @arsenalzp (and @erikgb for reviewing)! 😁

Thank you for your assistance!


cabana: support editing dbc files without a stream

Support launching Cabana without connecting to a stream (Click 'cancel' button in the open stream dialog). cabana will function as a DBC file editor in this case:

add "Close Stream" to file menu. you can open/close a stream at any time. Cabana will switch to edit mode after closing the stream:

video:
Kazam_screencast_00117.webm

improve & cleanup MessageListModel::matchMessage

this broke filtering @deanlee

fixed


Alternative model download website

Can any of you guys please provide the model weights in a site for non-chinese speakers? ;-) pan.baidu is impossible for me to use.

HI Can you upload the pretrained model in google drive/drop box please?

Apparently baidu now requires a login to download those files, so those browser extensions no longer work without an account. But I've found this tip on Quora explaining how to create one if your not in China: https://www.quora.com/How-do-I-sign-up-for-Baidu-without-a-Chinese-telephone-number
The chrome web translator helps a lot in the process.
With the user created I've used the baidu-dl chrome extension to get the link and download.
If the original code author authorizes I can upload it to another website and share with everyone, just let me know.

Hei, I took the liberty to upload it on a public repo, right here: https://github.com/gfickel/advanced_east_weights
If the original author have any problem, just let me know. I will take it down without a problem.

hi @gfickel It's too hard to follow the instructions here. Can you upload tianchi ICPR dataset  in google drive/drop box please?Thank you.

@gustavofuhr @vinayakkailas Did you got any solution?
I am also unable to get dataset and understand model part

http://<IP_ADDRESS>/east_model_weights_3T736.zip
http://<IP_ADDRESS>/ICPR_text_train_part2_20180313.zip
http://<IP_ADDRESS>/[update] ICPR_text_train_part1_20180316.zip
Please mirror to google drive if you can, I won't keep these files hosted permanently


Remove unnecessary parameter current_app

Deprecated in Django 1.8. It's already set with:
request.current_app = self.admin_site.name

This PR removes the warning:

RemovedInDjango110Warning: The current_app argument of render is deprecated. Set the current_app attribute of request instead.

Sorry @arnlaugsson, as you can see it's still necessary because we still support 1.6 and 1.7. If you can find a clean way to resolve the warning without removing the backward compatibility, I'm open to it. You could also look into silencing the warning, if you're just trying to cleanup your project's test output.

Thanks - yeah, I saw the same when I ran in on older Django versions. I'll close for now at least.


Suggestion: Generic tagging items

Where the tag can be anything, and you can filter by tags (single or multiple)

Could you provide some more detail about this. I'm not seeing much difference from the existing categories and I want to know what you're thinking of.

@captainwasabi I'd like some more details here so I can understand what you have in mind.

I think he wants to assign multiple keywords to items, so item "New Logo" can be in category "web design" and also "outsourced tasks".
I'd like to see this feature too, for users too (so one task can have more than 1 owner)

See #214


chore: create library adapter, make library model api agnostic

Summary
This refactors LibraryDataProvider in preparation for getting things working with iom/com connections. Here's the general architecture changes made as part of this pr:

The concept of a LibraryAdapter has been introduced along with RestLibraryAdapter. LibraryAdapter is an interface that is used by LibraryModel to manage library/table data
LibraryAdapterFactory has been added to create LibraryAdapters. At the moment, this always creates a RestLibraryAdapter, but will eventually create a ItcLibraryAdapter
LibraryModels functionality has been limited to: working with the file system, paginating api requests, and further processing library adapter results for easier consumption by LibraryDataProvider

Testing

[x] Tested deleting a library
[x] Tested refreshing libraries
[x] Tested viewing multiple tables
[x] Tested drag and drop with table
[x] Tested exporting table as CSV

@Zhirong2022 do you mind testing? This PR didn't add any new features but refactored how we handle libraries/tables. We'll just need to make sure no regressions were introduced.

No regression issues.


Align generated code output for tests

All output is now written to codegen/tests/<sysl package>.
Simplifies make by giving all generated output a common base.
Test cases can reuse generated code from other test cases. For example,
a gRPC server  calling a rest endpoint.
The hand-crafted callback can also be reused across tests.
Fixes #47

seeing a couple of missing imports for test

My environment must be fixing those automatically... I assume it must be goimports. I'll see if gofmt will make it compilable without import automagic.

codegen/tests/simplegrpc/grpc_handler.go is missing github.com/anz-bank/sysl-go/codegen/tests/simple

I replaced goimports with gofmt in Makefile and I can see that this one is definitely there... what happens if you do the same?


Get Item records by 'holding id'

Document where do we use this method in marc_liberation and across the rest of the repositories.
The Alma Rest api call requires a bib_id.

duplicate of #733


add vehicle-to-grid capability to GreedyMarket

add VehicleType attribute "v2g" (boolean, default false)
after GreedyMarket has raised vehicle to safe SoC level within horizon, try to discharge V2G vehicles at highest price points
can charge again to always leave with desired SoC

At 01.04. after 12, during the same price signal charging and discharging is happening. Which can be handled in an improvement. My guess is, that it happens due to greedy algorithm and the order in which timeslots are processed.


Remove double dash from version flag

@sentientwaffle seem to be that there is no longer a step called simulator_run as mentioned in HACKING.md i guess that was replaced at some point maybe ./tigerbeetle benchmark is the way to do it now ? not sure

Ah, thanks! That should be ./tigerbeetle vopr now -- I'll update it.


Why doesn't $resource have a PUT for updating model?

Is it possible to expand the $resource with a create and a update action?
Example:
{ 'get':    {method:'GET'},
  'save':   {method:'POST'},
  'create': {method:'POST'},
  'update': {method:'PUT'},
  'query':  {method:'GET', isArray:true},
  'remove': {method:'DELETE'},
  'delete': {method:'DELETE'} };

Is it also possible to override the save action to call create when id is null and update when id is set?

Well the contrast between PUT and POST isn't specifically whether you are creating or updating, but whether you are editing a resource or a resource's child. From RFC 2616:

The PUT method requests that the enclosed entity be stored under the supplied Request-URI.

...versus...

The POST method is used to request that the origin server accept the entity enclosed in the request as a new subordinate of the resource identified by the Request-URI ...

For most RESTful systems, this ends up being create and update, but it isn't a guarantee, and that's why I'm a big fan of Angular's current neutral term save for POST, which doesn't have strong connotations either way. I also agree that adding a create function that also calls POST wouldn't be helpful because, as others have noted, its communication with the server would not be distinguishable from save.
However, I am a big fan of including a PUT method: PUT is by definition idempotent (see section 9.1.2 above) so multiple copies of a request should generally have the same result as a single copy. POST does not have this property, and frequently servers will interpret multiple copies of a request independently and create duplicate resources for each of them. In my mind, this is enough to merit inclusion, as there should be at least one non-duplicative editing route in any "standard" REST toolbox.
The two back-end REST resource implementations I use include a PUT:

Laravel's resource controllers have PUT /resource/{resource} -> update as a default part of the Route::resource method.

ExpressJS's resource package has a very similar mapping, with the exact same PUT /resource/{resource} -> update.

Plus, the hundreds of routing libraries out there nearly all consider PUT to be an essential core method.
Granted, it isn't broken not to have it, but it feels odd to be using all the defaults and then having to add my own PUT to every $resource I define.

@tdhsmith
I agree with you, it would be very interesting to have a PUT method, I would call him "update", and a PATCH would be "partial_update"
I took these names from DJango REST Framework, the generic views have the two methods:
def update(self, request, pk=None):
pass
def partial_update(self, request, pk=None):
pass
I think the correct implementation of a back-end REST must have a method PUT that perform updates, but i know that not everybody implements it.
My current implementations in ASP.NET don't have the PUT method because, since c# is strongly typed, it is easier to implement control flow in the back-end

It seems pretty typical to require a PUT method in v1 of any data app, though, right? +1 for finding some convention that allows standard inclusion of these few lines of code in angular.

See http://kirkbushell.me/angular-js-using-ng-resource-in-a-more-restful-manner/ for one pretty clean way to add your custom methods to $resource.

@sjatkins For me, that's more of a workaround.
I also agree that $resource should have a default option for PUT, it seems weird to have to configure it manually every time you need to use PUT to update a record, which is pretty common, IMO. A default option for PATCH can be discussed even though it's a bit more uncommon, but at least one for PUT is reasonable.
Also, people were asking what would be the difference between $save and $create. Well, maybe the same difference between $delete and $remove, i.e. none? I see no problems with aliases, even ngResource has one already.

Resource is suppose to based off of Rest, so why doesn't it just have the http restful routes baked in...
Example:
{
    'get':    {method:'GET'},
    'post':   {method:'POST'},
    'update': {method:'PUT'},
    'query':  {method:'GET', isArray:true},
    'delete': {method:'DELETE'}
};

Because different backends have different opinions about the verbs that should be used.
$resource provides a generic solutionand is easily extensible.
Basically, you can set the default actions using $resourceProvider.defaults.actions.
Not sure if leaving this undocumented was intentional or just an oversight.

Well fancy that, I'll give resource another go then! I love extensible components.

The docs have been updated with clearer info on default actions. This should allow easy configuration of PUT if you want it.


is there Python version of this please?

is there Python version of this please. Because I think this is the most relevant library for UA detections.

Hey @andizaa! There is no Python version of this project, but I'm sure there are many others available.


WIP: metrics exporter initial change

Description
Expose metrics for the Prometheus.
Verification Steps
added make command in make file to create the image for metrics exporter in quay just do
[make release-build] and it will the create quay, with image as [dbaas-metrics-exporter]
once the image is ready apply all the configuration file present inside metrics/deploy folder
like oc apply -f
after applying configuration files exporter pod will be running in openshift-dbaas-monitoring namespace
Type of change

[ ] New feature (non-breaking change which adds functionality)

Checklist (Definition of Done)

[ ] All acceptance criteria specified in JIRA or in issue number have been completed
[ ] Unit tests added that prove the fix is effective or the feature works
[ ] Documentation added for the feature
[ ] all relevant tests are passing
[ ] Code Review completed
[ ] Verified independently by reviewer

@rchikatw can you close this PR as the we are going approach as operator-sdk recommendation for metrics


Bump Dependencies #1186705645

Bumps dependencies for product-is. Link : https://github.com/wso2/product-is/actions/runs/1186705645

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.jenkins-is-staging seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Bump the timeouts on two of our Lambdas

Fix timeouts from the catalogue pipeline.

Part of #2552.


Feature Request: Word Wrap in FormulaControl.

Is it possible to implement automatic word wrap so that long formulas can be are split up automatically instead of having to manually add a new line \?

I fear that would be a very complex and difficult task. Even TeX itself isn't always able to handle this reliably. I heard that amsmath is able to do that, but it's definitely far ahead of what we have implemented right now.

If it's possible to get the width of the control, the  width of the display area and the size of the font, I suppose you could calculate where the line feed should be placed. But you'd have to be careful not to put it in the middle of a  LaTex tag or compound structure like a variable and its subscript or some such thing. So yes, it seems quite elaborate. :-(


Return future on different thread (issue 432)

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

I believe it is not an issue anymore. The test mentioned in the issue is passing now and the initial hack is removed. It seems the solution was to set the task creation options in the FutureProcess constructor, like in one of the PRs in EventStore for the issue mentioned previously:
            _tcs = new TaskCompletionSource<T>(TaskCreationOptions.RunContinuationsAsynchronously);