Can't override OnLaunchApplicationAsync

any ideas? plz help

Just double checking that you're working on a Windows 10 UWP app and got the lastest Prism.Unity package (try 6.2.0-pre3)? I created a new app and was able to build this code without a problem:
sealed partial class App : PrismUnityApplication
{
    /// <summary>
    /// Initializes the singleton application object.  This is the first line of authored code
    /// executed, and as such is the logical equivalent of main() or WinMain().
    /// </summary>
    public App()
    {
        this.InitializeComponent();
    }

    protected override Task OnLaunchApplicationAsync(LaunchActivatedEventArgs args)
    {
        // tadaaa
        return Task.CompletedTask;
    }
}


python-rapidjson-0.0.8.tar.gz raises an error in ubuntu

when try to install bigchaindb_driver (this also happens with bigchaindb),
the dependency to python-rapidjson-0.0.8 raises an error,
as I know this is related to the locale, but I'm not a python programmer and I don't know how can setup the locale to utf8  and make pip to work.
newest versions of python-rapidjson does not have this issue, so probably is better to upgrade this dependency
pip install bigchaindb_driver
Collecting bigchaindb_driver
Downloading bigchaindb_driver-0.2.1.tar.gz (481kB)
100% |################################| 481kB 2.7MB/s
Collecting requests>=2.11.0 (from bigchaindb_driver)
Downloading requests-2.13.0-py2.py3-none-any.whl (584kB)
100% |################################| 593kB 2.3MB/s
Collecting bigchaindb~=0.9.1 (from bigchaindb_driver)
Using cached BigchainDB-0.9.4.tar.gz
Collecting rethinkdb~=2.3 (from bigchaindb~=0.9.1->bigchaindb_driver)
Using cached rethinkdb-2.3.0.post6.tar.gz
Collecting pymongo~=3.4 (from bigchaindb~=0.9.1->bigchaindb_driver)
Using cached pymongo-3.4.0-cp35-cp35m-manylinux1_x86_64.whl
Collecting pysha3~=1.0.2 (from bigchaindb~=0.9.1->bigchaindb_driver)
Using cached pysha3-1.0.2.tar.gz
Collecting cryptoconditions>=0.5.0 (from bigchaindb~=0.9.1->bigchaindb_driver)
Using cached cryptoconditions-0.5.1.tar.gz
Collecting python-rapidjson==0.0.8 (from bigchaindb~=0.9.1->bigchaindb_driver)
Using cached python-rapidjson-0.0.8.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-f9sj9ef0/python-rapidjson/setup.py", line 27, in
long_description = f.read()
File "/usr/lib/python3.5/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 4009: ordinal not in range(128)

