Vulnerabilities

Heya. 👋🙂
This project looks exactly like what I've been looking for and looks pretty high-quality too, with tests and all. 🙌
Thanks for the great work @berenddeboer. ❤
When installing though, I discovered there are a few packages used which have known vulnerabilities. It'd be fantastic to get a new version released with those issues fixed. 🙏
Output of npm audit
# npm audit report

fast-xml-parser  <=4.2.3
Severity: high
fast-xml-parser vulnerable to Prototype Pollution through tag or attribute name - https://github.com/advisories/GHSA-x3cc-x39p-42qx
fast-xml-parser vulnerable to Regex Injection via Doctype Entities - https://github.com/advisories/GHSA-6w63-h3fj-q4vw
No fix available
node_modules/cdk-rds-sql/node_modules/fast-xml-parser
  @aws-sdk/client-sts  <=3.54.1 || 3.55.0 - 3.186.0 || 3.188.0 - 3.272.0
  Depends on vulnerable versions of fast-xml-parser
  node_modules/cdk-rds-sql/node_modules/@aws-sdk/client-sts
    @aws-sdk/client-secrets-manager  3.12.0 - 3.272.0
    Depends on vulnerable versions of @aws-sdk/client-sts
    node_modules/cdk-rds-sql/node_modules/@aws-sdk/client-secrets-manager
      cdk-rds-sql  *
      Depends on vulnerable versions of @aws-sdk/client-secrets-manager
      node_modules/cdk-rds-sql

xml2js  <0.5.0
Severity: moderate
xml2js is vulnerable to prototype pollution - https://github.com/advisories/GHSA-776f-qx25-q3cc
fix available via `npm audit fix`
node_modules/cdk-rds-sql/node_modules/xml2js
  aws-sdk  <=2.1353.0
  Depends on vulnerable versions of xml2js
  node_modules/cdk-rds-sql/node_modules/aws-sdk

6 vulnerabilities (2 moderate, 4 high)

To address issues that do not require attention, run:
  npm audit fix

Some issues need review, and may require choosing
a different dependency.

In case you haven't done so, maybe enabling "Dependabot security updates" in the repository settings can help make maintenance easier for you. 🎛
Greetings from Berlin. 👋

All fixed.


collection types that apear more than once in a sceema cause codec builder to panic

Needs test cases and a check for codec type already set.

I can't reproduce this. Closing for now.

I can't reproduce this. Closing for now.


On upgrade from 1.7.3 to 1.8.0-rc1, file protocol_features cannot be found

I upgraded my existing installation by replacing the nodeos 1.7.3 binary with 1.8.0-rc1 binary and started it how I normally start it, using the same config file.  It generates the following error:
Apr 29 19:55:53 jungle-peer6 nodeos[10978]: APPBASE: Warning: The following configuration items in the config.ini file are redundantly set to
Apr 29 19:55:53 jungle-peer6 nodeos[10978]:          their default value:
Apr 29 19:55:53 jungle-peer6 nodeos[10978]:              read-mode, validation-mode, max-body-size, allowed-connection, connection-cleanup-period,
Apr 29 19:55:53 jungle-peer6 nodeos[10978]:              network-version-match, enable-stale-production, max-transaction-time, max-irreversible-block-age,
Apr 29 19:55:53 jungle-peer6 nodeos[10978]:              txn-reference-block-lag
Apr 29 19:55:53 jungle-peer6 nodeos[10978]:          Explicit values will override future changes to application defaults. Consider commenting out or
Apr 29 19:55:53 jungle-peer6 nodeos[10978]:          removing these items.
Apr 29 19:55:53 jungle-peer6 nodeos[10978]: info  2019-04-29T19:55:53.814 nodeos    http_plugin.cpp:465           plugin_initialize    ] configured http to listen on <IP_ADDRESS>:8888
Apr 29 19:55:53 jungle-peer6 nodeos[10978]: info  2019-04-29T19:55:53.814 nodeos    chain_plugin.cpp:557          plugin_initialize    ] initializing chain plugin
Apr 29 19:55:53 jungle-peer6 nodeos[10978]: warn  2019-04-29T19:55:53.814 nodeos    chain_plugin.cpp:959          plugin_initialize    ] 13 N5boost10filesystem16filesystem_errorE: boost::filesystem::create_directory: No such file or directory: "/home/nodeos/.local/share/eosio/nodeos/config/protocol_features"
Apr 29 19:55:53 jungle-peer6 nodeos[10978]: rethrow boost::filesystem::create_directory: No such file or directory: "/home/nodeos/.local/share/eosio/nodeos/config/protocol_features":
Apr 29 19:55:53 jungle-peer6 nodeos[10978]:     {"what":"boost::filesystem::create_directory: No such file or directory: \"/home/nodeos/.local/share/eosio/nodeos/config/protocol_features\""}
Apr 29 19:55:53 jungle-peer6 nodeos[10978]:     nodeos  chain_plugin.cpp:959 plugin_initialize
Apr 29 19:55:53 jungle-peer6 nodeos[10978]: error 2019-04-29T19:55:53.814 nodeos    main.cpp:120                  main                 ] 13 N5boost10filesystem16filesystem_errorE: boost::filesystem::create_directory: No such file or directory: "/home/nodeos/.local/share/eosio/nodeos/config/protocol_features"
Apr 29 19:55:53 jungle-peer6 nodeos[10978]: rethrow boost::filesystem::create_directory: No such file or directory: "/home/nodeos/.local/share/eosio/nodeos/config/protocol_features":
Apr 29 19:55:53 jungle-peer6 nodeos[10978]:     {"what":"boost::filesystem::create_directory: No such file or directory: \"/home/nodeos/.local/share/eosio/nodeos/config/protocol_features\""}
Apr 29 19:55:53 jungle-peer6 nodeos[10978]:     nodeos  chain_plugin.cpp:959 plugin_initialize

The file "protocol_features" is not listed anywhere in the release notes as to what it should contain.

Is your /home/nodeos/.local/share/eosio/nodeos/config/ read-only? Nodeos is supposed to automatically create a folder called protocol_features inside the config directory if it doesn't already exist.

The directory doesn't exist actually.  /home/nodeos is writeable by tye nodeos user.

Doing this first, fixes this problem:
mkdir -p /home/nodeos/.local/share/eosio/nodeos/config/
chown -R nodeos.nodeos /home/nodeos/.local

I re-built all the libraries when changing from 1.7 to 1.8, which presumably results in this problem?
Apr 29 20:42:29 jungle-peer6 nodeos[16080]: info  2019-04-29T20:42:29.074 nodeos    http_plugin.cpp:465           plugin_initialize    ] configured http to listen on <IP_ADDRESS>:8888
Apr 29 20:42:29 jungle-peer6 nodeos[16080]: info  2019-04-29T20:42:29.074 nodeos    chain_plugin.cpp:557          plugin_initialize    ] initializing chain plugin
Apr 29 20:42:29 jungle-peer6 nodeos[16080]: info  2019-04-29T20:42:29.074 nodeos    chain_plugin.cpp:409          operator()           ] Support for builtin protocol feature 'PREACTIVATE_FEATURE' (with digest of '0ec7e080177b2c02b278d5088611686b49d739925a92d9bfcacd7fc6b74053bd') is enabled without activation restrictions
Apr 29 20:42:29 jungle-peer6 nodeos[16080]: info  2019-04-29T20:42:29.074 nodeos    chain_plugin.cpp:396          operator()           ] Support for builtin protocol feature 'ONLY_LINK_TO_EXISTING_PERMISSION' (with digest of '1a99a59d87e06e09ec5b028a9cbb7749b4a5ad8819004365d02dc4379a8b7241') is enabled with preactivation required
Apr 29 20:42:29 jungle-peer6 nodeos[16080]: info  2019-04-29T20:42:29.074 nodeos    chain_plugin.cpp:396          operator()           ] Support for builtin protocol feature 'FORWARD_SETCODE' (with digest of '2652f5f96006294109b3dd0bbde63693f55324af452b799ee137a81a905eed25') is enabled with preactivation required
Apr 29 20:42:29 jungle-peer6 nodeos[16080]: info  2019-04-29T20:42:29.074 nodeos    chain_plugin.cpp:396          operator()           ] Support for builtin protocol feature 'REPLACE_DEFERRED' (with digest of 'ef43112c6543b88db2283a2e077278c315ae2c84719a8b25f25cc88565fbea99') is enabled with preactivation required
Apr 29 20:42:29 jungle-peer6 nodeos[16080]: info  2019-04-29T20:42:29.074 nodeos    chain_plugin.cpp:396          operator()           ] Support for builtin protocol feature 'NO_DUPLICATE_DEFERRED_ID' (with digest of '4a90c00d55454dc5b059055ca213579c6ea856967712a56017487886a4d4cc0f') is enabled with preactivation required
Apr 29 20:42:29 jungle-peer6 nodeos[16080]: info  2019-04-29T20:42:29.074 nodeos    chain_plugin.cpp:396          operator()           ] Support for builtin protocol feature 'RAM_RESTRICTIONS' (with digest of '4e7bf348da00a945489b2a681749eb56f5de00b900014e137ddae39f48f69d67') is enabled with preactivation required
Apr 29 20:42:29 jungle-peer6 nodeos[16080]: info  2019-04-29T20:42:29.074 nodeos    chain_plugin.cpp:396          operator()           ] Support for builtin protocol feature 'DISALLOW_EMPTY_PRODUCER_SCHEDULE' (with digest of '68dcaa34c0517d19666e6b33add67351d8c5f69e999ca1e37931bc410a297428') is enabled with preactivation required
Apr 29 20:42:29 jungle-peer6 nodeos[16080]: info  2019-04-29T20:42:29.074 nodeos    chain_plugin.cpp:396          operator()           ] Support for builtin protocol feature 'ONLY_BILL_FIRST_AUTHORIZER' (with digest of '8ba52fe7a3956c5cd3a656a3174b931d3bb2abb45578befc59f283ecd816a405') is enabled with preactivation required
Apr 29 20:42:29 jungle-peer6 nodeos[16080]: info  2019-04-29T20:42:29.075 nodeos    chain_plugin.cpp:396          operator()           ] Support for builtin protocol feature 'RESTRICT_ACTION_TO_SELF' (with digest of 'ad9e3d8f650687709fd68f4b90b41f7d825a365b02c23a636cef88ac2ac00c43') is enabled with preactivation required
Apr 29 20:42:29 jungle-peer6 nodeos[16080]: info  2019-04-29T20:42:29.075 nodeos    chain_plugin.cpp:396          operator()           ] Support for builtin protocol feature 'FIX_LINKAUTH_RESTRICTION' (with digest of 'e0fb64b1085cc5538970158d05a009c24e276fb94e1a0bf6a528b48fbc4ff526') is enabled with preactivation required
Apr 29 20:42:29 jungle-peer6 nodeos[16080]: info  2019-04-29T20:42:29.075 nodeos    chain_plugin.cpp:396          operator()           ] Support for builtin protocol feature 'GET_SENDER' (with digest of 'f0af56d2c5a48d60a4a5b5c903edfb7db3a736a94ed589d0b797df33ff9d3e1d') is enabled with preactivation required
Apr 29 20:42:29 jungle-peer6 nodeos[16080]: warn  2019-04-29T20:42:29.082 nodeos    chain_plugin.cpp:959          plugin_initialize    ] 13 N5boost16exception_detail10clone_implINS0_19error_info_injectorISt13runtime_errorEEEE: chainbase database format not compatible with this version of chainbase.
Apr 29 20:42:29 jungle-peer6 nodeos[16080]: rethrow chainbase database format not compatible with this version of chainbase.:
Apr 29 20:42:29 jungle-peer6 nodeos[16080]:     {"what":"chainbase database format not compatible with this version of chainbase."}
Apr 29 20:42:29 jungle-peer6 nodeos[16080]:     nodeos  chain_plugin.cpp:959 plugin_initialize
Apr 29 20:42:29 jungle-peer6 nodeos[16080]: error 2019-04-29T20:42:29.082 nodeos    main.cpp:120                  main                 ] 13 N5boost16exception_detail10clone_implINS0_19error_info_injectorISt13runtime_errorEEEE: chainbase database format not compatible with this version of chainbase.
Apr 29 20:42:29 jungle-peer6 nodeos[16080]: rethrow chainbase database format not compatible with this version of chainbase.:
Apr 29 20:42:29 jungle-peer6 nodeos[16080]:     {"what":"chainbase database format not compatible with this version of chainbase."}
Apr 29 20:42:29 jungle-peer6 nodeos[16080]:     nodeos  chain_plugin.cpp:959 plugin_initialize

