Heet member spring

Description
created memberSpring.py and updated member.py with new staticmethod Spring()
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[x] Unit Tests
[ ] Attached examples

Test Configuration:

RFEM / RSTAB version: RFEM 6.06.0006
Python version: 3.11

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

both tests are failing! suds.TypeNotFound: Type not found: 'member_type_spring'

Hey, I have tested again and both tests are working fine with RFEM 6.06.0006.


Docs for scanning known vulnerabilities in container images

Creating this issue to document the periodic scanning process for container images . Please refer to this PR for the work done. https://github.com/kubernetes/test-infra/pull/23419
Umbrella issue : https://github.com/kubernetes/sig-security/issues/3
There is a similar doc created for build time dependencies also . Reference PR: https://github.com/kubernetes/sig-security/pull/16

I'd be happy to take this on!

/assign @jan0ski
yay, thank you Tommy for taking this on :-)

/sig security docs

@PushkarJ do we have a label for tooling?

@savitharaghunathan: Nope I have just added sig security label for all the tooling work so far.

https://github.com/kubernetes/sig-security/pull/26 is now merged that addresses this issue.
/close


treesheets: unstable-2022-11-11 -> unstable-2022-12-13

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for treesheets is: "Free Form Data Organizer"
meta.homepage for treesheets is: "https://strlen.com/treesheets/"
meta.changelog for treesheets is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found unstable-2022-11-14 with grep in /nix/store/33v59656v0ry43a8mgh4vrwbx0x06c8x-treesheets-unstable-2022-11-14
found unstable-2022-11-14 in filename of file in /nix/store/33v59656v0ry43a8mgh4vrwbx0x06c8x-treesheets-unstable-2022-11-14

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
treesheets

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/33v59656v0ry43a8mgh4vrwbx0x06c8x-treesheets-unstable-2022-11-14 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A treesheets https://github.com/r-ryantm/nixpkgs/archive/1bc9075117ce540a8cfc37c82a72881a8acb1ac0.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/33v59656v0ry43a8mgh4vrwbx0x06c8x-treesheets-unstable-2022-11-14
ls -la /nix/store/33v59656v0ry43a8mgh4vrwbx0x06c8x-treesheets-unstable-2022-11-14/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

treesheets

Maintainer pings
cc @obadz @AveryLychee for testing.

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for treesheets is: "Free Form Data Organizer"
meta.homepage for treesheets is: "https://strlen.com/treesheets/"
meta.changelog for treesheets is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found unstable-2022-11-22 with grep in /nix/store/3fgvp0wkgq5kxgkkf7gzf8gv1ryn2ak7-treesheets-unstable-2022-11-22
found unstable-2022-11-22 in filename of file in /nix/store/3fgvp0wkgq5kxgkkf7gzf8gv1ryn2ak7-treesheets-unstable-2022-11-22

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
treesheets

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/3fgvp0wkgq5kxgkkf7gzf8gv1ryn2ak7-treesheets-unstable-2022-11-22 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A treesheets https://github.com/r-ryantm/nixpkgs/archive/60987b7fd65bc832d0497a49c544b9505acd99b4.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/3fgvp0wkgq5kxgkkf7gzf8gv1ryn2ak7-treesheets-unstable-2022-11-22
ls -la /nix/store/3fgvp0wkgq5kxgkkf7gzf8gv1ryn2ak7-treesheets-unstable-2022-11-22/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

treesheets

Maintainer pings
cc @obadz @AveryLychee for testing.

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for treesheets is: "Free Form Data Organizer"
meta.homepage for treesheets is: "https://strlen.com/treesheets/"
meta.changelog for treesheets is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found unstable-2022-11-24 with grep in /nix/store/rj4xbf786aqr0vm04px2pd6414mr0hpq-treesheets-unstable-2022-11-24
found unstable-2022-11-24 in filename of file in /nix/store/rj4xbf786aqr0vm04px2pd6414mr0hpq-treesheets-unstable-2022-11-24

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
treesheets

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/rj4xbf786aqr0vm04px2pd6414mr0hpq-treesheets-unstable-2022-11-24 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A treesheets https://github.com/r-ryantm/nixpkgs/archive/d25ead2cd03f1fe10dc209fa23512a894418a19a.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/rj4xbf786aqr0vm04px2pd6414mr0hpq-treesheets-unstable-2022-11-24
ls -la /nix/store/rj4xbf786aqr0vm04px2pd6414mr0hpq-treesheets-unstable-2022-11-24/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

treesheets

Maintainer pings
cc @obadz @AveryLychee for testing.

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for treesheets is: "Free Form Data Organizer"
meta.homepage for treesheets is: "https://strlen.com/treesheets/"
meta.changelog for treesheets is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found unstable-2022-12-13 with grep in /nix/store/xdza0lfjabi60siw5yd158i6qyv3w2wk-treesheets-unstable-2022-12-13
found unstable-2022-12-13 in filename of file in /nix/store/xdza0lfjabi60siw5yd158i6qyv3w2wk-treesheets-unstable-2022-12-13

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
treesheets

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/xdza0lfjabi60siw5yd158i6qyv3w2wk-treesheets-unstable-2022-12-13 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A treesheets https://github.com/r-ryantm/nixpkgs/archive/3d8382041b1f98fc8510c44de727dd21993b0700.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/xdza0lfjabi60siw5yd158i6qyv3w2wk-treesheets-unstable-2022-12-13
ls -la /nix/store/xdza0lfjabi60siw5yd158i6qyv3w2wk-treesheets-unstable-2022-12-13/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

treesheets

Maintainer pings
cc @obadz @AveryLychee for testing.


tpl: Put Go's internal template funcs in Hugo's map

name                            old time/op    new time/op    delta
SiteNew/Many_HTML_templates-16    43.4ms ± 0%    42.7ms ± 0%  -1.71%  (p=0.016 n=4+5)

name                            old alloc/op   new alloc/op   delta
SiteNew/Many_HTML_templates-16    17.5MB ± 0%    17.5MB ± 0%    ~     (p=0.690 n=5+5)

name                            old allocs/op  new allocs/op  delta
SiteNew/Many_HTML_templates-16      247k ± 0%      247k ± 0%    ~     (p=0.310 n=5+5)

Fixes #6717

Note that the benchmark above isn't the best. I see 10+% improvements building the Hugo site.


[Feature] support sync cloud table meta by http api

current meta sync does not delete cloud schema change's old tablet, supports an http api to support tablet delete and shard delete, so this problem does not affect table colocation.
also fix the wrong order of delete old tablet/shard and update colocation info after schema change.
What type of PR is this:

[ ] BugFix
[x] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Does this PR entail a change in behavior?

[ ] Yes, this PR will result in a change in behavior.
[x] No, this PR will not result in a change in behavior.

If yes, please specify the type of change:

[ ] Interface/UI changes: syntax, type conversion, expression evaluation, display information
[ ] Parameter changes: default values, similar parameters but with different default values
[ ] Policy changes: use new policy to replace old one, functionality automatically enabled
[ ] Feature removed
[ ] Miscellaneous: upgrade & downgrade compatibility, etc.

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[x] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto-backported to the target branch

[x] 3.2
[x] 3.1
[ ] 3.0
[ ] 2.5

https://github.com/Mergifyio backport branch-3.2

https://github.com/Mergifyio backport branch-3.1


C++-17/boost

The tests needs "boost" too. There is also an issue with the "boost" environment variable, "boost" must be installed, even with C++-17.

The boost is used by tests (and tools, etc), while it's not a pre-requirement to use the modern-cpp-kafka headers.
If you just include the modern-cpp-kafka API in a parent projects, no need to install boost (if with c++17).

Change the project description, which does not reflect this. Users who don't whish to install "boost" can not use this library with all of its features! The C++-17 option is also buggy, because you must have installed "boost" on your system!
It's a question of clear usability.

Users who don't whish to install "boost" can not use this library with all of its features!

An easy to verify the boost dependency is,

