Proxied transfers. Does not subscribe on proxied balance.

Description
When user got an error about balance:

that won't be updated until select this account as an active

Example
https://github.com/novasamatech/nova-spektr/assets/40560660/853cda15-b480-4283-a54b-e5cce1d461a5

Steps to Reproduce

Select as active proxied wallet
Trigger an error about insufficient balance
Send a few tokens to this account in another app
Try to sign the operation after successful transfer

Expected Behavior
The app get updated balances of proxied wallet
Actual Behavior
Balance won't be updated until switch to the proxied wallet
Environment
https://github.com/novasamatech/nova-spektr/commit/23ee363cc50fa75f156ee799eb31603b13a0eee2

Status verification: ⏳
What has been verified:

regular proxy ✅
pure proxy - https://github.com/novasamatech/nova-spektr/issues/1718


Optimizer doesn't work with a single parameter

Here is the code snippet that reproduces the issue:
    def foo(x):
        return x[0]**2

    x0 = np.array([1])
    lower_bounds = np.array([-10])
    upper_bounds = np.array([10])
    plausible_lower_bounds = np.array([-5])
    plausible_upper_bounds = np.array([5])
    bads = BADS(foo, x0, lower_bounds, upper_bounds, plausible_lower_bounds, plausible_upper_bounds)

Traceback (most recent call last):
  File "D:\Miniconda3\lib\site-packages\IPython\core\interactiveshell.py", line 3505, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-41-0b496bbed19e>", line 9, in <module>
    bads = BADS(foo, x0, lower_bounds, upper_bounds, plausible_lower_bounds, plausible_upper_bounds)
  File "D:\Miniconda3\lib\site-packages\pybads\bads\bads.py", line 245, in __init__
    self.optim_state = self._init_optim_state_()
  File "D:\Miniconda3\lib\site-packages\pybads\bads\bads.py", line 602, in _init_optim_state_
    self.var_transf = VariableTransformer(
  File "D:\Miniconda3\lib\site-packages\pybads\variable_transformer\variables_transformer.py", line 117, in __init__
    ) = self.__create_hypercube_trans__()
  File "D:\Miniconda3\lib\site-packages\pybads\variable_transformer\variables_transformer.py", line 164, in __create_hypercube_trans__
    and (self.pub[:, i] / self.plb[:, i] >= 10).item()
ValueError: can only convert an array of size 1 to a Python scalar

Thanks for posting this, we will look into it.

Hello,
Thank you a lot for posting this issue.
I would like to share with you that we released a new patch version of PyBADS, v1.0.2.
It includes the fix to the single parameter optimization.
You can update your environment or reinstall the library by following pypi or conda instructions, e.g.  pip install --upgrade pybads.


[consensus] avoid erroring on stale timeout

Motivation
This indicates the round moves forward successfully and is not an error.
Have you read the Contributing Guidelines on pull requests?
Y
Test Plan
Existing tests.
Related PRs
(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/libra/website, and link to your PR here.)

@bors-libra r+

:pushpin: Commit b25cbc2 has been approved by ankushagarwal

:hourglass: Testing commit b25cbc265264daefca4f49390601290a386a6212 with merge 3174cc9be4097901078283bff41da8743f5eea1c...

:sunny: Test successful - checks-actions_land_blocking_test, checks-circle_commit_workflow
Approved by: ankushagarwal
Pushing 3174cc9be4097901078283bff41da8743f5eea1c to master...


Update mesh-warp and add earth orography jobs to buildkite longrun pipelines.

[x] Check CI build.
[x] Merge ClimaCore#1262 + Update Manifest.toml
[x] Complete longrun-test.
[x] Check plots.

May close #1282.

bors r+


feat: CRN-1047 Remove non-onboarded users from speakers

We should update the description with  the Jira ticket etc.


chore(main): release 1.4.13

:robot: I have created a release beep boop
1.4.13 (2024-03-01)
Miscellaneous Chores

