picom: 12.4 -> 12.5

Release: https://github.com/yshui/picom/releases/tag/v12.5
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 355617

x86_64-linux

:x: 1 package failed to build:

picom-pijulius

:white_check_mark: 1 package built:

picom

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
nixpkgs-review result

:white_check_mark: 2 packages built:

picom
picom-pijulius

The following issues got detected with the above build packages.
Please fix at least the ones listed with your changed packages:

picom-pijulius-x86_64-linux:

Package is missing a meta section.
If the package is using runCommand please make sure to inherit or create a meta section.
error: AttrPathNotFound
Packages in ‘/nix/store/1j69bc2va3mm0y0ak893pj9pkv91p4kq-nixpkgs’ do not contain ‘picom-pijulius-x86_64-linux’ attribute.

picom-x86_64-linux:

Package is missing a meta section.
If the package is using runCommand please make sure to inherit or create a meta section.
error: AttrPathNotFound
Packages in ‘/nix/store/1j69bc2va3mm0y0ak893pj9pkv91p4kq-nixpkgs’ do not contain ‘picom-x86_64-linux’ attribute.


Fail to sync ledger data in fabric-samples/test-network with fabric v2.1.1

Block/Tx data that generated after starting the dashboard seems to fail to be synced correctly.
I can see the following errors on refiner container every 5 seconds:
time="2021-01-29T11:26:51Z" level=error msg="failed to insert block into the database" block_id=7 error="failed to insert tx into the database: ERROR: invalid byte sequence for encoding \"UTF8\": 0x00 (SQLSTATE 22021)"
time="2021-01-29T11:26:51Z" level=error msg="failed to insert block into the database" block_id=8 error="failed to insert tx into the database: ERROR: invalid byte sequence for encoding \"UTF8\": 0x00 (SQLSTATE 22021)"
time="2021-01-29T11:26:51Z" level=error msg="failed to insert block into the database" block_id=9 error="failed to insert tx into the database: ERROR: invalid byte sequence for encoding \"UTF8\": 0x00 (SQLSTATE 22021)"
time="2021-01-29T11:26:51Z" level=error msg="failed to insert block into the database" block_id=10 error="failed to insert tx into the database: ERROR: invalid byte sequence for encoding \"UTF8\": 0x00 (SQLSTATE 22021)"
time="2021-01-29T11:26:51Z" level=error msg="failed to insert block into the database" block_id=6 error="failed to insert tx into the database: ERROR: invalid byte sequence for encoding \"UTF8\": 0x00 (SQLSTATE 22021)"
time="2021-01-29T11:26:56Z" level=error msg="failed to insert block into the database" block_id=6 error="failed to insert tx into the database: ERROR: invalid byte sequence for encoding \"UTF8\": 0x00 (SQLSTATE 22021)"
time="2021-01-29T11:26:56Z" level=error msg="failed to insert block into the database" block_id=7 error="failed to insert tx into the database: ERROR: invalid byte sequence for encoding \"UTF8\": 0x00 (SQLSTATE 22021)"
time="2021-01-29T11:26:56Z" level=error msg="failed to insert block into the database" block_id=8 error="failed to insert tx into the database: ERROR: invalid byte sequence for encoding \"UTF8\": 0x00 (SQLSTATE 22021)"
time="2021-01-29T11:26:56Z" level=error msg="failed to insert block into the database" block_id=9 error="failed to insert tx into the database: ERROR: invalid byte sequence for encoding \"UTF8\": 0x00 (SQLSTATE 22021)"
time="2021-01-29T11:26:56Z" level=error msg="failed to insert block into the database" block_id=10 error="failed to insert tx into the database: ERROR: invalid byte sequence for encoding \"UTF8\": 0x00 (SQLSTATE 22021)"

time="2021-01-29T11:28:36Z" level=error msg="failed to insert block into the database" block_id=6 error="failed to insert tx into the database: ERROR: invalid byte sequence for encoding \"UTF8\": 0x00 (SQLSTATE 22021)"
time="2021-01-29T11:28:36Z" lSevel=error msg="failed to insert block into the database" block_id=7 error="failed to insert tx into the database: ERROR: invalid byte sequence for encoding \"UTF8\": 0x00 (SQLSTATE 22021)"
time="2021-01-29T11:28:36Z" level=error msg="failed to insert block into the database" block_id=8 error="failed to insert tx into the database: ERROR: invalid byte sequence for encoding \"UTF8\": 0x00 (SQLSTATE 22021)"
time="2021-01-29T11:28:36Z" level=error msg="failed to insert block into the database" block_id=9 error="failed to insert tx into the database: ERROR: invalid byte sequence for encoding \"UTF8\": 0x00 (SQLSTATE 22021)"
time="2021-01-29T11:28:36Z" level=error msg="failed to insert block into the database" block_id=10 error="failed to insert tx into the database: ERROR: invalid byte sequence for encoding \"UTF8\": 0x00 (SQLSTATE 22021)"
time="2021-01-29T11:28:36Z" level=error msg="failed to insert block into the database" block_id=9 error="failed to insert tx into the database: ERROR: invalid byte sequence for encoding \"UTF8\": 0x00 (SQLSTATE 22021)"
time="2021-01-29T11:28:36Z" level=error msg="failed to insert block into the database" block_id=10 error="failed to insert tx into the database: ERROR: invalid byte sequence for encoding \"UTF8\": 0x00 (SQLSTATE 22021)"
time="2021-01-29T11:28:36Z" level=error msg="failed to insert block into the database" block_id=6 error="failed to insert tx into the database: ERROR: invalid byte sequence for encoding \"UTF8\": 0x00 (SQLSTATE 22021)"
time="2021-01-29T11:28:36Z" level=error msg="failed to insert block into the database" block_id=7 error="failed to insert tx into the database: ERROR: invalid byte sequence for encoding \"UTF8\": 0x00 (SQLSTATE 22021)"
time="2021-01-29T11:28:36Z" level=error msg="failed to insert block into the database" block_id=8 error="failed to insert tx into the database: ERROR: invalid byte sequence for encoding \"UTF8\": 0x00 (SQLSTATE 22021)"

Steps to recreate the issue

Start fabric-samples/test-network with fabric v2.1.1
Start Ledger Data Refiner as a container
Generate some transactions on the test-network

Please find attached logs for more detail of this issue:

refiner.log
refinerdb.log

We still have same issue even after applying the latest commit.
refiner_7ff6dfe.log

It seems that in the fabric version 2.0~2.2 there is an invalid character in the read set, and it cannot be found directly from the log. Now we have updated the code, please run it again. @nekia

@wjbbig Thank you for update. I tried the latest code and confirmed I don't see the encoding error any more. But the dashboard shortly gets not responsive.

Now I can see another errors in refiner log.
$ grep -i error refiner_dff4526.log
time="2021-02-08T12:43:39Z" level=error msg="json: cannot unmarshal number into Go value of type map[string]interface {}"
time="2021-02-08T12:43:44Z" level=error msg="json: cannot unmarshal number into Go value of type map[string]interface {}"
time="2021-02-08T12:43:49Z" level=error msg="json: cannot unmarshal number into Go value of type map[string]interface {}"
time="2021-02-08T12:43:54Z" level=error msg="json: cannot unmarshal number into Go value of type map[string]interface {}"
time="2021-02-08T12:43:59Z" level=error msg="json: cannot unmarshal number into Go value of type map[string]interface {}"
time="2021-02-08T12:44:04Z" level=error msg="json: cannot unmarshal number into Go value of type map[string]interface {}"
time="2021-02-08T12:44:09Z" level=error msg="json: cannot unmarshal number into Go value of type map[string]interface {}"
time="2021-02-08T12:44:14Z" level=error msg="json: cannot unmarshal number into Go value of type map[string]interface {}"
time="2021-02-08T12:44:19Z" level=error msg="json: cannot unmarshal number into Go value of type map[string]interface {}"
time="2021-02-08T12:44:24Z" level=error msg="json: cannot unmarshal number into Go value of type map[string]interface {}"

refiner_dff4526.log

Sorry, I forgot to recover the commented out code and did not find this problem yesterday. I found that the official API json.Valid(string) bool of golang checks "1" as JSON format, which caused the above problem.

@wjbbig Now I can see dashboard, history view and advanced query view. It seems to be working fine. Thanks.
If a new block is created on the fabric network, when can I expect seeing the update on the dashboard? As far as I checked, I can't see newly generated block on the dashboard even after reloading browser.

With the fix d7e8a1d665f9a583742a07d3f108635aa39f6d3b, now I can see the update of newly generated blocks on the dashboard as I expect. Thanks @wjbbig


Define ContinuousPiecewiseLinearFunction in new function package

Rename PieceWiseLinearOffset2d to ContinuousPiecewiseLinearFunction. (Note 'piecewise' is a single word.)
Move the class to a new package org.djutils.draw.function.
The class definition should entail ContinuousPiecewiseLinearFunction<T extends Number> implements Function<Double, T>, possibly with an intermediate structure of classes/interface. A T = Double implementation will be required. Given that the word 'Linear' implies numbers, we have T extends Number. We could simplify this to T = Double, i.e. with Linear in the name we assume Double. Then it could simple become ContinuousPiecewiseLinearFunction implements Function<Double, Double>, where T is only relevant in possible intermediate classes/interfaces.
Furthermore the class (or intermediate class/interface) can define implements Iterable<TupleSt<T>>, where we have public record TupleSt<T>(double s, T t). The generics probably needs some working out if an intermediate structure is used.
Javadoc and variable names should be checked. The word 'FractionalLengthData' appears in javadoc, variable name fld is used.

Created package draw.funtion and moved PieceWiseLinearOffset to ContinuousPiecewiseLinearFunction. For now T === Double. No urgent need to make things super-flexible.
Also removed some expensive methods from the class (clients will have to use the iterator to get at the underlying data).


migrating tim repos to pull cra config from a file

Description

Release required?

[ ] No release
[ ] Patch release (x.x.X)
[ ] Minor release (x.X.x)
[ ] Major release (X.x.x)

Release notes content

Run the pipeline
If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.
Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:
/run pipeline

Checklist for reviewers

[ ] If relevant, a test for the change is included or updated with this PR.
[ ] If relevant, documentation for the change is included or updated with this PR.

For mergers

Use a conventional commit message to set the release level. Follow the guidelines.
Include information that users need to know about the PR in the commit message. The commit message becomes part of the GitHub release notes.
Use the Squash and merge option.

/run pipeline

PR : https://github.com/terraform-ibm-modules/terraform-ibm-event-streams/pull/138

:tada: This PR is included in version 1.4.12 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Value agnostic http body matcher