Install the librdkafka library (manually, I'd suggest), but don't install boost.
Copy the modern-cpp-kafka headers (i.e. include directory) into your own project folder.
Try to use the modern-cpp-kafka API in your project. (make sure to build with C++17)

Then, if there's any failure, please attach the error messages.

This is no solution. If i like to test the library or if i like to read the manuals i must build it with CMake, but this does not work because of bugs inside the build scripts.


Combine: Move SqlEnvChange to shared and sync usage

Re-work of https://github.com/dotnet/SqlClient/pull/1200 which was closed because it had been open so long that it wasn't possible to rebase it. Can you please given this some attention, I don't want to have to wait 6 months and do it a third time.

CI is green because nothing ran. This is a new sort of broken.

CI is green because nothing ran? This is a new sort of broken.

The CI now runs all under one job "CI-SqlClient". It seems to be pretty stable so far.

Ok. Well everything is green so it can be merged immediately then 😁


Suggested branch for SimpleElastix (DLL load failed while importing _SimpleITK)

Hello, does anyone install/update SimpleElastix recently on windows? Any suggestion on which branch I should use.
I tried the "master", "develop", and "azure-ci-simpleitk" branches, but unfortunately none of them works for me.
The latest test is on "develop" branch to avoid an error in OpenJPEG https://github.com/SuperElastix/SimpleElastix/pull/425
I build with VS2019 without error (following figure)

However I was stopped at the last step with error ** DLL load failed while importing _SimpleITK: The specified module could not be found.**. I tried to debug following https://github.com/SuperElastix/SimpleElastix/issues/372

I do not have any other file in SimpleITK-build\Wrapping\Python\Packaging except for "setup.py.in"

there is no _SimpleITK.pyd in SimpleITK-build\Wrapping\Python, while there is a _SimpleITK.pyd in SimpleITK-build\Wrapping\Python\SimpleITK. I tried by adding this folder with sys.path.append(). I was able to find the SimpleITK.py file but it does not work for _SimpleITK.pyd.

Can any one give some suggestions? An old version dates back to 1-2 years ago would also work for me.
Thank you in advance!
Package used:
windows 10, VS2019, CMake 3.21.0-rc3, Anaconda3-2021.05-Windows-x86_64

This seems to be a typo in doc. https://github.com/SuperElastix/SimpleElastix/pull/353
Is the correct setup.py file locating in SimpleITK-build\Wrapping\Python rather than SimpleITK-build\Wrapping\Python\Packaging?


Be able to cycle through multiple urls

First off,  This utility is awesome!  Really incredibly useful.
I would love to slam my app from a handful of urls at the same time, rather than just one.  To simulate the actual behavior of my app.  Something like the way siege does it with an optional url_file parameter.
Is something like this  possible with the BwMG now?  If not I would love to see this feature.
I did something like this with ruby/ab by spawning threads and kicking of parallel ab.  But I could not get it to scale.  Maybe with BwMG, we can send each url in the list to a bee?
I totally would try to add feature to this, but I am lost in Python.
Thanks again for the great utility!

i think he means that you give him a list and it goes through every url dosing it and then goes to the next and dos that.

I would also really like to see multiple url support. I am interested in testing a search engine with a little more than 2000 distinct requests per minute. Unfortunately the solution from @marfarma isn't viable for my situation, because each url only needs to be hit 1-5 times in a test and they need to be distributed throughout the testing period roughly evenly.

So when is this planned? Multiple URL support would make this perfect, but without it, I'm going to need to use something other tool.

@brian-traceme Multiple urls enabled in https://github.com/newsapps/beeswithmachineguns/issues/133


Console

💭 Description
Hi,
How do you output text in the Logs on purpose ?
Thanks
👀 Have you spent some time to check if this issue has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

You can send logs to stdout for the respective language. For example in dart you can use print in nodejs you can use console.log and so on


Dataset link appears to be down

Hi! Many thanks for putting together this fantastic resource. I'm trying to download the latest version of the BigBind dataset but the link posted on the README.md appears to be down. Has it moved somewhere else?

It should be back up now; a little hiccup with google cloud security sorry for the delay


Use shimmed buildpack

The previously deployed Ruby buildpack is based on the "hybrid" approach https://github.com/heroku/heroku-buildpack-ruby. Essentially Terence added support for CNB into the existing buildpack. This works, but it's not taking advantage of most of the features in CNB. It's really not too different than using the "shim" buildpack.
(The shim is a wrapper around any legacy/v2 buildpack that allows it to interface with CNB)
The idea is that we'll use the shim buildpack for now and switch over once a native CNB implementation in Rust is ready.
GUS-W-11461073

@schneems Looks like your Circle CI OAuth needs refreshing (sign in and out). I worked around for now by closing/reopening, so Circle used my token (as the actor of the reopening event).


Scene editor missing entity states (f.e. for covers)

Home Assistant release with the issue:

0.102.2
Last working Home Assistant release (if known):
Operating environment (Hass.io/Docker/Windows/etc.):

hass.io
Integration:

Description of problem:
The new scene editor does not correctly store the state of the entities in the yaml file. F.e. for covers, the current_position is not stored. So when I'd like to create a scene with the blinds half way down, they will be open since the main state is open and neither a current_position nor current_tilt_position seem to be stored. Same probably applies to other entities, but not tested yet.
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

Traceback (if applicable):

Additional information:

Confirmed:

Leads to:
- id: '1574800258834'
  name: my scene
  entities:
    cover.living_room_window:
      state: open


Wrong completion matches temporarily

Version: 17.9.0 P2.1
For the request p, the wrong completion (AbandonedMutexException) is selected temporarily instead of the obvious one (p lambda expression parameter). After a short time, the right one gets selected, but you can see on the video that the wrong completion is temporarily gets selected:
https://github.com/dotnet/razor/assets/9047283/a456d594-479c-4468-9991-8d541cd3705c
This can be frustrating when I just type continuously (in this case p) and get a random completion activated (on ) because a wrong completion was selected):
https://github.com/dotnet/razor/assets/9047283/00b9a369-fde4-47bf-aedc-a26039c2d2b0
May be related to #9724 #9725 in terms of there are obviously timing issues somewhere in the system.

This is a shorter repro, o matches #region first and then object:
https://github.com/dotnet/razor/assets/9047283/4948155e-06e4-4f41-9a5d-03cf461b4218

This is another case when I try to type out and get AccountLayout committed by a random completion:
https://github.com/dotnet/razor/assets/9047283/bf3ca6f5-003c-40fa-b7f5-8c46aa6782b9
It feels like (in same cases) selecting completions are late by at least a few hundred milliseconds for each character. May not be clearly visible on this recording, but I can see the selection jumping in the completion session as I type character by character. Unless I type like super slow (and wait for the right completion to be matched), I get a random completion activated, which is quite frustrating.

The issue of typing a HTML tag or attribute fast, and pressing tab to accept the 1st intellisense item, and getting the wrong tag put in happens regularly for me in .cshtml files. It's so annoying. After it happens, most of the time it won't repeat the problem for that same tag at that same editor location, meaning it works after erasing it and re-typing/tabbing. But sometimes after it happens and I erase and slowly re-do it, I can see that intellisense doesn't have that item in the list, and I have to type the full thing without being able to press tab.

Type if, and get completed with IFormatProvider (happens the most frequently):
https://github.com/dotnet/razor/assets/9047283/edd45be0-a656-4753-ac99-e2b461dc51cd

I run into this constantly. It's also when typing CSS in a razor page, in a <style> block. I opened a .cshtml page, waited for a few minutes, then in an existing <style> block, I added padding: 2rem; and when I typed the semi-colon it erased the 2rem and put some random non-CSS thing in. I removed the strange value and re-typed the 2rem; and it was OK then.
It seems to happen the 1st time you type something in a particular category, like CSS, Html attributes, etc., meaning the 1st HTML attribute is borked, but then the next one is OK. It's like intellisense says, "Oh, OK, we're doing HTML attributes now."
I've used every version of Visual Studio since it came out in the late 1990's. I've never seen it handle fundamental things like typing and syntax colorization so poorly.


[R&D] Authentication design pattern definition

Can you please mention where do we have backend API endpoints(and any sort of their documentation) where queries related to authentication and other fhir-related functionalities are to be made. Thanks


FoundChoice misbehaving when text and an integer value is entered

Version
Microsoft.Bot.Builder.Dialogs <IP_ADDRESS>
Describe the bug
In the validation of the component FoundChoice the property .Recognized.Succeeded is also set to true if none of the given choices match directly. For example we have a choice prompt with the choices Send and Cancel. If I enter for example No start at 01.01.2022 the first choice Send is detected. Which is not what I would expect. And if I enter something like ... 02.02.2022 the second choice Cancel is detected.
Also no aliases have been registered for the choices.
To Reproduce
Steps to reproduce the behavior:

Have a dialog with a ChoicePrompt and one or more choices without any aliases.
Register a choice validation method for the ChoicePrompt e.g.:

AddDialog(new ChoicePrompt(nameof(ChoicePrompt), ChoiceValidation));

The choice validation should only return the following:

return Task.FromResult(promptContext.Recognized.Succeeded);

When testing the prompt in BotFramework Emulator input none of the given choices but rather something with an integer value (e.g. Do 01)
Then check if the choice has been recognized in the validator. In my case the returned value was true

Expected behavior
The choice should not be recognized therefor the validation should return false.
Additional context
My workaround now is to check if the input value matches the registered choices:
protected async Task<bool> ChoiceValidation(PromptValidatorContext<FoundChoice> promptContext, CancellationToken cancellationToken)
        {
            return await Task.FromResult(promptContext.Recognized.Succeeded) &&
                promptContext.Options.Choices.Any(c => c.Value.Equals(promptContext.Context.Activity.Text, StringComparison.InvariantCultureIgnoreCase));
        }

If something is unclear. I can provide additional information.

I'm investigating this. Thank you for reporting.

I was able to reproduce this bug and confirm that the workaround functions. However, not every combination of numbers and letters causes this.  There seems to be something about the format of certain strings that causes validation to pass incorrectly. For example, standalone numbers separated by periods is one that tends to fail. Further investigation is required to determine why.

