CosmosDb throwing "documentdb_1.ConnectionPolicy is not a constructor" error at compile time

This issue was reported in an email. I'm posting the content of that email here to track the status of this issue.
I’m running into this error and am not sure what the work around is. I am getting this at compile time.
In my bot, I have created a new CosmosDbStorage object like this:
const storage = new CosmosDbStorage({
    serviceEndpoint: "https://lucascosmos.documents.azure.com:443/",
    authKey: "xCmY4dZqZACCVUoExxAbfa38MwPjShqbm2TTqNhzKnqlTCLSc8mTio1TeCbEu2dCCg8VmNAohRARuUMPmmrRPg==",
    databaseId: "Tasks",
    collectionId: "Items"
});

This failed with the error:
c:\Users\v-ducvo\Documents\botdocs\samples\BotFramework-Samples\docs-samples\V4\JS\node_modules\botbuilder-azure\lib\cosmosDbStorage.js:32
const policy = new documentdb_1.ConnectionPolicy();
^
TypeError: documentdb_1.ConnectionPolicy is not a constructor
at new CosmosDbStorage (c:\Users\v-ducvo\Documents\botdocs\samples\BotFramework-Samples\docs-samples\V4\JS\node_modules\botbuilder-azure\lib\cosmosDbStorage.js:32:24)
at Object.<anonymous> (c:\Users\v-ducvo\Documents\botdocs\samples\BotFramework-Samples\docs-samples\V4\JS\manage-conversation-and-user-state\azure-cosmos-db.js:40:17)

Looking at line 67 of the source file, I see that connectionPolicyConfigurator is an optional field:
/**
     * Creates a new ConsmosDbStorage instance.
     *
     * @param settings Setting to configure the provider.
     * @param connectionPolicyConfigurator (Optional) An optional delegate that accepts a ConnectionPolicy for customizing policies. More information at http://azure.github.io/azure-documentdb-node/global.html#ConnectionPolicy
     */

    public constructor(settings: CosmosDbStorageSettings, connectionPolicyConfigurator: (policy: ConnectionPolicy) => void = null)

…so, why am I getting this error at compile time? The failure came at line 67 where it tries to create a new ConnectionPolicy():
const policy: ConnectionPolicy = new ConnectionPolicy();
How can I avoid this error from my code?

Chatted with @v-ducvo, seeing same results.
C# appears to work fine, the js version appears to be broken.  Think we need some js chops to investigate.


Tests: 🐇 bunny reading results

Test that the extents (max - min coordinates) of the bunny pointcloud are close to
Box dimensions
X: 0.155698
Y: 0.14731
Z: 0.120672
Global box center (median position)
X: -0.016840
Y: 0.113666
Z: -0.001537

Hello, ahh yes it is not really the median but rather the max plus the min divided by two ! Sorry wrong wording from me!

The code looks good - I didn't know about pytest.approx. I have always used numpy.isclose but approx is a little cleaner !


Use NPM 3.3.6 if the default node is 4.1.2 to workaround path issues …

…with aspnet 5

Added to doc: https://github.com/projectkudu/kudu/wiki/Configurable-settings#change-the-npm-version

Looks good other than minor comment.

Updated and merged. Thanks!


fix: test files path in windows

This is a fix for "Error: No test suite found" in Windows.
This should force it to use uppercase letters for the drivers.
For more info :
https://github.com/nodejs/node/issues/6624

Unfortunately, pathe uses path and does not solve this problem.
https://github.com/unjs/pathe/blob/main/src/path.ts
I think the filtering is not going to work well in windows
"testFiles = testFiles.filter(i => filters.some(f => i.includes(f)))"
cause
c:\project\src\tests\file.ts
is equal to
C:\project\src\tests\file.ts
in Windows.
so, one of these commands
"npx vitest C:......." or "npx vitest c:......."
will fail 100%.
cmd, powershell, vscode & other IDEs can run into this issue. (had it on powershell and vscode)
fs.realpath.native might fix it but I think this solution should the best for now until a refactoring is done to the globTestFiles function.
So, move it to util ?

Unfortunately, pathe uses path and does not solve this problem.
https://github.com/unjs/pathe/blob/main/src/path.ts
I think the filtering is not going to work well in windows
"testFiles = testFiles.filter(i => filters.some(f => i.includes(f)))"
cause
c:\project\src\tests\file.ts
is equal to
C:\project\src\tests\file.ts
in Windows.
so, one of these commands
"npx vitest C:\......." or "npx vitest c:\......."
will fail 100%.
cmd, powershell, vscode & other IDEs can run into this issue. (had it on powershell and vscode)
fs.realpathSync.native might fix it but I think this solution should be the best for now until a refactoring is done to the globTestFiles function.
So, move it to util ? (I totally agree with that)

Of course it's using path, but I don't see the problem? They are wrapping it to make it consistent across platforms, which you are trying to do here. We can open PR to fix this issue on their side, I think.

It is pointless to argue.
You should read pathe's documentations carefully. If pathe's team should fix this problem, then go ahead and create a PR. Otherwise, submit a PR for nodejs like :
https://github.com/nodejs/node/issues/38459
or fix it on your end.


merge_programs adds superfluous DECLARE instruction for MEASURE register

merge_programs adds a superfluous declaration of the measurement register in the following example:
from pyquil import Program
from pyquil.quil import merge_programs

print(merge_programs([Program("DECLARE ro BIT[1]"), Program("H 0"), Program("MEASURE 0 ro[0]")]))

Output:
DECLARE ro BIT[1]
H 0
DECLARE ro BIT[1]
MEASURE 0 ro[0]

This produces a hiccup in the compilation of the programme.
Using pyquil 2.0.0.b6.

This is because merge_programs calls sum on prog.instructions. I think changing that to prog._instructions will fix it but I'd have to test it


[FEATURE] JRTB-7: As a User, I want to remove group subscription from my subscriptions

As a User, I want to remove group subscription from my subscriptions
Acceptance criteria:

/removeGroupSub added


Keymaster does not seem to be working anymore. all PIN status say disconnected

Describe the bug
Have had keymaster installed and configured for well over a year or more now. not sure exactly when, but it does not seem to be working anymore. all my code slots say PIN Status is Disconnected. i have tried my pins on my lock and 2 seem to be working while the other 2 code slots are not working at all. debug logs show slots 3 and 4 as being not configured as well when they are configured.
Environment (please complete the following information):

OS: HassOS
Type of system that HA is running on: VM
Home Assistant version: 2024.7.4
Hassio
Component version: 0.0.98
Z-Wave integration name: Zwave
Lock make and model: Schlage BE469

Logs
home-assistant_keymaster_2024-08-06T14-42-08.415Z.log

can anyone help me find a place to start troubleshooting this??

Please review https://github.com/FutureTense/keymaster/issues/270 for troubleshooting steps.

Please review #270 for troubleshooting steps.

mine is not stuck on "deleting" or "adding". mine says "disconnected" and never changes or even tries to change when i enable/disable a PIN

when you vie w the node in ZwaveJS UI do you see the User Codes V1 command class?

when you vie w the node in ZwaveJS UI do you see the User Codes V1 command class?

ZwaveJS UI? Isn't that the addon in addon store? I use the built in default ZwaveJS but never added that addon

Hello??

Install ZwaveJS UI otherwise you can't really do troubleshooting.

Hello??

Wish we could work through this more quickly but we all have lives, and we are also involved in core integration development, other integration development, etc. If you aren't getting the answers you need, it's most likely because we are distracted working on other issues. You are welcome to comment on a thread to "bump" it but please try to sound less demanding

Install ZwaveJS UI otherwise you can't really do troubleshooting.

I did try installing it and it didn't show me anything at all. it did not see any of my nodes at all. i followed the directions and when it was done and i opened it there was nothing to see. i rebooted my server as well. i looked at my ZwaveJS integration and everything was still there

Hello??

Wish we could work through this more quickly but we all have lives, and we are also involved in core integration development, other integration development, etc. If you aren't getting the answers you need, it's most likely because we are distracted working on other issues. You are welcome to comment on a thread to "bump" it but please try to sound less demanding

my apologies for sounding demanding. I just felt stressed that this is not working and i cannot manage my lock to my main door of my house anymore. i will try and sound less demanding. thank you for the advice

I did try installing it and it didn't show me anything at all. it did not see any of my nodes at all. i followed the directions and when it was done and i opened it there was nothing to see. i rebooted my server as well. i looked at my ZwaveJS integration and everything was still there

You'll need to follow the directions here: https://www.home-assistant.io/integrations/zwave_js/#how-do-i-switch-between-the-official-z-wave-js-add-on-and-the-z-wave-js-ui-add-on

when you vie w the node in ZwaveJS UI do you see the User Codes V1 command class?

is this what you were talking about?

is this what you were talking about?

Yes please make sure entities are shown under User Code v1, if nothing's under that drop down, hit the refresh button.

is this what you were talking about?

Yes please make sure entities are shown under User Code v1, if nothing's under that drop down, hit the refresh button.

i do see stuff there but when i make a change, for example... if i go to my lovelace dashboard, enable slot 5 and add a name and a pin, it does not change in user code section in the ZwaveJS-UI

do your user code slots say 'disabled' in ZwaveJS UI?

no 4 say enabled and the others all say available and code slot 5 shouldn't have anything. here is the zwave-js ui

and here is my lovelace

Ah horrible schlege locks.
Try using the service call:
  - service: zwave_js.invoke_cc_api
    target:
      entity_id: lock.assure_2_keyless_touch_screen_deadbolt
    data:
      command_class: "99"
      method_name: get
      parameters:
        - 1

And see if your slot 1 goes "connected". Change the entity_id to the entity of your lock.

i am pretty sure i put the service call in correctly?

No that was incorrect, put in parameters [ 1 ]

ok so i put it in like you said and it ran and i got the green checkmark, however when i look at my lovelace the slot still shows as disconnected

What are you seeing in the debug logs?

i honestly do not know how to read these debug logs but here it is
home-assistant_keymaster_2024-08-25T17-29-42.610Z.log

2024-08-25 13:29:39.075 DEBUG (MainThread) [custom_components.keymaster] DEBUG: Ignoring code slot with * in value for code slot 1
2024-08-25 13:29:39.075 DEBUG (MainThread) [custom_components.keymaster] Work around code in use.
2024-08-25 13:29:39.075 DEBUG (MainThread) [custom_components.keymaster] Utilizing FE599 work around code.
2024-08-25 13:29:39.075 DEBUG (MainThread) [custom_components.keymaster] DEBUG: Ignoring code slot with * in value for code slot 2
2024-08-25 13:29:39.075 DEBUG (MainThread) [custom_components.keymaster] Work around code in use.
2024-08-25 13:29:39.076 DEBUG (MainThread) [custom_components.keymaster] Utilizing FE599 work around code.
2024-08-25 13:29:39.076 DEBUG (MainThread) [custom_components.keymaster] DEBUG: Ignoring code slot with * in value for code slot 3
2024-08-25 13:29:39.076 DEBUG (MainThread) [custom_components.keymaster] Work around code in use.
2024-08-25 13:29:39.076 DEBUG (MainThread) [custom_components.keymaster] Utilizing FE599 work around code.
2024-08-25 13:29:39.076 DEBUG (MainThread) [custom_components.keymaster] DEBUG: Code slot 4 not enabled
2024-08-25 13:29:39.076 DEBUG (MainThread) [custom_components.keymaster] DEBUG: Ignoring code slot with * in value for code slot 5
2024-08-25 13:29:39.076 DEBUG (MainThread) [custom_components.keymaster] Work around code in use.
2024-08-25 13:29:39.076 DEBUG (MainThread) [custom_components.keymaster] Utilizing FE599 work around code.

