prepareInterstitial always fails with "Class not found" error message

I am using the cordova-admob-pro plugin for an amazon-fireos cordova app. When executing the following code, the fail callback is always called with "Class not found" as first parameter:
if(AdMob) AdMob.prepareInterstitial( {adId:admobid.interstitial, autoShow:false}, function(){
        console.log('succ!');
    }, function(a){
        console.log('fail: ' + JSON.stringify(a)); //fail: "Class not found"
    } );

admobid.interstitial is set correctly.

This plugin only support ios / android / wp8
Though amazon-fireos is a derivative of android, I am not sure whether it can be supported or not.
You can try:
download the plugin, open plugin.xml, copy the section android to amazon-fireos, then add to your project from local copy.

I tried what you said, but it fails with the following error:
Installing "cordova-plugin-admobpro" for amazon-fireos
Error during processing of action! Attempting to revert...
Failed to install 'cordova-plugin-admobpro':Error: Uh oh!
ENOENT, no such file or directory 'C:\Users\denis_000\Documents\BitBucket\quizbattle\build\platforms\amazon-fireos\local.properties'
    at Error (native)
    at Object.fs.openSync (fs.js:500:18)
    at Object.fs.readFileSync (fs.js:352:15)
    at Object.createEditor (C:\Users\denis_000\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\properties-parser\index.js:328:39)
    at Object.module.exports.getProjectSdkDir (C:\Users\denis_000\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\platforms\amazon-fireos.js:164:49)
    at Object.module.exports.framework.install (C:\Users\denis_000\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\platforms\amazon-fireos.js:112:46)
    at installWrapper (C:\Users\denis_000\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\platforms\platforms.js:77:32)
    at Object.ActionStack.process (C:\Users\denis_000\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\util\action-stack.js:68:25)
    at handleInstall (C:\Users\denis_000\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:576:20)
    at C:\Users\denis_000\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:363:28
Error: Uh oh!
ENOENT, no such file or directory 'C:\Users\denis_000\Documents\BitBucket\quizbattle\build\platforms\amazon-fireos\local.properties'
    at Error (native)
    at Object.fs.openSync (fs.js:500:18)
    at Object.fs.readFileSync (fs.js:352:15)
    at Object.createEditor (C:\Users\denis_000\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\properties-parser\index.js:328:39)
    at Object.module.exports.getProjectSdkDir (C:\Users\denis_000\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\platforms\amazon-fireos.js:164:49)
    at Object.module.exports.framework.install (C:\Users\denis_000\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\platforms\amazon-fireos.js:112:46)
    at installWrapper (C:\Users\denis_000\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\platforms\platforms.js:77:32)
    at Object.ActionStack.process (C:\Users\denis_000\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\util\action-stack.js:68:25)
    at handleInstall (C:\Users\denis_000\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:576:20)
    at C:\Users\denis_000\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:363:28

Maybe this error occurs because of the dependency 'cordova-plugin-extension'?  I tried to install it separately from a local copy where I also added the amazon-fireos platform in the plugin.xml. However, it seems that cordova ignores the installed plugin and tries to install it from npm. Which leads to the same problem. Any suggestions?

Now I am looking into it.
I found that the different is: building android platform is using gradle now, but building amazon-fireos is still using ant, so it cannot correctly handle <framework> tag. I will create a section for amazon-fireos, once tested pass, will publish to npm.
Stay tuned.

Thank you for you effort!

It's done and I've tested it on simulator and update the published plugins. You can try it on real device.
cordova platform add amazon-fireos
cordova plugin add cordova-plugin-admobpro

as you know, to build cordova apps for fireos, the amazon sdk is required, download it here:
https://s3.amazonaws.com/awv-api/awv_api.zip
before build, remember to copy the two files from amazon webview api sdk to platforms\amazon-fireos\libs:
awv_android_factory.jar
awv_interface.jar

Please test on real fireos device, and give me feedback. Good luck!

I installed the updated plugin and successfully build the amazon-fireos app. I used the following code to test an interstitial and a banner ad:
AdMob.prepareInterstitial({
        adId: admobid.interstitial,
        autoShow: true
    },function(a){
        console.log('MOBILE-ADS/AdMob: suc');
    },function(a){
        console.log('MOBILE-ADS/AdMob: fail '+ JSON.stringify(a));
    });

    console.log('ADMob creating banner ad...');
    AdMob.createBanner({
        adId: admobid.banner,
        position: AdMob.AD_POSITION.BOTTOM_CENTER,
        autoShow: true,
        success: function(){
            console.log('AdMob:banner suc');
        },
        error: function(){
            console.log('AdMob:failed to create banner');
        }
    });

At first sight, this seemed to work, since the ads were displayed. However, I took a look at the ADB log found some errors which cause (as far as I understand it) the plugin to use fallback/test ads. Here are some important lines of the log:
D/PluginManager( 3096): in getPlugin for service - AdMob

D/GenericAdPlugin( 3096): prepareInterstitial: ca-app-pub-/*My-Interstitial-id*/, true

I/dalvikvm( 3096): DexOpt: unable to optimize static field ref 0x079c at 0x83 in Lcom/google/android/gms/common/GooglePlayServicesUtil;.a

D/PluginManager( 3096): in getPlugin for service - AdMob

I/dalvikvm( 3096): DexOpt: unable to optimize static field ref 0x0797 at 0x8e in Lcom/google/android/gms/common/GooglePlayServicesUtil;.a

D/GenericAdPlugin( 3096): createBanner: ca-app-pub-/*My-banner-id*/, true

I/dalvikvm( 3096): DexOpt: unable to optimize static field ref 0x07ab at 0x99 in Lcom/google/android/gms/common/GooglePlayServicesUtil;.a

I/dalvikvm( 3096): DexOpt: unable to optimize static field ref 0x07a8 at 0xab in Lcom/google/android/gms/common/GooglePlayServicesUtil;.a

I/dalvikvm( 3096): DexOpt: unable to optimize static field ref 0x07a1 at 0xbd in Lcom/google/android/gms/common/GooglePlayServicesUtil;.a

I/dalvikvm( 3096): DexOpt: unable to optimize static field ref 0x079e at 0xe7 in Lcom/google/android/gms/common/GooglePlayServicesUtil;.a

I/dalvikvm( 3096): DexOpt: unable to optimize static field ref 0x07a8 at 0x106 in Lcom/google/android/gms/common/GooglePlayServicesUtil;.a

I/dalvikvm( 3096): DexOpt: unable to optimize static field ref 0x07a5 at 0x07 in Lcom/google/android/gms/common/GooglePlayServicesUtil;.d

I/dalvikvm( 3096): DexOpt: unable to optimize static field ref 0x079b at 0x18 in Lcom/google/android/gms/common/GooglePlayServicesUtil;.d

I/dalvikvm( 3096): DexOpt: unable to optimize static field ref 0x079a at 0x1f in Lcom/google/android/gms/common/GooglePlayServicesUtil;.d

I/dalvikvm( 3096): DexOpt: unable to optimize static field ref 0x0796 at 0x26 in Lcom/google/android/gms/common/GooglePlayServicesUtil;.d

I/dalvikvm( 3096): DexOpt: unable to optimize static field ref 0x07aa at 0x2d in Lcom/google/android/gms/common/GooglePlayServicesUtil;.d

I/dalvikvm( 3096): DexOpt: unable to optimize static field ref 0x07a7 at 0x34 in Lcom/google/android/gms/common/GooglePlayServicesUtil;.d

I/dalvikvm( 3096): DexOpt: unable to optimize static field ref 0x07a0 at 0x3b in Lcom/google/android/gms/common/GooglePlayServicesUtil;.d

I/dalvikvm( 3096): DexOpt: unable to optimize static field ref 0x079d at 0x42 in Lcom/google/android/gms/common/GooglePlayServicesUtil;.d

I/dalvikvm( 3096): DexOpt: unable to optimize static field ref 0x07a6 at 0x49 in Lcom/google/android/gms/common/GooglePlayServicesUtil;.d

I/dalvikvm( 3096): DexOpt: unable to optimize static field ref 0x0799 at 0x0f in Lcom/google/android/gms/common/GooglePlayServicesUtil;.e

I/dalvikvm( 3096): DexOpt: unable to optimize static field ref 0x0795 at 0x16 in Lcom/google/android/gms/common/GooglePlayServicesUtil;.e

I/dalvikvm( 3096): DexOpt: unable to optimize static field ref 0x07a9 at 0x1d in Lcom/google/android/gms/common/GooglePlayServicesUtil;.e

I/dalvikvm( 3096): DexOpt: unable to optimize static field ref 0x07a5 at 0x07 in Lcom/google/android/gms/common/GooglePlayServicesUtil;.f

I/dalvikvm( 3096): DexOpt: unable to optimize static field ref 0x07a2 at 0x0e in Lcom/google/android/gms/common/GooglePlayServicesUtil;.f

I/dalvikvm( 3096): DexOpt: unable to optimize static field ref 0x07a3 at 0x15 in Lcom/google/android/gms/common/GooglePlayServicesUtil;.f

I/dalvikvm( 3096): DexOpt: unable to optimize static field ref 0x079f at 0x1c in Lcom/google/android/gms/common/GooglePlayServicesUtil;.f

I/dalvikvm( 3096): DexOpt: unable to optimize static field ref 0x07a7 at 0x23 in Lcom/google/android/gms/common/GooglePlayServicesUtil;.f

I/dalvikvm( 3096): DexOpt: unable to optimize static field ref 0x07a0 at 0x2a in Lcom/google/android/gms/common/GooglePlayServicesUtil;.f

D/PluginManager( 3096): in getPlugin for service - AmazonMobileAdsPlugin

I/dalvikvm( 3096): DexOpt: unable to optimize static field ref 0x079d at 0x31 in Lcom/google/android/gms/common/GooglePlayServicesUtil;.f

I/dalvikvm( 3096): DexOpt: unable to optimize static field ref 0x07a6 at 0x38 in Lcom/google/android/gms/common/GooglePlayServicesUtil;.f

I/dalvikvm( 3096): DexOpt: unable to optimize static field ref 0x07a5 at 0x0d in Lcom/google/android/gms/common/GooglePlayServicesUtil;.isGooglePlayServicesAvailable

I/dalvikvm( 3096): DexOpt: unable to optimize static field ref 0x07a4 at 0x05 in Lcom/google/android/gms/common/GooglePlayServicesUtil;.showErrorNotification

I/dalvikvm( 3096): DexOpt: unable to optimize static field ref 0x0798 at 0x25 in Lcom/google/android/gms/common/GooglePlayServicesUtil;.showErrorNotification

E/GooglePlayServicesUtil( 3096): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.

W/GooglePlayServicesUtil( 3096): Google Play services is missing.

I/Ads     ( 3096): Starting ad request.

I/Ads     ( 3096): Use AdRequest.Builder.addTestDevice("E135E2BA1B854E77DD3A1E88A5A7D949") to get test ads on this device.

...

D/CordovaLog( 3096): file:///android_asset/www/app.entry.bundle.js: Line 38598 : ADMob creating banner ad...

I/chromium( 3096): [INFO:CONSOLE(38598)] "ADMob creating banner ad..."

D/GenericAdPlugin( 3096): cordova-android 3.x, webview in linearlayout