deps-dev: bump phpunit/phpunit from 11.0.3 to 11.0.4 (#96) (aafc2a7)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/cedricziel/mattermost-php/releases/tag/v1.4.13 :sunflower:


Speed of downloading image is very slow

Hello
tried to run your script
I am at the step downloading 500 images
but for me it seems that downloading is very slow
can you explain me please why is that?

That's because the script saves images with public licenses only. You can remove this checking so it would be faster. Also speed depends on your search query, i.e. 500 images on "cats" query would be downloaded much faster than 500 images on "linus torvalds" query.


TaxForms: Ignore pending expenses

Fix https://github.com/opencollective/opencollective/issues/3691

Closing in favor of: https://github.com/opencollective/opencollective/issues/3691#issuecomment-729724330


Implement /server_control::stop

🎉 New feature
Closes #1237
Summary
Implemented the stop part of /server_control service.
Test it

ign gazebo -v4
ign service -s /server_control --reqtype ignition.msgs.ServerControl --reptype ignition.msgs.Boolean --timeout 1000 --req 'stop: 1'
The server should stop and exit in a while.

Checklist

[x] Signed all commits for DCO
[x] Added tests
[ ] Added example and/or tutorial
[x] Updated documentation (as needed)
[ ] Updated migration guide (as needed)
[x] codecheck passed (See contributing)
[ ] All tests passed (See test coverage)
[ ] While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge

One question that came to my mind was what to do with the msgs::ServerControl message definition. It is apparently very much tied to Gazebo classic with the new_port member.

I did a few tests locally, and it seems to me it'd be better to not call this->Stop() directly from the callback, but rather spin a separate thread for it. Otherwise, there could possibly be a deadlock in case the service is called from a plugin whose destructor cannot be finished until the service call finishes.
What do you think about adding this async execution?

Here's a GUI plugin using the service: https://github.com/ignitionrobotics/ign-gui/pull/335 .

there could possibly be a deadlock in case the service is called from a plugin whose destructor cannot be finished until the service call finishes.

I'd have to look a bit more closely. It looks like SimulationRunner is not handling the stop immediately and just sets a flag to handle the stop later.

With the async implementation, I haven't seen any yet.

But I think you're onto something. If you've seen that it works I think it's worth it pursuing that approach.

I've changed the callback to run in a thread.
If you look into SimulationRunner::Stop(), it emits an event, which I think can be blocking and could be the source of problems I'm talking about...

This pull request has been mentioned on Gazebo Community. There might be relevant details there:
https://community.gazebosim.org/t/new-ignition-releases-2022-03-01-citadel-edifice-fortress/1313/1

This pull request has been mentioned on Gazebo Community. There might be relevant details there:
https://community.gazebosim.org/t/new-ignition-releases-2022-04-13-fortress-edifice/1367/1


fix: allow empty values for dimensions

We triggered two failing tests when we upgraded our version of Cypress. This PR attempts to address one of those failures. It allows for the width and height input fields to be empty.
Previously, they were number fields, and always had to have a value of at least 0.
I tried not to stray too far from the task at hand, but I did consolidate a few things.
User Cases:

As a user, I expect to be able to clear an input field before I begin typing

Bad: 526 --> clear field --> 0 --> type "300" --> new value is 0300
Good: 526 --> clear field --> "" --> type "300" --> new value is 300

As a developer, I want my tests to pass ^_^

Notes:

Will likely conflict with: https://github.com/OHIF/Viewers/pull/1235

This PR attempts to address other UX issues/bugs

Related PR: https://github.com/OHIF/Viewers/pull/1293#issuecomment-565259817

PR Checklist

[x] Brief description of changes
[x] Links to any relevant issues
[x] Required status checks are passing

The failures associated with this change appear to be resolved

[x] User cases if changes impact the user's experience
[x] @mention a maintainer to request a review

CC: @igoroctaviano for code review
CC: @mirnasilva for QA check

Very good job @dannyrb ! 🌟 It's a lot cleaner as well.
I have a few points that maybe is worth fixing in another branch or this one:

So, when the ViewportDownload first renders, the value in the width/height fields is 512 but the preview box doesn't match this value, it's very small and annotation very big, when I change to 513 or something causing a change, the preview increases properly to its correct size. Maybe we should start rendered with the correct value?

Even if the user grows in equal pairs like 5x5 and 10x10, for values below 100 the image width is always bigger and the aspect is weird, maybe we should have a min size? to keep preview box consistent?

👋 Thanks for the feedback, @igoroctaviano.

So, when the ViewportDownload first renders, the value in the width/height fields is 512 but the preview box doesn't match this value, it's very small and annotation very big, when I change to 513 or something causing a change, the preview increases properly to its correct size. Maybe we should start rendered with the correct value?

This is a good catch. I'll patch this for this PR.

Even if the user grows in equal pairs like 5x5 and 10x10, for values below 100 the image width is always bigger and the aspect is weird, maybe we should have a min size? to keep preview box consistent?

This fix will be bundled in a separate PR here: #1235

Hi @dannyrb , nice work! 🚀
I just did a round of tests and we are good!
I'm not running the Visual Regression tests in this PR because we don't have any visual impact on the UX.
Moving this task to Done!
Thanks!


Error starting up on 1.16.3, mixin error according to logs?

debug
https://hatebin.com/kzynhawnly
latest
https://hatebin.com/wuivkibzdq

Wow, I don't know how I didn't get that error when testing. I fixed the issue and I'll be posting a working build on curseforge shortly.


Some notes on alignment with pangeo-forge-recipes around "keys"

At today's Pangeo Forge meeting, @alxmrs told us a bit more about Xarray Beam. I'm happy to note that we are aligning a bit around certain abstractions. I'm not proposing to merge or share code or anything at this stage. Just happy to see that we have independently arrived at some similar concepts. Comparing side by side may also suggest improvements.
Xarray Beam
https://xarray-beam.readthedocs.io/en/latest/data-model.html#keys-in-xarray-beam

To keep track of how individual records could be combined into a larger (virtual) dataset, Xarray-Beam defines a Key object. > Key objects consist of:

offsets: integer offests for chunks from the origin in an immutabledict
vars: The subset of variables included in each chunk, either as a frozenset, or as None to indicate “all variables”.

Pangeo Forge
We currently call this an "index," although I agree that key is a better name. Our use of indexes is less well documented as it is not really public API but more of an internal thing. We mention it here: https://pangeo-forge.readthedocs.io/en/latest/recipe_user_guide/file_patterns.html#inspect-a-filepattern

The index is its own special type of object used internally by recipes, a pangeo_forge_recipes.patterns.Index, (which is basically a tuple of one or more pangeo_forge_recipes.patterns.DimIndex objects).

The code is pretty straightforward and the comments explain things better.
https://github.com/pangeo-forge/pangeo-forge-recipes/blob/49997cb52cff466bd394c1348ef23981e782a4d9/pangeo_forge_recipes/patterns.py#L70-L114
These indexes are used both by FilePatterns (see #31) as well as for parallel writing of Zarr datasets.
cc @cisaacstern

Thanks for the references! I've been picking this up as well in my review of https://github.com/google/xarray-beam/pull/31. This is indeed a happy coincidence.
From an information perspective, it seems like Index keeps track of a little more information? We don't have an equivalent of sequence_len in xarray_beam.Key. I can see how that would be useful -- in Xarray-Beam, you have to supply dimension sizes explicitly in Rechunk. On the other hand, maybe you don't need that information for many operations, so it could be annoying to need to update that.
Did you consider using a frozenset instead of a tuple for Index?


[17.09] chromium: build with gcc7

Fixes https://github.com/NixOS/nixpkgs/issues/37314
Motivation for this change
Please see the linked issue. Confirmed that CTRL-C works and I don't see other regressions in basic usage.
/cc @7c6f434c
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[x] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Failure on aarch64-linux (full log)
Attempted: chromium
Partial log (click to expand)
make[2]: Leaving directory '/build/adwaita-icon-theme-3.24.0'
make[1]: Leaving directory '/build/adwaita-icon-theme-3.24.0'
glibPreFixupPhase
hicolorPreFixupPhase
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/wgh3g1pcn2rx90i3zy98rjn2va9mp27g-adwaita-icon-theme-3.24.0
patching script interpreter paths in /nix/store/wgh3g1pcn2rx90i3zy98rjn2va9mp27g-adwaita-icon-theme-3.24.0
checking for references to /build in /nix/store/wgh3g1pcn2rx90i3zy98rjn2va9mp27g-adwaita-icon-theme-3.24.0...
cannot build derivation '/nix/store/gwq8k3na129ifqhspgay1yrzriv6xjl4-chromium-65.0.3325.162.drv': 2 dependencies couldn't be built
error: build of '/nix/store/gwq8k3na129ifqhspgay1yrzriv6xjl4-chromium-65.0.3325.162.drv' failed


List of Vulnerability Pages for OEMs and Suppliers

Need a page to list all the vulnerability management programs.
GM, FCA, BMW, Bosch, Contential, etc.

Maybe we can do this in the wiki.


OBSProject.OBSStudio version 27.2.1

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?

[ ] Have you tested your manifest locally with winget install --manifest <path>?
[x] Does your manifest conform to the 1.0 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

Hmm, GitHub preview looks normal but the raw looks weird https://raw.githubusercontent.com/microsoft/winget-pkgs/4498fbe9873346e27643e9e3637a1c3de2c86532/manifests/o/OBSProject/OBSStudio/27.2.1/OBSProject.OBSStudio.locale.en-US.yaml

AHH It added Tabs instead of spaces


how can i edit json?

there is not a document to show how can eidt json, it just only show json data ?

The information on how to edit json is in the README.md on the home page of this repository. To edit a json object you pass it in to the JSONEditor component which will render an editable view that you can edit existing elements or add new ones .

function onJsonChange(key, value, parent, data){
   console.log(key, value, parent, data);
}

<JSONEditor
     data={{name: "sam", age: 20}}
     onChange={onJsonChange}
/>

Closing as resolved


Wrong name shown in home screen

I am using iOS12 on my iPhone 6 Plus, and the name of the app changed to $(PRODUCT_NAME) after the recent update.
I think we need to replace all the instances of $(PRODUCT_NAME) with DereGuide

Thank you for this issue. Fixed.


chore: bdd-nh-1587213668 to 0.0.1

chore: Promote bdd-nh-1587213668 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Added FAQ on encryption at rest

Incorporated content from @jasonblais https://github.com/mattermost/docs/pull/2491 and expanded.
@jasonblais, @crspeller - Please let me know what you think or if I have anything wrong.  Maybe too long?

Thanks @sadohert! Discussed with Chris, there are some technical updates the engineering team would like to make, so we've created a ticket for them to do so. I'll apply a WIP label for now while those updates are being made, and we can then queue for a review.

@jasonblais - Do you have a sense for timing on this?  Was hoping to send to a customer as a follow-up to their E2E questions.

@sadohert It's scheduled for security team's triage on Thursday. Apart from being for a customer (which I've communicated to the team), is this time-sensitive?

Yes, I've wanted to provide a comprehensive resposne to the customer for
over a month but wanted to create this artifact first (for re-usability).
If you think the reviews still need past this week I'll take a form of what
I've produced and share it now.
On Mon, 18 Mar 2019 at 14:26, Jason Blais<EMAIL_ADDRESS>wrote:

@sadohert https://github.com/sadohert It's scheduled for security
team's triage on Thursday. Apart from being for a customer (which I've
communicated to the team), is this time-sensitive?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/mattermost/docs/pull/2581#issuecomment-474043917, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAP5wJ7xnHCtE1Dnw_33cyAg88S9zroYks5vX9pdgaJpZM4bkmLw
.

This issue has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!
/cc @jasonblais @hanzei

@sadohert was the chat with Chris helpful in terms of next steps?

Hey @jasonblais  - Yes it was.  I have some notes to implement changes on my original PR and I will re-submit.  Will try to get this done before Monday.

@sadohert re-open when ready.


Unfixed mojibake: â??

I realize this is a tiny issue, but I found a few places where a single-quote or apostrophe ' was getting mangled as â??. I'm not sure if there's a general fix for this, or if just a corner case that I need to be aware of.
Real page where that happens: http://www.metrolyrics.com/oh-girl-lyrics-various.html
The text on the page:  They say, â??Let the woman take care of youâ??
Here's another example:
>>> ftfy.fix_text("See loverÃ¢??s hand in hand walk by")
'See loverâ??s hand in hand walk by'

Here's where I got the previous snippet: http://www.metrolyrics.com/when-will-the-good-apples-fall-lyrics-seekers.html
Let me know if you need more examples. Thanks.

The problem here is that the question marks represent missing data.
Presumably the left and right curly apostrophes were being mis-decoded as 'â\x80\x98' and 'â\x80\x99' -- that is, the two characters after the â are control characters -- and then the control characters were replaced by question marks.
But in this case alone there are 1024 different characters that could have become â??, so there's nothing that ftfy can do to recover the text.

Thanks for addressing my issue so quickly.
I have hundreds of megabytes of text that has that sequence, and as far as I can tell, it's always supposed to be ', so I'll just add in a post-processing step after fix_text.


Need better folder and package structure for beacon chain and shard chain

Currently the folder 'blockchain' and the package 'blockchain' are used by beacon chain, and 'database' is used by beacon chain too.
If the shard chain is under the same name, it will be confusing.
So we may consider to use 'beacon' for beacon chain related stuff, and 'shard' for shard chain?

This seems like a good idea. We should have beacon, p2p, validator, shard for each module.

Fixed this issue in PR #22


Could not find translation for "block.minecraft.acacia_sign" in selected language file

How can I turn this off in the console or do I have to rewrite something? Who knows what advice ?
https://pastebin.com/MJdF3b32

If you haven't changed anything in the language file, delete it and let the plugin recreate it. If you have changed messages, make a backup and paste them in the recreated file.

Thank you :)


Latency between sending a message in Teams and it being available for export via this API

Are there any guarantees that once a message is sent using a Teams client, it will be available for export through this API within x hours?
The Security and compliance in Microsoft Teams page has a note that says:
There can be up to a 24-hour delay to discover Teams content.

Does that imply that x in my question above is 24 hours?

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

ID: 6eb2244d-b82d-0559-0255-ac0cb7ce05e3
Version Independent ID: e3a7a842-7efe-40db-e3c7-da56d7b24c02
Content: Export content with the Microsoft Teams Export APIs - Microsoft Teams
Content Source: Teams/export-teams-content.md
Service: msteams
GitHub Login: @SerdarSoysal
Microsoft Alias: serdars

@akudhingra Thank you for submitting feedback.
I think the best way forward is if you open a service ticket in your tenant so this can get resolved ASAP. Based on the outcome let me know if it is something that 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 so we can feed whatever information you discover into the content.


until we get a custom page lets return the unauthorized json

see page https://github.com/fabric8io/fabric8-ui/issues/1393 for details of
the not authorized page

[merge]


Infinite digest loop when combining am-time-ago and amTimezone in 1.0.0-beta.1

Code to reproduce the issue:

I am having a similar issue, did you solve it?


multi-line in keyboard input field

when use a multi-line and add a big paragraph in the input field i can't see the right position and text where the next text will be added

Closing issues older than 180 days. If this is still an issue, please reactivate with recent information.


Negative distances go in the opposite direction

Previous 2D (and 3D) projection functions I've worked with have all responded to negative distance with as being in the opposite of the positive distance. Up for discussion whether this should be changed.
(part of my demo for the dev summit)

I agree that definitely sounds like the right thing to do. We should check the existing usage quickly.

I only saw one potentially problematic area in navigator where we need to be careful with the loiter_radius that's interpreted as negative for counter-clockwise.
https://github.com/PX4/Firmware/blob/b1641740379787f6fcc1ab2a0b9e361e6be0534e/src/modules/navigator/mission_block.cpp#L441-L444

@dagar The Firmware test failed here for a reason. Please pay attention to them before merging.

@dagar The Firmware test failed here for a reason. Please pay attention to them before merging.

The danger with tolerating these builds being flaky at different periods is people stop looking at them. If things are expected to be working now I'd set them as required in PX4/ecl branch protection.

Agree, it is not flaky anymore. There is also a mechanism in place that allows to perform update to the interface of ECL: create a branch with the same name as the ecl branch in Firmware.


Execute deleteInstanceId on a background thread

Calling deleteInstanceId() on a background thread is mandatory since this call is blocking.
See https://firebase.google.com/docs/reference/android/com/google/firebase/iid/FirebaseInstanceId#deleteInstanceId()
This cause my App to suspend other network requests that could have called in parallel. The code I submitted solved the issue.
Thanks a lot for the plugin!

Thanks @trytuna looks very nice
I’ll be testing and releasing soon

Any updates on this? Sorry for being impatient for this effects our App quite excessive

Any updates? I am having the same problem

it's patched to 1.0.1
thanks @trytuna


rdoc fails with ruby 1.9.3

(RDoc::Error) unknown type of %string "i"
The gem successfully installs flagged with --no-document.

Works for me:

Can you please provide more details reproduction steps?
For what it’s worth, this is the last release that will support Ruby 1.9.3, so you make want to take this opportunity to upgrade to 2.0.0 or later.

Closing as this has been open since June with no response. @dmlogs if this is still a problem, please feel free to reopen the issue.


[T3A2][T17-A3]Abdul Rahman

Completed LO-Encapsulation. Ready for Review!~

Good job on the tutorial. Some nitpicking, please configure your eclipse to "use spaces only". This will convert tabs into 4 spaces. Check this link out: https://readlearncode.com/code-and-stuff/how-do-i-change-eclipse-to-use-spaces-instead-of-tabs/


Impersonation for Admin role

Hey @ssalinas!
I've got a feature request -- probably this is something you can help me with.
Currently we're using non-auth setup of Singularity cluster in our infrastructure.
Pipeline is as follows:
User is making some commit into GH -> Jenkins is picking up changes+author, building and pushing the deployment into Singularity -> deploy is available in UI. At this point any deploy has appropriate 'Deploy user' as we're pushing it via curl with something like
curl -X POST http://singularity_host:7082/singularity/api/deploys?user=my_nice_username -d '{ "deploy": { "command": "echo $HOSTNAME", "containerInfo": { "type": "MESOS" }, "env": { "DEPLOY_APP": "my_nice_app", "DEPLOY_ENV": "some_env", "DEPLOY_OWNER"<EMAIL_ADDRESS>}, "executorData": { "user": "meh" }, "executorType": "custom", "id": "some_id", "requestId": "my_nice_app", "resources": { "cpus": "1", "diskMb": "512", "memoryMb": "512", "ports": "0" }, "shell": "true", "user": "meh", "version": "meh" } }' -H "Content-Type: application/json"
In this case 'Deploy user'=my_nice_username (and yeah, we don't have any auth in this example, we're just enforcing proper username in UI for tracing purposes/sanity reasons)
If we will enable auth in Singularity and allow deploys only from Jenkins (or any single robouser with admin access) -- all deploys will get username from base64 hash, ignoring ?user=my_nice_username.
Is it possible to add some sort of Impersonation for Admin role? So Admin will be able to deploy anything (expected) and Singularity won't ignore ?user=my_nice_username?

Hmm, yeah we don't have any sort of concept of 'acting on behalf of a user' in the system. TBH I'm not sure when we'd have a chance to work on a PR for this. PRs are always welcome. Or, as a workaround, there are message fields in each of the request updates and deploy apis. The deploy one isn't exposed in the UI (unless you hit the json button) but that would be a very easy addition to make and still allows some amount of visual/tracing if you were to put the username there

That might do the trick, thank you.
We'll look into this internally.


gitlab: 12.5.4 -> 12.5.5

Motivation for this change
Bugfix update with one security-relevant dependency update:

Security (1 change)
Upgrade Akismet gem to v3.0.0. !21786
Fixed (2 changes)
Fix error in updating runner session. !20902
Fix Asana integration. !21501

Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[x] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Notify maintainers
cc @talyz @fpletz @globin @krav

Oops, let's continue #75834


Question: Is it possible to match patterns in the event stream?

Hi first of all cool lib!
I want to use this library for some research work. Now I'm wonder if it is possible to do pattern matching over an event stream and how? 😄
I want to match patterns like a -> b -> c where each letter is an event. If these events follow the pattern should be detected and a callback should then be executed. Is this possible now? Do you have a documentation or examples where I can find more detailed information?
Thanks!

Hi @timidak!
Thanks for the complements and sorry for taking so long (I've been busy with other projects and your issue passed unnoticed). Please, reopen the issue w/you are still interested.
So, by ->, did you imply any temporal correlation or the order doesn't matter?

If the former, there's currently no support or operator for such. Actually, it's among some of the patterns still unimplemented (aka sequence). As noted in the contributing section, the majority of the operators have been taken from the book Event Processing in Action[1]. Within the chapter 9, you may find all the operations that we planned to implement in the project. Actually, this project has been the subject two researches [2] and [3]; [3] contains more updated information about the project including the operators already implemented.

If the latter, maybe the all operator could be used. It relies on a set of event type ids that you pass to the operator. In its most basic use, you could "call it" like all(['a', 'b', 'c'], 'event detected') where 'a', 'b' and 'c' are the event type ids and 'event detected' is the id of the newly generated event.

All the syntax has been based on the RxJS's syntax and a basic example can also be found in [3]. There is no current documentation as I've been working most time in this project only by myself; thus, it is one of the pending tasks. We gladly accept any contribution that could improve the project/code or help with those pending tasks :)
PS: I filled the code with comments to make easy for anyone who want to contribute or even just understand some operations. Thus, if you access the logical file in the patterns folder (RxJS adapter), you can see those comments and possibly a more descriptive explanation of the logical operators for instance.
Best,
Carlos
Sources
[1] Etzion, O., & Niblett, P. (2010). Event processing in action. Manning Publications Co..
[2] Zimmerle, C., & Gama, K. (2018, October). Reactive CEP: Integrating Complex Event Processing into Web Reactive Languages. In Proceedings of the 24th Brazilian Symposium on Multimedia and the Web (pp. 69-72).
[3] Zimmerle, C., Oliveira, W., Gama, K., & Castor, F. (2019, September). Reactive-based complex event processing: An overview and energy consumption analysis of cep. js. In Proceedings of the XXXIII Brazilian Symposium on Software Engineering (pp. 84-93).


Kotlin tree-sitter support

did you wrote highlight and injections queries yourself?

did you wrote highlight and injections queries yourself?

No I didn't, should I mention where did I get it?


Deploy<EMAIL_ADDRESS>&<EMAIL_ADDRESS>to prod

@mattrosno these are both on test so you could check that? https://web-app.j73b4w218e4.us-south.codeengine.appdomain.cloud/
you could also check the version changelogs to see what'll be included:
https://github.com/carbon-design-system/carbon-platform/blob/main/services/web-app/CHANGELOG.md#0238-2022-09-08
https://github.com/carbon-design-system/carbon-platform/blob/main/services/logging/CHANGELOG.md#1141-2022-09-08


every 2nd column removed

Thank you for the great lightweight script which I'm using successfully on 2 charts.  The first has 5 columns & works beautifully.  For the 2nd I had to comment out the code below:
	columns.reduce((all, column) => { 		all[column.key] = column 		return all 	}, columns)
For some reason it is transforming data with this set of 18 columns:
{1: "Collaboration & Teamwork", 2: "Trustworthiness", 3: "Empathy & Respect", 4: "Relationship-centred Care", 5: "Effective Communication", 6: "Application of Expertise", 7: "Problem-solving", 8: "Managing Workflow", 9: "Continual Learning", 10: "Commitment", 11: "Diligence", 12: "Sustainable Engagement", 13: "Motivation", 14: "Resilience", 15: "Adaptability", 16: "Emotional Competence", 17: "Reflective Self-evaluation", 18: "Self-confidence & Identity"}
into a VirtualNode with every 2nd column replaced with a copy of its predecessor, which then results in an SVG chart with every 2nd column missing.  See screenshots below.  Weird reduce behaviour, or something I'm doing wrong?

Thanks for the detailed report. What do the parameters look like you pass into radar()?

Here it is...
            const columns = this.props.Ratings.reduce((prev, curr) => {
                prev[curr.Id] = curr.Title;
                return prev;
            }, {});
            console.log(columns);
            const data = this.props.Ratings.reduce((prev, curr) => {
                prev[curr.Id] = curr.Rating / 100;
                return prev;
            }, { class: 'user' });
            console.log(data);
            const options = {
                captionProps: () => ({
                    textAnchor: 'middle', fontSize: 2
                })
            };
            let chart = radar(columns, [data], options);

Ideed there seems to be a bug. I can confirm it on the website with the following values:
{
	1: 'Price',
	2: 'Usefulness',
	3: 'Design',
	4: 'Battery Capacity',
	5: 'Camera Quality'
}

[
	{
		// iphone
		color: '#edc951',
		1: 1,
		2: .7,
		3: 1,
		4: .9,
		5: .9
	}
]

and yet not for:
{0: "Effective Relationships", 1: "Veterinary Capabilities", 2: "Professional Commitment", 3: "Psychological Resources", 4: "Self-awareness"}

[{0:0.72,1:0.5,2:0.76,3:0.92,4:0.66}]

starting your example at index 0 fixes it...

I fixed numeric indexes in a recent commit but haven't pushed & released yet.

Should be fixed as of<EMAIL_ADDRESS>


NXP: Add support for Kinetis KV5x SoC series and TWR-KV58F220M development board

This patch series adds support for the NXP Kinetis KV5x SoC series and the TWR-KV58F220M development board.
As mentioned in the documentation, KV5x support is non-existent in pyOCD, and the OpenSDA J-Link firmware seems to be broken for KV5x targets at the moment, so an external debug probe needs to be used in order to debug the board.

Not sure what's going on with the two failing tests there, they seem to be entirely unrelated to this PR (and for an entirely different board...)

@dbkinder Comments addressed.

ping @dbkinder @nashif

@fbrozovic , I meet 3 issues by kernel testing see below

kernel.mem_protect.mem_protect
`
======== Target Main Serial:   ========
***** Booting Zephyr OS version 1.14.99 *****

Running test suite memory_protection_test_suite
===================================================================
starting test - test_permission_inheritance
PASS - test_permission_inheritance
===================================================================
starting test - test_mem_domain_valid_access
PASS - test_mem_domain_valid_access
===================================================================
starting test - test_mem_domain_invalid_access
FAIL - test_mem_domain_invalid_access
===================================================================
starting test - test_mem_domain_partitions_user_rw
PASS - test_mem_domain_partitions_user_rw
===================================================================
starting test - test_mem_domain_partitions_supervisor_rw
PASS - test_mem_domain_partitions_supervisor_rw
===================================================================
starting test - test_mem_domain_partitions_user_ro
Assertion failed at ZEPHYR_BASE/tests/kernel/mem_protect/mem_protect/src/mem_domain.c:221: user_thread_entry_ro: (Reached unreachable code)

The user thread is allowed to access a read only partition of a memory domain
FAIL - test_mem_domain_partitions_user_ro
===================================================================
starting test - test_mem_domain_add_partitions_invalid
Assertion failed at ZEPHYR_BASE/tests/kernel/mem_protect/mem_protect/src/mem_domain.c:340: mem_domain_for_user_tc3: (Reached unreachable code)

Fault didn't occur when we accessed a unassigned memory domain.
FAIL - test_mem_domain_add_partitions_invalid
===================================================================
starting test - test_mem_domain_add_partitions_simple
PASS - test_mem_domain_add_partitions_simple
===================================================================
starting test - test_mem_domain_remove_partitions_simple
Assertion failed at ZEPHYR_BASE/tests/kernel/mem_protect/mem_protect/src/mem_domain.c:457: mem_domain_for_user_tc5: (Reached unreachable code)

Fault didn't occur when we accessed a unassigned memory domain.
FAIL - test_mem_domain_remove_partitions_simple
===================================================================
starting test - test_mem_domain_remove_partitions
Assertion failed at ZEPHYR_BASE/tests/kernel/mem_protect/mem_protect/src/mem_domain.c:498: mem_domain_test_6_2: (Reached unreachable code)

Fault didn't occur when we accessed a unassigned memory domain.
FAIL - test_mem_domain_remove_partitions
===================================================================
starting test - test_mem_domain_remove_thread
Assertion failed at ZEPHYR_BASE/tests/kernel/mem_protect/mem_protect/src/mem_domain.c:551: mem_domain_for_user_tc7: (Reached unreachable code)

Fault didn't occur when we accessed a unassigned memory domain.
FAIL - test_mem_domain_remove_thread
===================================================================
starting test - test_mem_domain_destroy
PASS - test_mem_domain_destroy
===================================================================
starting test - test_kobject_access_grant
0x00000000 is not a valid k_sem
syscall z_hdlr_k_sem_take failed check: access denied
***** Hardware exception *****
Current thread ID = 0x200012bc (unknown)
Faulting instruction address = 0x100098d9
Caught system error -- reason 0 1
PASS - test_kobject_access_grant
===================================================================
starting test - test_syscall_invalid_kobject
0x20003c7c is not a valid k_sem
syscall z_hdlr_k_sem_take failed check: access denied
***** Hardware exception *****
Current thread ID = 0x200012bc (unknown)
Faulting instruction address = 0x100098d9
Caught system error -- reason 0 1
PASS - test_syscall_invalid_kobject
===================================================================
starting test - test_thread_without_kobject_permission
thread 0x200012bc (19) does not have permission on k_sem 0x20003c58 [00000000]
syscall z_hdlr_k_sem_give failed check: access denied
***** Hardware exception *****
Current thread ID = 0x200012bc (unknown)
Faulting instruction address = 0x100098d9
Caught system error -- reason 0 1
PASS - test_thread_without_kobject_permission
===================================================================
starting test - test_kobject_revoke_access
thread 0x20000764 (1) does not have permission on k_sem 0x20003c58 [00000000]
syscall z_hdlr_k_sem_give failed check: access denied
***** Hardware exception *****
Current thread ID = 0x20000764 (unknown)
Faulting instruction address = 0x100098d9
Caught system error -- reason 0 1
PASS - test_kobject_revoke_access
===================================================================
starting test - test_kobject_grant_access_kobj
PASS - test_kobject_grant_access_kobj
===================================================================
starting test - test_kobject_grant_access_kobj_invalid
thread 0x200007ec (2) does not have permission on k_thread 0x20000a0c [00000000]
syscall z_hdlr_k_object_access_grant failed check: access denied
***** Hardware exception *****
Current thread ID = 0x200007ec (unknown)
Faulting instruction address = 0x10000dcb
Caught system error -- reason 0 1
PASS - test_kobject_grant_access_kobj_invalid
===================================================================
starting test - test_kobject_release_from_user
thread 0x20000874 (3) does not have permission on k_sem 0x20003c58 [00080000]
syscall z_hdlr_k_sem_give failed check: access denied
***** Hardware exception *****
Current thread ID = 0x20000874 (unknown)
Faulting instruction address = 0x100098d9
Caught system error -- reason 0 1
PASS - test_kobject_release_from_user
===================================================================
starting test - test_kobject_access_all_grant
PASS - test_kobject_access_all_grant
===================================================================
starting test - test_thread_has_residual_permissions
thread 0x200008fc (4) does not have permission on k_sem 0x20003c58 [00080000]
syscall z_hdlr_k_sem_take failed check: access denied
***** Hardware exception *****
Current thread ID = 0x200008fc (unknown)
Faulting instruction address = 0x10000e1d
Caught system error -- reason 0 1
PASS - test_thread_has_residual_permissions
===================================================================
starting test - test_kobject_access_grant_to_invalid_thread
thread 0x200012bc (19) does not have permission on k_thread 0x200005cc [00000000]
syscall test_kobject_access_grant_to_invalid_thread failed check: access denied
PASS - test_kobject_access_grant_to_invalid_thread
===================================================================
starting test - test_kobject_access_invalid_kobject
thread 0x200012bc (19) does not have permission on k_sem 0x200005bc [00000000]
syscall z_hdlr_k_sem_take failed check: access denied
***** Hardware exception *****
Current thread ID = 0x200012bc (unknown)
Faulting instruction address = 0x10001569
Caught system error -- reason 0 1
PASS - test_kobject_access_invalid_kobject
===================================================================
starting test - test_access_kobject_without_init_access
thread 0x200012bc (19) does not have permission on k_sem 0x200005ac [00000000]
syscall z_hdlr_k_sem_take failed check: access denied
***** Hardware exception *****
Current thread ID = 0x200012bc (unknown)
Faulting instruction address = 0x100015b9
Caught system error -- reason 0 1
PASS - test_access_kobject_without_init_access
===================================================================
starting test - test_access_kobject_without_init_with_access
0x2000059c used before initialization
syscall z_hdlr_k_sem_take failed check: access denied
***** Hardware exception *****
Current thread ID = 0x20000654 (unknown)
Faulting instruction address = 0x10000e6d
Caught system error -- reason 0 1
PASS - test_access_kobject_without_init_with_access
===================================================================
starting test - test_kobject_reinitialize_thread_kobj
0x200006dc k_thread in use
syscall z_hdlr_k_thread_create failed check: access denied
***** Hardware exception *****
Current thread ID = 0x200006dc (unknown)
Faulting instruction address = 0x0
Caught system error -- reason 0 1
PASS - test_kobject_reinitialize_thread_kobj
===================================================================
starting test - test_create_new_thread_from_user
PASS - test_create_new_thread_from_user
===================================================================
starting test - test_create_new_thread_from_user_no_access_stack
thread 0x20000ba4 (11) does not have permission on _k_thread_stack_element 0x20001940 [00000000]
syscall z_hdlr_k_thread_create failed check: bad stack object
***** Hardware exception *****
Current thread ID = 0x20000ba4 (unknown)
Faulting instruction address = 0x0
Caught system error -- reason 0 1
PASS - test_create_new_thread_from_user_no_access_stack
===================================================================
starting test - test_create_new_thread_from_user_invalid_stacksize
thread 0x20000984 (7) does not have permission on _k_thread_stack_element 0x20001d80 [00000000]
syscall z_hdlr_k_thread_create failed check: bad stack object
***** Hardware exception *****
Current thread ID = 0x20000984 (unknown)
Faulting instruction address = 0x0
Caught system error -- reason 0 1
PASS - test_create_new_thread_from_user_invalid_stacksize
===================================================================
starting test - test_create_new_thread_from_user_huge_stacksize
syscall z_hdlr_k_thread_create failed check: stack size 545 is too big, max is 544
***** Hardware exception *****
Current thread ID = 0x20000a94 (unknown)
Faulting instruction address = 0x0
Caught system error -- reason 0 1
PASS - test_create_new_thread_from_user_huge_stacksize
===================================================================
starting test - test_create_new_supervisor_thread_from_user
syscall z_hdlr_k_thread_create failed check: options & K_USER
***** Hardware exception *****
Current thread ID = 0x20000cb4 (unknown)
Faulting instruction address = 0x0
Caught system error -- reason 0 1
PASS - test_create_new_supervisor_thread_from_user
===================================================================
starting test - test_create_new_essential_thread_from_user
syscall z_hdlr_k_thread_create failed check: !(options & K_ESSENTIAL)
***** Hardware exception *****
Current thread ID = 0x20000984 (unknown)
Faulting instruction address = 0x0
Caught system error -- reason 0 1
PASS - test_create_new_essential_thread_from_user
===================================================================
starting test - test_create_new_higher_prio_thread_from_user
syscall z_hdlr_k_thread_create failed check: z_is_prio_lower_or_equal(prio, _current->base.prio)
***** Hardware exception *****
Current thread ID = 0x20000a94 (unknown)
Faulting instruction address = 0x0
Caught system error -- reason 0 1
PASS - test_create_new_higher_prio_thread_from_user
===================================================================
starting test - test_create_new_invalid_prio_thread_from_user
syscall z_hdlr_k_thread_create failed check: _is_valid_prio(prio, NULL)
***** Hardware exception *****
Current thread ID = 0x20000ba4 (unknown)
Faulting instruction address = 0x0
Caught system error -- reason 0 1
PASS - test_create_new_invalid_prio_thread_from_user
===================================================================
Test suite memory_protection_test_suite failed.
===================================================================
`

kernel.mem_protect.protection

`
======== Target Main Serial:   ========
***** Booting Zephyr OS version 1.14.99 *****
Running test suite protection
===================================================================
starting test - exec_data
trying to call code written to 0x20000009
returned from code at 0x20000009
Execute from target buffer succeeded!
Assertion failed at ZEPHYR_BASE/tests/kernel/mem_protect/protection/src/main.c:151: exec_data: (Reached unreachable code)

Execute from data did not fault
FAIL - exec_data
===================================================================
starting test - exec_stack
trying to call code written to 0x20000749
returned from code at 0x20000749
Execute from target buffer succeeded!
Assertion failed at ZEPHYR_BASE/tests/kernel/mem_protect/protection/src/main.c:164: exec_stack: (Reached unreachable code)

Execute from stack did not fault
FAIL - exec_stack
===================================================================
starting test - exec_heap
trying to call code written to 0x200001e5
returned from code at 0x200001e5
Execute from target buffer succeeded!
Assertion failed at ZEPHYR_BASE/tests/kernel/mem_protect/protection/src/main.c:179: exec_heap: (Reached unreachable code)

Execute from heap did not fault
FAIL - exec_heap
===================================================================
starting test - write_ro
trying to write to rodata at 0x10005168
***** BUS FAULT *****
Imprecise data bus error
***** Hardware exception *****
Current thread ID = 0x2000004c (unknown)
Faulting instruction address = 0x10000560
Caught system error -- reason 0
PASS - write_ro
===================================================================
starting test - write_text
trying to write to text at 0x10000640
***** BUS FAULT *****
Imprecise data bus error
***** Hardware exception *****
Current thread ID = 0x2000004c (unknown)
Faulting instruction address = 0x10004874
Caught system error -- reason 0
PASS - write_text
===================================================================
Test suite protection failed.
===================================================================
PROJECT EXECUTION FAILED
`

kernel.mem_protect.userspace

'
***** Booting Zephyr OS version 1.14.99 *****
Running test suite userspace
===================================================================
starting test - is_usermode
PASS - is_usermode
===================================================================
starting test - write_control
PASS - write_control
===================================================================
starting test - disable_mmu_mpu
***** BUS FAULT *****
Precise data bus error
BFAR Address: 0x4000d000
***** Hardware exception *****
Current thread ID = 0x200011ec (unknown)
Faulting instruction address = 0x100037d6
Caught system error -- reason 0
PASS - disable_mmu_mpu
===================================================================
starting test - read_kernram
0x00000000
Assertion failed at ZEPHYR_BASE/tests/kernel/mem_protect/userspace/src/main.c:224: read_kernram: (Reached unreachable code)

Read from kernel RAM did not fault
FAIL - read_kernram
===================================================================
starting test - write_kernram
Assertion failed at ZEPHYR_BASE/tests/kernel/mem_protect/userspace/src/main.c:239: write_kernram: (Reached unreachable code)

Write to kernel RAM did not fault
FAIL - write_kernram
===================================================================
starting test - write_kernro
***** BUS FAULT *****
Imprecise data bus error
***** Hardware exception *****
Current thread ID = 0x200011ec (unknown)
Faulting instruction address = 0x1000a296
Caught system error -- reason 0
PASS - write_kernro
===================================================================
starting test - write_kerntext
***** BUS FAULT *****
Imprecise data bus error
***** Hardware exception *****
Current thread ID = 0x200011ec (unknown)
Faulting instruction address = 0x1000a91e
Caught system error -- reason 0
PASS - write_kerntext
===================================================================
starting test - read_kernel_data
0
Assertion failed at ZEPHYR_BASE/tests/kernel/mem_protect/userspace/src/main.c:298: read_kernel_data: (Reached unreachable code)

Read from data did not fault
FAIL - read_kernel_data
===================================================================
starting test - write_kernel_data
Assertion failed at ZEPHYR_BASE/tests/kernel/mem_protect/userspace/src/main.c:312: write_kernel_data: (Reached unreachable code)

Write to  data did not fault
FAIL - write_kernel_data
===================================================================
starting test - read_priv_stack
-1
Assertion failed at ZEPHYR_BASE/tests/kernel/mem_protect/userspace/src/main.c:353: read_priv_stack: (Reached unreachable code)

Read from privileged stack did not fault
FAIL - read_priv_stack
===================================================================
starting test - write_priv_stack
Assertion failed at ZEPHYR_BASE/tests/kernel/mem_protect/userspace/src/main.c:379: write_priv_stack: (Reached unreachable code)

Write to privileged stack did not fault
FAIL - write_priv_stack
===================================================================
starting test - pass_user_object
0x200002f0 is not a valid k_sem
syscall z_hdlr_k_sem_init failed check: access denied
***** Hardware exception *****
Current thread ID = 0x200011ec (unknown)
Faulting instruction address = 0x100008ff
Caught system error -- reason 0
PASS - pass_user_object
===================================================================
starting test - pass_noperms_object
thread 0x200011ec (2) does not have permission on k_sem 0x20000c94 [0000]
syscall z_hdlr_k_sem_init failed check: access denied
***** Hardware exception *****
Current thread ID = 0x200011ec (unknown)
Faulting instruction address = 0x10000949
Caught system error -- reason 0
PASS - pass_noperms_object
===================================================================
starting test - start_kernel_thread
syscall z_hdlr_k_thread_create failed check: options & K_USER
***** Hardware exception *****
Current thread ID = 0x200011ec (unknown)
Faulting instruction address = 0xaaaaaaaa
Caught system error -- reason 0
PASS - start_kernel_thread
===================================================================
starting test - read_other_stack
2863311530
Assertion failed at ZEPHYR_BASE/tests/kernel/mem_protect/userspace/src/main.c:487: read_other_stack: (Reached unreachable code)

Read from other thread stack did not fault
FAIL - read_other_stack
===================================================================
starting test - write_other_stack
Assertion failed at ZEPHYR_BASE/tests/kernel/mem_protect/userspace/src/main.c:520: write_other_stack: (Reached unreachable code)

Write to other thread stack did not fault
FAIL - write_other_stack
===================================================================
starting test - revoke_noperms_object
thread 0x200011ec (2) does not have permission on k_sem 0x20000c94 [0000]
syscall z_hdlr_k_object_release failed check: object 0x20000c94 access denied
***** Hardware exception *****
Current thread ID = 0x200011ec (unknown)
Faulting instruction address = 0x20000140
Caught system error -- reason 0
PASS - revoke_noperms_object
===================================================================
starting test - access_after_revoke
thread 0x200011ec (2) does not have permission on k_sem 0x200040c8 [0008]
syscall z_hdlr_k_sem_take failed check: access denied
***** Hardware exception *****
Current thread ID = 0x200011ec (unknown)
Faulting instruction address = 0x10001097
Caught system error -- reason 0
PASS - access_after_revoke
===================================================================
starting test - user_mode_enter
PASS - user_mode_enter
===================================================================
starting test - write_kobject_user_pipe
syscall z_hdlr_k_pipe_get failed check: Memory region 0x200040e8 (size 1) write access denied
***** Hardware exception *****
Current thread ID = 0x200011ec (unknown)
Faulting instruction address = 0x200002bc
Caught system error -- reason 0
PASS - write_kobject_user_pipe
===================================================================
starting test - read_kobject_user_pipe
syscall z_hdlr_k_pipe_put failed check: Memory region 0x200040e8 (size 1) read access denied
***** Hardware exception *****
Current thread ID = 0x200011ec (unknown)
Faulting instruction address = 0x200002bc
Caught system error -- reason 0
PASS - read_kobject_user_pipe
===================================================================
starting test - access_other_memdomain
Assertion failed at ZEPHYR_BASE/tests/kernel/mem_protect/userspace/src/main.c:646: shared_mem_thread: (Reached unreachable code)

Thread accessed global in other memory domain
FAIL - access_other_memdomain
===================================================================
starting test - domain_add_thread_drop_to_user
PASS - domain_add_thread_drop_to_user
===================================================================
starting test - domain_add_part_drop_to_user
PASS - domain_add_part_drop_to_user
===================================================================
starting test - domain_remove_part_drop_to_user
FAIL - domain_remove_part_drop_to_user
===================================================================
starting test - domain_remove_thread_drop_to_user
FAIL - domain_remove_thread_drop_to_user
===================================================================
starting test - domain_add_thread_context_switch
PASS - domain_add_thread_context_switch
===================================================================
starting test - domain_add_part_context_switch
PASS - domain_add_part_context_switch
===================================================================
starting test - domain_remove_part_context_switch
FAIL - domain_remove_part_context_switch
===================================================================
starting test - domain_remove_thread_context_switch
FAIL - domain_remove_thread_context_switch
===================================================================
starting test - test_stack_buffer
Reserved space: 32
Provided stack size: 1024
Stack object 0x20001c80[1056]

Testing supervisor mode

Thread reports buffer 0x20001ca0 size 1024

check read/write to stack buffer

Testing user mode (direct launch)

Thread reports buffer 0x20001ca0 size 1024

check read/write to stack buffer

Testing user mode (drop)

Thread reports buffer 0x20001ca0 size 1024

check read/write to stack buffer

Stack object 0x200020a0[1056]

Testing supervisor mode

Thread reports buffer 0x200020c0 size 1024

check read/write to stack buffer

Testing user mode (direct launch)

Thread reports buffer 0x200020c0 size 1024

check read/write to stack buffer

Testing user mode (drop)

Thread reports buffer 0x200020c0 size 1024

check read/write to stack buffer

Stack object 0x200024c0[1056]

Testing supervisor mode

Thread reports buffer 0x200024e0 size 1024

check read/write to stack buffer

Testing user mode (direct launch)

Thread reports buffer 0x200024e0 size 1024

check read/write to stack buffer

Testing user mode (drop)

Thread reports buffer 0x200024e0 size 1024

check read/write to stack buffer

Stack object 0x200028e0[1056]

Testing supervisor mode

Thread reports buffer 0x20002900 size 1024

check read/write to stack buffer

Testing user mode (direct launch)

Thread reports buffer 0x20002900 size 1024

check read/write to stack buffer

Testing user mode (drop)

Thread reports buffer 0x20002900 size 1024

check read/write to stack buffer

Stack object 0x20000380[1056]

Testing supervisor mode

Thread reports buffer 0x200003a0 size 1024

check read/write to stack buffer

Testing user mode (direct launch)

Thread reports buffer 0x200003a0 size 1024

check read/write to stack buffer

Testing user mode (drop)

Thread reports buffer 0x200003a0 size 1024

check read/write to stack buffer

PASS - test_stack_buffer
===================================================================
starting test - test_unimplemented_syscall
Unimplemented system call
***** Hardware exception *****
Current thread ID = 0x200011ec (unknown)
Faulting instruction address = 0x10003c4f
Caught system error -- reason 0
PASS - test_unimplemented_syscall
===================================================================
starting test - test_bad_syscall
Bad system call id<PHONE_NUMBER> invoked
***** Hardware exception *****
Current thread ID = 0x200011ec (unknown)
Faulting instruction address = 0x10003c2d
Caught system error -- reason 0
PASS - test_bad_syscall
===================================================================
starting test - test_object_recycle
PASS - test_object_recycle
===================================================================
Test suite userspace failed.
===================================================================
PROJECT EXECUTION FAILED
'

@hakehuang I think this is due to the fact that the MPU cannot protect transactions between the core and TCM, since the MPU is connected to the crossbar switch.
Currently, DTCM is used as SRAM because the smaller KV5xF512xxx24 only has DTCM and ITCM (a 64k OCRAM is present only on KV5xF1M0xxx24, which could be protected by the MPU).
Obviously, the current state is not ideal, but I don't know what the best solution would be here - any thoughts?

@fbrozovic as KV58 has two type of MPU one is original from ARM7 core, and two SMPU, so I think for TCM usage we shall configure core MPU not SMPU, @MaureenHelm, correct me if I am wrong.

@hakehuang Ah, I see now, somehow I completely missed the core MPU in the block diagram. I will have a look at configuring it instead of the SMPU.

@hakehuang Switched from SMPU to ARM MPU, the memory protection tests pass now.

test pass at my side. Thanks

@galak comments addressed.

I guess because of west.yml it would be best to wait for #18527 to be merged and then rebase onto master?

@galak please revisit

@galak Any new thoughts on this?

@galak Any new thoughts on this?

@galak ping

@fbrozovic will you please rebase and fix the shippable failures?

@MaureenHelm done.


EOF when uploading profiles to the server

Pyroscope server ReadTimeout is 10s

ctrl.httpServer = &http.Server{
		Addr:           ctrl.config.APIBindAddr,
		Handler:        handler,
		ReadTimeout:    10 * time.Second,
		WriteTimeout:   15 * time.Second,
		IdleTimeout:    30 * time.Second,
		MaxHeaderBytes: 1 << 20,
		ErrorLog:       golog.New(w, "", 0),
	}

In go http.Server, if one conn is established, and after ReadTimeout, the first req don't come, the conn would be closed.

The client's updateRate is 10s, the same as server.ReadTimeout.  In the last update time, there can be some conn established, but dont send any request. In go http.Client, the conn is established asynchronous and then deliver request to it. Perhaps there is no request when conn is established.
When client update profile, it may get a conn never send any request and establiseed 10s ago,  write to the conn successfully. At the same time, the server close the conn because 10s timeout.
The client would receive EOF error.

Hello @ray2011, thank you filing the issue!
Indeed, the traffic capture clearly says that the server closed the established connection in 10s after it was created, but IdleTimeout and ReadTimeout should have prevented this.
I think that the problem can be caused by the fact that we use the default MaxIdleConnsPerHost in the client settings, which limits the number of idle connections to 2 on the client site:
https://github.com/pyroscope-io/client/blob/72c28da1c0a344149dcee1264a9f3f7bc9a78ee2/upstream/remote/remote.go#L52-L86
MaxConnsPerHost limits the total number of connections per host, including connections in the active, and idle states.
However, it's not entirely clear for me why exactly the server initiated the connection termination (sending FIN, ACK) and not the client. It would be nice to look at the flow graph.
In turn, I'd suggest to try setting MaxConnsPerHost == MaxIdleConnsPerHost == MaxIdleConns == number of threads (hardcoded to 4) before digging into debugging, as this seems to be the most obvious fix.
@ray2011, what do you think?

Also, I'm thinking about increasing the default timeouts on the server side: with TLS transport, Go http server sets deadlines right after accepting the connection:
tlsTO := c.server.tlsHandshakeTimeout()
if tlsTO > 0 {
	dl := time.Now().Add(tlsTO)
	c.rwc.SetReadDeadline(dl)
	c.rwc.SetWriteDeadline(dl)
}

(tlsHandshakeTimeout picks smallest value from ReadTimeout, ReadHeaderTimeout, and WriteTimeout).
While in other cases it sets the deadline after the body is read.
I would set the following settings by default:
ReadTimeout: 30 * time.Second,
WriteTimeout: 30 * time.Second,
IdleTimeout: 90 * time.Second,

And, if TLS is configured, set all those to 90 seconds.
/cc @petethepig

Hello @ray2011, thank you filing the issue!
Indeed, the traffic capture clearly says that the server closed the established connection in 10s after it was created, but IdleTimeout and ReadTimeout should have prevented this.

The server close the established connection in 10s, the reason is ReadTimeout, because the connection didn't send the first request(accprding to the traffic capture), so the server read timeout, and close the connection(according to go http.Server's source code), .