Any plans to fix this issue for 1.8.0-rc3 (or general release?)

Should be resolved by #7506 (also #7507).


Build rs.conf with fqdn members

Verification steps:

Ensure for all supported clusters 3.3-->3.6 a file exists with the namespace provided by k8 at /var/run/secrets/kubernetes.io/serviceaccount/namespace
Deploy a three node MBaaS using the ansible installer with the built image docker.io/rhmap/mongodb:centos-3.2-68
Run rs.conf() in the mongo shell of one of the replicas and clarify the config is good
Ensure it addresses https://issues.jboss.org/browse/RHMAP-17550
Any other potential issues that might occur. Please log any tests done in jira

retest this please

Tested on osm1 and osm3


Questions about training

I have a question. Background input is required in sample and paper, so do I need to input background during training? I see no background images in the publicly available data sets.
I want to run train_base and train_refine, The training results appear the following problems

You do need background data
https://grail.cs.washington.edu/projects/background-matting-v2/#/datasets

您确实需要背景数据
https://grail.cs.washington.edu/projects/background-matting-v2/#/datasets

Thank you for your reply
Please ask dataset VideoMatte240K and PhotoMatte85，Whether the corresponding background image is not provided as in the sample set。So I can't run the training code train_base？

Please ask dataset VideoMatte240K and PhotoMatte85，Whether the corresponding background image is not provided as in the sample set。So I can't run the training code train_base？
Or do you want to combine the foreground and alpha images of the published dataset with the background image, and then put the combined image and background into the training?

Just download the dataset. Update data_path.py, and the training script will composite images on the fly

Thanks for your reply
As you said, the images were made by composition， so how is this different from Adobe datasets？
The background description did not publish the training background picture, whether I still can not perform train_base and train_refine

You do need background data https://grail.cs.washington.edu/projects/background-matting-v2/#/datasets

Hi is this background datasets for train or test? I see no split fold for train and test? Thanks!

i have no idea how to organize the training data, do you solve this question and could you please tell me which one should i download and use for training ?

@Yiir-1 how did you use the checkpoints from stage 1 in stage 2. Can you provide full command to run stage 2?


Pixfalcon Buzz and not works on master

after uploading master branch to pixfalcon it buzzes several times,
and servos not electrified.downgrading to branches like 1.5.x or 1.4.x
does not solve the issue still buzzes in the downgraded versions,
It used to work well in the stable branch.
ps: rc is not connected

this problem doesnt happen with pixhawk

Still an issue? Isn't a pixfalcon identical to a pixhawk (from PX4s perspective)?

Please reopen if this is still an issue and we can debug. It's especially weird because PX4 doesn't know if it's on a pixhawk or pixfalcon.

I vaguely remember that there was a request to turn the buzzer off on
Pixfalcon and Pixhawk Mini because it's embedded in the AP and causes
vibration issues.
On Fri, Apr 28, 2017 at 10:10 AM, Daniel Agar<EMAIL_ADDRESS>wrote:

Please reopen if this is still an issue and we can debug. It's especially
weird because PX4 doesn't know if it's on a pixhawk or pixfalcon.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/PX4/Firmware/issues/6498#issuecomment-298054252, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AABGl2t8foUw5mu-lOqnION_ocJlaxxXks5r0h1xgaJpZM4L1Cvi
.

--
◤CHRIS ANDERSON https://twitter.com/chr1sa
CEO
3DR
website http://www.3dr.com/ | twitter https://twitter.com/3drobotics
| facebook http://www.facebook.com/3drobotics | instagram
http://www.instagram.com/3drobotics

You can disable the buzzer by setting CBRK_BUZZER.
https://dev.px4.io/en/advanced/parameter_reference.html#circuit-breaker
I wonder if it's enough of an issue to have it off by default?


BOTW-Trainer FiX for the ones that updated to Ver.80

Is there any way we can go back to version 1.1.2 I have try lots of thing but cant seen to get to download the old update from ( uTik Download Helper) or (USB Helper) From now on I'm saving all old updates for this game was having lots of fun with this please help. some body that's still have ver1.1.2 update on there SDCard Please Share it ill do the same if this ever happens again thank you guys and have a great day.

ok guys just find a solution for those of  you that updated to the new ver80
https://www.dropbox.com/s/03wxc8fnncmucx7/The Legend of Zelda Breath of the Wild [0005000E101C9400] (v64).rar?dl=0

Hey papion23, did applying the old update work for you? I've tried it but the wii u keeps trying to update to new version.

dopeter90 no I didn't but I got the Eur. ver to work till they update this one

Hey is the file for returning the game to ver. 1.1.2? That will not work. I am keeping all the updates file since the start of botw. I already did, but If you run back to 1.1.2 after playing 1.1.3 you cannot open the game. it'll say that this game need update to work. We just need to wait for the update of the trainer

https://gyazo.com/b0c42425c01f6e075fa43707a6f9b125

Cannot download it - See here: https://gyazo.com/b0c42425c01f6e075fa43707a6f9b125

Just be patient guys. Pandaonsmack's said he will be updating the bot to work with v80 this weekend when he gets back from his vacation

Try latest version


Tutorial gives error on npm start

Cloned the Repo
Went inside the folder
Did npm install
Did npm start

Tried this on master and sagas branch, got the same error on both of them
Got following error on console and in the chrome when went to the server url

Plugin 20 specified in "/Users/XXX/redux-saga-beginner-tutorial/node_modules/babel-preset-es2015/lib/index.js" provided an invalid property of "name" while parsing file: /Users/XXX/redux-saga-beginner-tutorial/main.js

seems like yarn works
yarn install
yarn start
works like a charm 👍


Correct CAUSAL padding in conv when stride > 1.

The formula for CAUSAL padding is (window - stride, stride - 1). Currently, CAUSAL padding uses (window - 1, 0), which only works when the stride is 1.
As a result, the streaming subsampler is currently losing the last frame. This approach provides a general logic for CAUSAL cases, and after this PR, the frontend will also reuse this implementation.
For example, with window=15 and stride=6, padding is (9, 5). Below are examples illustrating how input paddings are transformed into output paddings across different scenarios.
     left_pad         |         input paddings              -> outputs paddings
 1) |1 1 1|1 1 1|1 1 1|0 0 0|0 0 0|0 0 0|0 0 0|0 0 0|0 0 0| -> 0 0 0
 2) |1 1 1|1 1 1|1 1 1|1 0 0|0 0 0|0 0 0|0 0 0|0 0 0|0 0 0| -> 1 0 0
 3) |1 1 1|1 1 1|1 1 1|1 1 1|1 1 1|0 0 0|0 0 0|0 0 0|0 0 0| -> 1 0 0
 4) |1 1 1|1 1 1|1 1 1|1 1 1|1 1 1|1 0 0|0 0 0|0 0 0|0 0 0| -> 1 1 0
 5) |1 1 1|1 1 1|1 1 1|1 1 1|1 1 1|1 1 1|1 1 1|1 1 1|1 1 1| -> 1 1 1
 6) |1 1 1|1 1 1|1 1 1|0 1 1|1 1 1|1 1 1|1 1 1|1 1 1|1 1 1| -> 0 1 1
 7) |1 1 1|1 1 1|1 1 1|0 0 0|0 0 0|1 1 1|1 1 1|1 1 1|1 1 1| -> 0 1 1
 8) |1 1 1|1 1 1|1 1 1|0 0 0|0 0 0|0 1 1|1 1 1|1 1 1|1 1 1| -> 0 0 1
     |_________________^_________|
                 |_________________^_________|
                             |_________________^_________|

Let's take a closer look at case 7). In case 7), the first window component fully
covers all 0s, so the first component of the output padding should be the last
0 component, meaning the second component is 1.
In case 8), however, the first window component does not cover all 0s, so the next component should also be 0. If the second component were 1, information from the last partial window of the input would be lost — which is the current situation in the code, which this PR wants to fix.
In general, the anchor point should be the next position after the right edge of the previous window. Since the anchor is defined by the left pad, left_pad = window - stride, and right_pad = (window - 1) - left_pad, simplifying to right_pad = stride - 1.
Note: CAUSAL was introduced by me three days ago, and currently, I’m the only one using it in the streaming encoder. Therefore, logic changes without backward compatibility are acceptable.

Hi @ruomingp, @markblee , could you take a look? @ruomingp reviewed it in #868

Thank you for review!


Changing selected launch configuration is not regarded when application is already running

VSCode Version: 1.5.3
OS Version: Ubuntu 16.04

Steps to Reproduce:

Have more than one launch configuration ('Config A', 'Config B')
Start application debug/run with 'Config A'
Change launch configuration to 'Config B' while application is still running under config A
Stop application via stop button
(Drop down sais 'Config B')
Start debugging
'Config A' is started and drop down changes to 'Config A'
Expected behaviour: 'Config B' is started

This has been fixed in the latest vscode release which will be out some time this week.
It is also fixed in the vscode insiders


Update _index.md

fixing highlighting on params that also have abbreviated options
Rancher Manager update
The Rancher Manager* documentation is moving. Please file any issues or pull requests at https://github.com/rancher/rancher-docs instead.

= content/rancher

K3s update
The K3s* documentation is moving. Please file any issues or pull requests at https://github.com/k3s-io/docs instead.

= content/k3s

Thanks for PR @asloan7. The K3s docs will be moving in the near future and the source repo will be at https://github.com/k3s-io/docs. If you could file your PR there instead that'd be great. If you prefer we recreate the PR there instead, please let us know. Thanks again.

Created https://github.com/k3s-io/docs/pull/36 instead and closing this one.


error-reporting: Users can choose to report errors via Logs instead of using the report API

Copied from original issue: https://github.com/GoogleCloudPlatform/google-cloud-node/issues/2301
@DominicKramerMay 11, 2017 11:16 PM
This is an enhancement that should not be blocking the Beta launch of this module.
We can send errors to Error Reporting by calling the report API endpoint or by logging errors in Stackdriver Logging using the appropriate structured format.
Today, cloud-errors-nodejs reports errors using the API endpoint.
This is a great default choice as it does not require any additional setup than enabling the API and do not forces to use Stackdriver Logging.
However, if users want to use Stackdriver Logging for application logging, it is better to capture logs and errors using the same mechanism, so that they can see errors in the Logs viewer too.
Users should be able to chose to report errors via Logs. We could imagine that when initializing this module, they can pass a logger that will be used to log errors.
This issue has been migrated from the cloud-errors-nodejs issue #48.

@ofrobotsMay 11, 2017 11:43 PM
logging-winston and logging-bunyan already format errors so that error reporting can pick them up – so this is mostly implemented. What would still be good to do, IMO, is to add documentation here and on logging-{winston,bunyan} on how this works.

@DominicKramer the next action here is to add the documentation.

Yep, that was my conclusion too.

The documentation has been added via PR #313.  Logging bunyan and winston already contain documentation for how to report errors to the Error Reporting Console.


Control a Tapo P110 with an easier configuration

An example to control Tapo P110 with a python tapo_control.py <ip_address> <action> format with credentials from an .env configuration file.

