Bluetooth: Restoring security level fails and missing some notifications

Application flow

Central connects to 2 peripherals
If this is the first connection, set security level to "Level 2: Encryption and no authentication (no MITM)."
If this is the first connection, both central and peripherals subscribe for notifications in both directions
Both sides start to send notifications to connected peer(s)
After some time (~65 seconds) at the peripheral side, it terminates the connection and start advertising again
Central discovers the peripheral and connect again for another round.

Describe the bug
After several connection rounds

Central receives some notifications with an incorrect connection reference (notification was sent by the one peripheral but the notification call back was called with the connection reference of the second device) https://github.com/zephyrproject-rtos/zephyr/issues/53007
Restoring security level failed
A disconnect event is received at the central side with reason 0x16 BT_HCI_ERR_LOCALHOST_TERM_CONN without any attempt to disconnect by the application (Not sure if this is an intended behavior when security level setting fails)
Some HCI errors
After re-connecting again, some notifications sent by the peripheral were missed at the central side

To Reproduce
Steps to reproduce the behavior:

Pull this commit 0f216a7a7dc04f23a81aa6212362c861b0572d75
Run ~/zephyrproject/zephyr/tests/bluetooth/bsim_bt/bsim_test_conn_stress/tests_scripts/conn_stress.sh

Logs and console output
Please check the attached log
log.log

At line 1303, a notification was received and associated with device DD:D1:7D:F0:5F:33 although the notification data message which contains the sender first bytes address cnt:7 CB:04 shows the conflict
At line 1305, the same notification message was received again associated with the correct sender address
At line 1310, Security level setting failed and a following disconnect event at the central side was received
At line 1340, some HCI errors were caught
At line 1354, after restoring the connection, the peripheral started to send notification with a zero-starting counter.
But, the first message message received by the central had a counter of 2 which shows that 2 notification messages were lost

Applying changes in PR https://github.com/zephyrproject-rtos/zephyr/pull/52012 fixes the issues related to receiving notifications with an incorrect connection references (point 1, 2, 3 in the above comment https://github.com/zephyrproject-rtos/zephyr/issues/53198#issue-1503098862).
But, other issues were generated related to the followings

Restoring security level

Missing some notifications from the connected peripherals after establishing the connection

Closing with the correct reason as this was improperly marked as "completed".


python3Packages.portalocker: 1.5.1 -> 1.5.2

Motivation for this change
https://github.com/WoLpH/portalocker/pull/47 was merged which fixes builds using dev versions of setuptools
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)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[x] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Notify maintainers
cc @
azure-cli-core is broken on master
[8 built (3 failed), 175 copied (179.8 MiB), 27.1 MiB DL]
error: build of '/nix/store/bmfbmrmyyfa647hds0pxpfdcv2dvq2ha-env.drv' failed
https://github.com/NixOS/nixpkgs/pull/73893
3 package failed to build:
python27Packages.azure-cli-core python37Packages.azure-cli-core python38Packages.azure-cli-core

9 package were built:
python27Packages.applicationinsights python27Packages.azure-cli-telemetry python27Packages.portalocker python37Packages.applicationinsights python37Packages.azure-cli-telemetry python37Packages.portalocker python38Packages.applicationinsights python38Packages.azure-cli-telemetry python38Packages.portalocker

seeing as build is currently broken, I will likely merge this once ofborg finishes

@GrahamcOfBorg build python27Packages.applicationinsights python27Packages.azure-cli-telemetry python27Packages.portalocker python37Packages.applicationinsights python37Packages.azure-cli-telemetry python37Packages.portalocker python38Packages.applicationinsights python38Packages.azure-cli-telemetry python38Packages.portalocker


[BC API 2.0 / account] Add netChange to response

For the sake of completeness added the netChange property

Learn Build status updates of commit a5a87e4:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

dev-itpro/api-reference/v2.0/api/dynamics_account_get.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel


Add the ability to generate random messages of a given size

Allow to create random messages of a given size, with the size being given as a parameter to the function.

Agreed.
There's a bytes array that will be used to hold this variable sized data in the message protobuf:
https://github.com/agencyenterprise/gossip-host/blob/6c5adf566b389edd47656e75a229e354c06e1e57/internal/host/pb/message.proto#L7

@adam-hanna Hey adam, so does this create a message with indicated size (in bytes)? I'm not sure how important it is but should we make the whole message be the indicated size or should we have the message data field be the indicated size? might not matter so much right now

Right now, it just reads from a json file. So the json file would need to have a bytes array of the desired size.
I could really easily add flag that replaces the bytes array in the json file with one of a desired size.
I think the entire message size should be the metric we target.

Yes I agree, the entire size of the message should be the size that we indicated.
Awesome, this will be needed when we will run the msg_size test; where we vary the message size in bytes


extensions dont create any code

Can you provide a sample .proto to show the functionality needed?

´´´package com.Furesoft;
message Uri {
optional string scheme = 1 [default = "http"];
optional int32 port = 2 [default = 80];
required string host = 3;
  optional Path path = 4;

  optional Credentials Credentials = 5;

  extensions 6 to max;

  message Credentials {
	required string username = 1;
	required string password = 2;
  }

  message Path  {
	optional string file = 1;
	optional string query = 2;
	optional string segment = 3;
	optional string folder = 4;
  }

}
extend Uri {
required int32 id = 7;
}
´´´
but there is no code for the extended stuff

here a sample usage
uri.SetExtension(Fields.id, 5);
uri.GetExtension(Fields.id);

At code generation time this is all statically known so one could have the property
uri.ExtensionId

or even more directly(assuming there are no name collisions)
uri.Id

Would the deserializer have to be more forgiving since some other implementation might have been using other wire-types with the same extension id?


having problems with the new version of pokemonGo-Desktop-Map

with the new api changes, i am getting this error ' This page didn't load Google Maps correctly. See the JavaScript console for technical details. ' what is the best way to fix this?

Also getting an error at launch with latest version

having the same issues with Windows 10. but it works fine on my mac.
also created a new api as suggested, still doesnt work though

i got around this by downloading old version, and using "updater"

i dont see updater on old app?

no there is none.
just solved the problem by refreshing my old API a couple of times.

@NT747 how did you refresh the api?

The way i fixed this was to login on the ptc/google account made to use and accept tos start the player then close app and login on scanner.

@ianedups
go on: https://console.developers.google.com/?hl=de
sign in with ur google account if you are not signed in already.
on the left it will say "Credentials" click on that
now it will show your Project for which an API was created. Click on ur project..  name
On the top it will say "regenerate key". i used the newly created key and it worked
hope this works for u 2


【Hackathon 4 No.81】为神经网络编译器 CINN 增加 bitcast_convert 算子

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

所有reviews均已改正，辛苦老师们再评审~

CLA注意得签下~

已签，感谢提醒~


Uncart is GPL

You link to an uncart binary in your guide. Not only is this not an upstream build - it lacks source code. I can't find any forks on github for it, which means it came from elsewhere. Look, hate to be THAT guy, but...
Uncart is GPL. I'm not saying to pull it - I'm not even a dev of uncart, but it is a license violation.
Not to mention I find trimming undesirable, and would like to disable it. Can't do so without source.