E/GooglePlayServicesUtil( 3096): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.

W/GooglePlayServicesUtil( 3096): Google Play services is missing.

D/PluginManager( 3096): in getPlugin for service - App

I/App     ( 3096): WARNING: Back Button Default Behavior will be overridden.  The backbutton event will be fired!

I/Ads     ( 3096): Starting ad request.

I/Ads     ( 3096): Use AdRequest.Builder.addTestDevice("E135E2BA1B854E77DD3A1E88A5A7D949") to get test ads on this device.

...

D/CordovaLog( 3096): file:///android_asset/www/app.entry.bundle.js: Line 38585 : MOBILE-ADS/AdMob: fail "Error"

I/chromium( 3096): [INFO:CONSOLE(38585)] "MOBILE-ADS/AdMob: fail "Error""

Are the displayed ads just test-ads or the "real" ones? I also don't see any changes on my AdMob reporting.
I also noticed that AdMob.isInterstitialReady results in this error: Uncaught TypeError: undefined is not a function.

Remember to test it on your real device instead of the emulator. Can you paste a screenshot?
If you see your adId in the log, then the plugin is using your ad instead of fallback/test ad.
AdMob.isInterstitialReady() is removed, so do not use it.

Thank you very much, the correct ids are in the log, and my AdMob statistics were updated accordingly. So everything works. I successfully tested the plugin on the Amazon  Fire TV Stick.


NSFS | NC | NSFS account/ bucket/config schema validation error message is not informative enough

Environment info

NooBaa Version: master
Platform: NC

Actual behavior

currently on NSFS schema validation we throw the following error -
if (!valid) throw new RpcError('INVALID_SCHEMA', ajv.errors[0]?.message);
ajv.errors[0]?.message - does not state what property caused the failure, it contains the reason for failure only.

Expected behavior
NSFS account/ bucket/config schema validation error message -  contains the property that caused the failure, it contains the reason for failure only.
Note: we might need to add more info in addition to the property
Steps to reproduce

Update config.json with wrong schema property
run nsfs.js/manage_nsfs.js/health.js

Hi @romayalon,

The message contains the property name - example bucket without creation_date property:
ajv.errors[0]?.message: "must have required property 'creation_date'".
But when someone adds additional property - example lala:
ajv.errors[0]?.message: "must NOT have additional properties".

I can add the parama property to the message error and then it would change to:

must have required property 'creation_date' | {"missingProperty":"creation_date"}
must NOT have additional properties | {"additionalProperty":"lala"}
Is that what you meant?

@shirady Yes that's good! if you see more relevant information in the errors add it as well :)

Build Verified on:  5.15 downstream build 02/12
Env details :
Platform rhel9
rpm name noobaa-core-5.15.0-20240212.el9.x86_64
Verification steps:-
Step1 : Create an account : SUCCESS
[root@ananrhel92-x-worker1 ces]# /usr/local/noobaa-core/bin/node /usr/local/noobaa-core/src/cmd/manage_nsfs account add --name ibm1 --email<EMAIL_ADDRESS>--uid 7000 --gid 7000 --new_buckets_path /mnt/fs1/ibm1/
{
  "response": {
    "code": "AccountCreated",
    "reply": {
      "name": "ibm1",
      "email"<EMAIL_ADDRESS>      "creation_date": "2024-02-14T05:53:43.664Z",
      "access_keys": [
        {
          "access_key": "ClhpeB2pLHIpeNGspUU6",
          "secret_key": "ppiHx/TJP3dIpUAEums7q+BtR8KaqX7pQ2DI1mxY"
        }
      ],
      "nsfs_account_config": {
        "uid": 7000,
        "gid": 7000,
        "new_buckets_path": "/mnt/fs1/ibm1/",
        "fs_backend": "GPFS"
      },
      "allow_bucket_creation": true,
      "_id": "65cc5567345d4a5220f4635a"
    }
  }
}

Step2: Bucket create : SUCCESS
[root@ananrhel92-x-worker1 ces]# /usr/local/noobaa-core/bin/node /usr/local/noobaa-core/src/cmd/manage_nsfs bucket add --name bucket1000 --email<EMAIL_ADDRESS>--path /mnt/fs1/ibm1/bucket1000
{
  "response": {
    "code": "BucketCreated",
    "reply": {
      "name": "bucket1000",
      "system_owner"<EMAIL_ADDRESS>      "bucket_owner"<EMAIL_ADDRESS>      "creation_date": "2024-02-14T05:55:46.795Z",
      "versioning": "DISABLED",
      "path": "/mnt/fs1/ibm1/bucket1000",
      "should_create_underlying_storage": false,
      "fs_backend": "GPFS",
      "_id": "65cc55e2379cbabed744b8d8"
    }
  }
}

Step 3 : Edit the bucket1000.json file and add/remove below items
a) Add additional property "test":"test"
b) Remove existing property "Creation_date:xxxxx"
c) Change property "should_create_underlying_storage":123 (Boolean expected)
Step4 : Update the bucket name to a new name Which is expected to error our as per this issue. Result below
for a)additional property "test":"test"
[root@ananrhel92-x-worker1 ces]# /usr/local/noobaa-core/bin/node /usr/local/noobaa-core/src/cmd/manage_nsfs bucket update --name bucket1000 --new_name bucket2000 2>/dev/null
{
  "error": {
    "code": "InvalidSchema",
    "message": "Schema invalid, please use required properties",
    "detail": "Error: must NOT have additional properties | {\"additionalProperty\":\"test\"}\n    at Object.validate_bucket_schema (/usr/local/noobaa-core/src/manage_nsfs/nsfs_schema_utils.js:55:15)\n    at update_bucket (/usr/local/noobaa-core/src/cmd/manage_nsfs.js:281:23)\n    at async manage_bucket_operations (/usr/local/noobaa-core/src/cmd/manage_nsfs.js:308:9)\n    at async bucket_management (/usr/local/noobaa-core/src/cmd/manage_nsfs.js:114:5)\n    at async main (/usr/local/noobaa-core/src/cmd/manage_nsfs.js:94:13)"
  }
}

b) Missing property creation_date
[root@ananrhel92-x-worker1 ces]# /usr/local/noobaa-core/bin/node /usr/local/noobaa-core/src/cmd/manage_nsfs bucket update --name bucket1000 --new_name bucket2000 2>/dev/null
{
  "error": {
    "code": "InvalidSchema",
    "message": "Schema invalid, please use required properties",
    "detail": "Error: must have required property 'creation_date' | {\"missingProperty\":\"creation_date\"}\n    at Object.validate_bucket_schema (/usr/local/noobaa-core/src/manage_nsfs/nsfs_schema_utils.js:55:15)\n    at update_bucket (/usr/local/noobaa-core/src/cmd/manage_nsfs.js:281:23)\n    at async manage_bucket_operations (/usr/local/noobaa-core/src/cmd/manage_nsfs.js:308:9)\n    at async bucket_management (/usr/local/noobaa-core/src/cmd/manage_nsfs.js:114:5)\n    at async main (/usr/local/noobaa-core/src/cmd/manage_nsfs.js:94:13)"
  }
}

c) Property is not boolean
[root@ananrhel92-x-worker1 ces]# /usr/local/noobaa-core/bin/node /usr/local/noobaa-core/src/cmd/manage_nsfs bucket update --name bucket1000 --new_name bucket2000 2>/dev/null
{
  "error": {
    "code": "InvalidSchema",
    "message": "Schema invalid, please use required properties",
    "detail": "Error: must be boolean | {\"type\":\"boolean\"} | \"/should_create_underlying_storage\"\n    at Object.validate_bucket_schema (/usr/local/noobaa-core/src/manage_nsfs/nsfs_schema_utils.js:55:15)\n    at update_bucket (/usr/local/noobaa-core/src/cmd/manage_nsfs.js:281:23)\n    at async manage_bucket_operations (/usr/local/noobaa-core/src/cmd/manage_nsfs.js:308:9)\n    at async bucket_management (/usr/local/noobaa-core/src/cmd/manage_nsfs.js:114:5)\n    at async main (/usr/local/noobaa-core/src/cmd/manage_nsfs.js:94:13)"
  }
}

Fix looks good to me.
However if we have more than one issues in the <bucket_name>.json, validation error comes only for the initial issue.
If that is okay, we can close this

@anandhu-karattu, It will throw the error only on one of the issues.
closing per the last comment
cc: @romayalon


Config examples: Formatters -> Modulators

Updates to configuration examples

Replace "Formatters:" with "Modulators:"
Comment out "Formatter: " since this seems to be obsolete
Add an example of logging the GOLLUM stream

Coverage remained the same at 64.637% when pulling a428137d5c5ab8f1646e8e17454d9be9ddbc31cb on config_formatters_to_modulators into 463ce5720a459f885cd5885cbfb2674377d60371 on master.

Should be ready for merging

Coverage decreased (-0.1%) to 64.49% when pulling fc815ace2148b41c6fdc871efe1d141eb43b626b on config_formatters_to_modulators into 463ce5720a459f885cd5885cbfb2674377d60371 on master.

Coverage decreased (-0.1%) to 64.49% when pulling fc815ace2148b41c6fdc871efe1d141eb43b626b on config_formatters_to_modulators into 463ce5720a459f885cd5885cbfb2674377d60371 on master.


Can't run project as module.

Describe the problem
Hi :)
I have a problem running my program as module (python test_pkg). It throws this 404 Not Found Error:

When I run it in the folder with python __main__.py everything works fine.

My folder structure looks like this:
test
└───test_pkg
    │   __init__.py
    │   __main__.py
    │
    ├───web
    │       main.html

Code snippet(s)
# file: test_pkg/__main__.py

import eel

eel.init('web')

def main():
    eel.start('main.html')

if __name__ == '__main__':
    main()

<!DOCTYPE html>

    <meta charset="UTF-8">
    <title>Hello World!</title>

Hello World!

Desktop (please complete the following information):

OS: Windows 10
Browser: Chrome

Fixed it.
It was a path problem.


⚠ Bofrost.be has degraded performance

In c7bccfd, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1118 ms

Resolved: Bofrost.be performance has improved in 3ee2f8c after 7 minutes.


How can I gent the dataset you used on local environment?

Hi,
First of all, I want to appreciate your effort to get some insight for me about LSTM VAE based anomaly detection.
I have a connection issue on AzureML even though I had a subscription of the site. Therefore, I had to download the dataset (bearing dataset from NASA) and tried to run your code on local environment.
However, there were several issues to apply the dataset, because there are three .rar files on a zipped file (3 datasets).
In a word, I cannot get some directions to use the dataset on local environment. How can I get that?
Thanks again.

The link of dataset was written on readme.md.https://ti.arc.nasa.gov/c/3/

Hi, First of all, I want to appreciate your effort to get some insight for me about LSTM VAE based anomaly detection.
I have a connection issue on AzureML even though I had a subscription of the site. Therefore, I had to download the dataset (bearing dataset from NASA) and tried to run your code on local environment.
However, there were several issues to apply the dataset, because there are three .rar files on a zipped file (3 datasets). In a word, I cannot get some directions to use the dataset on local environment. How can I get that?
Thanks again.

The link of dataset was written on readme.md.https://ti.arc.nasa.gov/c/3/


Possibility to install to a subdirectory