Looks like you should be able to toggle the Enable toggle then re-enable and it should work.

Wish I could say that was the case but I toggled the toggle on my Lovelace dashboard and nothing happened

Try re-generating the package files via the service call:

Then restart HA.

i really wanted to come back here and report everything was good and working now but its not. all the current slots still say disconnected. however they do work on the lock itself. so i thought maybe the dashboard is just broke so i added a code to slot 4 and tried it on the lock and it did not work. so i am confused now. really don't get why some work and others do not and why the dashboard just doesn't seem to work at all

Maybe give lock-code-manager a try:
https://github.com/raman325/lock_code_manager
It's like keymaster but lighter, all the heavy lifting is done by the integration rather than scripts/automations/etc.

Thanks for the suggestion. This integration was one of the first ones I
ever installed and has worked flawlessly for a long time. I just don't
understand why it stopped
On Mon, Aug 26, 2024, 6:33 PM Chris @.***> wrote:

Maybe give lock-code-manager a try:
https://github.com/raman325/lock_code_manager
It's like keymaster but lighter, all the heavy lifting is done by the
integration rather than scripts/automations/etc.
—
Reply to this email directly, view it on GitHub
https://github.com/FutureTense/keymaster/issues/381#issuecomment-2311223430,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHOXQZ6RESPAD6JOEB4PWCLZTOUM5AVCNFSM6AAAAABMCQA2V6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJRGIZDGNBTGA
.
You are receiving this because you authored the thread.Message ID:
@.***>

I am unsure as well.

so i was able to fix this but i actually do not know how i fixed it cause it literally makes no sense at all and when i describe the fix you won't believe me either.
so i was noticing that on my lovelace dashboard that the top badges all worked as expected and i thought that was odd that they worked and the "Enable" button for the PIN did not. so i went into the raw configuration for the dashboard and then copied only the keymaster parts of it (there are other things on my dashboard) and then created a new blank dashboard and in that raw configuration pasted my keymaster to it. i opened that "test" dashboard and all the values were blank (no names, no pins, nothing). so the first thing i did just to test was toggle the enable button on slot 1. and to my surprise the status lit up and then showed connected. i toggled it back and it went back to disconnected
stunned by what i saw, and since i literally changed NOTHING, all i did was copy and paste to a new dashboard i was curious and i went back to my original dashboard and again to my surprise, all my entries that were previously in there were blank, all my names and pins were gone and i never cleared them so i was confused by this. so i put my name back in slot 1 and my pin and then clicked enable and once again to my shock the pin status lit up and it showed connected.
so as you can see i literally did nothing at all. i copied and pasted the code to a new dashboard, played with one toggle and then went back to my original dashboard and re-entered all my values. so i do know how that fixed it but somehow it did.

I have two instances or HA. Two separate houses. One system has slots stuck as disconnected. I attempted running the services and scripts to no avail. Finally what worked for me was quite simple.
In KeyMaster

Advanced - Reset Code Slot
Enable Slot with no name/PIN
Disable Slot
Enter Name/PIN
Enable slot

I was able to clear out 12 slots successfully.

I'm having the same issue, but it hasn't magically solved itself like it apparently did for other folks. The debug logs show that Keymaster is able to read the pins from the lock but there's nothing to indicate that it's even trying to update them when I update them in the UI:
2024-09-25 14:35:18.685 DEBUG (MainThread) [custom_components.keymaster] DEBUG: Code slot 1 value: 1234
2024-09-25 14:35:18.685 DEBUG (MainThread) [custom_components.keymaster] DEBUG: Code slot 2 value: 2345
2024-09-25 14:35:18.685 DEBUG (MainThread) [custom_components.keymaster] DEBUG: Code slot 3 value: 3456
2024-09-25 14:35:18.685 DEBUG (MainThread) [custom_components.keymaster] DEBUG: Code slot 4 not enabled
2024-09-25 14:35:18.685 DEBUG (MainThread) [custom_components.keymaster] DEBUG: Code slot 5 not enabled
2024-09-25 14:35:18.685 DEBUG (MainThread) [custom_components.keymaster] DEBUG: Code slot 6 not enabled
2024-09-25 14:35:18.686 DEBUG (MainThread) [custom_components.keymaster] DEBUG: Code slot 7 not enabled
2024-09-25 14:35:18.686 DEBUG (MainThread) [custom_components.keymaster] DEBUG: Code slot 8 not enabled
2024-09-25 14:35:18.686 DEBUG (MainThread) [custom_components.keymaster] DEBUG: Code slot 9 not enabled
2024-09-25 14:35:18.686 DEBUG (MainThread) [custom_components.keymaster] DEBUG: Code slot 10 not enabled
2024-09-25 14:35:18.686 DEBUG (MainThread) [custom_components.keymaster] DEBUG: Code slot 11 not enabled
2024-09-25 14:35:18.686 DEBUG (MainThread) [custom_components.keymaster] DEBUG: Code slot 12 not enabled
2024-09-25 14:35:18.686 DEBUG (MainThread) [custom_components.keymaster] DEBUG: Code slot 13 not enabled
2024-09-25 14:35:18.686 DEBUG (MainThread) [custom_components.keymaster] DEBUG: Code slot 14 not enabled
2024-09-25 14:35:18.686 DEBUG (MainThread) [custom_components.keymaster] DEBUG: Code slot 15 not enabled
2024-09-25 14:35:18.686 DEBUG (MainThread) [custom_components.keymaster] DEBUG: Code slot 16 not enabled
2024-09-25 14:35:18.687 DEBUG (MainThread) [custom_components.keymaster] DEBUG: Code slot 17 not enabled
2024-09-25 14:35:18.687 DEBUG (MainThread) [custom_components.keymaster] DEBUG: Code slot 18 not enabled
2024-09-25 14:35:18.687 DEBUG (MainThread) [custom_components.keymaster] DEBUG: Code slot 19 not enabled
2024-09-25 14:35:18.687 DEBUG (MainThread) [custom_components.keymaster] DEBUG: Code slot 20 not enabled
2024-09-25 14:35:18.687 DEBUG (MainThread) [custom_components.keymaster] DEBUG: Code slot 21 not enabled
2024-09-25 14:35:18.687 DEBUG (MainThread) [custom_components.keymaster] DEBUG: Code slot 22 not enabled
2024-09-25 14:35:18.687 DEBUG (MainThread) [custom_components.keymaster] DEBUG: Code slot 23 not enabled
2024-09-25 14:35:18.687 DEBUG (MainThread) [custom_components.keymaster] DEBUG: Code slot 24 not enabled
2024-09-25 14:35:18.687 DEBUG (MainThread) [custom_components.keymaster] DEBUG: Code slot 25 not enabled
2024-09-25 14:35:18.687 DEBUG (MainThread) [custom_components.keymaster] DEBUG: Code slot 26 not enabled
2024-09-25 14:35:18.687 DEBUG (MainThread) [custom_components.keymaster] DEBUG: Code slot 27 not enabled
2024-09-25 14:35:18.687 DEBUG (MainThread) [custom_components.keymaster] DEBUG: Code slot 28 not enabled
2024-09-25 14:35:18.688 DEBUG (MainThread) [custom_components.keymaster] DEBUG: Code slot 29 not enabled
2024-09-25 14:35:18.688 DEBUG (MainThread) [custom_components.keymaster] DEBUG: Code slot 30 not enabled
2024-09-25 14:35:18.688 DEBUG (MainThread) [custom_components.keymaster] Finished fetching keymaster data in 0.004 seconds (success: True)

The codes returned here match what's actually on the lock and what's shown in the zwave-js UI under User Code v1.

I used the zwave-js-ui to make sure all code slots were available and blank and suddenly it started working 🤷


Remove Option of Show story cover images - All Views

In future iterations, cover images will be compulsory for all web stories. Keeping them disabled in the block is leading to few other cascading issues.
To-Do :

[x] By default, Cover Image should be used across all views.
[x] Remove the option of Show story cover images

This request is incorporated and now available in the block.


a simplified way of handling min controls

some simplifications after reviewing the PR. I don't think this is working perfectly but I don't know where the designs for this is so I can't tell exactly what the functionality is supposed to be.
One assumption I did make is some of these minimal controls are fine regardless of if it's embedded or not (if the controls don't fit we shouldn't show them). But that can be changed back.

@meganrm thanks for these updates!
I know you weren't seeing the previews working properly when making your suggestions so I found a few things that needed tweaking to get all the rendering working, left them as suggestions for now I know you're heading into the weekend.
I love keeping this changes for all windows, not just embedded, that's definitely where I saw this going!


class member not exists in constructor won't serialize?

@MappableClass()
class Model with ModelMappable {
int x;
}
toJson don't contain x.

This is by design:
https://pub.dev/documentation/dart_mappable/latest/topics/Models-topic.html#utilizing-constructors

a little bit unfriendly in some cases but ok


404, network/benchmarks/netperf/images/BenchmarkingKubernetesNetworkingPerformance.svg

In network/benchmarks/netperf/README.md, the urls of
svg, e.g. netperf.svg & BenchmarkingKubernetesNetworkingPerformance.svg are 404
Thanks :smile:

Yeah... they're not there, probably because of .gitignore rules. As we lost an owner @girishkalele and I don't think I have any idea how to recover those diagrams. Sorry :(
@thockin @matchstick - do you have those diagrams anywhere by any chance?


Issue 22582 - [std.algorithm.count] predicate does not implicitly convert to bool

Force pushing because CI got stuck

@iK4tsu your commit message doesn't meet the auto-close issue regex. Can you prepend Fix Issue ... for the bot to pick it up and automatically close this when merged?

like this?
- Issue 22582 - [std.algorithm.count] predicate does not implicitly convert to bool
+ Fix Issue 22582 - [std.algorithm.count] predicate does not implicitly convert to bool

like this?
- Issue 22582 - [std.algorithm.count] predicate does not implicitly convert to bool
+ Fix Issue 22582 - [std.algorithm.count] predicate does not implicitly convert to bool

Yes. You can read more about the matching algorithm here. You can include a brief title on the commit message and add something like Fix Issue xxxx and it will grab it too -- what I mean by that is that you don't need to include the full title of the issue, unless you want to give more/different context on the commit body. The other way around is useful to reference old issues on regression, some partial fix or a fixup change to a recent fixed issue on master, for example.


Add events to know when location was enabled/disabled. Same for bluetooth/wifi

Feature request
Currently the package provides a way to know if location/bluetooth/wifi is available or not, but there is no event to subscribe to for when these are changed from outside the app.
Why it is needed
If we need this functionality we need to use a different package for this, which makes the presence of isLocationEnabled, et all, functions useless from this package. Subscriptions to listen to changes to these hardware settings will make this package complete in the value provided.
Possible implementation
Add subscriptions for hardware on/off events, much like how we have battery value update events.
Code sample

PRs happily accepted :-)

if anyone wants to try this, the react-native-community/netinfo object shape for the event, event listener etc are a great model

@mikehardy I'd like to help with this, but I'm afraid I'm not great with iOS

