Getting Node low level errors running vitest

Describe the bug
So I am testing migration of my project from jest to vitest.
But when I run vitest run through npm run test, I keep getting Node errors such as follows:
node(39994,0x7000083d9000) malloc: *** error for object 0x600002c44cd0: pointer being freed was not allocated
node(39994,0x700006fca000) malloc: *** error for object 0x600002c44cd0: pointer being freed was not allocated
node(39994,0x7000083d9000) malloc: *** set a breakpoint in malloc_error_break to debug
node(39994,0x700006fca000) malloc: *** set a breakpoint in malloc_error_break to debug

This error does not even get to a point of running tests.
Or if some tests start running, then they stop unexpectedly with the following error:
[1]    31930 segmentation fault  npm run test

Errors occur with both node 16.20.0 and 18.16.1.

Any clue what could be causing this?
Reproduction
Not sure if I can provide a repro at this point.
System Info
System:
    OS: macOS 13.5
    CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz
    Memory: 21.56 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.16.1 - ~/.nvm/versions/node/v18.16.1/bin/node
    Yarn: 1.22.18 - /usr/local/bin/yarn
    npm: 8.12.1 - ~/work/cert-verifier-js/node_modules/.bin/npm
  Browsers:
    Chrome: 115.0.5790.102
    Safari: 16.6
  npmPackages:
    vitest: ^0.33.0 => 0.33.0

Used Package Manager
npm
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

@sheremet-va would sharing the repo with a work branch for vitest work as a repro for you? On simpler code I cannot replicate the issue.

@sheremet-va would sharing the repo with a work branch for vitest work as a repro for you? On simpler code I cannot replicate the issue.

Yes

Please have a look at this branch: https://github.com/blockchain-certificates/cert-verifier-js/tree/chore/vitest
just:

npm i
npm test (single run)

I did not get the mem alloc failure just now, but it still does not complete with segmentation fault at unexpected stages it looks like.
I haven't investigated much yet, this is exploratory work to try and move away from jest.
Thanks

This error type usually happens when an application cannot work in multi-threaded mode. In this case, it is recommended to disable threads: run vitest --no-threads instead of vitest.

Fixed by https://github.com/vitest-dev/vitest/pull/3925 and https://github.com/vitest-dev/vitest/pull/4172.
Vitest 1.0.0-beta has now --pool=forks which uses multiple node:child_process in parallel. The previous --no-threads was using a single node:child_process.
If the code you are testing is incompatible with node:worker_threads, switch to --pool=forks. If you run into same error with that pool, feel free to open new issue with minimal reproduction.


New Version 4.1 unable to resize images proportionally if width set to 0

The previous release version was able to resize proportionally if the width was set to 0
Request Body:
{
  "bucket": "my-test-bucket,
  "key": "my-test-pic.png",
  "edits": {
    "resize": {
      "width": 0,
      "height": 350,
      "fit": "cover"
    }
  }
}

The current version 4.1 returns an empty JSON string

Hi @mberneis,
We had to update the version of sharp (since the Node 12 Lambda runtime uses Amazon Linux 2 - not compatible with v0.21.3), and it looks like on the v0.23.1 release, the library now explicitly checks that width and height are valid positive numbers.

Ensure invalid width and height provided as options to resize throw. https://github.com/lovell/sharp/issues/1817
https://github.com/lovell/sharp/commit/69fe21a7ec45df526461c4bf308332344112169a#diff-dabcf385428d4cece2833e03414c9bbf

@dscpinheiro
The issue you mentioned talks about issues when passing floating point values resize functionality.
However, reading through https://sharp.pixelplumbing.com/en/stable/api-resize/ which allows specifying width or height only , I tried passing null instead of 0 and the function returned the correct image.


Detect a failure to bind SPICE VDI ports

This is reported differently than the already detected VNC and telnet error states:
Feb 25 22:21:01 primary sh[9496]: libvirt: QEMU Driver error : internal error: qemu unexpectedly closed the monitor:
Feb 25 22:21:01 primary sh[9496]: (process:27803): Spice-WARNING **: 22:21:01.291: reds.c:2645:reds_init_socket: binding socket to <IP_ADDRESS>:41212 failed
Feb 25 22:21:01 primary sh[9496]: 2023-02-25T22:21:01.291770Z qemu-system-x86_64: failed to initialize spice server
Feb 25 22:21:01 primary INFO sf-queues-1677363659.3542495-H6lQwWNzNorttBog[27704] Added event; duration=None; fqdn=localhost; instance=c1170407-9b2c-4d41-abfe-88a662c147a6; message=instance start error

(Wrong repo).


[pixel4] Adaptive lighting not taking effect

Adaptive Brightness is on so I expect the brightness changes w.r.t the environment. But I noticed the monitor remains to be dark even when I want it brighter.
https://joyofandroid.com/fix-android-brightness-problems/ didn't help.

Dup https://github.com/130s/hut_10sqft/issues/515


shorthand deconstructing AST problem

Issue found in https://github.com/sindresorhus/eslint-plugin-unicorn/issues/443 , and I located the problem is because Identifier node is not a reference of identifier.parent.key
Not sure what cause the problem, eslint ? babel ? or babel-eslint?
temporary workaround https://github.com/sindresorhus/eslint-plugin-unicorn/pull/444

Thank you for the PR. Now that @babel/eslint-parser has been released, we are making this repository read-only. If this is a change you would still like to advocate for, please reopen this in the babel/babel monorepo.


Stage Strike App: Cannot strike stages on starter

After choosing who won RPS, on starter stage strike phase, I cannot strike any stages. Tried it on tablet, mobile, and pc browser. No X shows up on the stages I strike on starter phase. When I select confirm, it defaults to battlefield when nothing is selected. Counterpick striking works fine. Just starter striking is having an issue.

Can you show the ruleset you're using? (especially the bottom config related to striking)
I'll try to replicate the bug here!

I will as soon as I get off from my workplace later on today.

https://1drv.ms/v/s!AmDXPJ1roE4_tT1WTqi158JiMzNk
I have included a video link that shows that the stage isn't striking when I click on the web browser. Also, is there a way I can have two tablets mirror the bans like say one person has a tablet and they strike their stages while the other person has their own tablet on their end and be able to see what they strike and then they can select the stage and their opponent can see on their device?

The issue here is that your ruleset isn't defining the strike order. Try adding 1,2,1 as an example. To be honest, the UI doesn't help a lot in confirming the ruleset is complete and should display a message regarding this :thinking:
Now for a double tablet setup, this isn't possible yet, but it's in the plans for the next updates!

Ok, I’ll try it out later. I thought the 1, 2, 1 was on there by default because I saw it grey and thinking it was set already.

There may be a way to set a default value depending on the number of stages in the starter list, like 1.2.1 for 5 stages and <IP_ADDRESS> for 7 stages


chore: add declare_tx fixture to compilation tests

This change is

#250  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @ArniStarkware and the rest of your teammates on  Graphite


applications/pagerank cannot run ?

Hi, I understand there are two pagerank instances. The one in applications/pagerank cannot run, is it? When I compile it, I get compile error. Does it mean that you don't maintain this pagerank anymore ? If you still maintain it, any hint to solve the compile error ?

Sorry, we don't maintain any of Grappa anymore.
But the pagerank implementation you want to use is the one in applications/graphlab/pagerank.cpp (not pagerank_new.cpp or applications/pagerank.cpp).


Nudge preferences (OS version) "stuck" until restart

I updated my Nudge preferences to 12.5.1 last week. Machines were still reading, from somewhere, 12.5 from previous version.
I tried various methods to fix including moving from plist to json, but the only thing that fixed it was a restart.
Throughout the problem, defaults read ~/Library/Preferences/com.github.macadmins.Nudge.plist showed the old/incorrect 12.5 version, even after deleting it and changes in preferences file. Log always showed 12.5 in comparison output.
After a restart I can update the preferences and Nudge, including defaults read ~/Library/Preferences/com.github.macadmins.Nudge.plist accurately reflects the preferences file.
Not sure if this is a Nudge of MacOS issue tbh.

why are you deploying the preferences to ~/Library/Preferences/com.github.macadmins.Nudge.plist ? That is where nudge stores it's state values but the configuration should be /Library/Preferences/com.github.macadmins.Nudge.plist or /Library/Managed Preferences/com.github.macadmins.Nudge.plist

Perhaps that could have been more clear - my preferences are stored in /Library/ (/Library/Preferences/com.github.macadmins.Nudge.json In fact).
But even when “resetting” Nudge by deleting the state file in ~/Library, it was being recreated with the same incorrect values somehow. Only after a machine restart did that state file get correct values, and Nudge obey the preferences file.

I'm not sure what was happening here, but if this was stuck, I would get a lot of feedback regarding this and would be a major bug. Nudge currently doesn't understand when changes are made via MDM without the relaunch of nudge https://github.com/macadmins/nudge/issues/370 but that is separate from this.
We extensively use the json and stop/start the agent and haven't seen this issue, so going to close for now.


add asyncio support

Changes:

Added asyncio support via aiohttp
Added tests for the added module
Updated README.md

@complicat9d Thanks for your contributing! 🔥 I'll check it out ASAP (likely tomorrow).
There is are some problem with IsolatedAsyncioTestCase on python < 3.8.
But, to be honest, I don't mind if we gonna drop 3.6 and 3.7 support and add 3.11, 3.12, 3.13 in test matrix.


Don't Merge! PR real time test for webhook case

Docs Build status updates of commit 816228d:
:clock10: Full build: the average full build time is 5 min(s) 57 sec(s), this is based on the last 673 build(s) for this repository.

Docs Build status updates of commit 816228d:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details
Dependent Files

docs-ref-conceptual/testing.md
:white_check_mark:Succeeded
View (azure-cli-latest) View (azure-cli-2017-03-09-profile) View (azure-cli-2018-03-01-hybrid)

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Add an example that helps use custom commands as "shell"

And, at the same time, helps people find "perl" as a legit thing in Github Actions.

Why:

#2646
What's being changed:
An example and intro to it is being added.
Check off the following:

[x] I have reviewed my changes in staging. (look for the deploy-to-heroku link in your pull request, then click View deployment)
[x] For content changes, I have reviewed the localization checklist
[x] For content changes, I have reviewed the Content style guide for GitHub Docs.

@JJ Thanks so much for opening a PR! I'll get this triaged for review ⚡

@JJ Thanks so much for opening a PR! I'll get this triaged for review ⚡

Ping?

Ping?


[PE-D][Tester A] Find feature description misleading

Current description for an example with multiple names goes like:
find n/Anthony Yiqiao Finds all contacts with the name “Anthony” and “Yiqiao”.
"Anthony" and "Yiqiao" gives impression that the contact's name must include both name excerpts.
Recommend to say "find n/Anthony Yiqiao Finds all contacts with the name “Anthony” and/or “Yiqiao”."

Labels: type.DocumentationBug severity.Medium
original: awhb/ped#6