I think that the problem can be caused by the fact that we use the default MaxIdleConnsPerHost in the client settings, which limits the number of idle connections to 2 on the client site:
https://github.com/pyroscope-io/client/blob/72c28da1c0a344149dcee1264a9f3f7bc9a78ee2/upstream/remote/remote.go#L52-L86
MaxConnsPerHost limits the total number of connections per host, including connections in the active, and idle states.
However, it's not entirely clear for me why exactly the server initiated the connection termination (sending FIN, ACK) and not the client. It would be nice to look at the flow graph. And it does not explain the EOF error, as well: the client would establish a new connection.
In turn, I'd suggest to try setting MaxConnsPerHost == MaxIdleConnsPerHost == MaxIdleConns == number of threads (hardcoded to 4) before digging into debugging, as this seems to be the most obvious fix.
@ray2011, what do you think?

The number of threads is 4 already.
Change the MaxConnsPerHost to 1 is workable, because it can make the conn that established but not send first request in 10s disapper. But it  would affect the efficiency.

Also, I'm thinking about increasing the default timeouts on the server side: with TLS transport, Go http server sets deadlines right after accepting the connection:
tlsTO := c.server.tlsHandshakeTimeout()
if tlsTO > 0 {
	dl := time.Now().Add(tlsTO)
	c.rwc.SetReadDeadline(dl)
	c.rwc.SetWriteDeadline(dl)
}