HI there
I have added the ability for the client to specify that it does not care about the property values (JValues) in the response body, but that it still cares that the existence of the properties. This makes our tests simpler to setup and more robust.
Being as this is specified by the client, I had to modify the json PactFile format, which I realise might be controversial, but the new value is optional and defaults to the existing behaviour so hopefully it won't be a big deal.
The new property might ideally go on the body / ProviderServiceResponse.Body properties, but this would result in a reserved property name, so it has gone on the Interaction object instead. This also removed the mild hack of creating MatchingRules while deserialising ProviderServiceResponse.Body. I have added an overload of Compare to IProviderServiceResponseComparer, which is mildly suboptimal and means that you would lose the value agnostic functionality if treating it as an IComparer. However nothing does this and there doesn't seem to be any reason why anything would, so I don't think its a problem.
I have packaged this change up as v1.1.2 and added it to our internal NuGet feed, so if you decide not to accept this pull request, could you do us a favour and jump to version 1.1.3 when you next release?
Thanks
Cedd

I'm not sure if you have seen the discussion about the Pact v2 specification and flexible value matching? Basically we cannot implement any custom matching that does not conform to the Pact specification (https://github.com/pact-foundation/pact-specification/tree/version-2). The reason being that there are multiple language implementations that should be cross compatible. So for example a .NET consumer talking to a Ruby provider, or a JavaScript consumer talking to a .NET provider. Currently the .NET version does not support v2, and I just don't have the time to implement this (supporting this project in what little spare time I have). If you are interested in reading more see https://github.com/SEEK-Jobs/pact-net/issues/9. If you are interested in helping out, that would be super awesome and I would be really grateful! I have done some of the work (on branch version-2). A few others have mentioned they want to help, but I am yet to hear anything back.

Hi Neil
Is that v2 specification finalised?
The matching rules in the example below seems closest to what I want:
"matchingRules": { "$.body.alligator.name": {"match": "type"}, "
$.body.alligator.feet": {"match": "type"} }
Although I would want to be able to specify this for all properties,
instead of specifying each property individually.
So if I would want to make it look like this
"matchingRules": { "match": "type" }
or this
"matchingRules": { "all": {"match": "type"} }
or this (very similar to what I now have)
"matchingRules": { "match": "propertyName" }
At one point in #9 https://github.com/SEEK-Jobs/pact-net/issues/9 it says
that this is possible by applying the match on the root property and
letting it filter down, although there is no test case that shows it that I
could see, and maybe it never made the final cut.
Anyway, that v2 specification looks to be very different from v1, and I
don't have time for all of that. I have basically done some flexible
matching already though, so if it gets to a point where I can some small
bit in isolation than I may be able to help.
It seems that this is going to be quite a long way off, so we will probably
carry on with what we have now as a pragmatic solution.
Cheers
Cedd
On Wed, Apr 20, 2016 at 11:21 PM, Neil Campbell<EMAIL_ADDRESS>wrote:

I'm not sure if you have seen the discussion about the Pact v2
specification and flexible value matching? Basically we cannot implement
any custom matching that does not conform to the Pact specification (
https://github.com/pact-foundation/pact-specification/tree/version-2).
The reason being that there are multiple language implementations that
should be cross compatible. So for example a .NET consumer talking to a
Ruby provider, or a JavaScript consumer talking to a .NET provider.
Currently the .NET version does not support v2, and I just don't have the
time to implement this (supporting this project in what little spare time I
have). If you are interested in reading more see #9
https://github.com/SEEK-Jobs/pact-net/issues/9. If you are interested
in helping out, that would be super awesome and I would be really grateful!
I have done some of the work (on branch version-2). A few others have
mentioned they want to help, but I am yet to hear anything back.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/SEEK-Jobs/pact-net/pull/60#issuecomment-212636455

Yeah you should be able to apply the match at the root and that should filter down.
Fair enough about using your own branch (that the beauty of open source), just know that it will not be compatible or supported with new versions of PactNet or the other language variants.
As such I cannot merge this PR unfortunately.

Hi Neil, no worries.
I might call this version 1.2 so that it doesn't clash with anything that
already exists. Good luck with implementing v2, it looks like a big chunk
of work.
Cheers
Cedd
On Tue, Apr 26, 2016 at 12:11 AM, Neil Campbell<EMAIL_ADDRESS>wrote:

Closed #60 https://github.com/SEEK-Jobs/pact-net/pull/60.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/SEEK-Jobs/pact-net/pull/60#event-640762367


Add support for OSX x86_64 syscalls

Apple does not have real support for static binaries, so we have to at least link to System.dylib.

Thanks for this! Do you mind rebasing to combine the commits? Just do a git rebase -i HEAD~3 and change the second commit to fixup with f.

Nevermind, I took care of it with 3e747250ebff7ac604740ea94196d1b758d03631. Thanks again!

Hey - sorry to bug you, but I actually submitted that under my work email instead of my personal one which is sort of something not encouraged (was copying over my git config and must have forgotten to change it back =) ) - is there any chance I could maybe ask you to amend it to set the author to<EMAIL_ADDRESS>Sorry to bother!
On an unrelated note - if you're interested, I may also add ARM support for Linux/OSX if you're cool with that.

Looks good now - so either github corrected it or you did - either way thanks :).

That was me with a force push.
I'd love ARM support, but you should probably wait for my next commit (which restructures syscall.c to reduce code duplication and add checks/support for 32/64-bit)

Awesome - much appreciated and thanks :).
And no worries - I'll hold off until I see next commit - I was kind of thinking same thing would be in order at some point - thanks again!


[libpng]Fix copy libpngConfig.cmake.

Related: #8241 #1627.

Just out of curiosity, is there any issue related? The two variables should point to the same folder...

@cenit Well, any port linked to libpng will cause this problem.
In fact, I tried to fix the issue of linking debug dependencies in vtk, but it is complicated.

C:\VS2017\Stable\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(425,5): error MSB8040: Spectre-mitigated libraries are required for this project. Install them from the Visual Studio installer (Individual components tab) for any toolsets and architectures being used. Learn more: https://aka.ms/Ofhn4c [C:\vsts\_work\2\s\buildtrees\3fd\x86-windows-all\v2.6.2-c8e9e110eb\3FD\3FD.vcxproj]
@dan-shaw  Could you have a look?

/azp run

@dan-shaw
The following files are already installed in /Users/vagrant/azure_agent/_work/3/s/installed/x64-osx and are in conflict with vxl:x64-osx

Installed by qt5-location:x64-osx
    lib/libclipper.a

It seems that vxl conflicts with qt5-location.

@JackBoosY This seems to be a problem with the CI system. This issue should be fixed when those changes get merged in.

/azp run

Duplicate fix with #8716.


New version of Modulus Checker as of 21 August 2017

Dear Customer
You have signed up to receive email notifications when a new version of the ‘Validating account numbers: UK modulus checking’ specification is updated.
This mail is to inform you that the specification and associated table have been updated and are available for download here. https://www.vocalink.com/customer-support/modulus-checking
The specification will be valid from 21 August 2017, however please note that modulus checking information may be in the specification for sorting codes that are not currently set up. All sorting codes should be checked against the current industry sorting code directory (ISCD) or the extended industry sorting code directory (EISCD) to ensure they are valid.
If you have any queries, wish to cancel these notifications or amend the email address the notifications are sent to please contact Diana Pirtea on 0203 818 2142 or reply to this email.
Regards
Product Authority Team | Vocalink

4.40 13 July 2017 • Section 6.1 - Added new sort codes 230088 and 0440004.
These changes will be active from 21st August.


Prefix Stacking issue!

Hello may someone please help me with prefix stacking for my server! I've tried using the 2 GitHub links that explain how to do it but for some reason it wont work! Thank you!
Like i go into the config and set the higest/lowest thing and it still wont give me 2 prefixes only 1
they spawn as the default group, then they get to choose between 3 classes, (so 3 classes are all the same just different names) and then im trying to add the donor group so it just shows their prefix and them inherit the permissions
So i want it to be {E} {Blash} {Player}:
(ps i tried to get help from the discord channel so this is what i sent)
Here is my config https://pastebin.com/T80JTnQg
My editor https://editor.luckperms.net/1wHtHnacWk

Hi!
One thing I'd try doing is putting the groups on tracks, even individual tracks, and using the "highest_on_track_<track>" formatting key. This may solve your problem quite easily.
If that does not work, the editor session is outdated - would you mind sending a new one?
Finally, the way that you should check a user's prefix is not through chat, but using lp user <user> info because that will tell you what LP sees as the prefix, and sometimes the chat plugin is at fault. Thanks!


classpath issue in tomcat

im getting this error : "cant find classpath:/email-config.properties"  using tomcat for camunda

Closed because of inactivity. You can re-open the issue if you have new information.


python3Packages.mutf8: init at 1.0.3

Motivation for this change
Fast MUTF-8 encoder & decoder
https://github.com/TkTech/mutf8
Fixes #135440
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 135485 run on x86_64-linux 1

2 packages built:

python38Packages.mutf8
python39Packages.mutf8

Result of nixpkgs-review pr 135485 at 1b965cd2 run on aarch64-linux 1

2 packages built successfully:

python38Packages.mutf8
python39Packages.mutf8


Share complete scheme in all usages

Alternative to https://github.com/istio/istio/pull/35023
See kubernetes-sigs/controller-runtime#1654
This makes a single Scheme with all Istio types. This should be used by anyone that needs a scheme like this. Aside from refactoring, this ensures the NegotiatedSerializer uses this Scheme which is the core fix.

@howardjohn: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Rerun command

unit-tests_istio
2bfe7dc56c1d4f257a9550b7ebf41c1fde1fba34
link
/test unit-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest


Do not auto start radio after mp3 playback

Hi Edzelf,
First of all great work and thank you for sharing this. I am using your sketch as an mp3 player, not as a internet radio. So I use the option to play a URL. And it works great. But when it is done, the radio is re-started that I don't want.
What would be the best way of avoiding that?
Thanks,
Csongor

And what would you do after the playing the URL?

I want to use this as a simple Google Home device, I will generate some mp3-s on my server using text-to-speed and send the URL for this device to play the speech. After that I just want it to stop and do not do anything.
What I have done as a workaround is set for first station to <IP_ADDRESS> and deleted all other presets. So if fails to load preset 0 and stops doing anything.

That's a good solution.  You may also change the software for a unlimited time-out on no data.

Can you help me where do I find that?

You may try to comment out line 180:
// ini_block.newpreset++ ;                                   // Yes, try next channel
(untested)


INVALID URL

Hi,
I'm trying to use snatch but when I put a url, it says invalid url

Something changed ?

+1 on this issue,
As recently as this morning, it was working fine. When I later reopened Premiere, I now get this error, no matter what URL I enter. Premiere was not updated between the time that it last worked for me and the time it stopped working for me, but I have since updated Premiere. The problem persists.