This build of Uncart was ported by Gelex (#Cakey dev member), who has
promised to release the source once he received authorization from the
company he works at. If you have issue with this, take it up with him.
On Wed, Mar 30, 2016, 12:17 AM Jon Feldman<EMAIL_ADDRESS>wrote:

You link to an uncart binary in your guide. Not only is this not an
upstream build - it lacks source code. I can't find any forks on github for
it, which means it came from elsewhere. Look, hate to be THAT guy, but...
Uncart is GPL. I'm not saying to pull it - I'm not even a dev of uncart,
but it is a license violation.
Not to mention I find trimming undesirable, and would like to disable it.
Can't do so without source.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/Plailect/Guide/issues/37

Okay, cool. At least nice to know steps are being taken.
Sorry if that came off rude at all. :/

See citra-emu/uncart#16


Backport/sumo/garage sign lock etc

Backporting most of the changes to master from the last three months that haven't already been backported, with some exceptions:

Did not include the large refactoring of image_types_ostree. Maybe later if we need to.
Did not include most of the devicetree and FIT changes.
Kept the libp11 patch to deal with openssl, since sumo still uses openssl 1.0.2.
Did not include the usrmerge support, since ostree-initrd complained.
Did not include the softhsm upgrade, as there was a compilation error.

Also did some reindentation of image_types_ota to make comparison with thud/master easier.

Passed oe-selftest.


[FEATURE]-UserInterface Extensions UnSetValue

Is your feature request related to a problem? Please describe.
Group Buttons widgets rely upon the UnsetValue command to release all buttons, otherwise the last-pressed button remains highlighted.  Group Button widgets also highlight the last-pressed Button by default without feedback from macro logic or control systems.
As a user, it would be useful to not see the last-pressed button highlighted at all times.  It implies the backing logic is in a particular state and does not show if the backing logic state has changed.
"xCommand UserInterface Extensions Widget UnSetValue WidgetId: "mygroup""
Describe the solution you'd like
Update UpdateWidget function so that if value argument is empty OR has a a pre-defined value, the UnSetValue command is sent instead of SetValue.
Describe alternatives you've considered
Do not use Group Button widgets.
Additional context
none

Here's how i'd fix that. In CiscoRoomOsCodec.cs

        public void UpdateWidget(string val) // "/blinds /open"
        {
            var arr_ = val.Split('/');
            string id_ = String.Empty;
            switch (arr_.Length)
            {
                case (2): // "/blinds"
                    id_ = arr_[1].Trim();
                    ClearWidget(id_);
                    break;
                case (3): // "/blinds /open"
                    id_ = arr_[1].Trim();
                    var val_ = arr_[2].Trim();
                    UpdateWidget<string>(id_, val_);
                    break;
            }
        }

        public void ClearWidget(string WidgetId)
        {
            var command = String.Format("xCommand UserInterface Extensions Widget UnSetValue WidgetId: \"{0}\"", WidgetId);
            Console.WriteLine(command);
        }

There is an active branch working on the same class so i'm not going to cause repo conflicts by adding this myself.


Maw(n) should support none, Maw(a) is invalid

Looks like the rules assigned to Maw are incorrect.

Yikes!! Good catch @snyamathi


Fix the resource not found bug after creating policy submit

Ref: https://issues.redhat.com/browse/ACM-10416

/test all

/test all

/cc @dhaiducek  @JustinKuli  @mprahl

/test unit-tests-sonarcloud

/unhold

/unhold

/cherrypick release-2.10

/test unit-tests-sonarcloud


Statusline is kinda broken on WSLTTY with installed fonts and tmux config.

What am i doing wronmg?

Hello @cyb3rm4n 👋
By broken you mean the colors?
In any case I recommend using Windows Terminal nowadays.

i mean its not as on the screenshots with arrow-like symbols

Please read installation instructions in README.md.
Make a copy the .tmux.conf.local file in your home directory then look at settings in this file.
Still, Windows Terminal works better than WSLTTY.

still don't work as excepted, but fonts are great.

Did you edit your ~/.tmux.conf.local copy to enable powerline symbols?

got it! now its fixed! Thank you!

@cyb3rm4n Are we good?

@gpakosz tes, you can close the issue


Show a QR code with the address in the terminal when using --host.

Description
As a developer building websites for a myriad of devices, I want to be able to open the local version of my site without having to type IP addresses and ports.
Suggested solution
Print a QR code when using the --host option.
Alternative
No response
Additional context
No response
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Recently I noticed Chrome has "Create QR Code for this page" https://support.google.com/chrome/answer/10051760?hl=en&co=GENIE.Platform%3DDesktop#zippy=%2Cshare-pages-with-a-qr-code and I'm usually satisfied with this. Does your browser have something similar? or is this setup still cumbersome (compared to having it on your terminal)?
Example

vite-plugin-qrcode has this exact feature.

I really like this feature, but given that it can be achieved in user land it may be a good idea to keep things as is. Frameworks and users that would like the feature can add the plugin (Nuxt already does this by default for example). I think what we need is better visibility for these kind of plugins.

It would be kinda nice to have this builtin I think, but it's tricky to always show by default because qrcode rendering don't always render well on all terminals. It's also jarring to show all qrcodes if you have multiple external urls (which vite-plugin-qrcode had to introduce an option for), and I'm not really sure where or we'd want to add a new option for it.
And given the low download count of vite-plugin-qrcode, maybe this isn't worth it for now.


Typeahead does not work

Hi!
I am trying to build a tag input with typeahead and I am following your sample code:
$('#tags').tagsinput({
    typeahead: {
        source: ['Amsterdam', 'Washington', 'Sydney', 'Beijing', 'Cairo']
    }
});

However it won't work, in the browser I receive this error message:

jQuery.Deferred exception: self.$input.typeahead is not a function TypeError: self.$input.typeahead is not a function
at TagsInput.build (...)
at new TagsInput (...)
at HTMLInputElement.

Any idea what I am doing wrong?
Thanks!

typeahead function is not provided in the version of bootstrap you are using. Officially the typeahead is dropped from release 3.0. And is available separately in as typeahead.js.
Also jQuery must be included before typeahead.

Maybe this should be specified somewhere, I guessed typeahead was only working with Bootstrap 2 but I struggled a little bit to have a confirmation about it.


tabset的nzDeselect希望增加用户手动继续切换或选择取消切换的操作，类似于next或者cancel

What problem does this feature solve?
用户可以手动继续切换或选择取消切换的操作
What does the proposed API look like?
类似于next或者cancel

This issue has been closed due to inactivity.
Please file a new issue or discussion if you are encountering a similar or related problem.


Option to add a new fact

I've got the basic flow working except for one piece: the new fact needs to be in edit mode.
Also, we should restrict fact types to persons and honor the ignoreVitals option when enabled.


[Relay] Bug fix in relay.squeeze function for issue #12400

Bug fix in relay.squeeze function. Also added functionality for parameter axis of type int (#12400)

Hello @masahi,
After rebasing on main branch (git pull --rebase) after quite a while, git tree looks OK but build fails throwing some very weird errors. Is there a different way to do rebase, since when I clone the repository again, build was successful although I use the same environment as in the first scenario.

Maybe you haven't updated the submodules?


Initialization of the Repository index fails

Gitea version (or commit ref): 1.3.0
Git version: 2.15
Operating system: Gentoo Linux
Database:

[ ] PostgreSQL
[ ] MySQL
[ ] MSSQL
[x] SQLite

Can you reproduce the bug at https://try.gitea.io:

[ ] Yes (provide example URL)
[ ] No
[x] Not relevant

Log gist: https://gist.github.com/seijikun/e28a3e135c7986f1f2b159964714b62f

Description
The initialization of the repository index fails.
Info that may be relevant / related: The repo that is mentioned in the error is referenced as a submodule from one or more other repositories (that reside on the affected gitea instance aswell).

Code search is enabled in that instance?

I set REPO_INDEXER_ENABLED = true if that is, what you meant.
The error only occured after doing so.

Yes that repository indexer for code search. (@ethantkoenig)

I'll take a look (hopefully tonight)

maybe we should ignore submodules?

@lunny Yes, I'll work on that as soon as I get the chance (most likely tomorrow).


Python 3.x

Changes brought in:

Switch to Python 3.x
Giving up on using supervisord and running via gunicorn instead

Impacted files:

Dockerfile
tox.ini (removed py27 environment)

This change is

Coverage remained the same at 89.051% when pulling 6c8e6cbbe5d5fa316bce5f183594e0559602db88 on python_3.x into 3de3c51fe7ad62d959914f81e15fb53adbc185cd on master.

@xze @traut I think that we should have:

Support for both Python 2 and Python 3
Have docker containers using both. So actually having two different docker files.

On supervisord, I think it makes sense to remove, as docker itself is the thing that you run, and supervisord is not a must.

@xze @traut  what about this one?

@aukjan it is still in limbo

can we then move on this?  can you two work together?

@aukjan pull request needs to be adjusted. I guess the question is about priorities. @xze has other stuff on his plate


Could not retrieve the list of available versions for provider hashicorp/elaticstack: provider registry registry.terraform.io does not have a provider │ named registry.terraform.io/hashicorp/elaticstack

I noticed this morning i was not able to use this provider

Error: Failed to query available provider packages
│
│ Could not retrieve the list of available versions for provider hashicorp/elaticstack: provider registry registry.terraform.io does not have a provider
│ named registry.terraform.io/hashicorp/elaticstack
│
│ All modules should specify their required_providers so that external consumers will get the correct providers when using a module. To see which modules
│ are currently depending on hashicorp/elaticstack, run the following command:
│     terraform providers

Ive tried removing my .terraform + .terraform.lock.hcl file and then reruning init.

Initializing provider plugins...

terraform.io/builtin/terraform is built in to Terraform
Finding alekc/kubectl versions matching "2.1.0-beta2"...
Finding elastic/elasticstack versions matching "0.11.11"...
Finding latest version of hashicorp/elaticstack...
Finding hashicorp/aws versions matching "5.70.0"...
Finding hashicorp/kubernetes versions matching "2.32.0"...
Finding hashicorp/helm versions matching "2.15.0"...
Installing hashicorp/helm v2.15.0...
Installed hashicorp/helm v2.15.0 (signed by HashiCorp)
Installing alekc/kubectl v2.1.0-beta2...
Installed alekc/kubectl v2.1.0-beta2 (self-signed, key ID 772FB27A86DAFCE7)
Installing elastic/elasticstack v0.11.11...
Installed elastic/elasticstack v0.11.11 (signed by a HashiCorp partner, key ID 7FE579EDEC6DAA7B)
Installing hashicorp/aws v5.70.0...
Installed hashicorp/aws v5.70.0 (signed by HashiCorp)
Installing hashicorp/kubernetes v2.32.0...
Installed hashicorp/kubernetes v2.32.0 (signed by HashiCorp)

Partner and community providers are signed by their developers.
If you'd like to know more about provider signing, you can read about it here:
https://www.terraform.io/docs/cli/plugins/signing.html
╷
│ Error: Failed to query available provider packages
│
│ Could not retrieve the list of available versions for provider hashicorp/elaticstack: provider registry registry.terraform.io does not have a provider
│ named registry.terraform.io/hashicorp/elaticstack
│
│ All modules should specify their required_providers so that external consumers will get the correct providers when using a module. To see which modules
│ are currently depending on hashicorp/elaticstack, run the following command:
│     terraform providers

This was my mistake


update auth-at-edge semantic version to latest 2.1.7

Feature or Bugfix

Bugfix

Detail
update auth-at-edge semantic version to latest 2.1.7
Relates

#708
#709

Security
N/A
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@dlpzx

@wolfit thanks for the PR! Approved and ready to merge

@wolfit thanks for the PR! Approved and ready to merge

Please merge as I don't have permission.


Fix/fix wrong charaterisitcs in skills

Feel free to change the target after you have updated develop
closes https://github.com/moo-man/ImpMal-FoundryVTT/issues/59

Can you add a prettier.config? Thanks


how to deploy to heroku?

I'm blindly trying to have a working Procfile.
However the "web" process type does not seem to work.
I tried:
bot: mix run --no-halt

and
web: mix run --no-halt

same effect. no logs, nothing.
Do you have any experience regarding heroku deployment?
PS: i'm using:
 % heroku config
=== edgar-hedwig Config Vars
BUILDPACK_URL: https://github.com/HashNuke/heroku-buildpack-elixir.git
MIX_ENV:       prod

Heroku kills web apps if they don't respond to $PORT in 60 seconds. see: https://devcenter.heroku.com/articles/error-codes#r10-boot-timeout
I would just write a simple cowboy process that listens to and set to port to System.get_env('PORT') || 4000

@meatherly thanks for the tips!
I know about the "web" process specificities, but it amazes me that heroku forces you to create a useless web process just to let other dynos live.
From what I read here https://devcenter.heroku.com/articles/run-non-web-java-processes-on-heroku it seems we could run whatever long-running process without any web process.
Thoughts?

@docteurklein is there a reason why you cannot use a worker process? I have an elixir chat bot running as a worker on heroku that has stayed alive for months now without a web process.

@bbrock25 thanks for the feedback
I tried at first to define a worker process only, but didn't get it to work.
What does your Procfile look like, and how are you starting it?
I tried with
bot: mix run --no-halt

and then push to deploy.

EDIT: i just tried to run it with heroku scale bot=1 and it seems to work. Still not sure why it doesn't at git push.

You probably needed to turn the worker on before it would automatically deploy. I'd imagine that deploying with git push should be fine now.

@bbrock25 thanks!
I didn't notice you added your Procfile, sorry to ask again how it looked like.
Anyway, I guess I can close this issue now?


Update README.md

Add background/context
Add TODO

@e23thr please review

Thanks for your warm help.


[fix] #2110 Tag ".net" creates invalid pagination

The path helper incorrectly transforms valid urls causing issues with
pagination. One example is .net
http://localhost:1313/tags/.net/
to
http://localhost:1313/tags/index.net/page/2
The commit adds a test and a switch statement to only apply the
transformation to paths with a .xml or .html extension.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


XMPlus server connection logs for debug

How can we check logs to debug connections? in XMPlus log option on the menu, there is nothing about that. I made several connections even if it is green (connected) but I can't get any ping via "https://tcp.ping.pe/" and all connections will be refused if I setup another Xray server on it so everything is ok!

-- Logs begin at Sat 2023-01-07 07:27:30 UTC. --
Jan 07 09:07:01 centos-2gb-nbg1-3 systemd[1]: Stopping XMPlus Service...
Jan 07 09:07:01 centos-2gb-nbg1-3 systemd[1]: Stopped XMPlus Service.
Jan 07 09:07:01 centos-2gb-nbg1-3 systemd[1]: Started XMPlus Service.
Jan 07 09:07:01 centos-2gb-nbg1-3 XMPlus[10153]: XMPlus v2.0.3 (A custom version of XrayR)
Jan 07 09:07:01 centos-2gb-nbg1-3 XMPlus[10153]: 2023/01/07 09:07:01 Starting XMPlus
Jan 07 09:07:01 centos-2gb-nbg1-3 XMPlus[10153]: 2023/01/07 09:07:01 [Warning] core: Xray 1.6.6 started
Jan 07 09:07:02 centos-2gb-nbg1-3 XMPlus[10153]: 2023/01/07 09:07:02 [Info] app/dns: DNS: created UDP client initialized for <IP_ADDRESS>:53
Jan 07 09:07:02 centos-2gb-nbg1-3 XMPlus[10153]: 2023/01/07 09:07:02 [Info] app/dns: DNS: created UDP client initialized for <IP_ADDRESS>:53
Jan 07 09:07:02 centos-2gb-nbg1-3 XMPlus[10153]: 2023/01/07 09:07:02 [Info] app/dns: DNS: created Remote DOH client for https://dns.google/dns-query
Jan 07 09:07:02 centos-2gb-nbg1-3 XMPlus[10153]: 2023/01/07 09:07:02 [Info] app/dns: DNS: created Remote DOH client for https://<IP_ADDRESS>/dns-query
Jan 07 09:07:02 centos-2gb-nbg1-3 XMPlus[10153]: 2023/01/07 09:07:02 [Info] app/dns: DNS: created Local DOH client for https://cloudflare-dns.com/dns-query
Jan 07 09:07:02 centos-2gb-nbg1-3 XMPlus[10153]: 2023/01/07 09:07:02 [http://sub.site..com] Vless(NodeID=1) 1 New Users Added
Jan 07 09:07:02 centos-2gb-nbg1-3 XMPlus[10153]: 2023/01/07 09:07:02 [http://sub.site..com] Vless(NodeID=1) Task Scheduler for node monitor started
Jan 07 09:07:02 centos-2gb-nbg1-3 XMPlus[10153]: 2023/01/07 09:07:02 [http://sub.site..com] Vless(NodeID=1) Task Scheduler for user monitor started
Jan 07 09:07:02 centos-2gb-nbg1-3 XMPlus[10153]: 2023/01/07 09:07:02 [Info] transport/internet/tcp: listening TCP on <IP_ADDRESS>:6661

How can we check logs to debug connections? in XMPlus log option on the menu, there is nothing about that. I made several connections even if it is green (connected) but I can't get any ping via "https://tcp.ping.pe/" and all connections will be refused if I setup another Xray server on it so everything is ok!

-- Logs begin at Sat 2023-01-07 07:27:30 UTC. -- Jan 07 09:07:01 centos-2gb-nbg1-3 systemd[1]: Stopping XMPlus Service... Jan 07 09:07:01 centos-2gb-nbg1-3 systemd[1]: Stopped XMPlus Service. Jan 07 09:07:01 centos-2gb-nbg1-3 systemd[1]: Started XMPlus Service. Jan 07 09:07:01 centos-2gb-nbg1-3 XMPlus[10153]: XMPlus v2.0.3 (A custom version of XrayR) Jan 07 09:07:01 centos-2gb-nbg1-3 XMPlus[10153]: 2023/01/07 09:07:01 Starting XMPlus Jan 07 09:07:01 centos-2gb-nbg1-3 XMPlus[10153]: 2023/01/07 09:07:01 [Warning] core: Xray 1.6.6 started Jan 07 09:07:02 centos-2gb-nbg1-3 XMPlus[10153]: 2023/01/07 09:07:02 [Info] app/dns: DNS: created UDP client initialized for <IP_ADDRESS>:53 Jan 07 09:07:02 centos-2gb-nbg1-3 XMPlus[10153]: 2023/01/07 09:07:02 [Info] app/dns: DNS: created UDP client initialized for <IP_ADDRESS>:53 Jan 07 09:07:02 centos-2gb-nbg1-3 XMPlus[10153]: 2023/01/07 09:07:02 [Info] app/dns: DNS: created Remote DOH client for https://dns.google/dns-query Jan 07 09:07:02 centos-2gb-nbg1-3 XMPlus[10153]: 2023/01/07 09:07:02 [Info] app/dns: DNS: created Remote DOH client for https://<IP_ADDRESS>/dns-query Jan 07 09:07:02 centos-2gb-nbg1-3 XMPlus[10153]: 2023/01/07 09:07:02 [Info] app/dns: DNS: created Local DOH client for https://cloudflare-dns.com/dns-query Jan 07 09:07:02 centos-2gb-nbg1-3 XMPlus[10153]: 2023/01/07 09:07:02 [http://sub.site..com] Vless(NodeID=1) 1 New Users Added Jan 07 09:07:02 centos-2gb-nbg1-3 XMPlus[10153]: 2023/01/07 09:07:02 [http://sub.site..com] Vless(NodeID=1) Task Scheduler for node monitor started Jan 07 09:07:02 centos-2gb-nbg1-3 XMPlus[10153]: 2023/01/07 09:07:02 [http://sub.site..com] Vless(NodeID=1) Task Scheduler for user monitor started Jan 07 09:07:02 centos-2gb-nbg1-3 XMPlus[10153]: 2023/01/07 09:07:02 [Info] transport/internet/tcp: listening TCP on <IP_ADDRESS>:6661

there is nothing wrong with the backend, you are seeing the log.
The issue will be you have not allow your server port through your firewall or security group


Allow to check arbitrary PreConditions before transfers

This is a proposal to allow runtimes to run arbitrary checks on a given sender, receiver, currency_id, amount combination for normal transfers.
The current approach only checks if the preconditions for a transfer are met when using the public API. I.e. only for normal users.
The trait interfaces of Multicurrency, Fungibles, etc are not checked. I am not sure if this is generally wanted or not. Substrate tends to leave traits pretty much permissionless.
Happy for feedback and a temperature check how the acceptance of this is.

 If you want to enforce some precondition on the fungible traits level, then I will say implement some type helper similar to Combiner or Mapper like https://github.com/open-web3-stack/open-runtime-module-library/blob/master/tokens/src/impls.rs

Another way to achieve similar functionality without modification here is simply do not expose the calls from orml-tokens, and write your own pallet that exposes calls that does its custom check and call transfer on orml-tokens. Something a bit similar to orml-currencies.

Yes, you are absolutely right. This is what we currently are doing. We basically mimic the Call-interface of tokens and do our pre-checks there and then forward to fungibles implementations.
I have one main reasoning for bringing up this PR here.

Client compatibility/integrations

WIth the two-pallets approach, clients (wallets, etc.) must always query the storage of orml-tokens for balances and know the Call-Api of the "guarding" pallet for transfers. Even if we mimic the orml-tokens interface 1-to-1 and clients must know the location of orml-tokens. Doing this manually for every chain is an unnecessary overhead.
With the proposed change, the orml-tokens could be used as the default tokens pallet for almost every use-case and client integrations would simply switch the ws-endpoint from chain to chain (assuming everybody defaults to naming the orml-tokens pallet Tokens).

we are not going to get everyone to use this pallet. My solution to unified interface is https://github.com/w3f/PSPs/blob/master/PSPs/drafts/psp-3.md

But when will this be realized? I still think this rather small change to orml-tokens allows for broader adoption, which at the beginning will make integrations easier.

It is really not a good idea to use calls of orml-tokens directly anyway. Most of the teams will want to use orml-currencies instead so that a unified interface can be used to transfer native token and custom token. From my 1 min research, Karura, Bifrost, Basilisk are all using orml-tokens but expose currencies for transaction.

I see your point. But at least HydraDx and Bifrost also expose orml-tokens. I have to think about it.

I am closing this. @xlc I will wrap ours in a restricted-currency version. Thanks for the input and advice!


Bug: double far pointers are not resolved properly

while parsing a message that contained a double far pointer, I got an error.
after some investigation, I've came to a conclusion the problem lies in the landingPadNearPointer function in rawpointer.go.
the function conversion is not correct, the created pointer from the function is after a multiplication of the offset in word size, so instead of having a pointer with the some addr x - 1 (an offset in terms of word size), the returned pointer stores the address (x * wordSize - wordSize).
I've created a PR with a fix and a test, appreciate if you can take a look.
https://github.com/zombiezen/go-capnproto2/pull/71
thanks :)

This should be closed, since #71 has been merged.
//cc @zombiezen

Quite right.


pavucontrol: 5.0 -> 6.0 and a refactor

Description of changes
The main big changes are

Migrate from Gtk 3 to 4
Drop autotools build in favour of meson
Make libcanberra dependency optional

Source: https://freedesktop.org/software/pulseaudio/pavucontrol/#news
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.

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

2 packages built:

blueberry
pavucontrol

Runs successfully.

@JohnRTitor Should I backport it?


Use pyproject.toml to install appletree

Similar to https://github.com/XENONnT/straxen/pull/1408
Please mind the change in the README.md.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>6
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.3%) to 84.876%

Totals

Change from base Build<PHONE_NUMBER>6:
-0.3%

Covered Lines:
2430

Relevant Lines:
2863

💛  - Coveralls


Basic Viability

How effectively can future performance be predicted by past performance?  Create confidence intervals.  More specifically; does the previous year predict the current year for weeks 1-17.
Do this two ways:

For year totals
For per game averages, only counting games played (to lessen effect of injury/suspension)

This requirement is satisfied as written.  It will be worth looking at again, except for predicting TDs.


Convert date to LocalDate in sortlist()

Description
Convert date to LocalDate in sortlist()

Please add some tests like those in https://github.com/apache/iotdb/pull/13090/files


No unit test for enabled and disabled EndOfLine

If enabled, should be "^", if not, should be empty

Ok, rewieved


Add SIGQUIT behavior to docs

We found out about the SIGQUIT behavior from source code, which we are using to immediately fail and retry jobs when we spin down AWS instances.
Feel free to make any changes to the wording.

Looks great! Thanks for taking the time to PR @marktai, much appreciated 😄🙏🏻


Fix issue #2234 and #2228

What is the purpose of the pull request
Fix issue #2234 and #2228
Brief change log
*Fix issue #2234 and #2228

Codecov Report

Merging #2246 into dev-resource-tree will increase coverage by 0.01%.
The diff coverage is 13.15%.

@@                   Coverage Diff                   @@
##             dev-resource-tree    #2246      +/-   ##
=======================================================
+ Coverage                24.36%   24.37%   +0.01%
- Complexity                1317     1319       +2
=======================================================
  Files                      318      318
  Lines                    16960    16975      +15
  Branches                  2090     2093       +3
=======================================================
+ Hits                      4132     4138       +6
- Misses                   12365    12375      +10
+ Partials                   463      462       -1

Impacted Files
Coverage Δ
Complexity Δ

...nscheduler/api/controller/ResourcesController.java
1.16% <0.00%> (ø)
2.00 <0.00> (ø)

...duler/api/dto/resources/filter/ResourceFilter.java
0.00% <0.00%> (ø)
0.00 <0.00> (ø)

...dolphinscheduler/api/service/ResourcesService.java
57.73% <15.15%> (-1.72%)
66.00 <0.00> (ø)

...he/dolphinscheduler/common/thread/ThreadUtils.java
81.35% <0.00%> (+10.16%)
14.00% <0.00%> (+2.00%)

Continue to review full report at Codecov.

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


GH#201 - Bulk Get completed for common api

#201 completed.
Bulk Get returns a list of nodes which have keys that match or begin with the query resource.

Added comments to the ticket, repeated here:
Add unit tests for:
correctly returns varied contentTypes
correctly returns entities
correctly returns an empty array if no keys match

Add a client tests that use client.api("data.api").bulkGet("/foo") to make sure that the client builds the right interface.

Updated.  See #201

Looks good.  Go ahead and merge.


New release?

The systems I'm working on have been updated to 3.2, so I need to update my projects as well.
I noticed a PR was merged last month for 3.2 support. Is there a chance we can get an update pushed out to crates.io?
Thanks for all your work!!

Done, thanks :beers:


feat: Table Lineage API

Signed-off-by: Allison Suarez Miranda<EMAIL_ADDRESS>
Summary of Changes

Created Table Lineage API
Added Column to ResourceType enum

Tests

Wrote tests for Table Lineage API

Documentation
What documentation did you add or modify and why? Add any relevant links then remove this line
CheckList
Make sure you have checked all steps below to ensure a timely review.

[ ] PR title addresses the issue accurately and concisely. Example: "Updates the version of Flask to v1.0.2"

In case you are adding a dependency, check if the license complies with the ASF 3rd Party License Policy.

[ ] PR includes a summary of changes.
[ ] PR adds unit tests, updates existing unit tests, OR documents why no test additions or modifications are needed.
[ ] In case of new functionality, my PR adds documentation that describes how to use it.

All the public functions and the classes in the PR contain docstrings that explain what it does

[ ] PR passes make test

Codecov Report

Merging #262 (552775f) into master (2752492) will increase coverage by 3.18%.
The diff coverage is 70.41%.

@@            Coverage Diff             @@
##           master     #262      +/-   ##
==========================================
+ Coverage   74.10%   77.29%   +3.18%
==========================================
  Files          25       27       +2
  Lines        1255     1374     +119
  Branches      136      162      +26
==========================================
+ Hits          930     1062     +132
+ Misses        297      264      -33
- Partials       28       48      +20

Impacted Files
Coverage Δ

metadata_service/api/__init__.py
82.60% <ø> (ø)

metadata_service/api/column.py
100.00% <ø> (ø)

metadata_service/api/popular_tables.py
100.00% <ø> (ø)

metadata_service/api/system.py
66.66% <ø> (ø)

metadata_service/api/user.py
100.00% <ø> (ø)

metadata_service/proxy/statsd_utilities.py
81.25% <ø> (ø)

metadata_service/util.py
100.00% <ø> (ø)

metadata_service/proxy/shared.py
28.57% <28.57%> (ø)

metadata_service/proxy/neo4j_proxy.py
71.55% <61.03%> (-3.45%)
:arrow_down:

metadata_service/api/badge.py
61.29% <61.29%> (ø)

... and 18 more

Continue to review full report at Codecov.

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


Codepen demo not working

https://cdn.jsdelivr.net/jsbarcode/3.3.20/JsBarcode.all.min.js
returns

Couldn't find the requested file /JsBarcode.all.min.js in jsbarcode.

and thus the Simple CodePen Demo shows nothing.
However, the Settings CodePen Demo works fine as it is loading JsBarcode.all.min.js from https://cdn.jsdelivr.net/jsbarcode/3.5.1/JsBarcode.all.min.js.

Works fine for me

Hi guys, I'm from the jsDelivr team and I've got notifications about a few requests (< 10 in 200k) to our storage provider timing out. The above url should work now and we'll investigate this further, but I also suggest you update the demo to our new endpoint which has additional fail-over for cases like this<EMAIL_ADDRESS>


Update VOs IFCA-LCG2 site

(Fix) Update VOs at IFCA-LCG2 site

Can one of the admins verify this patch?


fix: After coming back from result detail, search result come back to the top, not current position #1150

Details:
I checked if the view is already initialized. If it is, I reuse the view of the search result, not reload the whole thing again. I also realized that the events fragment have the same problem so I make the same change.
Besides, I prevent the change in action bar by setting the action bar first before rendering the rootView
Fixes #1150
Screenshot:

@liveHarshit I have fixed the problem that you found on the last PR I made on issue #1150, please review

After testing out again, I realized I made a mistake. So I changed the EventsFragment by checking if rootView is already initialized and if it is not redirected from SearchLocationFragment (new search). If it is already initialized and not a new search, the old rootView is reused. Please review again. Thank you.
I attached a video cap screen below. It's around 40s so I cannot capture it into a gif
https://www.youtube.com/watch?v=looVjPgAFPk

Sorry I made a mess with a lot of commit here, I will open another cleaner PR with the same content

Sorry I made a mess with a lot of commit here, I will open another cleaner PR with the same content

Please do not close PR and send new PR for the same issue.

@liveHarshit sorry, I did, is it a big problem?


az interactive >> The command failed with an unexpected error. Here is the traceback:

This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az interactive
Errors:
No module named 'prompt_toolkit.interface'
Traceback (most recent call last):
Temp\pip-install-rtk110ve\knack\knack\cli.py, ln 206, in invoke
azure\cli\core\commands\__init__.py, ln 603, in execute
azure\cli\core\commands\__init__.py, ln 661, in _run_jobs_serially
azure\cli\core\commands\__init__.py, ln 654, in _run_job
Local\Temp\pip-install-rtk110ve\six\six.py, ln 693, in reraise
azure\cli\core\commands\__init__.py, ln 631, in _run_job
azure\cli\core\commands\__init__.py, ln 305, in __call__
azure-cli-core\azure\cli\core\__init__.py, ln 485, in default_command_handler
azure\cli\command_modules\interactive\custom.py, ln 41, in start_shell
.azure\cliextensions\interactive\azext_interactive\__init__.py, ln 10, in start_shell
    from .azclishell.app import AzInteractiveShell
cliextensions\interactive\azext_interactive\azclishell\app.py, ln 33, in <module>
    from prompt_toolkit.interface import Application, CommandLineInterface
ModuleNotFoundError: No module named 'prompt_toolkit.interface'

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
az interactive

Expected Behavior
Environment Summary
Windows-10-10.0.18362-SP0
Python 3.6.6
Shell: powershell.exe

azure-cli 2.0.70 *

Extensions:
interactive 0.4.4

Additional Context

interactive

Looks like you have another version of prompt_toolkit which is conflicting with the one interactive is using.
https://github.com/Azure/azure-cli-extensions/blob/4c14ac3599c7eddb8a9d9647cd5b6979847f4493/src/interactive/setup.py#L34-L36
DEPENDENCIES = [
    'prompt_toolkit~=1.0.15'
]

Please try to uninstall with
pip uninstall prompt-toolkit

@nlksg was your issue resolved?

@nlksg was your issue resolved?

@yonzhan it has been resolved with
pip uninstall prompt-toolkit


sap.ui.table.Table: iOS VoiceOver announces "table end" incorrectly

OpenUI5 version: latest
Browser/version (+device/version): Safari / iPad / iOS 8+
Any other tested browsers/devices(OK/FAIL):
URL (minimal example if possible):http://output.jsbin.com/roqake
User/password (if required and possible - do not post any confidential information here):
Steps to reproduce the problem:
1.Enable VoiceOver under iPad's Accessibility settings
2.Single-tap on a cell in the table and note VO reads the cell
3.Single-tap on the bottom-right cell (column 3 row 10) and note VO says "table end"
What is the expected result? VO should read that bottom-right cell as it does the others, and not say "table end".
What happens instead? Since the table actually has 50 rows, and only 10 are visible, that bottom-right cell isn't actually the end of the table. This announcement would likely confuse users into thinking they're at the true end of the table.
Any other information? (attach screenshot if possible) I know from https://github.com/SAP/openui5/issues/443 that iOS VoiceOver isn't supported, but wanted to report it anyway to at least have it recorded.

This is related to thread #443.


Can I use this for continuous trait data?

I learned about GWAS and found a path-based test. From the manual, it seems that it can be executed only in cases and controls study. Is it applicable to continuous traits?
Thank you

you can specify argument 'family' for different traits, family='gaussian' for continuous trait and family='binomial' for binary outcome.


Numpy >=1.22.0 RuntimeError

Hi :wave:
There appears to be an issue when using the newer Numpy >= 1.22.0 (current release is 1.22.1). It compiles without issue but gives  the following error when trying to run the compiled standalone:
Traceback (most recent call last):
  File "/home/theguy/projects/test_nuitka/numpy_test.dist/numpy_test.py", line 1, in <module>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "/home/theguy/projects/test_nuitka/numpy_test.dist/numpy/__init__.py", line 144, in <module numpy>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "/home/theguy/projects/test_nuitka/numpy_test.dist/numpy/core/__init__.py", line 23, in <module numpy.core>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "/home/theguy/projects/test_nuitka/numpy_test.dist/numpy/core/multiarray.py", line 80, in <module numpy.core.multiarray>
  File "/home/theguy/projects/test_nuitka/numpy_test.dist/numpy/core/overrides.py", line 201, in decorator
  File "/home/theguy/projects/test_nuitka/numpy_test.dist/numpy/core/overrides.py", line 183, in decorator
RuntimeError: __code__ is not writable in Nuitka

Issue tested with Nuitka <IP_ADDRESS>, <IP_ADDRESS> and develop branch. If one holds the numpy version back to 1.21.5, there's no problem.
<IP_ADDRESS>
Commercial: None
Python: 3.9.7 (default, Sep 10 2021, 14:59:43)
Flavor: Debian Python
Executable: /home/theguy/.cache/pypoetry/virtualenvs/test-nuitka-Z7Y54p4h-py3.9/bin/python
OS: Linux
Arch: x86_64
Distribution: Pop 21.10

Installed through poetry (virtualenv)
Nuitka @ file:///home/theguy/.cache/pypoetry/artifacts/0e/82/a6/3eda349f3337b0fbbda8ecb9a47f50a9ee2e7095fa023a188751046956/Nuitka-<IP_ADDRESS>.tar.gz
numpy @ file:///home/theguy/.cache/pypoetry/artifacts/df/02/c1/3940f115306d04c79d2a84ed299e313221e70a193e47f967dc53ac0986/numpy-1.22.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
SSCCE: numpy_test.py
# nuitka-project: --standalone
# nuitka-project: --plugin-enable=numpy
# nuitka-project: --static-libpython=no

import numpy as np

arr = np.array([[1, 2, 3], [4, 2, 5]])
print("Shape of array: ", arr.shape)

python -m nuitka numpy_test.py
./numpy_test.dist/numpy_test

Ok, thanks for your report, I wasn't aware of this problem yet.

I will look into this tomorrow, but you try to enable the anti-bloat plugin, that might help, as it removes stuff in that area.

Thanks for the response and tip. I did test it with the anti-bloat plugin though and it didn't help. I also tried just to see without the numpy plugin and had the same result.

This is on factory branch https://nuitka.net/doc/factory.html and will be part of the next hotfix <IP_ADDRESS> likely

:tada: thanks!

It seems there was also a macOS issue caused by build system changes, also on factory and will be in the hotfix too, which I had to delay because of that.

Part of the latest hotfix release.


First iteration: integration with bot-plutus-interface

As first iteration we want to try use some ready to go and battle-tested solutions. For that we want to integrate bot-plutus-interface to testing framework to do some heavy lifting and see how we can improve from there.
Tasks:

[x]  Add 10 key pairs required for bot-plutus-interface to run transactions, this keys will represent known wallets (not needed anymore, wallets can be added by DSL)
[x] Add bot-plutus-interface to project
[x] Re-implement adding wallet to cluster. "Adding wallet" means adding some address with funds to local cluster using ergonomic DSL. This wallet/address will be used by framework for transaction execution #10
[x] Add reporting of contract execution outcome

1st release


Removed type_privacy_lint from feature

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

Project coverage is 100.00%. Comparing base (6c84251) to head (e9a5155).

Additional details and impacted files
@@            Coverage Diff            @@
##            master       #14   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            2         2
  Lines           66        66
=========================================
  Hits            66        66

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


Insertion Sort faster than Merge Sort

Brief Intro
I've been looking at the reality of some of these algorithms in swift vs. the general comp sci theory.  My insertion sort appears to be much faster than the merge sort posted here and in the "Data Structures & Algorithms" book.  Does anyone have an explanation?
In both cases I used playgrounds and the "measure" function below times a list of 5000 random numbers.  My insertion sort is about twice as quick as the merge sort.
See also: https://github.com/raywenderlich/swift-algorithm-club/pull/890
My Insertion Sort
import Foundation

public extension Array where Element: Comparable {
    var arrayContentDescription: String {
        return map { return "\($0)" }
            .joined(separator: " ")
    }
}

func insertionSort<Element>(_ array: inout [Element]) where Element: Comparable {
    func move(from: Int, to: Int) {
        let removed = array[from]
        array.remove(at: from)
        array.insert(removed, at: to)
    }

    for i in 1..<array.count {
        if array[i] > array[i-1] { continue }
        for j in (0..<i).reversed() {
            if array[i] > array[j] {
                move(from: i, to: j+1)
                break
            } else if j == 0 {
                move(from: i, to: 0)
            }
        }
    }
}

func measure(_ title: String, block: (@escaping () -> ()) -> ()) {
    let startTime = CFAbsoluteTimeGetCurrent()
    block {
        let timeElapsed = CFAbsoluteTimeGetCurrent() - startTime
        print("\(title):: Time: \(timeElapsed)")
    }
}

measure("Selection Sort") { finish in
    var d = (1...5000).map {_ in return Int.random(in: 1...10000000)}
    insertionSort(&d)
    finish()
    print(d.arrayContentDescription)
}

Merge Sort from "Data Structures & Algorithms" book
import Foundation

public func mergeSort<Element>(_ array: [Element])
    -> [Element] where Element: Comparable {
        guard array.count > 1 else {
            return array
        }
        let middle = array.count / 2
        let left = mergeSort(Array(array[..<middle]))
        let right = mergeSort(Array(array[middle...]))
        return merge(left, right)
}

private func merge<Element>(_ left: [Element], _ right: [Element])
    -> [Element] where Element: Comparable {
        // 1
        var leftIndex = 0
        var rightIndex = 0
        // 2
        var result: [Element] = []
        // 3
        while leftIndex < left.count && rightIndex < right.count {
            let leftElement = left[leftIndex]
            let rightElement = right[rightIndex]
            // 4
            if leftElement < rightElement {
                result.append(leftElement)
                leftIndex += 1
            } else if leftElement > rightElement {
                result.append(rightElement)
                rightIndex += 1
            } else {
                result.append(leftElement)
                leftIndex += 1
                result.append(rightElement)
                rightIndex += 1
            } }
        // 5
        if leftIndex < left.count {
            result.append(contentsOf: left[leftIndex...])
        }
        if rightIndex < right.count {
            result.append(contentsOf: right[rightIndex...])
        }
        return result
}

public extension Array where Element: Comparable {
    var arrayContentDescription: String {
        return map { return "\($0)" }
            .joined(separator: " ")
    }
}

func measure(_ title: String, block: (@escaping () -> ()) -> ()) {

    let startTime = CFAbsoluteTimeGetCurrent()

    block {
        let timeElapsed = CFAbsoluteTimeGetCurrent() - startTime
        print("\(title):: Time: \(timeElapsed)")
    }
}

measure("Selection Sort") { finish in
    var d = (1...5000).map {_ in return Int.random(in: 1...10000000)}
    let x = mergeSort(d)
    finish()
    print(x.arrayContentDescription)
}

Playgrounds are not suitable for doing speed measurements. The only way to get reliable results is to compile the code with optimizations enabled.
That said, the recursive version of merge sort that appends stuff to temporary arrays isn't exactly a speed monster.
Try the bottom-up version from https://github.com/raywenderlich/swift-algorithm-club/tree/master/Merge Sort and see how that compares. :-)

@hollance curious why that is

Playgrounds don't use optimized code, plus they do a lot of extra stuff (like collecting intermediate results and redrawing the screen to show those results). Measuring the speed of a piece of code in a playground only tells you something about how fast that code runs in a playground, not anywhere else.

@hollance that explains it.  Thanks.


adds tdp-finder model to models-universe and adds impl

Types of changes

[x] Enhancement (project structure, spelling, grammar, formatting)
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

Patches PR #174  by:

rebasing onto latest dev
adding new model to models-universe.ts
exporting new model from lib
adding an example impl that invokes the tdp-finder

@jmcook1186 Can I cherry pick instead?


Accessibility: Create consistent Events registration labels

From Andrew's accessibility audit (not sure if we're still doing the Events registration the same way as when Andrew took a look):
On the events page labels for registration checkboxes should be labeled consistently.  Some controls use for/id, others wrap the input controls with the label element.

@awkawk the checkbox markup looks consistent to me. can you show me what you mean?

Agree that it looks good now.  Closing as no longer an issue.


Track domain that created a comment

When a new comment is created, we want to track what domain that comment was made on (e.g. lbry.tv, odysee.com, lbry.lat, etc).

this requires adding a column to the comment table, getting the domain from the request and storing it.

Add a var char column of length 50 ( all domains we use should be able to fit in there ) that can be null, so it doesn't cause a large migration on the db and old records can remain unimpacted.

only one domain now


[question]: Angular Routing Testing support

Hi, is it planned to support angular routing testing in the near future? Thx!

Sure

Any ideas for what could be useful, @morenoisidro?
Any ideas from you, @NetanelBasal?

We have to check out the "painful" points here.

Exactly

I remembered one thing from testing Router-related things.
If we have a component that subscribes to route parameters, it would be nice to have a utility function to create fake route parameters for testing purposes.

Testing a routing component
Examle from Angular.io
// dashboard.component.ts
// (...)
export class DashboardComponent {
  constructor(
    private router: Router,
    private heroService: HeroService) {
  }

  gotoDetail(hero: Hero) {
    let url = `/heroes/${hero.id}`;
    this.router.navigateByUrl(url);
  }
}

// dashboard.component.spec.ts

const routerSpy = jasmine.createSpyObj('Router', ['navigateByUrl']);
const heroServiceSpy = jasmine.createSpyObj('HeroService', ['getHeroes']);

TestBed.configureTestingModule({
  providers: [
    { provide: HeroService, useValue: heroServiceSpy },
    { provide: Router,      useValue: routerSpy }
  ]
});

it('should tell ROUTER to navigate when hero clicked', () => {
  heroClick(); // trigger click on first inner <div class="hero">

  // args passed to router.navigateByUrl() spy
  const spy = router.navigateByUrl as jasmine.Spy;
  const navArgs = spy.calls.first().args[0];

  // expecting to navigate to id of the component's first hero
  const id = comp.heroes[0].id;
  expect(navArgs).toBe('/heroes/' + id,
    'should nav to HeroDetail for first hero');
});

Here, we simply want to verify that the side effect of triggering navigation happens when the button is clicked.
It would be nice to be able to add a Router spy object spying on methods such as navigateByUrl and navigate.

Nested component tests
Examples from Angular.io
Stubbing RouterOutlet
@Component({selector: 'router-outlet', template: ''})
class RouterOutletStubComponent {}

TestBed.configureTestingModule({
  declarations: [
    AppComponent,
    RouterOutletStubComponent,
  ]
})

Router setup
Example from CodeCraft
A lot of setup is involved to use RouterTestingModule for tests.
We could create a test harness class similar to Spectator and SpectatorWithHost to have access to the Router and Location services and call Router#initialNavigation.
describe('Router: App', () => {

  let location: Location;
  let router: Router;
  let fixture;

  beforeEach(() => {
    TestBed.configureTestingModule({
      imports: [RouterTestingModule.withRoutes(routes)], (1)
      declarations: [
        HomeComponent,
        SearchComponent,
        AppComponent
      ]
    });

    router = TestBed.get(Router); (2)
    location = TestBed.get(Location); (3)

    fixture = TestBed.createComponent(AppComponent); (4)
    router.initialNavigation(); (5)
  });
});

We import our RouterTestingModule with our routes.
We grab a reference to the injected Router.
We grab a reference to the injected Location.
We ask the test bed to create an instance of our root AppComponent. We don’t need this reference in our test specs but we do need to create the root component with the router-outlet so the router has somewhere to insert components.
This sets up the location change listener and performs the initial navigation.

Sounds good. I'm too busy and can't work on it. If someone wants to contribute, it will be helpful.

What do you think, @morenoisidro?

I'll see what I can do.
Add a previous project I used this stub implementation for ActivatedRoute which was really helpfull.
import { ActivatedRoute, ActivatedRouteSnapshot, convertToParamMap, Data, ParamMap, Params } from '@angular/router';
import { BehaviorSubject, Observable } from 'rxjs';
import { map } from 'rxjs/operators';

export class ActivatedRouteStub extends ActivatedRoute {
  private _testParams: Params = {};
  private _testData: Data = {};

  private paramsSubject = new BehaviorSubject(this.testParams);
  private dataSubject = new BehaviorSubject(this.testData);

  constructor(options?: {
    params?: Params,
    data?: Data
  }) {
    super();

    if (options) {
      this.testParams = options.params || {};
      this.testData = options.data || {};
    }

    this.params = this.paramsSubject.asObservable();
    this.data = this.dataSubject.asObservable();
  }

  get paramMap(): Observable<ParamMap> {
    return this.paramsSubject.asObservable().pipe(
      map(params => convertToParamMap(params))
    );
  }

  get snapshot(): ActivatedRouteSnapshot {
    const snapshot = new ActivatedRouteSnapshot();

    snapshot.params = this._testParams;
    snapshot.data = this._testData;

    return snapshot;
  }

  set testParams(params: Params) {
    this._testParams = params;
    this.paramsSubject.next(params);
  }

  set testData(data: Data) {
    this._testData = data;
    this.dataSubject.next(data);
  }

  get testParams(): Params {
    return this._testParams;
  }

  get testData(): Data {
    return this._testData;
  }

  get children(): ActivatedRouteStub[] {
    return [this];
  }

  get parent(): ActivatedRouteStub {
    return this;
  }

  detectChanges(): void {
    this.dataSubject.next(this._testData);
    this.paramsSubject.next(this._testParams);
  }

  toString(): string {
    return 'activatedRouteStub';
  }
}

I have a proposal for Spectator v4 with a createRoutedComponentFactory() which returns a factory for SpectatorWithRouting.
It includes all existing Spectator features, with additionally:

an integrated ActivatedRouteStub with a clean API
support for changing the route params, queryParams and data
support for configuring Routes
support for auto-mocking routerLink directives
automatically loads RouterTestingModule

I will need to write unit tests and test on an existing project, expect more information soon.

https://github.com/NetanelBasal/spectator/pull/151

Routing support has just been released in 4.0.0. Please consult the README for more details about this new feature.

Great addition 💪 I'm not sure it covers all these use cases though.

Just a note: don't forget to provide correct imports to your createRoutingFactory:
  const createComponent = createRoutingFactory({
    component: AppComponent,
    imports: [RouterModule.forRoot([])],
  });


ParaView with additional python-packages

Issue description
ParaView comes with it's own python interpreter pvbatch which can be used to run standard python scripts with additional ParaView functions.
In addition to the already provided numpy module I also need to import matplotlib (or every other python module really).
First I tried overrideAttrs on the paraview package:
{ config, pkgs, stdenv, ... }:

with pkgs;
  let
    pkgs-unstable = import <nixos-unstable> {};
    my-python-packages = python-packages: with python-packages; [
      numpy
      matplotlib
    ];
    python-with-my-packages = (python2.withPackages my-python-packages).override {
      ignoreCollisions = true;
    };
  in
{
home.packages = [
    (pkgs-unstable.paraview.overrideAttrs (oldAttrs: {

      buildInputs = oldAttrs.buildInputs ++ [
        python-with-my-packages
      ];
      postInstall = ''
        wrapProgram $out/bin/paraview \
          --set PYTHONPATH "${python-with-my-packages}/${pkgs.python.sitePackages}"
        wrapProgram $out/bin/pvbatch \
          --set PYTHONPATH "${python-with-my-packages}/${pkgs.python.sitePackages}"
        wrapProgram $out/bin/pvpython \
          --set PYTHONPATH "${python-with-my-packages}/${pkgs.python.sitePackages}"
          '';

    }))
  ];
}

Although it works I don't want to recompile ParaView for every change in my python modules. So I read on the wiki that I could just wrap the binaries:
{ config, pkgs, ... }:

  let
    pkgs-unstable = import <nixos-unstable> {};
    pvbatchAdditionalPythonPackages = python-packages: with python-packages; [
      numpy
      matplotlib
    ];
    pvbatchPython = (pkgs.python2.withPackages pvbatchAdditionalPythonPackages).override {
      ignoreCollisions = true;
    };
  in
{

  home.packages = [

    (pkgs.runCommand "pvbatch" {
      buildInputs = [ pkgs.makeWrapper ];
      } ''
          mkdir $out
          ln -s ${pkgs-unstable.paraview}/* $out
          rm $out/bin
          mkdir $out/bin
          ln -s ${pkgs-unstable.paraview}/bin/* $out/bin
          rm $out/bin/pvbatch
          makeWrapper ${pkgs-unstable.paraview}/bin/pvbatch $out/bin/pvbatch \
            --set PYTHONPATH "${pvbatchPython}/${pkgs.python.sitePackages}"
        '')
  ];

}

But I guess because the binary is wrapped inside the builder my additional wrapper is ignored.
Steps to reproduce

Build the posted home-config (I used home-manager)
run pvbatch with a python script calling import matplotlib.pyplot

Technical details

system: "x86_64-linux"
host os: Linux 4.4.0-18362-Microsoft, Ubuntu, 18.04.3 LTS (Bionic Beaver)
multi-user?: no
sandbox: no
version: nix-env (Nix) 2.3.2
channels(user): "home-manager-19.09, nixos-unstable-20.03pre209840.a65f338ccbd, nixpkgs-20.03pre209992.a7a85a015c4"
nixpkgs: /home/user/.nix-defexpr/channels/nixpkgs

Same goes for my NixOS system.
/cc @dguibert

solved by #78602


Bump maven-surefire-plugin 3.0.0-M7

Why are the changes needed?

For better interaction with JUnit 5 dependencies
How was this patch tested?

[ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

[ ] Add screenshots for manual tests if appropriate

[ ] Run test locally before make a pull request

Codecov Report

Merging #2898 (7b4c321) into master (e3bf604) will decrease coverage by 0.00%.
The diff coverage is n/a.

:exclamation: Current head 7b4c321 differs from pull request most recent head 485e792. Consider uploading reports for the commit 485e792 to get more accurate results

@@             Coverage Diff              @@
##             master    #2898      +/-   ##
============================================
- Coverage     64.25%   64.24%   -0.01%
  Complexity      215      215
============================================
  Files           517      517
  Lines         22850    22850
  Branches       2964     2964
============================================
- Hits          14683    14681       -2
- Misses         6774     6775       +1
- Partials       1393     1394       +1

Impacted Files
Coverage Δ

...ache/kyuubi/operation/KyuubiOperationManager.scala
80.82% <0.00%> (-1.37%)
:arrow_down:

.../org/apache/kyuubi/operation/KyuubiOperation.scala
68.00% <0.00%> (-1.34%)
:arrow_down:

...n/scala/org/apache/kyuubi/engine/ProcBuilder.scala
84.37% <0.00%> (-0.63%)
:arrow_down:

...in/scala/org/apache/kyuubi/config/KyuubiConf.scala
97.18% <0.00%> (+0.09%)
:arrow_up:

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 e3bf604...485e792. Read the comment docs.


Compile the pattern matching of large structures more efficiently

Currently all patterns always compiled as Split which means that large objects such as the prelude push a lot of values to the stack when they are pattern matched. Often though only a few of them are actually used. For these cases the compiler should produce code which only takes the necessary arguments from the object.

Implemented in b6e1c20dddd8e13a0aa1cddf8c891b9d6c64f4d4. The heuristic could probably be better but this should work well for now.


[SMALLFIX] update the java source file

I have already removed the blank line before the parameters in DataByteBuffer.java

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/19583/
Test PASSed.

LGTM


Native launchers are not published for macOS on aarch64

In the release assets, the .zip file currently contains many sbtn native launchers, but the one for macOS and aarch64 is missing.
Would it be possible to build such native launchers, and to add them to the release assets?
We would also need to support that combination ("$OSTYPE" == "darwin" and "$arch" == "aarch64") here:
https://github.com/sbt/sbt/blob/3f1ff987905620718825b55d28cdcb65f094e7ce/sbt#L175-L194

it's a universal binary for macOS.

Ah, interesting, do you mean that the file bin/sbtn-x86_64-apple-darwin also works on aarch64?

I just tried the one from version 1.8.2 installed via SDKMAN:
sbtn is executable (but I have Rosetta installed) and the following indicates it is a x86 binary:
❯ file .sdkman/candidates/sbt/1.8.2/bin/sbtn-x86_64-apple-darwin
.sdkman/candidates/sbt/1.8.2/bin/sbtn-x86_64-apple-darwin: Mach-O 64-bit executable x86_64

Ah, interesting, do you mean that the file bin/sbtn-x86_64-apple-darwin also works on aarch64?

No, I got confused with sbt/ipcsocket (https://github.com/sbt/ipcsocket/blob/ee3439303e592846168a3b18f23358d3c6665949/build.sbt#L36-L46), which we do try to create a universal binary, but sbtn is currently built using GraalVM native-image, and it's Intel-only for macOS.

I downloaded the artifact and execute it.
And I can confirm that this is an ARM64 executable 👍

This should be fixed by sbt/sbtn-dist#4, which will be available in version 1.9.0 (you can already try it in 1.9.0-M1)


Bugfix: there is only one record for all reference histories

👌

Will do a pod release later this day


Sui-tool download-db-snapshot is failing multiple times with panicked at /home/runner/work/sui/sui/crates/sui-tool/src/lib.rs:1104:35:

Steps to Reproduce Issue
Spin up a new testnet server, and when trying to download db snapshot via below command
sui-tool download-db-snapshot --latest \
    --network testnet  --path /mnt/sui/snapshot_db \
    --num-parallel-downloads 25 \
    --no-sign-request

It fails after running for around 20 minutes with
thread 'main' panicked at /home/runner/work/sui/sui/crates/sui-tool/src/lib.rs:1104:35:
Task failed: Generic s3 error: error decoding response body
Caused by:
  0: error decoding response body
  1: error reading a body from connection
  2: stream error received: unexpected internal error encountered

Expected Result
It should download the testnet snapshot with the latest epoch (541 in above case) without any failures
System Information

OS: ubuntu 22.04
16 vCPU 128 GB

Workaround
I observed there are GCS/s3 buckets hosted also for snapshots, kindly mention the cost estimation if I were to download snapshot from there, or please mention the bucket type (standara/archive) or the region so I can calculate on my own. What would be the data size also, please help

Hey @johnjmartin, do you have any idea what might be going on here?

Thanks @stefan-mysten for replying, @johnjmartin any suggestions would be highly appreciated

what sui-tool version are you running? sui-tool -V

Its the binary from latest testnet 1.37.1 release, same as sui-node that is running.

I believe tweaking --num-parallel-downloads should get it to working, checking

Reducing the --num-parallel-downloads  can help in environments with less compute resources or less network bandwidth

I observed there are GCS/s3 buckets hosted also for snapshots as mentioned here https://docs.sui.io/guides/operator/snapshots#bucket-names, kindly mention the cost estimation if I were to download snapshot from there, or please mention the bucket type (standara/archive) or the region for the gcs bucket so I can calculate on my own. What would be the data size also, is it more than 1 TB for testnet?

The data size for testnet snapshots is ~2TB at the moment. The cost will depend on if you're transferring data within google cloud or outside of it, see https://cloud.google.com/storage/docs/requester-pays for details

Hi @johnjmartin thanks for the command,
gsutil -u "my-project-id" du -sh gs://mysten-testnet-snapshots/epoch_549 (picking epoch_549
but the issue is still the same, I get 403 error, while my user has owner role assigned, so are there any steps required to get access to the gcs bucket

Thank you very much @johnjmartin

The files to be dowloaded are very less, for testnet the number was in millions, any reason for that?

cloudflare snapshots are currently smaller than gcs snapshots as we prune the cloudflare ones more aggressively

Ah, okay, so we need historical  data and also indexing, would that be possible with the snapshot?  We want to run the node in non-prune mode (will prune transactional data, but after downloading snpashot)

I wouldn't expect much space to be reclaimed via compaction after you restore from a DB snapshot. the snapshots that are uploaded have already been compacted. I expect the disk usage will mostly increase


Anomaly Detection Using Bedrock Agents

Issue #, if available:
Description of changes:
Added sample to showcase anomaly detection using Bedrock Agents.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Please re do this PR following the new layout and the process for creating the required file . We request all files to have a presence on the Cookbook / Recipes Website which is fronting this github repo now. Some of the mandatory sections of the notebook need to include

Overview.
What are we demonstrating .
What use case .
What will you learn.
What is the architectural pattern and why we select this. With a diagram
What are the libraries to install
What model did we choose and why this model
Every cell needs to have a markup


how to provide the three arguments in train_fcn32s.py

Hi,
So sorry to bother you again!    Could you tell me what's the meaning of the three arguments, out, resume and no-deconv? How to provide these three arguments to make it run properly?
Thanks and Best Regards,

You can just run ./train_fcn32s.py --out logs/fcs32s_sbd
2017年5月11日(木) 7:37 zheshiyige<EMAIL_ADDRESS>
Hi,
So sorry to bother you again! Could you tell me what's the meaning of the
three arguments, out, resume and no-deconv? How to provide these three
arguments to make it run properly?
Thanks and Best Regards,
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/wkentaro/pytorch-fcn/issues/28, or mute the thread
https://github.com/notifications/unsubscribe-auth/AEHFkztK3WzgJMfPq5pacmTisUK0J9Svks5r4jwYgaJpZM4NXTmo
.

--
和田 健太郎 / Kentaro Wada
http://wkentaro.com

--out is log output destination directory,
--resume is in order to resume the training from checkpoint,
--no-deconv is to use FCN model without deconvolution layer.


Added default GameTimingMethod to match the Portal 1 rules

link to rules?

Click rules : http://www.speedrun.com/Portal


Nomac Branch now works with Gradle in NetBeans and Eclipse

Scott,
You should be able to merge this version and have it build right away with Gradle from the command line. In Eclipse, I had to manually add a linked source to the Java Build Path as shown below. The path is 'vzome-desktop/platform/shared/src/main/java'. The name is 'shared'. After that, it would build in Eclipse. Using Eclipse on the Mac, I expect that you'll also have to add a second linked source. The path would be 'vzome-desktop/platform/mac/src/main/java'. The name would be 'mac'.
It builds fine as-is in NetBeans and from the command line using 'Gradle clean build'. See the changes to README.md for more info on building and running it.

Look at the commit comments, especially the last one for today (2/22/2015) for details on what I changed.
Note that the visual diff for OrbitSetController.java looks like everything has changed. I didn't notice that until after the commit. I think it's a white space issue or maybe line endings. I'm not sure, but the only code change is at line 113 where it now says "if ( (lastOrbit == null) || (! allOrbits .contains( lastOrbit ) ))".
We should probably discuss all of this some more before you merge it. Specifically, we need to discuss the mac sub-project and the jar file that it generates. Feel free to give me a call or text and we'll do another Hangout whenever you've reviewed it and are ready to chat. I should be available just about any time you want this week.
David

David, you should get notified that I've committed the merge.  I made no changes to your commits, and it builds and (mostly) runs on the Mac.  It does throw an exception about missing MacAdapter, but I'm OK with that.  I thought it more important to get you merged in, even if only to the nomac branch.
Note that nomac won't work with vzome-core master, since the API changed.  I don't think there's a tag for the commit that does work, but I was successful with "git checkout 95f1835" in vzome-core.
I think I'll go ahead and attempt to merge nomac back into master, although we said we wouldn't yet.


K8s/Kubectl connectivity/auth

Closes #6255
What's Changed

[x] Added external_integration FK to Job Queue model
[x] Added validation logic to enforce that only Kubernetes job queues can have external integrations assigned
[ ] Added code to call K8S jobs via external integration linked to the job queue

Screenshots

TODO

[x] Explanation of Change(s)
[x] Added change log fragment(s) (for more information see the documentation)
[x] Attached Screenshots, Payload Example
[x] Unit, Integration Tests
[ ] Documentation Updates (when adding/changing features)
[ ] Example App Updates (when adding/changing features)
[ ] Outline Remaining Work, Constraints from Design

Context is an optional CharField on JobQueue, and we can have a settings variable for the kube-config file path.


Small contributions

load script in README
.gitattributes file to be recognized as Smalltalk implementation

Thanks, @astares


upgrade from 0.13.12 to 1.1.6 - No Scala version specified or detected

[x] I've read the CONTRIBUTING guidelines

steps
Here is the project repository which is currently on sbt 1.1.6:
https://github.com/spark-jobserver/spark-jobserver
I have still not been able to find the exact steps to reproduce this. On my machine it works but on my Jenkins it seems to fail always.
problem
During upgrade from 0.13.12 to 1.1.6, I am getting
Error during sbt execution: No Scala version specified or detected

I have tried to remove .ivy/.sbtboot/.boot/target folders but it also didn't work. I am now out of ideas.
Here is my command
sbt -Dsbt.repository.config=proxy_repositories -Dsbt.override.build.repos=true '-Dhttp.nonProxyHosts=localhost|<IP_ADDRESS>|*.my.corp|*.my1.corp' -no-share clean job-server-extras/assembly

My proxy repositories file looks like
[repositories]
  local
  my-ivy-proxy-releases: http://my.corp:8081/nexus/content/groups/build.releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
  my-maven-proxy-releases: http://my.corp:8081/nexus/content/groups/build.releases/
  other-a: http://my.corp:8081/nexus/content/groups/build.releases/, [organisation]/[module]/[revision]/[type]s/[artifact].[ext]
  other-b: http://my.corp:8081/nexus/content/groups/build.releases/, [organisation]/[module]/[revision]/[type]s/[artifact](-[classifier]).[ext]
  other-c: http://my.corp:8081/nexus/content/groups/build.releases/, [organisation]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact].[ext]

expectation
The project should get built.
notes
sbt version: 1.1.6

See #1117.
One of the things you might try is update your sbt script from sbt-extras to the official one from https://www.scala-sbt.org/download.html if that's being used.

I am closing this due to inactivity, but if this is still relevant let us know with more details (reproduction steps etc).


OCR0018: Load transcription work for HTR team (1)

Description:
HTR team is a Team of annotators from nepal who are working on transcribing pechas and their work is finished so need to provide them with new images to trancribe.
Completion Criteria:
CSV uploaded to the Database and informing annotators
Reference:

bdrc image object key s3://image-processing.bdrc.io/scam_cropped/PT/Manual2-20240411/

Implementation plan:

Subtask:

[x] Download the images from bdrc s3
[x] upload the images to monlam s3
[x] create csv and import to database

worked on NOFO for another project for three days so didn't finish on time with the estimation as per estimated in ahead

Downloaded and cropped the line images for the Correction-3 and created csv for it. Correction batch 3 ready for the HTR team. Refactored the scripts to make it more easy to use for the next batch. https://github.com/OpenPecha/image-to-text/tree/main/src/HTR

Update the script to change the line name from using pagename_coordinates.jpg  to the line image provided in the xml file pagename_linename.jpg and creating the next batch correction-8 which has 18000 pages.


Support Python 3.11 and 3.12

Hello @MatthieuDartiailh, thanks for starting on this issue. I've already updated pegen in my fork unipeg to Python 3.10 and Python 3.11, maybe you can use parts of it here as well.
Generally, my advise is to drop support for Python < 3.11, and stay up-to-date.
Also, I would like to turn pegen (or unipeg) into a drop-in replacement of the peg provided with CPython. I know this isn't the right place for discussions, but we should start to discuss about it and bring this project further.

All ast parsing tests are now passing on Python 3.12 and I added a bunch from CPython for tryexcept group, type params and f-strings.
I still need to fix syntax error related tests in a manner compatible both with 3.12 and earlier version.
I would welcome an early review.

Tests for Python 3.11 and 3.12 specific syntax error messages are missing but everything else is good and those tests could be added in a follow up PR.
A review would be welcome.

I added some extra tests. I believe this is ready to go from my end.

Thanks for checking the PR @phorward

@MatthieuDartiailh Thanks for working on this! I'll probably try to review this tomorrow.

@lysnikolaou friendly ping


feat: Add a Nix Flake with a devShell, NixOS module, and home-manager module to configure Shell Plugins

Overview

The flake.nix added does two things:

Adds a devShell so Nix users can just run nix develop or use direnv to have a Go environment set up to build the plugins.
Add a NixOS module and a home-manager module (users will choose one or the other) to configure 1Password Shell Plugins via Nix; this only works if you're using Nix to manage your shell config, but if you're deep into Nix enough to be using Flakes, you probably are managing your shell config with Nix, too.

With this flake as an input to your own flake, you would then be able to configure 1Password Shell Plugins with the following:
programs._1password-shell-plugins = {
  enable = true;
  plugins = with pkgs; [ gh awscli2 cachix ];
};

Type of change

[ ] Created a new plugin
[ ] Improved an existing plugin
[ ] Fixed a bug in an existing plugin
[x] Improved contributor utilities or experience

Related Issue(s)

Resolves: #
Relates: #

How To Test

Create a home-manager Nix flake that manages your shell configuration:
flake.nix
{
  description = "My dotfiles managed with nix as a flake";
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
    home-manager = {
      url = "github:nix-community/home-manager";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    # This should be the path to the repo checkout locally, with this branch checked out
    _1password-shell-plugins.url = "git+file:///$HOME/git/shell-plugins";
  };

  outputs = inputs@{ self, nixpkgs, home-manager, ... }: {
    homeConfigurations = {
      "mac" = home-manager.lib.homeManagerConfiguration {
        extraSpecialArgs = { inherit inputs; };
        # or pkgs = nixpkgs.legacyPackages.x86_64-linux; if you're on linux
        pkgs = nixpkgs.legacyPackages.aarch64-darwin;
        modules = [
          inputs._1password-shell-plugins.hmModules.default
          ./home.nix
        ];
      };
    };
  };
}

./home.nix
{ inputs, config, pkgs, lib, ... }: {
  home = {
    username = "<your-os-username>";
    # or `/home/<your-linux-username>` if you're on Linux
    homeDirectory = "/Users/<your-os-username>";
    # this should be set up by home-manager automatically for you, leave it alone
    stateVersion = "22.11";
  };
  programs._1password-shell-plugins = {
    enable = true;
     # whatever shell plugins you want to use that have packages
     # available in nixpkgs
    plugins = with pkgs; [ gh ];
  };
  programs.fish = {
    enable = true;
    # the rest of your shell config goes here
  };
}

Run home-manager switch --flake ~/path/to/flake-directory/.#mac to apply the configuration.
Changelog

Add a flake.nix that provides a devShell for contributors as well as a NixOS and home-manager module that can be used to configure 1Password Shell Plugins via Nix.

Hmm, I wasn't able to test according to the How to test section. @mrjones2014 could you help me walk through the use case as someone who just installed nix on their Mac OS machine?

Hmm, I wasn't able to test according to the How to test section. @mrjones2014 could you help me walk through the use case as someone who just installed nix on their Mac OS machine?

Sure thing, I'll send you a message on slack 👍

Just pushed a cool commit that validates the plugins option and gives an error message if the user specified a package that isn't a supported Shell Plugin

Functionally tested as a new Nix user on Mac:

dev-mode (after I uninstalled go):

bash-3.2$ nix develop
(nix:Shell-with-Go-toolchain-env) Andis-MacBook-Pro:shell-plugins andititu$go version
go version go1.21.7 darwin/arm64
(nix:Shell-with-Go-toolchain-env) Andis-MacBook-Pro:shell-plugins andititu$ which go
/nix/store/b9wbj651hcyfm63kkcxykpjcqc0qqwp5-go-1.21.7/bin/go

Question: could we only have go and goals installed at the level of the shell-plugin directory, and then when I cd out of this directory, I don't have go installed anymore? From my understanding this is how nix is working right?

Prod mode:

After running home-manager switch --flake .#mac
bash-3.2$ which aws
/Users/andititu/.nix-profile/bin/aws
bash-3.2$ aws organizations list-accounts
###############################################################################
# WARNING: 'aws' is not from the official registry.                           #
# Only proceed if you are the developer of 'aws'.                             #
# Otherwise, delete the file at /Users/andititu/.config/op/plugins/local/aws. #
###############################################################################
[ERROR] 2024/03/07 18:40:58 RequestDelegatedSession: cannot connect to 1Password app, make sure it is running

Question: could we only have go and goals installed at the level of the shell-plugin directory, and then when I cd out of this directory, I don't have go installed anymore? From my understanding this is how nix is working right?

Yep, that's the idea of Nix. I don't have any toolchains installed globally (like go, gopls, rustc, cargo, or anything like that); they get installed to temporary environments when I cd into a project directory that has a flake.nix (because I have nix-direnv enabled, it automatically uses the flake.nix when I cd).
If you use direnv or nix-direnv (more optimized with extra caching for Nix stuff), you can create a .envrc file with contents just use flake, and then the Nix shell will be automatically set up when you cd into the directory, and exited when you cd out of the directory. Alternatively you can just manually run nix develop which will start a subshell set up by the flake, only this way you will have to manually exit the shell to get back to your main shell with the flake stuff gone. I have a component in my terminal prompt that tells me when I'm in a nix-shell subshell, and whether its because of a direnv .envrc:

Just popping in to say thanks for adding this!
After a little bit of figuring out (first time adding a module to Home Manager), it works great! Plugins are much easier to manage, and keep track of now!


[Governance] VDF Proofs Performance: Longer Proofs

A planned change from 9 months ago, to go into v6.
Taking advantage of this to refactor finally the mess of the env variables.

[x] change the difficulty
[x] refactor the globals

[x]  changes the NODE_ENV env variable to MODE_0L. Had conflicts with node.js tools
[x]  creates a lazy static in ChainId.rs to get an Enum for Prod. Test, etc. Consolidates the names in one place.
[x]  Deprecates the TEST env variable, in favor of MODE_0L = ci
[x]   refactors throughout where env::var was being called directly

@hemulin
See the documentation on the changes here:
https://github.com/0LNetworkCommunity/libra/pull/1244/files#diff-481b9a423c5c13d92d030101f07d6e441472e83ab17c43d3e87474887a1da382
Most of the parameter changes are here (though there were cleanups in many places).
https://github.com/0LNetworkCommunity/libra/pull/1244/files#diff-47f305b080df4649dbdac372af00675e8dbf2774e7df48cbe3a96cd80575244f

Closing due to changes included #1261


Added C# implementation

Thanks a lot!
Is this missing
using System.Text;
using System.Linq;

somehow? Or are these not required here? Will merge after resolving this.

Indeed - overlooked that porting it out of my test app. Added a new commit with them included.

Thanks! Merged in https://github.com/delight-im/ShortURL/commit/378a5120c86d506468a170ad3bd6bdd55061c948


Add white background colour to Radio and Checkbox components

Add white background colour to the Radio and Checkbox components as per https://github.com/daniel-ac-martin/NotGovUK/issues/554.

I think this is fine as a simple workaround, but what we really need to do is understand why the discrepancy is present, and also whether we are out of sync with govuk-frontend which is really upstream from this library.
There are some occasions where we might choose to diverge from govuk-frontend, but we should do so very sparingly and know exactly why we are doing it.

@daniel-ac-martin NOTGOVUK is actually sticking to the GOVUK styles, and interestingly I am not sure why the source UI components don't apply the same white background to radios and checkboxes as it does to text inputs, text areas and selects. I've found a stale Github thread (https://github.com/alphagov/govuk-frontend/issues/1625), it seems from the 2019 conversations that there might be a reason why these controls have transparent background, but the then-current team wasn't sure what that reason was. Hopefully we get some clarification on this.


Error: Expected Map {} to equal {} on boilerplate test

I have generated a container using npm run generate, when I run the reducer.test.js I get:
Error: Expected Map {} to equal {}

The test is:
import expect from 'expect';
import settingsReducer from '../reducer';

describe('settingsReducer', () => {
  it('returns the initial state', () => {
    expect(settingsReducer(undefined, {})).toEqual({});
  });
});

Seems like we can't just compare maps and objects in this way.
Am I the only one with this problem?
~$ node -v
v6.2.0

Ah yeah, it should be expect(settingsReducer(undefined, {})).toEqual(fromJS({}));!

@mxstbr i checked the code and it's already using fromJS({})
https://github.com/mxstbr/react-boilerplate/blob/50fe5c66d49bfe80696d94a17e8c704e928f034e/internals/generators/container/reducer.test.js.hbs#L7


fix response close for getRowsUpdated(#1538)

The reason for the modification is com.clickhouse.r2dbc.ClickHouseResult Object Construction Parameters com.clickhouse.client.ClickHouseResponse did not call the close() method after use and did not release the database connection. Therefore, multiple calls can cause the database connection pool to have no available connections, resulting in timeout issues
Please refer to the problem description and code reproduction method for details #1538


question: use it with flask to a demo,but the requested url not found.

run.py

from flask import Flask

from jsonrpc.backend.flask import api

app = Flask(__name__)
app.register_blueprint(api.as_blueprint())
app.add_url_rule('/', 'api', api.as_view())

@api.dispatcher.add_method
def my_method(*args, **kwargs):
    return args, kwargs

if __name__ == '__main__':
    app.run(debug=True)

then i use postman to  post the url : localhost:5000/api/
data:{
"jsonrpc": "2.0",
"id": "1111",
"method": "my_method",
"params": ["1"]
}

response  404

help~

@Scofieldsu should not it be a call to localhost:5000 instead? Seems you create api endpoint within / path: app.add_url_rule('/', 'api', api.as_view())

@pavlov99 thank u!! i  misunderstand add_url_rule('/', 'api', api.as_view())~~i want to use this json-rpc to do  webapi test page  . similar to flask-jsonrpc 's  /api/browse, but it depends on flask.

Seems solution has been found. Nothing to fix.


Fixed counter saturation

Fixed counter saturation by applying it after all increments have been combined.
This allows this solution to run as expected:
https://cdn.discordapp.com/attachments/993498489717805076/1025702577263869962/the-commissary-20.solution
See discussion at https://discord.com/channels/278707932089155584/993498489717805076/1025702577553289286

Looks good, thanks!


New version: Tencent.WeChat version <IP_ADDRESS>

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

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

Microsoft Reviewers: Open in CodeFlow

Automatic Validation ended with:

Actual hash:   862161DF803A9CF62E6E02CF6BB31E63751AF60182F42A6F286DDAE5796F25A9
Expected hash: ca490a41e9a7c0f753dbb0555c91b8a498b49569455908be081476bc8aa4bc9d

(Automated response - build 615.)


"Gohor" is listed in the drop-down menu

Description:
"Gohor" is listed in the drop-down menu alongside its corresponding county and commune, according to the law
Precondition:
The website is up an running.

Step 1
Type "Gohor" in the search bar.

Expected results
The location is listed in the drop-down menu as "Comuna Gohor, GALAȚI".