(tlsHandshakeTimeout picks smallest value from ReadTimeout, ReadHeaderTimeout, and WriteTimeout).
While in other cases it sets the deadline after the body is read.
I would set the following settings by default:
ReadTimeout: 30 * time.Second,
WriteTimeout: 30 * time.Second,
IdleTimeout: 90 * time.Second,

And, if TLS is configured, set all those to 90 seconds.
/cc @petethepig

This is very good. I suggest not set server timeout as the mutliple of 10s(the client update rate),  try use 33s perhaps better.   It make "server close idle conn" and "client upload" cant happen at the same time

Also, I'm thinking about increasing the default timeouts on the server side: with TLS transport, the Go HTTP server sets deadlines right after accepting the connection:
tlsTO := c.server.tlsHandshakeTimeout()
if tlsTO > 0 {
	dl := time.Now().Add(tlsTO)
	c.rwc.SetReadDeadline(dl)
	c.rwc.SetWriteDeadline(dl)
}

(tlsHandshakeTimeout picks smallest value from ReadTimeout, ReadHeaderTimeout, and WriteTimeout).
While in other cases it sets the deadline after the body is read.
I would set the following settings by default:
ReadTimeout: 30 * time.Second,
WriteTimeout: 30 * time.Second,
IdleTimeout: 90 * time.Second,