Been having the same problem for a while, every URL I enter just comes up as invalid


Chapter 2: Looking for Correlations - ValueError: could not convert string to float: 'INLAND'

Hi there,
First of all thanks for the great book. I enjoy learning with the hands-on examples! When calling the correlation method an error is thrown. Supposedly because the ocean proximity contains strings and not numbers. How can I fix the error and get the correlation matrix?
Thanks in advance!
hands_on

dropped the ocean_proximity column
housing.drop(housing.columns[[9]], axis=1, inplace=True)


Changed to search in the cached state manager data

When getting bootparameters by a name, mac, or nid it was getting all
the data in the etcd database. Reading all this data is slow when
there are a lot of bootparameters.
This commit changes it to search in the smd data which is cached in
memory. As a result it only looks up a few things in etcd.
Jira: CASMHMS-4540
Summary and Scope
HTTP calls like following are made often in some install scripts.
/boot/v1/bootparameters?name=x3001c0s31b0n0
This call is slow when there are a lot of boot parameters. The reason it is slow is because bss retrieves all of it's etcd data. This changes it to instead only query for specific etcd key/values and instead it searches the state manager data that it has in memory.
Issues and Related PRs

Resolves CASMHMS-4540

Testing
Tested on wasp. Ran the smoke and integration tests. Compared the results of the following calls before and after the changes.
curl -s -X GET -H "Authorization: Bearer ${TOKEN}" 'https://api-gw-service-nmn.local/apis/bss/boot/v1/bootparameters'
curl -s -X GET -H "Authorization: Bearer ${TOKEN}" 'https://api-gw-service-nmn.local/apis/bss/boot/v1/dumpstate'
curl -s -X GET -H "Authorization: Bearer ${TOKEN}" 'https://api-gw-service-nmn.local/apis/bss/boot/v1/bootparameters?name=x3000c0s10b2n0'
curl -s -X GET -H "Authorization: Bearer ${TOKEN}" 'https://api-gw-service-nmn.local/apis/bss/boot/v1/bootparameters?nid=100004'
curl -s -X GET -H "Authorization: Bearer ${TOKEN}" 'https://api-gw-service-nmn.local/apis/bss/boot/v1/bootparameters?mac=98:03:9b:aa:97:20'
curl -s -X GET -H "Authorization: Bearer ${TOKEN}" 'https://api-gw-service-nmn.local/apis/bss/boot/v1/bootparameters?name=x3000c0s10b2n0,x3000c0s1b0n0&mac=48:df:37:b2:3c:0f,48:df:37:b2:3c:1f,junk,98:03:9b:aa:97:20&nid=100004,42'

# in smd but not boot parameters
curl -s -X GET -H "Authorization: Bearer ${TOKEN}" 'https://api-gw-service-nmn.local/apis/bss/boot/v1/bootparameters?name=x3000c0s10b4n0'

# does not exist in bss and smd
curl -s -X GET -H "Authorization: Bearer ${TOKEN}" 'https://api-gw-service-nmn.local/apis/bss/boot/v1/bootparameters?name=x3000c0s10b4n1'

Tested in docker compose environment. Verified that the results are the same before and after these changes.
http get:

/boot/v1/bootparameters?nid=100020
/boot/v1/bootparameters?mac=ff:ff:ff:ff:ff:ff
/boot/v1/bootparameters?mac=b8:59:9f:d9:9d:68,b8:59:9f:d9:9d:69,b8:59:9f:d9:9d:b1
/boot/v1/bootparameters?name=x4499c0s42b0n0,x3000c0s36b0n0,x3000c0s36b0n0junk,x3000c0s36b0&mac=a4:bf:01:28:9b:17,junk&nid=1,49169408,999999
/boot/v1/bootparameters?name=x3001c0s31b0n0
DELETE /boot/v1/bootparameters -d '{ "hosts" : [ "x3001c0s31b0n0" ] }; GET /boot/v1/bootparameters?name=x3001c0s31b0n0; GET /boot/v1/bootparameters?nid=100016'
Tested fqdn names by changing the code to inject them into the cached smd data.

Were the install/upgrade based validation checks/tests run?(goss tests/install-validation doc)
Were continuous integration tests run? Y
Was an Upgrade tested?                 Y
Was a Downgrade tested?                Y
If schema changes were part of this change, how were those handled in your upgrade/downgrade testing?
Risks and Mitigations
A different method of searching is being used. There could be differences. To mitigate I tested multiple different cases.

Log from testing on wasp:
hms-bss-casmhms-4540-bootparameters.md

The difference in performance is 2.5 seconds per requests before my changes and less than .1 seconds after. This was tested with 522 boot parameters, using docker compose on a linux vm.
before changes
time curl -s -X GET 'localhost:27778/boot/v1/bootparameters?name=x3000c0s10b2n0' > /dev/null

real    0m2.693s
user    0m0.005s
sys     0m0.006s

after changes
time curl -s -X GET 'localhost:27778/boot/v1/bootparameters?name=x3000c0s10b2n0' > /dev/null

real    0m0.018s
user    0m0.007s
sys     0m0.005s

Just curious, did you determine the performance improvement with your new algorithm? =

Just curious, did you determine the performance improvement with your new algorithm?

When testing with shandy data in a docker compose environment on my vm I got the following results:

/boot/v1/bootparameters?nid=1386
before changes: 1m10.293s
after changes: 0m0.689s
/boot/v1/bootparameters?mac=00:40:a6:83:02:4c
before changes: 1m12.706s
after changes: 0m0.148s
/boot/v1/bootparameters?name=x3000c0s9b0n0
before changes: 1m16.334s
after changes: 0m0.055s

Going to go with #42 instead.


feat: auto-tls for websockets

Starts a tcp server on the listen port and hands connections off to internal http or https servers (depdending on connection type).
Upgrade requests from both servers are handled by a websocket server.
The https server is enabled when either a secure websocket address is listened to explicitly, or when a TLS certificate is provisioned by another libp2p component, likely @libp2p/auto-tls.
This means we don't need to add another port mapping for the https server since we run http and https over the same port.
Change checklist

[x] I have performed a self-review of my own code
[x] I have made corresponding changes to the documentation if necessary (this includes comments as well)
[x] I have added tests that prove my fix is effective or that my feature works

Depends on #2798 and probably some others.

Merging to get a rc out for further testing

@achingbrain Hey 👋 , this as broke the usage of websockets with pubsubPeerDiscovery, when pubsub is calling the getAddresses() here: https://github.com/libp2p/js-libp2p-pubsub-peer-discovery/blob/main/src/index.ts#L244 it will receive Listener is not ready yet from https://github.com/libp2p/js-libp2p/blob/main/packages/transport-websockets/src/listener.ts#L346. I'll try to fix it on my own but if I don't let me know if you have a clue of what might cause this 🙏

@achingbrain So I digged a bit more and the problem is coming from
https://github.com/libp2p/js-libp2p/blob/main/packages/libp2p/src/components.ts#L74-L80
as the pubsub afterStart will be called at the same time as the ws after start. So they'll both be awaited at the same time and since the ws isn't started when pubsub afterstart is called it will return the above error.
one quick fix would be to do:
async _invokeStartableMethod(methodName) {
        for (const [key, value] of Object.entries(this.components)) {
            if (isStartable(value)) {
                await value[methodName]?.();
            }
        }
        }

    But i don't think this is what you want ?

We could also change the transport manager to call listen on start and not afterStart but I don't know the implication of such a change


Mouse button release not being detected

Just updated Atom from v1.4.3 to 1.5.2, and now when I have this package enabled, clicking somewhere in a text file, releasing and moving my mouse will highlight text, as if the mouse release action was ignored. I'm using Ubuntu 15.10 (64-bit).

Nevermind, this seems to be an issue with Atom itself, not having to do with this package.


how to modify the coco.py for my datasets?

I think maybe I need: bbox, category_id, id, image_id. And what else?

You should change the format of your dataset to the coco's. Then you only need to rewrite the core/dbs/coco.py.

@ybai62868 Hi, could you please detailedly tell the rewrite of coco.py. Or any ref. Thank you in advance


Rest service api/v1/nni/metric-data can not retrieve metric data for multiple trial jobs

It should return metric data for all trial jobs if job id is not specified.

Fixed.


Settings for gitpod

Setting a gitpod workspace
Along the way fixes #478 - because gitpod used Node 20 anyhow

I mean nothing much to review - the gitpod stuff is still work in progress (but does vaguelly work).
And the tsx stuff is just because ts-node and all the newer Nodejs seem to be broken together


Sign in /Signup  page with Google authentication

issue
There is no sign in /login page for user.
No personal dashboard for users
Expected behavior
There should be login signup page for users and their login credential should be stored in database.
There should be button "signup via goggle" password less authentication.
Solution
I want to work on this issue.
Can u assign me under gssoc-ext and hacktoberfest lable.
Screenshot

Checklist

[x]  I have checked the existing issues
[x]  I have read the Contributing Guidelines
[x]  I'm a GSSoC'24-Extd contributor
[x]  I'm a Hacktoberfest'24 contributor
[x]  I am willing to work on this issue (optional)

Sure I will try for this

@SaurabhS55 can u assign me?

Kindly collaborate @ayushbhjh and @riyaaryan2004! Make sure to commit changes in a new branch! All the Best

@pulkitpathak99 Thank you for assigning.
I am working on that.

@pulkitpathak99  We both work on it Thanks


ADR of the release process

Content
This PR includes the ADR for the versioning scheme & the release process.
Comments

Issue(s)
Relates to #500

LGTM, just seems that the indices of the release process are all 1. Is that expected?

Yes, it's a kind of bullet point that is automatically converted with the correct index when the doc is rendered


Game crash 6-8 secondes after launch on recalbox

Hi,
So before posting about technical issues, I can't help myself to but to thank you for this amount of work to make available MMCA games to the recalbox. It is both a great and a generous ideas and, in my perspective, a great boost to creativity : being able to share these home made games in a retro gaming environnement is awesome :-)
So far the installation went fine and McAirpos gots installed on my recalbox 8.0.2 on raspberry pi 4. I downloaded the elf files of my games (but also some basic games from MMCA as "non-extension test games" like Falling Duck or Jumpy Plateformer).
The games are all launched successfully and, for 6-8 seconds, I got them working with controls and sound but after this time is ellapsed, the games suddently crash and get me back to the recalbox menu.
As I said in the MMCA forums, I will continue research on my side but I open the topic here as requested by Vegz78. I will let you know if I have some improvement from my perspective but I'll take any suggestions :-)