Thanks @ferOnti for reporting the issue. A pull request is on the way (#1351) and we should be making a patch release later today. We'll let you know once the patch is released on PyPI.

@ferOnti new patch release 0.9.5 is out on PyPI: https://pypi.python.org/pypi/BigchainDB/0.9.5

thank you, it works!

thank you, it works!

Cool! Thanks again for reporting!


[connector/spanmetrics]Extend connector to count events for all signals

The PR extends the current spanmetricsv2 connector to count all signal types. The motivation behind adding this feature is to have a single component that can produce metrics from all signal types for common counting needs. The counting can be either simple counts for all event types or histogram-type distribution for span metrics using span duration. Normal counting will count the number of spans, datapoints or logrecords as per the provided config.
Below are the changes performed in this PR. Note that the PR includes some breaking changes. Since the component is not in any release cycle, the changes are listed for ease of review only and are not a concern.

Extends the component to consume metric and logs in addition to spans.
[Breaking] Renames the previous counter type to sum_and_count type. This aggregation type is required for span destination metric which is indexed as 2 counters rather than aggregate_metric_double.
[Breaking] Introduces a new flavored counter type which can count the number of events if enabled. As of now, counting can be performed for spans, datapoints (metrics), and log records.
[Breaking] Drops the default configuration option when the component is enabled without any config. Now, this mode will be an error prompting user to provide at least one aggregation.

Apologies for the big PR, I could have split this into a couple of small PRs but it would have still required a big refactoring PR so I chose to do it in 3 PRs, following work will be follow-ups:

Rename the component from spanmetricsv2 to signaltometrics.
Introduce OTTL based filtering conditions to aid in counting.
ephemeral_resource_id config will be removed as per https://github.com/elastic/opentelemetry-collector-components/issues/159

Related to: https://github.com/elastic/opentelemetry-dev/issues/372

Closing this as decision as been reached to do this differently (see the comments above).


Meson cleanup

Just a few quality of life improvements for more idiomatic meson.build

we're hitting #43 now

Eep, sorry, but also #42 seems wrong as the file /usr/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h is indeed meant to be included via gdk-pixbuf/gdk-pixbuf.h
On the other hand  #if HAVE_JPEG was indeed a bug exposed by actually enabling jpeg when detected via auto mode.
You could use conf.set10() but you'll need to decide between sometimes using #if and sometimes using #ifdef, yay for legacy...

Eep, sorry, but also #42 seems wrong as the file /usr/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h is indeed meant to be included via gdk-pixbuf/gdk-pixbuf.h

yep, realized, hence #43, which you resolved with #44 =]


release 0.4.0

Codecov Report

Merging #149 (96a08d8) into main (29cc5ea) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #149   +/-   ##
=======================================
  Coverage   97.21%   97.21%
=======================================
  Files         187      187
  Lines        1904     1904
=======================================
  Hits         1851     1851
  Misses         53       53

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 29cc5ea...96a08d8. Read the comment docs.


Unable to use any class or function of jetbrains compose module in non jetbrains-compose module.

created branch for reference https://github.com/yuvaraj119/Expressus-temp/pull/1
Steps to reproduce:-
In windows when i run the android app it works perfectly no crash

but when i do maven-publish it throws error in this file ExpressusViewModel
unable to publish only the non-compose module which is consuming compose module.
where all other modules which are not consuming compose module gets published.
even the compose module gets published.
In mac maven-publish get failed and none of the module gets published below mac error

Could not resolve all task dependencies for configuration ':shared:iosArm64CompileKlibraries'.
Could not resolve project :shared-ui-compose.
Required by:
project :shared

No matching variant of project :shared-ui-compose was found. The consumer was configured to find a usage of 'kotlin-api' of a library, preferably optimized for non-jvm, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native', attribute 'org.jetbrains.kotlin.native.target' with value 'ios_arm64' but:

Variant 'debugApiElements' capability Expressus:shared-ui-compose:unspecified declares an API of a library, preferably optimized for Android:
Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native'
Other compatible attribute:
Doesn't say anything about org.jetbrains.kotlin.native.target (required 'ios_arm64')
Variant 'debugRuntimeElements' capability Expressus:shared-ui-compose:unspecified declares a runtime of a library, preferably optimized for Android:
Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native'
Other compatible attribute:
Doesn't say anything about org.jetbrains.kotlin.native.target (required 'ios_arm64')
Variant 'jvmApiElements' capability Expressus:shared-ui-compose:unspecified declares an API of a library, preferably optimized for standard JVMs:
Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native'
Other compatible attribute:
Doesn't say anything about org.jetbrains.kotlin.native.target (required 'ios_arm64')
Variant 'jvmRuntimeElements' capability Expressus:shared-ui-compose:unspecified declares a runtime of a library, preferably optimized for standard JVMs:
Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native'
Other compatible attribute:
Doesn't say anything about org.jetbrains.kotlin.native.target (required 'ios_arm64')
Variant 'metadataApiElements' capability Expressus:shared-ui-compose:unspecified declares a library, preferably optimized for non-jvm:
Incompatible because this component declares a usage of 'kotlin-metadata' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'common' and the consumer needed a usage of 'kotlin-api' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native'
Other compatible attribute:
Doesn't say anything about org.jetbrains.kotlin.native.target (required 'ios_arm64')
Variant 'releaseApiElements' capability Expressus:shared-ui-compose:unspecified declares an API of a library, preferably optimized for Android:
Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native'
Other compatible attribute:
Doesn't say anything about org.jetbrains.kotlin.native.target (required 'ios_arm64')
Variant 'releaseRuntimeElements' capability Expressus:shared-ui-compose:unspecified declares a runtime of a library, preferably optimized for Android:
Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native'
Other compatible attribute:
Doesn't say anything about org.jetbrains.kotlin.native.target (required 'ios_arm64')

Is there anyway we can get it compiled only for jvm and Android and ignore ios* target?

Hello!
Your shared module defines ios* targets while shared-ui-compose does not and shared depends on shared-ui-compose. So to fix this issue you need to add ios* targets to shared-ui-compose and implement actuals for ios target.
Some useful settings you may need to add to gradle.properties:
org.jetbrains.compose.experimental.uikit.enabled=true
kotlin.native.cacheKind=none
# Enable kotlin/native experimental memory model
kotlin.native.binary.memoryModel=experimental

@pjBooms - If Kotlin-Multiplatform dosent support this today then this should be part of new feature or enhancement. If there is already a ticket could you share the link so i can followup with updates.

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


[CMR] Add reusable InlineMenuActions component

Description
Adds an InlineMenuActions component and refactors pertinent code in LinodeActionMenu and LinodeConfigActionMenu
Type of Change

Non breaking change ('update', 'change')

Not quite sure how to type InlineMenuActions to resolve this TS error...


Use win32 singly linked list instead of LVGL linked list for fixing memory access conflict issues for win32drv.

This issue is reported by @SmartAnda.

Memory access conflicts occur when frequent keyboard navigation is performed due to LVGL's implementation does not thread safe.
So, use win32 singly linked list instead of LVGL linked list for solving the issue without preparing a modified version of LVGL linked list implementation and keeping the win32drv implementation as simple as possible.
Kenji Mouri

Looks good, thank you!

@kisvegabor I don't understand how this can work: at first I thought that the proposed patch was accepted by mistake, because the data structure in interlockedapi.h is a stack not a queue (InterlockedPopEntrySList and InterlockedPushEntrySList, used in the patch, removes/inserts an item from the front of a singly linked list).
Then I noticed that indeed the code that the patch replaced uses the lv_ll_t data structure in lv_ll.h as a stack (pushes and pops from head with _lv_ll_ins_head and _lv_ll_get_head) and not as a queue. So at least the name of the keyboard_queue variable is misleading, but I wonder what's the point of processing the sequence of keystrokes always starting from the last one and going backwards (stack).

@MaD70

I don't understand how this can work.

Because LVGL's linked list doesn't support thread safe. And win32drv uses separate window thread to process the window message. (Make main thread can have more time to do with LVGL's scheduler.)

So at least the name of the keyboard_queue variable is misleading

Not misleading, because it's preprocessed Win32's keyboard input queue.
Kenji Mouri

Because LVGL's linked list doesn't support thread safe. And win32drv uses separate window thread to process the window message. (Make main thread can have more time to do with LVGL's scheduler.)

@MouriNaruto that's not the part that is not clear to me (I linked to interlockedapi.h, I understood perfectly that the patch was made to make treadsafe the processing of keys from keyboard).

Not misleading, because it's preprocessed Win32's keyboard input queue.

I see that the keys in keyboard_queue come from the Win32's keyboard input queue (the lv_win32_window_message_callback event handler with the classic switch to dispatch events like the case for WM_KEYDOWN and WM_KEYUP) but keyboard_queue itself is created and managed by LVGL, it's not the Win32's keyboard input queue. I'm asking why keyboard_queue is managed like a stack.

For each time LVGL keyboard processing reads, it is like the queue.

Ok, I trust you on this (to understand why this is true I would have to study the library in much more detail, it's not at all apparent from a normal reading and that's why I asked).

Choose stack because we don't want to use pure C (because LVGL is a project as pure C as possible) to implement the thread safe queue by ourselves which is not tested by history.

I understand this, concurrency is notoriously difficult to implement correctly. I'm not aware of any current and widely used C implementation of a thread safe queue.
If the need arises, I would suggest the algorithms adopted by the Java library Simple, Fast, and Practical Non-Blocking and Blocking Concurrent Queue Algorithms: on this web page there is pseudo-code for the implementation and at this link there is an old C implementation (.tgz) (accessed from this page: High-Performance Synchronization for Shared-Memory Parallel Programs, the link is in the section Legacy Executables at Fast concurrent queue algorithms).
The implementation should be modernized to use C11 Atomic operations library, in particular CAS (Compare-And-Swap) in pseudo-code should be one of the atomic_compare_exchange of C11.


Store data in the context store

Current Behavior
The data from context store is altered / modified without a set command.
Same issue with flow and global store.
I understand that variables are addressed by reference, but without the flow.set or global.set command, the test variable should not be changed.

Example flow
[{"id":"8c9b67924e83909b","type":"inject","z":"a3c8de35e217836c","name":"Go","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":420,"y":1740,"wires":[["bd151de0383d6a11"]]},{"id":"bd151de0383d6a11","type":"function","z":"a3c8de35e217836c","name":"Set","func":"global.set('test', [123]);\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":550,"y":1740,"wires":[["e769c005a5323ebc"]]},{"id":"e769c005a5323ebc","type":"function","z":"a3c8de35e217836c","name":"Get Value","func":"let value = global.get('test')\n\nvalue[0] = 777\n\nmsg.payload = global.get('test')        // should be 123 but is 777\n\n\nreturn msg","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":700,"y":1740,"wires":[["655398db29d92ccb"]]},{"id":"655398db29d92ccb","type":"debug","z":"a3c8de35e217836c","name":"Flow","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":840,"y":1740,"wires":[]}]
Environment

Node-RED version: 2.0.6
Node.js version: 14.17.6 LTS
npm version: 7.22.0
Platform/OS: Windows 10 x64 , Ubuntu
Browser: Firefox

I understand that variables are addressed by reference, but without the flow.set or global.set command, the test variable should not be changed.

No. Because the variables are addressed by reference, they can be modified without the call to set. That is how it has always been.
But without the call to set, any modification to the object will not get saved if you are using a persistent store.

I understand and I can accept this.
It's just that I didn't see anywhere mentioned in the documentation that the value of the variable can be changed without an explicit command.


fix for #76

Hey @piotr-oles,
When I ported fork-ts-checker-webpack-plugin to TypeScript I introduced a small bug around this binding in the done / emit callbacks. This fixes that issue.
Sorry for the error! 🌻
Related issue:
https://github.com/Realytics/fork-ts-checker-webpack-plugin/issues/76

No problem, thank you for the fix :)

:+1:


Fix SelectOption value check

I was a bit too eager - just noticed on a project that a test was failing because of this.

Is there a test for this?

Not yet, I'm working on an extensive test here: https://github.com/sergei-maertens/django-sniplates/commit/c381ef7643513e839faeaf4f8f2a151d971642ea
There are more issues. You can leave this PR open or close it until I make a new one, I think I can wrap it up by tomorrow evening (24 hours from now).


bug fix readme

@mehdiraized Thanks for fixing this! In the future, be sure to write a short description in your pull request to make it clear what you are fixing! 👍


The merging cart function does not work when already added all items of product into customer cart

Bug report
Title
Can not merge cart if the number of cart is maximum of inventory
Issue Description
The product ABC has 10 items, I added 10 items into my cart, then I logged out and add this product into cart. When I logged again to my account, the 500 error is shown
Preconditions
1. framework Version: 1.1.1.

Steps to reproduce
1. Admin adds product with inventory is 10
2. Customer logins to account
3. Customer adds 10 items of product into cart
4. Customer logs out
5. Customer adds 1 item of above product into cart (guest cart)
6. Customer logs in again to account
7. The 500 error is shown

Expected result
Merging cart function should be work well
Actual result

Server error.

@autn
No response from the last 16 days, so we are closing this issue. Feel free to reopen this if still exist.
Note: Always make sure the inventory should be available in case you merge product as a guest_user then attempt to login again,else the qty will not updated.

@vaishaliwebkul I see


Better docs for developer installation

Is your feature request related to a problem? Please describe.
I had to re-do my developer installation recently, and I found the documentation lacking and hard to navigate. Here are my observations.

The developer installation docs do not appear anywhere on the nav bar. They are, however, on the main page, but they are so far down it was not obvious to me that's where to find them.

The process for setting up tests (fetching test data, etc.) does not seem to be documented anywhere. There is a section on the tests in the Contributing section, but it does not explain how to set them up.
https://gdsfactory.github.io/gdsfactory/contribution.html#tests
When running on Windows, I found that the pre-commit hooks would crash when trying to install. Eventually running mamba install ipykernel into my conda environment seemed to fix the issue, but I'm not sure if that's conclusively the recommended fix or why.

Describe the solution you'd like

Installation should be listed on the main navbar of the docs.
The process for setting up and running tests, I would argue, should be included in the Developer Installation section. The Contributing section should link back to the Developer Installation section as a prerequisite.
Currently in the developer installation procedure, it is documented that you need to install gdstk via mamba. I think ipykernel also should be installed via mamba in that step (but it would be good if someone else on Windows can confirm that...).

Hi Troy, good point,
how about this?
https://github.com/gdsfactory/gdsfactory/pull/1793

Hi Troy, closing this
I hope it's good now
https://gdsfactory.github.io/gdsfactory/developer.html


Document changes

Update release notes in docs/users_guide/8.0.1-release-notes.rst
Perhaps the User's Guide?

Updated release notes. Nothing to update in the User's Guide.


Ensure /var/run is link to /run

Fixes issue where /var/run doesn't get set up correctly (necessary for environments that don't use spel)

I assume you've tested this for your current use case, but have you tested it with spel, or do you need someone else to handle that test (which is fine, just doublechecking...)?

My assumption is/was that spel had a graceful handler for the missing /var/run → /run link. However, I haven't explicitly tested it in the spel context nor did I find anything other than the pytest references w/in the spel project-code. So, "yeah: wants testing w/in spel (with spel being adjusted for the corrected AMIgen7 behavior if issues are found)"

My assumption is/was that spel had a graceful handler for the missing /var/run → /run link. However, I haven't explicitly tested it in the spel context nor did I find anything other than the pytest references w/in the spel project-code.

Ok, can you update from latest amigen7/master? I'll test using spel, but latest spel requires a patch that is not present in your branch.


Webpack should set the __esModules flag to true when handling ES6 modules

I'm submitting a bug report
Webpack version:
2.1.0-beta.25
Please tell us about your environment:
OSX 10.12 (16A323)
Current behavior:
When I use webpack with babel and the the babel-plugin-transform-es2015-modules-commonjs transform I can't import a ES6 module anymore which is not transpiled by babel.
Babel handles the module like an CommonJS module because webpack doesn't set the __esModules flag to true.
Expected/desired behavior:
I should be able to import the module.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem along with a gist/jsbin of your webpack configuration.
https://github.com/k15a/webpack2-babel-bug
What is the motivation / use case for changing the behavior?
https://github.com/styled-components/styled-components/issues/115
Language:
ES6/7

I agree that this could be considered as bug. But why trying to do this. Just disable the babel-commonjs plugin as webpack can handle the imports better.

Note to myself: add __esModule when importing an harmony module via CommonJs.

The reason is Webpack and Babel handle the module differently.
You can use either for all your files, but cannot mix them together.
Hi @sokra , is this worth to fix?

We only need to add __esModule to harmony files when they are referenced from a non-harmony (babel files look like CommonJS from webpacks perspective).

OK. I will send a PR to fix this soon.

I created a plugin for this(temporary solution).  npm link


Variablize ingress_enabled variable

@monachawla17  @jshre898  any update on this PR? Shall we merge it in release3.0.1?


Updated metrics.md

Added information, metrics and examples about "contributors demography", "contributors dependecy" and "diversity"

How are all these metrics of any practical importance?

"Contributors demography" helps community managers to understand if they are retaining talent/knowledge/people, and who are the people that stands in the community for longer periods.
"Contributors dependecy" metrics are usually used by third parties to check project sustainability. Generally, projects with higher APF (ASF Pony factor) and BEF (Bitergia Elephant factor) are considered more independent, since they are not controlled by an small group or a single company.
"Diversity" metrics show how inclusive the projects in terms, and "gender diversity" metrics are being currently used by OpenStack Foundation to give vissibility to women contributions. "Geographical diversity" helps community managers also on planning meetups or actions for new areas identified in the maps or timezones.
It might be my fault not starting by explaining these practical examples. Most of them come from my/our experience working with Open Source projects, so I've thought it migh be useful to share them.

Hey @jsmanrique, thanks for the PR. There's some good stuff here. I'd like to wait until @nayafia is back from vacation to discuss with her before proposing some tweaks.

Per https://github.com/github/open-source-guide/pull/324, we've updated the guidelines on adding content.

…please don't add links to things you or your employer have created as others will do so if they appreciate it.

There's some good content here that should probably still be considered, so feel free to open up a new pull request with this content.


undefined global vim in plugin directory

When I'm working on my own plugins I'm getting undefined global vim.
I found this line in util.lua:
https://github.com/folke/lua-dev.nvim/blob/3a9d849adb10369e2dbf07bd3690b073a74e732a/lua/lua-dev/util.lua#L26
This somehow returns false even though the lsp root directory contains a lua folder.

If I change the regex to "/lua[/$]?" it works again.
I don't know if this is a bug or not.
I'm using the default settings for lua-dev.
In the runtime path and for my nvim config it works fine.

It's becuase you have the stylua.toml file in the lua directory. This will cause lspconfig to set the root dir to my_plugin/lua instead of my_plugin.
Move that file to my_plugin to fix it.

Thank you very much. :)