@aosan and for anyone looking for this --> that can easy localy be done with a simple adjustment in the first lines :
`# Set environment variables : tapo_p110.py username password ip  (+optional: On/Off)
os.environ['TAPO_USERNAME'] = sys.argv[1]
os.environ['TAPO_PASSWORD'] = sys.argv[2]
os.environ['IP_ADDRESS'] = sys.argv[3]
if len(sys.argv) > 4:
os.environ['COMMAND'] = sys.argv[4]
else:
os.environ['COMMAND'] = "-"
async def main():
tapo_username = os.getenv("TAPO_USERNAME")
tapo_password = os.getenv("TAPO_PASSWORD")
ip_address = os.getenv("IP_ADDRESS")
client = ApiClient(tapo_username, tapo_password)
device = await client.p110(ip_address)

print(os.environ['COMMAND'])

if os.environ['COMMAND'] == 'On':
  print("Turning device on...")
  await device.on()

if os.environ['COMMAND'] == 'Off':
print("Turning device off...")
await device.off()
`

This is excellent! Thank you for sharing it!
However, I wonder if it might be better suited as an article or a separate repository since it is more of a Python example than a tapo library one.
Once you find a suitable place, I can add a link to it, similar to how the README links to the tapo-rest repository.

This PR was made on the assumption others might benefit from having a working example for tapo-py, in the location where they would find other examples for tapo-py.
Please feel free to reject this PR.


Error running on android. Execution failed for task ':asbg:generateBindings'.

Hi,
When I run my project with:
tns run android --emulator
I get the following error.
:copyTypings SKIPPED
:asbg:generateInterfaceNamesList
:asbg:traverseJsFiles
:asbg:runAstParser
Running full build
finished with reading lines with js files
Warning: there already is an extend called com.tns.NativeScriptActivity.
Warning: there already is an extend called com.tns.FragmentClass.
:asbg:generateBindings
Exception in thread "main" java.io.IOException: File already exists. This may lead to undesired behavior.
Please change the name of one of the extended classes.
/Users/yamildiazaguirre/Documents/node/LAaps/levenmas/platforms/android/src/main/java/com/tns/gen/android/content/BroadcastReceiver_frnal_ts_helpers_l58_c38__BroadcastReceiver.java
        at org.nativescript.staticbindinggenerator.Generator.writeBindings(Generator.java:59)
        at org.nativescript.staticbindinggenerator.Main.main(Main.java:15)
:asbg:generateBindings FAILED

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/yamildiazaguirre/Documents/node/LAaps/levenmas/platforms/android/build-tools/android-static-binding-generator/build.gradle' line: 251

* What went wrong:
Execution failed for task ':asbg:generateBindings'.
> Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 32.965 secs
Multiple errors were thrown:
Command ./gradlew failed with exit code 1
# run android

When I remove the module imagepicker I get no error.
My package.json
{
  "description": "NativeScript Application",
  "license": "SEE LICENSE IN <your-license-filename>",
  "readme": "NativeScript Application",
  "repository": "<fill-your-repository-here>",
  "nativescript": {
    "id": "org.nativescript.levenmas",
    "tns-ios": {
      "version": "3.0.0-rc.1-2017-3-28-2"
    },
    "tns-android": {
      "version": "3.0.0-rc.1"
    }
  },
  "dependencies": {
    "@angular/animations": "4.0.0",
    "@angular/common": "4.0.0",
    "@angular/compiler": "4.0.0",
    "@angular/core": "4.0.0",
    "@angular/forms": "4.0.0",
    "@angular/http": "4.0.0",
    "@angular/platform-browser": "4.0.0",
    "@angular/platform-browser-dynamic": "4.0.0",
    "@angular/router": "4.0.0",
    "email-validator": "^1.0.7",
    "moment": "^2.18.1",
    "nativescript-angular": "rc",
    "nativescript-imagepicker": "^2.5.1",
    "nativescript-phone": "^1.3.0",
    "nativescript-theme-core": "~1.0.2",
    "reflect-metadata": "~0.1.8",
    "rxjs": "~5.2.0",
    "tns-core-modules": "rc",
    "zone.js": "~0.8.2"
  },
  "devDependencies": {
    "babel-traverse": "6.24.1",
    "babel-types": "6.24.1",
    "babylon": "6.16.1",
    "lazy": "1.0.11",
    "nativescript-dev-android-snapshot": "^0.*.*",
    "nativescript-dev-typescript": "~0.4.0",
    "typescript": "~2.2.1"
  }
}

Hi @Yamilquery,
The above-given error has been related to that fact that in your project is used @rc android-runtime and modules with  nativescript-imagepicker version from npm which is not compatible with @rc.
The plugin has been migrated to @rc in the repository, however it is not published in npm.
At this point, you could build tgz file locally on your side by following the below given instructions.

git clone https://github.com/NativeScript/nativescript-imagepicker
cd nativescript-imagepicker
npm install
4, tsc
npm pack - in the plugin's folder you will find the generated tgz file.
6, to use it in your project just run tns plugin add <path to the tgz file>

Hope this helps.


Use factory pattern for ImageDecoder and ImageRegionDecoder

Instead of requiring implementers of ImageDecoder and ImageRegionDecoder have an empty constructor, a factory pattern would allow for configurable decoders with constructor parameters (something that I need in my use case).
Great idea for a library by the way! Just what I was looking for.

I considered using a factory pattern but decided at the time that it was important for the view to have full control over the lifecycle of a decoder class, which only the current method allows. I realise this makes it more difficult to supply parameters to a decoder so I'm still unsure whether it was the right decision.
This is a backwardly incompatible change, only a few weeks after some other breaking changes and a major version bump, so I need to think carefully about merging this.

That's a great point. I just added another commit which adds backwards-compatibility methods so we don't break the API contract.


Goosinals

close pr. reason: goosinals already listed on ordinalswallet website under /collections/goosinals
@utxo-detective same question here, it is listed on the website but the metadata is missing in the github?


[Bugfix][UI] Fix logo url error at dist build

Purpose of this pull request
Fix Logo url error at login and register page under binary dist build.

+1


bump eac.js-lib to v2.4.0

Pull Request Test Coverage Report for Build 1647

0 of 0   changed or added relevant lines in 0 files are covered.
18 unchanged lines in 3 files lost coverage.
Overall coverage increased (+0.2%) to 78.311%

Files with Coverage Reduction
New Missed Lines
%

src/Actions/Pending.ts
2
88.64%

src/Config/helpers.ts
3
75.0%

src/EconomicStrategy/EconomicStrategyHelpers.ts
13
82.64%

Totals

Change from base Build 1642:
0.2%

Covered Lines:
707

Relevant Lines:
866

💛  - Coveralls


Automating scrcpy on Windows with a .cmd script

create a file called [name].cmd, with the contents:
taskkill.exe /IM adb.exe /F
adb.exe devices
adb.exe tcpip 5555
adb.exe connect <IP_ADDRESS>:5555
cd C:\Users\dev\Documents\android\mirror\scrcpy
scrcpy.exe -s <IP_ADDRESS> -b4M --max-size 900
pause

change the cd command to reflect the path of scrcpy. Ensure you use the same adb.exe provided with scrcpy otherwise you may get errors (if your Windows PATH has a newer version, as was the case for me).
Plug device in, run [name].cmd, then you can disconnect cable and use wirelessly. You can also run the .cmd again without using the cable.