And, if TLS is configured, set all those to 90 seconds.
/cc @petethepig

This is very good. I suggest not setting server timeout as the multiple of 10s(the client update rate), try to use 33s perhaps better. It makes "server close idle conn" and "client upload" cant happen at the same time

good idea

any update?

UploadRate can be configed now.


Can not connect with Aria2 when Chrome update to 94

I am using AriaNg 1.2.2. Today after update my Chrome to 94, my AriaNg can no longer connect to Aria2.
At same time, my Android phone chrome 93 could, also my Fiirefox on same PC could.
It seems chrome 94 break something. I tried 2 PC with chrome 94, both of them are failed.
The one not working is "http://ariang.js.org/#!/settings/ariang"
In case I open the index.html from same chrome, it works.
file:///home/pi/Downloads/AriaNg-1.2.2-AllInOne/index.html#!/downloading

Aria2 works normally on my chrome 94

https://developer.chrome.com/blog/private-network-access-update/

为什么使用提供的demo(ariang)连接localhost:8600不会有跨域问题


Wrong URL syntax and translation fixed for Turkish docs.

Description

Wrong translation fixed.
Wrong URL syntax fixed.

Contribution Checklist:

[ ] The pull request only addresses one issue or adds one feature.
[x] The pull request does not introduce any breaking changes
[ ] I have added screenshots or gifs to help explain the change if applicable.
[x] I have read the contribution guidelines.
[ ] Create an issue and link to the pull request.