Hi @frei-sven,
After some investigation, I believe I know the cause of your problem. When the user's input cannot be directly matched to one of the choices, the code will then fall back on checking for ordinal numbers or integer values to try and deduce which option the user wants. In your example, you have the options Send and Cancel. The input Do 01 is being interpreted by the ChoicePrompt as a request for the first option, and thus Send is recognized. This result would be akin to entering something like "The first option" or "Pick number 4". Essentially, the integer is being interpreted as an index into the available choices.
When you entered the dates 01.01.2022 and 02.02.2022, the same thing happened. The code broke the utterances into tokens, sorted them, then pulled the first one and interpreted the numbers as an index. Thus, 01 became Send, and ``02becameCancel`, the second option.
When you enter an incorrect input without specifying any numbers, this validation fails since there are no integers or ordinals to interpret and the user is prompted again, as you would expect.
As we want to be able to recognize users that choose options by number, this is intended behavior. Given that, your solution of double-checking the input against the choice in your dialog is an appropriate workaround.

HI @anishprasad01
Thanks for your detailed answer. Now I completely understand that this behavior is as intended with the examples you have described. I never thought of this while coding with the Botframework. But maybe I have a use case for this in the future 💯 .
But maybe as an idea for a future modification of the ChoicePrompt/FoundChoice component, to make this behavior controllable via an input value. To give the developer a choice if he wants this implicit decision-making or not.


streamFactory errors should propagate to the caller

Description
This PR fixes the issue where an error occuring in the streamFactory of the RPCClient causes an unhandled promise rejection.
Issues Fixed

Fixes #62

Tasks

[x] 1. Fix error propagation of rejected promises returned from streamFactory

Final checklist

[x] Domain specific tests
[x] Full tests
[x] Updated inline-comment documentation
[x] Lint fixed
[x] Squash and rebased
[x] Sanity check the final build

the duplex caller handles abort awaiting stream test has broken after the fixes, as it did not expect that cancelling a stream will cause for the reason given to be the thrown on the proxied RPC call method. This has been fixed by making the test expect a throw from the call.


stable landmarks results like demo?

Nice job. I download the project, and test it with a video, but the landmarks is untstable like demo.

Hi,
The model was trained with only the public dataset,  however all the dataset is very poor, very hard augmentation was done here to fit the model. And that means the model may not generalize well.
If you want get a good model,  please use your own data.
good luck


[Release 1.22] Fix IPv6 default endpoint

Backport for #5420

Validated in the scope of testing https://github.com/k3s-io/k3s/issues/5384


Problems using auto(re)conf

Hello..
today I tried to build a project that is using auto(re)conf.
First problem is more a problem of the perlport. Because
autoreconf is complaining about missing libperl.so.
Adding the $ZOPEN_ROOTFS/usr/lib/5.38.0/os390/CORE
to the LIBPATH fixed this problem.
Then I stumbled over the next isse:
Can't locate Automake/Config.pm in @INC (you may need to install the Automake::Config module) (@INC entries checked: ZOPEN_INSTALL_ROOT/share/automake-1.16 $ZOPEN_ROOTFS/usr/local/zopen/perl/perl/lib/5.38.0/os390 $ZOPEN_ROOTFS/usr/local/zopen/perl/perl/lib/5.38.0 $ZOPEN_ROOTFS/usr/local/zopen/perl/perl/lib/5.38.0/os390 ../lib/site_perl/5.38.0/os390 ../lib/site_perl/5.38.0 ../lib/5.38.0/os390 ../lib/5.38.0) at $ZOPEN_ROOTFS/usr/bin/aclocal line 35.
BEGIN failed--compilation aborted at $ZOPEN_ROOTFS/usr/bin/aclocal line 35.
autoreconf: error: aclocal failed with exit status: 129

Regards Mike

@HarithaIBM , are you able to take a look?

> git clone https://github.com/universal-ctags/ctags.git
> cd ctags/
> ./autogen.sh
...
CEE3501S The module libperl.so was not found.
         The traceback information could not be determined.
...
> export LIBPATH=$ZOPEN_ROOTFS/usr/lib/5.38.0/os390/CORE:$LIBPATH
...
aclocal is /u/beta_user/mikeg1/zopen/usr/bin/aclocal
------------------------------------------------------------------
Can't locate Automake/Config.pm in @INC (you may need to install the Automake::Config module)
...
automake is /u/beta_user/mikeg1/zopen/usr/bin/automake
------------------------------------------------------------------
Can't locate Automake/Config.pm in @INC (you may need to install the Automake::Config module)
...

@mgrossmann Hi Mike, I would suggest you to clone using following command git clone git@github.com:ZOSOpenTools/ctagsport.git, cd ctagsport and run zopen build -vv to build the repo. This should work.

Hello @HarithaIBM
Thanks for your suggestion. But this a complete other version of ctags. Universal Ctags is kind of successor of Exuberant Ctags.
But that's not the problem at all. Same problem occurred with other projects that are using autoconf as well.
It looks like LIBPATH is not correct and the include path for perl modules as well.
So it's a more generic problem, not specific to the ctags stuff.
Thanks
Mike


Fix #610 Fetch revisions by objectId and schemaName

Can we split this PR into 13 commits - #610 (comment). This is too big a PR for me to review and approve.

Ok.

Can you share instructions to run the test suite to test the changes ?

Can you share instructions to run the test suite to test the changes ?

Yes.

Make deployable docker image from main branch of bb-consent-api by executing make build/docker/deployable command
Copy image name and paste it in image fields value under api in test-docker-compose.yaml file inside test folder in bb-consent-playground
Execute the following commands in bb-consent-playground
make destroy
make build-fixtures
make build-test
make setup-test
make run-test-behave
Make deployable docker image from fix/610 branch by executing make build/docker/deployable command in fix/610 branch
Copy image name and paste it in image fields value under api in test-docker-compose.yaml file inside test folder in bb-consent-playground
Execute the following commands in bb-consent-playground
make destroy
make setup-test
make run-test-behave

Tests have passed


Add ZF2015-10

This should include zf >2.0.0,<2.4.9 as per http://framework.zend.com/blog/zend-framework-1-12-17-and-2-4-9-released.html

Updated and squashed the commits. :)

Still needs to cover zendframework/zendframework as well tho :-\

How would you recommend doing that?

@paragonie-scott create a second advisory for the zendframework/zendframework package (with the same content except for the composer reference)

:+1:


frontend: Fix group channel editing

Group channel editing is fixed
Closes https://github.com/kinvolk/nebraska/issues/488 and https://github.com/kinvolk/nebraska/issues/476

@joaquimrocha note, this bug is also on the proof-of-concept branch.


Add export-import related JS best practices

Would it make sense to add https://exploringjs.com/es6/ch_modules.html to the resources? It's a great introductory to this whole module-system imo.

I had that initially actually but found it way too broad for these items. It is a good overview, but I don't know where to include it. I would like that reading through the resources are directly helpful for these rules, but this one mostly gives a general understanding. It's also linked within one of the sources I believe.


How to handle ExecutionResult ?

Hi everyone.
I've setup my application to work with cookies :
path('graphql', jwt_cookie(csrf_exempt(GraphQLView.as_view(graphiql=True, schema=schema)))),
But now I'm trying to write tests and I didn't manage to make them work.
I tried what's in the docs
def setUp(self):
    self.user = get_user_model().objects.create(username="test")
    self.client.authenticate(self.user)

But how can I perform asserts ? I mean, it seems the returned object is an ExecutionResult. How can we use it ?

Well after some digging process, I've been able to print this to console when playing with an ExecutionResult instance :
response :  ['__class__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__',
'__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__',
'__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__slots__', '__str__', '__subclasshook__',
'data', 'errors', 'extensions', 'invalid', 'to_dict']

So useful things for making asserts are data, errors, invalid.
I don't know what extensions actually does yet though.


Initialization of brooklyn within karaf

Initializes brooklyn using a serial initialization sequence in a new class org.apache.brooklyn.core.OsgiLauncher in brooklyn-core. The purpose of this PR is to stay close to the existing BrooklynLauncher initialization code, while discussing the location of various settings within karaf's etc folder. Further work should move individual bean initialization into corresponding  init-methods of each bean specified in OSGI-INF/blueprint/blueprint.xml

I have been unable to determine why I had to drop a test in 05518e7; from my investigation the test setup does not call setManagementContext on the ServerResource, but I was not able to find a solution so far. Can anybody help?

Fixed failing test. Please review and merge.

Replying to @CMoH's comment above:
Two points to tackle here - ManagementContextHolder and rest resource initialization

ManagementContextHolder is meant to be used by BrooklynLoginModule exclusively That's the approach used by Karaf for passing BundleContext to its ProxyLoginModule. You've given me a great suggestion of looking for the ManagementContext service directly, but for the time being BrooklynLoginModule will be used by the classic brooklyn as well, so this is something that could be done once we switch to karaf completely.

Agree that ManagementContext handling in REST needs a clean up.

All current uses of OsgiCompat can be replaced by alternatives. Classic-only code like servlet filters should look directly into the ServletContext. For JAX-RS code see below.
For consistency would be nice if all JAX-RS code (resources, filters, interceptors, providers) depends on the ManagementContextProvider.
ManagementContextProvider could be used to abstract the environment - classical vs OSGi, the first one injecting through ServletContext, the other through aries blueprint injection. One provider could handle both cases or have a different one for each.
If there are tests still injecting the ManagementContext I'd consider this oversight, something that I've missed to migrate to one of the above aproaches.

Finished review. Looks good. The web console is happy with the state.
Some points:

The catalog is empty on startup - is this something that needs to be added to init or an OSGi limitation preventing us from initializing it atm?
Can you share your view on next steps. What absolutely needs to be implemented, nice to have changes, anything on your mind.

@neykov Thanks! I'll try to reply in general, and next to line comments.
First, there were some aspects of BrooklynLauncher's initialization code that were unclear to me. I've let them commented out in the OsgiLauncher for the purpose of further discussion. I think your line notes (and the other commented sections) can act as a checklist on what's still to be done to round the osgi initalization up.
Second, the catalog is indeed empty on startup, at least for now. I have started work on this, but there are some issues to clarify on how to leverage OSGi services in populating the catalog with existing entities, policies and the rest of the Java-based catalog items. The catalog items represented by blueprints is the other side of the catalog, and I think this won't change at all.
So, for next steps I think this empty catalog issue needs to be tackled. Finishing up the rest of the initialization code is also on the board. There is a particular issue with guava versions used in brooklyn and jclouds, which makes brooklyn-location-jclouds unusable in OSGi at the moment.
From my limited perspective, after these three steps we'll have a demo-grade brooklyn running in karaf.

Merging, any TODO can be addressed in separate PRs.

Notes on key points still to address:

Decide how to access management context from various places
Read brooklyn.properties
Make MachineEntity and BasicEntity deployable as a first step in getting the Catalog populated from OSGI
CAMP - initialise CAMP platform in the launcher
Define what shutdown means in the context of Karaf


feat: Alternative OHE using vectors

background:

instead of a full sql translation of one-hot encoding algorithm, he was envisioning more of as a backend registered function, which probably will be more performant.

That requires SQL metaprogramming to first enumerate a list of unique values in the columns and then craft the create statement

additionally it pigeon holes you into one hot encoding having to return separate columns per value whereas many frameworks, i.e. Spark MLlib if I remember correctly, return something like a 2d vector in lieu of those columns (which can be handled much more efficiently from a memory / hardware perspective)

Some response:

When fitting a one-hot-encoder we already have to collect all the cases so they're consistent across all applications of transform.
The only difference here would be whether a one-hot-encoder should return a column-per-case or a column of an array of cases. I'd argue that since the consuming tooling will want a flat array, not special casing one-hot-encoding (for now) and returning a column-per-case is the correct approach.
Also note - ibisml already has a OneHotEncode step that does all this.

Related to https://github.com/ibis-project/ibis-ml/issues/26

There are pros and cons of representing as separate columns vs. vectors. For now, we will wait for additional signal before switching to further leverage vector abstractions. In the short term, more backends cleanly support standard column operations than vector operations, and the aforementioned SQL metaprogramming to generate CREATE statements with a lot of columns is not as big of a drawback when using Python/Ibis.
Performance considerations should be evaluated more thoroughly at a later point.


feat(dataplane gcs): add dataplane for Google Cloud Storage

What this PR changes/adds
Adds the dataplane for google cloud storage.
Why it does that
Enable data transfer from and to Google Cloud Storage.
Further notes
Including some small fixes in the gcs-core and provisioner. Authentication is currently against the Google Cloud API. Another pull request will come to cover different authentications' approaches.
Linked Issue(s)
Closes #1908
Checklist

[X] added appropriate tests?
[X] performed checkstyle check locally?
[X] added/updated copyright headers?
[ ] documented public classes/methods?
[X] added/updated relevant documentation?
[ ] assigned appropriate label? (exclude from changelog with label no-changelog)
[ ] formatted title correctly? (take a look at the CONTRIBUTING and styleguide for details)

Codecov Report
Base: 64.74% // Head: 64.04% // Decreases project coverage by -0.69% :warning:

Coverage data is based on head (08ab1c7) compared to base (6623720).
Patch coverage: 87.87% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2112      +/-   ##
==========================================
- Coverage   64.74%   64.04%   -0.70%
==========================================
  Files         792      804      +12
  Lines       16881    17079     +198
  Branches     1090     1094       +4
==========================================
+ Hits        10929    10939      +10
- Misses       5497     5684     +187
- Partials      455      456       +1

Impacted Files
Coverage Δ

...ceconnector/core/CoreDefaultServicesExtension.java
68.42% <ø> (ø)

...dataspaceconnector/core/CoreServicesExtension.java
93.93% <ø> (ø)

...onnector/core/base/CommandHandlerRegistryImpl.java
50.00% <ø> (ø)

...aspaceconnector/core/base/OkHttpClientFactory.java
92.85% <ø> (ø)

...core/base/RemoteMessageDispatcherRegistryImpl.java
14.28% <ø> (ø)

...r/core/base/agent/ParticipantAgentServiceImpl.java
100.00% <ø> (ø)

...ctor/core/event/EventExecutorServiceContainer.java
100.00% <ø> (ø)

...dataspaceconnector/core/event/EventRouterImpl.java
85.00% <ø> (ø)

...r/core/health/HealthCheckServiceConfiguration.java
100.00% <ø> (ø)

...econnector/core/health/HealthCheckServiceImpl.java
97.67% <ø> (ø)

... and 408 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

@git-masoud have you signed the ECA? GH reports the check as failed...

@git-masoud have you signed the ECA? GH reports the check as failed...

yes, I have signed it. There is a weird issue. In the ECA check, I see two accounts are being verified. One as Masoud<EMAIL_ADDRESS>which pass the tests, the other one is shown as Anonymous<EMAIL_ADDRESS>which is failing. I had my last commit directly in github, it could be the reason.

yes, I have signed it. There is a weird issue. In the ECA check, I see two accounts are being verified. One as Masoud<EMAIL_ADDRESS>which pass the tests, the other one is shown as Anonymous<EMAIL_ADDRESS>which is failing. I had my last commit directly in github, it could be the reason.

I think the user.email of you git config and your git handle need to match the email of the ECA and the handle you specified there.
I had problems with it too in the past :)

merged despite CodeQL Warnings - they are false positives and surface due to a refactoring/renaming of directories and files.


#2426 get rid of v2 model objects

Using play-json, we are no longer in need for V2AppDefinition or V2Group classes anymore. This pull request should get rid of those classes.

@alexanderweber this branch has everything that is in the ModelValidation branch - correct? You can create a branch on top of another branch. That way we see only the changes for Model Objects.

@aquamatthias you are right. Should I close this one and open a new pull request having the ModelValidation replacement as base?

Yes please.

New pull request created: #2837


[NEW ALGORITHM]  I would like to enhance String Algorithms by adding the following new Algorithms i.e. Floyd's Tortoise and Hare Algorithm (Cycle Detection), Suffix Array Construction, Burnside's Lemma (Counting Symmetries)

Description:
1.Floyd's Tortoise and Hare Algorithm (Cycle Detection) :This algorithm is used to detect cycles in a linked list or find repeated elements in sequences. It's also known as the "Tortoise and Hare" algorithm and operates in O(n) time with O(1) space.
2.Suffix Array Construction
A Suffix Array is an array of all suffixes of a string, sorted in lexicographical order. It can be used for pattern matching, longest common prefix, etc.
3.Burnside's Lemma (Counting Symmetries)
Burnside's Lemma is used in group theory to count the number of distinct objects under symmetry operations. This is particularly useful in combinatorics for counting colorings, patterns, etc.
Checklist:

[ ☑] Contributor in GSSoC-ext
[ ☑] Want to work on it

mention only one


Ctrl+f option doesn't work for quick search

Over https://landscape.cncf.io/ search option is there but having Ctrl+f option would be best for quick search. CC: @castrojo

Hi @adityasonittyl 👋
Some users may not like that we override the native search functionality. But maybe we could define another keyboard shortcut and display it in the search field as a placeholder (like GitHub does).

BTW I transferred the issue to the cncf/landscape2 repository @adityasonittyl, which hosts the landscapes generator (used to build the CNCF landscape, among others 🙂).

Hi @adityasonittyl 👋
Some users may not like that we override the native search functionality. But maybe we could define another keyboard shortcut and display it in the search field as a placeholder (like GitHub does).

Yes make sense, agree.


Some shard's connection is broken, but can't reconnect until the program exit

General Troubleshooting

[x] I have checked for similar issues.
[x] I have updated to the latest JDA version.
[x] I have checked the branches or the maintainers' PRs for upcoming bug fixes.

Bug Report

Some shard's connection is broken, but can't reconnect until the program exit.
(with this warnings)
...
[20:07:31.088] [WARN ] [WebSocketClient]: Hit the WebSocket RateLimit! This can be caused by too many presence or voice status updates (connect/disconnect/mute/deaf). Regular: 0 Voice: 19 Chunking: 0
[20:07:36.516] [WARN ] [WebSocketClient]: Missed 2 heartbeats! Trying to reconnect...
[20:08:44.271] [WARN ] [WebSocketClient]: Hit the WebSocket RateLimit! This can be caused by too many presence or voice status updates (connect/disconnect/mute/deaf). Regular: 0 Voice: 19 Chunking: 0
...

It appears to be related to this PR (#1282).
Expected Behavior

The connection will be auto recovering soon.
Code Example or Reproduction Steps

N/A
Code for JDABuilder or DefaultShardManagerBuilder Used

    DefaultShardManagerBuilder.createDefault(token)
                    .setAutoReconnect(true)
                    .setAudioSendFactory(
                            AsyncPacketProviderFactory.adapt(
                                    NativeAudioSendFactory()
                            )
                    )
                    .addEventListeners(eventListener)
                    .setUseShutdownNow(true)
                    .setBulkDeleteSplittingEnabled(true)
                    .build()

Exception or Error

N/A

What is the shard status? Do you have any exceptions, warnings, or error logs? Can you provide a thread dump?

One or more shards going offline. (total shards: 30)
This is the warning message
(spam message in console with intervals regular)

[WARN ] [WebSocketClient]: Hit the WebSocket RateLimit! This can be caused by too many presence or voice status updates (connect/disconnect/mute/deaf). Regular: 0 Voice: 19 Chunking: 0
[WARN ] [WebSocketClient]: Missed 2 heartbeats! Trying to reconnect...

Do you have any priviledged intents enabled/disabled?
I received a similar issue, but with "Chunking" and a fix was to change the ChunkingFilter to NONE and to also disable The Intents for PRESENCE, VOICE_STATE (I assume you need it?) and CLIENT_STATUS.
Not sure if disabling some of them would help.

I need the following:

JDA#getStatus for the shard that is stuck
All WARN/ERROR log messages of that session (or at least leading up to the stuck state)
The thread dump when its stuck jstack -l <pid>

Privileged intents are disabled.
and

The status is all CONNECTED.
This's it.

[WARN ] [daemon-pool-gateway-4-thread-2] [WebSocketClient]: Hit the WebSocket RateLimit! This can be caused by too many presence or voice status updates (connect/disconnect/mute/deaf). Regular: 0 Voice: 19 Chunking: 0
[WARN ] [daemon-pool-gateway-4-thread-3] [WebSocketClient]: Missed 2 heartbeats! Trying to reconnect...

[daemon-pool-gateway-4-thread-2]
priority:5 - threadId:daemon-pool-gateway-4-thread-2 - state:WAITING
stackTrace:
java.lang.Thread.State: WAITING (parking)
at<EMAIL_ADDRESS>Method)
- parking to wait for <0x0000000481611850> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.park(java.base@11.0.6/LockSupport.java:194)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(java.base@11.0.6/AbstractQueuedSynchronizer.java:2081)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(java.base@11.0.6/ScheduledThreadPoolExecutor.java:1177)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(java.base@11.0.6/ScheduledThreadPoolExecutor.java:899)
at java.util.concurrent.ThreadPoolExecutor.getTask(java.base@11.0.6/ThreadPoolExecutor.java:1054)
at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@11.0.6/ThreadPoolExecutor.java:1114)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@11.0.6/ThreadPoolExecutor.java:628)
at java.lang.Thread.run(java.base@11.0.6/Thread.java:834)

[daemon-pool-gateway-4-thread-3]
priority:5 - threadId:daemon-pool-gateway-4-thread-3 - state:WAITING
stackTrace:
java.lang.Thread.State: WAITING (parking)
at<EMAIL_ADDRESS>Method)
- parking to wait for <0x0000000481611850> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.park(java.base@11.0.6/LockSupport.java:194)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(java.base@11.0.6/AbstractQueuedSynchronizer.java:2081)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(java.base@11.0.6/ScheduledThreadPoolExecutor.java:1177)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(java.base@11.0.6/ScheduledThreadPoolExecutor.java:899)
at java.util.concurrent.ThreadPoolExecutor.getTask(java.base@11.0.6/ThreadPoolExecutor.java:1054)
at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@11.0.6/ThreadPoolExecutor.java:1114)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@11.0.6/ThreadPoolExecutor.java:628)
at java.lang.Thread.run(java.base@11.0.6/Thread.java:834)

Thats only 2 daemon threads, this isn't a thread dump. Please provide a complete thread dump. You can post it on https://gist.github.com and link it here.

https://gist.github.com/JellyBrick/c1bbb2995a93ed5f6d6dfb2c4e076bb8

It looks like you somehow killed the WriteThread for shard 4.

Update to 4.1.1_147 and check if the behavior returns.

Thanks! It seems like the problem has been solved!


Word wrap for HTML formatter

(Original issue 848 created by nathany on 2013-02-16T20:16:06.526099+00:00)
When reading code on mobile devices or at large font sizes, the current solutions use a lot of horizontal panning. I have been experimenting with supporting word wrap -- here is a mockup.
At the most basic level, this could be a matter of injecting a <wbr> tag after any word separator (eg. ./\()\"'-:,.;<>~!@#$%^&*|+=[]{}~?`) that isn't already followed by a space. Using <wbr> tells the browser that it may insert a line-break, and copy & pasting the code still works as expected.
I'm posting this proposal both to gauge interest, and because several challenges remain before this will work really well.