maybe that script can even be improved by automatically searching for a working ip in your network
the following script works for me finding the correct ip (you need to change "dynamisch" to "dynamic" if you're using an english windows)
for /f "tokens=1,3" %%A in ('arp -a') do ^
if "%%B"=="dynamisch" adb.exe connect %%A:5555 && scrcpy.exe -s %%A -b4M --max-size 900

I assume that script is sitting in the scrcpy folder

of course it doesn't work if the device is not liste in the arp -a command. Also when you have multiple device with adb on the network that would be a problem. but..... well for the simple case it works and you don't need to do anything

@eikaramba
Thanks it will same me lot of time with my friends and customers, I have a small computer shop and lot of time I have to support customers, friends and volunteering with  elderly   and their tablets/phone.
I have tried Webkey free service but is is a little bit slow and don't support copy/paste and don't support long click too. Also no need for Root.
So using my DWS services to remote in their  computers and running the scripts preinstalled will be better and faster for me than trying to remote directly in their phones/tablets.
I'm pretty sure it this script could be done on other platform like Mac too if needed.
One last thing do you know of a software that would prevent sleeping when using ADB with USB I could just use the Android dev options to do it but on ADB TCP it's another thing.
Anyway thanks again for this little script it will make my life so more easy. 😊
@rom1v  You should put this script in the ReadMe for Windows since it's pratically "plug and play" to use Scrcpy" wirelessly with it. 😀
Note: By the way in french it "dynamique" you have to use 😉  Also you could  add just one small line at the beginning of the script to kill ADB.exe if there is a version runing:
taskkill /f /im adb.exe
Regards :octocat:

@mikhoul after some time of usage i can say my script above is NOT bulletproof. especially if you just connected your phone and turned on wifi adb often times the phone is not yet visible in the arp -a command. currently i don't have a solution for that.

why was this script deleted? am looking for something like this....

I don't know why @thecodingdude deleted the content when they closed the bug.
I just restored the original content.

Here's the script I use with wifi connection:
REM scrcpy -b2M -m800

REM scrcpy -M -m1280

REM scrcpy -b2M -m1024

REM scrcpy -b2M -m1580

REM pause

taskkill /f /im adb.exe

REM adb.exe devices
adb.exe tcpip 5555
REM ***Replace IP Address with your***
adb.exe connect <IP_ADDRESS>:5555
REM ***Replace the path with your own path***

REM scrcpy.exe -s <IP_ADDRESS> -b4M -m900

scrcpy.exe -s <IP_ADDRESS> -b8M

REM PING localhost -n 3 >NUL

rem Pause
taskkill /f /im adb.exe

Maybe it will help somebody. :octocat:

this is my cmd
cd D:\Flashing STB\scrcpy-win64-v1.10
adb.exe kill-server
adb.exe devices
adb.exe connect <IP_ADDRESS>:5555
scrcpy.exe -m 1024

cd D:\Flashing STB\scrcpy-win64-v1.10

It's an old version 😉

cd D:\Flashing STB\scrcpy-win64-v1.10

It's an old version

yeah, but it worked for me though,, :D


Update GPMDP icon

The GPMDP icon changed a while back.  This is just bringing it up to date 👍

Thanks!


Unable to make k3s's containerd use a private images registry

Check at the end the edit, I have another problem now
Environmental Info:
K3s Version:
k3s version v1.22.7+k3s1 (8432d7f2)
go version go1.16.10

Node(s) CPU architecture, OS, and Version:
amd64, Ubuntu, 20.04

Cluster Configuration:
Just one VM acting as ControlPlane+Worker.

Describe the bug:
I'm working in a somehow isolated network, so I have configured my k3s's containerd registry to point a private docker proxy registry (which is a Harbor with a self signed certificate), following the official doc to allow my k3s node download all the necessary images to fulfill a completely successful installation, and also to let my future micro-services deployment download their images from my private docker registry previously mentioned. I can pull images from the harbor registry, both with docker pull and with /usr/local/bin/ctr -a /run/k3s/containerd/containerd.sock image pull , the command k3s crictl pull doesnt work at all tho. k3s doesn't notice "my order" to use my private registry and it goes to the wild internet to seek the images.
I guess I'm doing some kind of airgap installation if you guide by the Private Registry Method.
Steps To Reproduce:

Installed K3s following these steps:
Just configuring the /etc/hosts file:

cat << EOF > /etc/hosts
<IP_ADDRESS> localhost
<IP_ADDRESS> control01 control01.local
<IP_ADDRESS> harbor.virtalus.com
EOF

I pass the self signed certificates which I created in the Harbor VM while aprovisioning  the service:

cat << EOF > /root/harbor.virtalus.com.crt
# [Here I pass the crt ]
EOF

cat << EOF > /root/harbor.virtalus.com.key
# [Here I pass the key ]
EOF

cat << EOF > /root/harbor.virtalus.com.cert
# [Here I pass the cert ]
EOF

I create the file from where containerd will get the mirror registry, where I pass the path to the certificates:

mkdir -p /etc/rancher/k3s/ && \
cat << EOF > /etc/rancher/k3s/registries.yaml
mirrors:
  docker.io:
    endpoint:
      - "https://harbor.virtalus.com/dockerhub/"
  "":
    endpoint:
      - "https://harbor.virtalus.com/dockerhub/"
  "*":
    endpoint:
      - "https://harbor.virtalus.com/dockerhub/"
configs:
  "harbor.virtalus.com":
    tls:
      cert_file: "/root/harbor.virtalus.com.cert"
      key_file: "/root/harbor.virtalus.com.key"
      ca_file: "/root/harbor.virtalus.com.crt"
      insecure_skip_verify: true
EOF

And then I install k3s, after the installation I can get without a problem kubectl get nodes and such commands:

curl -sfL https://get.k3s.io | K3S_KUBECONFIG_MODE="644" sh -s - server

Expected behavior:
containerd/k3s be able to pull the container images from my private self signed docker proxy registry (I use Harbor), ideally from the very begining of the installation.
Actual behavior:
containerd/k3s is NOT able to pull the container images from my private self signed docker proxy registry, it keeps going to the internet to find those images.
Additional context / logs:

I'm perfectly able to, from the VM where I'm trying to install k3s, to reach my private registry both from IP and FQDN, and pull images from it manually from both proxies (in Harbor I created one pointing to dockerhub and another one pointing to quay.io):

/usr/local/bin/ctr -a /run/k3s/containerd/containerd.sock image pull harbor.virtalus.com/dockerhub/library/ubuntu:20.04 -k
harbor.virtalus.com/dockerhub/library/ubuntu:20.04:                               resolved       |++++++++++++++++++++++++++++++++++++++|
index-sha256:115822d64890aae5cde3c1e85ace4cc97308bb1fd884dac62f4db0a16dbddb36:    exists         |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:7b3e30a1f373b0621681f13b92feb928129c1c38977481ee788a793fcae64fb9: exists         |++++++++++++++++++++++++++++++++++++++|
layer-sha256:8e5c1b329fe39c318c0d49821b339fb94a215c5dc0a2898c8030b5a4d091bcba:    done           |++++++++++++++++++++++++++++++++++++++|
config-sha256:1a437e363abfa47bfe4b3f5906b7444d12346102d944ebddd537e47a62fc6f52:   exists         |++++++++++++++++++++++++++++++++++++++|
elapsed: 71.8s                                                                    total:  27.2 M (388.5 KiB/s)
unpacking linux/amd64 sha256:115822d64890aae5cde3c1e85ace4cc97308bb1fd884dac62f4db0a16dbddb36...
done: 1.772760742s

/usr/local/bin/ctr -a /run/k3s/containerd/containerd.sock image pull harbor.virtalus.com/q/metallb/speaker:v0.12.1 -k
harbor.virtalus.com/q/metallb/speaker:v0.12.1:                                    resolved       |++++++++++++++++++++++++++++++++++++++|
index-sha256:40e0373788f3ea5e21a42b302a0ae4fd537646eb4b485e02b7ae52dc71da230c:    exists         |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:f4504b24983c61ea2fd6fa185f8b5ac870a303e04e0ccdcdb099e3fca90b1447: exists         |++++++++++++++++++++++++++++++++++++++|
config-sha256:579ce8a43ea820ef260ede80522cf92c59fd0a59f97666699aa5b878e75a4ccf:   exists         |++++++++++++++++++++++++++++++++++++++|
layer-sha256:b3c9c7ec0554016a59eff220003aa5b3e2f6660251cc4f9fbb12e7b0ee876273:    exists         |++++++++++++++++++++++++++++++++++++++|
layer-sha256:8f5232735740bcca8ce70fd5c429801612f51d566e2abf44726248e9586037d5:    downloading    |--------------------------------------|    0.0 B/18.3 MiB
layer-sha256:59bf1c3509f33515622619af21ed55bbe26d24913cedbca106468a5fb37a50c3:    downloading    |--------------------------------------|    0.0 B/2.7 MiB
layer-sha256:c914caf2a709e2095fc85de82d195c297f65f39cecaac6f59f5047243ceb5b33:    downloading    |--------------------------------------|    0.0 B/8.2 MiB
elapsed: 7.1 s                                                                    total:   0.0 B (0.0 B/s)

If I check the  /var/lib/rancher/k3s/agent/etc/containerd/config.toml then I get the following, which makes me think it's correctly configured:

cat /var/lib/rancher/k3s/agent/etc/containerd/config.toml

[plugins.opt]
  path = "/var/lib/rancher/k3s/agent/containerd"

[plugins.cri]
  stream_server_address = "<IP_ADDRESS>"
  stream_server_port = "10010"
  enable_selinux = false
  sandbox_image = "rancher/mirrored-pause:3.6"

[plugins.cri.containerd]
  snapshotter = "overlayfs"
  disable_snapshot_annotations = true

[plugins.cri.cni]
  bin_dir = "/var/lib/rancher/k3s/data/31ff0fd447a47323a7c863dbb0a3cd452e12b45f1ec67dc55efa575503c2c3ac/bin"
  conf_dir = "/var/lib/rancher/k3s/agent/etc/cni/net.d"

[plugins.cri.containerd.runtimes.runc]
  runtime_type = "io.containerd.runc.v2"

[plugins.cri.registry.mirrors]

[plugins.cri.registry.mirrors.""]
  endpoint = ["https://harbor.virtalus.com/dockerhub/"]

[plugins.cri.registry.mirrors."*"]
  endpoint = ["https://harbor.virtalus.com/dockerhub/"]

[plugins.cri.registry.mirrors."docker.io"]
  endpoint = ["https://harbor.virtalus.com/dockerhub/"]

[plugins.cri.registry.configs."harbor.virtalus.com".tls]
  ca_file = "/root/harbor.virtalus.com.crt"
  cert_file = "/root/harbor.virtalus.com.cert"
  key_file = "/root/harbor.virtalus.com.key"
  insecure_skip_verify = true

But when I try with k3s crictl pull (which I think is actually the command that runs under the hood while k3s tries to pull an image) I get the following error:

 k3s crictl pull harbor.virtalus.com/q/metallb/speaker:v0.12.1
FATA[0002] pulling image: rpc error: code = NotFound desc = failed to pull and unpack image "harbor.virtalus.com/q/metallb/speaker:v0.12.1": failed to unpack image on snapshotter overlayfs: unexpected media type text/html for sha256:6066282cb389d5bee17ec9f08335850ece266457a557511d3f5e78eabc34df21: not found

And when I check the containerd's logs it keeps telling me it wanna go for docker.io while I'm explicitly telling it to use harbor.virtalus.com:

systemctl restart k3s
tail -f /var/lib/rancher/k3s/agent/containerd/containerd.log
time="2022-04-23T07:20:10.079082231-04:00" level=info msg="Start recovering state"
time="2022-04-23T07:20:10.079254378-04:00" level=warning msg="The image content readiness for \"docker.io/rancher/mirrored-pause:3.6\" is not ok"
time="2022-04-23T07:20:10.079314031-04:00" level=info msg=serving... address=/run/k3s/containerd/containerd.sock.ttrpc
time="2022-04-23T07:20:10.079383141-04:00" level=info msg=serving... address=/run/k3s/containerd/containerd.sock
time="2022-04-23T07:20:10.079409022-04:00" level=info msg="containerd successfully booted in 0.036387s"
time="2022-04-23T07:20:10.084748475-04:00" level=info msg="Start event monitor"
time="2022-04-23T07:20:10.084790778-04:00" level=info msg="Start snapshots syncer"
time="2022-04-23T07:20:10.084803180-04:00" level=info msg="Start cni network conf syncer"
time="2022-04-23T07:20:10.084815390-04:00" level=info msg="Start streaming server"
time="2022-04-23T07:20:15.912042279-04:00" level=info msg="No cni config template is specified, wait for other system components to drop the config."
time="2022-04-23T07:20:17.695301845-04:00" level=info msg="RunPodsandbox for &PodSandboxMetadata{Name:local-path-provisioner-84bb864455-xk4qn,Uid:d33c0d0c-23ba-4cf0-af9a-e21dd7450a99,Namespace:kube-system,Attempt:0,}"
time="2022-04-23T07:20:17.994951495-04:00" level=info msg="RunPodsandbox for &PodSandboxMetadata{Name:metrics-server-ff9dbcb6c-ppqqn,Uid:61b8f09f-9eda-4138-b207-cc7f9b4a43b4,Namespace:kube-system,Attempt:0,}"
time="2022-04-23T07:20:17.994988204-04:00" level=info msg="RunPodsandbox for &PodSandboxMetadata{Name:helm-install-traefik-crd--1-zlsck,Uid:bb0e923b-9360-4980-9b4a-6eec19b758d3,Namespace:kube-system,Attempt:0,}"
time="2022-04-23T07:20:18.295300672-04:00" level=info msg="RunPodsandbox for &PodSandboxMetadata{Name:coredns-96cc4f57d-szcx5,Uid:02f2fd91-3ff3-49d0-8d73-9656730b5f0b,Namespace:kube-system,Attempt:0,}"
time="2022-04-23T07:20:18.594658520-04:00" level=info msg="RunPodsandbox for &PodSandboxMetadata{Name:helm-install-traefik--1-9g4n9,Uid:4882bb74-f80a-4ece-a4df-b7fad63ab11e,Namespace:kube-system,Attempt:0,}"
time="2022-04-23T07:20:19.207755114-04:00" level=warning msg="reference for unknown type: text/html" digest="sha256:6066282cb389d5bee17ec9f08335850ece266457a557511d3f5e78eabc34df21" mediatype=text/html size=906
time="2022-04-23T07:20:19.287099519-04:00" level=info msg="ImageUpdate event &ImageUpdate{Name:docker.io/rancher/mirrored-pause:3.6,Labels:map[string]string{io.cri-containerd.image: managed,},XXX_unrecognized:[],}"
time="2022-04-23T07:20:19.287364892-04:00" level=error msg="Failed to handle event &ImageUpdate{Name:docker.io/rancher/mirrored-pause:3.6,Labels:map[string]string{io.cri-containerd.image: managed,},XXX_unrecognized:[],} for docker.io/rancher/mirrored-pause:3.6" error="update image store for \"docker.io/rancher/mirrored-pause:3.6\": get image info from containerd: get image diffIDs: unexpected media type text/html for sha256:6066282cb389d5bee17ec9f08335850ece266457a557511d3f5e78eabc34df21: not found"
time="2022-04-23T07:20:19.335051527-04:00" level=error msg="RunPodSandbox for &PodSandboxMetadata{Name:local-path-provisioner-84bb864455-xk4qn,Uid:d33c0d0c-23ba-4cf0-af9a-e21dd7450a99,Namespace:kube-system,Attempt:0,} failed, error" error="rpc error: code = NotFound desc = failed to get sandbox image \"rancher/mirrored-pause:3.6\": failed to pull image \"rancher/mirrored-pause:3.6\": failed to pull and unpack image \"docker.io/rancher/mirrored-pause:3.6\": failed to unpack image on snapshotter overlayfs: unexpected media type text/html for sha256:6066282cb389d5bee17ec9f08335850ece266457a557511d3f5e78eabc34df21: not found"
time="2022-04-23T07:20:19.549246084-04:00" level=warning msg="reference for unknown type: text/html" digest="sha256:6066282cb389d5bee17ec9f08335850ece266457a557511d3f5e78eabc34df21" mediatype=text/html size=906
time="2022-04-23T07:20:19.658608686-04:00" level=info msg="Events for \"docker.io/rancher/mirrored-pause:3.6\" is in backoff, enqueue event &ImageUpdate{Name:docker.io/rancher/mirrored-pause:3.6,Labels:map[string]string{io.cri-containerd.image: managed,},XXX_unrecognized:[],}"
time="2022-04-23T07:20:19.681038462-04:00" level=error msg="RunPodSandbox for &PodSandboxMetadata{Name:helm-install-traefik-crd--1-zlsck,Uid:bb0e923b-9360-4980-9b4a-6eec19b758d3,Namespace:kube-system,Attempt:0,} failed, error" error="rpc error: code = NotFound desc = failed to get sandbox image \"rancher/mirrored-pause:3.6\": failed to pull image \"rancher/mirrored-pause:3.6\": failed to pull and unpack image \"docker.io/rancher/mirrored-pause:3.6\": failed to unpack image on snapshotter overlayfs: unexpected media type text/html for sha256:6066282cb389d5bee17ec9f08335850ece266457a557511d3f5e78eabc34df21: not found"
time="2022-04-23T07:20:19.790246872-04:00" level=warning msg="reference for unknown type: text/html" digest="sha256:6066282cb389d5bee17ec9f08335850ece266457a557511d3f5e78eabc34df21" mediatype=text/html size=906
time="2022-04-23T07:20:19.794056869-04:00" level=warning msg="reference for unknown type: text/html" digest="sha256:6066282cb389d5bee17ec9f08335850ece266457a557511d3f5e78eabc34df21" mediatype=text/html size=906
time="2022-04-23T07:20:19.936894023-04:00" level=info msg="Events for \"docker.io/rancher/mirrored-pause:3.6\" is in backoff, enqueue event &ImageUpdate{Name:docker.io/rancher/mirrored-pause:3.6,Labels:map[string]string{io.cri-containerd.image: managed,},XXX_unrecognized:[],}"
time="2022-04-23T07:20:19.962206072-04:00" level=info msg="Events for \"docker.io/rancher/mirrored-pause:3.6\" is in backoff, enqueue event &ImageUpdate{Name:docker.io/rancher/mirrored-pause:3.6,Labels:map[string]string{io.cri-containerd.image: managed,},XXX_unrecognized:[],}"
time="2022-04-23T07:20:19.990579053-04:00" level=error msg="RunPodSandbox for &PodSandboxMetadata{Name:coredns-96cc4f57d-szcx5,Uid:02f2fd91-3ff3-49d0-8d73-9656730b5f0b,Namespace:kube-system,Attempt:0,} failed, error" error="rpc error: code = NotFound desc = failed to get sandbox image \"rancher/mirrored-pause:3.6\": failed to pull image \"rancher/mirrored-pause:3.6\": failed to pull and unpack image \"docker.io/rancher/mirrored-pause:3.6\": failed to unpack image on snapshotter overlayfs: unexpected media type text/html for sha256:6066282cb389d5bee17ec9f08335850ece266457a557511d3f5e78eabc34df21: not found"
time="2022-04-23T07:20:20.008587594-04:00" level=error msg="RunPodSandbox for &PodSandboxMetadata{Name:metrics-server-ff9dbcb6c-ppqqn,Uid:61b8f09f-9eda-4138-b207-cc7f9b4a43b4,Namespace:kube-system,Attempt:0,} failed, error" error="rpc error: code = NotFound desc = failed to get sandbox image \"rancher/mirrored-pause:3.6\": failed to pull image \"rancher/mirrored-pause:3.6\": failed to pull and unpack image \"docker.io/rancher/mirrored-pause:3.6\": failed to unpack image on snapshotter overlayfs: unexpected media type text/html for sha256:6066282cb389d5bee17ec9f08335850ece266457a557511d3f5e78eabc34df21: not found"
time="2022-04-23T07:20:20.083796940-04:00" level=warning msg="reference for unknown type: text/html" digest="sha256:6066282cb389d5bee17ec9f08335850ece266457a557511d3f5e78eabc34df21" mediatype=text/html size=906
time="2022-04-23T07:20:20.156032946-04:00" level=info msg="Events for \"docker.io/rancher/mirrored-pause:3.6\" is in backoff, enqueue event &ImageUpdate{Name:docker.io/rancher/mirrored-pause:3.6,Labels:map[string]string{io.cri-containerd.image: managed,},XXX_unrecognized:[],}"
time="2022-04-23T07:20:20.173171864-04:00" level=error msg="RunPodSandbox for &PodSandboxMetadata{Name:helm-install-traefik--1-9g4n9,Uid:4882bb74-f80a-4ece-a4df-b7fad63ab11e,Namespace:kube-system,Attempt:0,} failed, error" error="rpc error: code = NotFound desc = failed to get sandbox image \"rancher/mirrored-pause:3.6\": failed to pull image \"rancher/mirrored-pause:3.6\": failed to pull and unpack image \"docker.io/rancher/mirrored-pause:3.6\": failed to unpack image on snapshotter overlayfs: unexpected media type text/html for sha256:6066282cb389d5bee17ec9f08335850ece266457a557511d3f5e78eabc34df21: not found"
time="2022-04-23T07:20:21.085809971-04:00" level=info msg="ImageUpdate event &ImageUpdate{Name:docker.io/rancher/mirrored-pause:3.6,Labels:map[string]string{io.cri-containerd.image: managed,},XXX_unrecognized:[],}"
time="2022-04-23T07:20:21.085950986-04:00" level=error msg="Failed to handle backOff event &ImageUpdate{Name:docker.io/rancher/mirrored-pause:3.6,Labels:map[string]string{io.cri-containerd.image: managed,},XXX_unrecognized:[],} for docker.io/rancher/mirrored-pause:3.6" error="update image store for \"docker.io/rancher/mirrored-pause:3.6\": get image info from containerd: get image diffIDs: unexpected media type text/html for sha256:6066282cb389d5bee17ec9f08335850ece266457a557511d3f5e78eabc34df21: not found"

Backporting
I don't really know if this issue needs backporting.

Another problem
I was able to "fix" the previous problem by doing a fully airgap installation, but when I try to:
 k3s crictl pull harbor.virtalus.com/q/metallb/speaker:v0.12.1

I get the following error:
FATA[0002] pulling image: rpc error: code = NotFound desc = failed to pull and unpack image "harbor.virtalus.com/q/metallb/speaker:v0.12.1": failed to unpack image on snapshotter overlayfs: unexpected media type text/html for sha256:6066282cb389d5bee17ec9f08335850ece266457a557511d3f5e78eabc34df21: not found

Although I'm still able to:
ctr i pull -k harbor.virtalus.com/q/metallb/speaker:v0.12.1
harbor.virtalus.com/q/metallb/speaker:v0.12.1:                                    resolved       |++++++++++++++++++++++++++++++++++++++|
index-sha256:40e0373788f3ea5e21a42b302a0ae4fd537646eb4b485e02b7ae52dc71da230c:    exists         |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:f4504b24983c61ea2fd6fa185f8b5ac870a303e04e0ccdcdb099e3fca90b1447: exists         |++++++++++++++++++++++++++++++++++++++|
layer-sha256:59bf1c3509f33515622619af21ed55bbe26d24913cedbca106468a5fb37a50c3:    exists         |++++++++++++++++++++++++++++++++++++++|
layer-sha256:c914caf2a709e2095fc85de82d195c297f65f39cecaac6f59f5047243ceb5b33:    downloading    |++++++++++++++++++--------------------|  4.0 MiB/8.2 MiB
layer-sha256:b3c9c7ec0554016a59eff220003aa5b3e2f6660251cc4f9fbb12e7b0ee876273:    exists         |++++++++++++++++++++++++++++++++++++++|
config-sha256:579ce8a43ea820ef260ede80522cf92c59fd0a59f97666699aa5b878e75a4ccf:   exists         |++++++++++++++++++++++++++++++++++++++|
layer-sha256:8f5232735740bcca8ce70fd5c429801612f51d566e2abf44726248e9586037d5:    downloading    |++++++++++++++------------------------|  7.0 MiB/18.3 MiB
elapsed: 4.8 s                                                                    total:  11.0 M (2.3 MiB/s)

/usr/local/bin/ctr -a /run/k3s/containerd/containerd.sock image pull harbor.virtalus.com/dockerhub/library/ubuntu:20.04 -k
harbor.virtalus.com/dockerhub/library/ubuntu:20.04:                               resolved       |++++++++++++++++++++++++++++++++++++++|
index-sha256:115822d64890aae5cde3c1e85ace4cc97308bb1fd884dac62f4db0a16dbddb36:    exists         |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:7b3e30a1f373b0621681f13b92feb928129c1c38977481ee788a793fcae64fb9: exists         |++++++++++++++++++++++++++++++++++++++|
config-sha256:1a437e363abfa47bfe4b3f5906b7444d12346102d944ebddd537e47a62fc6f52:   exists         |++++++++++++++++++++++++++++++++++++++|
layer-sha256:8e5c1b329fe39c318c0d49821b339fb94a215c5dc0a2898c8030b5a4d091bcba:    downloading    |--------------------------------------|    0.0 B/27.2 MiB
elapsed: 3.3 s                                                                    total:   0.0 B (0.0 B/s)

There are a couple problems with what you're doing.

You've set the endpoint for your registry mirror tohttps://harbor.virtalus.com/dockerhub/. This does not mean that all image docker.io/x will be pulled as harbor.virtalus.com/dockerhub/x, which is what I think you want. What you're actually doing is setting the root of the Docker V2 registry api to /dockerhub, which explains why you're getting text/html responses when pulling images. You're probably getting an error page from your Harbor registry.
When you configure a registry endpoint, this is only used internally as the location to pull the image from. It DOES NOT alter the name of the image that is pulled. If you pull docker.io/x, it will still show up as docker.io/x when pulled, even if it came from your mirror.

What you probably want is this:
mirrors:
  docker.io:
    endpoint:
      - "https://harbor.virtalus.com/v2"
    rewrite:
      "(.*)": "dockerhub/$1"
configs:
  "harbor.virtalus.com":
    tls:
      insecure_skip_verify: true

what if I have a authorization for my registry?
I have write things into my /etc/rancher/k3s/registries.yaml like:
mirrros:
  myregistry:
    endpoint:
      - "http://myregistry"
configs:
  "myregistry":
    auth:
      username: myusr
      password: mypasswd

and I restarted k3s as well as containerd
here I tried k3s crictl pull --creds myusr:mypasswd myregistry/myimage:v1, it worked, but k3s crictl pull myregistry/myimage:v1  failed, unsuperisingly, when k3s kubectl creates something, it cannot pull it either.
Seems that the /etc/rancher/k3s/registries.yaml didn't work?

what if I have an authorization for my registry?
I wrote things into my /etc/rancher/k3s/registries.yaml like:
mirrors:
  myregistry:
    endpoint:
      - "http://myregistry"
configs:
  "myregistry":
    auth:
      username: myusr
      password: mypasswd

and I restarted k3s as well as containerd
here I tried k3s crictl pull --creds myusr:mypasswd myregistry/myimage:v1, it worked, but k3s crictl pull myregistry/myimage:v1  failed, unsuperisingly, when k3s kubectl creates something, it cannot pull it either.
Seems that the /etc/rancher/k3s/registries.yaml didn't work, what should I check?

I'm using cri-docker and docker rather than containerd sothere is no config.toml.
I wonder if there is a counterpart?

If you're using your own container runtime, you need to configure registry mirrors manually. k3s's registries.yaml is only used to configure the embedded containerd.

If you're using your own container runtime, you need to configure registry mirrors manually. k3s's registries.yaml is only used to configure the embedded containerd.

would you please offer more detailslike which file to edit?
to the best of my knowledge 'configure registry mirrors' means 'docker login' and it has worked, docker do logged things in ~/.docker/, but crictl pull won't use that information.

we don't have crictl login, right?

@lidh15 if you're managing your own containerd, I would defer to the containerd docs:
https://github.com/containerd/containerd/blob/main/docs/cri/registry.md

For 99.9% of repos, you either need to include the /v2 at the end, or to omit the path entirely (in which case containerd adds it for you).


CASSANDRA-8720 trunk: Provide offline tool for finding large partitions

@adelapena please add this tool into debian/cassandra-tools.install file as well as into redhat/cassandra.spec


Fix openjdk.vm dependency version format

openjdk.vm dependency version wasn't respecting the convention, it should be [x,y) not (x,y].  The version 21.0.1 need to be pickup as it is hard-coded in openjdk.vm.

I am not sure what convention do you mean. I think we used this syntax to avoid our bot to update the dependency. So I think both versions are equivalent.

I thought I had read in the documentation that we were using "[x,y)" and not '(x,y]', but I can't find it anywhere. I must be wrong.

openjdk.vm dependency version wasn't respecting the convention, it should be [x,y) not (x,y]

I am not sure what convention do you mean. I think we used this syntax to avoid our bot to update the dependency. So I think both versions are equivalent.
I think even relaxing it a bit should be ok, as I do not expect minor updates in openjdk to break anything and it would allow more flexibility (problems with dependencies incompatibilities): [21.0.0, 21.1.0).
I think we do not have documentation on what is expected and should probably add some to the wiki. 🤔

We can't as currently the version is hard-coded in the PowerShell script.

Related: I have added some documentation about dependencies in https://github.com/mandiant/VM-Packages/wiki/Chocolatey-packages#dependencies @naacbin we have had some discussion recently about dependency versions, could you check it out and let me know if you have any feedback (either in https://github.com/mandiant/VM-Packages/issues/728 or opening a new issue as you see it fit).


CMake error when CppUTest is a sub-project

I am following the instructions in src/CppUTest/CMakeIntegration-README.md to include CppUTest as a sub-project of my project. When I attempt to configure my build directory, the following error occurs:
CMake Error at cpputest/src/CppUTest/CMakeLists.txt:69 (install):
  install TARGETS given no ARCHIVE DESTINATION for static library target
  "CppUTest".

In looking at that line in the CMake list file, the variable CMAKE_INSTALL_LIBDIR does not appear to be defined. I searched through the CppUTest source for a definition, but none was found. I assume this needs to be set to something like lib, etc.
Do the instructions in the aforementioned README need to be updated to indicate that the variable, CMAKE_INSTALL_LIBDIR, need to be defined also?

Referencing #1187 : Looks like this issue was introduced while fixing #1150
If I follow the instructions in the CMakeIntegration-README.md from v3.8, it seems to work. I have the same issue from the latest master.
@smfelsher  do you see the same?

I thought that CMAKE_INSTALL_LIBDIR was a variable that is defined by CMake itself, but I can't seem to find it in CMake's documentation. Am I missing something? Anyone have a link?

@KevinWMatthews , I do not see a CMake configuration error if I use code from v3.8.

This should be done when releasing, right? Can I close this?


fix-no-opportunity-issue

This PR solves #68
Currently, when no openings are present, the website renders empty list-items which it should not. So, we need to fix it if no opportunity is available from the props.
The issue is on the main website of https://scorelab.org/ if the 'NAs' are passed knowingly and if this is not a genuine issue, the PR can be closed by maintainers :)

I would request @wdevon99 and @charithccmc to have a look into this and review this PR :)