404 From Lesson Instructions

The Issue
Whilst going through the ReactJS lessons the link to:
'the way you apply classes to JSX elements.' Isn't working, thus giving a 404. The link it tries to go to is this:
https://www.freecodecamp.org/learn/front-end-libraries/react/learn/front-end-libraries/react/define-an-html-class-in-jsx
I've tested the link in Chrome, Firefox, Safari, Opera, Tor, Chrome Canary and Firefox Dev Edition and same 404.
The lesson:
https://www.freecodecamp.org/learn/front-end-libraries/react/introducing-inline-styles
Screenshots

and:

Cheers!

Hey @ojeytonwilliams this looks like a parser issue?
Challenge source: https://raw.githubusercontent.com/freeCodeCamp/freeCodeCamp/master/curriculum/challenges/english/03-front-end-libraries/react/introducing-inline-styles.english.md
This is definitely affecting other challenges.

On that note, I think we should update the URL(s) to be
-  ... .
+  ... .

this looks like a parser issue?

The parser doesn't touch anchors (to my knowledge).  It's just that that link's relative to the full path, not the domain.  So, yeah, as you say: it needs another slash.

Okay, thanks for confirming.
Looking at the blame and this seems to have be touched in the past in https://github.com/freeCodeCamp/freeCodeCamp/pull/35125
We should go ahead, audit and update all such links.

Hi @raisedadead. I fixed the link to the challenge that @benjaminthedev was referring to. But it sounds like there might be more challenges that might have this problem. Do you want me to help find all the broken links before submitting a PR? Or are you ok with me submitting this for now?

Yes, you should add all the changes to your PR. If you work locally using VS Code, it should just be a simple search and replace.
For the purposes of QA, I would recommend you make separate PR for different languages (English, Chinese, etc.)
Thanks for working on this.

Hi @raisedadead and @ChristianLapinig I am happy to keep working through the challenges and finding issues are reporting on GitHub - if you want me to?

@benjaminthedev you are welcome to report fresh issues (unrelated to this). I think for this issue, we should be able to do a simple search and replace in the codebase to fix the links :)

Hi @raisedadead. I fixed the link to the challenge that @benjaminthedev was referring to. But it sounds like there might be more challenges that might have this problem. Do you want me to help find all the broken links before submitting a PR? Or are you ok with me submitting this for now?

I searched learn/ in VS code and found 34 files with such issues where it requires / at start.
There can be more if I have missed anywhere

Hey guys! I'm new in open source projects and I want to ask you how can I find a file where a bug is? Thanks. have a good day

@DConstantine9 please go to the following link and click on the green "New Issue" button
https://github.com/freeCodeCamp/freeCodeCamp/issues

@ahmadabdolsaheb I think they are seeking to contribute to the repo.
@DConstantine9 you should follow the contributing guidelines mentioned in the read me.


Backport jsonfilter to kinetic

Demo:
/cmd_vel topic (we can see here that the robot is publishing negative linear vel (-x)):

/inorbit/linear_vel_test (the republisher topic, here only linear vel with x>0 should be published):

So we can see the changes are working as expected in kinetic

Ready for review @FlorGrosso


Show tab number when pressing Ctrl or Alt?

Hi @sylouuu,
What a cool extension!
What do you think of showing the tab number at the place of the favicon when pressing Ctrl or Alt?

Hi @orschiro,
Thank's for your feedback!
This is not a trivial feature. Actually I can redirect you to the "Focused scope" chapter.
Let's try to think about the process:

On a  press
Remove favicon and create a new one for each tab
On a  unpress
Reload all tabs to get back respective favicons

I think that 2 and 4 will be long to process and may result in a bad user experience.
However it could be a nice proof-of-concept to create a dedicated extension, which will be complementary with Tab Modifier.
Bests

Hey,
Thanks for your prompt answer! :-)
Look at this: https://chrome.google.com/webstore/detail/tab-number/fijaenjgknobfdombbdchngpamggajpm
Does it help?
The issue I am having with this one is that it's buggy from time to time. However, it shows that it's doable. :-)

Sure, it's doable. I saw his code, was not the same approach as mine.
Anyway, this will not be implemented in Tab Modifier as mentioned in the first link I gave to you. ;)
Bests


E2: Cannot set materials

Cannot set materials on holograms using holoMaterial
Cannot set materials on props using setMaterial
Extends to materials even those specific to gmod like shadertests and the debug materials

https://github.com/wiremod/wire/pull/1439

Fixed by #1439


Update to std::future::Future

Tokio is moving to std::future::Future. It's cool if reqwest's async client can also move to std::future::Future.

Yes, this would be great! I'm personally busy with updating the dependencies of reqwest, but they may be ready enough for this to be started, if anyone else wants to start!

I have done some semi-trivial changes in this direction in #573. I'll see if I can continue tomorrow or it could be just as easily picked up someone, if I won't manage.