When opening an issue, please include the follwing information:
every version is the same as in the current Dockerfile
Node Version
Server OS Version
WebSSH2 release version
OS and Version of SSH server connecting to
Browser Firefox 61 on Arch Linux
Is it possible to install webssh2 into a subdirectory, e.g. to use it like this: http://localhost:2222/mywebssh2/ssh/host/<IP_ADDRESS>
The subdirectory is the folder mywebssh2. This would be needed to configure nginx as a proxy to that docker container like:
location /webssh/ {
  proxy_pass http://<IP_ADDRESS>:3007/mywebssh2/;
}

Yes, you just need to rewrite all the URLs using ProxyPass I imagine. Otherwise you can trace through the code and update it in places like this:
https://github.com/billchurch/WebSSH2/blob/a1fdc0974d66353370f9a153cc1aa56c79dc0188/server/app.js#L38


Feature Request: Add Support for TP-Link NC450 Camera

Is your feature request related to a problem? Please describe.
No, TP-Link NC450 is not a Tapo camera, but belongs to the same manufacturer. Indeed, it works with a different app.
Describe the solution you'd like
I would like support for NC450 cameras.
Describe alternatives you've considered
Creating my own integration for HA forking this one and removing features not supported by NC450. But it would be great to make a PR adding support using this dep :)

Thank you for suggestion, this integration is only for Tapo cameras as they have common API.


Add server configurability for benchmark testing in EC2 environment

Codecov Report
Attention: Patch coverage is 5.81395% with 81 lines in your changes are missing coverage. Please review.

Project coverage is 54.49%. Comparing base (ec319ac) to head (8156678).

Files
Patch %
Lines

client/src/benchmark.rs
0.00%
65 Missing :warning:

server/src/main.rs
0.00%
12 Missing :warning:

server/src/redis.rs
20.00%
3 Missing and 1 partial :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main       #5      +/-   ##
==========================================
- Coverage   58.89%   54.49%   -4.40%
==========================================
  Files          10       10
  Lines         956     1035      +79
  Branches      956     1035      +79
==========================================
+ Hits          563      564       +1
- Misses        324      401      +77
- Partials       69       70       +1

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


lucky_numbers - Python

Added lucky_numbers.py
fixing issue #40

@ashwek Your code is buggy because all lucky numbers up to 120 are:

1, 3, 7, 9, 13, 15, 21, 25, 31, 33, 37, 43, 49, 51, 63, 67, 69, 73, 75, 79, 87, 93, 99, 105, 111, 115

https://oeis.org/A000959

@ashwek BUG FIX:
if(Arr):
    print(", ".join(map(str, Arr)))

Prints all lucky numbers.


Rendering issues

Issue Description:
Rendering errors:

random occlusion issue when looking in certain directions
issues with the preview at non-standard FOV

What happens:

preview issue, 120 fov

elevator doesn't render if NW-most block isn't seen (i think)
What you expected to happen:

Steps to reproduce:

install elevator mod
make elevator
see bug

Affected Versions (Do not use "latest"): Replace with a list of all mods you have in.

Thutcore: 8.1.1/8.1.1/9.1.0
Minecraft: 1.16.5
Forge: 36.0.55
Optifine 1.16.6 HD G6 Ultra

hmm, can you press f3+g to show the chunk grid, then take the screenshots again?


Update deploying-app-v-virtual-applications.md

MVP hack a document event: Updated what products come with App-V 5.2, also updated some of the wording around download and execute for App-V apps.

 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.:x: kkaminsk sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

Thanks @kkaminsk. There's enough detail here that I want to confirm with engineering. Trust but verify :)

Got engineering signoff, thanks again for the contribution!


Trying to get property 'id' of non-object

When i add relations entry to section and enter entry editing view, i get the message:
yii\base\ErrorException: Trying to get property 'id' of non-object in C:\xampp\htdocs\test2\vendor\nav33d\craft-relations\src\services\Relations.php:57

48495051525354555657585960616263646566
            if ( method_exists($relatedElement, 'getOwner') && $relatedElement->getOwner() )
            {
                while ( method_exists($relatedElement, 'getOwner') )
                {
                    $relatedElement = $relatedElement->getOwner();
                }
            }

            if ( !isset($relatedElements[$relatedElement->id]) )
            {
                $relatedElements[$relatedElement->id] = $relatedElement;
            }
        }

        return $relatedElements;
    }

}

I think important fact is that i did not get this error at first. But after i installed your plugin, i switched craft version to pro and added some users and gave them permission to edit this section. Maybe it has something to do with this?

Could you please let me know your section fields and where do you have the relations field?
Many thanks

@Nav33d
WIll project config file suffice?
https://pastebin.com/HTnKNpd3

@Nav33d I have just run into this error also. Relations field in a tab
There are also Assets, Matrix, Plain Text, Entries
Other entries seem to work. Have had to disable plugin for client
Craft CMS 3.1.3

Same issue on my end. I believe it is happening when the related element has been soft deleted and is still in the trash.

Nothing in our trash and same issue

Interesting. Created a pull request #5 with a (quick) fix that resolved the issue on my end.

@romainwurtz Thank you for the pull request.
@john-henry @piotrpog The issue should be fixed now.


Adding Tomahawk boilerplate starter app

@goemen Thanks for the PR - I think this may be better suited to "related projects" (if you plan to keep the dependencies updated).
I might borrow your login screen for an upcoming PR though, and your dashboard bears a striking resemblance to mine, even down to the choice of drawer variant! 😄

@mbrookes which one is yours

@mbrookes Looking at what we have in the showcase, https://marmelab.com/react-admin-demo/#/login is one of my favorite.

I plan on making some improvements. @mbrookes is right, there is some resemblance there. I guess great mind think alike but I can tweak it a little bit for uniqueness

@goemen

which one is yours? react-admin?

No, just a very basic layout, not published yet.

I can tweak it a little bit for uniqueness

No need, it was just an observation. I hadn't even looked at react-admin!

@mbrookes will move the settings to the 'related projects'

@goemen I went ahead. Thanks for sharing your project.

Thanks
Get Outlook for Androidhttps://aka.ms/ghei36

From: Olivier Tassinari<EMAIL_ADDRESS>Sent: Friday, August 3, 2018 3:19:51 PM
To: mui-org/material-ui
Cc: Goeme Nthomiwa; Mention
Subject: Re: [mui-org/material-ui] [docs] Add Tomahawk boilerplate to the related projects (#12393)
@goemenhttps://github.com/goemen I went ahead. Thanks for sharing your project.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/mui-org/material-ui/pull/12393#issuecomment-410390781, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AEniTcwK0l1kKlY7pFjxhPqVic-enckTks5uNMyHgaJpZM4VtIKN.


Add Updated internals-gif Update README.md

Adding PySpark to the internals-gif and README.md
What type of PR is this? (check all applicable)

[ ] 💾 Refactor
[ ] ✨ Feature
[ ] 🐛 Bug Fix
[ ] 🔧 Optimization
[ ] 📝 Documentation
[ ] ✅ Test
[x] 🐳 Other

😄 nice one!
seeing as Spark support is still really new, and not integrated into the main testing framework, mind if we wait for it to mature a bit more before including it in the readme?


⚠ UdeS website (prod) has degraded performance

In 6961b40, UdeS website (prod) (https://www.usherbrooke.ca/) experienced degraded performance:

HTTP code: 200
Response time: 1063 ms

Resolved: UdeS website (prod) performance has improved in fd27335.


Prepared statements-ish

I wonder if I can modify my ODBC SQL script to accept a query with something similar to a prepared statement.
Currently, you drop in a query like this:
SELECT Description FROM OrderHeader WHERE JobNumber = '[Job.PrivateData:Key="JobNumber"]'
But I think I could allow you to use something like the following:
SELECT Description FROM OrderHeader WHERE JobNumber = :JobNumber
Then in the script, you'd have an option to load parameters. You set parameter :JobNumber => [Job.PrivateData:Key="JobNumber"], and perhaps even set the parameter type as a String. Then, I'll have the script parse the query, strip any unsafe characters from the parameter, insert the parameter, and force it to be a string. Resulting in the following query being sent to ODBC:
SELECT Description FROM OrderHeader WHERE JobNumber = '123456'
If you're interested in using switch-sql-query and converting to ODBC, I can work on this enhancement.

Complete in 727315ac732a6814bdb89d62e5c9cec85061df6f


Instance Name already in use

Running
Get-DSCPullServerAdminReport -ESEPath 'C:\Program Files\WindowsPowerShell\DscService\Devices.edb' | select -Last 1
once works. When i run the same code a second time i get the following message:
`Get-DSCPullServerAdminReport : Instance Name already in use
At line:1 char:1

Get-DSCPullServerAdminReport -ESEPath 'C:\Program Files\WindowsPowerS ...

  + CategoryInfo          : NotSpecified: (:) [Get-DSCPullServerAdminReport], EsentInstanceNameInUseException
  + FullyQualifiedErrorId : Microsoft.Isam.Esent.Interop.EsentInstanceNameInUseException,DSCPullServerAdmin.src.CmdLets.GetDSCPullServerAdminReport`

This only happens if you start the cmdlet and break it while it is running (CTRL+C)
Env: Windows Server 2016
PS: 5.1.14393.693

Thanks for reporting @skest3qc! I've noticed this myself as well. Seems Select-Object -First x throws a StopUpstreamCommandsException which I didn't account for. This prevents endprocessing or stopprocessing from running. I'll work on a fix.


sqld: temp fix replica namespace doesnt exist

there is a bug where a primary will report that a valid
namespace doesn't exist when it does and causes the replicate to
destroy the namespace locally. For now the temp solution is to
ignore this error (still log it) and don't destroy the local
namespace data on the replica. This trades off storage space for
returing 500s.

@haaawk @LucioFranco Please make sure there is an issue about the root cause bug too so we remember to fix it.

https://github.com/tursodatabase/libsql/issues/1772

I was hoping we could fix the root issue on the primary but this is a good start to mitigate the problem

Maybe we should let the control plane eagerly create namespaces on replicas. That would make stuff easier for sqld


How to run a maximum number of tasks concurrently?

If I want to run something sequentially in co, I can do as the docs say:
yield a();
yield b();

If I want to do it in parallel I can do:
var array = [a(), b()];
yield array;

But how can I implement running a maximum number of things at a time? For example, if I have a very large array of URLs that need to be retrieved, I'd only want a max of 5 running at a time. Using the above examples I could either retrieve them one by one or all together. I'm having trouble wrapping my head around it, could you give me a hint as to how I might implement this with co?

If you are using thunks, you can use co-parallel. If you are using promises, you should roll out your own scheduling algorithm:
co(function* () {
  var urls = [...], done = [];
  while(urls.length) {
    done = done.concat(yield urls.slice(0, n).map(proc)); // take the first n urls and proc them
    urls = urls.slice(n); // drop the proc'd urls
  }
});

Use urls.splice(0, n) and you don't need line 5.
This is a simple solution but it is not ideal : let's say you want max 5 requests at the same time and 4 of them take 100ms but the last one 1s for some reason. For most of the time you will have only one concurrent request.
It would be nice to have a library similar to caolan/async, designed for promises.

https://github.com/tj/co-parallel
https://github.com/cojs/gather


Add #integer,#double,#float emoticons will appear in later versions

When I was using karate's json schema functionality, I found that if I could support integers, double type validation tags would be useful，Would you like to ask if these features will be considered for inclusion in the future update plan for karate?

I still have a question about karate's JsonSchema function.
When I run into json format data like this
{
……
[
……
jsonObject:{
    },

……
]
……
}
At the time when using match each to do a format check on this array, JsonObject is sometimes empty, sometimes not empty, I can use ## for the field, but how do I do it in such a situation?

I am sorry, regarding the second question, I looked through the documentation and found that I can define jsonSchema as an object and then use ##(JsonObject) to do the Schema check.
Everything is possible in karate! :)

@nuanyang233

Everything is possible in karate! :)