Will update in UG


Error with query string parser

The query string parser is incorrect for the onSuccess callback. It returns a list of accounts, which is correct, but they have _id fields, rather than id fields. It seems like the regex function to parse the query param isn't splitting by _, or something like that. Plaid expects id, so it isn't working. For now, I'll solve it by changing _id to id myself.
Thanks again for the useful lib! I'm using it with an RN Modal. Super easy setup.
Now we just need Plaid to add an Expo config plugin to get the native library to work with Expo SDK 41...

@nandorojo Thanks for creating this ticket.


Add a Footer

Our application need to have a footer section with a link to github :)
Specs

Responsive footer
footer has a link with the github
use bulma.css classes
avoid font awesome for icon use a svg instead

Hello @achimoraites,
can i get this ? :D

Sure @IreneTepe  !

Can I have a go at this @achimoraites?

Hello @keithmchd48  !
Thank you for your interest!
But the issue is assigned to @IreneTepe !


create tabs component

For home page and patch note creation/edition instead of buttons

Also for score's charts


Add PKGBUILD for installing on arch linux.

Add a PKGBUILD for installing on arch linux. I also tried to add creating the package to the github workflow, but I haven't worked with that before and am not confident that it works as intended (I am unsure where the artifact will appear).

Please excuse the long wait. I reworked it now in a way that pushes the package automatically to the AUR in the pipeline. This should address all your concerns. The secret key for the aur-account needs to be added to the github secrets for the pipeline. Should I send it to you via encrypted mail or do you prefer another way?


Is it possible to have --version introduced in the script?

Hi there,
The script is working absolutely fine having no issues so far. However, I have a requirement to add a specific version of the app, so my question is, is it possible to have --version included in the winget install command? So -Version can be added as an optional parameter. With Winget-cli it is definitely possible, so might include in this script too. What do you think?
Thanks.

Hi,
I will try to work on the possibility to pass Winget "native" arguments. Like so you'll be able to pass --version command, and others.

Linked #4

This would be excellent. Please update here once you have done that. Thanks

#20


change compaction filter func to factory and return 3 decisions.

Change to factory
We need to access safePoint atomically during compaction.
Using A factory to create compaction filter can avoid atomic operation in Filter method.

Filter method returns 3 decisions
Sometimes we need to convert the entry into a tombstone to prevent old version appear again, some times we need to simply drop the entry.

Fix a panic bug when the output table is empty.

@ngaut @bobotu PTAL

@ngaut PTAL

LGTM


Only 360p is available

Hi! Nice library, i have been doing this manually, but recently my scripts fails. Im tryring to download videos from a embed playlist, i always make a request get to config files to get urls for mp4s. But now my scripts fails beacouse before i have acces to all qualities now i only see 360p, i tried your library but the results are the same! But when i enter the embed playlist with login stream is in HD.

Same here. I attempted to download the video at this url: https://www.cinematheque.fr/henri/film/154168-la-route-des-alpes-d-evian-au-mont-pelvoux-andre-bayard-1921/
url = "https://player.vimeo.com/video/746866425"
source = "https://www.cinematheque.fr/henri/film/154168-la-route-des-alpes-d-evian-au-mont-pelvoux-andre-bayard-1921/"
from vimeo_downloader import Vimeo
v = Vimeo(url, embedded_on=source)
print(v.streams)

Result: [Stream(360p)]

Same here. Vimeo has changed its protocol on sending video links to frontend. So there is only the 360p version available and they solve the resolution another way.


[QA] Goerli - Show Manager example (79,1): Information on when the show begins isn't shown and avatar doesn't trigger emotes while being on stage in Alpha

Explorer Alpha build version:
0.3.477-g5ad20358
Issue Description:
Information on when the show begins isn't shown and avatar doesn't trigger emotes while being on stage in Alpha
Check the old explorer sample:
https://github.com/decentraland/unity-explorer/assets/146749313/d5eb7dc0-a526-4fc1-a27f-751f0bb89122
And the one in Alpha:
https://github.com/decentraland/unity-explorer/assets/146749313/39202c3a-6389-4917-bcc4-e53f4e22af93
Steps to reproduce:

Go to goerli in alpha, to show manager example scene in 79,1
Walk to the stage

Expected behaviour:
Based on old explorer, information on when next shown begins should be shown + emotes should be triggered while being there on stage
Current behaviour:
Alpha doesn't show when the next show begins + emotes aren't triggered while being on stage
Reproduction rate:

[ ] < 10%
[ ]  < = 25%
[ ]  50%
[ ]  < = 75%
[x ]  100%

Severity:

[ ] Cosmetic
[x ] Minor
[ ] Medium
[ ] High
[ ] Critical
[ ] Blocker

Priority:

[ ] High
[ ] Medium
[x ] Low

Platforms / OS:

[x ] Windows 11
[ ] Windows 10
[ ] Mac Sonoma
[ ] Mac (specify the version on Additional Notes)

Still not working on v0.10.0
Now the NPCs aren't walking but sliding
https://github.com/decentraland/unity-explorer/assets/139157886/8b430b59-57bb-4754-9041-942c76690709
Player.log


Support building static library

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

I disagree on how this was implemented. In order to support proper static builds it's merely necessary to define BUILD_SHARED_LIBS:BOOL=ON. There should not be any need to change the library name.
The bigger issue is, that this library currently does not support proper shared builds on windows! You would need to use something like this in order to provide the proper declspecs for the windows platform.
include(GenerateExportHeader)
generate_export_header(azurestoragecpplite)

Hi @howryu , please proceed to close this PR as there is another PR resolving this issue merged already.


Reach consensus on next-generation recording spec

TLDR: Segmented MKV backend with .pls file support for identifying the different segments


Add EditorConfig; Update all swift files

Codecov Report

Merging #125 into master will not change coverage.
The diff coverage is 85.44%.

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


Include missing slots instead of skipping the blocks

Currently whenever a slot is skipped and we get an error when fetching the block number from lighthouse here, we are skipping that block. However skipped blocks are still having states assigned internally, which are needed in certain cases (for example validating blocks). Instead of just skipping those blocks we should include them as missing slots.
Task list:

[ ] Define a proto for missed slots / integrate it into the current block proto
[ ] Figure out how to handle block ids and timestamps for missed slots
[ ] Include that state_root for missed blocks. See if it's queryable from the state endpoints from Lighthouse. If not, recalculate it from the previous blocks

Thanks for opening this! Since I reported the issue, we've open-sourced a tool, a Firehose client in Rust, that we've been using in development for using Firehose in Semiotic's verifiable extraction work. We have a simple workaround when using the Beacon chain addressing this issue, so I thought I'd share that here in case it's useful.


The current code doesn't load any model.

This code is just for inference.

This code is just for inference.

For inference, you need to load the checkpoint first, or it is randomly initialized. How can you infer with that?

You can use our JAX codebase to train a model, then load it into PyTorch.

You can use our JAX codebase to train a model, then load it into PyTorch.

But you already have trained models here https://huggingface.co/Test-Time-Training. Why don't you show how to load them?

You can use our JAX codebase to train a model, then load it into PyTorch.

But you already have trained models here https://huggingface.co/Test-Time-Training. Why don't you show how to load them?

Hello, author! I have the same question. Could you teach us how to load the train models?

https://github.com/test-time-training/ttt-lm-pytorch/issues/22

@karan-dalal That is about converting to Pytorch. I wonder why it is so hard for you to provide the complete example code to load the model in pytorch and perform inference by updating the example in the README.md file. Your model is such a different thing from existing models, a user friendly example would be so helpful!

Our model wraps the HuggingFace PreTrained class. Once you convert the PyTorch checkpoint, you can simply load with something like:
  model = TttForCausalLM.from_pretrained(
      pt_args.weight_path,
      torch_dtype=torch.float32,
      device_map="auto",
      **pt_args.model_args,
  )

Our model wraps the HuggingFace PreTrained class. Once you convert the PyTorch checkpoint, you can simply load with something like:
  model = TttForCausalLM.from_pretrained(
      pt_args.weight_path,
      torch_dtype=torch.float32,
      device_map="auto",
      **pt_args.model_args,
  )

The latest version of transformers does not have the 'ttt' model, nor does it contain the 'TttForCausalLM' class. Could you please provide the version of transformers you are using? Or could you provide the code for 'TttForCausalLM'?


[Bug]: Feedback Page footer section is glitched

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
Getting unnecessary message at the footer of feedback page
Add Screenshots

What browsers are you seeing the problem on?
Chrome, Microsoft Edge
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC contributor
[X] I want to work on this issue
[X] I'm willing to provide further clarification or assistance if needed.

I’d like to work on this issue

Already created pr please check :)


Reuse logic from Shipyard, reducing number of scripts

Validation, testing and other targets have been migrated to Shipyard, it would be best to use what's shared

This has been done.


Pod fail to resolve DNS names when calico installed on Azure

To reproduce:

Login to cluster installed on Azure with calico plugin
kubectl apply -f https://k8s.io/examples/admin/dns/busybox.yaml
kubectl exec -ti busybox -- nslookup kubernetes.default
kubectl exec -ti busybox -- nslookup google.com
(https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution/)

Think that should be investigated at first:
IP_AUTODETECTION_METHOD for calico - since by default is set to "first_found" which can detect not appropriate IP.

https://docs.projectcalico.org/v3.8/reference/public-cloud/azure#about-calico-on-azure

Created #384 to introduce canal plugin

According to Calico documentation, Azure does not support Calico networking because it doesn't allow traffic with unknown source IPs.
We decided to introduce Canal. It's is a shorthand for saying "Calico and Flannel", a common practice which sets up Calico to handle policy management and Flannel to manage the network itself. This combination brings in Calico's support for the NetworkPolicy feature of Kubernetes, while utilizing Flannel's UDP-based network traffic to provide for an easier setup experience that works in a wider variety of host network environments without special configuration.


Update json files according to PR 340

PR description:
Update of JSON files in CMSSW, according to PR #340.

Before merging, this PR needs to be updated with the latest change from PR #340.


Fabric (1.16.1+)...

I am looking for the support of a Fabric version (particulary 1.16.1 and above)
Because of the Sodium mods which is pretty much Optifine but 10 time better.
I am totally aware that you would probably need to first get Better Hud in 1.13.2+ Forge , so no pressure.
I am just hopeful you could maybe look into it in the near future.

I am looking forward to it!

Because of the Sodium mods which is pretty much Optifine but 10 time better.

I don't know about that, I just tried the mod, and Optifine on 1.12.2 performed much better


fix(apps): persist table settings [r8s-120]

Fixes r8s-120

Closed in favour of https://github.com/portainer/portainer-suite/pull/10


Issue in Read Fast VI