apologies for all the spamming.
Have opened a new pull request for this work (#592)
Unlike #573, I think it might be a cleaner approach to continue depending on the same version of hyper, tokio etc and simply use the futures compat layer to begin working with futures0.3. When the new versions of those libraries fully stabilise, we can just remove the compat layer.
Definitely looking for a little assistance on this one, if anyone can spare the brain cells

@danieleades Hmm, maybe. However, tokio 0.2 alpha is out now. When using tokio 0.2, the current reqwest::async::Client fails to spawn a task, because no thread-local runtime is found. I think it would be best to move in sync with tokio and hyper by extension.

With the hyper alpha out, we can pin to those! I'll be focusing my attention on this issue now.

@seanmonstar Yep, I am actually 50% of the way through swapping out reqwest for hyper + hyper-tls + tokio-tls + native_tls directly. Haha. If you finish pinning to the alphas today, it is going to be bittersweet for me 😆


[Feature][Flink] Introducing the INSERT OVERWRITE statement for mixed-streaming format tables.

Search before asking

[x] I have searched in the issues and found no similar issues.

What would you like to be improved?
Currently, the insert overwrite statement is supported for mixed-streaming format tables without primary key specification. In order to meet the batch processing capability of the Flink engine on keyed tables.
Mixed-streaming format tables should include mixed-iceberg and mixed-hive format tables.
INSERT OVERWRITE [catalog_name.][db_name.]table_name [column_list] select_statement

column_list:
  (col_name1 [, column_name2, ...])

OVERWRITE
INSERT OVERWRITE will overwrite any existing data in the table or partition. Otherwise, new data is appended.
COLUMN LIST
Given a table T(a INT, b INT, c INT), Flink supports INSERT INTO T(c, b) SELECT x, y FROM S. The expectation is that ‘x’ is written to column ‘c’ and ‘y’ is written to column ‘b’ and ‘a’ is set to NULL (assuming column ‘a’ is nullable).
How should we improve?
Flink API should implement the interface: SupportsOverwrite;
This feature only works in flink batch runtime mode.
Affected Flink versions: flink1.12/flink1.14/flink1.15.
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Subtasks
No response
Code of Conduct

[x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)

@xujiangfeng001 I wonder if the work is still moving forward?

Hi @czy006 , I'm very sorry, I don't have time to continue advancing this issue recently. Can you help me push it forward ?


Update README.md

Added additional HydroShare awards from NSF to the main README file for the repository.

Pull Request Checklist:

[ ] Positive Test Case Written by Dev

[ ] Automated Testing

[ ] Sufficient User and Developer Documentation

[ ] Passing Jenkins Build

[ ] Peer Code review and approval

Positive Test Case

[Enter positive test case here]

@dtarb and @jordansread - I noticed that the funding acknowledgement at the bottom of the main readme for HydroShare did not list the newer NSF grants on which HydroShare was developed. I added those with this pull request along with linking them to the NSF summary pages.
@jordansread - I don't think the CUAHSI cooperative agreement(s) are acknowledged either, so you might want to add those. @pkdash suggested that you guys might want to approve this pull request before it gets merged.

added an issue to accompany this PR so that we track it
https://github.com/hydroshare/hydroshare/issues/5622

I did check and this looks right, @jordansread please reopen if you see any issue


Added some improvements

Hello! I've just added some improvements, such as:
xib support
new options for using nonDelegate stretch
delegating navigationView animation on StretchHeader (can be overridden)

Added Swift4 support. If someone wants this pod with new features, welcome to my page.


Add end date step to iD tutorial

The interactive tutorial built into iD is a critical part of onboarding new users to OpenHistoricalMap. OpenHistoricalMap/iD#139 makes some minimal changes to refer to OpenHistoricalMap instead of OpenStreetMap, but we’re missing an important opportunity to impress upon users the necessity of setting a Start Date and/or End Date on every feature and let them practice doing so. Right before or after the step where the user deletes a feature, we should have them set the End Date on a feature instead.
The tutorial is nominally based on downtown Three Rivers, Michigan. Instead of pulling data live from either OSM or OHM, iD bundles a mocked copy of the edit graph and presents it to the user temporarily during the tutorial. We could simply sprinkle in some fake start_date and end_date tags, though it would be much more fun to actually do a little historical research in Three Rivers to come up with believable dates.
The tutorial doesn’t strictly have to be in Three Rivers, but consistency with OSM’s iD would probably avoid help users new to both projects cope with information overload. The backstory is that this town’s appearance in the tutorial is a homage to one of iD’s original developers. In 2018, @bhousel and I made a pilgrimage there to gather high-quality street-level imagery throughout the town, making it a more comfortable environment for mappers to familiarize themselves with the editing process. Over time, this imagery is becoming increasingly suitable for OHM too. 😏
/ref https://github.com/OpenHistoricalMap/iD/pull/139#discussion_r978219661 openstreetmap/iD#3068

Duplicate of #291.


The PerformanceModeStatus Parameter is Missing from the Set-MpPreference Documentation

In Windows 11 stable build 22621.2134, the Set-MpPreference cmdlet has a new parameter called PerformanceModeStatus but it's undocumented.

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 44f43117-c0f9-84e2-9a2a-0335f516f7d0
Version Independent ID: cc8d93f2-8837-4169-0fc7-167d0ffca777
Content: Set-MpPreference (Defender)
Content Source: docset/winserver2022-ps/defender/Set-MpPreference.md
Product: w10
GitHub Login: @JasonGerend
Microsoft Alias: jgerend

Related doc:
https://learn.microsoft.com/en-us/microsoft-365/security/defender-endpoint/microsoft-defender-endpoint-antivirus-performance-mode?view=o365-worldwide

To make it easier for you to submit feedback on articles on learn.microsoft.com, we're transitioning our feedback system from GitHub Issues to a new experience.
As part of the transition, this GitHub Issue will be moved to a private repository. We're moving Issues to another repository so we can continue working on Issues that were open at the time of the transition. When this Issue is moved, you'll no longer be able to access it.
If you want to provide additional information before this Issue is moved, please update this Issue before December 15th, 2023.
With the new experience, you no longer need to sign in to GitHub to enter and submit your feedback. Instead, you can choose directly on each article's page whether the article was helpful. Then you can then choose one or more reasons for your feedback and optionally provide additional context before you select Submit.
Here's what the new experience looks like.
Note: The new experience is being rolled out across learn.microsoft.com in phases. If you don't see the new experience on an article, please check back later.
First, select whether the article was helpful:

Then, choose at least one reason for your feedback and optionally provide additional details about your feedback:

Article was helpful
Article was unhelpful

Finally, select Submit and you're done!


Analyze BPM on each track and display in UI/API

Maybe https://www.ruby-toolbox.com/projects/pulse-analysis
This would be interesting to show how different songs have slowed down over the years.
Some tracks would have multiple bpm and/or it would change over time, not sure how practical this is in general.

Thought about this, doesn't seem like a helpful feature at this point.


fix: Authorization, not Authentication, header

(closes https://github.com/influxdata/DAR/issues/241)

@jstirnaman to be sure, does it make sense to update any of the following occurrences?:
 QuerystringAuthentication:
     type: apiKey
     in: query
     name: u=&p=
     description: >
       ### Querystring authentication scheme

BasicAuthentication:
or
2. Configure InfluxDB authentication:

@jstirnaman to be sure, does it make sense to update any of the following occurrences?:
 QuerystringAuthentication:
     type: apiKey
     in: query
     name: u=&p=
     description: >
       ### Querystring authentication scheme

BasicAuthentication: or 2. Configure InfluxDB authentication:

No, it's confusing, but "Authentication" is the "let me do this" process. "Authorization" is the HTTP header that tells the server what kind of creds you're sending. That's not be confused with, /authorizations in InfluxDB which manages tokens and their association to permissions.

No, it's confusing, but "Authentication" is the "let me do this" process. "Authorization" is the HTTP header that tells the server what kind of creds you're sending. That's not be confused with, /authorizations in InfluxDB which manages tokens and their association to permissions.

Thanks, @jstirnaman! OK, whatever we can say throughout to make this less confusing (and consistent) throughout the v2/Cloud docs the better...fwiw, here's where we landed with authentication/authorization in the enterprise docs cc @pierwill. I imagine we want to be consistent across those as well (unless any surrounding functionality has intentionally changed).

We should be careful with this. In English, I think we'd say that this process of passing a token constitutes authentication. But Authorization: TOKEN standard scheme, yes? @jstirnaman @sanderson. Even if the docs are about authentication, if the API expects Authorization: TOKEN, that's what the example should say.

Authorization is a standard HTTP header used for authenticating with a service. It supports multiple schemes (Token, Bearer, Basic, etc.).
In regards to language, this is how I view the two terms:

Authentication: the process of authenticating with a service with defined credentials (username/password, token, etc.) to prove you are who you say you are.
Authorization: a set of permissions granted to the authenticated client to perform actions within the service.


[Bug] Analyzer Feedback from IntelliJ: Invalid range in LanguageModel

Analyzer Feedback from IntelliJ
Version information

IDEA AI-191.8<IP_ADDRESS>77832
2.7.0-edge.bdd9e74afc1681ca7e43945e3547641321486ab7
AI-191.8<IP_ADDRESS>77832, JRE 1.8.0_202-release-1483-b49-5587405x64 JetBrains s.r.o, OS Linux(amd64) v5.0.0-32-generic, screens 1920x1080

Exception
Dart analysis server, SDK version 2.7.0-edge.bdd9e74afc1681ca7e43945e3547641321486ab7, server version 1.27.4, FATAL error: RangeError (end): Invalid value: Not in range 0..50, inclusive: 100
#0      RangeError.checkValidRange (dart:core/errors.dart:333:9)
#1      _TypedDoubleListMixin.setRange (dart:typed_data-patch/typed_data_patch.dart:754:18)
#2      _DoubleListMixin.setAll (dart:typed_data-patch/typed_data_patch.dart:735:5)
#3      LanguageModel._transformInput (package:analysis_server/src/services/completion/dart/language_model.dart:97:9)
#4      LanguageModel.predictWithScores (package:analysis_server/src/services/completion/dart/language_model.dart:74:21)
#5      entrypoint.<anonymous closure> (package:analysis_server/src/services/completion/dart/completion_ranking.dart:39:34)
#6      _RootZone.runUnaryGuarded (dart:async/zone.dart:1314:10)
#7      _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#8      _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#9      _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:764:19)
#10     _StreamController._add (dart:async/stream_controller.dart:640:7)
#11     _StreamController.add (dart:async/stream_controller.dart:586:5)
#12     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)

For additional log information, please append the contents of
file:///tmp/report.txt.

Thanks for reporting this issue! This has also been reported at https://github.com/dart-lang/sdk/issues/39352; please follow along there.

Duplicate of https://github.com/dart-lang/sdk/issues/39352


How to show selection on did select function

Expected Behavior
Show selection on didselect func
Actual Behavior
Not showing any selection
Steps to Reproduce the Problem

Specifications

Xcode version: 9
iOS version: 11
Dependency manager + version: ?

@Vidhanshu09 Same as UICollectionView API. Set selectedBackgroundView your custom cell. selectedBackgroundView is hidden normally, when you select a cell, then selectedBackgroundView is shown.


[Question] Ground-truth dynamics model in mujoco

Question
Hi,
Anyone know where can we access the ground-truth dynamics model for the mujoco environments? For example, the cart-pole, it seems the dynamics equations are not given in any files. (.xml file has some parameters, but not same as the standard cart-pole parameters, e.g. cart mass, pole mass, pole length, and so on).
Thanks!

Pole length is 1 meter
cart mass is   mass: array([10.47197551])
pole mass is   mass: array([5.01859164])

@KehanLong Are you interested in the mujoco or cartpole dynamics? The Cartpole dynamics are programmed into the step and reset functions while the mujoco environment dynamics are the mujoco physics engine https://github.com/deepmind/mujoco

Thank you for the answer. Sorry for the confusion. I am interested in the cartpole and other robotic dynamics. I checked the step and reset functions, it looks like the states are updated by the mujoco physics engine. Would you please tell me if I can access the underlying dynamics model of those robotic systems?

yes, what do you want to do?

I am implementing some classical control algorithms for those systems and comparing with RL algorithms, for example: the Lyapunov based approach. And those algorithms will require the known knowledge of the dynamics model.

Well then you will need to understand how mujoco works then https://mujoco.readthedocs.io/en/latest/overview.html

I see, thank you. May I ask where you find the parameters of the cartpole (pole length, mass, and so on)?

env.unwrapped.model.body("cart") (or "pole")

Thank you for your quick reply and help! Appreciated.

@pseudo-rnd-thoughts  I am interested in the dynamics of the cart pole and other robotic systems. I checked the step and reset functions in the repo but it looks like the states are updated by the Mujoco physics engine (not explicitly in the code). Could you please tell me if I can access the dynamics model (ODEs) of those robotic systems?

@KehanLong I would redirect you to https://github.com/deepmind/mujoco if you need further help, we can only help you with RL related questions here

Sure. Thank you for your help!

@Kallinteris-Andreas: Sorry, I think I need a few more clarifications. I found that I may not really need the underlying dynamical equations; instead, I will only need the \dot{x} (how the state changes over time). Do you have any suggestions on this? I am thinking about taking the differences between two consecutive states. I wonder if there may be a more accurate approach to knowing/estimating the \dot{x}, or, is there a way of setting the integration time (step function) small?

Hey @KehanLong. What I'm assuming is that \dot{x} are your state variables of your linearized dynamic equation system, right? If so, your \dot{x} will contain the carts position and poles angle, plus their derivatives (how they change over time) which will be the carts velocity and the poles angular velocity. Good news is that all these variables are in the observation space of the environment. If you have a look at the InvertedPendulum documentation you can check which of the variables is contained in each element of the array observation (https://gymnasium.farama.org/environments/mujoco/inverted_pendulum/#observation-space).
Also, note that the pole's angle is with respect to its vertical position (I think this should be a bit more clear in the docs @Kallinteris-Andreas ).
If this is not the case can you describe specifically which state variables do you require? We can try providing you with some help to get them in the Mujoco simulation. Usually these variables are retrieved from the MjData object in the simulation, which in the gymnasium environment you can get as env.data. You can also read the MjData documentatin here https://mujoco.readthedocs.io/en/latest/APIreference/APItypes.html#mjdata

@KehanLong I see that you also need these state variables for other environments. Can you also provide us with the environments you are planning to use and the state variables you need for each of them?

Thank you for your reply! I checked Mujoco and found that mj_forward is probably the function I need for the state variables. It seems that the variable 'qacc' is the corresponding \dot{x}. What do you think? Is there a wrapper function in Gymnasium that I should use?

I don't think mj_forward is what you need since this function only steps the simulation and without any time integration (no state variable updates), mj_step is rather used to step the simulation in the gymnasium environments.
I can't confidently assure that qacc corresponds to your state if you don't provide me with more details about your control system sorry. qacc contains the accelerations of the cart and the pole (angular).
We don't have any wrappers to get this variable but you can get it after each step with:
env.step(action)
qacc = env.data.qacc

It would be nice if you could provide us with more detail on what \dot{x} is

Thank you for your reply. What I mean for \dot{x} is how the state changes over time, which does not involve time integration. And if we integrate dot{x} over some short time interval, we will get the new state (I guess this is the env.step).
So I think qacc should be exactly what I need. There is one thing I would like to make sure, does env.data.qacc correspond to the accelerations of applying the action (control) to the current state?


Documentation for including failed data references the wrong key

What did you do?
The include_failed parameter on various endpoints, such as transactions and operations, is documented as includefailed.
Example: https://developers.stellar.org/api/resources/get-operations-by-account-id
What did you expect to see?
The parameter key should be include_failed.
What did you see instead?
The documentation reflects it as includefailed.
Using the parameter as documented doesn't work
With include_failed: https://horizon.stellar.org/accounts/GBFVU7QY6EMTYSF3WKH54CO5CE46BC72HOKZBBXH5YBJBLDVT3RNSNM2/operations?cursor=122568453843611647&limit=2&include_failed=true
With includefailed: https://horizon.stellar.org/accounts/GBFVU7QY6EMTYSF3WKH54CO5CE46BC72HOKZBBXH5YBJBLDVT3RNSNM2/operations?cursor=122568453843611647&limit=2&includefailed=true
The transaction 3cdbcbef533c834095cee2719b812d51394f95043e17e0f92a5251faf5b318f5 is only reflected when the correct parameter name is used, as expected

Done with https://github.com/stellar/stellar-docs/pull/89


question   about efficiency between dynamic libraries and  the example in fronted

Hi and thanks for this great work!
I have a few questions。
When I use dynamic libraries, I find my speed is nearly twice as slow as the example in fronted. Is that why I use -pic? There are some good solutions。
A million data can be done in about 2s, but it takes about 6s to use the dynamic library

There should be no difference due to static VS shared. I'm not sure what the issue is. Maybe you are not compiling in release mode.
The idea of Pic is that you can compile a static library and then link this into your own shared library. Your shared library will contain the vole psi static library.

Thanks！I will try this to do so.

I have tried to do so and the speed is the same. Thank you for your reply。


http - shortcut for specifying mock HTTP responses...

tests: function (deps) {
it('responds', function (done) {
deps.$http.get('/my/other/url')
.then(function (response) {
// response.status = 202
// response.data = 42
done();
});
http.flush();
});
Correct http.flush() in the test block to read deps.http.flush()

Please explain what the done() does in this block.

done is an argument injected by the Jasmine or Mocha test framework. It is a function you should call when your async unit test (which this is, because were are making mock http calls). We call it after we get the response.

Thanks -- I overlooked that in the documentation. Here is a great elaboration about it: http://www.htmlgoodies.com/beyond/javascript/stips/using-jasmine-2.0s-new-done-function-to-test-asynchronous-processes.html


cannot connect to server

When I run hetzner-k3s create-cluster --config-file hetzner-cluster.yaml the programm finished in an error state. The connection to the server cannot be established. I'm using ssh-key to authenticate and the the key is already loaded to my keyring. After the creation of the servers, I can connect to them with ssh<EMAIL_ADDRESS>hetzner-k3s create-cluster --config-file hetzner-cluster.yaml

Firewall already exists, skipping.

Private network already exists, skipping.

SSH key already exists, skipping.

API load balancer already exists, skipping.

Server kubeedge-cpx21-master2 already exists, skipping.

Server kubeedge-cpx21-master1 already exists, skipping.

Server kubeedge-cpx21-master3 already exists, skipping.

Server kubeedge-cpx21-pool-small-worker1 already exists, skipping.

Waiting for server kubeedge-cpx21-pool-small-worker1 to be up...
Waiting for server kubeedge-cpx21-master3 to be up...
Waiting for server kubeedge-cpx21-master1 to be up...
Waiting for server kubeedge-cpx21-master2 to be up...
#<Thread:0x00007f16c80435e0 /var/lib/gems/2.7.0/gems/hetzner-k3s-0.3.2/lib/hetzner/k3s/cluster.rb:146 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
	11: from /var/lib/gems/2.7.0/gems/hetzner-k3s-0.3.2/lib/hetzner/k3s/cluster.rb:146:in `block (2 levels) in create_resources'
	10: from /var/lib/gems/2.7.0/gems/hetzner-k3s-0.3.2/lib/hetzner/k3s/cluster.rb:448:in `wait_for_ssh'
	 9: from /usr/lib/ruby/2.7.0/timeout.rb:110:in `timeout'
	 8: from /usr/lib/ruby/2.7.0/timeout.rb:33:in `catch'
	 7: from /usr/lib/ruby/2.7.0/timeout.rb:33:in `catch'
	 6: from /usr/lib/ruby/2.7.0/timeout.rb:33:in `block in catch'
	 5: from /usr/lib/ruby/2.7.0/timeout.rb:95:in `block in timeout'
	 4: from /var/lib/gems/2.7.0/gems/hetzner-k3s-0.3.2/lib/hetzner/k3s/cluster.rb:453:in `block in wait_for_ssh'
	 3: from /var/lib/gems/2.7.0/gems/hetzner-k3s-0.3.2/lib/hetzner/k3s/cluster.rb:453:in `loop'
	 2: from /var/lib/gems/2.7.0/gems/hetzner-k3s-0.3.2/lib/hetzner/k3s/cluster.rb:454:in `block (2 levels) in wait_for_ssh'
	 1: from /var/lib/gems/2.7.0/gems/hetzner-k3s-0.3.2/lib/hetzner/k3s/cluster.rb:468:in `ssh'
/var/lib/gems/2.7.0/gems/net-ssh-6.1.0/lib/net/ssh.rb:268:in `start': Authentication failed for user<EMAIL_ADDRESS>(Net::SSH::AuthenticationFailed)

Hi, was the key already present in the project or did you let the tool create it for you?

The key was already present.

And you can ssh into the servers directly without problems? Do you have multiple keys in your ssh directory?

Yes I can ssh into the servers directly without problems and I have multiple keys in my ssh directory

Uhm I wonder if the problem is that you have multiple keys. Just to confirm, can you temporarily move the other keys to another directory and leave the relevant one, and try again? If it works, I will make a small change to the code so that it ensures that it uses the correct key when connecting to the servers, not just when creating them. Let me know.

the problem still exists. I'm using ed25519 keys is that a problem?

the problem still exists. I'm using ed25519 keys is that a problem?

Not sure, I need to try since I use a simple RSA key still. So it happens also if that's the only key in ~/.ssh?

BTW have you tried the latest version I released today?

I was able to reproduce the issue, and it disappeared after running ssh-add ~/.ssh/id_ed25519. Can you try?

BTW have you tried the latest version I released today?

no I didn't use that release
I will try, when I have free time

Closing for now, feel free to reopen if you have this problem again. Thanks


Keep connection even on error

Hello there !
I need to help about keep connection if even get error . I have not so much experience Node.js , Im testing codes , working 1 hour for example below codes;
binance.prevDay(false, (error, prevDay) => {
let markets = [];
for ( let obj of prevDay ) {
let symbol = obj.symbol;
console.log(symbol+" volume:"+obj.volume+" change: "+obj.priceChangePercent+"%");
markets.push(symbol);
}
binance.websockets.candlesticks(markets, '15m', (candlestickData) => {
let tick = binance.last(candlestickData);
const symbol = candlestickData.s;
const close = candlestickData[tick].c;
console.log(symbol+": "+close);
});
});
then getting error 504 somethings....
I understand - error we can get no problem but, I want to manage this error . Script is stoping to work after error, cutting down . I want to this script  keep work even get error, script should try to re-connect and keep work always .
For example , if try - catch block we can use - i think script will continue to work .
For example like this...
try {
client.getOrderBook("UNKNOWN", 10);
} catch (BinanceApiException e) {
System.out.println(e.getError().getCode()); // -1121
System.out.println(e.getError().getMsg());  // Invalid symbol
}
Anybody help me ? How can i fix this ? how can I catch error and keep running script ?
Thank you !

504 error is a Gateway Timeout
Your code is doing this from getting the order book? I believe the problem would be with the design of your getOrderBook function. I would need to see it in order to provide a solution

I get this error just now :(
I don't know how i will fix these errors ... I need to keep UP this script - keep work always ...
[ 'WebSocket Unexpected response:<PHONE_NUMBER>' ]
C:\www\laravel\node_modules\node-binance-api\node-binance-api.js:222
if ( reconnect && options.reconnect ) {
^
ReferenceError: reconnect is not defined
at WebSocket._handleSocketUnexpectedResponse (C:\www\laravel\node_modules\node-binance-api\node-binance-api.js:222:13)
at emitTwo (events.js:125:13)
at WebSocket.emit (events.js:213:7)
at ClientRequest._req.on (C:\www\laravel\node_modules\ws\lib\WebSocket.js:651:15)
at emitOne (events.js:115:13)
at ClientRequest.emit (events.js:210:7)
at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:565:21)
at HTTPParser.parserOnHeadersComplete (_http_common.js:116:23)
at TLSSocket.socketOnData (_http_client.js:454:20)
at emitOne (events.js:115:13)

The code has improved considerably since the version you have
Navigate to your project directory and npm update and see if it works

I updated ...
Now i get error again but re-connect self .
Pump K-Line Fonksion calisti....
[ 'WebSocket error:<PHONE_NUMBER> unexpected server response (502)' ]
[ 'WebSocket closed:<PHONE_NUMBER> (1006)' ]
[ 'WebSocket reconnecting:<PHONE_NUMBER>...' ]
I hope it's will work .
Thank you !!!

Sounds great let me know if you have any problems
Always happy to help


menu vanished for window width less as 985 px, Version 2.9.4

menu vanished for window width less as 985 px

That is by design. You get an icon with an arrow to the right in the panel at that point to bring it in.


Fix check in TypedReadCallback to handle wildcards

Modify verify check to support use of wildcards so that the callback doesn't
crash when wildcards are used in the read request.
Problem

Fix crash on when wildcard was used in read attribute path

Change overview

Verify check of attribute path in TypedReadCallback was modified to allow wildcard path

Testing

New integration test in another PR (https://github.com/project-chip/connectedhomeip/pull/15272) tested the fix.

I'll look for a different method for wildcard use.


apps sc: upgrade opensearch

What this PR does / why we need it:
Upgrade Opensearch and Opensearch Dashboard to app version v2.8.0
Which issue this PR fixes (use the format fixes #<issue number>(, fixes #<issue_number>, ...) to automatically close the issue when PR gets merged): fixes #1362
Public facing documentation PR (if applicable)

Special notes for reviewer:
Add a screenshot or an example to illustrate the proposed solution:
Checklist:

[x] Added relevant notes to WIP-CHANGELOG.md
[x] Proper commit message prefix on all commits
[ ] Updated the public facing documentation
Is this changeset backwards compatible for existing clusters? Applying:

[ ] is completely transparent, will not impact the workload in any way.
[x] requires running a migration script.
[ ] will create noticeable cluster degradation.
E.g. logs or metrics are not being collected or Kubernetes API server
will not be responding while upgrading.
[ ] requires draining and/or replacing nodes.
[ ] will change any APIs.
E.g. removes or changes any CK8S config options or Kubernetes APIs.
[ ] will break the cluster.
I.e. full cluster migration is required.

Chart checklist (pick exactly one):

[ ] I upgraded no Chart.
[ ] I upgraded a Chart and determined that no migration steps are needed.
[x] I upgraded a Chart and added migration steps.

Pipeline config (if applicable)
If you change some config options (e.g. add/rename variable or change the default value) you may need to update the config used by the pipeline in pipeline/config.

Any reason why to upgrade to latest version 2.7?

Any reason why to upgrade to latest version 2.7?
There is a bug every time you log in to the dashboard that prompts you to choose your tenant even though multitenancy is disabled. It does seem to be fixed upstream recently in a PR but the fix is not in 2.7

Any reason why to upgrade to latest version 2.7?

There is a bug every time you log in to the dashboard that prompts you to choose your tenant even though multitenancy is disabled. It does seem to be fixed upstream recently in a PR but the fix is not in 2.7

Okay, sure let's wait with 2.7 for now then.

I am seeing some error after the upgrade from opensearch dashboards?
{"type":"response","@timestamp":"2023-05-30T07:38:06Z","tags":["api"],"pid":1,"method":"get","statusCode":401,"req":{"url":"/api/status","method":"get","headers":{"host":"opensearch.<domain>","x-request-id":"","x-real-ip":"","x-forwarded-for":"","x-forwarded-host":"opensearch.<domain>","x-forwarded-port":"443","x-forwarded-proto":"https","x-forwarded-scheme":"https","x-scheme":"https","user-agent":"Go-http-client/2.0"},"remoteAddress":"","userAgent":"Go-http-client/2.0"},"res":{"statusCode":401,"responseTime":2,"contentLength":9},"message":"GET /api/status 401 2ms - 9.0B"}
'{"error":{"root_cause":[{"type":"alerting_exception","reason":"Configured indices are not found: [.opendistro-alerting-config]"}],"type":"alerting_exception","reason":"Configured indices are not found: [.opendistro-alerting-config]","caused_by":{"type":"exception","reason":"org.opensearch.index.IndexNotFoundException: no such index [.opendistro-alerting-config]"}},"status":404}'
'{"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index [.opendistro-anomaly-detectors]","index":".opendistro-anomaly-detectors","resource.id":".opendistro-anomaly-detectors","resource.type":"index_or_alias","index_uuid":"_na_"}],"type":"index_not_found_exception","reason":"no such index [.opendistro-anomaly-detectors]","index":".opendistro-anomaly-detectors","resource.id":".opendistro-anomaly-detectors","resource.type":"index_or_alias","index_uuid":"_na_"},"status":404}'
Anything that should be a concern?

I am seeing some error after the upgrade from opensearch dashboards?
{"type":"response","@timestamp":"2023-05-30T07:38:06Z","tags":["api"],"pid":1,"method":"get","statusCode":401,"req":{"url":"/api/status","method":"get","headers":{"host":"opensearch.<domain>","x-request-id":"","x-real-ip":"","x-forwarded-for":"","x-forwarded-host":"opensearch.<domain>","x-forwarded-port":"443","x-forwarded-proto":"https","x-forwarded-scheme":"https","x-scheme":"https","user-agent":"Go-http-client/2.0"},"remoteAddress":"","userAgent":"Go-http-client/2.0"},"res":{"statusCode":401,"responseTime":2,"contentLength":9},"message":"GET /api/status 401 2ms - 9.0B"}
'{"error":{"root_cause":[{"type":"alerting_exception","reason":"Configured indices are not found: [.opendistro-alerting-config]"}],"type":"alerting_exception","reason":"Configured indices are not found: [.opendistro-alerting-config]","caused_by":{"type":"exception","reason":"org.opensearch.index.IndexNotFoundException: no such index [.opendistro-alerting-config]"}},"status":404}'
'{"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index [.opendistro-anomaly-detectors]","index":".opendistro-anomaly-detectors","resource.id":".opendistro-anomaly-detectors","resource.type":"index_or_alias","index_uuid":"_na_"}],"type":"index_not_found_exception","reason":"no such index [.opendistro-anomaly-detectors]","index":".opendistro-anomaly-detectors","resource.id":".opendistro-anomaly-detectors","resource.type":"index_or_alias","index_uuid":"_na_"},"status":404}'
Anything that should be a concern?

I dont think this should be a concern from what I could find (https://github.com/opensearch-project/anomaly-detection-dashboards-plugin/issues/288#issuecomment-1380779824).

I am seeing some error after the upgrade from opensearch dashboards?
{"type":"response","@timestamp":"2023-05-30T07:38:06Z","tags":["api"],"pid":1,"method":"get","statusCode":401,"req":{"url":"/api/status","method":"get","headers":{"host":"opensearch.<domain>","x-request-id":"","x-real-ip":"","x-forwarded-for":"","x-forwarded-host":"opensearch.<domain>","x-forwarded-port":"443","x-forwarded-proto":"https","x-forwarded-scheme":"https","x-scheme":"https","user-agent":"Go-http-client/2.0"},"remoteAddress":"","userAgent":"Go-http-client/2.0"},"res":{"statusCode":401,"responseTime":2,"contentLength":9},"message":"GET /api/status 401 2ms - 9.0B"}

what about the first error? the 401 when calling /api/status

I am seeing some error after the upgrade from opensearch dashboards?
{"type":"response","@timestamp":"2023-05-30T07:38:06Z","tags":["api"],"pid":1,"method":"get","statusCode":401,"req":{"url":"/api/status","method":"get","headers":{"host":"opensearch.<domain>","x-request-id":"","x-real-ip":"","x-forwarded-for":"","x-forwarded-host":"opensearch.<domain>","x-forwarded-port":"443","x-forwarded-proto":"https","x-forwarded-scheme":"https","x-scheme":"https","user-agent":"Go-http-client/2.0"},"remoteAddress":"","userAgent":"Go-http-client/2.0"},"res":{"statusCode":401,"responseTime":2,"contentLength":9},"message":"GET /api/status 401 2ms - 9.0B"}

what about the first error? the 401 when calling /api/status

We discussed this but for anyone else curious, these logs are caused by this.

Rebase on main :)


Add a fixed-size integer type extension and path-based error handling

This adds two new features that my organization required.
Extension for fixed-size integer types
When enabled via the enable_extensions argument to reader/writer, fastavro will now treat fixed types that have names matching the fixed integer types (uint8_t through uint64_t and int8_t through int64_t) as integers. We work with networking devices, where fixed size integers are important.
Path-based error reporting
Fastavro now tracks it's position as it traverses a record so that parsing errors provide meaningful error messages. We use fastavro together with a schema registry instead of for reading avro files with an embedded schema, so schema errors are more likely. This feature is critical to help users diagnose where there messages failed to match the expected schema.
Every attempt has been made to follow conventions of other code in the package: tests for these features are provided and flake8 passes. If you wish to pull in one feature and not the other, the commits are relatively isolated; let me know if they need to be isolated further.

Thanks! Will look at it soon-ish.

Looks like I have some Python3 problems.  Will get those fixed.

Thanks @dacjames

Fixed all of the Travis issues.

Thanks. Super swamped right now, will try to get to this by end of next week.

Can you separate this to two pull requests. I'm pretty happy with the fixed sized one but on the fence with the path one.

I'm going to be on vacation for a few weeks, but I'll split up the commits.
I'm open to other suggests on how to implement the error handling. I don't particularly like the current implementation (and the overhead it might introduce), but I couldn't think of anything better. This is a critical feature for when you're using Avro as an network format rather than a file format because users mess up the message format and the random exceptions thrown currently don't provide any clue where you made the mistake.

Thanks! I'll think of how to improve error handling.
Have fun in your vacation.


RequireBin cache bug

It appears that the require bin example is broken. As in the count is not being incremented when clicking the button.
The example here however, works as expected.

Seems to be non-mercury-specific. And the example works. Let's close?


Running ecraven's benchmarks

What about porting ecraven's benchmarks and run them using the containers found in this project so that it is easy for anyone to reproduce the results?

Sounds excellent. That benchmark suite is impressive but haven't had time to try and run it. Do you know how to hook it up to our containers?

It seems straight forward to run the tests with docker. I will look into it.

ref: https://docs.docker.com/storage/bind-mounts/#start-a-container-with-a-bind-mount

After cloning the benchmark repository, change directory inside it then:
% docker run -it --mount type=bind,source="$(pwd)",target=/benchmark schemers/chibi bash
$ cd /benchmark/
$ ./bench chibi all

Testing browse under Chibi
Including prelude /benchmark/src/Chibi-prelude.scm
Including postlude /benchmark/src/Chibi-postlude.scm
Compiling...
chibi_comp /tmp/larcenous/Chibi/browse.scm /tmp/larcenous/Chibi/browse.scm
Running...
WARNING: importing undefined variable: chibi-version
Running browse:2000

...

That is the idea. I tried chicken first, but it seems like the docker container is missing the command chicken-csc or chicken5 has changed its command line. Anyway, I will further investigate.

it seems like the docker container is missing the command chicken-csc

Almost all of our containers should install the Scheme implementation under /usr/local. Try looking in /usr/local/bin. The Chicken compiler may be simply csc.

The Chicken compiler may be simply csc.

That is exactly the case.

Bind mounts are one way, or you can do git clone --depth 1 or wget/curl https://github.com/ecraven/r7rs-benchmarks/archive/master.tar.gz inside the container. Bind mounts are find for local development, but may not be easy to use reliably in production.
Most of the containers are based on debian, so apt-get update && apt-get install -y curl works to install packages.

Based on my investigations, we need to fork the benchmarks to adapt it.
What do you think @ecraven?

Based on my investigations, we need to fork the benchmarks to adapt it.
What do you think @ecraven?

I've been planning to containerise things for a long time, but haven't
had the time. I've also started work on a chibi scheme test runner, that
correctly captures compilation time, stdout, stderr, and so on, but that
isn't close to finishing either. I won't be able to finish these
projects anytime soon, so feel free to give it a go.
One thing to keep in mind is that containers do have a performance
hit, so there will be people who think that benchmarks run inside a
container are worse than those run on bare metal ;)
Greetings, Peter


Update ConveRT models' URLs

It seems that the ConveRT models' URLs have been recently changed. This PR updates them to the new URLs.
As a side note, this is the root cause of the failure in automated tests in #234.

TODOs:

[X] Update the URLs of all three ConveRT models.

Backwards incompatible changes: None.

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

Nice catch!
One thing here. @mkaze would you be opposed if I turn off the ivis tests for now? It's a tool that, I think, nobody is really using but because of the tqdm dependency it is failing. It feels low priority enough for me to drop while we wait until the tqdm maintainers figure out what is happening.

@koaning Sure, go ahead and mark them for being skipped. That's a good temporary measure.

@koaning I took the liberty of doing it #236! Hope you don't mind :) Of course, its tests still fail because this PR has not been merged yet.

The Ivis tests should be turned off now.

@koaning Out of curiosity: how did you add that commit to this branch and PR? Did you rebase it on master? Or did you merge it with master? Because it didn't look either of them to me and the tests were also failing; so I ended up doing a hard reset, then a commit merge and then force-pushed it.

I can't say I remember exactly. I only recall hitting the "merge" button on github last night.


Add ruby-version file to the project

Self-descriptive.
Eases development management of multiple ruby versions across different projects with tools such RVM and Rbenv.

/cc @cesidio for 👓

@lostie RVM can be configured to check the Gemfile for the Ruby version.


Publish the Debian 10 image to Dockerhub

You can see the existing builds here: https://hub.docker.com/r/jenkins/slave/builds
One would need to be added to create a build using the dockerfile added.

https://github.com/jenkinsci/docker-slave/pull/106#issuecomment-590499244
@rtyler @krichter722 @slide Is this going to happen any time soon?

I don't have permissions on the dockerhub repo to do anything.

@oleg-nenashev Could you add the necessary tag setup to dockerhub builds?

Anyone? I see the docker images were updated recently, but Debian 10 is still not published :(

I'm confused, when I run the normal jenkins/slave image:
docker run -it jenkins/slave:latest-jdk11 /bin/bash

jenkins@4bf6f9f68937:~$ cat /etc/*release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

This says to me that we don't need a specific -buster Dockerfile, we are already using buster?

The latest agent images are now buster by default. The repository on dockerhub has changed to jenkins\agent

It is resolved in https://github.com/jenkinsci/docker-agent/releases/tag/4.3-2


added requirements.txt file

I have added all the libraries mentioned in Readme.md in requirements.txt file.
fixes. #13

Now its complete

Hi @suryanshsk, @Harsh8833
Can you please add the required labels to this PR gssoc-extd, hacktoberfest-accepted and level.
And one more thing I would like to highlight that, you didn't have the hacktoberfest labeld in this repo.


Add new benchmark for sparse AD on simple loop written diffusion operator

This PR adds a new benchmark to test sparse automatic differentiation (AD) methods on a simple diffusion operator implemented using a loop. It evaluates various AD backends, including Enzyme, ForwardDiff, Mooncake, and sparse configurations with TracerSparsityDetector and GreedyColoringAlgorithm. A manual Jacobian is provided for validation, and the benchmark framework compares performance and accuracy for a random input vector of size 1000.

Error: ArgumentError: Package DifferentiationInterfaceTest not found in cur
rent path.
- Run `import Pkg; Pkg.add("DifferentiationInterfaceTest")` to install the
DifferentiationInterfaceTest package.

The project/manifest need to get updated.

It should work now, thank you

wait were the tests suppose to be in 1.10.5 ?

I'm not sure if the table is nicely displayed? But we'll see in the dev version of the docs. The results look nice and useful though.

If it's not there is the parse from the Julia AD Benchmark which can be used, will see


Incomplete tests: Cert rotation/issuance failure tolerance

Context: production readiness proposal and plan
The feature “Cert rotation/issuance failure tolerance” is identified as incomplete test coverage. As a measure to reach Istio production quality in 0.3, this issue is opened to track the progress of providing sufficient test coverage for the feature in question.
This issue is initially assigned to the working group leads.
Recommendations:

Come up with a test plan for how the feature should be tested. Identify and document (in this issue, or a separate document this issue will link to) test cases and whether each will be covered by an integration test (with some level of mocking and/or starting up selected components in test environment), or end to end test (aka system test, which brings up the whole Istio to exercise the feature; currently live in the istio/istio repo).
If you expect the test plan is complex and controversial, consider having it formally reviewed.
State an ETA in the issue, and assign this to a developer who will execute the test plan.
Execute the test plan as the highest priority for 0.3.
For any bug or defect identified by the new test cases, file a new issue and link it from this one.
Close this issue only when the test plan is completely executed, and all additional issues identified in step 3 are fixed.

If you see a risk of not fixing this issue by end of 0.3, please contact<EMAIL_ADDRESS>as soon as possible. We will also periodically ping the issue for update.

This will be done through:

Write tests to cover cert rotation.
Improve logging of Istio CA to help track the cert issuance failures and CA status.
For HA, have doc to instruct deploying multiple CAs. Ensure that multiple Istio CAs can coexist in a cluster without racing.

Update: I have manually tested that 3) works.

will be done by extending the current Istio security integration test. This was blocked by the repo migration and the PR will be sent out within a week.
will be done within 1-2 weeks.

sg, thanks Oliver!

@mangchiandjjoe Jae is helping with (1) the security integration test now. Thanks, Jae!

Create a PR for certificates rotation https://github.com/istio/istio/pull/1739


[Azure Search] Monitor search index lag

This is meant to replace the /search/diag commit timestamp monitoring. Once idea is to sort index by commit timestamp and get the latest value.
Two things to do in parallel

[x] Query on commit timstamp. this has a gap for PackageDelete catalog leaves since no document in the index will have a record of this leaf, but this is probably okay.
[x] Reach out the Azure search team about monitoring ingestion lag

Done at Sev 3.


Battery Connector types

I spent at least 2-3 hours trying to find a battery for my T-Display-S3
I even bought a wrong connector in the hope that some 3rd party website is correct and "JST-GH 1.25mm 2pin" is the correct type - at least what I got does not fit.
Please, just name your connectors in the readme.
Not everybody is a hardware designer and known the name of the gazzilion connectors out there with slightly different specs.

I guess they are JST-SH 1.25mm 2PIN
They clearly don't look like JST-GH which is written on the website


More advanced examples

That could showcase the full power of Potto. A list of real-world projects that are using Potto is awesome, too.

https://start.qq.com/download.html Windows Platform

https://start.qq.com/download.html Windows Platform

Hi @iahung3 , I have to say, there is no very amazing power of Potto, I develop this tool only for one purpose, that is:
decoupling the development of large-scale software project, especially for the platform-like software. Potto provides a clear way to design and implement a Plugin-Host architecture.
For example, we are creating a new software product which contains a lot of different feature modules, and we have different team for different module. If we cannot decouple the module at compiling time, that means we cannot build a single module without its dependency modules. But with Potto, you can design a Plugin-Host architecture and encapsulate module into plugin. for one module development team, they just need to work on their own plugin project without dependency of other plugin(team).

Hi @iahung3 , I have to say, there is no very amazing power of Potto, I develop this tool only for one purpose, that is:
decoupling the development of large-scale software project, especially for the platform-like software. Potto provides a clear way to design and implement a Plugin-Host architecture.
For example, we are creating a new software product which contains a lot of different feature modules, and we have different team for different module. If we cannot decouple the module at compiling time, that means we cannot build a single module without its dependency modules. But with Potto, you can design a Plugin-Host architecture and encapsulate module into plugin. for one module development team, they just need to work on their own plugin project without dependency of other plugin(team).


Views

Project requirements

Used preprocessed HTML file with embedded Ruby code.

Use layouts and templates for shared content.

Implemented the design from the wireframes.

Note: I Analyzed the wireframes deeply and tried to identify all the necessary elements and how a user would navigate from one page to another

Those are my proof


Global variables in modules are resolved incorrectly

Snakemake version
7.32.4 (also 7.22.0)
Describe the bug
Global variables defined in a snakefile do not get resolved when the snakefile is imported as a module. Adding the variable definition to the snakefile that loads the module causes the variable to be resolved (which may not be preferable).
Minimal example
A.smk:
PYTHON = 'python'

rule all:
    shell: '{PYTHON} --version'

B.smk:
#PYTHON = "python"

module A_wf:
    snakefile: "A.smk"

use rule * from A_wf as A_*

Running snakemake -c 1 --snakefile A.smk produces no errors. Running snakemake -c 1 --snakefile B.smk A_all causes a NameError. Uncommenting the first line causes the same command to succeed.
Additional context
I also tried to test by using pip install git+https://github.com/snakemake/snakemake but snakemake --version reported 7.32.2+70.g7ffc8df8. In any case, the bug persisted.

It seems that the rule is once tested no longer inside the module.
In this case, rule all in A_wf is first wrapped as a function:
def __rule_all(...):
    shell('{PYTHON} --version')

when shell is called, it will seach variable "PYTHON" outside the function. Unluckly, it seems that snakemake will call the function in the main workflow but not in the module.

After test to change "shell" to "run", I found that Once funciton from module is called, the module will be reload.
After test to assign PYTHON = "pytho" in B.smk, I found that snakemake run successfully
Building DAG of jobs...
Using shell: /usr/bin/bash
Provided cores: 1 (use --cores to define parallelism)
Rules claiming more threads will be scaled down.
Job stats:
job      count
-----  -------
A_all        1
total        1

Select jobs to execute...

[Tue Oct 31 15:13:09 2023]
rule A_all:
    jobid: 0
    reason: Rules with neither input nor output files are always executed.
    resources: tmpdir=/tmp

pytho --version
Python 3.10.8
[Tue Oct 31 15:13:09 2023]
Finished job 0.
1 of 1 steps (100%) done

It seems that when snakemake tried to dryrun, it searched the wrong workspace.

Replacing the command in A.smk with an f-string seems to resolve the issue, i.e. B.smk can be run successfully if A.smk is modified as follows:
PYTHON = 'python'

rule all:
    shell: f'{PYTHON} --version'

(Since the snakefiles that I would like to import may be maintained by someone else, I would like ordinary strings work the same way if possible.)

This seems to be by design: https://snakemake.readthedocs.io/en/stable/snakefiles/modularization.html#modules

The module is evaluated in a separate namespace, and only the selected rules are added to the current workflow. Non-rule Python statements inside the module are also evaluated in that separate namespace. They are available in the module-defining workflow under the name of the module (e.g. here other_workflow.myfunction() would call the function myfunction that has been defined in the model, e.g. in other_workflow/Snakefile).

In your case, my guess is:

PYTHON defined in A.smk is not available in B.smk namespace, snakemake fails to replace {PYTHON}
Unless PYTHON is defined in B.smk
When importing A.smk, f-string is evaluated first, replacing f"{PYTHON}" with variable PYTHON defined in A.smk

The best approach I think is to put PYTHON in params:
A.smk:
rule all:
    params: python="bash"
    shell: '{params.python} --version'

B.smk:
module A_wf:
    snakefile: "A.smk"

use rule all from A_wf as A_all with:
    params: python="python"

Alternatively, you can store PYTHON in config and pass that to A.smk in B.smk when importing module.

@SichongP Thank you for your reply! Adding the statement A_wf.PYTHON = "python" to B.smk did in fact make the workflow work as expected. To me it is not clear, though, why declaring the variable without the module prefix also worked; does “separate namespace” in this context mean that it still inherits all variables from the namespace of the importing snakefile?
I would still like to argue that the current approach makes the module feature quite a bit less useful than it could be. In particular, if global variables are used in a workflow, it will work when run by itself but not without redefining said variables when imported as a module. Consequently using workflows written by other authors by importing them as modules may not be worthwhile as extensive changes or boilerplate might be needed.

Adding the statement A_wf.PYTHON = "python" to B.smk did in fact make the workflow work as expected.

I actually had no idea this would work!

To me it is not clear, though, why declaring the variable without the module prefix also worked; does “separate namespace” in this context mean that it still inherits all the variables from the namespace of the importing snakefile?

Yes, as @Hocnonsense mentioned, imported rules are wrapped as functions and called directly within namespace of the importing module (B.smk in your example). So when you define PYTHON="python" in B.smk, the PYTHON variable becomes available to the imported rules as it's in the namespace of the importing module.

I would still like to argue that the current approach makes the module feature quite a bit less useful than it could be. In particular, if global variables are used in a workflow, it will work when run by itself but not without redefining said variables when imported as a module. Consequently using workflows written by other authors by importing them as modules may not be worthwhile as extensive changes or boilerplate may be needed.

I think the opposite is actually true -- separating namespaces of importing and imported modules is paramount because otherwise parameters, variables, config in the imported module can be silently overwritten and that is quite dangerous! Consider your example, what if A.smk needs PYTHON=python2 but B.smk needs PYTHON=python3?


Error: spawn rec ENOENT

Good Morning, I have been stepping through this all yesterday and today, and from what I can tell, there might be an issue with spawn:
index.js - line44
rec = spawn(cmd, cmdArgs);
spawn calls this file: child_process.js @line: 990
var spawn = exports.spawn = function(/file, args, options/) { //These are commented out
I see that spawn doesn't take any arguments?
I am on windows 10
node v.0.12.7
I wanted to see if you gentleman ran into this? Thank you for your help.

I'm getting a similar error, if not the same
´´´
events.js:85
throw er; // Unhandled 'error' event
^
Error: spawn rec ENOENT
at exports._errnoException (util.js:746:11)
at Process.ChildProcess._handle.onexit (child_process.js:1053:32)
at child_process.js:1144:20
at process._tickCallback (node.js:355:11)
at Function.Module.runMain (module.js:503:11)
at startup (node.js:129:16)
at node.js:814:3
´´´

yepp me too.
win 10
node v4.2.4

It appears rec is no longer shipped with sox.
http://superuser.com/questions/192327/how-can-i-record-sound-from-the-windows-command-line
new command should be like:
sox --type waveaudio --default−device filename.wav

I am having the same error, has anyone already fixed this issue?
I am not sure where and how to change the code.

same error

I have the same error :( anyone?

same error.

annoying errror

still unresolved

I got it running for me:
First you add your install-directory ("C:\Program Files (x86)\sox-14-4-2" in my case) to your Path.
You will notice, that there is no rec.exe. So we have to record with sox.exe directly (see comment by @CodeHipster)
Therefore you will need to go into the index.js (of node-record-lpcm16) and replace the cmd-name with "sox" and add the necessary args. It should look something like this:
  var cmd = 'sox';
  var cmdArgs = [
    '-q',                                     // show no progress
    '-t', 'waveaudio',                        // input-type
    '-d',                                     // use default recording device
    '-r', options.sampleRate.toString(),      // sample rate
    '-c', '1',                                // channels
    '-e', 'signed-integer',                   // sample encoding
    '-b', '16',                               // precision (bits)
    '-t', 'raw',                              // output-type
    '-'                                       // pipe
  ];

Yeah... and the options weren't linked to the sample rate.
Have a nice day!

You can specify the recordProgram option, I've added sox as an alias to rec for Windows platforms. Unfortunately I don't have a Windows device to test this on :(
https://github.com/gillesdemey/node-record-lpcm16#options

Hi,
I just saw in your commit. You forgot to add the extra parameters. (Refering to my previous comment here)
'-t', 'waveaudio',                        // input-type
'-d',                                     // use default recording device

Also, for my application I used raw as audio type. Would it be possible to have that as an option? As well as the bit-depth (precision)?
Also we (the windows users) need an option to enter the complete cmd-path. Otherwise it should be added to the readme that sox.exe has to be in the PATH for this module to work.

Has this been tested on Windows yet? It seems to be running fine and even generates an audio file. But the audio file is unplayable/corrupt.

Hi,
I added a pull-request for what works fine for me: https://github.com/gillesdemey/node-record-lpcm16/pull/28
My test-code:
var record = require('node-record-lpcm16');
var fs = require('fs');

var file = fs.createWriteStream('test.wav', {
    encoding: 'binary'
});

record.start({
    recordProgram: 'sox'
}).pipe(file);

// Stop recording after three seconds
setTimeout(function () {
  record.stop()
}, 3000);

Remember to have sox in PATH.
@AnimaMundi Did you try opening your file with a text-editor? Pretty sure sox just dumped its help-page because of the wrong cmd-args. ;)

@freund17 thanks for getting back, but unfortunately I'm under time restraints at the moment so I moved on from this when I couldn't get it working within a few hours and ended up using the node-microphone package instead.

@freund17  code works, but i am not able to play the recorded file as it says it is corrupted and I can see the english content when i opened it in text editor

I'm having the issue @freund17 was having. Help is getting dumped.

I added a PR like -- ages ago -- https://github.com/gillesdemey/node-record-lpcm16/pull/28 you should give it a try.
I don't remember any more, but I'm pretty sure the problem with the text comes from sox dumping its help because it is being called with the wrong arguments. (The provided args are for rec)
The version in my PR worked for me (sox, windows, node 5?) -- at least at the time.

@freund17 Ah so the PR hasen't been accepted yet? Damn.. I'll have a look^^

Hi, I use this code
record
.start({
sampleRateHertz: sampleRateHertz,
threshold: 0,
sampleRate : 16000,
// Other options, see https://www.npmjs.com/package/node-record-lpcm16#options
verbose: false,
recordProgram: 'sox', // Try also "arecord" or "sox"
silence: '3.0'
})
.on('error', console.error)
.pipe(recognizeStream);

nodejs v4.8.4
sox-14-4-2

on linux i put recordProgram: 'rec' works.
on windows recordProgram: 'sox' does not work (it is as if the sound from the microphone did not come).
Sox it's installed. If I try to run sox in this way "sox -t waveaudio -d prova.flac" works
Do I have to enter the channel or device? I tried but did not go.
Could you suggest me something? Thanks

I am still facing this issue. I have installed SOX and placed its location in the Path variable but still getting the "Spawn Sox Enonet" error. !!

Ok, To anyone who still has this issue.

Got to your node_modules folder and look for node-record-lpcm16
open index.js of node-record-lpcm16
Look for this in the code:
case 'rec':  default:    cmd = options.recordProgram    cmdArgs = [      '-q',                     // show no progress      '-r', options.sampleRate, // sample rate      '-c', options.channels,   // channels      '-e', 'signed-integer',   // sample encoding      '-b', '16',               // precision (bits)      '-t', 'wav',              // audio type      '-',                      // pipe      // end on silence      'silence', '1', '0.1', options.thresholdStart || options.threshold + '%',      '1', options.silence, options.thresholdEnd || options.threshold + '%'    ]    break
Replace it with:
case 'rec':  default:    var cmd = 'sox';    var cmdArgs = [      '-q',                                     // show no progress      '-t', 'waveaudio',                        // input-type      '-d',                                     // use default recording device      '-r', options.sampleRate.toString(),      // sample rate      '-c', '1',                                // channels      '-e', 'signed-integer',                   // sample encoding      '-b', '16',                               // precision (bits)      '-t', 'raw',                              // output-type      '-'                                       // pipe    ];    break
Save it and you are done!

The change @Esinko recommended worked. Please integrate into the main branch!

hi @Esinko ,
I updated my index,js file as mentioned --
case 'rec':
default:
var cmd = 'sox';
var cmdArgs = [
'-q', // show no progress
'-t', 'waveaudio', // input-type
'-d', // use default recording device
'-r', options.sampleRate.toString(), // sample rate
'-c', '1', // channels
'-e', 'signed-integer', // sample encoding
'-b', '16', // precision (bits)
'-t', 'raw', // output-type
'-' // pipe
];
break
But still i am getting same error -
events.js:174
throw er; // Unhandled 'error' event
^
Error: spawn sox ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19
i am using below code--
'use strict'
var record = require('node-record-lpcm16');
var fs = require('fs')
var file = fs.createWriteStream('test.wav', { encoding: 'binary' })
record.start({
sampleRate: 44100,
verbose: true
})
.pipe(file)
Currently i am working on Windows 10 .
Could you please suggest on what is going wrong ?

Do you have sox installed and added to env variables?

hi @Esinko ,
Yes , i have installed sox and added to path -

set path
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\nodejs;C:\Program Files (x86)\sox-14-4-2;C:\Users\laxmikantm\AppData\Local\Programs\Python\Python37\Scripts;

current update -  i passed option parameters as  {shell: true} instead of { encoding: 'binary' } , NOw i am not getting error but it does not records audio . i mean , it completes code execution immediately

If you're on MacOS and don't have sox installed yet, just do the following:
brew update && brew install sox

It has to be a sox issue, Try using the command the code executes

Fixed in https://github.com/gillesdemey/node-record-lpcm16/pull/39


IE11 - Object doesn't support property or method 'forEach'

Hi, in browser IE11 error "Object doesn't support property or method 'forEach'"

Software
Version(s)

SimpleBar
v6.2.3

Browser
IE11

npm/Yarn
npm

Operating System
win10

I can't replicate this issue. Do you have some kind of MutationObserver polyfill in place? I don't see why there would be an error there, unless the MutationObserver is modified by maybe another script.


Alternative update & installation

Updating system depends on python installing on target machine, sometimes it not working unless that machine is restart.
Let create a new binary named nmkup which copy functionality of rustup. This binary will manage

nmk (the config)
entrypoint
nmkpkg
itself

merge nmk and nmkup into single multicall binary


Scrolling with Trackpad when connected via parsec on MacBook

Description
Scrolling with trackpad doesn't function correctly when connected to Windows PC from Mac via Parsec.  Only "momentum scrolling" is possible, but result is erratic.  Dragging two fingers to scroll doesn't work as expected.
Steps To Reproduce

Connect to PC with Files via Parsec on MacBook with trackpad.
Attempt to scroll in Files window.

Requirements
Expected: Scroll naturally.
Actual: Scrolling is erratic and nonfunctional.
Files Version
<IP_ADDRESS>
Windows Version
10.0.19045.3155
Log File
debug.log

Thanks for the report, I've added this to the project board.

@jehucampos thank you for sharing your feedback. The preview version of Files is using a newer version of WinAppSdk so it's possible there are some improvements in this area. If you're still seeing these issues, we encourage sharing this feedback on the WinAppSdk repo and sharing the link here for future reference.