Thank you @DogukanUrker !


Integer Range Generators

Create Integer Range Generators.
Create Integer counters for evaluating the output of generators.

Remaining Goals for PR:

[ ] Increase coverage on IntRangeElement
[ ] Resolve remaining comments, if reasonably straight-forward
[ ] Open issues on more challenging comments

The remaining coverage on IntRangeElement requires validating the behavior of the generate method in cases where the number of outputs is very large.
This is where the IntCounter127 and the IntCounterTree are important.

Alternatively, a pseudorandom generator (or mock) could be injected by the test environment, and this could provide the values that are needed to validate IntRangeElement behavior.

IntRangeElement range of 16 values parameterized test case:
It is interesting to note that the StandardDeviation of the counts of generated values seemed to be larger when the range was either near the Integer.MIN or Integer.MAX
For value ranges (0, 15) and (-16, -1) the StandardDeviation was about or less than 11. But for both MIN and MAX cases, the StandardDeviation was about 13 or 7.
This does not look good for randomness utilities if these results can be repeated.

The recent test failure in IntRangeElementGeneratedValuesTest was caused by random fluctuations. The standard deviation of count values was lower than expected, which shows that the generated values were more uniformly distributed than during other runs.
After rerunning tests, it appears there is no discernible pattern, and no dependence on where the range of generated values are located on the Integer domain.
What is not being tested currently, is whether any particular value in any of these target ranges has some distinguishable behavior relative to the other values.