Hanging indents and guides, as I currently have them, introduce copy & paste issues and font-dependencies (using em's for indentation, which are based on the height, not width of the font).
Handling code that has been hard-wrapped, especially when indented beyond the norm (for alignment).
Detecting long unbreakable words (eg. http://dowebsitesneedtolookexactlythesameineverybrowser.com/) and allowing the browser to force a break at any character with word-break: break-all.
Handling line numbers when text is wrapped.
Integration with the existing Pygments code base. Even just the naming, as there are several options to wrap the output in some additional HTML.
Internet Explorer support. My tests with IE9/10 fail. I did find a lengthy document that could help.
I was also experimenting with preventing word wrap when appropriate, to keep the code as valid and readable as possible. This introduces lexer dependencies -- defining where implied line continuations are allowed for each language.

I hope this weekend or two of experimentation perks your interest in taking syntax highlighting to the "next level." Cheers.

(Original issue was assigned to birkenfeld)

(Original comment by nicorellius on 2013-08-16T16:59:31.426407+00:00)
I think this is a great idea. Would love to see it happen.

I recommend closing this ticket because it is seven years old. Also, I don't personally see benefit to word wrapping code on mobile platforms.

Yes, this is not going to happen without someone doing the PR.


[Foundation]: Add detailed documentation for NSLocalizedString

The existing documentation for the Swift implementation of NSLocalizedString doesn't describe its parameters, return value, semantics, and how it relates to localization as a whole.
This PR coalesces information from the Objective-C documentation, Xcode's Help document about exporting localizations, and WWDC presentations on internalization into a descriptive doc-comment.
Objective-C Documentation

NSLocallizedString
NSLocalizedStringFromTable
NSLocalizedStringFromTableInBundle
NSLocalizedStringWithDefaultValue

WWDC Sessions

WWDC 2017: Localizing with Xcode 9
WWDC 2018: New Localization Workflows in Xcode 10
WWDC 2019: Creating Great Localized Experiences with Xcode 11

Xcode Help

Xcode Help: Export localizations for translation

Adding @natecook1000 as a reviewer. Thanks @stevebrun!

@natecook1000 Thanks for the feedback! 😄

@natecook1000 Thanks for catching those typos! Do you have any other suggestions?

@swift-ci Please smoke test and merge

Looks great @stevebrun, thanks for the updates!

@swift-ci Please smoke test and merge


added support for filter terms equal 0 and false

Filtering using a term that equaled 0 or false did not work as expected since the terms have been used directly in logical conditions.

Looks great thanks.


Changelog

Is there a changelog available?
If not, is it planned?

Hi @Vadorequest
There is a high level changelog posted to the zeit.co/blog each month such as https://zeit.co/blog/changelog-january-2020
We also have a low level changlog posted to GitHub Releases for each Now CLI release such as https://github.com/zeit/now/releases/tag/now%4016.7.2
You can subscribe to GitHub Releases in the top of this repository:

@styfle I'm trying to understand what happened with https://github.com/zeit/now/releases/tag/%40now%2Fnode%401.5.0
Basically, I see a 1.5.0 version is available. I found this tag, but no information.
Then, I found the closest release at https://github.com/zeit/now/releases/tag/now%4017.1.0 for 17.1.0
The only thing related to node is:

[now-node] Use url.parse() for req.query helper (#3863) [@TooTallNate]

So, is that the only thing that was released with now-node 1.5.0? It's definitely hard to understand what happens when updating the @now/node package.

is that the only thing that was released with now-node 1.5.0

No, we also shipped all the implicit dependencies such as @now/build-utils and now (CLI).
The release<EMAIL_ADDRESS>shows all the affected packages. You could also look at the git logs which is basically the same information.

Thank you, but I forgot to make it obvious that I meant about @now/node package.
Indeed https://github.com/zeit/now/releases/tag/now%4017.1.0 provides a proper list of all affected packages, but what about packages such as @now/node? (updated from 1.4.0 to 1.5.0)
If I understand correctly, the only thing that was shipped with<EMAIL_ADDRESS>is:

[now-node] Use url.parse() for req.query helper (#3863) [@TooTallNate]

Yes that is the only change to that package, but the system as a whole relies on many packages so if you experience a change in behavior, it may not be from @now/node.


Update documentation to highlight the INC quantization CLI

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


Components

Description
Please include a summary of the change and a link to which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
Type of change
Please delete options that are not relevant.

[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[x] tested  that the components render
[x] tested that the styling of the components is correctly being applied
[x] tested that the routing was all functioning correctly
[x] tested that the modal all toggled and un-toggled
[x] tested that there were no errors in the console log
[x] tested and made sure that every file had prettier ran on it before the push

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] My code has been reviewed by at least one peer
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes

Awesome work!


Add support for AssemblyInitialize/AssemblyCleanup

Summary
Add support for AssemblyInitialize/AssemblyCleanup attributes in Native AOT engine.
AB#2050314

Closing in favor of the main task #1837


add code/dockerfile for building the secureboot signing job image

add code/dockerfile for building the secureboot signing job image (#101)
This commit adds a binary (signimage.go) and an associated Dockerfile that together will provide the image for use in the signing job.
The dockerfile compiles signimage, but it also retrieves the sign-file binary from the kernel-devel package. This binary is the one provided by the kernel developers for signing kmods, and while its operation is not super-complex and could be replaced, we use it to ensure maximum compatability and future-proofing.
The signimage.go binary takes an image name, pulls it down, loops through each file in each layer and if its a kernel modules extracts it to a temporary directory, and runs sign-file on it. All signed kmods are then added back as a (single) new layer, and the new image pushed back to the registry.
To support this extensive functionality is also added to internal/registry/registry.go

/lgtm


Add to Image Size Resizer and File Locksmith tools the ability to make their respective buttons only appear in the extended contextual menu

Description of the new feature / enhancement
The PowerRename tool has in its configuration the ability to choose whether the button will appear in the contextual menu or the extended contextual menu, and also if it will have an icon or not.
The idea is that the Image Size Resizer and the File Locksmith tools had this configuration too.
Scenario when this would be used?
The Image Size Resizer and the File Locksmith tools are very nice but you won't be using them all the time. The capability to hide them from the normal contextual menu would be very useful as it would make the menu simpler and shorter, but still available when you need it (using the extended contextual menu).
Supporting information
No response

Thanks for the request, this is a feature that is included in 0.76!


Fix enum field mapping in native mode

If pojo has enum fields then MyBatis mapper method fails in native mode with the cause:
Cause: org.apache.ibatis.type.TypeException: Unable to find a usable constructor for class org.apache.ibatis.type.EnumTypeHandler

It could be fixed by adding following lines to reflection-config.json:
 {
    "name" : "org.apache.ibatis.type.EnumTypeHandler",
    "allDeclaredConstructors" : true
  }

+1

Thanks @AndLvovSky and LGTM ！

@all-contributors add @AndLvovSky as code please !


X position incorrect in one of the rounded ends

One of the rounded ends, the x position is incorrect, i guess it starts from absolute X and the view from the center, that causes this to happen

This happens when the width of the view is different than the height of the view.


Fix pip package API generation

This PR fixes the API generation of the pip package and removes the need for workarounds like keras = _sys.modules["tensorflow.keras"] which break IDE autocompletion (see #31973).
@mihaimaruseac added workarounds to the root.__init__ templates to properly export lazily loaded modules in 18c2cf989a2263ee212fbd5ac0b3085d9450b80a and b7db3f4ae43f5228952f3a1bb480a3e52a2006ed. Unfortunately this breaks autocompletion in many IDEs and therfore can make using TensorFlow tricky.
The core issue is that generated tensorflow_core.__init__.py looks something like this:
# many lines of top level imports

_names_with_underscore = ['__version__', '__git_version__', '__compiler_version__', '__cxx11_abi_flag__', '__monolithic_build__']
__all__ = [_s for _s in dir() if not _s.startswith('_')]
__all__.extend([_s for _s in _names_with_underscore])

# lazy loading of keras, estimator, losses, metrics, initializers and optimizers

__all__ was added by @yifeif in 584a64fa377d3070a05753344a410a5c96685ffd to fix underscore symbol imports.
Since lazily loaded modules like keras are imported after computing __all__ (which relies on dir()), they won't be visible in the root template which imports them via:
https://github.com/tensorflow/tensorflow/blob/222f2431b113f2b4726dcf321f3b79688da68e03/tensorflow/virtual_root_template_v2.__init__.py#L101
This PR fixes the issue by moving __all__ to the bottom of the file.
Note: Please review with care since I wasn't able to build TF from source and thus couldn't properly test the changes in create_python_api.py.
Fixes #31973

@lgeiger  Thank you for the change!
You can verify if this helps without building TensorFlow but instead copying the changes into pip package files.
For e.g.
python3 -m venv venv
source venv/bin/activate
pip install tensorflow
~$ python
>>> import tensorflow as tf
>>> tf
<module 'tensorflow' from '/path/to/python3.7/site-packages/tensorflow/__init__.py'>

Open /path/to/venv/lib/python3.7/site-packages/tensorflow_core/init.py
Move __all__ to the end of the file.
Now you can check if this installation of TensorFlow fixes the issue you see.
(I can also help out with building TensorFlow if you have specific questions).
That being said, I am actually looking right now at fixing the autocomplete issues by removing the virtual package and changing tensorflow_core/ to tensorflow/. Specifically, there are other issues as well, not just __all__ location.

@annarev Thanks for the fast reply.
I did indeed manually test my changes and they don't break imports and fix the autocomplete. I just wasn't able to test the pip package generation via tensorflow/python/tools/api/generator/create_python_api.py.

(I can also help out with building TensorFlow if you have specific questions).

Thanks for the offer, the main issue is just that it takes too long to be feasible on my machine without a remote build cache. I'll build it overnight just to make sure.

That being said, I am actually looking right now at fixing the autocomplete issues by removing the virtual package and changing tensorflow_core/ to tensorflow/. Specifically, there are other issues as well, not just __all__ location.

That's great to hear! Do you have an ETA for this?
It would be really cool from a user perspective to get this into the upcoming 2.1 release, even if it is only my solution that doesn't fully solve the problem.

This looks good to me. Thank you

b98db48be1b8238e213d1d6b9ab607ea96088224 will hopefully fix the CI failure. Sorry about that

That's great to hear! Do you have an ETA for this?

I put up a proposal here:
https://github.com/tensorflow/community/pull/182/files?short_path=5c4ad87#diff-5c4ad8728e4355930b6444d235b602d0
The change itself should be relatively quick. However, I need to get some feedback first to see if this is the right way to proceed.


Add note about repository move to README

I'll archive this repository after this PR merges.

r? @thalesfragoso
(rust_highfive has picked a reviewer for you, use r? to override)

bors retry


Autofill doi metadata

See CDL-Dryad/dryad-product-roadmap#261 for testing and info.
This also includes testing, updates to some test problems, many Gem updates to fix gem conflicts, some Rubocop changes to loosen a few things such as method length and minor fixes from other code. Has the revised testing from Brian merged in.
There are changes in all three repositories that go together.

@sfisher feel free to merge this when you merge the corresponding one in stash repo. I don't want to merge now as the Gems would get out of sync in case you want to make any mods based on my feedback.

I just saw this pass on the tests for the branch.  Merging.


Checklist field don't have a working disabled attribute

I was checking attributes in the doc and unit test when I realized that.

Thanks, I will fix it.

I have a working fix too

Ohh, great!

I will add it with the attribute PR #63


SD2 on Mac Silicon

Seems that 'CUDA' is hardcoded everywhere and I need to run on the Mac "mps" device.  Would be great if SD 2.1 could run on Mac Silicon as nicely as SD 1.x did.   Is anyone working on this?
Or the correct solution is to use the distribution from Apple?  I'm concerned Apple won't stay current with future models

This might help. https://machinelearning.apple.com/research/stable-diffusion-coreml-apple-silicon

Thank you.    I installed and can't get it to run on Monterey.  Apparently I Need to upgrade to Ventura, which I'm not ready to do yet


Event Request: Codeunit 226 CustEntry-Apply Posted Entries

Hi,
Pls add the following in event in Codeunit 226 CustEntry-Apply Posted Entries(see yellow highlighted in below screenshots) in upcoming minor release to handle custom filters.

Thank you.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


Refactor to argument_aspects to simply command-line options

Pull requests:

https://github.com/Senzing/template-python/pull/23


Added Team & Project Management Tool for MeetMe

PS: Who should we add to our private Trello board? Thank you.

Hi, I'm still unclear about who to add to our Trello board? Should I just invite by email all the instructors?
Thanks

If the board is private, sure.

@dblock Done.

:+1:


testing/certutil: add support to RSA

What does this PR do?
Enhance testing/certutil:

add support to generate RSA certificates
add -rsa cli to generate RSA certificates

Why is it important?
RSA keys are needed to test:

https://github.com/elastic/elastic-agent/pull/5542

Checklist

[x] My code follows the style guidelines of this project
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have added tests that prove my fix is effective or that my feature works

How to test
the following should generate RSA keys:
cd testing/certutil/cmd
go run main.go --prefix rsa --pass rsa  --ips <IP_ADDRESS>,<IP_ADDRESS> -name localhost -rsa

verify the certificates with:
openssl x509 -in rsa-localhost.pem -text -noout | grep -E "Algorithm"

        Signature Algorithm: sha256WithRSAEncryption
            Public Key Algorithm: rsaEncryption
    Signature Algorithm: sha256WithRSAEncryption

the keys with:
openssl rsa -in rsa-ca_key.pem -text -noout

Private-Key: (2048 bit, 2 primes)
[...]

Related issues

Relates https://github.com/elastic/elastic-agent/pull/5542

:hourglass_flowing_sand: Build in-progress, with failures

Buildkite Build
Commit: 95c13e97eebb5f91893e3aa35aee850eb81b4531

Failed CI Steps

:buildkite: Lint

cc @AndersonQ

:hourglass_flowing_sand: Build in-progress, with failures

Buildkite Build
Commit: fcae5b8ca7267ad8d34bd7c252bb640abbfe86c5

Failed CI Steps

:buildkite: Lint

History

:broken_heart: Build #393 failed 95c13e97eebb5f91893e3aa35aee850eb81b4531

cc @AndersonQ

/test

:hourglass_flowing_sand: Build in-progress, with failures

Buildkite Build
Commit: dcf177b59efb70000ca3b9f900a884ced9c3f1e2

Failed CI Steps

:buildkite: Lint

History

:broken_heart: Build #395 failed fcae5b8ca7267ad8d34bd7c252bb640abbfe86c5
:broken_heart: Build #394 failed fcae5b8ca7267ad8d34bd7c252bb640abbfe86c5
:broken_heart: Build #393 failed 95c13e97eebb5f91893e3aa35aee850eb81b4531

cc @AndersonQ

:hourglass_flowing_sand: Build in-progress, with failures

Buildkite Build
Commit: b9f2de62296a1e16b7e7725ce545919e69218255

Failed CI Steps

:buildkite: Lint

History

:broken_heart: Build #396 failed dcf177b59efb70000ca3b9f900a884ced9c3f1e2
:broken_heart: Build #395 failed fcae5b8ca7267ad8d34bd7c252bb640abbfe86c5
:broken_heart: Build #394 failed fcae5b8ca7267ad8d34bd7c252bb640abbfe86c5
:broken_heart: Build #393 failed 95c13e97eebb5f91893e3aa35aee850eb81b4531

cc @AndersonQ

:green_heart: Build Succeeded

Buildkite Build
Commit: 5e9fd646f06985c026d83f73efa9d361c2f317bc

History

:broken_heart: Build #397 failed b9f2de62296a1e16b7e7725ce545919e69218255
:broken_heart: Build #396 failed dcf177b59efb70000ca3b9f900a884ced9c3f1e2
:broken_heart: Build #395 failed fcae5b8ca7267ad8d34bd7c252bb640abbfe86c5
:broken_heart: Build #394 failed fcae5b8ca7267ad8d34bd7c252bb640abbfe86c5
:broken_heart: Build #393 failed 95c13e97eebb5f91893e3aa35aee850eb81b4531

cc @AndersonQ

:green_heart: Build Succeeded

Buildkite Build
Commit: 162e7fc13ea0a2a7777000c515eccd06e6e6fd3a

History

:green_heart: Build #398 succeeded 5e9fd646f06985c026d83f73efa9d361c2f317bc
:broken_heart: Build #397 failed b9f2de62296a1e16b7e7725ce545919e69218255
:broken_heart: Build #396 failed dcf177b59efb70000ca3b9f900a884ced9c3f1e2
:broken_heart: Build #395 failed fcae5b8ca7267ad8d34bd7c252bb640abbfe86c5
:broken_heart: Build #394 failed fcae5b8ca7267ad8d34bd7c252bb640abbfe86c5
:broken_heart: Build #393 failed 95c13e97eebb5f91893e3aa35aee850eb81b4531

cc @AndersonQ

:green_heart: Build Succeeded

Buildkite Build
Commit: 27d7dcb436b8322707611c22d6e954ef75ee6d2c

History

:green_heart: Build #399 succeeded 162e7fc13ea0a2a7777000c515eccd06e6e6fd3a
:green_heart: Build #398 succeeded 5e9fd646f06985c026d83f73efa9d361c2f317bc
:broken_heart: Build #397 failed b9f2de62296a1e16b7e7725ce545919e69218255
:broken_heart: Build #396 failed dcf177b59efb70000ca3b9f900a884ced9c3f1e2
:broken_heart: Build #395 failed fcae5b8ca7267ad8d34bd7c252bb640abbfe86c5
:broken_heart: Build #394 failed fcae5b8ca7267ad8d34bd7c252bb640abbfe86c5

cc @AndersonQ

good catch, it was a leftover from while I was refactoring. Also crypto.PrivateKey is any

/test

:green_heart: Build Succeeded

Buildkite Build
Commit: 5d792b9948b4eac0f06268e840bfac19c173bf73

History

:green_heart: Build #400 succeeded 27d7dcb436b8322707611c22d6e954ef75ee6d2c
:green_heart: Build #399 succeeded 162e7fc13ea0a2a7777000c515eccd06e6e6fd3a
:green_heart: Build #398 succeeded 5e9fd646f06985c026d83f73efa9d361c2f317bc
:broken_heart: Build #397 failed b9f2de62296a1e16b7e7725ce545919e69218255
:broken_heart: Build #396 failed dcf177b59efb70000ca3b9f900a884ced9c3f1e2
:broken_heart: Build #395 failed fcae5b8ca7267ad8d34bd7c252bb640abbfe86c5

cc @AndersonQ


feat: change logic in execute

Read the first instruction from the loaded program to update the registers. Update the function to go through the whole program.
See here

i can work on this


[bug] Trust Wallet: Unable to sign typed data on Polygon after WalletConnect v2 upgrade

Is there an existing issue for this?

[X] I have searched the existing issues

RainbowKit Version
0.12.16
wagmi Version
0.12.18
Current Behavior
We're upgrading versions to support WalletConnect v2. However, we noticed that signing typed data on Polygon through WallletConnect results in an error:

Expected Behavior
I expect to sign typed data on Polygon without an error.
Steps To Reproduce
You can reproduce locally following the steps below, or follow the steps with the live demo app. Also, a minimal code example can be found in this repo.

Ensure you have TrustWallet installed on your phone.
Install the dependencies with npm install.
Run the app with npm run dev.
Click on the "Connect Wallet" button.
Click "WalletConnect" and scan the QR code with the TrustWallet app.
Switch to the Polygon network.
Click on the "Sign typed data" button.
Observe the error in the JavaScript console.

Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)
https://github.com/hzhu/walletconnect
Anything else?
❌ Signing typed data results in an error on Polygon
https://github.com/rainbow-me/rainbowkit/assets/1811365/1a926875-7aed-4907-b7ed-8e608572569b
✅ Signing typed data works on Ethereum
https://github.com/rainbow-me/rainbowkit/assets/1811365/34d41568-b32b-4367-9fd7-cd8966b44918

Could you try updating wagmi to 0.12.8?

Could you try updating wagmi to 0.12.8?

Thanks for taking a look @glitch-txs 🙇🏽 . I tried downgrading wagmi to 0.12.8 and unfortunately the error is still present.

Unable to recreate via https://lab.web3modal.com/with-wagmi/react

Connect
Switch to polygon
Sign typed data

Need to check with RainbowKit team if sign typed data request is sent via polygin (not ethereum) after switching chain. Also, is your rpc set up for polygon correctly?

@hzhu I was able to replicate with Trust Wallet; it is a problem specific to Trust and they're throwing back this error 'The operation couldn’t be completed. (TrustWalletConnect.WCError error 1.)'. Working fine via Rainbow and some other wallets right now. Will relay to their team.

@DanielSinclair thank you for looking into this!

Amazing, thank you @gastonm5. I'm looking forward to the fix 🙇🏽 .

Tested today and still ran into the same issue, so we'll need to wait for the Trust Wallet fix, but am going to close this out on RainbowKit's end

@gastonm5 we encounter this exact issue on our app using trust wallet, do we have a fix released for this?


Create version of Gallery app that uses Fabric instead of Paper

The long-term goal here is that the Gallery app transitions completely to Fabric. As that the Gallery app contains a bunch of community modules, many of which may not have Windows versions on Fabric for a period of time, there needs to be an incremental plan here. Something like this:

Create a "forked" version of Gallery on Fabric that only contains the core components
Launch this to the store as a private flight, but do not replace the main published version (which needs to continue to work and may need to be updated)
Run a draft accessibility grading pass on the app, tracking requirements blocking it becoming the main version
As community modules start to get Windows support, re-enable them in the Gallery app
When sufficient module support exists, replace the main store app with the Fabric version

One of the challenging aspects of this is that it'd need react-navigation.

Duplicate of #384


Add button to unlock all records

Atm, you have to unlock record by record. More convenient if that could be done in one sweep.

I’m not sure about this functionality, a locked record is a record that is complete and where all data has been double entered. A record should only be unlocked in very special circumstances, the rule is that it should not happen at all once a record is locked.

Aha, fair enough. For me it was for debugging purposes, for #143 , but considering that they really shouldnt be unlocked it is  probably not a good idea. Closing for now.


Add FreeBSD support

Treat FreeBSD like macOS (which is accurate in terms of development!) in the code to determine the MAC address of a network interface.
With this change, vcpkg-tool compiles fine on FreeBSD 13. The test suite passes.

Notwithstanding what I said in https://github.com/microsoft/vcpkg-tool/pull/359 , I think this is OK because it isn't something:

that we are likely to regress
that indicates the underlying implementation is broken for reasons we don't understand
where another hypothetical implementation may require the opposite resolution

Thanks for your contribution!


Support Ecto.Query in insert_all values

I would like to propose the feature to support select query as a value in insert_all (and maybe update_all later), which is supported by PostgreSQL. For example:
user_id_query = from(u in User, where: u.username == "bob", select: u.id)
Repo.insert_all(Comment, [[text: "Yo!", user_id: user_id_query]])

I was able to come up with a quick and dirty prototype to make this feature work. I can continue polishing this PR up  if this is accepted. Also some works would need to be done on ecto as well.
Thank you.

It looks great @qcam , please go ahead if you believe this feature is important, it is your call to make! The only concern is how we will handle parameter counting, so we need plenty of tests for that!

@josevalim Thanks for checking up the PR.
I played around with params counting tonight and realized it has indeed a lot of edge cases. I ended up with a complex solution with keeping track of header positions and introducing some counters. I think it doesn't seem to worth the efforts.
I think it would be much simpler if we could skip params counting and generate raw SQLs with params inline for Ecto.Query passed in for this case, but maybe that isn't a good idea 🤔.

The problem with passing parameters would be safety. Parameter counting should not be that complicated in the sense we could use Enum.map_reduce to traverse the parameters with a counter and whenever we have a query we would pass it to the planner and get it back.

otherwise the order in the generated SQL wouldn't be guaranteed since it's a map.

What is a map? :) I think we normalize all of the headears and fields before sending them to the adapter, right? But yes, I agree with you that's the direction of the implementation. If you hvae a PR, maybe send the code and we can discuss it? :)

:heart: :green_heart: :blue_heart: :yellow_heart: :purple_heart:

I am sorry for the bump here, but I thought this might be the right place to ask (?)
Would it be feasible to expand this so it supports an Ecto.Query that returns multiple values?
I see you discussed using multiple queries, but what if I want to use multiples values from the same query?
Ex:
user_query = from(u in User, where: u.username == "bob", select: [u.id, u.firstname])
Repo.insert_all(Comment, [[text: "Yo!", user_id: user_query, user_name: user_query]])

@viniciusd Would this work for you?
user_query = from(u in User, where: u.username == "bob")
Repo.insert_all(Comment, [[text: "Yo!", user_id: select(user_query, [u], u.id), user_name: select(user_query, [u], u.user_name)]])

@viniciusd Would this work for you?

It would, but I would need to check the underlying query if it is indeed just an insert into select alone or if it uses multiple selects.
Also, my select contains 33 columns, so it wouldn't be much ergonomic

It is failing deep down into Ecto, it doesn't even show me any code of mine in the traceback @qcam
Is it related to this feature? Is it a bug?
  def insert_leads(data) do
    prelead_query = from(p in Prelead)

    select_columns = [
      :position_start_date,
      :position_end_date,
      :company,
      :firstname,
      :middlename,
      :lastname,
      :linkedin_url,
      :country,
      :state,
      :city,
      :title,
      :seniority,
      :department,
      :phone,
      :phone_extension,
      :company
    ]

    data
    |> Enum.map(fn %{
                     prelead_id: prelead_id,
                     email: email,
                   } ->
      [
        email_address: email,
        foo: "bar"
      ] ++
        Enum.map(select_columns, fn column ->
          [
            {column,
             select(prelead_query, [p], field(p, ^column)) |> where([p], p.id == ^prelead_id)}
          ]
        end)
    end)
    |> (&Repo.insert_all(Lead, &1, on_conflict: :nothing)).()
  end

16:27:07.360 [error] ** (FunctionClauseError) no function clause matching in anonymous fn/2 in Ecto.Repo.Schema.init_mapper/3
    (ecto 3.5.8) lib/ecto/repo/schema.ex:101: anonymous fn([sourcing_work_experience_id: #Ecto.Query<from e0 in Prelead, where: e0.id == ^109927850, select: e0.position_start_date>], {%{EmailAddress: true, Foo: true}, false}) in Ecto.Repo.Schema.init_mapper/3
    (elixir 1.10.2) lib/enum.ex:1520: Enum."-map_reduce/3-lists^mapfoldl/2-0-"/3
    (elixir 1.10.2) lib/enum.ex:1520: Enum."-map_reduce/3-lists^mapfoldl/2-0-"/3
    (ecto 3.5.8) lib/ecto/repo/schema.ex:81: anonymous fn/5 in Ecto.Repo.Schema.extract_header_and_fields/5
    (elixir 1.10.2) lib/enum.ex:1520: Enum."-map_reduce/3-lists^mapfoldl/2-0-"/3
    (ecto 3.5.8) lib/ecto/repo/schema.ex:80: Ecto.Repo.Schema.extract_header_and_fields/5
    (ecto 3.5.8) lib/ecto/repo/schema.ex:44: Ecto.Repo.Schema.do_insert_all/6
    (ecto_sql 3.5.4) lib/ecto/adapters/sql.ex:1027: anonymous fn/3 in Ecto.Adapters.SQL.checkout_or_transaction/4

It is failing deep down into Ecto, it doesn't even show me any code of mine in the traceback @qcam
Is it related to this feature? Is it a bug?
  def insert_leads(data) do
    prelead_query = from(p in Prelead)

    select_columns = [
      :position_start_date,
      :position_end_date,
      :company,
      :firstname,
      :middlename,
      :lastname,
      :linkedin_url,
      :country,
      :state,
      :city,
      :title,
      :seniority,
      :department,
      :phone,
      :phone_extension,
      :company
    ]

    data
    |> Enum.map(fn %{
                     prelead_id: prelead_id,
                     email: email,
                   } ->
      [
        email_address: email,
        foo: "bar"
      ] ++
        Enum.map(select_columns, fn column ->
          [
            {column,
             select(prelead_query, [p], field(p, ^column)) |> where([p], p.id == ^prelead_id)}
          ]
        end)
    end)
    |> (&Repo.insert_all(Lead, &1, on_conflict: :nothing)).()
  end

16:27:07.360 [error] ** (FunctionClauseError) no function clause matching in anonymous fn/2 in Ecto.Repo.Schema.init_mapper/3
    (ecto 3.5.8) lib/ecto/repo/schema.ex:101: anonymous fn([position_start_date: #Ecto.Query<from e0 in Prelead, where: e0.id == ^4242424242, select: e0.position_start_date>], {%{EmailAddress: true, Foo: true}, false}) in Ecto.Repo.Schema.init_mapper/3
    (elixir 1.10.2) lib/enum.ex:1520: Enum."-map_reduce/3-lists^mapfoldl/2-0-"/3
    (elixir 1.10.2) lib/enum.ex:1520: Enum."-map_reduce/3-lists^mapfoldl/2-0-"/3
    (ecto 3.5.8) lib/ecto/repo/schema.ex:81: anonymous fn/5 in Ecto.Repo.Schema.extract_header_and_fields/5
    (elixir 1.10.2) lib/enum.ex:1520: Enum."-map_reduce/3-lists^mapfoldl/2-0-"/3
    (ecto 3.5.8) lib/ecto/repo/schema.ex:80: Ecto.Repo.Schema.extract_header_and_fields/5
    (ecto 3.5.8) lib/ecto/repo/schema.ex:44: Ecto.Repo.Schema.do_insert_all/6
    (ecto_sql 3.5.4) lib/ecto/adapters/sql.ex:1027: anonymous fn/3 in Ecto.Adapters.SQL.checkout_or_transaction/4

I would maybe suggest you to submit a bug report next time so the issue has bigger exposure (more people to help your).
AFAIK, there might be a mistake in the sample code your provided:
      [
        email_address: email,
        foo: "bar"
      ] ++
        # Either we should use `Enum.flat_map` or return `{column, ...}` (instead of `[{column, ...}]`).
        Enum.map(select_columns, fn column ->
          [
            {column,
             select(prelead_query, [p], field(p, ^column)) |> where([p], p.id == ^prelead_id)}
          ]
        end)

Thanks, that was indeed the problem.
I wanted to test this approach just to check what kind of query would be generated.
Unfortunately, it generates a new select for each column instead of using the insert into select form.
So I see this is a limitation from Ecto at the moment.
Also, I gotta say it was quite frustrating to deal with some tracebacks, like the one I posted before as no code of mine was present there so I couldn't attack the real issue. I have faced this one and another one just like it Today. Not sure if there is something that could be done here CC @josevalim

There is a more recently feature in master that is a insert with select, not passing values at all.

There is a more recently feature in master that is a insert with select, not passing values at all.

Hi José, can you please point me to the docs on this feature?
Searching google for ecto insert with select the first result is a forum post where I link to this PR, leaving the docs there pointing to this feature should help more people find it.

https://hexdocs.pm/ecto/Ecto.Repo.html#c:insert_all/3-source-query


feat: Added Layout and basic code to native sign-up

Description
• Created SignupActivity
• Added basic code to SignupActivity.kt and completed layout of SignupActivity
• Added related strings in strings.xml
Related issues

#3085

Related PRs
Screenshots

We should probably have some consent for the TOS and the Open Food Facts newsletter, and possibly support for teams ?

We should probably have some consent for the TOS and the Open Food Facts newsletter, and possibly support for teams ?

We should probably have some consent for the TOS and the Open Food Facts newsletter, and possibly support for teams ?

@teolemon Yes sir, that's why I didn't add them in the layout file. Also, would you please tell me the Api related info.

We should probably have some consent for the TOS and the Open Food Facts newsletter, and possibly support for teams ?

@teolemon Yes sir, that's why I didn't add them in the layout file. Also, would you please tell me the Api related info.

Should I add 3 chekbox (each for TOS, newsletter and Professional Account) and one Edittext for Team (optinal) ?

Should I add 3 chekbox (each for TOS, newsletter and Professional Account) and one Edittext for Team (optinal) ?

@mrudultora let's see how it looks like
TOS: https://world.openfoodfacts.org/terms-of-use

@mrudultora let's see how it looks like
TOS: https://world.openfoodfacts.org/terms-of-use

[ ] I agree to the Open Food Facts terms of use and contribution.
[ ] I am a food producer.
[ ] I'd like to subscribe to the Open Food Facts newsletter (Note: You can unsubscribe from it at any time).

[ ] I agree to the Open Food Facts terms of use and contribution.
[ ] I am a food producer.
[ ] I'd like to subscribe to the Open Food Facts newsletter (Note: You can unsubscribe from it at any time).

@teolemon  How's this ?

@teolemon  How's this ?

@stephanegigandet ? @VaiTon ? What do you think ?
I would rename "Name" into "Display Name", and mention that the username cannot contain spaces, caps or special characters.

@stephanegigandet ? @VaiTon ? What do you think ?
I would rename "Name" into "Display Name", and mention that the username cannot contain spaces, caps or special characters.

@teolemon In which direction shall I proceed now ?

@teolemon In which direction shall I proceed now ?

@teolemon Is there any minimum length fixed for username ?

@teolemon Is there any minimum length fixed for username ?

@teolemon I have made the changes and added a regex check for username. Also mentioned in the layout about the conditions for username. And changed the strings accordingly.

@teolemon I have made the changes and added a regex check for username. Also mentioned in the layout about the conditions for username. And changed the strings accordingly.

@stephanegigandet should we ask for the organisation name if the producer box is ticked

@stephanegigandet should we ask for the organisation name if the producer box is ticked

@teolemon Any Updates ?

Let's add it, since it's in the web form https://world.pro.openfoodfacts.org/cgi/user.pl

@teolemon Added. Producer or Brand name textInputEditText will be visible when food producer checkbox is ticked and hides when that checkbox is unticked.
Also, will you please provide me the drawables for username, food producer, email. I will replace them in textInputEditText.

@teolemon If you don't mind, would you please guide me on completing this sign-up process with API related part. Till now in this draft PR, I worked on UI and basic code. But, I want to complete the kotlin code also ;-)

Now, I guess just small part is remaining. So, please provide me the url of API for signup so that this native signup is implemented soon. @teolemon @VaiTon

@mrudultora there's no API. You need to create and send the form, like the webform does: https://world.pro.openfoodfacts.org/cgi/user.pl
<form method="post" action="/cgi/user.pl" enctype="multipart/form-data">

Name <input type="text" name="name" size="80" autocomplete="name" id="name">
E-mail address	<input type="text" name="email" size="80" autocomplete="email">
User name
(non-accented letters, digits and/or dashes)
<input type="text" name="userid" size="40" autocomplete="username" id="userid" onkeyup="normalize_string_value(this)">

Password	<input type="password" name="password" autocomplete="new-password">
Confirm password<input type="password" name="confirm_password" autocomplete="new-password">

Professional account
If you work for a producer or brand and will add or complete data for your own products only, you can get access to our completely free Platform for Producers.
The platform for producers allows manufacturers to easily import data and photos for all their products, to mark them as official, and to get free analysis of improvement opportunities for their products.

<input type="checkbox" id="pro" name="pro" checked="">
<input type="hidden" name="pro_checkbox" value="1"> This is a producer or brand account.

Producer or brand: <input type="text" name="requested_org" id="requested_org">
Please enter the name of your organization (company name or brand).

<input type="checkbox" name="newsletter" value="on" checked="checked">Subscribe to the newsletter (2 emails per month maximum)
You can unsubscribe from the lists at any time.

<input type="hidden" name="action" value="process">
<input type="hidden" name="type" value="add">

<input type="submit" name=".submit" class="button">

</form>

@teolemon can we get an endpoint to perform the POST request on?

@VaiTon @mrudultora I've raised the topic in #productopener, but we could so without for this version (by just posting an html form from the app).

https://world.openfoodfacts.org/cgi/user.pl enctype multipart/form-data POST
Name
name=
E-mail address
&email
User name (non-accented letters, digits and/or dashes) (Add a normalizing function)
&userid
Password
&password=
Confirm password
&confirm_password=
Professional account
If you work for a producer or brand and will add or complete data for your own products only, you can get access to our completely free Platform for Producers.
The platform for producers allows manufacturers to easily import data and photos for all their products, to mark them as official, and to get free analysis of improvement opportunities for their products.

 This is a producer or brand account.
Producer or brand:
&requested_org=
Please enter the name of your organization (company name or brand).
checkbox (checkbox)
&newsletter=on
Subscribe to the newsletter (2 emails per month maximum)
You can unsubscribe from the lists at any time.
&action=process (Hidden)
&type=add (Hidden)

action=process (Hidden)
type=add (Hidden)

Are these mandatory for every account or only for producer accounts?

@mrudultora fixed the merge conflicts and rebased

@mrudultora @VaiTon fixed the merge conflicts and rebased

rebased @mrudultora @VaiTon Can we go the simple route, and use the current url to send the form ?
https://world.openfoodfacts.org/cgi/user.pl

i've rebased on latest develop, but this PR currently doesn't use databinding. As a result:
Execution failed for task ':app:mergeOffPlaystoreScreenshotsResources'.

/home/runner/work/openfoodfacts-androidapp/openfoodfacts-androidapp/app/src/main/res/layout/activity_signup.xml: Error: ERROR: Found  but data binding is not enabled.

Add buildFeatures.dataBinding = true to your build.gradle to enable it. file:///home/runner/work/openfoodfacts-androidapp/openfoodfacts-androidapp/app/src/main/res/layout/activity_signup.xml


Clojure class-path for deps.edn with mvn/repos unable to resolve artifacts

Running clj -M:nvd in a clojure repo that has alternative mvn/repos in the deps.edn causes the following exception to be thrown.
Currently testing on version 1.7.0
Execution error (ExceptionInfo) at clojure.tools.deps.alpha.extensions.maven/get-artifact (maven.clj:153).
Could not find artifact org.clojure:clojure:jar:1.10.3 in releases

Maven priority rules for packages that are externally hosted in a repositories such as Nexus/JFrog should resolve correctly with the command clj -M:nvd.
Note that running the lein version of nvd where alternate mvn/repos are defined in a project.clj succeeds.

Hi, thanks for the report!
Sounds like yet another thing that can be fixed by following https://github.com/rm-hull/nvd-clojure#avoiding-classpath-interference. The Clojure CLI should be able to generate a production-like classpath no matter what.
Then one feeds said classpath to nvd-clojure; this way nvd-clojure doesn't have to know anything about maven repos.


AttributeError: 'NoneType' object has no attribute 'get'

I'm getting the same issue as in https://github.com/fronzbot/blinkpy/issues/535#issue-1100359624 but there was no resolution and commenting there didn't re-open the issues, so creating a new one.
Traceback (most recent call last):
  File "/home/max/Documents/GitHub/conky/blink/blink.py", line 15, in <module>
    blink.refresh()             # Get new information from server
  File "/home/max/.local/lib/python3.10/site-packages/blinkpy/helpers/util.py", line 164, in wrapper
    result = method(*args, *kwargs)
  File "/home/max/.local/lib/python3.10/site-packages/blinkpy/blinkpy.py", line 95, in refresh
    sync_module.refresh(force_cache=(force or force_cache))
  File "/home/max/.local/lib/python3.10/site-packages/blinkpy/sync_module.py", line 266, in refresh
    self.cameras[camera_name].update(camera_info, force_cache=force_cache)
  File "/home/max/.local/lib/python3.10/site-packages/blinkpy/camera.py", line 172, in update
    self.extract_config_info(config)
  File "/home/max/.local/lib/python3.10/site-packages/blinkpy/camera.py", line 178, in extract_config_info
    self.name = config.get("name", "unknown")
AttributeError: 'NoneType' object has no attribute 'get'

I'm trying to use the absolute bare minimum to download an image from 2 camera every few minutes.
If I comment out blink.refresh() it works - but not sure I'm getting the most recent image
version = 0.20.0rc0 according to pip
my code is
from blinkpy.blinkpy import Blink
from blinkpy.auth import Auth

blink = Blink()
# Can set no_prompt when initializing auth handler
auth = Auth({"username": 'XXX', "password": 'XXX'}, no_prompt=True)
blink.auth = auth
blink.start()

for name, camera in blink.cameras.items():
  print(name)                   # Name of the camera
  print(camera.attributes)      # Print available attributes of camera

camera = blink.cameras['wildlife-pond']
blink.refresh()             # Get new information from server
camera.snap_picture()       # Take a new picture with the camera
camera.image_to_file('XXXX/blink/wildlife-pond.jpg')

camera = blink.cameras['nest-box']
blink.refresh()             # Get new information from server
camera.snap_picture()       # Take a new picture with the camera
camera.image_to_file('XXXX/blink/nest-box.jpg')

Brilliant @fronzbot - that works - thank you for your very quick response


mention solidity scripting as an alternative approach to deploying/verifying

New Foundry users coming to the documentation wanting to find tutorials on deploying and verifying will always go to the "Deploying and Verifying" section of the doc because it's one of the top sections and sits at a more conspicuous location , but it only mentions the CLI approach. This would mislead the new devs to believe that there's no other way to deploy/verify multiple smart contracts using foundry. By mentioning the Solidity Scripting approach, the documentation will better inform the devs with the multiple approaches available to them
(I personally have been believing that Foundry's deployment CLI is the only way to deploy smart contracts with foundry and have been using a hybrid of hardhat + foundry as my setup...because its just impractical to use the CLI for deploying mid-large size projects with multiple contracts. It was not until very recently did I find out about the solidity scripting approach; now I only use foundry)

@all-contributors please add @stitetsati for contributing doc


drop pre-1.24.8 public patches

bump tracking git tag to 1.24.8
Issue #, if available:
Description of changes:
Droping public patches for pre-1.24.8, and bump the git tag to 1.24.8.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/approve