Yep :) please spread the word !
For your request, I will think about it - but I am worried it can get more complicated if people want the number of decimal places and all that. and JSON has some confusion here: https://spacetelescope.github.io/understanding-json-schema/reference/numeric.html#integer

The precise treatment of the “integer” type may depend on the implementation of your JSON Schema validator. JavaScript (and thus also JSON) does not have distinct types for integers and floating-point values. Therefore, JSON Schema can not use type alone to distinguish between integers and non-integers. The JSON Schema specification recommends, but does not require, that validators use the mathematical value to determine whether a number is an integer, and not the type alone. Therefore, there is some disagreement between validators on this point. For example, a JavaScript-based may accept 1.0 as an integer, whereas the Python-based jsonschema does not.

So I feel you should just write a function like isInt
* def isInt = function(x){ return x % 1 === 0 }
* def json = { foo: 1 }
* match json == { foo: '#? isInt(_)' }

so you should be able to re-use any function for JSON schema validation !

closing as not needed


cmac: remove unsafe

https://github.com/go-webdl/crypto/blob/29896f6d998ebcde12fdc2150b55b1b790ba306d/cmac/xor_amd64.go#L9-L11

There's no way. For wordSize there may be other ways to get it without unsafe.Sizeof. But for *(*[]uintptr)(unsafe.Pointer(&dst)) casting the unsafe.Pointer method has to be used. Because it's trying to get the underlying memory directly. The purpose of this casting is for optimization, getting rid of the Golang slice layer overhead.
If you know a way to do it, reopen with a PR.

Like this:
https://github.com/chmike/cmac-go/blob/master/cmac.go

That's the non-optimized version, which we do have it:
https://github.com/go-webdl/crypto/blob/master/cmac/xor.go
The optimized version is there to make it faster on some architectures. And to achieve the faster result, the use of unsafe is inevitable. Even Golang official code use optimizations like these all the time:
https://github.com/golang/go/blob/master/src/crypto/cipher/xor_generic.go
and even more aggressively, with assembly:
https://github.com/golang/go/blob/master/src/crypto/cipher/xor_amd64.s
There's nothing wrong using unsafe, as long as you know what you doing.

Fair enough, but in my case, the program is only processing 2 KB of data, so seems way overkill to use any of that.


Cannot install - installation freezes

I was on npm 6.3, node 8.14
the plugin would not update higher than version 4.5, for the installation would freeze.
I update npm and node to 8.17
I had the same issue.
Removing the plugin and reinstalling it failed.
so, drastic measures, upgrade to node 11:

pi@raspberrypi:~ $ npm -v
6.7.0

pi@raspberrypi:~ $ node -v
v11.15.0

pi@raspberrypi:~ $ sudo npm install -g --unsafe-perm homebridge-config-ui-x
[..................] | loadRequestedDeps: sill install loadAllDepsIntoIdealTree

And here it freezes... as it did on all attempts before.
Any suggestions?

I seem to have the same issue on a Rapberry Pi Zero W with npm 6.13.4 and node 12.13.0

I more or less ‘solved’ it I think...
`cd /usr/lib/node_modules
sudo uninstall homebridge-config-ui-x
cd
sudo npm install -g hombridge-config-ui-x
`
And now wait... can take up to 15 mins.
sudo reboot
The latest version actually starts now according to the log, however, the homescreen shows “latest version, 0.4.50

Seems to be working for me now too, it didn't earlier in the afternoon.

Installation can take a while on a Pi Zero, the issue is further compounded if you have a slow SD card. Not much you can do but be patient.

the homescreen shows “latest version, 0.4.50

This is the homebridge version. The UI version is shown in the footer.


Add check for type of ALLOWED_HOSTS

proposal to fix issue #29606, more or less recreated the exisiting PR https://github.com/django/django/pull/10151
differences are that I'm checking for a "list or tuple of string elements", therefor a second test. Hope that hits the nail this time and it fixes the issue :)
of course let me know if I could improve things.

Rename this PR "Fixed #29606 -- Added system check for the type of ALLOWED_HOSTS." as per coding style guide

Rename this PR "Fixed #29606 -- Added system check for the type of ALLOWED_HOSTS." as per coding style guide

Also the branch name should be ticket_29606 to be automatically picked up by Trac: https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/working-with-git/#publishing-work
But it's too late to change this branch name now.

Also the branch name should be ticket_29606 to be automatically picked up by Trac: https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/working-with-git/#publishing-work
But it's too late to change this branch name now.

@adamchainz I could create a new PR with correct branch name if that’s useful...
I‘ve committed changes yesterday

No need for a new branch or PR

Superseded by #14149.