Was seeing a 0 velocity out of the read fast on my end. I looked into the Read Fast VI (this is all while doing a velocity move) - and saw that it was reading the 'Velocity Setpoint'.
I tried to switch that to 'velocity readback' and it returns the velocity as expected. Not sure why setpoint is showing 0 - perhaps something to do with how velocity moves are done - but the velocity readback seems to always give the correct value.
Any idea why velocity setpoint is always returning 0 though?

Hey there, @aggieslaughter ;
The Velocity Setpoint only is reported by Softmotion under some move types. You'll see it as zero if you make a position move or velocity move but it will be nonzero, if memory serves, when you force a specific velocity setpoint.
I added it for symmetry with the position method, but I can remove it for now if necessary.

To avoid confusion, I'm making both Read Fast methods into the Feedback ones.


update relevant functions

#13

Codecov Report

Merging #128 (e44f6cc) into main (afdea10) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main      #128   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           33        33
  Lines         3699      3721   +22
=========================================
+ Hits          3699      3721   +22

Impacted Files
Coverage Δ

megfile/s3.py
100.00% <100.00%> (ø)

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 afdea10...e44f6cc. Read the comment docs.


two issues in pack.swift

in Xcode 7.2(7C68), there are two issues in pack.swift.
/Users/jasonhe/MessagePack/src/pack.swift:96:16: No calls to throwing functions occur within 'try' expression
/Users/jasonhe/MessagePack/src/pack.swift:350:32: No calls to throwing functions occur within 'try' expression

Hi jason, those "issues" were because of some legacy code of pack.swift that i forget to remove try! in new version, which should not affect the performance. Will fix it in next update

Fixed


HTTP header matching should be case insensitive to support more clients

Some MQTT clients, such as HiveMQ uses all lowercase in the HTTP headers during a websocket handshake.
KMQTT does a case sensitive regex match against, for example, Sec-WebSocket-Protocol. Due to this it's not possible to use WebSockets to connect to KMQTT from a client using on HiveMQ.
It would be great if case insensitive matching could be used when matching against http headers.
For reference, here's an example of what the request and response looks like during the handshake:
GET / HTTP/1.1
host: <IP_ADDRESS>:1884
upgrade: websocket
connection: upgrade
sec-websocket-key: GDDymPLXlAntP0fSTArBCg==
origin: http://<IP_ADDRESS>:1884
sec-websocket-protocol: mqtt
sec-websocket-version: 13

HTTP/1.1 400 Bad Request

Hello, thank you very much for letting me know, I just released version 0.3.2 that should fix this issue. If you still find anything wrong please feel free to reopen.

I tested 0.3.2 and it's working fine together with HiveMQ. Thanks.


How to access DataBricks API with MSAL use proper protectedResourceMap ?

Core Library
MSAL.js v2 (@azure/msal-browser)
Core Library Version
"@azure/msal-angular": "^2.0.3",
Wrapper Library
MSAL Angular (@azure/msal-angular)
Wrapper Library Version
2.0.3
Description
How to config MSAL to access DataBricks API in Angular
My angular library reference:
"@azure/msal-angular": "^2.0.3",
"@azure/msal-browser": "^2.17.0",
The app can call Azure rest API & Graph API with no problem, but can't call DataBricks API
MSAL Configuration
No response
Relevant Code Snippets
1) App registration: [API permission] menu, select [APIs my organization uses] and choose [AzureDataBricks], added user_impersonation as Delegated type

2) in https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-angular/docs/v2-docs/configuration.md
protectedResourceMap.set("https://adb-********.azuredatabricks.net"", ["2ff814a6-3304-4ab8-85cb-cd0e6f879c1d/.default"])

Identity Provider
Azure AD / MSA
Source
External (Customer)

@byunru can you clarify further? What error are you getting? What does the token look like (have the right aud and scpclaims?). Most likely these things depend on acquiring the right access token and sending it to the right endpoint, which is not directly related to MSAL. I would recommend going through their documentation on Azure AD authentication, it could be that the scope you entered to protectedResourceMap is incorrect.

@derisen  I did go through https://docs.microsoft.com/en-us/azure/databricks/dev-tools/api/latest/aad/app-aad-token and https://prakamya.medium.com/accessing-databricks-rest-api-using-service-principal-6da4f03b389f
still didn't give what is the correct key for protectedResourceMap, I also tried many combination
just a simple api call
this.http.get("https://adb-************.azuredatabricks.net/api/2.0/clusters/list")
.subscribe(d => {
console.log(d)
});
----------------- error -------------------------
XHRGEThttps://adb-8728122282744649.9.azuredatabricks.net/api/2.0/clusters/list
[HTTP/2 401 Unauthorized 77ms]
[WDS] Live Reloading enabled. index.js:52
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://adb-8728122282744649.9.azuredatabricks.net/api/2.0/clusters/list. (Reason: CORS header “Access-Control-Allow-Origin” missing).
XHRGEThttps://adb-8728122282744649.9.azuredatabricks.net/api/2.0/clusters/list
[HTTP/2 401 Unauthorized 87ms]
[Fri, 24 Sep 2021 04:28:41 GMT]<EMAIL_ADDRESS>: Info - Emitting event: msal:acquireTokenSuccess app.module.ts:30:10
GEThttp://localhost:4200/favicon.ico
[HTTP/1.1 404 Not Found 0ms]
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://adb-8728122282744649.9.azuredatabricks.net/api/2.0/clusters/list. (Reason: CORS header “Access-Control-Allow-Origin” missing).
Http failure response for https://adb-8728122282744649.9.azuredatabricks.net/api/2.0/clusters/list: 0 Unknown Error error.interceptor.ts:26:16
ERROR Http failure response for https://adb-8728122282744649.9.azuredatabricks.net/api/2.0/clusters/list: 0 Unknown Error

@byunru Please try this (add a wildcard to the end of the url):
protectedResourceMap.set("https://adb-********.azuredatabricks.net/*", ["2ff814a6-3304-4ab8-85cb-cd0e6f879c1d/.default"])

@jasonnutter
Thanks for your feedback, tried this (add a wildcard to the end of the url), still no luck
----------------------- verbose error -------------------------
XHROPTIONShttps://adb-8728122282744649.9.azuredatabricks.net/api/2.0/clusters/list
CORS Missing Allow Origin
OPTIONS
https://adb-8728122282744649.9.azuredatabricks.net/api/2.0/clusters/list
Status401
Unauthorized
VersionHTTP/2
Transferred177 B (0 B size)
Referrer Policystrict-origin-when-cross-origin
date
Fri, 24 Sep 2021 16:54:06 GMT
server
databricks
vary
Accept-Encoding
www-authenticate
Bearer realm="DatabricksRealm"
X-Firefox-Spdy
h2
Accept
/
Accept-Encoding
gzip, deflate, br
Accept-Language
en-CA,en-US;q=0.7,en;q=0.3
Access-Control-Request-Headers
authorization
Access-Control-Request-Method
GET
Connection
keep-alive
Host
adb-8728122282744649.9.azuredatabricks.net
Origin
http://localhost:4200
Referer
http://localhost:4200/
TE
Trailers
User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:87.0) Gecko/20100101 Firefox/87.0
GEThttp://localhost:4200/favicon.ico
[HTTP/1.1 404 Not Found 0ms]
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://adb-8728122282744649.9.azuredatabricks.net/api/2.0/clusters/list. (Reason: CORS header “Access-Control-Allow-Origin” missing).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://adb-8728122282744649.9.azuredatabricks.net/api/2.0/clusters/list. (Reason: CORS request did not succeed).

@byunru Thanks. The CORS errors on the OPTIONS request likely means that the Azure Databricks API does not accept CORS requests, such as those from your Angular application. You will likely need to proxy these requests through a server-side resource.

@jasonnutter  thanks for the feedback, I'll add a support ticket to Databricks team to confirm about this.