Usually people are good with one or the other, I'm pretty sucky at Objective-C too. Propose an Android implementation and we can start from there, I won't let perfect get in the way of good


NEXT-22748 - Fix permanent offcanvas button in cms el product descrip…

1. Why is this change necessary?
If the cms element Product descriptions & reviews is placed in a block OTHER than Product description & reviews,
the button "Close menu" is permanently displayed in the tab content because the class product-detail-tabs from the
block is missing.
2. What does this change do, exactly?
Move the class product-detail-tabs from cms-block-product-description-reviews to cms-element-product-description-reviews
to make sure it is never missing.
3. Describe each step to reproduce the issue or behaviour.

In the layout editor (administration) place a block other than 'Product description & reviews' and change one of the
elements to 'Product description & reviews'

Before:

After:

4. Please link to the relevant issues (if any).
https://issues.shopware.com/issues/NEXT-22748
5. Checklist

[x] I have rebased my changes to remove merge conflicts
[ ] I have written tests and verified that they fail without my change
[x] I have created a changelog file with all necessary information about my changes
[ ] I have written or adjusted the documentation according to my changes
[ ] This change has comments for package types, values, functions, and non-obvious lines of code
[x] I have read the contribution requirements and fulfil them.

Hello,
thank you for creating this pull request.
I have opened an issue on our Issue Tracker for you. See the issue link: https://issues.shopware.com/issues/NEXT-23599
Please use this issue to track the state of your pull request.

Thanks again for your contribution, your PR is merged now! :tada: :blue_heart:


Issues/91 - BYO logger

Thank you for contributing to naz.
Every contribution to naz is important.
Contributor offers to license certain software (a “Contribution” or multiple
“Contributions”) to naz, and naz agrees to accept said Contributions,
under the terms of the MIT License.
Contributor understands and agrees that naz shall have the irrevocable and perpetual right to make
and distribute copies of any Contribution, as well as to create and distribute collective works and
derivative works of any Contribution, under the MIT License.

The diff coverage is 84.93%.

@@            Coverage Diff             @@
##           master      #93      +/-   ##
==========================================
- Coverage   85.41%   84.97%   -0.44%
==========================================
  Files          10       12       +2
  Lines         898      925      +27
==========================================
+ Hits          767      786      +19
- Misses        131      139       +8

Impacted Files
Coverage Δ

naz/q.py
78.57% <ø> (ø)
:arrow_up:

naz/__version__.py
100% <ø> (ø)
:arrow_up:

naz/sequence.py
84.61% <ø> (ø)
:arrow_up:

naz/correlater.py
93.1% <100%> (ø)
:arrow_up:

naz/ratelimiter.py
96.96% <100%> (ø)
:arrow_up:

cli/cli.py
70.07% <100%> (ø)
:arrow_up:

naz/throttle.py
91.83% <100%> (ø)
:arrow_up:

naz/hooks.py
81.25% <100%> (ø)
:arrow_up:

naz/state.py
100% <100%> (ø)

naz/client.py
81.85% <68.62%> (-3.72%)
:arrow_down:

... and 4 more

Continue to review full report at Codecov.

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


Webpack 5 migration

Hey yo, good plugin owners!
Do you have any plans to upgrade this wonderful plugin to support Webpack 5? They've changed a few things like chunk.files is no longer an Array, but a Set. And a few other little things...

@bretproft  fyi I believe webpack 5 has optimizations.realContentHash option that should make this plugin obsolete.


How to use it in potplayer?

I will check the documentation of potplayer, maybe it would be possible.

I promise it's enable.
I seen a man user Anime4k in potplayer in china

I promise it's enable.
I seen a man user Anime4k in potplayer in china

Yeah, I find it, thanks a lot!
Here is  author's setting:

Download the attachment in Anime4K_HLSL.zip
Extract all the files to the C:\Program Files\DAUM\PotPlayer\PxShader directory (the installation directory may be different, change it yourself)
Open Potlplayer, right click video area Video -> Pixel Shader ->Reload Pixel Shader list
See the figure below( Video -> Pixel Shader ->Post-Resize Pixel Shaders ->Stack ). If there are no problems in the first three steps, you should be able to see these items starting with Anime4K_ (I have a set of duplicates here, you should have no duplicates when setting them)

hey thats pretty good    I spent a lot of time trying to figure out what HLSL and shaders is

I don't see HLSL in the latest release (v1.0 Candicate 2).
Is it possible to do the same with GLSL?

I don't see HLSL in the latest release (v1.0 Candicate 2).
Is it possible to do the same with GLSL?

I don't know. You can try it!

I don't see HLSL in the latest release (v1.0 Candicate 2).
Is it possible to do the same with GLSL?

I don't know. You can try it!

I put GLSL into the shader folder, however the PotPlayer did not detect it even after reloading the shaders. BUT, I notice that if I change the file extension to .txt, it shows up.
Now the problem is I don't know if it actually works or not, whenever I clicked "Playback Info" (CTRL +F1), the resolutions are still the same as the original.
It is the same case for the HLSL version, no resolution changes in the playback info.
How do you tell if it works?

Same here. I put all HLSL files into my 'PxShader' folder and set the combination in potplayer, but I can't tell any difference when I enable it.

Same here. I put all HLSL files into my 'PxShader' folder and set the combination in potplayer, but I can't tell any difference when I enable it.

+1

同样在这里。我将所有HLSL文件放入“ PxShader”文件夹中，并在potplayer中设置了组合，但是启用后我看不出有什么区别。

+1

+1

Confirmed that renaming *.glsl to *.txt doesn't work for PotPlayer. Otherwise, 1.0 is worse than 0.9, lol.
HLSL from v0.9 Beta:

GLSL from v1.0 RC2:

No luck trying to get it working with potplayer.
I have tried both the v0.9, the v1, and the current development repo hlsl files. None seem to have any upscaling effect. I have disabled MadVR prior to testing. Any ideas?
My test file is Haibane Renmei, 1080p, not sharp but very high bitrate 2400kbps, viewing on 4k monitor.
Thank you.

1st, download v0.9 HLSL, not 1.0 GLSL,
2nd, right click potplayer->Video->Video Processing Settings->Surface format->chang to 32-bit floating point.
Enjoy.

Updated the newest version of Potplayer and black screened, don't know why...try to reinstall old version

Installed 32bit version and solved

How to use anime4k's latest version on potplayer?

I successfully use 0.9beta version on potplayer by changing to 32-bit floating point. but how does using latested 2.0 version on potplayer?
GLSL>OpenSL
HLSL>Driect3D
Does PotPlayer support OpenSL ???

Actually, potplayer does not support GLSL. So if you want to use anime4k, use HLSL, maybe in the 1.0 or 0.9(beta) version.

Copied HLSL 0.9 into PxShader folder. They do appear in Post-Resize filter list. But switching them on doesn't do anything.

Anyone got any luck with this?

Does anyone make it work? Hope someone can help

I will check the documentation of potplayer, maybe it is possible.

this would be awesome


Did:indy is not supported

First, it’s know that for the self-certifying Did’s,   the namespace identifier or DID identifier is derived from the public key (Verkey). So for a same SEED value the DID identifier is different if we use the did:sov or did:indy approach (the Verkey remains the same in both cases). https://hyperledger.github.io/indy-did-method/#nym-transaction-version
For example , for a given SEED I generated this:
did:indy approach
DID: NLe9bFbaNs1Eareg4eCXky and Verkey: 2EDa4DdtBVSVthbjP7S4p6u8tPZpasV9ywc9xLn1SkpA
did:sov approach
DID: 3FfZB8jq8kch5qddakysA2 and Verkey: 2EDa4DdtBVSVthbjP7S4p6u8tPZpasV9ywc9xLn1SkpA
My use case:

I created a did:indy from a SEED, so I got a DID identifier and a Verkey
DID: NLe9bFbaNs1Eareg4eCXky and Verkey: 2EDa4DdtBVSVthbjP7S4p6u8tPZpasV9ywc9xLn1SkpA
I registered the DID identifier and Verkey in the Ledger
I started an ACA-Py agent using the initial SEED
In the connection process with the Ledger (and other stuff that ACA-Py does while provisioning), ACA-Py generates a DID identifier and a Verkey from the SEED. But the DID identifier is generated using the did:sov approach. So, this DID identifier (did:sov) is different for the DID identifier (did:indy) published in the Ledger.
And then I got this error : indy_vdr.error.VdrError: Request failed: client request invalid: could not authenticate, verkey for 3FfZB8jq8kch5qddakysA2 cannot be found
And is logical because there is no 3FfZB8jq8kch5qddakysA2 published in the ledger

Is it planned to replace did:sov by did:indy in ACA-Py or support both as described here?

Something I'd like to clarify

3FfZB8jq8kch5qddakysA2 is not a DID
did:sov:3FfZB8jq8kch5qddakysA2 is a DID

The same way that:

www.linkedin.com is not a DID
did:web:www.linkedin.com is a DID

There's the concept of qualified/unqualified DID, but I strongly disagree with this as the did core specification has a strict representation that a DID MUST be a URI:
https://www.w3.org/TR/did-core/#did-syntax
Unqualified DIDs are NOT DIDs, they are just an identifier. This term is misleading.
Now with this out of the way, what is the difference between did:sov and did:indy when resolving?
DID sov is just this, the did prefix did:sov: and the did identifier 3FfZB8jq8kch5qddakysA2.
This method requires the resolver to know in advance against which network to resolve it. This is not covered by the sovrin did method. The did doesn't contain sufficient information in itself to be resolved.
DID indy adds the concept of namespaces in the did prefix:
did:indy:<network>:<identifier>
This sort of addresses the issue, but the problem still remains that the resolver will need to have a list (or directory structure) of known Indy networks. Both of these DID methods require a resolver which has existing knowledge of which networks it knows and their labels.

I started an ACA-Py agent using the initial SEED

There's currently no way to provision aca-py with a seed resulting in something else than a sov provisioned identifier. However, a resolver will still be able to resolve this DID registered on the network using a did:indy: syntax because they are essentially the same thing.
What the did indy method adds is a specified method to refer to other published objects such as anoncreds object through paths.
@JoLuPuma my first question would be, what do you look to achieve by using the did:indy: method to refer to your dids? For operating the agent, it won't change much unless I'm missing something.
For the backwards compatibility part, yes I think this is something that should be included in aca-py. Is this something your team can look into?

@PatStLouis
I think I didn't explain myself well. I was not talking about resolving a did:indy but the generation of the IDENTIFIER using the spec Indy Did Method . AFAIK for security reasons the spec Indy DID Method (https://hyperledger.github.io/indy-did-method/#nym-transaction-version) has changed or has added a new way to generate the IDENTIFIER (what it is called the did:indy approach):

NYM Transaction Version 1 (did sov approach or the old Indy SDK convention) did = Base58(Truncate_msb(16(publicKey)))
NYM Transaction Version 2 (did:indy approach) did = Base58(Truncate_msb(16(SHA256(publicKey))))
The problem is that ACA-Py does not respect or does not support the NYM Transaction Version 2 of the spec indy DID Method.
In my case I use the NYM Transaction Version 2 for generating the IDENTIFIER and Verkey, then I register them in the ledger. So when I start/provision my agent ACA-PY, by default, it generates un IDENTIFIER and Verkey from the SEED, but as it uses the did sov approche (NYM Transaction Version 1 ) the IDENTIFIER generated by ACA-Py is very different from the one I published in the ledger. Then the identifiers dont match and ACA-py does not start.
Error from the original post:  indy_vdr.error.VdrError: Request failed: client request invalid: could not authenticate, verkey for 3FfZB8jq8kch5qddakysA2 cannot be found