Thanks again for the kind words and for opening your issue here, where communication is a bit less restrained from waiting for approval for every post…
Ok, so you have most likely ruled out the MCA games as the reason for the crashes, since the standard Jumpy Platformer etc. work. 👍
Next, could you please check the McAirpos log under /log after a crash to check for hints about the crashes? You can also post it here if there are no obvious errors.
Another thing that comes to mind from my own experience are controllers that are either configured incorrectly or with wiring issues, so that the exit button is pressed by mistake. You can rule this out by starting a game and only pressing for instance left and next time only jump, and maybe not press any buttons to see if you get same result.

Info about the controller you are using is also useful.

Wao,
You answer incredibly fast... I am sorry but first of all, how can I post the McAirpos logs ? (if you have obvious not time consuming answer you can tell me otherwise give me a few days to figure this out by myself  (like reading all the documentation you posted) I don't want to make you waste time, I am learning and I'm 36 so it takes more time for me to assimilate (especially GitHub which is a revolution for me XD)
For the controller I use it's a simple usb snes controller (https://www.kubii.fr/manettes-stick-arcade/1803-manette-snes-usb.html). Usually I don't press any button when I launch a game and the games crash without any button pressed.
(I am sorry I am really a beginner, but a careful one :-D)

I just want to add that I will on break next week and I plan to design a small arcade cabinet for my co-workers with another RPi4 with a fresh install of recalbox so I'll get you udpdated about the Mc Airpos installation on this one.

No worries, take your time. When you feel it is time, I could try to install McAirpos on the same Recalbox version image on my own RPi4 and see if something has changed from v8.0.0 and I can reproduce the crash.
Either enter the Recalbox console or ssh into it from a PC and copy the log file to your /share folder on the Recalbox. You can then find the file in the Recalbox network shared folder on your PC.
Or use scp(or something similar) with same credentials as ssh to copy the log file from Recalbox to PC directly.
Or ssh into Recalbox and cat log file and take a screenshot/picture of the screen.
Post log file or picture here.

Could also be worth trying to run the game with only keyboard connected and controller cable fully disconnected, just to rule out controller issue.

Small correction from earlier, sorry:

The log file you are looking for after a game launch/crash is /tmp/McAirpos.log
The network share folder you are looking for, is the same area where your games are stored, maybe not /share/, but something like /recalbox/share or something similar.

So, I just tested a fresh Recalbox v8.0.2 Electron image downloaded directly from recalbox.com and flashed with Balena Etcher(which reported flash failed for some reason on verification, but seemed to work anyways...) on my Raspberry Pi 4.
Then I installed McAirpos via ssh using the following command:
curl -sL https://raw.githubusercontent.com/Vegz78/McAirpos/master/install_recalbox_v8.0_HDMI-Audio-Fix.sh | bash -
Then I compiled, downloaded and copied over a fresh elf of the Jumpy Platformer games from arcade.makecode.com, opened from https://vegz78.github.io/McAirpos/.
Everything seemed to work as it should out of the box, with HDMI audio and controls using a retro-bit gamepad. No crash.
Since I am unable to reproduce the error condition on my system, it is a little difficult for me to remote diagnose what is going on on your system. But I hope you manage to post a copy of /tmp/McAirpos.log and that the log file tells us something, and I will try to help you as best I can remotely.

Good evening,
Just a quick update:
Short version: it works with McAirpos re-installed with curl -sL https://raw.githubusercontent.com/Vegz78/McAirpos/master/install_recalbox_v8.0_HDMI-Audio-Fix.sh | bash -
All the games work and controls as well (even with an Xbox controller) Thank you so much
A bit more detailed version:

I feel a bit ashamed but I did not find (yet) the log you mentionned in the share folder of recalbox... I'll continue to look for it
I re-installed also the first version of McAirpos to see if that was making a difference (this one):
curl -sL https://raw.githubusercontent.com/Vegz78/McAirpos/master/install_recalbox_v8.0.sh | bash -
and the games loaded but crashed.
So I moved back to :
https://raw.githubusercontent.com/Vegz78/McAirpos/master/install_recalbox_v8.0_HDMI-Audio-Fix.sh | bash -
and everything worked fine.
I tried the jumpy platformer to start with, then falling duck, then my own  messy games full of extensions and they all responded well.
Like you I am kind of busy these days (I work on saturday and have kids XXXD) but I'll try to post the log for sunday and anyway keep you updated about any problems but also I'll send pictures of the games running :-)!!
But really thank you again for your instructions, it's such a cool project !
Take care !

Good evening, Just a quick update: Short version: it works with McAirpos re-installed with curl -sL https://raw.githubusercontent.com/Vegz78/McAirpos/master/install_recalbox_v8.0_HDMI-Audio-Fix.sh | bash

Not just a quick update, but a bit of a breakthrough; you now seem to have a working solution and I know the non-hdmi-fix script might have a problem worth further investigation.
Do you actually carry audio over the HDMI to the screen, or via jack or usb speaker?

I feel a bit ashamed but I did not find (yet) the log you mentionned in the share folder of recalbox... I'll continue to look for it

Copy the McAirpos.log log file from the folder /tmp to the folder /recalbox/share, and you can upload it here from the Recalbox shared network folder on your PC on the same local network.

All the games work and controls as well (even with an Xbox controller) Thank you so much

Great! May I mention you in the main readme as the first one to successfully test the usb snes controller with McAirpos?

…then my own  messy games full of extensions and they all responded well.

Beware that some extensions are not implemented for the RPi, and at least one needs a small workaround, like these:
https://github.com/Vegz78/McAirpos/issues/14
https://github.com/Vegz78/McAirpos/issues/12

…keep  ##you updated about any problems #but also I'll send pictures of the games running :-)!!
But really thank you again for your instructions, it's such a cool project !
Take care !

Thanks again, good luck with your arcade project, happy retro game making and playing, and please give McAirpos a star on GitHub if it now works!

Ok, back again, thanks for the star and good evening!
I did another fresh image install of Recalbox v8.0.2 Electron, and installed McAirpos with the non-hdmi-fix installation script, as well;
curl -sL https://raw.githubusercontent.com/Vegz78/McAirpos/master/install_recalbox_v8.0.sh | bash -
But I was unable to reproduce your crashes also here, running the same freshly compiled .elf of Jumpy Platformer. Jack audio also worked fine.
However, I experienced a small new nuisance, where after an exit of Jumpy Platformer through McAirpos with jack audio, the audio device in the Recalbox main menu was set to HDMI audio, even though Recalbox was set and booted with jack audio for the main menu/other games.
I am not sure if this is caused by McAirpos or the MCA game itself, but the work-around is to edit /boot/config.txt as follows to disable hdmi audio altogether until the next Recalbox update which overwrites config.txt:

mount -o remount,rw /boot
nano /boot/config.txt
Alter the line dtoverlay=vc4-kms-v3d to dtoverlay=vc4-kms-v3d,audio under the section header [pi4]
Save, exit and reboot

The final logic seems to be, that depending upon the installation script used(hdmi-fix vs non-hdmi-fix), audio is hard-configured for MCA games only, but both jack and hdmi audio work and can be set interchangeably for the Recalbox main menu and other emulators, so:

If you want jack audio for both MCA games and other emulators, use this installation script and the workaround above if the Recalbox audio switches to HDMI after MCA game exits:
curl -sL https://raw.githubusercontent.com/Vegz78/McAirpos/master/install_recalbox_v8.0.sh | bash -

If you want HDMI audio for both MCA games and other emulators, use this installation script:
curl -sL https://raw.githubusercontent.com/Vegz78/McAirpos/master/install_recalbox_v8.0_HDMI-Audio-Fix.sh | bash -

Do you, by the way, use HDMI audio, and is everything working ok now?
Looking forward to seeing an update from your ongoing arcade project when it is finished and running your own MCA games!

Hello Vegz78,
For the audio, I am using mini-jack (analogic, connected to a hifi amplifier with quite fat speakers).
By default, Recalbox chooses HDMI audio but automatically switches to analogic when I power up the amplifier.
For my first tries with the non-hdmi McAirpos image and with the hdmi soud fix, I did not notice any problems with the sound. Except for the crash, sound was correctly set up and now it is still working as well.
But I'll follow your instructions and try to re-install the first image (non-hdmi sound and give it a try)
(I am still struggling to find the log file of McAirpos, I can't find any /temp files on the share  folder. I'll get back to you soon when I find it).
Thank you and take care 👍

For the audio, I am using mini-jack (analogic, connected to a hifi amplifier with quite fat speakers). By default, Recalbox chooses HDMI audio but automatically switches to analogic when I power up the amplifier.

Thanks for clarifying this point! It seems that there are other nuances to how audio is handled on different systems that I do not have the full overview of, like the hot plugging functionality you here describe. But the only certain thing I know, is that MakeCode Arcade games require ALSA sound driver(normally included), and that the desired audio card and submodule is located on position hw:0,0(The first audio card's first submodule, which is not always the case, and which causes no in-game sound or in-game sound on the wrong output if wrong, and potential crashes.)

For my first tries with the non-hdmi McAirpos image and with the hdmi soud fix, I did not notice any problems with the sound. Except for the crash, sound was correctly set up and now it is still working as well.

It could be academically interesting to find out both why the non-HDMI McAirpos installation script caused crashes even though sound was working AND why the HDMI-fix installation script did not cause crashes and even functioning in-game sound via jack. On my tests on freshly burned Recalbox v8.0.2 Electron, I get hardcoded MCA in-game sound on either jack or HDMI, using the non-HDMI and HDMI-fix McAirpos installation scripts, respectively.
But the most important thing is maybe to find a solution that works and then let it be... ;-)

But I'll follow your instructions and try to re-install the first image (non-hdmi sound and give it a try)

You should not do this for my sake, and I would not recommend doing anything more if audio now works fine for you on your system.

(I am still struggling to find the log file of McAirpos, I can't find any /temp files on the share folder. I'll get back to you soon when I find it).

The log file is written on every McAirpos game launch in the file /tmp/McAirpos.log, replaced on every launch and deleted on every reboot or whenever your system purges the /tmp folder.

Thank you and take care 👍

Ditto!
Since I understand that you have found a working solution for your current system(the HDMI-fix installation script) and the standard solution with the correct installation script probably will work on your later fresh image installations of Recalbox, like in my tests, I will now close this issue as resolved.
You can of course continue posting here if you have more information relevant to this subject, and there is more detailed information regarding MakeCode Arcade games and audio to be found in this issue if you are interested.


Conditional validation

How can one effect conditional validations in vue-step-wizard? As the validation rules are held in the list, it makes it quit confusing. Any assistance. T for thanks!

@osahene Can you explain more on what exactly you mean when you say conditional validation. If you are looking to have no validation for a tab, you can define an empty array.

How to effect "Dynamic validation schema" as shown here https://vuelidate.js.org/#sub-dynamic-validation-schema


Storing timescale in localstorage

So users don't have to change the speed every time they complete a level (or close the game and open it later)

Thanks.

:+1:


Add screenshots of the pages

First lets improve the layout a bit 😄

it's more a reminder to do that at some point 😉
Get Outlook for Android
On Fri, Nov 8, 2019 at 6:05 PM +0100, "Benj Fassbind"<EMAIL_ADDRESS>wrote:
First lets improve the layout a bit 😄
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.


res is not defined

How do I fix this error?

@WianVermaak, I have resolved this issue in the most recent version. You can find the fix in the latest commit on GitHub https://github.com/Vaayne/NotionAI-Plus/commit/fd3bf4fe90637d6c4b9e3f0912aba033cf8470ae
Please be patient for the update to be available on the Chrome Web Store, or alternatively, you can manually install it from the release.

Hi Vaayne
Apologies, but I was not able to find out how to install it manually from
the release.
Do you perhaps have a link to show how to do this?
On Thu, 1 Jun 2023 at 17:06, LiuVaayne @.***> wrote:

Closed #43 https://github.com/Vaayne/NotionAI-Plus/issues/43 as
completed.
—
Reply to this email directly, view it on GitHub
https://github.com/Vaayne/NotionAI-Plus/issues/43#event-9404673709, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/BAF74CUZFNTHDEVCKWNDHELXJCVYBANCNFSM6AAAAAAYTSLUWY
.
You are receiving this because you were mentioned.Message ID:
@.***>

Oh nevermind! It is working now!
Thanks for this magic.
On Thu, 8 Jun 2023 at 10:50, Wian Vermaak @.***> wrote:

Hi Vaayne
Apologies, but I was not able to find out how to install it manually from
the release.
Do you perhaps have a link to show how to do this?
On Thu, 1 Jun 2023 at 17:06, LiuVaayne @.***> wrote:

Closed #43 https://github.com/Vaayne/NotionAI-Plus/issues/43 as
completed.
—
Reply to this email directly, view it on GitHub
https://github.com/Vaayne/NotionAI-Plus/issues/43#event-9404673709, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/BAF74CUZFNTHDEVCKWNDHELXJCVYBANCNFSM6AAAAAAYTSLUWY
.
You are receiving this because you were mentioned.Message ID:
@.***>

Hi Vaayne
I'm sorry to bug you, but can I ask a silly question?
Once I've brought up the Notion block, how do I then get rid of it or
minimise it? Currently I am refreshing the page to get rid of it once I
have my info from Notion.
I know this is not for you to answer, but please help I feel stupid.
I'm also not wondering if these emails actually send?
Kind regards
Wian
On Thu, 8 Jun 2023 at 13:00, Wian Vermaak @.***> wrote:

Oh nevermind! It is working now!
Thanks for this magic.
On Thu, 8 Jun 2023 at 10:50, Wian Vermaak @.***> wrote:

Hi Vaayne
Apologies, but I was not able to find out how to install it manually from
the release.
Do you perhaps have a link to show how to do this?
On Thu, 1 Jun 2023 at 17:06, LiuVaayne @.***> wrote:

Closed #43 https://github.com/Vaayne/NotionAI-Plus/issues/43 as
completed.
—
Reply to this email directly, view it on GitHub
https://github.com/Vaayne/NotionAI-Plus/issues/43#event-9404673709,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BAF74CUZFNTHDEVCKWNDHELXJCVYBANCNFSM6AAAAAAYTSLUWY
.
You are receiving this because you were mentioned.Message ID:
@.***>

Hi Vaayne I'm sorry to bug you, but can I ask a silly question? Once I've brought up the Notion block, how do I then get rid of it or minimise it? Currently I am refreshing the page to get rid of it once I have my info from Notion. I know this is not for you to answer, but please help I feel stupid. I'm also not wondering if these emails actually send? Kind regards Wian
…

just press ESC


Add RHEL/CentOS 8 support

RHEL 8 doesn't include openldap-servers so we pull from the OSUOSL which builds
the latest Fedora release for EL8. Also fix issue where EL8 doesn't include a db
package.
Signed-off-by: Lance Albertson<EMAIL_ADDRESS>

Released as: 4.3.0


suricata: 6.0.2 -> 6.0.3

Motivation for this change
Update to latest upstream release 6.0.3
Change log: https://forum.suricata.io/t/suricata-6-0-3-and-5-0-7-released/1489
This should take care of CVE-2021-35063
Things done

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

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

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Relase notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 129254 run on x86_64-linux 1

1 package built:

suricata


Failures on Implement field promotion for the analyzer.

There are new test failures on Implement field promotion for the analyzer..
The tests
language/inference_update_2/field_invocation_promotion_test CompileTimeError (expected Pass)
language/inference_update_2/field_promotion_and_no_such_method_test CompileTimeError (expected Pass)

are failing on configurations
cfe-strong-linux
cfe-weak-linux
dart2js-hostasserts-strong-linux-x64-d8
dart2js-hostasserts-weak-linux-x64-d8
dart2wasm-hostasserts-linux-x64-d8
dartdevk-strong-linux-release-chrome
dartdevk-weak-linux-release-chrome
dartk-strong-linux-debug-x64
dartk-strong-linux-release-x64
dartk-weak-asserts-linux-debug-x64
dartk-weak-asserts-linux-release-x64

These test failures don't reflect a regression in functionality; they are happening because as part of the CL, I improved the test cases for field promotion, and the new test cases are revealing a flaw in the CFE implementation.  I'll address the CFE failures in a follow-up CL.

Unassigning myself because I'm not actively working on field promotion right now; I will likely pick it up again later in the year.

Retesting this now, I only see a handful of failures with DDC and dart2wasm that look like they're due to a mixin desugaring issue on those particular platforms. I'm chatting with the DDC folks about those failures now. Since this issue is for a much broader-scoped problem, I'm going to close it now, and I'll open a separate tracking issue for mixins in DDC and dart2wasm if necessary.


Supports IS DISTINCT FROM operator.
Supports IS NOT DISTINCT FROM operator.

To simplify SQL query.
Presto supports it too.

@Jackie-Jiang I can pick this up


V2 - Upgrade Firebase functions from Node.js 8 to v10.

ToDo:
Firebase functions using Node.js 8 will be allowed to be updated till Feb 15, 2021 and allowed to execute till March 15, 2021.
Note: To use Node.js 10, you would need to upgrade to the Blaze pay-as-you-go plan.
https://firebase.google.com/docs/functions/manage-functions#set_nodejs_version

Ryan and @JonathanKoerber checked in a fix on 1/27/2021.

Ryan and @JonathanKoerber checked in a fix on 1/27/2021.


Meta: suggestion to rename the "Test" contract

Description
There's a few inconvenience caused by the current name Test:

There's no indication that this is a test supposed to be run in Foundry/ Forge. If all you knew was that you have to inherit from a Test contract, you wouldn't have the slightest clue that you're supposed to run it via forge test.
Making references to it is difficult from outside the repo, since you always have to add additional context, i.e. "the Test contract from forge-std" or "forge-std's Test contract".
Namespace pollution. Since Test is such a generic and simple name, users may want to use it themselves.

Solution
Rename Test to one of the following options:

ForgeTest
FoundryTest
StdTest

Besides addressing all the inconveniences mentioned above, being explicit in the test contract name would double as a marketing gimmick. Just consider all the Solidity code snippets that skip on the import statements.
Backward Compatibility
We can implement this without introducing a breaking change by keeping the Test.sol file, importing the new ForgeTest.sol file in there, and defining a Test contract that inherits from ForgeTest:
import "./ForgeTest.sol";

/// @dev DEPRECATED: Use `ForgeTest` instead
contract Test is ForgeTest {}

In general I feel similarly here and in #13—this far into foundry's adoption renames are high cost but minimal benefit. So personally I'm in favor of keeping the names Test and Script:

All existing documentation/tutorials need to be updated.
People are already familiar with the names, and renaming would be a breaking change. (We probably don't want to carry around both Test and ForgeTest forever so at some point it becomes a breaking change).
Different names can already be used through the import { Test as ForgeTest } syntax.
Script and Test map exactly to forge script and forge test which is nice, i.e. the contract indicates the command to run. Other contracts/libs could have the Std* prefix to differentiate them as suggested in https://github.com/foundry-rs/forge-std/pull/147#issuecomment-1214184147. Of course, this argument can be make if renamed to ForgeTest, etc. too

am on the same page as Matt above, also you know it's a Forge Test because you have imported the library!


WIP: Re-working async-main

This is still a work in progress.
I've been working on changing the behavior of the async-main function a little bit, as well as getting the bits implemented in the compiler rather than in the standard library. This will allow us to change things later without needing to update the standard library dramatically.
The issues with the current implementation of the async-main is in the interaction between Swift and ObjC. The current implementation has an implicit suspension point before main ever gets to run. If folks have enqueued things in a static constructor in ObjC, those will get enqueued before the main task does, so their tasks will run before main. This is not desirable.
This doesn't quite work yet. If it were written in Swift, the current implementation would look something like
struct Main {
  static func main() async throws { }
}

public func baseMain() -> Never {
  let flags = _taskCreateFlags(...)
  let (task, _) = Builtin.CreateAsynTask(flags, Main.main())
  _swiftJobRun(task)
  _asyncMainDrainQueue()
}

Unfortunately, unless you put an exit and an _exitInMain in your main function, this results in a program that never finishes since we get stuck draining the main queue.
What we really want is something more like
struct Main {
  @MainActor
  static func main() async throws { }
}

@MainActor
public func baseMain() -> Never {
  let wrappedMain = { @MainActor () async -> () in
    do {
       try Main.main()
    catch {
        _errorInMain(error)
    }
  }

  let flags = _taskCreateFlags(...)
  let (task, _) = Builtin.CreateAsynTask(flags, wrappedMain)
  _swiftJobRun(task)
  _asyncMainDrainQueue()
}

I still need to figure out how to create a separate thunk to wrap the call to the actual main function in.
I'm just putting this up to start getting eyes on it.
rdar://80027250

Hanging in Concurrency/Runtime/Output/async_task_handle_cancellation.swift.
Trying to figure out why.

@swift-ci please test

Build failed
Swift Test OS X Platform
Git Sha - 676dde589e5a0c3613691d76e58eba013d926113

@swift-ci please test

@swift-ci please test

Build failed
Swift Test OS X Platform
Git Sha - af9298dabf40a8e79898067afd63a89c67e0f173

@swift-ci please test

@swift-ci please test

@swift-ci please test

@swift-ci please test


Pre-Release only extensions show up in Stable search results

I created a new test-Stable build off of the same commit as todays Insiders to help test #138068: https://az764295.vo.msecnd.net/insider/4ee3ed1ff239dd9b51cd07ed8a35e29ca9d441c2/VSCode-darwin.zip
In it I see that the extension which I've only published a pre-release version of shows up in the search results, even though trying to install it gives the same issue as reported in #138215.
IMO in this case it either shouldn't show up at all, or at least should say "Install Pre-Release" instead of "Install" (and "Install Pre-Release" should work to correctly install the pre-release)

This is a known limitation and we are building this feature based on properties we define and not on semver which is not yet supported by Marketplace. Hence, not showing an extension which does not have pre-release is not possible.
Once Marketplace supports Semver then it can enhance the Query API to provide pre-release filters. For eg., then we can add a filter that client does not prefer pre-releases and the query can return results accordingly.
But, I can try if I can show Install Pre-release action as default action in this case.
CC @isidorn - lets have a note of this we MP supports Semver.

This will not happen in practice, no extensions will only have the Pre-Release version - this defeats the purpose.
Showing the correct action label is a good enough fix for this imho


fix: remove extra validation from builder response in builder proposal

remove this extra check which might reduce some time to publish the builder block (although builder might have published but still)

:tada: This PR is included in v1.17.0 :tada:


CLI fails to generate code

After trying to run graphql codegen, nothing happens. I was debugging with @marktani and other members in the community and finally got the errors dealt with but now nothing happens. The command is executed but no code is generated.
https://github.com/iamclaytonray/nest-prisma
prisma: 1.8.3
graphql: 0.13.2
graphql-cli: 2.16.0
prisma.yml:
endpoint: http://localhost:4466/nest-prisma/dev
datamodel: datamodel.graphql

hooks:
  post-deploy:
    - echo "Deployment finished"
    - graphql get-schema
    - graphql prepare

datamodel.graphql
type Post {
  id: ID! @unique
  createdAt: DateTime!
  updatedAt: DateTime!
  published: Boolean! @default(value: "false")
  title: String
  body: String!
  slug: String!
  author: User
}

type User {
  id: ID! @unique
  email: String! @unique
  password: String!
  name: String!
  posts: [Post!]!
}

.graphqlconfig.yml
projects:
  app:
    schemaPath: "src/schema.graphql"
    extensions:
      endpoints:
        default: "http://localhost:4000"
  database:
    schemaPath: "src/generated/prisma.graphql"
    extensions:
      prisma: prisma.yml
      prepare-binding:
        output: src/generated/prisma.ts
        generator: prisma-ts

With a lot of help, I was able to resolve this. Closing this issue now.

A member from the community shared this and I'll add it here in case someone struggles with the same issue.
(https://github.com/Volst/foed/commit/54b41651782d502a95f29317022574f26e1356b4)[https://github.com/Volst/foed/commit/54b41651782d502a95f29317022574f26e1356b4]

What was the deciding change you needed to do?


need an example of using prisma v1.8 to connect to one existed database

I wondered if you can create an example or a tutorial of using prisma v1.8 to connect to one existed database. this database can be hosted on a local docker or an RDS.
Thanks.

https://www.prisma.io/docs/tutorials/setup-prisma/connect-db-with-data/mysql-vuthaine2f
This page means "connect to one existed database" not supported?


Make Bails stronger dialog should not display on first run of bails-wallet

It's asking me to Donate Now and I just recovered my wallet!

I can check if there are any wallets in $DATA_DIR/wallets before creating the new one and if so launch with the wrapper, and if not launch with the bitcoin-qt command.

Actually, I checked if any wallets were funded. More robust. Calls gtk-launch bitcoin-qt if there are no funds.
Resolved.


NBT tag DeathTime not recognized.

Version: Data-Pack Helper Plus v3.3.14
App: VsCode
Platform: Windows 10
Example command for reproduction:
summon item_frame ~ ~-1 ~ {DeathTime:19,Tags:["tp"]}
Disclaimer: I don git it.

I don't think item_frame has that tag.


Added option to turn chat commands off/on

I don't see the point in being able to do that, closing the pull request


Add Flysystem S3 dependency and configuration to Drupal

This PR is for https://trello.com/c/M9VPg3Dx/934-enable-file-hosting-for-drupal-in-cloud-platform-s3.

This has been ported from https://github.com/ministryofjustice/digital-hub/pull/715#issue-432982936

To develop/deploy this the following steps need to have been applied in your environment:

Ensure the Docker image has been built (i.e. the container being used for Drupal has Flysystem installed).
Visit /admin/modules and enable both Flysystem and Flysystem S3. You need to click "install" once you've ticked them...
Add the following environment variables to your Drupal instance (I've been using https://github.com/ministryofjustice/digital-hub/pull/714 and dropping them in drupal.env:

The values can be retrieved from our Cloud Platform secrets following https://trello.com/c/M9VPg3Dx/934-enable-file-hosting-for-drupal-in-cloud-platform-s3#comment-5ee0a71f063236075d947f1a.

HUB_DB_ENV_MYSQL_PASSWORD
FLYSYSTEM_S3_KEY
FLYSYSTEM_S3_SECRET
FLYSYSTEM_S3_REGION=eu-west-1
FLYSYSTEM_S3_BUCKET

Once enabled. you can see the Flysystem one-off sync option on the /admin/config/media/file-system/flysystem page.
Each media type can be configured to upload to Flysystem/S3. This needs to be done on an individual-field basis.

I think this is ready to be considered for merging so we can test migration and performance. By merging this we won't affect production because:

By default the modules this adds to Drupal are disabled.
Once enabled the default upload/download locations are not altered.

Once this is merged I propose we close https://trello.com/c/M9VPg3Dx/934-enable-file-hosting-for-drupal-in-cloud-platform-s3 and use the cards that are being spun out from it


Support for ADetailer v24.6.0

I am not 100% sure, but after updating ADetailer to v24.6.0, I got an error from Config-Presets likely because some component IDs have been changed? If that is the case, is it possible to update the fields in the IDs in config-txt2img-custom-tracked-component.txt please?

If you could provide details as to which ID changed (and what it changed to), or a link to the ADetailer commit that changed it, it would greatly help.

I am not very familiar with how the code works, but looking at the commits, I believe this one is the most likely candidate? https://github.com/Bing-su/adetailer/commit/2ace2759b8c330dd0cdfa67198fc5dcccad018ed

At first glance I don't see any changes in those 2 commits that would change an existing component ID.
Look at your A1111 console for errors relating to Config Presets and see which ID it complains about.

This is the error I got

[ERROR][Config Presets] The txt2img component 'script_txt2img_adetailer_ad_enable' could not be processed. This may be because you are running an outdated version of the Config-Presets extension, you included a component ID in the custom tracked components config file that does not exist, it no longer exists (if you updated an extension or Automatic1111), or is an invalid component (if this is the case, you need to manually edit the config file at D:\Programs\Stable Diffusion WebUI\webui\extensions\Config-Presets\config-txt2img-custom-tracked-components.txt or just delete it so it resets to defaults). This extension will not work until this issue is resolved.

maybe it's this commit? https://github.com/Bing-su/adetailer/commit/a479f60f405481a37c98c1b08534610de9e9e05b

Updated the component ID to script_txt2img_adetailer_ad_main_accordion seem to have fixed the issue.
Would be nice to add the new ad_tap_enable components to the file too.

Nevermind getting error assert isinstance( AssertionError: <class 'gradio.layouts.Accordion'> Component with id 142 not a valid input component. with script_txt2img_adetailer_ad_main_accordion

The error was because ADetailer added an enable checkbox to the accordion, and renamed the already existing enable checkboxes for each of the 2 tabs. I added an exception so it'll treat your script_txt2img_adetailer_ad_enable ID in your config files as if it were the new corresponding ID: script_txt2img_adetailer_ad_main_accordion
Update Config Presets and the issue should be resolved.

I have updated but am getting the following error when I try to apply a config

Traceback (most recent call last):
File "D:\Programs\Stable Diffusion WebUI\system\python\lib\site-packages\gradio\routes.py", line 488, in run_predict
output = await app.get_blocks().process_api(
File "D:\Programs\Stable Diffusion WebUI\system\python\lib\site-packages\gradio\blocks.py", line 1429, in process_api
inputs = self.preprocess_data(fn_index, inputs, state)
File "D:\Programs\Stable Diffusion WebUI\system\python\lib\site-packages\gradio\blocks.py", line 1233, in preprocess_data
assert isinstance(
AssertionError: <class 'gradio.layouts.Accordion'> Component with id 2943 not a valid input component.

Their accordion component uses a separate hidden checkbox ID, so I swapped it to use that. Should work now.

Thanks for the help, and update, it is working fine now!

Got the same issue, just updated.
[ERROR][Config Presets] The txt2img component 'script_txt2img_adetailer_ad_enable' could not be processed. This may be because you are running an outdated version of the Config-Presets extension, you included a component ID in the custom tracked components config file that does not exist, it no longer exists (if you updated an extension or Automatic1111), or is an invalid component (if this is the case, you need to manually edit the config file at D:\ai\StabilityMatrix\Packages\stable-diffusion-webui\extensions\Config-Presets\config-txt2img-custom-tracked-components.txt or just delete it so it resets to defaults). This extension will not work until this issue is resolved.
2024-08-07 11:36:28,321 - AnimateDiff - INFO - Hacking i2i-batch.
2024-08-07 11:36:28,352 - ControlNet - INFO - ControlNet UI callback registered.
[ERROR][Config Presets] The img2img component 'script_img2img_adetailer_ad_enable' could not be processed. This may be because you are running an outdated version of the Config-Presets extension, you included a component ID in the custom tracked components config file that does not exist, it no longer exists (if you updated an extension or Automatic1111), or is an invalid component (if this is the case, you need to manually edit the config file at D:\ai\StabilityMatrix\Packages\stable-diffusion-webui\extensions\Config-Presets\config-img2img-custom-tracked-components.txt or just delete it so it resets to defaults). This extension will not work until this issue is resolved.

Doesn't work for me, still returns AssertionError: <class 'gradio.layouts.Accordion'> Component with id 2377 not a valid input component.. However, another extension that uses the same approach (Dynamic Thresholding (CFG Scale Fix)) reacts correctly. I have script_img2img_adetailer_ad_main_accordion added to config-img2img-custom-tracked-components.txt. Using script_img2img_adetailer_ad_enable instead breaks the extension with [ERROR][Config Presets] The img2img component 'script_img2img_adetailer_ad_enable' could not be processed. This may be because you are running an outdated version of the Config-Presets extension....
Same Accordion error happens for soft_inpainting_enabled which I'd also love to use.

Thank you, I tried script_img2img_adetailer_ad_main_accordion-visible-checkbox and it didn't work, didn't know that -visible should be omitted. Now both work.


Introduce new methods to construct subaccount id from an existing AccountIdRef and a prefix

I see the following two methods to be useful:

AccountIdRef::new_subaccount_id(&self, subaccount_name: &str) -> Result<AccountId, ParseAccountError>
const fn AccountIdRef::new_subaccount_id_or_panic(&self, subaccount_name: &str) -> &AccountIdRef

Here is a usage example:
const ALICE: &AccountIdRef = AccountIdRef::new_or_panic("alice.near");
const ALICE_TEST: &AccountIdRef = ALICE.new_subaccount_id_or_panic("test"); // test.alice.near

Good first issues note:

Make sure to cover the new method with tests and documentation string with usage examples

I'm a bit confused: const fn AccountIdRef::new_subaccount_id_or_panic(&self, subaccount_name: &str) -> AccountId returns AccountId, but usage example explicitly states that the return type is AccountIdRef. Is it me misseeing something, or there is actually a typo?
@frol

@Jujumba Where do you see new_subaccount_id_or_panic returning AccountId?
I expect const-generics to be used at compile time to concatenate the str slices. Here is the crate I would explore using: https://crates.io/crates/constcat

@Jujumba Good catch! I have just fixed the signature. I expect const-generics to be used at compile time to concatenate the str slices. Here is the crate I would explore using: https://crates.io/crates/constcat

I'm not sure that it's possible to concatenate these slices at const context. constcat crate requires variables to be defined as const and const-generics don't allow &str type.
@frol

const-generics don't allow &str type.

@Jujumba That is not true: https://docs.rs/near-account-id/latest/src/near_account_id/account_id_ref.rs.html#84-88

const-generics don't allow &str type.

@Jujumba That is not true: https://docs.rs/near-account-id/latest/src/near_account_id/account_id_ref.rs.html#84-88

Oh, you meant this. Then you are absolutely right. I thought of the following:
pub fn function<const S: &'static str>() {
}


Release version update

Issue #: /bcgov/entity#5921
Description of changes:

Release version update

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the bcrs-entities-create-ui license (Apache 2.0).

obsolete change


[flutter_tools] flutter run should allow exit when make choose for devices.

Description
flutter run should allow exit when make choose for devices.
The idiom is “Q” or "q" to quit.
$ flutter run
Multiple devices found:
Web Server (web) • web-server • web-javascript • Flutter Tools
Chrome (web)     • chrome     • web-javascript • Google Chrome 84.0.4147.135
[0]: Web Server (web-server)
[1]: Chrome (chrome)
Please choose one (To quit, press "q/Q"): [0|1|q|Q]: a
Please choose one (To quit, press "q/Q"): [0|1|q|Q]: b
Please choose one (To quit, press "q/Q"): [0|1|q|Q]: c
Please choose one (To quit, press "q/Q"): [0|1|q|Q]: 3
Please choose one (To quit, press "q/Q"): [0|1|q|Q]: q

Related Issues
Replace this paragraph with a list of issues related to this PR from our issue database. Indicate, which of these issues are resolved or fixed by this PR. There should be at least one issue listed here.
Tests
I added the following tests:
https://github.com/flutter/flutter/blob/master/packages/flutter_tools/test/general.shard/device_test.dart
Checklist
Before you create this PR, confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I signed the CLA.
[x] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I updated/added relevant documentation (doc comments with ///).
[x] All existing and new tests are passing.
[x] The analyzer (flutter analyze --flutter-repo) does not report any problems on my PR.
[x] I am willing to follow-up on review comments in a timely manner.

Breaking Change
Did any tests fail when you ran them? Please read Handling breaking changes.

[x] No, no existing tests failed, so this is not a breaking change.
[ ] Yes, this is a breaking change. If not, delete the remainder of this section.

[ ] I wrote a design doc: https://flutter.dev/go/template Replace this with a link to your design doc's short link
[ ] I got input from the developer relations team, specifically from: Replace with the names of who gave advice
[ ] I wrote a migration guide: https://flutter.dev/go/breaking-changes-template Replace this with a link to a pull request that adds the migration guide to https://flutter.dev/docs/release/breaking-changes

Hi @includecmath, sorry but I'm not sure what you mean with cc. I'm sure the core team will review your PR as soon as possible.

@jonahwilliams

you'll need to update the test here: https://github.com/flutter/flutter/blob/master/packages/flutter_tools/test/general.shard/device_test.dart#L272

you'll need to update the test here: https://github.com/flutter/flutter/blob/master/packages/flutter_tools/test/general.shard/device_test.dart#L272

when(globals.terminal.promptForCharInput()).thenAnswer() is really amazing!

@jonahwilliams Supplement:

[0|1|q|Q] seems no need because flutter devices displayed before.
[0]: Web Server (web-server)
[1]: Chrome (chrome)

After 1 step promptForCharInput logic will Please choose one (To quit, press "q/Q")::
double :
I resolve by change userMessages.flutterChooseOne but add a comment before logger.printStatus(': ', emphasis: true, newline: false);
Emphasize : belongs to prompt not acceptedCharacters

@jonahwilliams


upgrade notifications to 2.4.0-SNAPSHOT

Signed-off-by: Subhobrata Dey<EMAIL_ADDRESS>Description
upgrade notifications to 2.4.0-SNAPSHOT
Check List

[X] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #534 (44e303c) into 2.x (c5e2e30) will decrease coverage by 9.34%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##                2.x     #534      +/-   ##
============================================
- Coverage     70.81%   61.46%   -9.35%
  Complexity      112      112
============================================
  Files           124       73      -51
  Lines          3947     2468    -1479
  Branches        630      265     -365
============================================
- Hits           2795     1517    -1278
+ Misses          972      774     -198
+ Partials        180      177       -3

Flag
Coverage Δ

dashboards-notifications
?

opensearch-notifications
61.46% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...ublic/pages/Channels/components/ChannelActions.tsx

...es/Channels/components/modals/DetailsListModal.tsx

...c/pages/CreateChannel/components/ChimeSettings.tsx

...ions/public/pages/Emails/utils/validationHelper.ts

...pages/Emails/components/tables/SESSendersTable.tsx

...ns/public/components/ContentPanel/ContentPanel.tsx

...ions/public/pages/Notifications/utils/constants.ts

...ateChannel/components/modals/CreateSenderModal.tsx

dashboards-notifications/public/utils/helpers.ts

.../pages/CreateChannel/components/WebhookHeaders.tsx

... and 41 more

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


Libraries not found & InvalidVersionSpec: Invalid version '~0.4.16]': invalid operator

I think the requirements.txt has been mixed with python-pip format for some libraries which is not working when we do conda install --yes --file requirements.txt.
Original values (not working)
category-encoders>=2.4.0
atplotlib<3.8.0
kaleido>=0.2.1
ray[tune]>=1.0.0
evidently~=0.4.16]

Following are the changes I made, if these were not the expected ones, then kindly update the requirements.txt or README.md file.
Modified values
category_encoders>=2.4.0
matplotlib<3.8.0
python-kaleido>=0.2.1
ray-tune>=1.0.0
evidently==0.4.16

Thank you, these items have been corrected.


Add query builder

Really nice work @opsb :+1:
I added task #245 to consider switching to ES6 classes throughout in place of Orbit's custom class lib.


Service port

@frank-24 @394822740 Some questions:

Is 5000 the default port for MRIQCWebAPI?
How can I change the port where the endpoints are open?
Is there a dynamic way to do it (meaning, without changing the docker-compose.yml file)

Technically this was designed to work on port 80. nginx acts as a proxy redirecting all traffic to gnuicorn at port 5000
To change nginx and/or gnuincorn ports you would have to edit https://github.com/poldracklab/mriqcwebapi.git and https://github.com/poldracklab/mriqcwebapi/blob/master/dockereve-master/docker-compose.yml
It's not configured to be done dynamically at the moment - why would you need this to be done dynamically?

80 is a protected port, I think you can't use it even in localhost unless you set up the firewall to do so. I'm not 100% sure but first time I tried, it was on port 80 and the connection couldn't be done.
I also have the impression that parallel builds are colliding in CircleCI, hence the need to change the ports.


How to remove gridlines in multi chart ?

I am working with multicharts but i did not find anything to remove gridlines of multibar chart. please help.

@krispo is it possible to remove only the vertical gridlines?

If you want to remove all grid lines in x-axis, use
.nv-x .tick line { display: none; }

This is helpful to me


Mouse modes CONFINED and CAPTURE force cursor to center of window.

v3.1.alpha_custom_build.f50dd68
@capnm @guilhermefelipecgs Possibly some minor cursor issues.
Ubuntu 18.04.1 LTS 64-bit
Setting the cursor to confined warps the cursor to the center of the window.  Then when unsetting capture mode it does the same, forces the cursor back to center (perhaps intentionally).
Windows 10 64-bit
Windows 10 at least has the capture mode returning the cursor to center.
An example project for testing: Constrained Cursor.zip

the cursor back to center (perhaps intentionally).

Yes, on Linux changing the cursor mode to confined and captured moves
the cursor to the center of the window. I think this is a bug.
It only makes sense when you go from a captured to another mode,
because the actual coordinates could be somewhere outside the window.
Additionally the captured mode mode seems to be completely broken for
a device in absolute mode e.g. xsetwacom --set "$DEV" Mode Absolute
Here is your example that also prints the cursor coordinates:
i21744-Constrained-Cursor.zip

Cool, good thinking.  I was assuming it would always be tracking, but this does expose some interesting differences.  Apparently on Windows the capture drives it right to center, but on Linux it tracks about still.
It looks like another bug was exposed too.  Using this on Ubuntu, the capture mode seems to not keep the cursor trapped.  Though the confined can, so it is possible.
I suppose the expected behavior I had in mind was that both would keep the cursor trapped in the viewport area, but one was visible the other was hidden.  If you were to switch between them, the position would be tracked.
It's not a critical thing of course, but I imagine it can come up if you had some areas that hid and unhid things on mouse over, but you wanted to keep the cursor trapped as well.
I just now learning of this absolute mode.  I'm gathering that a wacom tablet set across screens is just going where-ever, or was it crashing?

Using this on Ubuntu, the capture mode seems to not keep the cursor trapped.

That is, I think, ok. The coordinates in this mode are mainly used to rotate the 3D camera.
At least my current camera-script wouldn't work if the cursor was trapped …

About "CAPTURE_MODE", maybe this pr #19191 will fix that. Capture mode is very hack on Linux.

@capnm I see, I haven't done much with 3D.  If this is the case and purpose of it, what's going on in Windows?  Looking again at the output in the project you shared, it seems to suggest that CAPTURE in Win10 is always forcing to center, with some occasional flickering.  Does this mess with your camera rotations?
I was going to say something about clamping the cursor to the window rect on leaving capture mode, but that doesn't make much sense to me after reading your response.
It does give me a clearer picture at least of the intention of it.  I wonder if it would be better overall to split the concepts of show and hiding the cursor out of "mode", and make three modes:  NORMAL / CONFINED / CAPTURED.  Then have method like set_cursor_hidden() or something like that to deal separately with the visibility.
That way you could mix these behaviors, and perhaps CAPTURED would need some better explanation.  I suppose I would say:  Captures the cursor inside the viewport, so that when the cursor would move outside of the window's border it will still inside the game.
It isn't an interesting concept, it's like having some invisible world viewed through a portal, and you're pushing the cursor just inside of that portal.  X)
@guilhermefelipecgs Nice share, it does look interesting.  Unfortunately I'm not knowledgeable enough with what's going on there that I could reliably merge and test it with the current master.  :(

I see, I haven't done much with 3D. If this is the case and purpose of it, what's going on in Windows?

Sorry, I forgot it completely, my 3D camera-script uses the mouse-event's relative coordinates, see the new example https://github.com/godotengine/godot/issues/21751#issuecomment-418619451
Are the global coordinates in MOUSE_MODE_CAPTURED limited to the window size under Windows? The documentation at least does not say that it should be: http://docs.godotengine.org/en/latest/classes/class_input.html#enums

Looking again at the output in the project you shared, it seems to suggest that CAPTURE in Win10 is always forcing to center, with some occasional flickering. Does this mess with your camera rotations?

See above, it uses the relative coordinates.

It is hard to say what's going on with Windows here.

Sorry, I forgot it completely, my 3D camera-script uses the mouse-event's relative coordinates, see the new example #21751 (comment)

Using your new version with relative output, this is what I'm getting.  I can't get to move very far, its as if it had a really strong spring on it.

Then, I don't know how to reproduce this, but it was shifting from captured to normal mode, the relative positive got stuck?

Ok, I checked it with v306 and v31alpha on Windows. In normal and restricted mode, both coordinates seem to work just like in Linux.
In the captured mode the global coordinates stay in the middle of the window.  So then the global coordinates in this mode are useless. That's what you see, you can only use the relative offset for the movement.

This is the version I used in Windows:
i21744-Constrained-Cursor-v4.zip

There are two ways of reading relative mouse in an application: reading cursor distance, and reading raw input from the device.
When reading cursor distance, it is possible that the cursor will hit the edge of the screen. In this case, any further movement in the direction of this edge will not be detected, because the pointer simply does not move. This can cause serious problems in first-person games which is why the mouse is centered each frame. When reading raw input from the device, the cursor's position is irrelevant. It's simply getting deltas (the same deltas that may or may not be driving the window system pointer, depending on the system).
My PR switches the behavior on Linux from the former (cursor reading) to the latter (raw input). This is done to deal with serious accuracy issues on newer configurations. While it still centers the mouse every frame, this should theoretically not be necessary. I can modify my PR to remove the centering. However, because this behavior is (currently?) reliant on a compile-time option (very old systems may not have XInput 2), it is not guaranteed that you will get the fixed behavior.
The first release of X.org Server supporting XInput 2.0 is version 1.7, released on October 1st, 2009. Would it be acceptable to make this a minimum requirement for building Godot on X11 (and thus guarantee the behavior)?


[jest-config] Changed "Preset ... not found" validation error

Summary

When using a jest preset that contains a general Error (not a SyntaxError or TypeError) jest-config throws a "Preset ... not found" validation error.
This is somewhat misleading for users of a broken preset that may just be missing a peer dependency.
Work-around
To get around this in jest-expo I wrap the requires of peer dependencies in try/catch, rethrow the meaningful error message, then exit the process to prevent users from thinking the preset is missing.
Test plan

Attempting to require any missing library in a Jest preset should result in a useful error message like:

● Validation Error:

  Error resolving jest-expo/web:

  Cannot find module 'react-native-web'
  Error: Cannot find module 'react-native-web'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:690:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at getBaseWebPreset (/Users/evanbacon/Documents/GitHub/expo/packages/jest-expo/src/getPlatformPreset.js:50:3)
    at getWebPreset (/Users/evanbacon/Documents/GitHub/expo/packages/jest-expo/src/getPlatformPreset.js:67:10)
    at Object.<anonymous> (/Users/evanbacon/Documents/GitHub/expo/packages/jest-expo/web/jest-preset.js:3:18)
    at Module._compile (internal/modules/cjs/loader.js:776:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)

  Configuration Documentation:
  https://jestjs.io/docs/configuration.html

As opposed to the current error message:
● Validation Error:

  Preset jest-expo/web not found.

  Configuration Documentation:
  https://jestjs.io/docs/configuration.html

I'm willing to write a unit-test but would like to get validation on this approach first.

The CI TS check appears to be broken

CI failure is a lint error - the the TS warning is just a version mismatch warning (waiting for https://github.com/typescript-eslint/typescript-eslint/pull/916)

Codecov Report

Merging #8924 into master will decrease coverage by <.01%.
The diff coverage is 71.42%.

@@            Coverage Diff             @@
##           master    #8924      +/-   ##
==========================================
- Coverage   64.29%   64.28%   -0.01%
==========================================
  Files         276      276
  Lines       11707    11711       +4
  Branches     2864     2865       +1
==========================================
+ Hits         7527     7529       +2
- Misses       3549     3550       +1
- Partials      631      632       +1

Impacted Files
Coverage Δ

packages/jest-config/src/normalize.ts
80.93% <71.42%> (-0.4%)
:arrow_down:

Continue to review full report at Codecov.

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


Rebus links 404

#170 made it possible to share a specific rebus based on the url (the url query string is updated each time the user switches to a new rebus). Everything works fine locally but when the site is deployed at https://ollelauribostrom.github.io/rebus/ the url is updated to point to https://ollelauribostrom.github.io/?rebus=2 etc. This will result in a 404 since the /rebus is missing.
Steps:

Open the file components/rebus.js
Use/rebus?rebus=${rebus.id} when pushing the new state to window.history
Update the webpack.config.js to make this work locally as well, add historyApiFallback: true to the devServer configuration.

Oops, sorry about that.
I'll submit a PR later today 👍


Varying Image sizes

Hi. Would it be possible, to show varying image sizes, while retaining original size and format?

How was this resolved?  @MaximusDesign


Quick settings tiles delayed

Everytime I press on one of those tiles, nothing happens for a few second, then flashlight gets enabled

Device: Pixel 7
Software: Android 15 Beta 4.1
FlashDim App Version: 2.3.3

Thanks for your report.
Yup, I can confirm that on Android 14 on my P7 Pro.
I still don't really know why this is happening

I came to report that I've seen this a few times on my Pixel 8 Pro as well. I have nothing to back it up, but I wonder if it has something to do with the battery optimization settings? I know I've had a few other notification adjusting apps over the years which asked you to change it to unrestricted to make sure you didn't miss anything. Just a complete shot in the dark though but I thought I'd mention it in case.

I already tried that, but it doesn't help

This started happening when I updated from Android 14 to 15


Remove commented out code

No need to keep it in a source control system

All the commented out code was in the Shredder file as far as i can tell - this has been rm'd


OS.get_locale() fixed in windows && _OS::get_standardized_locale() implemented

Fix: #37203, #37207
Authored : @ippan
Reference: Microsoft Docs, winnt.h
+-------------------------+-------------------------+
|     SubLanguage ID      |   Primary Language ID   |
+-------------------------+-------------------------+
15                    10  9                         0   bit

sample case 1033 : "en-US"
1033 = 0b0000010000001001
0-9  bits : 0b0000001001 = 9 => #define LANG_ENGLISH 0x09 (winnt.h)
10-15 bits :  0b000001 = 1 => #define SUBLANG_ENGLISH_US 0x01    // English (USA)

I haven't change the documentation of OS.get_locale, @Calinou already have a pr for that (#37207) it may need a little change about os dependency.

Is this superseded by #40708?

Superseded by #40708. Thanks for the contribution nevertheless!


Workaround section for limitations

Course site:

Rejecting valid inputs is a bug and can be fixed, unless such data is not expected to be used (in normal usage), or if a reasonable workaround exists (e.g., not accepting s/o in a person name is a problem but until it is supported, users can be asked to use a workaround such as using s o or son of).

Name special characters: #298, #290
(put in description, example of alternatives: use son of instead of s/o, common alternatives N for &, remove hyphen)
Foreign numbers: #296
(add areacode to front, mention that app is designed with local use in mind so most should be 8 digits, and any extra at front is most likely area code)

special characters don't have to state maybe current workaround don't have to be mentioned at all until brought up on PE day


But Time can go backward too!

If the system time is changed to go backward and it's hard to make your go program to handle this case correctly but it can be done.
Idk if it's a good idea to add to quartz cause I haven't unit test my code that handle backward time. I detect time goes backward or jump around by comparing “monotonic clock” and “wall clock” of two time.

Yeah, it is possible for wall time to go backward. To keep things simple Quartz assumes that wall time and monotonic time proceed in lockstep.  It might be possible to extend Quartz's API to allow you to change the wall time independent of the monotonic time in testing.
Can you describe an example use case or unit test you'd like to be able to perform? I feel like that would help in figuring out the right API for it.

It get's even more tricky...
https://pkg.go.dev/time#hdr-Monotonic_Clocks

For example, this code always computes a positive elapsed time of approximately 20 milliseconds, even if the wall clock is changed during the operation being timed:

start := time.Now()
... operation that takes 20 milliseconds ...
t := time.Now()
elapsed := t.Sub(start)

Other idioms, such as time.Since(start), time.Until(deadline), and time.Now().Before(deadline), are similarly robust against wall clock resets.

So time can go backwards, but not for measuring time.

@Emyrk that's true if both times have a monotonic clock reading.

If Times t and u both contain monotonic clock readings, the operations t.After(u), t.Before(u), t.Equal(u), t.Compare(u), and t.Sub(u) are carried out using the monotonic clock readings alone, ignoring the wall clock readings. If either t or u contains no monotonic clock reading, these operations fall back to using the wall clock readings.

For example, when we pull times from the database, it won't have a monotonic clock reading.  If you're not careful, you can still have code that gets broken by a wall time reset.
if workspace.StoppedAt.Before(time.Now()) {
  x := someComputationThatBreaksForFutureTimes(workspace.StoppedAt)
}

Best case, you just get some slightly nonsensical result, like computing negative dollars or whatever, but the computation could panic and crash your system.  You can usually defend against this kind of thing by ensuring you query time.Now() only once, but there are cases where that is hard/awkward.

That makes sense 👍. Just wanted to add that quartz would have to match the behavior of time.Time.

Closing as we haven't received an example use case. @bangzek feel free to reopen with some more information if you're interested in pursuing this.


"Possible fatal error on main process. YakYak could stop working as expected" experienced on MacOS startup

YakYak appears to have stopped working today. Here's a screenshot:

Apologies that I can't provide additional debugging information.

Duplicate of https://github.com/yakyak/yakyak/issues/1234