@jasonnutter   I can call Databricks api from my console, does it that means Databricks API accept CORS requests ?
show my code below:
$rg   = ""
$dbks = ""
$token = az account get-access-token --resource "2ff814a6-3304-4ab8-85cb-cd0e6f879c1d" -o tsv --query "accessToken"
$workspace = az databricks workspace show -g $rg -n $dbks | jq -r '.workspaceUrl'
$headers = @{'authorization' = "Bearer $token"}
Invoke-RestMethod -Method Get -Uri "https://$workspace/api/2.0/clusters/list" -Headers $Headers
I can get return from above:
clusters
{@{cluster_id=1107-192411-alter988; spark_context_id=6744242834618840134; cluster_name=ai-pilot-cluster; spark_version=7.4.x-cpu-ml-scala2.1…........................................................

Hi @byunru,
No it does not, as documented here the CORS mechanism is restricted to browsers and thus the only way to get around this is to proxy your requests through a server-side resource, as mentioned by @jasonnutter.

@samuelkubai  thanks for clarification, I am connecting Databricks support engineer to confirm if their API is CORS capable.

@samuelkubai  Databricks support engineer confirmed to me their API doesn't support CORS.


[RIP-25]Simplifying Producer and Consumer APIs

FEATURE REQUEST

Please describe the feature you are requesting.
Currently, RocketMQ's client API is a bit complex so it's time to simply Producer and Consumer APIs.
For example:

There are about 20 methods for sending messages in MQProducer, some of which requires timeout parameter, and it is so rare to set timeout for every sending operation.
Clients like DefaultMQProuder, DefaultMQPushConsumer, DefaultLitePullConsumer provide several constructors and setters, user may feel difficult to use them correctly.
MQProducer and MQConsumer extends MQAdmin which makes them provide too many methods that are not related to message sending and consuming.

Provide any additional detail on your proposed use case for this feature.
Producer and Consumer should provide APIs that are easy to use:

easy to create Producer and Consumer clients
easy to send and consume messages

Indicate the importance of this issue to you (blocker, must-have, should-have, nice-to-have). Are you currently using any workarounds to address this issue?
should-have. Currently users may frequently check the documentation to confirm that they use the API correctly, sometimes people create some util code to wrap client APIs to make them easier to use.

RocketMQ 5.0 would release lite client based on gRPC, which would integrate with new API, look forward to more constructive opinions.

This is a topic worth discussing.

Clients like DefaultMQProuder, DefaultMQPushConsumer, DefaultLitePullConsumer provide several constructors and setters, user may feel difficult to use them correctly.

For this, I think we can create all kinds of producers, consumers and admins through a single 'Client' instance.

MQProducer and MQConsumer extends MQAdmin which makes them provide too many methods that are not related to message sending and consuming.

There are about 20 methods for sending messages in MQProducer, some of which requires timeout parameter, and it is so rare to set timeout for every sending operation.

For these two, We could polish the interfaces in like 'MQProducer', or create a new one to provide all kinds of necessary operations. An instance of MQProducer can be returned by the Client.newProducer(),and user should not consider the implementation underlying, like it's an object of 'DefaultMQProuder' .

To allow further configuration, how about Client.newProducerBuilder().withXXX().withYYY().build()


CUDA config - remove setters and enum etc (Only ExecutionModel.SEQUENTIAL supported)

See: https://github.com/deeplearning4j/nd4j/pull/2722#issuecomment-373933362
https://github.com/deeplearning4j/nd4j/pull/2760

Ye, and in general it wont heart to review CudaConfiguration bean before release.

18 марта 2018 г., в 17:56, Alex Black<EMAIL_ADDRESS>написал(а):
See: #2722 (comment) https://github.com/deeplearning4j/nd4j/pull/2722#issuecomment-373933362
#2760 https://github.com/deeplearning4j/nd4j/pull/2760
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/deeplearning4j/nd4j/issues/2761, or mute the thread https://github.com/notifications/unsubscribe-auth/ALru_-5v_whzdZ5PkR0-0VdkdLBcK1dRks5tfwJWgaJpZM4SvdlA.


[FLPATH-424] Return error message with status

What this PR does / why we need it:
This PR adds the error message contained in the Throwable of the WorkReport into the WorkflowExecution and saves it to the DB in order to return it when the /status endpoint is requested; the message is then sent along with the status
Which issue(s) this PR fixes
fixes #FLPATH-424
Change type

[ ] New feature
[x] Bug fix
[ ] Unit tests
[ ] Integration tests
[ ] CI
[ ] Documentation
[ ] Auto-generated SDK code

Impacted services

[x] Workflow Service
[ ] Notification Service

Checklist

[x] Subject and description added to both, commit and PR.
[x] Relevant issues have been referenced.

overall, LGTM, but have one question about whether should we include a message in response if it is empty


Add Malware Persistence

https://github.com/Karneades/awesome-malware-persistence
A curated list of awesome malware persistence tools and resources.
Malware persistence consists of techniques that adversaries use to keep access to systems across restarts, changed credentials, and other interruptions that could cut off their access.
The main repository which was started 2 years ago has more than 80 stars and is a reference repository regarding this specific awesome malware topic. The awesome malware persistence list exists since more then 2 years but was integrated the main project about malware persistence until now. (https://github.com/Karneades/malware-persistence)
The only lint error besides the age is now a duplicate URL because I point to one specific location in a repo in addition to the main link. Rest was fixed using the awesome-lint workflow before PR.
Commented on various PRs: #2050, #2160, #2170, #2171, #2186, #2189 (GitHub search)
Contributed in the past to various awesome lists, including the lists for threat hunting, forensics, malware analysis, incident response, compiler, podcast and ebpf. Because contributing to awesome lists feels awesome and getting a PR done here without missing a requirement would feel awesome too!
By submitting this pull request I confirm I've read and complied with the below requirements 🖖
Please read it multiple times. I spent a lot of time on these guidelines and most people miss a lot.
Requirements for your pull request

Don't waste my time. Do a good job, adhere to all the guidelines, and be responsive.
You have to review at least 2 other open pull requests.
Try to prioritize unreviewed PRs, but you can also add more comments to reviewed PRs. Go through the below list when reviewing. This requirement is meant to help make the Awesome project self-sustaining. Comment here which PRs you reviewed. You're expected to put a good effort into this and to be thorough. Look at previous PR reviews for inspiration. Just commenting “looks good” or simply marking the pull request as approved does not count! You have to actually point out mistakes or improvement suggestions.
You have read and understood the instructions for creating a list.
This pull request has a title in the format Add Name of List.

✅ Add Swift
✅ Add Software Architecture
❌ Update readme.md
❌ Add Awesome Swift
❌ Add swift
❌ add Swift
❌ Adding Swift
❌ Added Swift

Your entry here should include a short description about the project/theme of the list. It should not describe the list itself. The first character should be uppercase and the description should end in a dot. It should be an objective description and not a tagline or marketing blurb.

✅ - [iOS](…) - Mobile operating system for Apple phones and tablets.
✅ - [Framer](…) - Prototyping interactive UI designs.
❌ - [iOS](…) - Resources and tools for iOS development.
❌ - [Framer](…)
❌ - [Framer](…) - prototyping interactive UI designs

Your entry should be added at the bottom of the appropriate category.
The title of your entry should be title-cased and the URL to your list should end in #readme.

Example: - [Software Architecture](https://github.com/simskij/awesome-software-architecture#readme) - The discipline of designing and building software.

The suggested Awesome list complies with the below requirements.

Requirements for your Awesome list

Has been around for at least 30 days.That means 30 days from either the first real commit or when it was open-sourced. Whatever is most recent.
Don't open a Draft / WIP pull request while you work on the guidelines. A pull request should be 100% ready and should adhere to all the guidelines when you open it.
Run awesome-lint on your list and fix the reported issues. If there are false-positives or things that cannot/shouldn't be fixed, please report it.
The default branch should be named main, not master.
Includes a succinct description of the project/theme at the top of the readme. (Example)

✅ Mobile operating system for Apple phones and tablets.
✅ Prototyping interactive UI designs.
❌ Resources and tools for iOS development.
❌ Awesome Framer packages and tools.

It's the result of hard work and the best I could possibly produce.
If you have not put in considerable effort into your list, your pull request will be immediately closed.
The repo name of your list should be in lowercase slug format: awesome-name-of-list.

✅ awesome-swift
✅ awesome-web-typography
❌ awesome-Swift
❌ AwesomeWebTypography

The heading title of your list should be in title case format: # Awesome Name of List.

✅ # Awesome Swift
✅ # Awesome Web Typography
❌ # awesome-swift
❌ # AwesomeSwift

Non-generated Markdown file in a GitHub repo.
The repo should have awesome-list & awesome as GitHub topics. I encourage you to add more relevant topics.
Not a duplicate. Please search for existing submissions.
Only has awesome items. Awesome lists are curations of the best, not everything.
Does not contain items that are unmaintained, has archived repo, deprecated, or missing docs. If you really need to include such items, they should be in a separate Markdown file.
Includes a project logo/illustration whenever possible.

Either centered, fullwidth, or placed at the top-right of the readme. (Example)
The image should link to the project website or any relevant website.
The image should be high-DPI. Set it to maximum half the width of the original image.

Entries have a description, unless the title is descriptive enough by itself. It rarely is though.
Includes the Awesome badge.

Should be placed on the right side of the readme heading.

Can be placed centered if the list has a centered graphics header.

Should link back to this list.

Has a Table of Contents section.

Should be named Contents, not Table of Contents.
Should be the first section in the list.
Should only have one level of nested lists, preferably none.
Must not feature Contributing or Footnotes sections.

Has an appropriate license.

We strongly recommend the CC0 license, but any Creative Commons license will work.

Tip: You can quickly add it to your repo by going to this URL: https://github.com/<user>/<repo>/community/license/new?branch=main&template=cc0-1.0 (replace <user> and <repo> accordingly).

A code license like MIT, BSD, Apache, GPL, etc, is not acceptable. Neither are WTFPL and Unlicense.
Place a file named license or LICENSE in the repo root with the license text.
Do not add the license name, text, or a Licence section to the readme. GitHub already shows the license name and link to the full text at the top of the repo.
To verify that you've read all the guidelines, please comment on your pull request with just the word unicorn.

Has contribution guidelines.

The file should be named contributing.md. Casing is up to you.
It can optionally be linked from the readme in a dedicated section titled Contributing, positioned at the top or bottom of the main content.
The section should not appear in the Table of Contents.

All non-important but necessary content (like extra copyright notices, hyperlinks to sources, pointers to expansive content, etc) should be grouped in a Footnotes section at the bottom of the readme. The section should not be present in the Table of Contents.
Has consistent formatting and proper spelling/grammar.

The link and description are separated by a dash. Example: - [AVA](…) - JavaScript test runner.
The description starts with an uppercase character and ends with a period.
Consistent and correct naming. For example, Node.js, not NodeJS or node.js.

Doesn't use hard-wrapping.
Doesn't include a Travis badge.You can still use Travis for list linting, but the badge has no value in the readme.
Doesn't include an Inspired by awesome-foo or Inspired by the Awesome project kinda link at the top of the readme. The Awesome badge is enough.

Go to the top and read it again.

unicorn

Thanks for making an Awesome list! 🙌
It looks like you didn't read the guidelines closely enough. I noticed multiple things that are not followed. Try going through the list point for point to ensure you follow it. I spent a lot of time creating the guidelines so I wouldn't have to comment on common mistakes, and rather spend my time improving Awesome.

As written in the initial PR comment, the lint errors are the following.

The awesome malware persistence list exists since more then 2 years but was part of the main project about malware persistence until now (https://github.com/Karneades/malware-persistence).
The only lint error besides the age is now a duplicate URL because I point to one specific location in a repo in addition to the main link. Rest was fixed using the awesome-lint workflow before PR.

@Karneades - very unique topic and list, thanks for sharing!
It looks like the main issue on the PR at this point is the 30day min repo age which you've already explained above (and anyways should be hit within a week)
One other comment I have on your list- Is it possible for you to add all the sub-topics into your 'Contents'? I see some sub-topics are included but others are not. Specifically:

Add 'Various Blog Posts' under 'Techniques' section
Add 'General' and 'Windows' under 'Persistence Removal'
Add 'macOS' under 'Prevention'
This should help improve navigation within the list as it grows.

One other comment I have on your list- Is it possible for you to add all the sub-topics into your 'Contents'? I see some sub-topics are included but others are not. Specifically:
* Add 'Various Blog Posts' under 'Techniques' section
* Add 'General' and 'Windows' under 'Persistence Removal'
* Add 'macOS' under 'Prevention'
  This should help improve navigation within the list as it grows.

@akajla09 Thanks for your comment. I made the suggested changes for most of the headings. Only removed the Various Blog Posts heading all together.

Tweet: https://twitter.com/awesome__re/status/1533389396874973184


ctapipe support

Trying to add ctapipe as a possible workflow for r0 to dl1 processing and removing some duplicate code (#105).
I ran the r0 to dl1 steps for ctapipe and lstchain, but you might want to make sure hiperta is working as expected.
Basically:
There is only one r0 to dl1 step. Different pipelines define a different base_cmd and use a different core_list script. These I would like to unite aswell, but ctapipe wants an output file whereas lstchain expects an output directory. Couldnt think of a clean solution yet. Worst case just give up on it and put the base_cmd in the script. That would actually enable custom commands for the steps, but maybe thats not a plus after all.
The removal of the duplicated rta code also means that some things are now more consistent (e.g. job naming was different).

Another point that I just realised.
Are you aware that the DL1 data model between the output of ctapipe-stage-1 and lstchain_mc_r0_dl1 are not the same
? (the lstchain chain is not updated yet with the ctapipe dl1 data model. We have exactly the same problem to "plug" the hiperta workflow within the lstchain one ;-) )
Basically, if you try to glue together the output of the ctapipe-stage-1 (+ lstchain_merge_hdf5_files) to the train_pipe or dl1_dl2 stage, it will not work. You will need to use the hiperta/reorganize_dl1hiperta300_to_dl1lstchain060.py script for this.... although this might cause/create new problems... (🙈 🙈 🙈 )

I knew it, couldn't test the hiperta case at the time.
Thought I had most things covered, but I will have a look again.

Basically, if you try to glue together the output of the ctapipe-stage-1 (+ lstchain_merge_hdf5_files)

Yes, that's clear. We need to use ctapipe-merge for the merge step and there is not yet a ctapipe solution for stage2, we are about to implement it for the next release, maybe not not yet certain also including the machine learning part.
In the meantime, you could also add an aict-tools step or we would do this manually.

Basically, if you try to glue together the output of the ctapipe-stage-1 (+ lstchain_merge_hdf5_files) to the train_pipe or dl1_dl2 stage, it will not work.

From my testing ctapipe-stage1 + lstchain_merge_hdf5_files seemed to produce ctapipe dl1 files again, although I have not performed a rigorous validation. Using ctapipe-merge is the safe and preferable variant. The plan was to add dl1 support first and continue from there.

(the lstchain chain is not updated yet with the ctapipe dl1 data model. We have exactly the same problem to "plug" the hiperta workflow within the lstchain one ;-) )
What exactly is hiperta producing? Is it ctapipe files or a third distinct datamodel?

I think hiperta claims to be compatible to ctapipe dl1, but @vuillaut will be able to comment on that.

What exactly is hiperta producing? Is it ctapipe files or a third distinct datamodel?

Hiperta produces dl1 files compatible with ctapipe, yes (dl1 hiperta model should be exactly the same as the DL1 cta model, thus dl1 ctapipe).

From my testing ctapipe-stage1 + lstchain_merge_hdf5_files seemed to produce ctapipe dl1 files again, although I have not performed a rigorous validation. Using ctapipe-merge is the safe and preferable variant. The plan was to add dl1 support first and continue from there.

This is correct @LukasNickel, the lstchain_merge_hdf5_files is no more than a merger util. So you could use the ctapipe-merge instead of the lstchain-merge for the ctapipe support if you prefer.

In the meantime, you could also add an aict-tools step or we would do this manually.

Sorry @maxnoe, I missed this part. Was it addressed to me or to Lukas ?

"you" as this project. But probably Lukas would be the one to implement it.
But we are also planning to implement this in ctapipe in the very near future, so maybe just wait for that.

Also @LukasNickel,
You will need to merge master into this branch (couple of new features were implemented - that should not conflict too much with your PR in any case).

Also @LukasNickel,
You will need to merge master into this branch (couple of new features were implemented - that should not conflict too much with your PR in any case).

There are actually no conflicts yet according to github, but its good practice of course


Update: JetBrains.TeamCity version 2021.1 (build 92597)

null
Microsoft Reviewers: Open in CodeFlow

#42616


MARP-1481 convert to Ivy 12

Hi @tvtphuc-axonivy when uploading a doc to sign in the 'Upload document for signing' process, still 1 error at writeBinary() api appear in the project


Background layers don't draw

None of these layers draw when they are turned on:

Looks like the app is trying to draw them using the MapService service?

This should be fixed when the service is republished.


Variable not support

Hi,
fft can not be applied on Variable. However Variable is important for computing gradient.

Best wishes,
Qiuqiang

Autograd functionality is in fft.autograd


Page not found 404 error

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
Page not found 404 error after a click on the ❄ of Vampire Drain page.
Expected Behavior
Unknown.
Steps To Reproduce

Go to Vampire Drain on the dashboard
Click on the "SnowFlake"

Relevant log output
n/a

Screenshots

Additional data
No response
Type of installation
Docker
Version
V 1.27.1

https://github.com/adriankumpf/teslamate/issues/2411


Inserting slots into template uses regex and not string.format

Rasa version: 1.0.7
Rasa X version (if used & relevant): None
Python version: 3.6
Operating system (windows, osx, ...): Linux / Ubuntu
Issue: Rasa does not handle string formatting anymore. Instead it was changed to regex which is less resilient then string.format
Error (including full traceback):
2019-07-01 12:15:57 ERROR    rasa.core.nlg.template  - Failed to fill utterance template '{'text': '`system`:bot-terminate `body`:Payment of R{amount} for your order was received successfully. {{Your order number is #{order_id}}}.'}'. Tried to replace '{Your order number is #{order_id' but could not find a value for it. There is no slot with this name nor did you pass the value explicitly when calling the template. Return template without filling the template.
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/rasa/core/nlg/template.py", line 115, in _fill_template_text
    template["text"] = text.format(template_vars)
KeyError: '{Your order number is #{order_id'

Command or request that led to error:
 {"system": "venue-payment-received", "body": {"venue_order_total_cost":0, "venue_order_id":503}}

Content of domain file (domain.yml) (if relevant):
 utter_payment_success:
    - text: '`system`:bot-terminate
             `body`:Payment of R{amount} for your order was received successfully. {{Your order number is #{order_id}}}.'

After some research I found that this bug arose when someone copied a stackoverflow comment into the rasa Language generation class.
Location: rasa/core/nlg/template.py line 109 - 115:
            try:
                # transforming template tags from
                # "{tag_name}" to "{0[tag_name]}"
                # as described here:
                # https://stackoverflow.com/questions/7934620/python-dots-in-the-name-of-variable-in-a-format-string#comment9695339_7934969
                # assuming that slot_name do not contain newline character here
                text = re.sub(r"{([^\n]+?)}", r"{0[\1]}", template["text"])
                template["text"] = text.format(template_vars)

should be changed to:
        try:
             template["text"] = template["text"].format(**template_vars)

Thanks for raising this issue, @imLew  will get back to you about it soon.

I'm looking into it. @Bennie-higuru you are right that your use case is broken by the regex, however it seems that this change was made in order to allow for names that did not get through with .format.
I will try to find something that addresses both problem soon, until then I recommend you implement the fix that was suggested on the forum. Or if you know a robust solution already you can of course create a PR as well :)

Looks like this will be solved by https://github.com/RasaHQ/rasa/pull/3951.


New-ADGroup fails when passing -otherAttribute with multiple 'objectclass' attribute values

The following syntax was used to attempt to create a dynamic object in AD:
New-ADGroup -OtherAttributes @{'objectClass'="Group","DynamicObject";'entryTTL'=180}
-Name 'Deleted in 180 Seconds' -Path $myGroupsOu -GroupScope DomainLocal

The -OtherAttributes parameter seems to adhere to documentation, but the following error persists:
<#
New-ADGroup : Unable to cast object of type 'System.String[]' to type 'System.String'.
At line:2 char:1
+ New-ADGroup -OtherAttributes @{'objectClass'="Group","DynamicObject"; ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (CN=Deleted in 1...dc=state,dc=sbu:String) [New-ADGroup], InvalidCastException
    + FullyQualifiedErrorId : ActiveDirectoryCmdlet:System.InvalidCastException,Microsoft.ActiveDirectory.Management.Commands.NewADGroup

Is this a failure of the -OtherAttributes parameter or incorrect documentation?

Further details of the problem are documented on StackOverflow

@officedocsbot assign @yogkumgit

@officedocsbot unassign @e0i

Hi @VeeFu, thank you for your feedback and sorry for the delay.
I've done some testing, and it seems that New-ADGroup and New-ADUser do not support the dynamicObject creation with the OtherAttributes parameter. So you should use another tool like LDIFDE.
If you still need help, I suggest that you open a support case. If you found a solution, please share it with us.
Thank you again.

Thanks @dariomws for the reply. Gosh it's been ages since I opened this!
I appreciate the confirmation about 'dynamicObject' class. I suspected something was special about this object class type. The StackOverflow link seems to show that I dropped into an ADSI interface to achieve my goal at the time.
There is still something strange about -otherAttribtues, though.
Here's a test that demonstrates. I've modified the schema to include the 'drink' multi-value attribute in my user object class before performing this test:
New-ADUser -name Thirsty -OtherAttributes @{'drink'='water', 'orange juice'}

gives an error response of:
Invalid type 'System.Collections.ArrayList'.
Parameter name: drink
    + CategoryInfo          : InvalidArgument: (CN=Thirsty,CN=Users,DC=pacman,DC=local:String) [New-ADUser], ArgumentE
   xception
    + FullyQualifiedErrorId : ActiveDirectoryCmdlet:System.ArgumentException,Microsoft.ActiveDirectory.Management.Comm
   ands.NewADUser

If we store the hash table first, however:
$multiDrinks = @{'drink'='water', 'orange juice'}
New-ADUser -name Thirsty -OtherAttributes $multiDrinks

There is no problem.
Similar for Set-ADUser
Set-ADUser Thirsty -Add @{'drink'= 'coffee', 'tea'}

yields an error
Invalid type 'System.Management.Automation.PSObject'.
Parameter name: drink
    + CategoryInfo          : InvalidArgument: (Thirsty:ADUser) [Set-ADUser], ArgumentException
    + FullyQualifiedErrorId : ActiveDirectoryCmdlet:System.ArgumentException,Microsoft.ActiveDirectory.Management.Comm
   ands.SetADUser

but the following is fine:
$moreDrinks = @{'drink'= 'coffee', 'tea'}
Set-ADUser Thirsty -Add $moreDrinks

@VeeFu I think I cannot help more here because we are limited to documentation issues and improvements.
If you still need help, the best way forward is to open a service ticket in your tenant, so this can get resolved ASAP. Based on the outcome, let me know if it can be called out in the docs.
Please follow this link to contact support for business products:  https://docs.microsoft.com/office365/admin/contact-support-for-business-products.
Please keep us posted here on the resolution to feed whatever information you discover into the content.
I hope you understand. Thank you!


Segfault when running test on old version of libxml2

Hi,
I'm trying to debug a very tedious problem, my program is using python-xmlsec and I'm running tests on it on CircleCI Ubuntu 12.04 and for some reason I'm always getting a segfault.
This is the command and the output I currently run
$ gdb -ex r --args python asd.py
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from python...(no debugging symbols found)...done.
Starting program: /home/ubuntu/virtualenvs/venv-system/bin/python asd.py
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff52f318a in xmlDictLookup () from /usr/lib/x86_64-linux-gnu/libxml2.so.2
(gdb) bt
#0  0x00007ffff52f318a in xmlDictLookup () from /usr/lib/x86_64-linux-gnu/libxml2.so.2
#1  0x00007ffff523290c in ?? () from /usr/lib/x86_64-linux-gnu/libxml2.so.2
#2  0x00007ffff52355d9 in ?? () from /usr/lib/x86_64-linux-gnu/libxml2.so.2
#3  0x00007ffff5238c79 in ?? () from /usr/lib/x86_64-linux-gnu/libxml2.so.2
#4  0x00007ffff524551c in xmlParseElement () from /usr/lib/x86_64-linux-gnu/libxml2.so.2
#5  0x00007ffff5244308 in xmlParseContent () from /usr/lib/x86_64-linux-gnu/libxml2.so.2
#6  0x00007ffff5245fd3 in xmlParseInNodeContext () from /usr/lib/x86_64-linux-gnu/libxml2.so.2
#7  0x00007ffff5a0509c in xmlSecReplaceNodeBufferAndReturn () from /usr/lib/libxmlsec1.so.1
#8  0x00007ffff5a034b5 in xmlSecEncCtxDecrypt () from /usr/lib/libxmlsec1.so.1
#9  0x00007ffff45e7bef in __pyx_pf_6xmlsec_3enc_17EncryptionContext_10decrypt (__pyx_v_node=0x7ffff5e94518, __pyx_v_self=<optimized out>) at src/xmlsec/enc.c:2756
#10 __pyx_pw_6xmlsec_3enc_17EncryptionContext_11decrypt (__pyx_v_self=<optimized out>, __pyx_v_node=0x7ffff5e94518) at src/xmlsec/enc.c:2568
#11 0x0000000000499c7b in PyEval_EvalFrameEx ()
#12 0x00000000004a090c in PyEval_EvalCodeEx ()
#13 0x000000000049ab45 in PyEval_EvalFrameEx ()
#14 0x00000000004a1634 in ?? ()
#15 0x000000000044e4a5 in PyRun_FileExFlags ()
#16 0x000000000044ec9f in PyRun_SimpleFileExFlags ()
#17 0x000000000044f904 in Py_Main ()
#18 0x00007ffff7818f45 in __libc_start_main (main=0x44f9c2 <main>, argc=2, argv=0x7fffffffddf8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffdde8)
    at libc-start.c:287
#19 0x0000000000578c4e in _start ()

And this is the contents of my asd.py located in the "tests" folder
from conftest import *
from examples import test_decrypt
test_decrypt.test_decrypt1()

So far I'm unable to reproduce the issue anywhere else than in CircleCI's container so the problem is related to that. However a very weird segfault.
.... And actually while writing this ticket I realized that the segfault does come from the libxml2 part of the stack so I figured I'd check that version and BOOM. To document here if someone else has the same issue with
libxml2-dev                                                 2.7.8.dfsg-5.1ubuntu4.14
the decryption will crash.
Is there a fix possible to prevent this kind of thing happening?

seems like this issue is related to #28

Hi, @aop could you run your code against this PR #37

There is problem with memory manamgent in libxml2 and I cannot manage this from python-xmlsec code. I specified in README.md minimal required versions of libxmlsec1 and libxml2, and I added instructions how to install required versions manually, so I close this issue.

I'm getting the same error with libxml2 version 2.9.4_3

@andreixk, could you please provide the following information:

version of python_xmlsec
version of libxmlsec
os version

Do you install libxml2 from source or from package?

python_xmlsec 1.1.0
libxmlsec 1.2.20_1
Mac OS X 10.11.6
libxmlsec installed using brew
python_xmlsec installed using pip

What about libxml2 ? do you install it by using brew too  ?

yes

@andreixk Could you please fire new issue with stack trace, versions of libxml2, libxmlsec1, python_xmlsec.
And it would be great, if you also provide minimal example, which causes segfault.

I can do that a bit later, I removed the test case that caused segfault.
At the moment I'm having another issue where xmlsec is giving me "failed to decrypt" error. Is there a way I can give you the xml file and the private key to take a look at it? I don't want to post the public key here.
I can decrypt the xml using a php library, but xmlsec is giving me issues with it for some reason.

@andreixk you can use my email<EMAIL_ADDRESS>to share this information.


Modernize template

Main changes:

Change to use Ruff as a linter and formatter
Fixes deprecated VS Code settings

Resolves #29

Not sure if this is caused by anything in the implementation itself, but on Ubuntu in VS Code mypy is reporting missing library stubs in the plugin.py file for all imports from the qgis package.
Skipping analyzing "qgis.core": module is installed, but missing library stubs or py.typed markerMypy[import-untyped]

Similar error in build.py:
Cannot find implementation or library stub for module named "qgis_plugin_tools.infrastructure.plugin_maker"

Not sure if this is caused by anything in the implementation itself, but on Ubuntu in VS Code mypy is reporting missing library stubs in the plugin.py file for all imports from the qgis package.
Skipping analyzing "qgis.core": module is installed, but missing library stubs or py.typed markerMypy[import-untyped]

Similar error in build.py:
Cannot find implementation or library stub for module named "qgis_plugin_tools.infrastructure.plugin_maker"

I ignored those missing type errors on qgis and osgeo package. And for qgis_plugin_tools all typing errors completly.


Add assiciations for classes

In the following milestone, I did the following

Add classes for rental, classroom, and book
Add associations for the classes

Hi @Daniel-Kigozi,
While you made a great effort in this project, unfortunately, I cannot proceed to review your code.
Invalid Code Review Request
You have submitted a project, that is invalid because linters are failing
Your Code Review Request will be marked as invalid in your Dashboard, so please submit a new one once you are ready 🙏
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.
Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.

Invalid Code Review Request does not count into the code reviews limit.


takeSingleCameraImage() should redirect user to App settings when permission is Locked

When user declines the camera permission multiple times, the permission becomes blocked, means the permission dialog launcher just does Nothing. In this case, it is typical to redirect the user to the app settings.
Other solution for this issue is to provide the User of the library and permissionLockedCallback so they can show their own dialog or redirect to the settings.

Hello @MajdHojera, thank you for your feedback. Check the next version when it is released!

Closed this issue as it is solved.


Feat: Implement proxy

[x] Implement proxy using utopia-php/balancing
[x] Write basic E2E tests (using mockoon HTTP server)
[x] Write README, code of conduct, contributing guide
[x] Setup CI/CD (linter, code analysis, tests)
[x] Setup config files for cloud development (gitpod, code spaces)

I am re-adding dependency for utopia/framework alongside utopia/swoole.
It is not necessary but I find it valuable because:

It is easier to understand this project uses framework without having to scan for sub-dependencies
Composer complains about upgrades to framework if not included in composer.json

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires utopia-php/swoole dev-feat-upgrade-framework as 0.6.0 -> satisfiable by utopia-php/swoole[dev-feat-upgrade-framework].
    - utopia-php/swoole dev-feat-upgrade-framework requires utopia-php/framework dev-feat-wildcard-route as 0.24.0 -> found utopia-php/framework[dev-feat-wildcard-route] but it does not match your minimum-stability.

I removed Atomic from the proxy. With team lead we could not find a reason to use it in this scenario. Coroutine-style server should be single-threaded and multi-threading problems should not apply.

Deleted comments from main thread, they were duplicates of comments under specific reviews.

Moved a few things around in http.php for better coroutine support. It allowed me to get rid of warnings and magical wait() blocking.

Release CI/CD finished 😇 With GitHub release, new image will be automatically built and published to Docker Hub. Secrets on repo also prepared.


Cyclic dependency error when using systemd::unit_file in multiple classes

Using systemd::unit_file in multiple, strictly ordered classes, causes a cyclic dependency error.
Consider the following code:

Role:

class role::base {
  contain profile::systemd
  contain profile::base_os
  contain profile::monitoring

  Class['profile::systemd']
  -> Class['profile::base_os']
  -> Class['profile::monitoring']
}

Profiles
2.1. profile::systemd

class profile::systemd {
  class { 'systemd':
    manage_resolved => false,
    manage_networkd => false,
  }
}

2.2. profie::base_os
class profile::base_os {
  systemd::unit_file { 'remove_check_mk_cache.service':
    content => file('profile/remove_checkmk_cache.service'),
    active  => true,
    notify  => Service['remove_check_mk_cache'],
  }
  service { 'remove_check_mk_cache':
    ensure => running,
    enable => true,
    require => Class['systemd::systemctl::daemon_reload'],
  }
}

2.3. profile::monitoring
class profile::monitoring {
  systemd::unit_file { 'send_downtime.service':
    content => file('profile/send_downtime.service'),
    active  => true,
    notify  => Service['send_downtime'],
  }
  service { 'send_downtime':
    ensure => running,
    enable => true,
    require => Class['systemd::systemctl::daemon_reload'],
  }
}

Unit tests or using this code on a system produce cyclic dependency error:
role::base on centos-7-x86_64 is expected to compile into a catalogue without dependency cycles
     Failure/Error: it { is_expected.to compile }
       dependency cycles found: (Exec[systemctl-daemon-reload] => Class[Systemd::Systemctl::Daemon_reload] => Service[remove_check_mk_cache] => Class[Profile::Base_os] => Class[Profile::Monitoring] => Systemd::Unit_file[send_downtime.service] => File[/etc/systemd/system/send_downtime.service] => Class[Systemd::Systemctl::Daemon_reload] => Exec[systemctl-daemon-reload])
     # ./spec/classes/base_spec.rb:10:in `block (4 levels) in <top (required)>'

Hi!
I thought a bit about this. If you set active to true on the systemd::unit_file defined resources, it creates the service resource for you:
https://github.com/camptocamp/puppet-systemd/blob/8f68b0dcf3bbbafc60c025879a28004fc9815aab/manifests/unit_file.pp#L91-L98
You basically define the service twice, once in your profile and once via the defined resource. This works by accident because the defined resource references the service with send_downtime.service and the profile with send_downtime. This means that you could shorten the profiles:
class profile::monitoring {
  systemd::unit_file { 'send_downtime.service':
    content => file('profile/send_downtime.service'),
    active  => true,
    enable => true,
  }
}

class profile::base_os {
  systemd::unit_file { 'remove_check_mk_cache.service':
    content => file('profile/remove_checkmk_cache.service'),
    active  => true,
    enable => true,
  }
}

While this is shorter, it indeed creates the dependency loop you mentioned. On a few of my profiles I workaround this by not ordering the profiles like you did in your role. I set explicit dependencies in my profile to resources to the other profiles. In your case that would mean:
class profile::monitoring {
  systemd::unit_file { 'send_downtime.service':
    content => file('profile/send_downtime.service'),
    active  => true,
    enable => true,
  }
  Service['remove_check_mk_cache.service'] -> Service['send_downtime.service']
}

class profile::base_os {
  systemd::unit_file { 'remove_check_mk_cache.service':
    content => file('profile/remove_checkmk_cache.service'),
    active  => true,
    enable => true,
  }
}

But I understand that ordering profiles in a role is a common pattern and I do that myself alot as well. In that case just remove the active  => true, line from your two systemd::unit_file  and all works as well.

Fix is available in #171


⚠ Processors has degraded performance

In c8f11cd, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 48 ms

Resolved: Processors performance has improved in 7e848dd.


Respect previous stream in context manager

Fixes the problem https://github.com/cupy/cupy/pull/5172#issuecomment-845764323, which is intuitive for users.
The new behavior is identical to PyTorch:
import torch

s1 = torch.cuda.Stream()
s2 = torch.cuda.Stream()

assert torch.cuda.current_stream().cuda_stream == 0

torch.cuda.set_stream(s1)
with torch.cuda.stream(s2):
    assert torch.cuda.current_stream().cuda_stream == s2.cuda_stream
    s1_ptr = s1.cuda_stream
    del s1
assert torch.cuda.current_stream().cuda_stream == s1_ptr

This is also no-compat in terms of the Stream's lifecycle, although I believe this does not affect most use cases. The reference to the stream .use()ed will now be kept in the context manager's context, which may defer the timing of the cudaStreamDestroy call.

/test mini


How to send additional information along with a notification?

Both APN and GCM allow the server to send arbitrary data along with the core message. In APN, you can do this by sending an additional dictionary besides the "apn" standard dictionary, and in GCM you can add a data payload. In APN, you can also use the "content-available" flag to receive "silent" notifications without bringing the app to the foreground.
Are this additional options supported by raix:push somehow?

yes, we support ejson payload - so it's formatted correctly on both android and ios (ios tends to flatten payloads)
regarding content-available - it has been discussed - not sure if it's supported in the latest cordova plugin.
I haven't added it to the push package, mainly because it's limited to once a day usage.

Thanks for the info. How exactly can the payload be added?

https://github.com/raix/push#common-api
Push.send({ /* ... */ payload: { foo: 'bar' } });

Thanks!


Save as text

Your script saved me a lot of time, thanks.
Could you add some options to save the book as text, markdown or doc format, because when I copy or convert the content from PDF file, there are many line break in the target.
Thanks

I would also love epub support :)


feat: adding pac4j AuthnRequest Embedded signature

Provide a way to be able to add <ds:Signature> part into AuthnRequest.

+1
The build is broken and it seems related, although the error is strange:
> Task :api:cas-server-core-api-configuration-model:generateConfigurationMetadata
SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#noProviders for further details.
Exception in thread "main" java.lang.IllegalArgumentException: Cant locate class for Collection
	at org.apereo.cas.configuration.metadata.ConfigurationMetadataClassSourceLocator.lambda$locatePropertiesClassForType$3(ConfigurationMetadataClassSourceLocator.java:79)

After I didn't understood the use of a collection from the interface, a List or a Set could avoid this problem.

@mmoayyed your requested change are applied !


Write ATS for TG requirement 4

The metadata response parameters shall be provided through the service Capabilities, as defined in the WMS Standard ISO 19128, Section 7.2.4. These capabilities are mandatory and defined when a WMS is set up. They consist of service information, supported operations and parameters values. The extended capabilities section shall be used to fully comply with the INSPIRE View Service metadata requirements (see section <IP_ADDRESS>.1).

First draft...:
A.04.IR04.extended.capabilities.node
Purpose: The metadata response parameters shall be provided through the service Capabilities, as defined in the WMS Standard ISO 19128, Section 7.2.4. These capabilities are mandatory and defined when a WMS is set up. They consist of service information, supported operations and parameters values. The extended capabilities section shall be used to fully comply with the INSPIRE View Service metadata requirements (see section <IP_ADDRESS>.1).
Prerequisites
•	Test for the existence of default element namespace.
•	Test for the existence of the namespaces for INSPIRE View Services inspire_vs and  inspire_common.
Test method
•	First check if the service document contains the ExtendedCapabilities node.
•	Then check that the extended capabilities element validates against the INSPIRE schemas.
References: TG VS, Chapter <IP_ADDRESS>
Notes
Contextual XPath references
ExtendedCapabilities 	/wmts:Capabilities/ows:OperationsMetadata/inspire_vs:ExtendedCapabilities


Add Support for Washer Dryer

Hello, is it possible to add Support for this device?
https://www.midea.com/de/waschen-trocknen/waschtrockner/waschtrockner-mf200d86wb-14eas

msmart-ng discover
INFO:msmart.cli:Discovering all devices on local network.
INFO:msmart.cloud:Using Midea cloud server: https://mp-prod.appsmb.com (China: False).
INFO:msmart.lan:Creating new connection to <IP_ADDRESS>:6444.
INFO:msmart.lan:Authenticating with <IP_ADDRESS>:6444.
INFO:msmart.lan:Authenticating with <IP_ADDRESS>:6444.
INFO:msmart.lan:Authentication successful. Expiration: 2023-12-21T05:34:55, Local key: secret
ERROR:msmart.discover:Device class Device has not implemented refresh().
INFO:msmart.cli:Found 1 devices.
INFO:msmart.cli:Found device:
{'ip': '<IP_ADDRESS>', 'port': 6444, 'id': secret, 'online': False, 'supported': False, 'type': 219, 'name': 'midea_db_0150', 'sn': 'secret', 'key': 'secret', 'token': 'secret'}

Thx

Hi,
Theoretically yes, it should be possible. However, I don't have a device of that type and I can't promise I'll have time to dedicate to a new device type.
That said, a good starting point would be to download and share the device protocol files.
e.g.
msmart-ng download <IP_ADDRESS>

Additionally some screenshots of the OEM app and descriptions of what you'd like to be supported.
If you're a HA user you may find this integration interesting as it supports more device types:
https://github.com/georgezhao2010/midea_ac_lan


Add docs

We should include documentation about this package as discussed during the last meeting.

This repo should be able to render the docs, however we have to introduce the proper CI workflow.

There is the reusable one, just copy the invocation from Qibo :)

Sorry for the confusion but it's the first time I deal with this. I've created the workflows in the .github/workflows directory, how should I set them up now?

That's it ;)

Actually, since it's not yet the default, @scarrazza might have to set in the settings the GitHub Actions deployment

I did it during the meeting.

?

Yes, it is already set to all actions.

@BrunoLiegiBastonLiegi it was a minor spelling mistake, sorry to have noticed only now...

Now it is running, let's check the result and we could close this PR.

Docs deployed!
https://qibo.science/qibo-cloud-backends/stable/


Adjust FZ img for settings size

FancyZonesPage.xaml is a 4 mb animated give that is very large in both size and actual true size being ~1300x850
While this img file path in the app is updated to: https://aka.ms/powerToysFancyZoneSettingImage
the underlying img is still:
https://user-images.githubusercontent.com/9866362/77859136-f04ae880-7207-11ea-8a7f-4295342fe319.gif

Is the file taking time to load? I managed to compress it to 1.3MB, will that work?

@crutkas We moved to a static .PNG in 0.20. This issue is resolved.


Add version numbers to native libraries

Description of Change
Add a "suffix" to library names:
libSkiaSharp_<milestone>_<skiasharp>.<ext>
For example for 1.68.3:
libSkiaSharp_68_3.dll
And for 2.80.0:
libSkiaSharp_80_0.dll
This will avoid the cases when older versions are used with newer apps and causing crashes.
The reason for the 2 numbers only is the way SkiaSharp is versioned:
<major-change-indicator>.<skia-version>.<skiasharp-version>.<bug-or-packaging-fix>
So...

Going from 1.* to 2.* is nothing special - except we may have re-written the library (which we haven't actually done because we like backwards compatibility)
Going from *.1 to *.2 means that Google's code is new - and may have behavioral changes (which usually doesn't happen - except for bug fixes)
Going from *.*.1 to *.*.2 means that we did a new API or changed some interop code (and thus ABI breaking)
Going form *.*.*.1 to *.*.*.2 means that there may have been a docs/packaging/managed-only change (and the native library is still the same version)

Closing this in favor of adding a version API to the actual library in #1342


GH-916: Fix RemainingRecordsErrorHandler

Fixes https://github.com/spring-projects/spring-kafka/issues/916
The container failed to invoke the proper method for an implementation
of RemainingRecordsErrorHandler.
Regression caused by the addition of the ContainerStoppingErrorHandler.
cherry-pick to 2.1.x
There will be conflicts in the container, but the changes are simply to replace
ContainerAwareErrorHandler with RemainingRecordsErrorHandler.

... and cherry-picked to 2.1.x  as https://github.com/spring-projects/spring-kafka/commit/a1eb851a038337aa0f339b8a8c73668c079ba0b8 after fixing conflicts.

??

17:00:14.513 ERROR [container-0-C-1][org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer] Error handler threw an exception
java.lang.UnsupportedOperationException: Container should never call this

Container changes were lost on the backport (exception the copyright).

Yeah... Looks like this: https://github.com/spring-projects/spring-kafka/commit/b9461628cd03558527bc9a3180edf306cee7af19
I've missed it. Sorry


check work

feel free to check my work for the cube and octagon tetramer
https://github.com/yasmensarhan27/23-Homework7G2

Thnak you , we will take a look at that

Thank you for letting us know.


More time ops

This depends on https://github.com/rapidsai/cudf/pull/5559
This fixes #34
This fixes #29
This fixes #75
This fixes #35
A few simple date/time SQL functions that CUDF supports, but needed a bit of plumbing.

rapidsai/cudf#5559 was merged in so removed the WIP marker

test

build

@razajafri @abellina I upmerged to the latest branch-0.2 and there were merge conflicts that required some changes to the code, switch GpuExpression to Expression in a few cases.  Could you take another look?

build


Runtime is not logging dialog telemetry events

Version
4.13.0
Describe the bug
Bots created in Composer using the new runtime are only getting some of the telemetry we would expect to be logged.  Activities are being logged correctly, but no dialog events are being logged at all.
This appears to be because we are not setting the TelemetryClient on the root dialog or adding it to the TurnState, so that it can be used by adaptive actions.
The legacy runtime calls UseTelemetry on dialogManager to carry out these actions.
https://github.com/microsoft/BotFramework-Composer/blob/ef424c5583d9c2813f4b7255201d912ccc770696/runtime/dotnet/core/ComposerBot.cs#L61-L64
The UseTelemetry method is here.
https://github.com/microsoft/botbuilder-dotnet/blob/402bc02b4cbbd2f4ec359134640e99211367e4a5/libraries/Microsoft.Bot.Builder.Dialogs.Adaptive/TelemetryExtensions.cs#L17-L22
We have also identified that the value of the dialogId property logged against AdaptiveDialogAction event is not correctly being set to the parent dialog Id and no instance Id is present (which, if present, would bring parity with waterfall dialog events and the documented queries we have today).
To Reproduce
Steps to reproduce the behavior:

Create a new bot in latest Composer nightly.
Add Application Insights connection string in settings.
Run the bot and carry out a couple of conversations.

Only BotMessageReceieved / BotMessageSent / Activity events are found.

Expected behavior
Telemetry for adaptive dialogs / actions / triggers and recognizers should also be captured by default, like the below telemetry captured with the legacy runtime.

Shipping in 4.13.1


Adding auto create to pub/sub topic.

Fixes #905.

This is labelled don't merge because it doesn't adhere to the truly optimal case described in #905 by @jonparrott. I sent the PR just to have more discussion here (now that @tseaver is back in the US).
I'm worried that implementing the method used by node will be painful. I suppose we could do it with something like a custom class that is just bound to the topic and calls made for it
class CustomHttp(object):

    def __init__(self, http, object_to_create):
        self._http = http
        self._object_to_create = object_to_create
        self._creation_checked = False

    def request(self, method, uri=None, headers=None, body=None):
        # Just do the request
        try:
            self._http(method, uri=uri, headers=headers, body=body)
        except:
            # Do some other stuff

BUT, no matter how I slice it, the added complexity doesn't seem to be worth it for a measly feature like auto_create. But maybe I am undervaluing it?

It looks like I also needed to delete the reviewninja webhook (see #948 for original reviewninja post) from the GitHub settings. Lets hope it stops bothering us :smile:

To be honest, in python looking before you leap isn't as overly onerous as it is in node:
if not topic.exists():
    topic.create()

So I'm okay with nixing this is the cost/benefit isn't good. My only issue now is that the check for exists is slow, but that's not this library's fault.

@jonparrott Sorry for the huge delay in reply.
Since it was @waprin who filed, I want to feel out for how he feels about closing #905.
Also I noticed on GoogleCloudPlatform/gcloud-node#696 that you and @tmatsuo are having some reservations of autoCreate and/or think that exists() is a fine substitute for autoCreate.

Yeah in retrospect auto_create creates more confusion than convenience, I'm fine with just closing them all down.

Thanks guys! Let me know if there is anything we can do to make the sample writing process easier.


operands could not be broadcast together with shapes

File "/Users/dincersalihkurnaz/Desktop/Object-Oriented-Programming/OOP Codes/choromdino.py", line 39, in
frame_diff = np.subtract(ref_frame,frame).sum()
ValueError: operands could not be broadcast together with shapes (35,95,3) (35,95,4)

It's due to the difference in shape of the captured frame and reference frame.
Here one of the frame is of RGB and other may be in RGBA or something.
The fix is to have both frames in same shape. Color doesn't matters here.
A quick patch can be
frame_diff = np.subtract(ref_frame[:][:][:3] , frame[:][:][:3]).sum()
And hereby converting both to RGB.

Converting both to Greyscale too should work, haven't tried it though.
That would be computationally efficient too.


isAlive has been deprecated and removed in favor of is_alive in Python 3.9

isAlive has been deprecated alias for is_alive and has been removed in Python 3.9 . Python 3.9 PR : https://github.com/python/cpython/pull/15225
ibm-cos-sdk-python-core/ibm_botocore/credentials.py
2236:                if self._background_thread.isAlive():
2291:                            if not self._background_thread.isAlive():

Thank you for bringing this issue to our attention. While we do not currently support unreleased versions of Python, we do plan to resolve this issue in an upcoming patch release.

We appreciate your feedback and are looking into addressing this enhancement in Q4 of 2020. Please close out this ticket as it is now being tracked on our internal roadmap.

We are closing this ticket now as it is being tracked on our internal enhancement roadmap.

@tirkarthi This issue has been resolved in the 2.9.0 release.


Update order

Please confirm this pull request meets the following requirements:

[x] I followed the contributing guidelines: https://github.com/github/explore/blob/main/CONTRIBUTING.md.
[x] I have no affiliation with the project I am suggesting (as a maintainer, creator, contractor, or employee).

Which change are you proposing?

[x] Suggesting edits to an existing topic or collection
[ ] Curating a new topic or collection
[ ] Something that does not neatly fit into the binary options above

Editing an existing topic or collection
I'm suggesting these edits to an existing topic or collection:

[ ] Image (and my file is *.png, square, dimensions 288x288, size <= 75 kB)
[x] Content (and my changes are in index.md)

Updating the list in logical order.

Curating a new topic or collection

[ ] I've formatted my changes as a new folder directory, named for the topic or collection as it appears in the URL on GitHub (e.g. https://github.com/topics/[NAME] or https://github.com/collections/[NAME])
[ ] My folder contains a *.png image (if applicable) and index.md
[ ] All required fields in my index.md conform to the Style Guide and API docs: https://github.com/github/explore/tree/main/docs

Please replace this line with an explanation of why you think this topic or collection should be curated.

Something that does not neatly fit into the binary options above

[ ] My suggested edits are not about an existing topic or collection, or at least not a single one
[ ] My suggested edits are not about curating a new topic or collection, or at least not a single one
[ ] My suggested edits conform to the Style Guide and API docs: https://github.com/github/explore/tree/main/docs

Please replace this line with an explanation of your proposed changes.

Please note: we will close your PR without comment if you do not check the boxes above and provide ALL requested information.

Thanks for your contribution. However, we don't currently allow re-ordering of collection items, only appending to the list.


[Mention The Feature]: Feature Request Template for PathSphere's Resume Builder

Is your feature request related to a problem? Please describe.
The existing functionality of the Resume Builder allows users to enter their details, but it doesn’t offer a variety of templates, customization, or feedback on resume strength.
Adding features like resume import from LinkedIn, a guided resume creation wizard with best practices, and the ability to choose between different formats would make it more useful for a wider audience.
Users would benefit from live previews with more customization options like layout editing and font changes, as well as export formats beyond PDF (e.g., DOCX).
Describe the solution you'd like.
Template Variety: Offer a collection of resume templates designed for different industries and career stages, allowing users to select one that best fits their needs.
Customization Options: Provide a drag-and-drop interface or a set of customization tools where users can adjust the layout, font, color scheme, and more.
Import Resume: Allow users to import their resumes from LinkedIn or upload existing files to start from a baseline.
Export Options: Enable users to export resumes in multiple formats such as PDF, DOCX, and even plain text.
Describe alternatives you've considered.
An alternative solution could be integrating third-party resume building services into PathSphere, but that may reduce flexibility and brand control.
Allowing users to upload pre-built resumes instead of using the built-in builder, but that would eliminate the platform's uniqueness.
Additional context.
No response
Show us the magic with screenshots
No response
Checklist

[X] I have checked the Existing Issues
[X] I have read the Contributing Guidelines
[X] I want to work on this issue. (optional)

sure go ahead
Make sure to join the discord server for further communication
Don't forget to star the repository
Complete the task in next 2 days and kindly mention your issue # in your pr like this:
Closes #IssueNumber
Note: the level of the issue may change based on the quality of the PR cod

after opening it locally why the css is not visible


ScatterSpot "show" value seems to be ignored?

I'm creating a ScatterChart with ScatterChartData that contains multiple ScatterSpots.
Despite setting show to false for some of these spots, they are shown anyway.
Example:
ScatterSpot(0, 0, show: false);
ScatterSpot(10, 10, show: true);
Result: Both ScatterSpots are shown...

Fixed in 0.11.0,
Thanks for reporting!


Added JSON endpoint and test.

Added JSON handling to the homepage route and a test.
I have a small side-project, ReferHub, that could use the data.

Invalid as of efead6b265b13e2abf5fd0da25b0bebc2f801272


Main requests metrics are missed in InfluxDB

Hi team!
I use JMeter 5.5 and Java 19 at Windows OS.
I have added listener and congigured according to instruction.
Having started the test I could find general metrics only (info about threads, runId).
But there were no any requests related metrics. No any errors in Jmeter console.

@boitcex hi, have you used any custom plugins to make the load?

@boitcex you have to wait a bit while loading,.. the latest fixes in https://github.com/mderevyankoaqa/jmeter-influxdb2-listener-plugin/releases/tag/v2.7
you can try it and post here in case of issue,
BR,
Mike


Timespan example is wrong

There is an incorrect example for
https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-timer?tabs=csharp#example
In the Timespan examples
"24:00:00" | every 24 days
is wrong, either the value should be "24.00:00:00" or the description should be "every 24 hours"

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

ID: b5527c3b-a5da-c73d-66c2-20d96003ff7c
Version Independent ID: 42154c7b-b0e0-26db-79bc-3f1673c48e40
Content: Timer trigger for Azure Functions
Content Source: articles/azure-functions/functions-bindings-timer.md
Service: azure-functions
GitHub Login: @craigshoemaker
Microsoft Alias: cshoe

Hello @pdhunsberger,
Thank you for your feedback! We will review and update as appropriate.

Hello @pdhunsberger,
Thank you for your feedback! We will review and update as appropriate.

Hello @pdhunsberger, the value "24:00:00" | every 24 days is correct as quoted from the TimeSpan documentation.

For example, the value of hh, the hours component, must be between 0 and 23. Because of this, passing "23:00:00" to the Parse method returns a time interval of 23 hours. On the other hand, passing "24:00:00" returns a time interval of 24 days. Because "24" is outside the range of the hours component, it is interpreted as the days component.

Please let me know if there are any concerns.

Hello @pdhunsberger, the value "24:00:00" | every 24 days is correct as quoted from the TimeSpan documentation.

For example, the value of hh, the hours component, must be between 0 and 23. Because of this, passing "23:00:00" to the Parse method returns a time interval of 23 hours. On the other hand, passing "24:00:00" returns a time interval of 24 days. Because "24" is outside the range of the hours component, it is interpreted as the days component.

Please let me know if there are any concerns.

Hello @pdhunsberger,
Since we have not heard back from you we will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly reopen the issue and continue the discussion.

Hello @pdhunsberger,
Since we have not heard back from you we will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly reopen the issue and continue the discussion.


enabling round does not give correct result

Hi,
If I use humanizeDuration(moment().diff(thisDate), { delimiter: ' ', largest: 3 }); then I get something like 21 minutes 16.291 seconds but if I include the round parameter like humanizeDuration(moment().diff(thisDate), { delimiter: ' ', largest: 3, round: true }); then I get 0 seconds
I'm using v3.7. Am I doing something wrong?
thx,
Chris

Hmm. Could you provide a sample input (ie, what is the value of moment().diff(thisDate))?

thisDate is "2016-04-16T22:13:56+0100" and the duration coming out of moment().diff(thisDate) is 2838550.

Hmm, this looks right to me:
humanizeDuration(2838550, { delimiter: ' ', largest: 3 })
// => "47 minutes 18.55 seconds"

humanizeDuration(2838550, { delimiter: ' ', largest: 3, round: true })
// => "47 minutes 19 seconds"

Is that the output you're getting?

I'm getting the same result as @tazmaniax . Looks like it's an issue around the rounding issue.
humanizeDuration( 2588982, { largest: 1, round: true } );

Once it enters the if (options.round) block, pieces looks as thus:

But it comes out

and eventually sets them all to 0.
it appears to be looping through and setting the value to 0 ~ line 373:
if ((piece.unitCount % ratioToLargerUnit) === 0 || (options.largest && ((options.largest - 1) < i))) {
    previousPiece.unitCount += piece.unitCount / ratioToLargerUnit
    piece.unitCount = 0
}

Might need a bit more digging to figure out exactly what's going on, but I at least narrowed it down to that.

Thanks for reporting and digging--I think I may have been testing on an old
version. I'll take a look.

Sorry I'm slow to fix this! I've been busy.

This has been fixed in<EMAIL_ADDRESS>Thanks to @brandly for his helpful PR!

Thx!