This makes sense yes, so theres 2 things I could see happening:

Define a new did registration method for indy:

We are currently in the process of restructuring the did registration methods, if you would like to tackle this it would be a welcome addition. It should be as simple as copying the current sov method and use the new identifier algorithm. However this still won't allow you to provision the startup seed using this new method unless further changes are made.

Implement the backwards compatibility function as you described into aca-py's codebase whenever it interacts with the ledger.


[Do not merge; Testing] Reintroduce reshaped dist to check perf regression

Refer to the discussion in #1544. This may not be needed for all distributions but I want to get our CI runtimes with this change. cc. @fehiepsi

I know the bug. Will make a PR at pytorch soon.

I know the bug. Will make a PR at pytorch soon.

The PR will likely not make it into release. So could you patch the mvn distribution in torch.py in Pyro as well?

Sounds great, thanks @fehiepsi.

Closing this, as #1588 resolves the slowdown with a change localized to mvn rather than reintroducing ReshapedDistribution.


Improve logs in UnmanagedVMsManagerImpl class

Description
ACS includes a feature for importing vCenter VMs. However, the logs in this process have some failures, like ignoring and hiding exceptions. This behavior has been modified, and new logs were added, aiming to facilitate future troubleshooting.
Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] Enhancement (improves an existing feature and functionality)
[x] Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity
Bug Severity

[ ] BLOCKER
[ ] Critical
[ ] Major
[x] Minor
[ ] Trivial

Screenshots (if appropriate):
How Has This Been Tested?
It was tested in a local lab:

I deployed new VMs in vCenter;
I imported this VMs to ACS via UI;
I read the logs to see if they were improved;
Before, the logs did not have enough information to perform an efficient troubleshooting;
Now, with improved logs, the troubleshooting will be easier.

@blueorangutan package

@DaanHoogland a Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

Packaging result: :heavy_check_mark: el7 :heavy_check_mark: el8 :heavy_check_mark: el9 :heavy_check_mark: debian :heavy_check_mark: suse15. SL-JID 5583

@blueorangutan test rocky8 vmware-70u3

Trillian test result (tid-6183)
Environment: vmware-70u3 (x2), Advanced Networking with Mgmt server r8
Total time taken: 46136 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7213-t6183-vmware-70u3.zip
Smoke tests completed. 102 look OK, 6 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test
Result
Time (s)
Test File

test_01_add_primary_storage_disabled_host
Error
0.25
test_primary_storage.py

test_03_migration_options_storage_tags
Error
0.02
test_primary_storage.py

test_00_deploy_vm_root_resize
Error
1.34
test_deploy_vm_root_resize.py

test_05_update_cmd
Error
5.84
test_disk_provisioning_types.py

test_01_non_strict_host_anti_affinity
Failure
143.24
test_nonstrict_affinity_group.py

test_02_non_strict_host_affinity
Error
101.12
test_nonstrict_affinity_group.py

test_01_deploy_vm_on_specific_host
Error
0.09
test_vm_deployment_planner.py

test_04_deploy_vm_on_host_override_pod_and_cluster
Error
0.15
test_vm_deployment_planner.py

test_03_live_migrate_VM_with_two_data_disks
Error
59.92
test_vm_life_cycle.py

test_08_migrate_vm
Error
0.06
test_vm_life_cycle.py

@SadiJr
Could you please provide a sample snippet of the new improved logs so that i can verify it.

@SadiJr
Could you please provide a sample snippet of the new improved logs so that i can verify it.

@kiranchavala sorry for the delay to answer you, sure I can provide some samples:
2023-08-10 18:14:15,032 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-32:ctx-e05a48cd job-7209) (logid:30cc0e5d) Executing AsyncJobVO: {id:7209, userId: 2, accountId: 2, instanceType: None, instanceId: null, cmd: org.apache.cloudstack.api.command.admin.vm.ImportUnmanagedInstanceCmd, cmdInfo: {"details[0].cpuNumber":"1","details[0].cpuSpeed":"1000","forced":"true","httpmethod":"GET","clusterid":"d169dc67-e57d-4376-83ac-2e26d4b5c8f9","ctxAccountId":"2","details[0].memory":"512","cmdEventType":"VM.IMPORT","nicnetworklist[0].network":"6e3d7483-c583-4161-b338-2ebf726fe6d9","serviceofferingid":"8975aefa-1ad2-4164-a628-a173e30da928","response":"json","ctxUserId":"2","displayname":"aaaaa","name":"i-2-855-VM","ctxStartEventId":"16014","nicnetworklist[0].nic":"Network adapter 2","ctxDetails":"{\"interface com.cloud.offering.ServiceOffering\":\"8975aefa-1ad2-4164-a628-a173e30da928\",\"interface com.cloud.org.Cluster\":\"d169dc67-e57d-4376-83ac-2e26d4b5c8f9\"}"}, cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid:<PHONE_NUMBER>1639, completeMsid: null, lastUpdated: null, lastPolled: null, created: null, removed: null}
2023-08-10 18:14:15,047 DEBUG [c.c.u.AccountManagerImpl] (API-Job-Executor-32:ctx-e05a48cd job-7209 ctx-c401e4e0) (logid:30cc0e5d) Access granted to Account {"accountName":"admin","domainId":1,"id":2,"uuid":"9b06bb06-8b8f-11ed-92e4-525400b571c7"} to Service offering {"id":37,"name":"cus","uuid":"8975aefa-1ad2-4164-a628-a173e30da928"}. by AffinityGroupAccessChecker
2023-08-10 18:14:15,049 TRACE [o.a.c.a.c.a.v.ImportUnmanagedInstanceCmd] (API-Job-Executor-32:ctx-e05a48cd job-7209 ctx-c401e4e0) (logid:30cc0e5d) nic, 'Network adapter 2', goes on net, '6e3d7483-c583-4161-b338-2ebf726fe6d9'
2023-08-10 18:14:15,137 DEBUG [c.c.h.v.r.VmwareResource] (DirectAgent-68:ctx-63177ba8) (logid:30cc0e5d) Executing resource command GetUnmanagedInstancesCommand: [].
2023-08-10 18:14:15,145 DEBUG [c.c.h.v.m.HostMO] (DirectAgent-68:ctx-63177ba8 <IP_ADDRESS>, job-7209, cmd: GetUnmanagedInstancesCommand) (logid:30cc0e5d) find VM hypervisor name: i-2-855-VM on host
2023-08-10 18:14:15,145 INFO  [c.c.h.v.m.HostMO] (DirectAgent-68:ctx-63177ba8 <IP_ADDRESS>, job-7209, cmd: GetUnmanagedInstancesCommand) (logid:30cc0e5d) VM hypervisor name: i-2-855-VM not found in host cache
2023-08-10 18:14:15,146 DEBUG [c.c.h.v.m.HostMO] (DirectAgent-68:ctx-63177ba8 <IP_ADDRESS>, job-7209, cmd: GetUnmanagedInstancesCommand) (logid:30cc0e5d) load VM cache on host
2023-08-10 18:14:15,275 INFO  [c.c.h.v.r.VmwareResource] (DirectAgent-68:ctx-63177ba8 <IP_ADDRESS>, job-7209, cmd: GetUnmanagedInstancesCommand) (logid:30cc0e5d) i-2-855-VM Hard disk 1 20,971,520 KB 774-3001 20971520 ide
2023-08-10 18:14:15,286 ERROR [c.c.h.v.r.VmwareResource] (DirectAgent-68:ctx-63177ba8 <IP_ADDRESS>, job-7209, cmd: GetUnmanagedInstancesCommand) (logid:30cc0e5d) com.vmware.vim25.VirtualE1000 com.vmware.vim25.VirtualEthernetCardNetworkBackingInfo 02:00:48:1e:00:05
2023-08-10 18:14:15,302 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-68:ctx-63177ba8) (logid:30cc0e5d) Seq 14-1854920096523231189: Response Received:
2023-08-10 18:14:15,302 DEBUG [c.c.a.t.Request] (API-Job-Executor-32:ctx-e05a48cd job-7209 ctx-c401e4e0) (logid:30cc0e5d) Seq 14-1854920096523231189: Received:  { Ans: , MgmtId:<PHONE_NUMBER>1639, via: 14(<IP_ADDRESS>), Ver: v1, Flags: 10, { GetUnmanagedInstancesAnswer } }
2023-08-10 18:14:15,302 DEBUG [c.c.a.m.AgentManagerImpl] (API-Job-Executor-32:ctx-e05a48cd job-7209 ctx-c401e4e0) (logid:30cc0e5d) Details from executing class com.cloud.agent.api.GetUnmanagedInstancesCommand:
2023-08-10 18:14:15,323 DEBUG [o.a.c.v.UnmanagedVMsManagerImpl] (API-Job-Executor-32:ctx-e05a48cd job-7209 ctx-c401e4e0) (logid:30cc0e5d) Trying to import VM [{"name":"i-2-855-VM","internalCSName":"i-2-855-VM","powerState":"PowerOn","cpuCores":1,"cpuCoresPerSocket":1,"memory":512,"cpuSpeed":0,"operatingSystemId":"ubuntu64Guest","operatingSystem":"Ubuntu Linux (64-bit)","disks":[{"diskId":"774-3001","label":"Hard disk 1","capacity":21474836480,"fileBaseName":"ROOT-855","imagePath":"[15169ba7ad773fa794538a2c56f514e5] i-2-855-VM/ROOT-855.vmdk","controller":"ide","controllerUnit":0,"position":1,"chainInfo":"{\"diskDeviceBusName\":\"ide0:1\",\"diskChain\":[\"[15169ba7ad773fa794538a2c56f514e5] i-2-855-VM/ROOT-855.vmdk\",\"[15169ba7ad773fa794538a2c56f514e5] 9131f0ab947935578b4495625288ed0f/9131f0ab947935578b4495625288ed0f.vmdk\"]}","datastoreName":"15169ba7ad773fa794538a2c56f514e5","datastoreHost":"<IP_ADDRESS>","datastorePath":"/mnt/primary/vmware","datastoreType":"NFS"}],"nics":[{"nicId":"Network adapter 2","adapterType":"E1000","macAddress":"02:00:48:1e:00:05","network":"cloud.guest.302.200.1-vSwitch0","vlan":302,"pciSlot":"com.vmware.vim25.VirtualDevicePciBusSlotInfo@443641b5"}]}] with name ["i-2-855-VM"], in zone [Zone {"id": "2", "name": "zone-01", "uuid": "d37205b9-ee1f-409a-acfe-dc27f8c2c323"}], cluster [Cluster {id: "2", name: "<IP_ADDRESS>/floripa-01/cluster-01", uuid: "d169dc67-e57d-4376-83ac-2e26d4b5c8f9"}], and host [Host {"id":14,"name":"<IP_ADDRESS>","type":"Routing","uuid":"24d2fea6-a81a-4e7b-a658-c20cf1c40ccc"}], using template [Template {"format":"ISO","id":213,"uniqueName":"system-default-vm-import-dummy-template.iso"}], service offering [Service offering {"id":37,"name":"cus","uuid":"8975aefa-1ad2-4164-a628-a173e30da928"}.], disks map [{}], NICs map [{"Network adapter 2":345}] and details [{"cpuNumber":"1","memory":"512","cpuSpeed":"1000"}].
2023-08-10 18:14:15,325 DEBUG [c.c.u.AccountManagerImpl] (API-Job-Executor-32:ctx-e05a48cd job-7209 ctx-c401e4e0) (logid:30cc0e5d) Access granted to Account {"accountName":"admin","domainId":1,"id":2,"uuid":"9b06bb06-8b8f-11ed-92e4-525400b571c7"} to Service offering {"id":37,"name":"cus","uuid":"8975aefa-1ad2-4164-a628-a173e30da928"}. by AffinityGroupAccessChecker
2023-08-10 18:14:15,330 ERROR [o.a.c.v.UnmanagedVMsManagerImpl] (API-Job-Executor-32:ctx-e05a48cd job-7209 ctx-c401e4e0) (logid:30cc0e5d) Failed to import Unmanaged VM [i-2-855-VM] because the service offering [8975aefa-1ad2-4164-a628-a173e30da928] is not compatible due to [Invalid memory value, specify a value between 1024 and 69632].
2023-08-10 18:14:15,335 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-32:ctx-e05a48cd job-7209) (logid:30cc0e5d) Complete async job-7209, jobStatus: FAILED, resultCode: 530, result: org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":"530","errortext":"Failed to import Unmanaged VM [i-2-855-VM] because the service offering [8975aefa-1ad2-4164-a628-a173e30da928] is not compatible due to [Invalid memory value, specify a value between 1024 and 69632]."}
2023-08-10 18:14:15,337 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-32:ctx-e05a48cd job-7209) (logid:30cc0e5d) Publish async job-7209 complete on message bus
2023-08-10 18:14:15,337 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-32:ctx-e05a48cd job-7209) (logid:30cc0e5d) Wake up jobs related to job-7209
2023-08-10 18:14:15,337 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-32:ctx-e05a48cd job-7209) (logid:30cc0e5d) Update db status for job-7209
2023-08-10 18:14:15,338 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-32:ctx-e05a48cd job-7209) (logid:30cc0e5d) Wake up jobs joined with job-7209 and disjoin all subjobs created from job- 7209
2023-08-10 18:14:15,343 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-32:ctx-e05a48cd job-7209) (logid:30cc0e5d) Done executing org.apache.cloudstack.api.command.admin.vm.ImportUnmanagedInstanceCmd for job-7209
2023-08-10 18:14:15,343 INFO  [o.a.c.f.j.i.AsyncJobMonitor] (API-Job-Executor-32:ctx-e05a48cd job-7209) (logid:30cc0e5d) Remove job-7209 from job monitoring