Execution count wrong after restarting kernel

Execution count is not reset to 1 after restarting kernel:

Testing with 1.60 and latest VSIX from release branch.

Looks like restart is not working at all

Isn't this a regression?

Yes it is

Weird, I can't repro this anymore.

Neither could i


[Question] Completition window popup following the cursor

It's possible to make the competition window popup, following the cursor while type?

You should upload the example.

For reference
https://github.com/lvimuser/nvim-cmp/commit/d9a0678897f7c9f342e288c9d3304a7cd7afe6c1

Can you upload the screenshot?
And why the feature is useful?

https://github.com/hrsh7th/nvim-cmp/assets/109605931/78f122ff-8c4b-4367-8818-fd4788081d8a
Not sure if useful? It looks a bit nicer, imo.

Why isnt this just added as an option? It is literally -3 lines of code.

You can make the PR for it.

Created a PR which adds this as an option, set to false by default. I want this feature.

Created a PR (with @lvimuser as coauthor, thank you for the critical piece of source) which adds this as an option for the custom entries view, set to false by default. I want this feature.

thank you guys


nmdc-schema needs a more global mechanism for capturing ownership-like credit

This is especially relevant to the export NCBI XML task, with contributors @sujaypatil96 @aclum @chienchi etc.
If we are submitting Biosample records to NCBI, we want to indicate the various people and organizations that played a role in the final result: the sequence and metadata about the sample are available in NCBI.
We might say that A obtained the sample, B did the extraction and prepared the library, C operated the sequencer and D uploaded all of that to NCBI.
Challenges:

which standard NCBI fields can that knowledge go into?

Will it require custom fields? What should we call them? Can we use terms from an OBO ontology or schema.org?

where should we store that knowledge in MongoDB/ according to the schema?

I think we might be able to use a CreditAssociation-like mechanism on many classes in the schema.

Adding this to this sprint as we need to determine custom attributes for NCBI submission testing.

Comprehensive example from NCBI (Submission, BioProject, BioSample, SRA): https://www.ncbi.nlm.nih.gov/viewvc/v1/trunk/submit/public-docs/sra/samples/sra.submission.bs.bp.run.xml?view=co

Block of XML to focus on/peek at:
<Submission>
<Description>
<Comment>BP(1.0)+BS(1.0)+SRA</Comment>
<Organization role="owner" type="institute">
<Name>Institute of Biology</Name>
<Contact<EMAIL_ADDRESS><Name>
<First>jane</First>
<Last>doe</Last>
</Name>
</Contact>
</Organization>
<Hold release_date="2015-10-21"/>
</Description>

Where does "ownership" appear in the NCBI Submission Schema (or any of its constituents)? Look in the XSDs.
which are required?
which optional ones do we want to fill in?
do we already have slots that capture all of that?

The NMDC schema has has_credit_association for Study and processing_institution for PlannedProcess.

Submission XSD: https://www.ncbi.nlm.nih.gov/viewvc/v1/trunk/submit/public-docs/common/submission.xsd?view=co
BioProject XSD: https://www.ncbi.nlm.nih.gov/viewvc/v1/trunk/submit/public-docs/bioproject/bioproject.xsd?view=co
BioSample XSD: https://www.ncbi.nlm.nih.gov/viewvc/v1/trunk/submit/public-docs/biosample/biosample.xsd?view=co

From the Submission XSD:
<xs:element name="Organization" minOccurs="1" maxOccurs="unbounded" type="typeOrganization">
	<xs:annotation>
		<xs:documentation>
                    Organization(s) involved into the submission.
                    One organization is the owner of submission data which is identified by  attribute "role"
                  </xs:documentation>
	</xs:annotation>
</xs:element>

<xs:attribute name="role" use="optional">
	<xs:annotation>
		<xs:documentation>
          Role of the ogranization in submission - owner of the data or just a participant.
          It is expected that there is one owner of the submission data.
        </xs:documentation>
	</xs:annotation>
	<xs:simpleType>
		<xs:restriction base="xs:string">
			<xs:enumeration value="owner"/>
			<xs:enumeration value="participant"/>
		</xs:restriction>
	</xs:simpleType>
</xs:attribute>

<xs:complexType name="typeOrganization">

@turbomam to contact John at NCBI and check assumptions about the Organization and Submitter nodes in the NCBI submission schema

Appears to be active. Will move to the next sprint.
@turbomam please let me know if you're not working on this issue currently.

Hi Mark,
I've moved this conversation over to our standard helpdesk software so we can keep better track of it on our end. You can certainly enter multiple organization nodes in the xml package, but only the ‘owner’ is displayed on public pages currently. It may be possible to display other organization roles on the public pages in specified fields for them, but that would take some development work and our product teams would need to comment on whether and when it can be done.
The Submitter node is auto-populated by submission portal to match the submitting account when the submission is created. The submitting account can make updates to the submission in the future, as well as any users who are a member of the associated shared submission group.
It might help if we had a little more information about how you want NMDC and the data provider to be associated with the submission. Is your goal to maintain editorial ownership of these submissions and simply provide credit for the data provider on the public pages? Or do you want to transfer ownership to the data provider, making them the submitting account? We have an option that allows you to transfer editing privileges to another user after you create the submission. If you are interested in that, let us know and we can discuss it.
Best,
The SRA Team
National Center for Biotechnology Information | National Library of Medicine
National Institutes of Health, Bethesda, Maryland 20892
Email<EMAIL_ADDRESS>Connect with NLM: Twitter | Facebook | YouTube

PLEASE DO NOT MODIFY THE SUBJECT LINE OF THIS EMAIL WHEN RESPONDING TO ENSURE CORRECT TRACKING *

Case Information:
Case #: CAS-1333031-N0Y0X1
Customer Name: Alicia Clum
Customer Email<EMAIL_ADDRESS>Case Created: 6/27/2024, 2:49:27 PM
Summary: NMDC API submission account
Details:
From: Mark Miller<EMAIL_ADDRESS>Sent: Tuesday, June 25, 2024 1:50 PM
To: Alicia Clum<EMAIL_ADDRESS>Trow, Jonathan (NIH/NLM/NCBI) [C]<EMAIL_ADDRESS>Sujay Patil<EMAIL_ADDRESS>Subject: Re: [EXTERNAL] Re: NCBI UIless submission procedures
Hi John. Thanks for helping NMDC think about how to optimally credit people and organizations for the work in NMDC records that we intend to submit to NCBI. Thanks Alicia for starting this conversation.
I've been one of the MIxS developers for a few years now and I would really prefer that NMDC not propagate the use of non-standardized attributes.
Sujay Patil and I have been studying the NCBI submission XSD files to understand how to map NMDC's MIxS-like terminology to tNCBI's expectations.
I suspect that we can express all of the necessary credit in all of the data structures (Biosamples, Bioprojects, SRA) by including multiple  nodes. NMDC would take the role of 'participant', not 'owner'. If I could raise an issue, I personally would ask for a richer vocabulary of roles, not a custom attribute approach.
How does that multiple participant organization solution sound?
I am also curious about a tag that I remember as . I got the impression that it is auto-populated with the name or email of the human logged in when the submission is actually submitted. I also got the sense that the  node/path never makes it into the biosample_set.xml etc. Can you say more about that? Does either the 'owner' designation or the contents of the  node determine who can edit the submission in the future?
thanks a lot,
Mark

@turbomam what's the status of this?
@sujaypatil96 @aclum

Let's aim to get this sorted out this sprint.

We've had some good discussion on Slack but I haven't added any of that to this issue yet. We're meeting this Thursday 2024-07-25 and I will update by the end of the day.

We've had some good discussion on Slack but I haven't added any of that to this issue yet. We're meeting this Thursday 2024-07-25 and I will update by the end of the day.

ANy update @turbomam after the meeting yesterday?

@turbomam  did a nice analysis of existing custom attributes in ncbi and we will use a custom attribute of broker name which is a term many other submissions use.


Fixed database error on reading performance test

Signed-off-by: ashish<EMAIL_ADDRESS>Description
This PR fixes #4606
Notes for Reviewers
Signed commits

[x] Yes, I signed my commits.

Codecov Report

Merging #4625 (74b4610) into master (b8b7e62) will decrease coverage by 7.11%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #4625      +/-   ##
==========================================
- Coverage   33.05%   25.93%   -7.12%
==========================================
  Files          60       60
  Lines        5086     5086
==========================================
- Hits         1681     1319     -362
- Misses       2964     3438     +474
+ Partials      441      329     -112

Flag
Coverage Δ

gointegrationtests
?

unittests
25.93% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

mesheryctl/internal/cli/root/system/start.go
1.11% <0.00%> (-58.52%)
:arrow_down:

mesheryctl/internal/cli/root/system/restart.go
2.50% <0.00%> (-47.50%)
:arrow_down:

mesheryctl/internal/cli/root/system/status.go
0.00% <0.00%> (-47.44%)
:arrow_down:

mesheryctl/internal/cli/root/system/update.go
1.05% <0.00%> (-34.74%)
:arrow_down:

mesheryctl/internal/cli/root/system/stop.go
0.86% <0.00%> (-27.59%)
:arrow_down:

mesheryctl/internal/cli/root/system/check.go
1.39% <0.00%> (-22.38%)
:arrow_down:

mesheryctl/internal/cli/root/system/logs.go
3.29% <0.00%> (-20.88%)
:arrow_down:

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 aadb676...74b4610. Read the comment docs.


[music3] disable lighting for meshes in 2D

From this PR https://github.com/Inria-Asclepios/medInria-public/pull/514
Commit https://github.com/medInria/medInria-public/commit/d716ccdbea0f85c24e419bdaffd88489bc038885

* Fix lighting problem that caused mesh contours to be barely visible

* Increase line width from 1 to 3 pixels.

Before:

After:

I asked @mjuhoor your question @ocommowi @Florent2305 and the colors remains on the 2D mesh :)

great


IPP recommendations for OpenAPI

Converted to OpenAPI 3.0
Removed the old yaml files the IPP recommends JSON file always called openapi.json
Different versions in different folders
The Swagger UI Engine doesn't support OpenAPI so its broken
Fixed the locations where the new JSON files are stored for swagger UI
Engine

@gmcculloug @syncrou
Please review breaking changes to swagger ui engine which doesn't support OpenAPI 3.0

Swagger UI Engine error message


Soldier Combat System

First Cut at combat system to be introduced.

This system is preliminary and is based on a D&D combat system.
Combat will work as follows:

Player and Enemy Unit information will be updated. (in case new units arrive)
Attacker Fights first.
The Attackers units will be divided into groups of 25. Each group has a 9/20 chance of dealing damage to a defender.
After determining which groups will be able to damage the defender. Damage rolls are cast with damage ranging from 1 to 6 pts.
Total damage across all groups is added and then subtracted from the Defender Unit count.
Repeat steps 2 to 5 but from Defender perspective.


Remove Test Logging code in lieu of the code in Logging.Testing

No product code affected.

Closing as duplicate of #1026. Apparently I have a short memory when it comes to filing bugs...


Multiple runs - one file per run

Some files are created at beginning of multiple runs (version.json) and others created for each run.
Could we have one file per run which in itself is complete?  This would make incremental processing easier as each diagnostic would be complete (and the unlikely event that one of the common files had changed between runs would be removed).

This should be fixed in the 2.x release of this utility. If not please reopen the issue.


Usage with untranspiled module in node_modules?

Hi!
I'm trying to use a lib that ships untranspiled to NPM, and thus needs transpiling locally in the Razzle-project. I modified my razzle-config to include the module for transpilation in the js loader, and that seems to work fine for the client build as it no longer errors. However, I get the "unexpected token import"-error in what I assume is the server build.
Any ideas about this? I guess the problem is that I'd somehow need the module to be transpiled for the server as well?
Thanks in advance!

Managed to solve it. For future reference:
Turns out webpack-node-externals is applied and used during SSR, meaning no modules from node_modules are included for bundling and thus transpiling. I solved it by doing something along these lines in my razzle.config.js:
config.externals = target === 'node' ? [
      nodeExternals({
        whitelist: [
          dev ? 'webpack/hot/poll?300' : null,
          /\.(eot|woff|woff2|ttf|otf)$/,
          /\.(svg|png|jpg|jpeg|gif|ico)$/,
          /\.(mp4|mp3|ogg|swf|webp)$/,
          /\.(css|scss|sass|sss|less)$/,
          /^my-untranspiled-package/
        ].filter(Boolean),
      }),
    ] : [];

...where a majority of that code is copied right from createConfig.js in this repo.

@zth how did you get it to work on the client side in the first place? could you share your config?

Ok, I figured it out. You need to extend the includes of the babel-loader. Also you have to set the babelOptions explicitly unless they are specified in a .babelrc inside the untranspiled package, having a /babelrc in your apps package is not enough.
Here's a complete example config:
'use strict';
const nodeExternals = require('webpack-node-externals');
const fs = require('fs');

module.exports = {
	modifyBabelOptions() {
		return {
			presets: ['razzle/babel'],
			plugins: ['transform-flow-strip-types'],
		};
	},
	modify(config, { target, dev }, webpack) {
		// package un-transpiled packages
		const babelRuleIndex = config.module.rules.findIndex(
			(rule) => rule.use && rule.use[0].loader && rule.use[0].loader.includes('babel-loader')
		);
		config.module.rules[babelRuleIndex] = Object.assign(config.module.rules[babelRuleIndex], {
			include: [
				...config.module.rules[babelRuleIndex].include,
				fs.realpathSync('./node_modules/untranspiled-package')
			],
		});
		config.externals =
			target === 'node'
				? [
						nodeExternals({
							whitelist: [
								dev ? 'webpack/hot/poll?300' : null,
								/\.(eot|woff|woff2|ttf|otf)$/,
								/\.(svg|png|jpg|jpeg|gif|ico)$/,
								/\.(mp4|mp3|ogg|swf|webp)$/,
								/\.(css|scss|sass|sss|less)$/,
								/^untranspiled-package/,
							].filter(Boolean),
						}),
				  ]
				: [];
		// return
		return config;
	},
};