Socket npm Unable to prompt to accept risk, need TTY to do so

MacOS, 13.2.1
Node 16.17.1
Installing Socket CLI, aliasing socket npm to npm, and attempting to create a sample demo app using the similarly named but unrelated Socket Runtime (https://sockets.sh/) produces the error below.
The error also occurs without alias npm="socket npm" if you enter socket npm create socket-app svelte.
The app template can be success created if Socket CLI is installed but not aliased and not invoked:  npm create socket-app svelte
npm create socket-app svelte
Initializing npm package...Ok.
Installing developer dependencies...
Unable to run npm install: Error: Command failed: npm install -D vite @sveltejs/vite-plugin-svelte
<EMAIL_ADDRESS>(https://socket.dev/npm/package/esbuild/overview/0.17.12) contains risks:
  Install scripts - Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
npm ERR! Socket npm Unable to prompt to accept risk, need TTY to do so

npm ERR!      /Users/xxx/.npm/_logs/2023-03-18T17_19_30_566Z-debug-0.log

    at ChildProcess.exithandler (node:child_process:400:12)
    at ChildProcess.emit (node:events:513:28)
    at maybeClose (node:internal/child_process:1093:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
npm ERR! code 1
npm ERR! path /Users/tom/Code/ghub/socketrss
npm ERR! command failed
npm ERR! command sh -c create-socket-app svelte

npm ERR!      /Users/xxx/.npm/_logs/2023-03-18T17_19_29_740Z-debug-0.log

And the verbose info:
 verbose stack Error: command failed
38 verbose stack     at ChildProcess.<anonymous> (/Users/xxx/.nvm/versions/node/v16.17.1/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:53:27)
38 verbose stack     at ChildProcess.emit (node:events:513:28)
38 verbose stack     at maybeClose (node:internal/child_process:1093:16)
38 verbose stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
39 verbose cwd /Users/xxx/xxx/xxx/socketapp
40 verbose Darwin 22.3.0
41 verbose node v16.17.1
42 verbose npm  v9.2.0
43 error code 1
44 error path /Users/xxx/xxx/xxx/socketapp
45 error command failed
46 error command sh -c create-socket-app svelte
47 verbose exit 1

This is because the npm install -D vite @sveltejs/vite-plugin-svelte spawned by socket-app doesn't provide an interactive terminal using stdio: 'inherit'. Since there is no way for a person to respond to the prompt, the CLI rejects anything that would be significant enough to cause a prompt. We do not have an expected UX to allow for installing without being able to respond to prompts at this time. We do still print out the issue and hope to provide an accept list functionality per package soon. My personal recommendation would be for create-socket-app to be modified so that STDIN isn't disconnected during that subprocess for now.

Thanks, I've cross-posted your recommendation.

@Dotnaught this might be fixed now w/ the 0.6.0 release w/o any action on their part


Update Dockerfile to create a pub artifact

Motivation
We want to publish this package to our pub server to remove git dependencies in pubspec.yaml files.
Changes
Create an artifact for pub in CI so the release pipeline has something to publish.
Review
See CONTRIBUTING.md for more details on review types (+1 / QA +1 / +10) and code review process.

Please review:
QA Checklist

[ ] Tests were updated and provide good coverage of the changeset and other affected code
[ ] Manual testing was performed if needed

[ ] Steps from PR author:

[ ] Anything falling under manual testing criteria outlined in CONTRIBUTING.md

Merge Checklist
While we perform many automated checks before auto-merging, some manual checks are needed:

[ ] A Client Platform member has reviewed these changes
[ ] There are no unaddressed comments - this check can be automated if reviewers use the "Request Changes" feature
[ ] For release PRs - Version metadata in Rosie comment is correct

Security Insights
No security relevant content was detected by automated scans.
Action Items

Review PR for security impact; comment "security review required" if needed or unsure
Verify aviary.yaml coverage of security relevant code

Questions or Comments? Reach out on Slack: #support-infosec.

Not much to QA here. Either it will publish or it won't.

@Workiva/release-management-p for merge into master


Revert "Version API descriptions"

This is an alternate solution to #10825.
I'll let y'all choose between this and #10839.
cc @brendanburns @thockin
Reverts GoogleCloudPlatform/kubernetes#10690

Closing in favor of #10839.


Efficient Bulk Delete within HBase datastore

Here is an example within HBase's main github repo for implementing Bulk delete as a coprocessor:
https://github.com/apache/hbase/blob/master/hbase-examples/src/main/java/org/apache/hadoop/hbase/coprocessor/example/BulkDeleteEndpoint.java

we have a coprocessor for this which supports efficient bulk delete


Fix module Load order and re-fix circular loading logic

Fixes #5171  but this may take a bit of explaining.
@boingoing please could you take a look at this?
Note I've targeted this at master - though would prefer to target 1.8 if allowed as this is fixing a regression that occurred in 1.8 I've targeted master as I'm assuming 1.8 is closed to functionality changes at this point.
This PR reverts https://github.com/Microsoft/ChakraCore/commit/2dc946cbecfc22f849b3b953844924a6f7d1ff5d which apparently fixed some circular module loading bugs by reversing module load order.
However the reversed load order resulted in observably different runtime results in some cases - introducing an incompatibility with other runtimes described in issue #5171
As far as I understand the purpose of the order reversal was to resolve problems where circular imports were not handled correctly, these were:

Issue #4482
But since then #4482 was fixed properly in #4583 - after noting that the order reversal fixed the original POC but did not fix a slightly revised version of the same.
A non-specific issue that had resulted in the test-case bug-issue-3257 being disabled - this is an issue that can only occur with either an environment that allows dynamic imports OR an environment that allows multiple root modules to be being loaded at the same time in the same context.

This PR includes an alternative fix for the issue that caused bug-issue-3257 to be disabled. And adds a test case that reproduces the same bug regardless of the load order.
The revised fix for that was to get rid of the concept of numPendingModules that was used to track when all of a module's children were ready.
Previous logic:

Module is parsed that has children
For each child:

if child already parsed do nothing
if child not already parsed increment numPendingModules for the parent and add parent to list of modules to notify when child is parsed

When a module is parsed that has no pending children notify any parents in its list
When a module is notified by a child decrease numPendingModules for it by 1, when it reaches 0 notify its parent OR if it's a root module or a dynamicly imported module instantiate it and notify the host to execute it

Problem with previous logic

Mod0 parsed, has children Mod1 and Mod2 (schedule async parse job for Mod1 and Mod2)
Mod1 also a root module or dynamic module and has Mod0 as a child
parse job for Mod1 completes -> notes that Mod0 is already parsed so numPendingModules = 0
Host notified to execute Mod1 before Mod2 has been parsed

New logic

Module is parsed that has children
For each child:

add parent to list of modules to notify when child is parsed

Whenever a module is parsed OR a notification is received:

recursively check if all children and children's children etc. have been parsed
if yes notify parent OR if dynamic/root module -> notify host to execute

@boingoing I've updated to latest and added an extra test case as thought it could do with a little extra coverage, please let me know if you'd like me to do anything else.

@rhuanjl Thanks for the work, Richard, I will attempt to land this for you this week. Would you mind rebasing once again?

@rhuanjl Thank you very much for contributing, I have landed this in master. Unfortunately it won't be taken into 1.8 - that ship has sailed at this point.

Thanks for landing this. Understood about it not being able to go to 1.8 - didn't really think it could but thought I should at least ask.


problem with the ref of focus input

Describe the bug
I have a problem with the ref of focus input.
I migrated from 1.3.9 to 2.4.1
Reproduction - (required - issue will be closed without this)
Implement the component.
Implement useRef then when executing placesRef?.Current?.Focus () in the onWillFocus event of react navigation the app crashed.
Please provide a FULLY REPRODUCIBLE example.

Click to expand!
  <NavigationEvents
      onWillFocus={() => {
        if (placesRef?.current != null) {
          placesRef?.current?.focus()
        }
      }}
    />
    <GooglePlacesAutocomplete
      placeholder={i18n.t('address.what_is_your_address')}
      ref={placesRef}
      onPress={onPress}
      currentLocation
      currentLocationLabel={i18n.t('address.my_current_location')}
      listUnderlayColor='#f9f9f9'
      textInputProps={TEXT_INPUT_PROPS}
      renderDescription={row => row.description}
      renderRightButton={RightButton}
      renderRow={Row}
      minLenght={3}
      returnKeyType='search'
      enablePoweredByContainer={false}
      fetchDetails
      query={QUERY_CONFIG}
      styles={CUSTOM_STYLES}
      nearbyPlacesAPI='None'
      debounce={10}
      predefinedPlaces={PREDEFINED_PLACES}
      enableHighAccuracyLocation={false}
    />

Additional context

Library Version: [e.g. 1.4.2]
2.4.1

React Native Version: [e.g. 0.62.2]
0.63.4

[x] iOS

[ ] Android

[ ] Web

Add any other context about the problem here, screenshots etc

yeap having the same issue, any workaround so far @jblancoh ?

Hi, it works for me when I did it in the  useEffect hook
``   React.useEffect(() => {
ref.current && ref.current?.focus();
}, []);


Add doc for some utils

It's not clear to me what all in dask/utils.py is considered public, but I think these are. Any others? format_bytes and format_time?

Looks good to me.  I think of format_time and format_bytes as being public.  Certainly I use them freely in other projects :)


New package: JuliaVariables v0.1.1

Registering package: JuliaVariables
Repository: https://github.com/thautwarm/JuliaVariables.jl
Created by: @thautwarm
Version: v0.1.1
Commit: f59ed8a230d45949be0d2286fb841ce82a3a6a8d
Reviewed by: @thautwarm
Reference: https://github.com/thautwarm/JuliaVariables.jl/commit/f59ed8a230d45949be0d2286fb841ce82a3a6a8d#commitcomment-34995824

That was a mistake. @StefanKarpinski please take a look and possibly revert. Sorry about that.


minor updates and fixes

fix: icon loading issue
clear shapes and markets. reference from https://github.com/trepanation-pray/acf-field-type-mapmore/commit/5f272089e835109907b7073f6b608bf4e59cab66

Great stuff


Added prettyplan, in-browser terraform plan prettifier

interesting. but why wouldn't you just use coinbase's landscape tool directly from the command line?


Object Of type None type

Traceback (most recent call last):
File "recognize.py", line 158, in
hand = segment(gray)
File "recognize.py", line 38, in segment
if len(cnts) == 0:
TypeError: object of type 'NoneType' has no len()
Here Is My Code
organize imports
import cv2
import imutils
import numpy as np
from sklearn.metrics import pairwise
global variables
bg = None
#-------------------------------------------------------------------------------
Function - To find the running average over the background
#-------------------------------------------------------------------------------
def run_avg(image, accumWeight):
global bg
# initialize the background
if bg is None:
bg = image.copy().astype("float")
return
# compute weighted average, accumulate it and update the background
cv2.accumulateWeighted(image, bg, accumWeight)

#-------------------------------------------------------------------------------
Function - To segment the region of hand in the image
#-------------------------------------------------------------------------------
def segment(image, threshold=25):
global bg
# find the absolute difference between background and current frame
diff = cv2.absdiff(bg.astype("uint8"), image)
# threshold the diff image so that we get the foreground
thresholded = cv2.threshold(diff, threshold, 255, cv2.THRESH_BINARY)[1]

# get the contours in the thresholded image
(_, cnts) = cv2.findContours(thresholded.copy(), cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)

# return None, if no contours detected
if len(cnts) == 0:
    return
else:
    # based on contour area, get the maximum contour which is the hand
    segmented = max(cnts, key=cv2.contourArea)
    return (thresholded, segmented)

#-------------------------------------------------------------------------------
Function - To count the number of fingers in the segmented hand region
#-------------------------------------------------------------------------------
def count(thresholded, segmented):
# find the convex hull of the segmented hand region
chull = cv2.convexHull(segmented)
# find the most extreme points in the convex hull
extreme_top    = tuple(chull[chull[:, :, 1].argmin()][0])
extreme_bottom = tuple(chull[chull[:, :, 1].argmax()][0])
extreme_left   = tuple(chull[chull[:, :, 0].argmin()][0])
extreme_right  = tuple(chull[chull[:, :, 0].argmax()][0])

# find the center of the palm
cX = (extreme_left[0] + extreme_right[0]) // 2
cY = (extreme_top[1] + extreme_bottom[1]) // 2

# find the maximum euclidean distance between the center of the palm
# and the most extreme points of the convex hull
distance = pairwise.euclidean_distances([(cX, cY)], Y=[extreme_left, extreme_right, extreme_top, extreme_bottom])[0]
maximum_distance = distance[distance.argmax()]

# calculate the radius of the circle with 80% of the max euclidean distance obtained
radius = int(0.8 * maximum_distance)

# find the circumference of the circle
circumference = (2 * np.pi * radius)

# take out the circular region of interest which has
# the palm and the fingers
circular_roi = np.zeros(thresholded.shape[:2], dtype="uint8")

# draw the circular ROI
cv2.circle(circular_roi, (cX, cY), radius, 255, 1)

# take bit-wise AND between thresholded hand using the circular ROI as the mask
# which gives the cuts obtained using mask on the thresholded hand image
circular_roi = cv2.bitwise_and(thresholded, thresholded, mask=circular_roi)

# compute the contours in the circular ROI
(_, cnts) = cv2.findContours(circular_roi.copy(), cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_NONE)

# initalize the finger count
count = 0

# loop through the contours found
for c in cnts:
	# compute the bounding box of the contour
	(x, y, w, h) = cv2.boundingRect(c)

	# increment the count of fingers only if -
	# 1. The contour region is not the wrist (bottom area)
	# 2. The number of points along the contour does not exceed
	#     25% of the circumference of the circular ROI
	if ((cY + (cY * 0.25)) > (y + h)) and ((circumference * 0.25) > c.shape[0]):
		count += 1

return count

#-------------------------------------------------------------------------------
Main function
#-------------------------------------------------------------------------------
if name == "main":
# initialize accumulated weight
accumWeight = 0.5
# get the reference to the webcam
camera = cv2.VideoCapture('http://<IP_ADDRESS>:4747/video')

# region of interest (ROI) coordinates
top, right, bottom, left = 10, 350, 225, 590

# initialize num of frames
num_frames = 0

# calibration indicator
calibrated = False

# keep looping, until interrupted
while(True):
    # get the current frame
    (grabbed, frame) = camera.read()

    # resize the frame
    frame = imutils.resize(frame, width=700)

    # flip the frame so that it is not the mirror view
    frame = cv2.flip(frame, 1)

    # clone the frame
    clone = frame.copy()

    # get the height and width of the frame
    (height, width) = frame.shape[:2]

    # get the ROI
    roi = frame[top:bottom, right:left]

    # convert the roi to grayscale and blur it
    gray = cv2.cvtColor(roi, cv2.COLOR_BGR2GRAY)
    gray = cv2.GaussianBlur(gray, (7, 7), 0)

    # to get the background, keep looking till a threshold is reached
    # so that our weighted average model gets calibrated
    if num_frames < 30:
        run_avg(gray, accumWeight)
        if num_frames == 1:
        	print ('[STATUS] please wait! calibrating...')
        elif num_frames == 29:
            print ('[STATUS] calibration successfull...')
    else:
        print('StartProcess')
        # segment the hand region
        hand = segment(gray)

        # check whether hand region is segmented
        if hand is not None:
            # if yes, unpack the thresholded image and
            # segmented region
            (thresholded, segmented) = hand

            # draw the segmented region and display the frame
            cv2.drawContours(clone, [segmented + (right, top)], -1, (0, 0, 255))

            # count the number of fingers
            fingers = count(thresholded, segmented)

            cv2.putText(clone, str(fingers), (70, 45), cv2.FONT_HERSHEY_SIMPLEX, 1, (0,0,255), 2)

            # show the thresholded image
            cv2.imshow("Thesholded", thresholded)

    # draw the segmented hand
    cv2.rectangle(clone, (left, top), (right, bottom), (0,255,0), 2)

    # increment the number of frames
    num_frames += 1

    # display the frame with segmented hand
    cv2.imshow("Video Feed", clone)

    # observe the keypress by the user
    keypress = cv2.waitKey(1) & 0xFF

    # if the user pressed "q", then stop looping
    if keypress == ord("q"):
        break

free up memory
camera.release()
cv2.destroyAllWindows()

is this an issue or is it solved ?


@ngneat/falso integration

Some of the random variables presented are a bit difficult to follow/utilize. Would it be possible to use Falso as the baseline or an optional output generator?

Got it! Thank you!

v2 has been released! I'm going to close this issue but if you run into problems with the custom generators, feel free to reopen with additional information and we'd be happy to help.


Teams Rooms in GCC-High

"Microsoft Teams Rooms is not supported in Office 365 operated by 21Vianet, or in GCC-High, or DoD environments."
Any update on if/when?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 5bf01435-a73b-4bf2-5845-e4cf50c4c3a2
Version Independent ID: 166e1800-80b1-2496-7160-3040c5b23c3d
Content: Microsoft Teams Rooms requirements - Microsoft Teams
Content Source: Teams/rooms/requirements.md
Service: msteams
GitHub Login: @LanaChin
Microsoft Alias: v-lanac

@Difladrmaus Thank you for submitting feedback and contributing to the docs. We are currently investigating this.

@Difladrmaus We appreciate any feedback that improves the content in the Microsoft docs but we haven't had any response from you so we are going to close this issue.
Please feel free to re-open this issue if there is a specific area of the docs that we can improve or make better. Thank you.


[Bug]: Shoot SFX plays when sound is muted

What happened?
Operating System: Win
Steps:

Start game
Build Tower
Mute Game
Tower shoots enemies

Expected behavior:
Sound should be muted
Relevant log output
No response
Checklist

[X] I agree to follow this project's Code of Conduct

No longer a bug. Someone else fixed it


Minor change: Add quotes to contact.html meta tag

This is an beautiful template you have built!
Minor edit: Added quotes to description and author meta tags

I noticed that the other pages have the meta quotes, but not contact.html


[WIP] Handling transaction with SQL instead of engine functions

Resolves #1608

Talked offline and after the inability to make this PR stable due to race conditions occurring in the database, we have decided not to continue working on this path, at least for now.


Add controls to Silverlight Player in full screen like Flash Player

Could you add controls to the Silverlight Player in full screen?

Wow! Fantastic work.


HasPropertyWithValue reports actual exception thrown by bean method

When readMethod.invoke() was throwing an InvocationTargetException (i.e when the readMethod's execution was throwing an exception), the actual exception and message were lost (e.getMessage() of the InvocationTargetException is null).
With this patch, we report the actual exception's type and message.

Accepted with alterations. Thx


Support the 'mergeTokenAccounts' option

To stay compatible with the functions from the current SDKs, we need to offer the option to 'merge token accounts'.
The hard part here is currently a lack of understanding on how to reproduce this.
We need to:

[ ] learn how to reproduce the 'multiple token account', manually and in tests
[ ] implement mergeTokenAcccounts into the SDK based on the current implementations.

We will not add a mergeTokenAccountsoperation, instead we added a closeAccount operation in #503. We will update the SDK to make sure it works with multiple token accounts (eg, allow you to pick from which one you like to send the Kin) and that combined with the closeAccount operation will allow devs to build a merge account option.