Please tell me if you need more information.

@blueorangutan package

@kiranchavala a [SF] Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

Packaging result [SF]: :heavy_check_mark: el7 :heavy_check_mark: el8 :heavy_check_mark: el9 :heavy_check_mark: debian :heavy_check_mark: suse15. SL-JID 7143

@stephankruggg are you alright with the current state of the code?


Save NHSN Data for model fitting

We have an R script that pulls in NHSN data, but we need integrate it into the pipeline. This will enable us to work on https://github.com/CDCgov/pyrenew-hew/issues/23.

To possibly help, forecasttools-py does this, though likely not in the exact manner than is need for this repository.
So that the code is more findable, I am including some here:

Contents of pyproject toml (in [tool.poetry])

include = [
    { path = "forecasttools/location_table.parquet", format = "sdist" },
    { path = "forecasttools/location_table.parquet", format = "wheel" },
    { path = "forecasttools/example_flusight_submission.parquet", format = "sdist" },
    { path = "forecasttools/example_flusight_submission.parquet", format = "wheel" },
    { path = "forecasttools/example_flu_forecast_wo_dates.nc", format = "sdist" },
    { path = "forecasttools/example_flu_forecast_wo_dates.nc", format = "wheel" },
    { path = "forecasttools/example_flu_forecast_w_dates.nc", format = "sdist" },
    { path = "forecasttools/example_flu_forecast_w_dates.nc", format = "wheel" },
    { path = "forecasttools/nhsn_hosp_COVID.parquet", format = "sdist" },
    { path = "forecasttools/nhsn_hosp_COVID.parquet", format = "wheel" },
    { path = "forecasttools/nhsn_hosp_flu.parquet", format = "sdist" },
    { path = "forecasttools/nhsn_hosp_flu.parquet", format = "wheel" },
]

Contents of __init__ (parquets inside package)

# load example fitting data for COVID
# (NHSN, as of 2024-09-26)
nhsn_hosp_COVID_path = importlib.resources.files(__package__).joinpath(
    "nhsn_hosp_COVID.parquet"
)
nhsn_hosp_COVID = pl.read_parquet(nhsn_hosp_COVID_path)

# load example fitting data for influenza
# (NHSN, as of 2024-09-26)
nhsn_hosp_flu_path = importlib.resources.files(__package__).joinpath(
    "nhsn_hosp_flu.parquet"
)
nhsn_hosp_flu = pl.read_parquet(nhsn_hosp_flu_path)

Contents of data.py

def make_nshn_fitting_dataset(
    dataset: str,
    nhsn_dataset_path: str,
    file_save_path: str,
) -> None:
    """
    Create a polars dataset with columns date,
    state, and hosp and save a CSV. Can be used
    for COVID or influenza. This function DOES
    NOT use the API endpoint, and instead expects
    a CSV.

    dataset
        Name of the dataset to create. Either
        "COVID" or "flu".
    nhsn_dataset_path
        Path to the NHSN dataset (csv file).
    file_save_path
        The path for where to save the output file.
    """
    # check that dataset parameter is possible
    assert dataset in [
        "COVID",
        "flu",
    ], 'Dataset {dataset} must be one of "COVID", "flu"'
    # check the file path is valid
    check_file_save_path(file_save_path)
    # check that a data file exists
    if not os.path.exists(nhsn_dataset_path):
        raise FileNotFoundError(
            f"The file {nhsn_dataset_path} does not exist."
        )
    else:
        # check that the loaded CSV has the needed columns
        df_cols = pl.scan_csv(nhsn_dataset_path).columns
        required_cols = [
            "state",
            "date",
            "previous_day_admission_adult_covid_confirmed",
            "previous_day_admission_influenza_confirmed",
        ]
        if not set(required_cols).issubset(set(df_cols)):
            raise ValueError(
                f"NHSN dataset missing required columns: {set(required_cols) - set(df_cols)}"
            )
        # fully load and save NHSN dataframe
        df = pl.read_csv(nhsn_dataset_path)
        # change date formatting to ISO8601
        df = df.with_columns(df["date"].str.replace_all("/", "-"))
        # pathogen specific df saving
        if dataset == "COVID":
            df_covid = (
                df.select(
                    [
                        "state",
                        "date",
                        "previous_day_admission_adult_covid_confirmed",
                    ]
                )
                .rename(
                    {"previous_day_admission_adult_covid_confirmed": "hosp"}
                )
                .sort(["state", "date"])
            )
            df_covid.write_csv(file_save_path)
        if dataset == "flu":
            df_flu = (
                df.select(
                    [
                        "state",
                        "date",
                        "previous_day_admission_influenza_confirmed",
                    ]
                )
                .rename({"previous_day_admission_influenza_confirmed": "hosp"})
                .sort(["state", "date"])
            )
            df_flu.write_csv(file_save_path)
        print(f"The file {file_save_path} has been created.")

Thanks @AFg6K7h4fhy2! This issue is more focused on creating the file that is passed to the PyRenew model. As of now that is a json file.

Re: https://github.com/CDCgov/pyrenew-hew/issues/202#issuecomment-2532794880
Thank you for the additional context.

We may want to rework this to allow us to pull vintaged NHSN data using https://cmu-delphi.github.io/epidatr/


New Icon Design

Some icons that I created. If you like them, I can send over the zip.

Appreciate it, but not going to change the icon at this point in time.


Can't find ffmpeg library nor binary

I use Arch linux and have ffmpeg plus its dependencies installed properly vial pacman, however TASRecorder can't find it for some reason?
check the log here:
log.txt
I have hardware acceleration disabled, because it requires proprietary drivers, I don't have installed, but this has worked in the past.
Enabled mods:
CelesteTAS
TASRecorder
LowQualityGarbage (the map I wrote a TAS for)
BrokemaniaHelper
CommunalHelper
FlagelinesAndSuch
MaxHelpingHand
ShroomHelper
VivHelper
System info:
OS: Arch Linux x86_64
Kernel: Linux 6.12.6-zen1-1-zen
WM: Hyprland (Wayland)
CPU: AMD Ryzen 5 2600X (12) @ 3.60 GHz
GPU: AMD Radeon RX 6800 XT [Discrete]

Steam seems to be doing something weird causing binaries/libraries to not be found.
You can try putting a file called steam_appid.txt next to your Celeste.dll, with the contents 504230. That should prevent Steam from relaunching through itself and hopefully fix it.


Website not displaying properly

Just downloaded the zip file added new theme after activating it my site looks a mess - this is on a clean install https://prnt.sc/qjhm9u

You can't just download the repository -- the readme tells you where to download the theme zips from. Go there.

You can't just download the repository -- the readme tells you where to download the theme zips from. Go there.

This is the latest one: https://github.com/eddiesigner/liebling/releases/download/v.0.6.3/liebling.zip


Can I compile Android on macbook (M1)?

Hello Can this project use macbook M1 to edit Android app?

Yes, it works on M1, but I needed to give write permissions on the /android folder with the command:
chmod +x gradlew
then I did a ./gradlew clean and was able to compile.


[FEATURE REQUEST] Readarr Integration

Would be great if Readarr Integration could be included. Thanks!

Not a bad idea, at the moment, I would like to focus on other types of media, but this is something that could be looked at one day. :)

To be honest, since you’ve added Lidarr support, the only thing I see missing is Books & Audiobooks, which would make this an all-in-one solution.

Movies
TV Shows
Music
Books

There also isn’t a single Discord bot that’s been created that can do requesting for Books/Audiobooks, or even any kind of platform in general that integrates with Readarr for requesting at all.
What other types of media are you referring to?

I meant updating and improving on the current media types (Movies, TV and Music).
You have a very good point, I will have to think about this.
For the moment I want to clean some other things up and check my list of improvements to work out my next step/s, but this will definitely be added to my feature list.

I completely understand, and appreciate that you even took this project on and maintained it to begin with, as it was in need of some TLC before.
I have been looking for a solution for a long time now, and would be really looking forward to this (I'm sure others would as well)
It'd be much appreciated if you could tag or message me when you do add the feature, so I can be notified, if that'd be possible?

Of course, I will update here if/when such a feature gets added.
If this feature also gets brought up by others, or they find their way to this FR... that would help guide me to doing this sooner :)

Thank You!
I can definitely guide you to some other FR threads and comments for the original repo of Requestrr and another known request bot, maybe you you may know of... Doplarr where it's been requested a few times if that helps  😁

@thomst08 Would you be open to letting someone else (perhaps me) have a crack at it if you're busy or unsure?

Hey @M-Davies,
Ofcourse, pull requests are always welcome, give it a go, if your happy with the result, make a pull request, we can review it and merge it into main.
No problems there :)

Actually on 2nd thought after looking at this, my C# knowledge is defintely lacking and I probably won't finish it anytime soon. If someone else wants to have a crack go for it