I managed to do the same trick as @MrLoh also for Typescript ts-loader. Check allowedPackages, you can insert your package name there. I also took into account an idea that it seems that it is enough for current version of Razzle to be without custom config.externals, but you might be interested also in original @MrLoh solution (see about config.externals deletion: https://github.com/jaredpalmer/razzle/issues/842#issuecomment-475722036)
  const allowedPackages = ['my-component']

  const allowedPackagePaths = allowedPackages.map(packageName =>
    fs.realpathSync('./node_modules/' + packageName)
  )

  const tsRuleIndex = config.module.rules.findIndex(
    rule =>
      rule.use && rule.use[0].loader && rule.use[0].loader.includes('ts-loader')
  )

  if (tsRuleIndex === -1) {
    throw Error(
      'This component assumes that you are using ts-loader. If you are not using it, then you might need to check and test code for how would it work with other loaders'
    )
  }

  config.module.rules[tsRuleIndex] = {
    ...config.module.rules[tsRuleIndex],

    include: [
      ...config.module.rules[tsRuleIndex].include,
      ...allowedPackagePaths,
    ],
  }

  delete config.externals

Managed to solve it. For future reference:
Turns out webpack-node-externals is applied and used during SSR, meaning no modules from node_modules are included for bundling and thus transpiling. I solved it by doing something along these lines in my razzle.config.js:
config.externals = target === 'node' ? [
      nodeExternals({
        whitelist: [
          dev ? 'webpack/hot/poll?300' : null,
          /\.(eot|woff|woff2|ttf|otf)$/,
          /\.(svg|png|jpg|jpeg|gif|ico)$/,
          /\.(mp4|mp3|ogg|swf|webp)$/,
          /\.(css|scss|sass|sss|less)$/,
          /^my-untranspiled-package/
        ].filter(Boolean),
      }),
    ] : [];

...where a majority of that code is copied right from createConfig.js in this repo.

This worked with me. My question is, The libraries are being duplicated in the client and server bundle. Any way to chunk this common this into a new file using razzle.config.js ?

Managed to solve it. For future reference:
Turns out webpack-node-externals is applied and used during SSR, meaning no modules from node_modules are included for bundling and thus transpiling. I solved it by doing something along these lines in my razzle.config.js:
config.externals = target === 'node' ? [
      nodeExternals({
        whitelist: [
          dev ? 'webpack/hot/poll?300' : null,
          /\.(eot|woff|woff2|ttf|otf)$/,
          /\.(svg|png|jpg|jpeg|gif|ico)$/,
          /\.(mp4|mp3|ogg|swf|webp)$/,
          /\.(css|scss|sass|sss|less)$/,
          /^my-untranspiled-package/
        ].filter(Boolean),
      }),
    ] : [];

...where a majority of that code is copied right from createConfig.js in this repo.

This worked with me. My question is, The libraries are being duplicated in the client and server bundle. Any way to chunk this common this into a new file using razzle.config.js ?

This worked with me. My question is, The libraries are being duplicated in the client and server bundle. Any way to chunk this common this into a new file using razzle.config.js ?


Apple HiFi Support

Apple just announced HiFi music playback with their own ALAC format. Is this something that will be supported on their web app, or only on Apple devices. If the former, having support for this would be fantastic!
https://www.apple.com/newsroom/2021/05/apple-music-announces-spatial-audio-and-lossless-audio/
Thank you for your app, you're doing an amazing job saving the world from having to install iTunes.

Thanks for your support! I do plan on manually adding support for HiFi to the app once the full MusicKit is updated and available for me to use.

As an addition to HiFi support, having options to choose between 256kbps AAC, lossless (16/44.1-24/48) and hi-res lossless (24/88.2-24/192) would be super useful, as well as showing the currently playing sample rate and bit depth.

Is it documented now what bitrate apple music electron currently streams at?

256kbps AAC.

It's pretty much sad that Apple still has not updated its API.

This would be an awesome feature as we, windows users, do not have any support from Apple even thru iTunes at the very least.

This would be an awesome feature as we, windows users, do not have any support from Apple even thru iTunes at the very least.

Just to let you know that this won’t be possible until Apple release support for hifi on the web, as this electron app uses Apple’s beta Apple Music website as the core. It is currently available in their private alpha app but hasn’t been pushed to the beta yet. Once that happens then this will be possible.

This would be an awesome feature as we, windows users, do not have any support from Apple even thru iTunes at the very least.

Just to let you know that this won’t be possible until Apple release support for hifi on the web, as this electron app uses Apple’s beta Apple Music website as the core. It is currently available in their private alpha app but hasn’t been pushed to the beta yet. Once that happens then this will be possible.

More precisely if they update their MusicKit API.

Someone made lossless audio playback on portable Android player. Not sure uf it will help you but here is the link.
https://www.head-fi.org/threads/astell-kern-a-futura-se200-first-dap-with-multiple-dacs-head-fi-tv.935878/page-64#post-16442828

Waiting for MusicKit update.

Will this ever come in an update or never?

Apple is currently implementing this into the Web version and once thats done it will be immediately available in AME.

Apple is currently implementing this into the Web version and once thats done it will be immediately available in AME.

Really? Did apple confirm that?

I'm friends with a MusicKit/Apple Music Web employee and they confirmed that information to me and they already have it working internally.

Are there any updates on this, or still just waiting?

Don't know nearly 3 months have been passed and apple even doesn't have started the beta testing process of this feature :(

Nope, no updates from Apple. However things may change soon


.net6 official release

i only see a .net5 release in the list, is there one for .net6 as well?
does the bulkinsert perform better in sense of faster and less memory consumption than the originel EF Core?

Yes, it is published on NuGet, GitHub releases are not used.
It's much faster for large List, there is comparison at the end of ReadMe.


User can't provision the Intel NUC skull canyon

User tried to provision a new NUC skull canyon,  it appeared on the dashboard in flashing mode, but seems like it can't flash to internal media, so it just sat there forever.
@floion or @agherzan , do either of you have one of these devices? I think 2 or  3 people have raised this recently
 Front conversations

Yes, I have tested the Intel NUC6i7KYK on my side and tests passed.
I have let the user know we released a new version so he can test and come back to us.
I suspect that his particular NUC model is using nvme storage and on my end I do not have that type of storage to test with.

Still pending user reply

Took this and will implement NVME support.

NVME support was merged so we can close this.


Selection#formatText to retain selection and handle all text nodes

A few bugs in formatText affected selection retention and nodes formatting in case selection starts with non-text node:

Selection changes after formatting

https://user-images.githubusercontent.com/132642/183076029-8d848c8b-4427-4c9e-bb1e-aa9c78ae1ca5.mov
https://user-images.githubusercontent.com/132642/183076594-afb91e3d-6e51-44f6-994c-b35420246be8.mov

Selection formats only first text node

https://user-images.githubusercontent.com/132642/183076292-32adb1b1-6104-408c-8a3f-ce0f409c90e1.mov

Backward selection (focus is before anchor) converted to a regular one (anchor goes first). Select word backward, make it bold, press Shift + left arrow. Expected selection to keep expanding backward

https://user-images.githubusercontent.com/132642/183086040-c8f09519-25ef-4f45-933e-39d15822f002.mov
Overall logic:

Get selected text nodes (skip first one if selection starts on its end)
Get start/end text offsets including cases with non-text anchor/focus
Split first/last nodes if selection starts or ends inside text node and format it
Format all text nodes in between
Move selection only in case when it was on text node that was split, otherwise keep it as is (including cases when it's on element node)

Adjusted e2e that expected backward selection to be converted to a regular one

I ran into this bug yesterday, and like magic this fix was released today. Love this lib and the solid work you all are doing, it is very much appreciated.


Update gem to 0.7.0

This update contains the following:

Updates spina-admin-journal to 0.6.0.
Adds ISSN and page number information to article metadata.
TODO

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 1 (0.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 93.411%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

lib/spina/conferences/primer_theme/version.rb
0
1
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
213

Relevant Lines:
226

💛  - Coveralls


Documentation tracker - v0.10.0

Airnode issues that need documentation:

[x] https://github.com/api3dao/airnode/issues/1626
[x] https://github.com/api3dao/airnode/issues/1594
[x] https://github.com/api3dao/airnode/issues/1536
[x] https://github.com/api3dao/airnode/issues/1527
[x] https://github.com/api3dao/airnode/issues/1492
[x] https://github.com/api3dao/airnode/issues/1473
[x] https://github.com/api3dao/airnode/issues/1460
[x] https://github.com/api3dao/airnode/issues/1458
[x] https://github.com/api3dao/airnode/issues/1444
[x] https://github.com/api3dao/airnode/issues/1443
[x] https://github.com/api3dao/airnode/issues/1411
[x] https://github.com/api3dao/airnode/issues/1406
[x] https://github.com/api3dao/airnode/issues/1405
[x] https://github.com/api3dao/airnode/issues/1404
[x] https://github.com/api3dao/airnode/issues/1403
[x] https://github.com/api3dao/airnode/issues/1393
[x] https://github.com/api3dao/airnode/issues/1376
[x] https://github.com/api3dao/airnode/issues/1375
[x] https://github.com/api3dao/airnode/issues/1374
[x] https://github.com/api3dao/airnode/issues/1337
[x] https://github.com/api3dao/airnode/issues/1296
[x] https://github.com/api3dao/airnode/issues/1284

Corresponding documentation issues:

[x] https://github.com/api3dao/api3-docs/issues/1175
[x] https://github.com/api3dao/api3-docs/issues/1129
[x] https://github.com/api3dao/api3-docs/issues/1118
[x] https://github.com/api3dao/api3-docs/issues/1131
[x] https://github.com/api3dao/api3-docs/issues/1063
[x] https://github.com/api3dao/api3-docs/issues/1064
[x] https://github.com/api3dao/api3-docs/issues/1164
[x] https://github.com/api3dao/api3-docs/issues/1031
[x] https://github.com/api3dao/api3-docs/issues/1030
[x] https://github.com/api3dao/api3-docs/issues/1004
[x] https://github.com/api3dao/api3-docs/issues/1167
[x] https://github.com/api3dao/api3-docs/issues/1159
[x] https://github.com/api3dao/api3-docs/issues/1059
[x] https://github.com/api3dao/api3-docs/issues/1048
[x] https://github.com/api3dao/api3-docs/issues/1130
[x] https://github.com/api3dao/api3-docs/issues/992
[x] https://github.com/api3dao/api3-docs/issues/967
[x] https://github.com/api3dao/api3-docs/issues/966
[x] https://github.com/api3dao/api3-docs/issues/994
[x] https://github.com/api3dao/api3-docs/issues/985
[x] https://github.com/api3dao/api3-docs/issues/993

All documentation tasks for v0.10 complete


Syntax highlighting breaks after < and <= operators

code
vscode version: 1.28.1 built from source
kotlin-language version: 1.7.0 (from marketplace)
OS: Ubuntu 18.04

It seems that it thinks that < is the beginning of a scope (an opening brace). As you can see, it highlights the text after > and the original < is highlighted as the corresponding brace for the > sign.
(And by the way, the closing > sign was not shifted by me - I typed it at the beginning of the line - it was probably aligned with the line 2 containing "<")
vscode version: 1.29.1
Kotlin Language version: 1.7.0 (from marketplace)
OS: Windows 10 Pro version 1803

/syntaxes/Kotlin.tmLanguage: line 829 suggests the cause is '<' being captured as generic.begin

I can verify that temporarily changing the symbols for "<" and ">" on lines 831 and 841 of Kotlin.tmLanguage causes the problem to go away. It might work, therefore, just to remove the detection of the generic begin/end chars (at least as a stop-gap solution). But I am not sure of the exact changes to this file that would be required to do that.

Issue still present, check out this file, commit d2e703c


Migrate to AndroidX

This commit was auto generated by Android Studio's "Refactor -> Migrate to AndroidX..." feature.
More info at: https://developer.android.com/jetpack/androidx/migrate
Closes #112

There's a test failing but it was failing on 'master' too. Not sure why.

@daniellevass 👋 I wanted to add you as a reviewer on this PR but I somehow can't.

@luismfonseca  Can you please assign a reviewer to this?

@julioromano sorry for the late response, I no longer work at Pusher but @jonathanlloyd or @TomKemp might be able to assist you with this.

@jonathanlloyd @TomKemp can anyone assist on this? Please see the related issue https://github.com/pusher/push-notifications-android/issues/112 for reference


gleam: 0.20.1 to 0.21.0

Description of changes
Updates gleam from version 0.20.1 to 0.21.0, bringing in LSP support for IDEs
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[X] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 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
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

A heads up that we will probably want to backport this to 22.05

looks good, and CI is happy, thank you!


Add deploy plugin for AzureFile and Azure Disk CSI

What type of PR is this?

Uncomment only one  /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:
/kind api-change
/kind bug
/kind cleanup
kind design
/kind documentation
/kind failing-test
/kind feature
/kind flake

What this PR does / why we need it:
Add plugin for Azure File and Disk CSI
Which issue(s) this PR fixes:

Fixes #7
Special notes for your reviewer:
Locally tested. Successful
Release note:

/ok-to-test


How to configure two ports in configuration.toml file?

In the past，I run edgex by executing the following statement
sudo docker-compose -f docker-compose-nexues-redis-no-secty.yml up -d
and I discover that core-data with two ports
image: nexus3.edgexfoundry.org:10004/docker-core-data-go:master
    ports:
      - "<IP_ADDRESS>:48080:48080"
      - "<IP_ADDRESS>:5563:5563"

I want to make core-data service send messages to app service through messagequeue  on port 5563.
[MessageQueue]
Protocol = 'tcp'
Host = 'localhost'
Port = 5563
Type = 'zero'
Topic = 'events'

So,how to configure two ports in the configuration.toml file of core-data?
Thanks!

@xuexiqiangzhe , the ports section in the compose file is just exposing those ports to the localhost so you can access them from a tool or app running on the localhost rather than in the docker network. Useful for testing an app and need to run it locally, not in docker.
core-data already sends messages to app service through Message Bus on port 5563, so not sure what you are trying to do. You can change the MESSAGEQUEUE_PORT via env override in the environment section of core data in the compose file, but you will also need to do an override of the MESSAGEBUS_SUBSCRIBEHOST_PORT on the application service so it receives on that port you changed core-data to send on.
Not sure why you would need/want to change this port??

@lenny-intel
Maybe I didn't express myself clearly,sorry.
I used to use docker-compose.yml to start egdex, which has two ports configured for core-data
-"<IP_ADDRESS>:48080:48080"
- "<IP_ADDRESS>:5563:5563"

So core-data is able to sends messages to app service through Message Bus on port 5563.
But，now I use edgex-go package to start edgex, core-data sends messages to app service failed.
Error reporting information is following
No device ''http:localhost:5563''

The file ''edgex-go/cmd/core-data/res/configuration.toml'' is configured with only one port 48080
[Service]
Host = 'localhost'
Port = 48080
Protocol = 'http'

So there is no port 5563.How to add 5563 port to core-data in its configuration file？

@xuexiqiangzhe you don't need to do further changes.  It's still defined in the [MessageQueue] section
https://github.com/edgexfoundry/edgex-go/blob/4c8b75db6bcf36065f6e2cf8696ea10020b74332/cmd/core-data/res/configuration.toml#L51-L56
How and where did you get the error message?  May we know the recreate steps?

@cloudxxx8 Thanks for your reminder.
Now core-data is able to send messages to app service successfully,by repeating all the steps,including downloading edgex go again and compiling it.
I think I have changed following Host from '*' to 'localhost'.This is the cause of the error.I'm sorry to trouble you both.
[MessageQueue]
Protocol = 'tcp'
Host = '*'

Thank you very much, @cloudxxx8 @lenny-intel


Update Lab04_Custom_Connectors.md

remove drop-down change to tab
Module: 00
Lab/Demo: 00
Fixes # .
Changes proposed in this pull request:

Submitted by clifford-smith on behalf of MOC Labs Review.

This pull request adjusts the same lines as pull request #132.


React: 14.2 error in code, and missing highlights for changes

The first code snippet in 14.2 has:
import addFaqItem from "./actions";

This should be two dots:
import addFaqItem from "../actions";

The second snippet directly below it uses connect, but it does not import it:
export default connect ...

The full file below it has it correct, but these lines miss highlighting:
import { connect } from "react-redux";
...
import { addFaqItem } from "../actions";

Looks like my merged PR is on the live site. I close this.


Fix get_package and the number of rows

I see that the solr query in get_package uses rows=1000. Probably should:

Increase the count
Warn if the number of rows returned is as the max
Allow the user to specify rows

get_package has the second and third bullet points implemented already.  Implementing the first bullet in #110


feat(): add support for DateOnly and TimeOnly #680

Description
Add support for DateOnly and TimeOnly that were both added in .net 6
Issues Resolved
Closes #680.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Working on the changes as we speak. Thank you for being so proactive on my PR

Thanks for tackling this @joefeser! Some relatively small issues other than those already commented in particular files:

Looks like there's a compile error with the change in SDK.
Please add an entry to the CHANGELOG.md under the ### Added section
The DCO check requires commits to be signed off, you can do this for your existing commits via git rebase HEAD~2 --signoff and then make sure to pass --signoff to any future commits for this repo

All of these tasks are completed

Thank you for this @joefeser, would you mind making a follow up PR adding the DateOnly and TimeOnly types into the unit test here: https://github.com/opensearch-project/opensearch-net/blob/main/tests/Tests.Reproduce/DateSerialization.cs

@Xtansia I will add it in the next few days. I wasn't sure where to write the tests. I am going to do a POC also to add NodaTime support and at least get that conversation going

I have played a bit with this PR and I think there we still have some likely problems :

If you don't do anything to the mappings, your TimeOnly fields are mapped as strings with

"type": "text",
"fields": {
    "keyword": {
        "type": "keyword",
        "ignore_above": 256
    }
}

instead of something with "type": "date"

If you use openSearchClient.Indices.CreateAsync(indexName, x => x.Map(x => x.AutoMap(typeof(YourType)))) your DateOnly and TimeOnly properties have no way to be inferred and will be still be treated as "normal" objects here. https://github.com/opensearch-project/opensearch-net/blob/c2fdd5d1df4929000249d07ccdf2c8b21fd2fde6/src/OpenSearch.Client/Mapping/Visitor/PropertyWalker.cs#L197

I tried fixing this second issue and for DateOnly, it seems like adding a case "DateOnly" next to the DateTime one above on the method I linked is sufficient.
On the other hand for TimeOnly it seems like we need more than that since you get a parsing error when trying to put data in your index. From my understanding, the format is responsible there but adding
case "TimeOnly":
    return new DateProperty()
    {
        Format = "strict_hour_minute_second_millis"
    };

was unsuccesful (for some reasons, doing Format = ... there doesn't seem to change anything to the resulting mappings).
PS : I pulled the value for Format =  here but am unsure if strict_hour_minute_second_millis is really the best fit