Hotfix for missing rhx_gis key (#377)

Around May 15 2019, the package suddenly stopped working with the error:

KeyError: 'rhx_gis'
(This error is discussed in Issue #377)

@reliefs implemented a hotfix to their own repo, I am simply copying the changes into a fork of the instagram-scraper repo so I can PR it over.

Nevermind, already a PR open with same changes (#378)


In the UI consider using a less-subtle color for the Cancel/Previous buttons

What problem does this feature solve?
Once I learned where the Cancel button was, this was not as much of an issue, but initially I couldn't see where it was. On one hand, I appreciate the subtly of these buttons, but it did make the initial discovery of them by a new user slower than it could be.
What does the proposed API look like?
This is a UI suggestion, nothing to do with API.

You mean add a background color to them?

If you mean this one:

for me is more a position problem than a color one, I think putting both the next and cancel buttons together would make a huge difference.

It's indeed not very UX friendly, I can understand the green/lime theme applied to buttons but usually, users (mainly new ones) would expect it to be more noticeable, in other words, red-ish and closer to the "click zone" (I can't remember the exact UX term that describes the area of an app where the user would focus his/her attention more in regards to buttons).


Making a HTTP Post with JSON Data

Hi,
we are currently trying to implement a HTTP post with the Alcinoe "TalWinHttpClient" component.
In some cases we have to transfer data in JSON format in the post method.
Unfortunately we get the error message 415 - Unsupported Media Type.
In the header configuration the values Accept and ContentType are already transferred with application/json.
We get this error message also in the demo, if we send the following JSON to the server:
{
        "Source":{
            "CountryCode":"DE",
            "ZIPCode":"38106"
        },
        "Destination":{
            "CountryCode":"DE",
            "ZIPCode":"65779"
        }
}

Is there any setting to transfer the data in JSON format?

normally setting ContentType to application/json is enough. maybe the problem is on the server-side ? what the URL of the server ? some old server accept only application/javascript. conrect is
Content-Type: application/json

Thank you very much for the quick feedback. The error was due to me, I had given an empty string as body parameter for this Post Request, because no body should be sent for this Post Request. This led to the error.


[#noissue] Cleanup

Codecov Report

Merging #7592 (f1f1844) into master (c59c06b) will decrease coverage by 0.05%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #7592      +/-   ##
==========================================
- Coverage   38.64%   38.58%   -0.06%
==========================================
  Files        3517     3516       -1
  Lines      100633   100587      -46
  Branches    12349    12349
==========================================
- Hits        38889    38815      -74
- Misses      58746    58769      +23
- Partials     2998     3003       +5

Impacted Files
Coverage Δ

...vercorp/pinpoint/rpc/packet/ServerClosePacket.java
52.00% <0.00%> (-16.00%)
:arrow_down:

...vercorp/pinpoint/rpc/packet/ClientClosePacket.java
55.55% <0.00%> (-11.12%)
:arrow_down:

...rp/pinpoint/rpc/server/PinpointServerAcceptor.java
84.10% <0.00%> (-4.64%)
:arrow_down:

...tor/metric/datasource/DefaultDataSourceMetric.java
75.00% <0.00%> (-3.13%)
:arrow_down:

...om/navercorp/pinpoint/rpc/codec/PacketDecoder.java
57.44% <0.00%> (-2.13%)
:arrow_down:

...com/navercorp/pinpoint/test/TestTcpDataSender.java
20.21% <0.00%> (-1.30%)
:arrow_down:

...orp/pinpoint/rpc/server/DefaultPinpointServer.java
79.09% <0.00%> (-1.05%)
:arrow_down:

...point/rpc/client/DefaultPinpointClientHandler.java
72.07% <0.00%> (-0.33%)
:arrow_down:

...rc/main/java/com/navercorp/pinpoint/test/Item.java
70.00% <0.00%> (ø)

...om/navercorp/pinpoint/web/mapper/SpanMapperV2.java
0.00% <0.00%> (ø)

... and 11 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c59c06b...f1f1844. Read the comment docs.

Codecov Report

Merging #7592 (f1f1844) into master (c59c06b) will decrease coverage by 0.05%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #7592      +/-   ##
==========================================
- Coverage   38.64%   38.58%   -0.06%
==========================================
  Files        3517     3516       -1
  Lines      100633   100587      -46
  Branches    12349    12349
==========================================
- Hits        38889    38815      -74
- Misses      58746    58769      +23
- Partials     2998     3003       +5

Impacted Files
Coverage Δ

...vercorp/pinpoint/rpc/packet/ServerClosePacket.java
52.00% <0.00%> (-16.00%)
:arrow_down:

...vercorp/pinpoint/rpc/packet/ClientClosePacket.java
55.55% <0.00%> (-11.12%)
:arrow_down:

...rp/pinpoint/rpc/server/PinpointServerAcceptor.java
84.10% <0.00%> (-4.64%)
:arrow_down:

...tor/metric/datasource/DefaultDataSourceMetric.java
75.00% <0.00%> (-3.13%)
:arrow_down:

...om/navercorp/pinpoint/rpc/codec/PacketDecoder.java
57.44% <0.00%> (-2.13%)
:arrow_down:

...com/navercorp/pinpoint/test/TestTcpDataSender.java
20.21% <0.00%> (-1.30%)
:arrow_down:

...orp/pinpoint/rpc/server/DefaultPinpointServer.java
79.09% <0.00%> (-1.05%)
:arrow_down:

...point/rpc/client/DefaultPinpointClientHandler.java
72.07% <0.00%> (-0.33%)
:arrow_down:

...rc/main/java/com/navercorp/pinpoint/test/Item.java
70.00% <0.00%> (ø)

...om/navercorp/pinpoint/web/mapper/SpanMapperV2.java
0.00% <0.00%> (ø)

... and 11 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c59c06b...f1f1844. Read the comment docs.


Disable Dragging

How can i disable the function dragging open??

Call setMenuLocked on an instance of SlidingRootNav, which is returned by a call to inject().


add datadog; bump go 1.11 > 1.14

Adds datadog.
Bumps go from 1.11 > 1.14.

Review Error for bsterrett @ 2020-06-02 03:16:45 UTC
User must have write permissions to review


Add random password generator

Password generation is out-of-scope for skiring. However, I DID write a browser-based password generator and you can find it here:
http://pwjen.sig.sh/app/


delete measurements error

Hello, I have another problematic. I cant delete the last measurement I did (I can replace previous dicom SR by new one but when i tried to remove all annotation I got an error because there is technically nothing to save).
Which version of the ohif do you use ?

Please review the latest code in the master branch. I am confident that this issue has been resolved. If it persists, kindly reopen the issue with updated details.
Try viewer-dev.ohif.org instead of viewer.ohif.org
Our viewer.ohif.org is deployed from release branch while viewer-dev.ohif.org is our master  branch
Read more about branch explanations here https://docs.ohif.org/development/getting-started#developing


no keybind for Open Model View GUI in 1.19.2

I cant seem to find any way of opening the menu in 1.19.2

The new feature is only available in 1.20.1 now
And I don't have any plans to migrate the updates to older versions


Use Intellij built-in code formatter

It would be great to integrate the plugin with the built-in code formatter (CTRL-ALT-L). This would not only be easier regarding the shortcut, but would also give the possibility of checking "reformat code" when commiting code and reformat it automatically.
As an example, the plugin of prettier in the world of javascript is capable of doing so.

Good idea! And thanks for the example link!
I'll take a look at the viability of this for the next update (0.4.0 is being submitted today) :)

Implemented here 😁
https://github.com/nbadal/ktlint-intellij-plugin/commit/a8f08ebbf73b2ad13e315ad6f48817c7d1c8b910
Be wary though, even with "Reformat" during a commit, not all ktlint rules are auto-fixed by the tool itself. Some need to be manually fixed, such as no-wildcard-imports for example

Wow, that was quick! :-D Thanks for that, I am going to take a look at it.
The no-wildcard-imports issue goes a little bit deeper, right? I know that you can set this setting in the intellij code formatting options, maybe it is possible to trigger it somehow?

Yeah for that one specifically there's a few IDE settings to turn off the wildcard threshold in Settings > Editor > Code Style > Kotlin > 'Imports' Tab
The command line utility for ktlint has a flag to set some IntelliJ settings, which might include that, but I'm holding off on implementing that part because I think they're talking about transitioning to an .editorconfig-based solution soon.
One improvement I might make as well is to turn off the "Format with ktlint" action for rules that are not auto-correctable.

Closing since this particular issue is merged and ready for 0.5.0, but happy to continue the discussion 😁


Is there a version of nvidia-ammo for Windows?

Thank you for your great work!
I'm trying to run tensorrt-llm on my windows pc. When I try to quantize the llma2 model to int8, I meet an error about nvidia-ammo. I try to install this by "pip download --extra-index-url https://pypi.nvidia.com nvidia-ammo", I meet the error of "RuntimeError: Didn't find wheel for nvidia-ammo 0.9.4". After I check the versions provided by https://pypi.nvidia.com/nvidia-ammo/, it seems that there isn't a version for windows.
So, I wonder how can I install nvidia-ammo on my computer.
Thank you.

Hi @Milesld, nvidia-ammo had been renamed to nvidia-modelopt (https://pypi.nvidia.cn/nvidia-modelopt/) and you can download the windows version from above link.

Hi @Milesld ,Did u install nvidia modelopt(aka nvidia ammo)for windows succesfully?
If so ,could we close this ticket?

Hi @Milesld please feel free to reopen this ticket if needed.


Update BP.AdventureFramework.csproj

Removed absolute path to documentation XML file

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (c2bcc3d) 70.37% compared to head (7491dfa) 70.37%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #43   +/-   ##
=======================================
  Coverage   70.37%   70.37%
=======================================
  Files         108      108
  Lines        3929     3929
  Branches      569      569
=======================================
  Hits         2765     2765
  Misses        951      951
  Partials      213      213

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Cannot set custom adapter path through constructor of Robot class

Hi,
I think there is an error here: https://github.com/github/hubot/blob/498d65611388d2881e6ae24f74bd68a832a24211/src/robot.coffee#L43-L44
Since in the constructor argument  for adapterPath is expected to be nil or existing, @adapterPath will never be existing since it is not declared anywhere (the constructor uses adapterPath and not @adapterPath).

You are totally right. But I suspect nobody noticed because in the current state there is no way to set a custom adapterPath without some hacking in hubot launch script. I suspect it may have been put there for some yet-to-come evolution of the code.

https://github.com/github/hubot/issues/1191 is a similar question.

I suspect it may have been put there for some yet-to-come evolution of the code.

It was introduced in  https://github.com/github/hubot/pull/1109 which is work towards https://github.com/github/hubot/issues/858

Looked a little more closely, and I think it was just an oversight. It'd make sense to do @adapterPath = adapterPath or Path.join __dirname, "adapters"
Some part of me suspects I thought it was using the coffeescriptism of having constructor args like constructor: (@adapterPath), which would automatically set @adapterPath for you.

@mose @technicalpickles thanks for looking into this. Would you like me to issue a PR?

Sure, go for it, that should be a simple one :) Thanks!

I am thinking a bit more about this as I worked on https://github.com/hubotio/hubot/pull/1366 . According to the docs, it's a String of the path to built-in adapters (defaults to src/adapters). I'm not sure it makes sense to be able to override where builtin adapters are loaded from at a high level, mostly because I would expect making other adapters as new packages. There aren't any public hubot APIs that you can use to override this, so I think that would be pretty unsupported. Even if the adapterPath was set, it would only load the hard-coded set of adapters (HUBOT_DEFAULT_ADAPTERS)
That said, I could imagine some use cases for it. You could override a builtin (ie shell and campfire) adapter with your own in a different directory. You could even just 'override' it but have it do something completely different, without having the overhead of a package, like a new, private adapter.
Right now, I'm kind of inclind to stop exposing adapterPath in general, but I am definitely open to hearing feedback and use cases ✨

I ended up fixing this in https://github.com/hubotio/hubot/issues/1366
I am still interested in hearing about use cases, because I suspect that HUBOT_DEFAULT_ADAPTERS will limit how the custom adapterPath can be used.

@technicalpickles thanks for looking into this. And your ideas about potential use cases is on the right path of our use cases. Let me try to explain:
The main use case here is that we are using Hubot as a package and not  as the driver / startup script for my bot. This is because we need to change / override some of that startup behavior for our company bots. Furthermore, we are adding our own default adapters for our bots. The issue arose when we were trying to plugin these custom adapters to our instance of Robot. The fact that it calls loadAdapter() in its constructor, and in turn loadAdapter is constrained by the default adapters and what can be specified in adapterPath and adapter caused some issues in how we created our new bot startup script and also how we tested our bots. We ended up overriding Hubot.Robot constructor and loadAdapter() so that we could instantiate a Robot instance without an Adapter instance and then load an adapter instance with our overridden loadAdapter() func.
In general, the design pattern of having robot include (and load) adapter and  havingadapter also include robot has created issues for us in customizing our bots. I think it does not create a clear separation of concerns. If you have any suggestions on this I would be happy to hear them.
Thanks 👍


fix directContext setting - children of selected asset not properly…

… initialized
Pull Request
Hi,
Thanks for helping us improve the Predix UI platform by submitting a Pull Request.
To help us merge your Pull Request as fast as possible, please fill out the following sections:

A description of the changes proposed in the pull request:

This is a bug fix - when we pass an initial browser context that includes a selectedAsset, and that selected asset has children, then the children of that asset are not properly initialized in the context browser. The result is that when the browser is opened and one of the children clicked on, the following javascript error occurs:
px-context-browser.html:896 Uncaught TypeError: Cannot read property 'children' of undefined     at HTMLElement.changeSelected (px-context-browser.html:896)     at px-context-browser.html:866
The one-line change removes a continue statement in recursiveAddChildren that effectively skips processing the children of the selected asset. All current wct tests continue to pass.

A reference to a related issue (if applicable):

@mentions of the person or team responsible for reviewing proposed changes:

working tests:

The tests need to be functional and/or unit tests, written for the wct framework, and placed in the test folder, following our testing guidelines.

HI Jim - Isee what you're trying to do - the main question is, why are you passing an initial context, with children?
The idea behind initial context is that there ISN'T a selected asset - you start from the left hand column, and start drilling.
If you DO have a selected Asset in mind, you can start with direcontext. the expectation is that the selectedAsset does not have children - is this where that logic breaks, and your selected asset has children?

Yes, our selected asset has children.  The use case is as follows:

the user has navigated to and opened an asset.
the user then re-opens the context browser to select a different asset.

At this point, we want to show the currently selected asset and the current state (including children of the selected asset) exactly as it was when they previously selected an asset. I guess I misspoke when I mentioned "initial context" - what we are doing is setting the "browserContext" property with the full path to the selected asset, with one of the items being marked as "selectedAsset".
In our case, that selectedAsset has children, which are displayed in the  browser when we reopen, but throw the mentioned error when they are clicked on.
It seems to me that when the context browser is re-opened, it should look the same as it did when the user was interacting with it last, and that includes seeing the children of the selected asset. We pass the correct directContext to show that, but the component throws the error when one of the children is clicked on.
To answer your question - yes, that is where the logic breaks - our selected asset has children. The fix seems very straightforward - there really is no reason for the continue, since the recursion will stop once the selected asset it found.
Does that make sense, or am I missing something ?

no, it makes sense. I had to confer with our designers to make sure they're ok with allowing the selected asset to have children - which they are! so, i'll marge this now.

available in v1.6.9


Metal device error on M1 MBP

When loading metal models on my M1 Macbook Pro I see this line print:
[14:29:11] ~/tvm/src/runtime/metal/metal_device_api.mm:165: Intializing Metal device 0, name=Apple M1

and then quickly thereafter I get this failed check/error:
Check failed: (dev.device_id >= 0 && static_cast<size_t>(dev.device_id) < devices.size()) is false: Invalid Metal device_id=0

Looking at the code in tvm/src/runtime/metal/metal_device_api.mm it seems that this check should absolutely not fail if I have a device at all, which I know I do based on the line printed just before the check.

cc @echuraev

Hello @schell!
I took a look at your problem and I'm not able to reproduce the issue. I tried on Apple M1 and x86. And on both machines everything works fine. Could you please provide more details about your problem? Maybe some simple scripts which reproduces the issue or something like that?
I used the following simple script for running some simple model on metal:
import numpy as np
import math

import os
import tvm
from tvm import relay, auto_scheduler
from tvm import testing
from tvm.contrib import utils, xcode, coreml_runtime, graph_runtime

target = "metal"
target_host = "llvm -mtriple=arm64-apple-darwin20.5.0"

def _get_model(shape, dtype, var_names):
    """Return a model and any parameters it may have."""
    a = relay.var(next(var_names), shape=shape, dtype=dtype)
    out = relay.op.reduce.mean(a, 0)
    params = {}
    return out, params

def converter(shape):
    print("Shape: {}".format(shape))
    dtype = "float32"
    # b, data
    inputs = {"data": tvm.nd.array(np.random.uniform(-128, 127, shape).astype(dtype))}
    mod, params = _get_model(shape, dtype, iter(inputs))
    if isinstance(mod, tvm.relay.expr.Call):
        mod = tvm.IRModule.from_expr(mod)
    print('mod: ', mod)
    with tvm.transform.PassContext(opt_level=3):
        graph_module = relay.build(mod['main'], target=target, target_host=target_host, params=params)
    #with auto_scheduler.ApplyHistoryBest("my_mean_model_metal"):
    #    with tvm.transform.PassContext(opt_level=3, config={"relay.backend.use_auto_scheduler": True}):
    #        graph_module = relay.build(mod['main'], target=target, target_host=target_host, params=params)
    return graph_module

def run(graph_module):
    ctx = tvm.metal(0)
    m = graph_runtime.graph_executor.GraphModule(graph_module["default"](ctx))
    m.run()

if __name__ == "__main__":
    shape = (2, 1)
    gm = converter(shape)
    run(gm)

I'm not sure what changed but I am no longer seeing this problem. 🤷
Thanks @echuraev !


Installing the official plugins

Hi, I want to install the borders-plus-plus and csgo-vulkan-fix official plugins. What would be the correct approach to using hyprload for this. I tried to add "hyprwm/hyprland-plugins" to the hyprload.toml file, but I get an error saying that there is no manifest file for hyprland-plugins.

I figured it out, I had to specify which plugin to install using this:
{ git = "https://github.com/hyprwm/hyprland-plugins.git", branch = "main", name = "borders-plus-plus" }


python3Packages.flask-appbuilder: 3.3.2 -> 3.3.3

Motivation for this change
Update to latest upstream release 3.3.3
Change log: https://github.com/dpgaspar/Flask-AppBuilder/releases/tag/v3.3.3
Fix build (https://hydra.nixos.org/build/154555775)
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 139569 run on x86_64-linux 1

3 packages failed to build:

apache-airflow
python38Packages.apache-airflow
python39Packages.apache-airflow

2 packages built:

python38Packages.flask-appbuilder
python39Packages.flask-appbuilder


feat: amqplib (RabbitMQ) instrumentation

https://aspecto-io.monday.com/boards/312932205/pulses/1092412541


Add commodity trading application

Resolves #1024
The application has been deployed: https://commodity-trading.taipy.cloud/
The repository has been created:
Question: What should be the position of the application?

Commodity Trading - Taipy (2).zip

@AlexandreSajus I didn't know it changed nothing. I think this is bad... We should create fake data and have the interactions working. What do you think?

It's your call, it's a lot of fake data to generate so we could generate it randomly. Or we could just explain that there is no interaction because this is a mock application.

An "Enterprise" application shouldn't be in this state.

Blocked by creating interaction in application.

What do you think of it now? https://commodity-trading.taipy.cloud/
@AlexandreSajus

It is an improvement, but some pages still don't have interaction like this one:
https://commodity-trading.taipy.cloud/group_contributions
Is this intended?

Zacch didn't bring interactivity to these pages: https://github.com/Avaiga/demo-commodity-trading/pull/9

This is done. Viz elements are inactive if they don't bring interactivity.


add scheduling framework for htlc

Codecov Report

Merging #148 into dev will increase coverage by 1.07%.
The diff coverage is 70.96%.

@@             Coverage Diff              @@
##                dev     #148      +/-   ##
============================================
+ Coverage     32.83%   33.91%   +1.07%
- Complexity      547      570      +23
============================================
  Files           155      159       +4
  Lines          4928     5016      +88
  Branches        357      365       +8
============================================
+ Hits           1618     1701      +83
+ Misses         3191     3190       -1
- Partials        119      125       +6

Impacted Files
Coverage Δ
Complexity Δ

...m/webank/wecross/config/NetworkManagerFactory.java
0% <ø> (ø)
0 <0> (ø)
:arrow_down:

.../com/webank/wecross/stub/bcos/BCOSConfigUtils.java
39.09% <0%> (-0.36%)
6 <0> (ø)

...m/webank/wecross/stub/fabric/FabricStubConfig.java
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

...ebank/wecross/stub/jdchain/JDChainConfigUtils.java
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

.../com/webank/wecross/routine/htlc/HTLCResource.java
31.81% <0%> (+31.81%)
4 <0> (+4)
:arrow_up:

...main/java/com/webank/wecross/host/WeCrossHost.java
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

...ain/java/com/webank/wecross/routine/htlc/HTLC.java
28.57% <33.33%> (+28.57%)
2 <1> (+2)
:arrow_up:

...com/webank/wecross/routine/htlc/HTLCScheduler.java
58.06% <58.06%> (+58.06%)
3 <3> (+3)
:arrow_up:

...ebank/wecross/routine/htlc/GlobalHTLCResource.java
80% <80%> (ø)
3 <3> (?)

.../webank/wecross/routine/htlc/JobDetailFactory.java
85.71% <85.71%> (ø)
1 <1> (?)

... and 10 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 702065d...8308a39. Read the comment docs.

Codecov Report

Merging #148 into dev will increase coverage by 1.01%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##                dev     #148      +/-   ##
============================================
+ Coverage     32.83%   33.84%   +1.01%
- Complexity      547      571      +24
============================================
  Files           155      158       +3
  Lines          4928     5070     +142
  Branches        357      379      +22
============================================
+ Hits           1618     1716      +98
- Misses         3191     3226      +35
- Partials        119      128       +9

Impacted Files
Coverage Δ
Complexity Δ

...ava/com/webank/wecross/stub/bcos/Web3jFactory.java
57.14% <0.00%> (-14.29%)
3.00% <0.00%> (ø%)

...va/com/webank/wecross/routine/htlc/JobManager.java
80.64% <0.00%> (ø)
4.00% <0.00%> (?%)

.../webank/wecross/routine/htlc/JobDetailFactory.java
80.00% <0.00%> (ø)
1.00% <0.00%> (?%)

.../java/com/webank/wecross/routine/htlc/HTLCJob.java
89.47% <0.00%> (ø)
4.00% <0.00%> (?%)

...ava/com/webank/wecross/stub/bcos/BCOSResource.java
20.00% <0.00%> (+5.00%)
3.00% <0.00%> (+1.00%)
:arrow_down:

.../com/webank/wecross/routine/htlc/HTLCResource.java
31.81% <0.00%> (+31.81%)
4.00% <0.00%> (+4.00%)
:arrow_down:

...com/webank/wecross/exception/WeCrossException.java
100.00% <0.00%> (+100.00%)
2.00% <0.00%> (+2.00%)
:arrow_down:

Codecov Report

Merging #148 into dev will increase coverage by 11.2%.
The diff coverage is 54.42%.

@@             Coverage Diff              @@
##                dev     #148      +/-   ##
============================================
+ Coverage     22.64%   33.84%   +11.2%
- Complexity      397      571     +174
============================================
  Files           152      158       +6
  Lines          4686     5070     +384
  Branches        350      379      +29
============================================
+ Hits           1061     1716     +655
+ Misses         3564     3226     -338
- Partials         61      128      +67

Impacted Files
Coverage Δ
Complexity Δ

...ava/com/webank/wecross/config/NetworksFactory.java
47.05% <ø> (ø)
3 <0> (?)

...m/webank/wecross/config/NetworkManagerFactory.java
0% <ø> (ø)
0 <0> (?)

...ebank/wecross/stub/jdchain/JDChainConfigUtils.java
0% <ø> (ø)
0 <0> (ø)
:arrow_down:

...ain/java/com/webank/wecross/routine/htlc/HTLC.java
28.57% <0%> (+28.57%)
2 <0> (+2)
:arrow_up:

.../com/webank/wecross/routine/htlc/HTLCResource.java
31.81% <0%> (+31.81%)
4 <0> (+4)
:arrow_up:

.../com/webank/wecross/config/WeCrossHostFactory.java
0% <0%> (ø)
0 <0> (?)

...main/java/com/webank/wecross/host/WeCrossHost.java
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

...com/webank/wecross/routine/htlc/HTLCScheduler.java
46.57% <46.57%> (+46.57%)
6 <6> (+6)
:arrow_up:

.../webank/wecross/routine/htlc/JobDetailFactory.java
80% <80%> (ø)
1 <1> (?)

...va/com/webank/wecross/routine/htlc/JobManager.java
80.64% <80.64%> (ø)
4 <4> (?)

... and 94 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9f6b373...729a97e. Read the comment docs.

Codecov Report

Merging #148 into dev will decrease coverage by 0.55%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##                dev     #148      +/-   ##
============================================
- Coverage     22.64%   22.08%   -0.56%
- Complexity      397      406       +9
============================================
  Files           152      156       +4
  Lines          4686     4927     +241
  Branches        350      380      +30
============================================
+ Hits           1061     1088      +27
- Misses         3564     3776     +212
- Partials         61       63       +2

Impacted Files
Coverage Δ
Complexity Δ

...wecross/restserver/request/TransactionRequest.java
43.58% <0.00%> (-21.63%)
7.00% <0.00%> (-1.00%)

.../webank/wecross/routine/htlc/HTLCResourcePair.java
0.00% <0.00%> (ø)
0.00% <0.00%> (?%)

.../java/com/webank/wecross/routine/htlc/HTLCJob.java
0.00% <0.00%> (ø)
0.00% <0.00%> (?%)

...va/com/webank/wecross/routine/htlc/JobManager.java
0.00% <0.00%> (ø)
0.00% <0.00%> (?%)

.../webank/wecross/routine/htlc/JobDetailFactory.java
0.00% <0.00%> (ø)
0.00% <0.00%> (?%)

...webank/wecross/stub/bcos/BCOSContractResource.java
5.02% <0.00%> (+1.36%)
4.00% <0.00%> (+1.00%)
:arrow_down:

...ava/com/webank/wecross/stub/bcos/BCOSResource.java
15.00% <0.00%> (+15.00%)
2.00% <0.00%> (+2.00%)
:arrow_down:

.../com/webank/wecross/routine/htlc/HTLCResource.java
25.00% <0.00%> (+25.00%)
4.00% <0.00%> (+4.00%)
:arrow_down:

...com/webank/wecross/exception/WeCrossException.java
100.00% <0.00%> (+100.00%)
2.00% <0.00%> (+2.00%)
:arrow_down:

Codecov Report

Merging #148 into dev will decrease coverage by 0.55%.
The diff coverage is 1.21%.

@@             Coverage Diff              @@
##                dev     #148      +/-   ##
============================================
- Coverage     22.64%   22.08%   -0.56%
- Complexity      397      406       +9
============================================
  Files           152      156       +4
  Lines          4686     4927     +241
  Branches        350      380      +30
============================================
+ Hits           1061     1088      +27
- Misses         3564     3776     +212
- Partials         61       63       +2

Impacted Files
Coverage Δ
Complexity Δ

...in/java/com/webank/wecross/config/ZonesConfig.java
11.76% <ø> (ø)
2 <0> (ø)
:arrow_down:

...ebank/wecross/stub/jdchain/JDChainConfigUtils.java
0% <ø> (ø)
0 <0> (ø)
:arrow_down:

...com/webank/wecross/common/ResourceQueryStatus.java
0% <ø> (ø)
0 <0> (ø)
:arrow_down:

.../webank/wecross/routine/htlc/JobDetailFactory.java
0% <0%> (ø)
0 <0> (?)

.../java/com/webank/wecross/routine/htlc/HTLCJob.java
0% <0%> (ø)
0 <0> (?)

...a/com/webank/wecross/config/WeCrossHostConfig.java
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

.../webank/wecross/routine/htlc/HTLCResourcePair.java
0% <0%> (ø)
0 <0> (?)

...com/webank/wecross/routine/htlc/HTLCScheduler.java
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

...va/com/webank/wecross/routine/htlc/JobManager.java
0% <0%> (ø)
0 <0> (?)

...ain/java/com/webank/wecross/routine/htlc/HTLC.java
1.96% <0%> (+1.96%)
1 <0> (+1)
:arrow_up:

... and 12 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9f6b373...08a011d. Read the comment docs.

Codecov Report

Merging #148 into dev will decrease coverage by 0.55%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##                dev     #148      +/-   ##
============================================
- Coverage     22.64%   22.08%   -0.56%
- Complexity      397      406       +9
============================================
  Files           152      156       +4
  Lines          4686     4927     +241
  Branches        350      380      +30
============================================
+ Hits           1061     1088      +27
- Misses         3564     3776     +212
- Partials         61       63       +2

Impacted Files
Coverage Δ
Complexity Δ

...wecross/restserver/request/TransactionRequest.java
43.58% <0.00%> (-21.63%)
7.00% <0.00%> (-1.00%)

.../webank/wecross/routine/htlc/JobDetailFactory.java
0.00% <0.00%> (ø)
0.00% <0.00%> (?%)

.../java/com/webank/wecross/routine/htlc/HTLCJob.java
0.00% <0.00%> (ø)
0.00% <0.00%> (?%)

...va/com/webank/wecross/routine/htlc/JobManager.java
0.00% <0.00%> (ø)
0.00% <0.00%> (?%)

.../webank/wecross/routine/htlc/HTLCResourcePair.java
0.00% <0.00%> (ø)
0.00% <0.00%> (?%)

...webank/wecross/stub/bcos/BCOSContractResource.java
5.02% <0.00%> (+1.36%)
4.00% <0.00%> (+1.00%)
:arrow_down:

...ava/com/webank/wecross/stub/bcos/BCOSResource.java
15.00% <0.00%> (+15.00%)
2.00% <0.00%> (+2.00%)
:arrow_down:

.../com/webank/wecross/routine/htlc/HTLCResource.java
25.00% <0.00%> (+25.00%)
4.00% <0.00%> (+4.00%)
:arrow_down:

...com/webank/wecross/exception/WeCrossException.java
100.00% <0.00%> (+100.00%)
2.00% <0.00%> (+2.00%)
:arrow_down:

Codecov Report

Merging #148 into dev will decrease coverage by 0.55%.
The diff coverage is 1.21%.

@@             Coverage Diff              @@
##                dev     #148      +/-   ##
============================================
- Coverage     22.64%   22.08%   -0.56%
- Complexity      397      406       +9
============================================
  Files           152      156       +4
  Lines          4686     4927     +241
  Branches        350      380      +30
============================================
+ Hits           1061     1088      +27
- Misses         3564     3776     +212
- Partials         61       63       +2

Impacted Files
Coverage Δ
Complexity Δ

...in/java/com/webank/wecross/config/ZonesConfig.java
11.76% <ø> (ø)
2 <0> (ø)
:arrow_down:

...ebank/wecross/stub/jdchain/JDChainConfigUtils.java
0% <ø> (ø)
0 <0> (ø)
:arrow_down:

...com/webank/wecross/common/ResourceQueryStatus.java
0% <ø> (ø)
0 <0> (ø)
:arrow_down:

.../webank/wecross/routine/htlc/JobDetailFactory.java
0% <0%> (ø)
0 <0> (?)

.../java/com/webank/wecross/routine/htlc/HTLCJob.java
0% <0%> (ø)
0 <0> (?)

...a/com/webank/wecross/config/WeCrossHostConfig.java
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

.../webank/wecross/routine/htlc/HTLCResourcePair.java
0% <0%> (ø)
0 <0> (?)

...com/webank/wecross/routine/htlc/HTLCScheduler.java
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

...va/com/webank/wecross/routine/htlc/JobManager.java
0% <0%> (ø)
0 <0> (?)

...ain/java/com/webank/wecross/routine/htlc/HTLC.java
1.96% <0%> (+1.96%)
1 <0> (+1)
:arrow_up:

... and 12 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9f6b373...4024a36. Read the comment docs.


The IDE support artifacts included in compose-jb are incompatible with current Android Studio versions

Affected versions
JB-Compose v1.0.0-alpha4-build331
...in combination with...
Android Studio Arctic Fox 2020.3.1
Context
The compose-jb Multiplatform Gradle plugin provides variables to reference a whole family of Compose artifacts.
Relevant to this issue are the references for IDE Preview support, being:

compose.preview
compose.uitooling

For Desktop targets, these artifacts work as expected, however for Android targets the referenced artifacts are not compatible with current or recent versions of Android Studio; namely Arctic Fox 2020.3.1 (Patch 1 & 2).  This problem has been raised in the community a number of times and is clearly a big pain point for anyone trying to use Multiplatform Compose with both Desktop and Android, at this time (see the Slack links below).
Details
Action taken

Include these tooling artifacts in the top-level application module of an Android project.
Create a valid @Composable function and further annotate it with @Preview.

Expected behaviour
The code editing window adopts the Code / Split / Design view and a visual preview of the @Composable function is shown.
Actual behaviour
Code / Split / Design view is shown but within it the IDE only shows errors that it cannot find class ComposeViewAdapter.
References
Related Slack links: [1], [2], [3], [4]
There are also reports of the same issue affecting plain 'Google' Compose artifacts back in July; so possibly JetBrains Artifacts are inheriting this bug from Compose trunk at around about that time, and should now rebase on a later version?

Tried in Bumblebee Canary 11 - it worked fine. Will check in AF.

Played with it a bit. Intermediate results:
in AF preview is not working. I tried with wizard-generated project "Empty Compose activity" and got errors. So I switched back to BumbleBee.
When preview is working, it still says "The following classes could not be found:
- androidx.compose.ui.tooling.preview.ComposeViewAdapter", but it doesn't impact preview run.
However if I replace
id 'org.jetbrains.kotlin.android'
with
id 'org.jetbrains.kotlin.multiplatform'
it stops working and I don't see the reason so far.

To sum up:

Currently Google interactive preview feature doesn't work with Compose MPP Android libraries. Dedicated preview works fine.
AGP doesn't work well with kotlin.mpp. So it is not possible to run 'Google' preview of common code, whatever Android libraries are used.

For now the only possible option is the following:

Use Compose MPP template for MPP projects.
Use JB preview for common code.
Enable AGP for android module and use dedicated (by button) 'Google' preview there

We are working on tooling improvement at the moment. Maybe we could also improve preview somehow.

Starting with 1.0.0-beta5 (Beta release) Compose MPP uses Jetpack compose library for Android, so it should be fine now. Let me know if there are still any issues.

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


Tasks on code evaluation

Hello, I've noticed that bigcode-evaluation-harness takes inspiration from this project. However, the implementation does not support vllm or other advanced inference methods. I hope to know if it's possible to add evaluation on coding tasks like mbpp or humaneval.

We are currently discussing this here https://github.com/EleutherAI/lm-evaluation-harness/issues/1157


Device Request - 1 button smart button - TS0041 (_TZ3000_qgwcxxws)

Prerequisites:

Before requesting a device addition, please ensure there is not already a request for the device among the open issues.
Make sure your Homey is upgraded to firmware v5 or higher.
You need a physical example of the device.

Device Information

Device Name: 1 button smart switch
Device Model: TS0041 (_TZ3000_qgwcxxws)
Device Description: a single button smart button from aliexpress
Link to device image: https://nl.aliexpress.com/item/1005006774161745.html?src=google

Device Interview
N.A.
How to interview a device
Cant interview the device it never comes up with the dialog

Note: To be able to add more devices to the Tuya Zigbee app, we rely on community members like you to provide interviews of the devices you want to be added. Thank you for your contribution!

Does this mean it's added?

I have few of these buttons also. They appear as an unknown zigbee devices despite the "_TZ3000_qgwcxxws / TS0041" is listed in the compatible devices under "1 Button Smart Remote Controller"


Documentation: swith container's width

Add switch(checkbox) to sub-navbar to toggle container-xxl/container-fluid classes of top containers.

Thanks @WinterSilence, but I've purposefully steered away from anything full-width because line length and readability greatly suffers. Having a fixed-width container is the right move for us still.
I'm sure you could apply this via user style though if you really want :).

@mdo

line length and readability greatly suffers

Why users can't decide to themselves what's better for them? wide screen mode is optional and disabled by default

Sorry, I just don't think it's a preference worth putting up to the visitor. Personally I think it's not good design to simply add options for the sake of adding them. Hope that makes sense!


CONECT records generate multiple copies of bonds

If I have a PDB ligand file e.g:
pp_ligand_33892_251397.pdb.txt
which contains my dodgy "multiple serials in the conect records for double bonds" I get some slightly weird behaviour displaying multiple bonds where I get a mixture of double and single bonds (so everything looks like triple bonds). - actually there's a trivial typo that breaks the representation building in current master but that's simple to fix.
I've done some digging and have a fix (I'll submit this, then reference the issue number, see below), but don't think it's optimal.

The pdb-parser adds bonds it encounters in the CONECT records to the structure. Because bonds are specified both ways round there are twice as many bonds from this step (but the bonds orders are currently correct thanks to your fix in #133 )
For PDB files, dontAutoBond is false, which eventually results in calls to calculateBondsWithin/Between
The first time this is called on a particular residue it calls getBonds which ends up calling calculateResidueBonds, which calculates bonds based on interatom distances. I've added code so that if those bonds are already specified the bond order is copied and the ResidueType.bonds.bondOrders property is correct, this might not be the best way of doing this.
Back in calculateBondsWithin - the bonds from ResidueType get copied back onto the actual structure (now with correct bond orders).
The structure now has 30 bonds: original parse of conect records is 20 (specified both ways round) plus 10 copied from ResidueType.
When it comes to deducing reference atoms, shifts etc, half of those bonds (the ones specified 'backwards' in the CONECT section fail to find a reference atom (fixed in my version)
My shoddy getReferenceAtomIndex implementation adds together undefined and an integer to produce a NaN for the reference atom index... (this happens when looking up the reference atom for bonds specified backwards e.g. CONECT 2 1 )

My change to BondProxy.getReferenceAtomIndex now checks serials both ways round

THREE.js ends up normalizing a NaN, NaN, NaN vector to 0,0,0 as our shift dir, so the two cylinders/lines are drawn on top of each other.

The upshot of all these changes is that all 3 instances of each double bond now pick equivalent reference atoms and render their cylinders lines in exactly the same place, so it looks fine.
Question: Would it be better to just make sure there are the correct number of bonds in the structure? This means keeping track of the CONECT that's already been seen and not adding duplicates, plus also not adding duplicate bonds in calculateBondsWithin?
Alternatively, leave the parser alone but when applying bonds from ResidueType to structure first clear out all existing bonds for that residue?

I took the liberty to commit the obvious fixes already, thanks!
I like using bond orders from existing bonds in calculateResidueBonds.
What about adding a function that removes duplicate bonds from the BondStore after bond parsing and calculation is finished? It is a handy function to have. Eventually an index that allows fast queries by atom indices could be added to BondStore and be used to avoid adding duplicates.

Cool, thanks!

What about adding a function that removes duplicate bonds from the BondStore after bond parsing and calculation is finished?
Eventually an index that allows fast queries by atom indices could be added to BondStore and be used to avoid adding duplicates.

Doing the first part would implicitly build the index for the second part? This sort of relates to previous discussion regarding a BondGraph type. In terms of implementation, is there a more efficient way of doing this than just plain objects: {aid : { aid2: bondIndex1, ... }, ...} - Building and maintaining that structure in BondStore would allow a method like:
BondStore.prototype.bondIndicesForAtom( a1 ) returns array of bond indices
or
BondStore.prototype.eachBondForAtom( a1, callback ) (callback takes bondProxy)
which would allow deduplication (as you say either avoiding adding twice or post-processing) and also simplify the code that finds the reference atom for drawing double bonds.

I made a gist](https://gist.github.com/fredludlow/eae62f1bc9a66e35e6b158010db26d7b) of what I meant, though I'm not sure about having the callback taking function in that file as that means importing bond proxy...

Thanks for the suggestions. Let me test how it scales.
As to eachBondForAtom. I will probably make the bonds accessible from the atom object directly.

@fredludlow Implemented updating bond orders similarly to your initial code. Also, don't add automatically calculated bonds to the bondStore if they already exist. See 20a4b1219386958d15a8dc13e840b798adc396da. The code builds an atom pair to bond mapping but only for the bonds that are in the file, which should not be too many.
I tried building an atom pair to bond mapping inside of the BondStore (as in your gist) but that is too slow for large structures. For example, for MMTF files building it takes >4x longer than parsing the file. I will test implementing a static adjacency list using Typed Arrays to get efficient access to bonded atoms from an atom.

Added a BondHash class for efficient access to bonded atoms from an atom, see  9a90d23506b839e444f515e6294a50cb67f990cf.
Compared to an Array-of-Arrays implementation it is ~15 times faster.

Changed the PDB parser so that bonds are not added multiple times, see 2a847fc693212618babb75ceaa605da5e57c494a. There are not that many bonds in PDB files and the files are not that big (unless you misuse the format). I guess that is a good compromise.

Added a BondHash class for efficient access to bonded atoms from an atom, see 9a90d23.
Compared to an Array-of-Arrays implementation it is ~15 times faster.

:-)
Excellent, thanks once again! I can refactor the existing multiple-bond code to use this if you think it would be cleaner and/or quicker? -(I realise I also said I'd do the off-centred multiple bond representation, which I've not forgotten, will get on with it later in the week).

I can refactor the existing multiple-bond code to use this if you think it would be cleaner and/or quicker?

That would be great.

(I realise I also said I'd do the off-centred multiple bond representation, which I've not forgotten, will get on with it later in the week).

Sure, that would especially nice for rings, right?


Need a license

We need a license - any ideas?

CC-0
CC-BY

I would consider this data, not software.
I might be biased towards CC-0, this is more like metadata of events and original authors of the metadata don't need to be credited.

+1 for CC0


Add support for ARM Cortex-A8 cores with Client VM

Platform: Ubuntu Base 14.04.6 LTS (Trusty Tahr)
Architecture: armhf (32-bit ARM Cortex-A8 core, ARMv7-A architecture)
Processor: 800-MHz i.MX507 Multimedia Application Processor Model MCIMX507CVM8B
This is a request to add the client JVM variant to the 32-bit Linux ARM build of the JDK so that it can support the old, but still prevalent, ARM Cortex-A8 core.
In my tests with the latest JDK 13 sources, building for both the client and server variants increases the size of the installed JDK on disk by only 5.1 percent, adding less than 15 megabytes. The increase is found in two files: jmods/java.base.jmod is 4.1 megabytes larger, while the new lib/client directory takes up 10.6 megabytes.
The bug reported by JDK-8202692, "Fatal error SIGILL (ILL_ILLOPC) on ARM Cortex-A8 processor," prevents the use of the Server VM on ARM Cortex-A8 cores for JDK 12 and later. A discussion of the problem can be found in the May 2018 Archives of the mailing list, starting with the subject "C2 compiler gets SIGILL/ILL_ILLOPC".
For JDK 11, a work-around is to pass the command option -XX:-AssumeMP to the java command, but that option is not recognized by JDK 12 and later.
OpenJDK Server VM AdoptOpenJDK (build 11.0.3+7, mixed mode):
$ ~/opt/jdk-11.0.3+7/bin/java -XX:-AssumeMP ...
OpenJDK Server VM warning: Option AssumeMP was deprecated in version 10.0 and
will likely be removed in a future release.
... [works] ...

OpenJDK Server VM AdoptOpenJDK (build 12.0.1+12, mixed mode):
$ ~/opt/jdk-12.0.1+12/bin/java -XX:-AssumeMP ...
OpenJDK Server VM warning: Ignoring option AssumeMP; support was removed in 12.0
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGILL (0x4) at pc=0x2b8664c4, pid=7631, tid=7632
... [fails] ...

The bug occurs only in the Server VM, so a better solution for JDK 12 and later is simply to use the Client VM:
OpenJDK Client VM (build 13-internal+0-adhoc.ubuntu.jdk, mixed mode):
$ ~/opt/jdk-13-linux-arm-clientANDserver-release/bin/java -client ...
... [works] ...

Adding the Client VM is the only way to support the ARM Cortex-A8 core in JDK 12 and later without requiring that developers build the JDK themselves.

If I read this right, the consumer-grade product this can be found in is the Beaglebone Black:
http://www.ti.com/tool/beaglebk
which has an A8 core in it (Sitara AM335x).

based on that, I found this as well: https://github.com/balena-io-library/base-images/issues/498

I will investigate providing a pull request. It looks as if the armhf (armv7l) builds are created on native ARMv7 BareMetal Servers hosted at Scaleway in Paris. What is the reason for building on native hardware rather than using one of the following environments on a 64-bit amd64 (x86_64) computer?

the Ubuntu cross-compiling tools installed by the package crossbuild-essential-armhf
a QEMU virtual machine with the armv7l architecture

I've been cross-compiling the ARM JDK for maybe a couple years now without problems.

There's another attempt to fix the original server JDK issue (PLDW instruction) at https://bugs.openjdk.java.net/browse/JDK-8222825
I'll email Boris and point him at this conversation.
I can imagine that there are other good reasons to providing a client JVM for arm 32, so fixing server JDK doesn't negate providing client JDK.

There's another attempt to fix the original server JDK issue (PLDW instruction) at https://bugs.openjdk.java.net/browse/JDK-8222825

That is very good news, although it's a bit frustrating that the identical issue I reported a year ago was closed so quickly as "Not an issue." See: JDK-8202692 - Fatal error SIGILL (ILL_ILLOPC) on ARM Cortex-A8 processor.
It would be great if we can keep the JDK working on ARM Cortex-A8 cores for just a little bit longer. I find that both VMs work quite well, when they work, with the Server VM being faster but using more memory. For example, if the Client VM uses 80% CPU and 30% memory on an i.MX507 ARMv7-A processor, the Server VM can eventually get down to 55% CPU and 40% memory usage.

BellSoft is working on a fix for this upstream OpenJDK issue https://bugs.openjdk.java.net/browse/JDK-8222825 on ARM. We connected with Jeff offline, and Jeff kindly offered help verifying the fix we have on the hardware he has got. Once confirmed, this will be submitted for OpenJDK review.
Leaving it up to the submitter and AOJDK to decide what to do with with the request to add Client VM to AOJDK.

Thanks all - I imagine we'll produce the VMs once that fix lands.

I tested the fix for the Server VM from Boris Ulasevich at BellSoft, and it looks good so far on my ARM Cortex-A8 processor. He is making some more changes in the assertion conditions, so I'm waiting for his next update.
I think it might still be useful to have the Client VM in the arm JDK for the following reasons:

It's nice to have a backup VM in case an error like JDK-8202692 ever shows up again.

My test program takes a hit in its performance with the Server VM after running for about 20 minutes as the C2 compiler, I'm guessing, does its magic. After that brief performance hit, the overall CPU usage eventually drops by about 10 percent. The test program is an animation, though, so you can actually see the drop in the frame rate during the transition. I tried to force all such optimizations at startup time with -XX:-TieredCompilation, but I didn't notice a difference.
Even though the Client VM uses about 10 percent more CPU usage, the performance remains constant, so it may be preferred for some applications.

I'm still working on a pull request, which might be just a one-line change.

What is the reason for building on native hardware ...?

To answer my own question ...

My native builds for x64 on x64 take 18 minutes.
My cross-compile builds for arm on x64 take 20 minutes.
My native builds for arm on arm using a QEMU virtual machine take 17 hours 22 minutes.
And my actual ARM device is about 40 percent slower than my QEMU virtual machine!

Meanwhile, the AdoptOpenJDK builds on the Scaleway ARMv7 BareMetal Servers take only 1 hour 25 minutes. Also, the build scripts only work for native builds because they download or build other software on the machine (Alsa, Freetype, Freemarker, CaCerts), and because they run the target JDK at the end of the build to output its version strings.

Now I consistently get the same error as #1004, and the workaround that I remember using yesterday (temporarily using JDK 12 for the boot JDK) doesn't work today. Even if I download the gradle-5.2.1-bin.zip file manually, it just fails later on trying to get https://repo.maven.apache.org/maven2/org/codehaus/groovy/groovy-all/2.5.6/groovy-all-2.5.6.pom. Any ideas?

Hi everyone!
I have made a Singularity image using  jdk-11.0.2+7 on it.
I am trying to run a tool called Trimmomatic inside the image and while for over 20 different samples it is running as it should, in a specific one I get the following error:
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGILL (0x4) at pc=0x00007f51c8695367, pid=5762, tid=5819
#
# JRE version: OpenJDK Runtime Environment (11.0.2+7) (build 11.0.2+7)
# Java VM: OpenJDK 64-Bit Server VM (11.0.2+7, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# J 784 c2 org.usadellab.trimmomatic.trim.IlluminaClippingTrimmer$IlluminaLongClippingSeq.readsSeqCompare(Lorg/usadellab/trimmomatic/fastq/FastqRecord;)Ljava/lang/Integer; (306 bytes) @ 0x00007f51c8695367 [0x00007f51c8693e40+0x0000000000001527]
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
#   https://github.com/AdoptOpenJDK/openjdk-build/issues
#
It is really strange to me, as it is returning this error only with a specific file while this file has exactly the same format with all the others..
Do you have any idea why I may get this error?
Thank you in advance,
Haris

How far is this going?
is https://bugs.openjdk.java.net/browse/JDK-8202692 fixed?
I'm having this issue on beaglebone black, https://beagleboard.org/black.

is https://bugs.openjdk.java.net/browse/JDK-8202692 fixed?

Yes, that bug was fixed with JDK-8222825, "ARM32 SIGILL issue on single core CPU (not supported PLDW instruction)," in OpenJDK 13. And this specific issue report for the AdoptOpenJDK build was also fixed by adding the Client VM to the build.

I'm having this issue on beaglebone black, https://beagleboard.org/black.

The original error that lead to this issue was an unsupported PLDW instruction. Is that what you're seeing? If you're just getting another SIGILL fatal error, you should report it in the Java Bug Database.