Just wanted to chime in and say that a readarr integration would be an amazing feature for requestrr. Thanks to all of the devs that have worked on this project, its an amazing piece of software.

Hello everyone,
Would someone be so kind to paste a few MRs from the previous integration steps or explain what is required to make this happen?
Thank you.

Hey @TGM,
So its a little tricky to list everything, but here is a rough list of things that need to be done.

Setup web app to have a eBook page

Setup the page and components
Setup Redux hooks for fetching and saving the settings

Update the settings file

Update settings updater to update old settings files to the new version
Update the controller to allow for the receiving and sending eBook settings
Update the to settings service to correctly update the settings data to the new version

Setup interfaces to handle the eBook requests for searching and fetching
Setup services using new interface to fetch and talk to the correct API's of a given program to fetch and search as required but the function (Eg, setup functions to talk to Readarr)
Setup startup file to setup the new service
Setup the notification side of the new service
Setup the automation of checking for notifications for eBooks
Setup slash commands text file for new functions to handle requests
Update the slash command builder to correctly build and remove the functions when required and when not

Here is the PR for Lidarr intergration, this gives you a rough idea of whats involved.


Possible it decrease minimum python version?

I've noticed that the pinned python version is somewhat specific. This prevented me from deploying this code as a dependency to a Serverless function in vercel.
Vercel has a runtime for "3.9" but they do not specify the bugfix release versions. Using "^3.9.0" instead of "^3.9.16" might resolve this.

@theFestest Thanks! I fixed Python version to "^3.9".


Revert "Use ckb_printf instead printf"

Reverts nervosnetwork/godwoken-scripts#63

Implement function in header file cause problems when we compile multiple .c files into a single binary. So we decide to revert this change, and wait for upstream to implement ckb_printf
https://github.com/nervosnetwork/ckb-c-stdlib/pull/31


Web Index template no longer functional

Followed these instructions exactly: https://github.com/fuse-box/fuse-box/blob/master/docs/webIndex.md

(node:42913) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'original' of undefined
at fileContents.replace (/Users/seph-play/Code/rCommunity/web-app/node_modules/fuse-box/webIndex/webIndex.js:85:62)
at String.replace ()
at Object.generate (/Users/seph-play/Code/rCommunity/web-app/node_modules/fuse-box/webIndex/webIndex.js:74:41)
at ctx.ict.on (/Users/seph-play/Code/rCommunity/web-app/node_modules/fuse-box/webIndex/webIndex.js:115:50)
at fns.map.fn (/Users/seph-play/Code/rCommunity/web-app/node_modules/fuse-box/interceptor/interceptor.js:48:49)
at Array.map ()
at Object.sync (/Users/seph-play/Code/rCommunity/web-app/node_modules/fuse-box/interceptor/interceptor.js:48:39)
at Object.exports.createBuild (/Users/seph-play/Code/rCommunity/web-app/node_modules/fuse-box/core/build.js:52:13)
(node:42913) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:42913) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

                else {
                    ctx.log.warn(`Unable to resolve ${result.original}`);
                    return '';
                }

The error message assumes something it shouldn't.  But now I get the error is a bad path.

Commenting out this is what caused the error
<!-- <link rel="icon" href="$import('assets/favicon.png')" /> -->

@SassNinja could you take a look at this functionality? It should be a few lines of code.

@SassNinja @SephReed Have you found any solution for this problem? It seems that I'm also facing this exact problem.


strokeDash not working in svg mode

In modes/svg/base.js, I believe the change would be something like:
stroke: function(color, width, cap, join, dash){
		var element = this.element;
		element.setAttribute('stroke-width', (width != null) ? width : 1);
		element.setAttribute('stroke-linecap', (cap != null) ? cap : 'round');
		element.setAttribute('stroke-linejoin', (join != null) ? join : 'round');
        if (dash) {
            element.setAttribute('stroke-dasharray', dash.join(','));
        }
		this._setColor('stroke', color);
		return this;
	}

Seems like stroke-dasharray still isn't being set in the latest master. Anything I can do to help get it in?

Sounds like this is fixed then?


proposal: is.allNot/is.none interface

is.any and is.all are great, but I often find myself needing to make  sure that an array does not contain any of something:
is.allNot.string(false, 42, new Date()); // true
is.allNot.string(false, 42, 'today'); // false

If it would be accepted I'd be happy to the code and issue a pull request.

That's exact negation of is.any. You can always use !is.any(...) for this purpose

@ironmaniiith yes, but one of the big advantages if is.js is that it allows clear more human-friendly syntax.
You can say !is.string(), but the library right pushes you to the much clearer is.not.string(). Having to write !is.any() is a failure of that model that could be very easily fixed by adding a human-friendly interface.

True. I'm not saying we should not have this functionality. Just told how it can be accomplished for now.

If is.js is going to have not (as it does), it should work with any and all. The syntax should be either is.not.any, is.any.not, or both, but definitely not is.anyNot.


Need help with removing specific amounts of Items

I have this code here for a crafting system where I am trying to get a dictionary of required items and a dictionary of items the player has and then doing some code statement that removes specific amount of items in players inventory, instead I have this issue where it removes the count of the items from all items stack instead of only removing by how much needs to be removed as in removing exactly only 10 amount of type "wheat" when the player has 2x100 stacks of "wheat" item, and the other issues is that the inventory doesn't get updated with the new item amounts unless I click on one of those items.
func CheckForIngredients():
	var Ingredients: Dictionary = Recipes[SelectedRecipe]["Ingredients"]
	var Player = get_tree().get_nodes_in_group("Player")[0]
	var PlayerItems = Player.GUIMan.GetGUIName("PlayerGUI").GUI["Inventory"].inventory.items
	var PlayerInventory = Player.GUIMan.GetGUIName("PlayerGUI").GUI["Inventory"].inventory

	var MatchReq: bool = false #If the Player has enough items for the required crafting item

	for Items in PlayerItems:
		for IngItems in Ingredients.keys():
			var IngName = load(IngItems).name

			if Items.item_type.name == IngName:
				if Items.count >= Ingredients[IngItems]:
					Items.count -= Ingredients[IngItems]

Because I want to implement my own crafting system which is different. The difference I have is that mine is planned to spawn the items at a specific spot instead of giving the items directly to the player and I have a terminal like interface for interacting with the crafting stations so in other words I was trying to implement a slightly more immersive way of crafting items since my ore refinery machine is made similar.
Alright I will try the consume_items function and see if it does what I need, thanks for the reply.

Hmm. That method is part of the Inventory class, so if they're placed in the world it can't be used... but I see you have an inventory, which hints that ItemConversions should, in fact, be used like in the example? I'm confused about how your things are actually implemented.
Anyway, docs description for consume_items:

Consumes items matching types and patterns inside item_type_counts (first param. note: keys are item types, values are counts)
Returns all stacks consumed.
Set check_only (second param) to not actually consume items - this is useful to highlight stacks that would be affected, or show which items are not of sufficient amount.
Note: this method modifies the item_type_counts (first param) dictionary. The resulting values will match the types/patterns that could not be fully fulfilled.

Docs can be accessed by pressing F1 and searching the class, if the plugin was enabled in Project Settings.

Ah so it just needs a dictionary of loaded resource types of type ItemStacks and it's value the amount it should consume, now i get it. The description for consume_items was not clear enough to be honest so I didn't understand at first what kind of dictionary it exactly needs for this function to work. I changed my code now and it is working as I wanted it to do in the first place, thanks.
	var Ingredients: Dictionary = Recipes[SelectedRecipe]["Ingredients"]
	var Player = get_tree().get_nodes_in_group("Player")[0]
	var PlayerItems = Player.GUIMan.GetGUIName("PlayerGUI").GUI["Inventory"].inventory.items
	var PlayerInventory = Player.GUIMan.GetGUIName("PlayerGUI").GUI["Inventory"].inventory

	var MatchReq: bool = false #If the Player has enough items for the required crafting item

	var NeoDict = {}

	for Items in Ingredients.keys():
		NeoDict[load(Items)]= Ingredients[Items]

	PlayerInventory.consume_items(NeoDict)


Error "this.tree.readText is not a function" when run command "ng add  @angular/pwa"

Which @angular/* package(s) are the source of the bug?
service-worker
Is this a regression?
No
Description

Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in (run ng version)
_                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/

Angular CLI: 9.1.15
Node: 14.18.1
OS: win32 x64

Angular: 9.1.13
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
@angular/fire                     6.1.4
@angular/localize                 9.1.12
@angular/material                 9.2.4
@ngtools/webpack                  9.1.15
@schematics/angular               9.1.15
@schematics/update                0.901.15
rxjs                              6.6.7
typescript                        3.8.3
webpack                           4.42.0

Anything else?
No response

Angular version 9 is no longer supported. Please see https://angular.io/guide/releases#support-policy-and-schedule for more information.
That said, as a workaround for the above you can provide the version specifier as part of the package name.
ng add<EMAIL_ADDRESS>


Figure out best way to debug cv

It's hard to see if your vision processing is working if you can't see the output. The Raspberry Pi currently is accessed through SSH so that a GUI does not use excess RAM.
Possible Solutions:

Turn on the GUI just during debugging and connect robot to monitor or through VNC
Stream from the Raspberry Pi to a laptop somehow (web server?) during debugging

As of right now, this will be done by writing the OpenCV on a computer using a webcam and then testing it there. After that, it will be uploaded to a Raspberry Pi to test the code logic past cooking the image.


#38: Preparing LocalDocker for testing

as per #38:
This PR:

Added primary ctor to LocalDocker
Added AssertRequest, a mock HttpClient useful for testing requests
Fixed typo in interface Docker
Reduces the scope of the puzzle of "create a unix socket server" to just the testing of UnixHttpClient
Leaves a puzzle to advance the design of AssertRequest

Pull Request Test Coverage Report for Build 59

3 of 3 (100.0%) changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+1.3%) to 72.727%

Totals

Change from base Build 58:
1.3%

Covered Lines:
32

Relevant Lines:
44

💛  - Coveralls

Pull Request Test Coverage Report for Build 59

3 of 3 (100.0%) changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+1.3%) to 72.727%

Totals

Change from base Build 58:
1.3%

Covered Lines:
32

Relevant Lines:
44

💛  - Coveralls

@amihaiemil please check now

@rultor merge it pls

@rultor merge it pls

@amihaiemil OK, I'll try to merge now. You can check the progress of the merge here

@rultor merge it pls

@amihaiemil Done! FYI, the full log is here (took me 2min)


plotting for non-parametric models

[ ] enable plotting of either samples of indifference curves, but also 95%, 50%, point estimates of indifference points
[x] enable a grid plot of all inferred indifference curves
[ ] enable univariate plotting of AUC estimates

posterior distributions of AUC now included in multi-panel figure... from work done on #180


Handled error reported as unhandled

Description
Handled error reported as unhandled.
Issue
I have a very odd case where an exception thrown inside an async function (and handled somewhere else) is reported as unhandled by bugsnag on IOS. The application does not crash, and the error is definitely handled.
Also, can't make this happen on Android at all.
Environment
Library versions:
react-native                      0.59.9
bugsnag-react-native              2.21.1   2.21.1

iOS/Android version(s): IOS 12.3

simulator/emulator or physical device?: Physical device

debug mode or production?: Production

[ ] (iOS only) [BugsnagReactNative start] is present in the
application:didFinishLaunchingWithOptions: method in your AppDelegate
class? Yes

Sample code.

export async function sample(item, a=true, b=true){

    try{
        some code...
    }
    catch(err){
        let message = err.message;
        throw new Error(message);
    }

}

// later on...

let someFun = async () => {

    let tasks = pending.filter(item => item.priority).map(item => {
        try{
          return sample(item, true, true);
        }
        catch{
          errors++;
          return null;
        }
    });

    for(let t of tasks){
      try{
        if(t){
          await t;
        }
      }
      catch(err){
        errors++;
      }
    }
}

Error is reported as thrown at throw new Error(message);

@cristianoccazinsp can you please write in to<EMAIL_ADDRESS>with this?
We would like to be able to look at this in your account and discuss your example in more detail.

Will do, thanks.

Closing for now as we've been unable to reproduce. We'll re-open this if a reproduction example can be found.


x86_64-pc-windows-msvc target not producing PDB for large project

Problem
I have a large project that I'm building on Windows for the x86_64-pc-windows-msvc target that I am expecting to have a PDB produced for, but am not seeing that in either the target\release\deps folder or the target\release folder. I have created a separate smaller test project that does not have this issue.
Steps
I'm honestly not sure what steps are necessary. For what it's worth, this is my large project's Cargo.toml (dependencies removed to reduce clutter):
[package]
name = "large-app"
version = "0.1.0"
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[[bin]]
name = "large-app"
path = "src/main.rs"

[profile.release]
debug = true

# turn off optimizations for build scripts and proc macros
[profile.release.build-override]
opt-level = 0

[dependencies]
...

And this is the Cargo.toml from my small, fresh application:
[package]
name = "tester"
version = "0.1.0"
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]

[profile.release]
debug = true

[profile.release.build-override]
opt-level = 0

Notes
Output of cargo version: cargo 1.42.0 (86334295e 2020-01-31)
rustc version: rustc 1.42.0 (b8cedc004 2020-03-09)
I'm not sure what else would be useful to see here. The same thing is occurring with nightly cargo 1.44.0-nightly (74e3a7d5b 2020-04-13).

You might want to run cargo with the -v flag and make sure it is passing -C debuginfo=2 to rustc.
Another thing to check is to see if it is passing debug to the linker.  On nightly, run: cargo +nightly rustc --bin mybin -- -Zprint-link-args and make sure it is passing /DEBUG to link.exe.

I do see -C debuginfo=2 being passed in to rustc for my binary. Running the nightly cargo command I do see /DEBUG in the set of options passed in to link.exe.

One behavior I've seen in the past is that the PDB file is created asynchronously from link.exe, not synchronously during compilation. With Cargo/rustup though all subprocesses are killed after Cargo returns, primarily to thwart just this since it affects sequential/parallel compilations.
Unfortunately I don't know of a great way to test this though. If you can build from source you can comment out this code and then make sure to run Cargo directly instead of Cargo-through-rustup, and see if that fixes the issue for you

er no scratch that, I forget that we changed the logic at some point that successful builds don't kill anything, so disregard me!

Oh whoa, so I went back to double check since you mentioned it's created by an async process and it looks like it might be named wrong. In my target\release\deps I have my binary large-app.exe and also a pdb: large_app.pdb.
So I went back to another test app with this Cargo.toml:
[package]
name = "tester-test"
version = "0.1.0"
authors = ["Shane Lillie<EMAIL_ADDRESS>edition = "2018"

[[bin]]
name = "tester-test"
path = "src/main.rs"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]

[profile.release]
debug = true

[profile.release.build-override]
opt-level = 0

and low and behold, I have target\release\deps\tester_test.pdb and no PDB in target\release. It seems like whatever is causing that renaming is interfering with cargo being able to copy it to the final target dir.

I may also be misremembering, I'm not certain that production of the pdb happens asynchronously myself. If it does, though, then Cargo might miss the production to rename it, since it may be produced after Cargo finishes.

Ah ok looks like you're right in that case, I think this is probably a bug in cargo's handling of - vs _ somewhere!

Posted a fix at #8123.


Em's first comments

@maximilien I didn't do in-depth changes, but left some comments for you. LMK what you think and I'm happy to take a deeper edit. I set off my comments with <!--EM:

/approve
/lgtm


Simple test not working

Hi, I'm trying to use this library but for me it doesnt seem to be working, I have suspicions that it is because of me installing the gpu variant, but not fully because the last step cudnn is installed does not have an installer on windows. Here is the error I get when running it:
Say something...
Process Process-1:
Traceback (most recent call last):
File "C:\Users\rober\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\RealtimeSTT\audio_recorder.py", line 578, in _transcription_worker
transcription = " ".join(seg.text for seg in segments)
File "C:\Users\rober\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\RealtimeSTT\audio_recorder.py", line 578, in
transcription = " ".join(seg.text for seg in segments)
File "C:\Users\rober\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\faster_whisper\transcribe.py", line 508, in generate_segments
encoder_output = self.encode(segment)
File "C:\Users\rober\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\faster_whisper\transcribe.py", line 767, in encode
return self.model.encode(features, to_cpu=to_cpu)
RuntimeError: Library cublas64_12.dll is not found or cannot be loaded
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\multiprocessing\process.py", line 314, in _bootstrap
self.run()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\multiprocessing\process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\rober\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\RealtimeSTT\audio_recorder.py", line 581, in _transcription_worker
except faster_whisper.WhisperError as e:
AttributeError: module 'faster_whisper' has no attribute 'WhisperError'
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\multiprocessing\connection.py", line 312, in _recv_bytes
nread, err = ov.GetOverlappedResult(True)
BrokenPipeError: [WinError 109] The pipe has been ended
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\Users\rober\RealtimeSTT\tests\realtimestt_test.py", line 6, in
while (True): print(recorder.text(), end=" ", flush=True)
File "C:\Users\rober\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\RealtimeSTT\audio_recorder.py", line 825, in text
return self.transcribe()
File "C:\Users\rober\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\RealtimeSTT\audio_recorder.py", line 777, in transcribe
status, result = self.parent_transcription_pipe.recv()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\multiprocessing\connection.py", line 250, in recv
buf = self._recv_bytes()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\multiprocessing\connection.py", line 321, in _recv_bytes
raise EOFError
EOFError

See if you can find the cublas64_11.dll, create a copy in the same folder and name it cublas64_12.dll.

Btw you can find a cuDNN Installer for Windows here

Thank you for the quick response, this worked!


adding a timelock in a transaction is getting ignored

After sender a transaction with a timelock, the transaction is processed as a transaction without timelock.

Problem exists only for Multisig and Internal transactions, for single transactions this was already resolved by someone else in the past it seems.


Handling of more selectors than html and root

First of all, thanks for this plugin as it works very well.
However, I had a problem when I modified the selector in which the custom-properties are declared.
I moved from
:root {...} to :root, ::backdrop {...}
Then it stopped working because the plugin is searching for a /^:root$/i selector.
Is there any particular reason for restricting the use of root alone ?

Also, as this plugin appears to not be maintained anymore, do you have replacement ideas ? Couldn't find something similar :(

@AlexisCharp as you noticed this plugin is no longer maintained since the spec died. The closest one would be @csstools/postcss-relative-color-syntax for which we wrote an article not so long ago!
Hope that's helpful


windows10 auto save lf --> crlf

when I save as beautify ,and the lf change to crlf,
i dont waht this

Please follow the issue template provided. More specifically, adding a link to the required debug.md Gist which includes debugging information that answers our most commonly asked questions.
Thank you.


Change SRS to be called CRS

When using KZG, we referred to the reference string as a SRS, but now that we are using IPA, it should be renamed to CRS

This has been renamed as of: https://github.com/crate-crypto/rust-verkle/blob/9a76cb4a11ceff0610e5b1f3363fd22597d8f4ab/verkle-trie/src/constants.rs#L22


Graphics stutter in vkquake after vulkansdk-macos-<IP_ADDRESS>

Redirected here from the lunarg issue site.
Found that vkquake https://github.com/Novum/vkQuake seems to have issues if a vulkansdk after <IP_ADDRESS> is used.  I raised an issue with vkquake developers first to see if its a known issue and vkquake2 developer suggested a few issues that they worked around in the ticket I raised https://github.com/Novum/vkQuake/issues/192
The game basically stutters with lots of small pauses in the menu, console and game.  vkquake uses SDL so it could be some issue with SDL but would be good to understand what happened after <IP_ADDRESS> that changed the behaviour.
Happy to provide any further information.

would be good to understand what happened after <IP_ADDRESS> that changed the behaviour.

The version of MoltenVK that appeared in Vulkan SDK 1.1.92 was released almost a year ago...so it's safe to say a lot has changed.
Is there further debugging info you can provide? Are you building directly from the instructions in the vkQuake repo link you provide above (ie. using brew versions and the vkQuake repo)?

I am using the instructions with Homebrew, as soon as you use <IP_ADDRESS> the graphics stutter so in just one release cycle something changed to cause it to stutter.  I have been trying to find more debugging information but unable to find anything useful.
Any advice what the basics are to debug or point to a guide?  vkquake2 developer suggested kondrak/vkQuake2@d4c3a25 to fix the issue but trying a add few things inside the SDL code hasnt helped.

Should add - I first tried the homebrew method and found it stuttered, due to the comment from the vkquake2 author I instead linked to the vulkansdk version at <IP_ADDRESS> and it worked but at <IP_ADDRESS> it didnt so it seemed the same issue as vkquake2 author suggested.  This is using macOS Mojave.


Add linea sepolia

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

Project coverage is 17.74%. Comparing base (328c02c) to head (0b7dfe1).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #885      +/-   ##
==========================================
+ Coverage   16.86%   17.74%   +0.87%
==========================================
  Files          39       41       +2
  Lines        4470     4564      +94
==========================================
+ Hits          754      810      +56
- Misses       3635     3666      +31
- Partials       81       88       +7

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

There are some linting and e2e errors but they don't have much info in them and seem unrelated/flakey.


Wrong order for entries in data/i18n/en/en.toml

This is a Bug Report

Problem:
The file data/i18n/en/en.toml in the website source code contains localization strings, that should be sorted.
The following keys are at the end of the file, but should actually appear much earlier so that they sort correctly:

layout_docs_glossary_architecture_name
layout_docs_glossary_architecture_description
layout_docs_glossary_community_name
layout_docs_glossary_community_description
layout_docs_glossary_core-object_name
layout_docs_glossary_core-object_description
layout_docs_glossary_extension_name
layout_docs_glossary_extension_description
layout_docs_glossary_fundamental_name
layout_docs_glossary_fundamental_description
layout_docs_glossary_networking_name
layout_docs_glossary_networking_description
layout_docs_glossary_operation_name
layout_docs_glossary_operation_description
layout_docs_glossary_security_name
layout_docs_glossary_security_description
layout_docs_glossary_storage_name
layout_docs_glossary_storage_description
layout_docs_glossary_tool_name
layout_docs_glossary_tool_description
layout_docs_glossary_user-type_name
layout_docs_glossary_user-type_description
layout_docs_glossary_workload_name
layout_docs_glossary_workload_description

Proposed Solution:
Move those keys

Additional Information:
/language en
/kind cleanup
/good-first-issue

Hello @sftim,
am a first time contributor and I would like to help on this bug report...
however, I don't have any idea how/where to start with!
kindly advise.

@rgunaseknokia
clone the kubernetes/website repository
do the required change and push to origin

/assign

/assign

@tamilselvan1102 - Thanks for your comments.
I have already cloned the Kubernetes/website repo to my laptop.
And, I have forked the kubernetes/website to my GitHub account.

@sftim & @tamilselvan1102 - could you please let me know on the following:

should i have to create a new branch in my local repo and start with the changes to the data/i18n/en/en.toml ? what is the best practice?
I am not sure where these lines should be moved within the file to appear much earlier ?

Kindly advise

Just wanted to know where this file is located?

Hi @sftim I just sorted the entries in the English TOML file and submitted a pull request #38287. However, I noticed there are more TOML files that need sorting. Should I open a new issue to address those?
I would also like to hear your thoughts on creating a Github action to reject commits that break the sort requirement for these file.

/unassign

hello @sftim
i had send PR for this issue.

/assign

/assign

/assign

/assign

@sftim hi is this open for contribution?
this is my  first pr and i would be grateful if you could clarify where must i move these keys in the code

/assign

@debdeepsanyal
work on issue https://github.com/kubernetes/website/issues/38459 raised by @QuinceyJames .
That will fix this issue as well.

@debdeepsanyal
follow the instruction https://github.com/kubernetes/website/pull/38555#issuecomment-1364567870 shared by @stormqueen1990

Anyone is welcome to work on this issue. We have a policy of no cookie licking in SIG Docs - see https://www.redhat.com/en/blog/dont-lick-cookie. What that means is that even if one contributor starts work on an issue, another contributor can either:

offer to help (this is ideal)
open their own PR that solves the same problem, so long as it is their own work or credited appropriately

hey is this still open?

This issue is open, according to GitHub (you can see near the top of the page, just under the issue title).

@sftm  No problem


Update freeze_graph.py

If there are spaces in multiple parameters, a parameter is not recognized.
ex) "hypothesis, cost" (X)  => "hypothesis,cost" (O)
So   initializer_nodes.split(",")   =>  initializer_nodes.replace(' ','').split(",")
variable_names_whitelist.split(",") => variable_names_whitelist.replace(' ','').split(",")
output_node_names.split(",") => output_node_names.replace(' ','').split(",")

Can one of the admins verify this patch?

I signed it!
Thank you.
2017-12-01 9:00 GMT+09:00 googlebot<EMAIL_ADDRESS>
Thanks for your pull request. It looks like this may be your first
contribution to a Google open source project. Before we can look at your
pull request, you'll need to sign a Contributor License Agreement (CLA).
📝 Please visit https://cla.developers.google.com/
https://cla.developers.google.com/ to sign.
Once you've signed, please reply here (e.g. I signed it!) and we'll
verify. Thanks.

If you've already signed a CLA, it's possible we don't have your
GitHub username or you're using a different email address. Check your
existing CLA data https://cla.developers.google.com/clas and verify
that your email is set on your git commits
https://help.github.com/articles/setting-your-email-in-git/.
If your company signed a CLA, they designated a Point of Contact who
decides which employees are authorized to participate. You may need to
contact the Point of Contact for your company and ask to be added to the
group of authorized contributors. If you don't know who your Point of
Contact is, direct the project maintainer to go/cla#troubleshoot.
In order to pass this check, please resolve this problem and have
the pull request author add another comment and the bot will run again.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/pull/15017#issuecomment-348359866,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AE6FtI8e0I9XpGgqwM62YS0jL0DRypmyks5s70GsgaJpZM4QxqkE
.

@petewarden WDYT?


bug(windows): advanced settings not showing in Settings screen

Describe the bug
When the app first opens, the Settings tab doesn't show the settings from the file
To Reproduce

Make sure C:/Users/$USER/AppData/Local/dev.firezone.client/config/advanced_settings.json has something in it
Open the app

Expected behavior
Expected the settings to show up in the settings tab
Screenshots / Logs

advanced_settings.json is
{
  "auth_base_url": "https://app.firez.one/",
  "api_url": "wss://api.firez.one/",
  "log_filter": "firezone_windows_client=debug,firezone_tunnel=debug,connlib_shared=debug,connlib_client_shared=debug,webrtc=error,warn"
}

Platform (please complete the following information):

Firezone Version fb61b0941db
OS: Windows 11

Additional context
Will do a bisect real quick. It's probably just a small regression in the UI polish PR

Yeah git bisect says it's the UI polish PR 086f7a85c6f5a71, whoopsy
I'll check this out and ping Jamil if I can't figure out the frontend stuff

Oh wait I may have forgot to run pnpm build-debug

Yep PEBKAC


Move to C++23

Glaze 3.0.0 is starting the move to C++23 and I think this library should do too.
Roadmap:

[x] Update tests to use std::string::contains
[ ] Drop <tl/expected> use <expected> instead

[ ] Requires LLVM 19 for compatibility with libstdc++ (https://github.com/llvm/llvm-project/pull/87998)

[x] Finally use ranges::to

Upstream:

flagpp

[x] Adopt std::to_underlying

poolparty

[x] Use std::move_only_function

rebind

[x] Make use of P2647R1 [Partially]

<expected> support will be implemented in a later commit once LLVM19 is released (~ September)

I've reverted some changes that introduced P0847R7 and P2647R1 as to not interfere with the upcoming MacOS support.
P1048R1, P1682R3 and P1679R3 are supported on all 4 platforms. Support for std::move_only_function is sadly lacking in libc++ and therefore on MacOS as well, however, we can use function2 for these targets.


receive data from CSSTR

External Patient registration app:
https://github.com/Julian-Theis/CSSTR

We should contact them. Do you have a DevPost link?

https://devpost.com/software/corona-self-service-test-registration-csstr

Outdated because of fusion with CSSTR


[Figma File Search] Add OAuth support

Extension
https://www.raycast.com/michaelschultz/figma-files-raycast-extension
Description
Right now, the Figma extension requires a personal access token and team IDs. It would be great to add OAuth support, so that you can get started on the extension with just a few clicks 🙂
We've recently released a set of OAuth utils to make that task easier. The most complicated bit would be to create the Figma OAuth app and deploy a PKCE proxy to hide the client secret.
Who will benefit from this feature?
All Figma users of the extension.
Anything else?
I can help in that process, especially on the PKCE proxy deployment as we require them to be hosted on Raycast's end.

This would certainly make the extension more accessible to folks. @michaelwschultz if you don't mind, can I take this up?

@GLaDO8 that would be awesome! I've branches and choosing your default app on my todo list. Should have them done soon.

@GLaDO8 FYI, I went ahead and deployed a PKCE proxy for you that's required to add OAuth support for Figma. You can use the following code in the extension in a dedicated file (e.g oauth.ts) for that:
import { OAuth, getPreferenceValues } from "@raycast/api";
import { OAuthService } from "@raycast/utils";

const client = new OAuth.PKCEClient({
  redirectMethod: OAuth.RedirectMethod.Web,
  providerName: "Figma",
  providerIcon: "command-icon.png",
  description: "Connect your Figma account",
});

const { PERSONAL_ACCESS_TOKEN } = getPreferenceValues<Preferences>();

export const figma = new OAuthService({
  client,
  clientId: "YOUR_CLIENT_ID",
  authorizeUrl: "https://figma.oauth.raycast.com/authorize",
  tokenUrl: "https://figma.oauth.raycast.com/token",
  refreshTokenUrl: "https://figma.oauth.raycast.com/refresh-token",
  scope: "files:read",
  personalAccessToken: PERSONAL_ACCESS_TOKEN,
});

Then, you can use withAccessToken for the two extension commands. Finally, you can use getAccessToken in the different API calls.
@michaelwschultz since you're the author of the extension, I'd need a client ID and a client secret after creating an app in Figma. Please, send me the client secret in the Slack community and the client ID in this issue 🙂
@GLaDO8 to avoid existing users to be logged out, it'd be better to keep support for personal access tokens. There are different headers to send depending on the type of token so you'll need some logic related to that. I quickly tested it out and this should be enough:
import { getPreferenceValues, showToast, Toast, LocalStorage, environment } from "@raycast/api";
import fetch from "node-fetch";
import { ProjectFiles, TeamFiles, TeamProjects } from "../types";
import { getAccessToken } from "@raycast/utils";

async function fetchTeamProjects(): Promise<TeamProjects[]> {
  const { PERSONAL_ACCESS_TOKEN, TEAM_ID } = getPreferenceValues();

  const { token, type } = getAccessToken();
  const teamID: string[] = TEAM_ID.split(",").map((team: string) => team.toString().trim());
  const teams = teamID.map(async (team) => {
    try {
      const response = await fetch(`https://api.figma.com/v1/teams/${team}/projects`, {
        method: "GET",
        headers: {
          "Content-Type": "application/json",
          ...(type === "oauth" ? { Authorization: `Bearer ${token}` } : { "X-Figma-Token": PERSONAL_ACCESS_TOKEN }),
        },
      });
      ...

Let me know if you need any more help with this 😊

No problem. App has been created. Here's the client ID - dkY6v4uzFHoH4RaK7mB7Uw

@GLaDO8 Any updates on this one? 🙂

That's just awesome @GLaDO8 🔥

Hey @thomaslombart, the authorisation URL doesn't seem to be working for some reason. Anything I might be doing wrong? I'm using Michael's client ID and the OAuth setup seems fine.

@GLaDO8 We changed our configuration lately. I'll soon get back to you with new URLs to use 🙂

Also, I've updated the auth url. @thomaslombart will still have to make a quick change I believe but that should be it on my end. cc @GLaDO8

@GLaDO8 Here are the new URLs you can use:

authorizeURL: https://oauth.raycast.com/v1/authorize/_ege2-Xu_rzO6XIRwPi7Mnne6GARpdRe1I1IAf6ralbKRJjaByWNHIEK4e5ESizgQ_Z2B526iMt1KdooGAMIrAjVvIHgnhTcQziAP_CgEkzYzAHUJRPw
tokenURL: https://oauth.raycast.com/v1/token/qTlHR2nhUt2e07Ynlbw-T4ALSoDPrGnUZU4z1VsH-scRq-We8cI9RfPKJb9UfEau0bCVYIc0qtW5fOVJ0rtUwDN6KSg5d8XgR_wRofMYARLRzAWhTb5mFsXTdFZl3GPQfA
refreshTokenURL: https://oauth.raycast.com/v1/refresh-token/HoH9ux_TZ_15D9D2btgNZHFDsQtYmSFRQKBCeI4XodDg6svGnR7l7hQaSAV9XY95lD9YzMTPcucjZyHCzoGOHRerqbWB1WAJjpjEDPpwkM5Jg2YCIF-fUcv7VFBepLxT5M9iv

Thank you!


[AKS] Add 'aks nodepool snapshot update' command

Updates tags on a nodepool snapshot matching updated behavior!
Related command

aks nodepool snapshot update
Description

aks nodepool snapshot patch was added to API so this change was added to allow usage of the api
Testing Guide

ran the aks tests
History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature

This checklist is used to make sure that common guidelines for a pull request are followed.

[x] The PR title and description has followed the guideline in Submitting Pull Requests.

[x] I adhere to the Command Guidelines.

[x] I adhere to the Error Handling Guidelines.

Thank you for your contribution! We will review the pull request and get back to you soon.

Because of tests failing I opened a new PR https://github.com/Azure/azure-cli/pull/26790