Find the best faster

In the code, we have the follow problem:

Now we are solving this problem, evaluating one by one, but this complexity is $O(n O(t))$. In this issue we want to propose an algorithm with lower complexity.

n = n0
i = -1 # trash

while (i not in {0, 1}):
    i = -1 # trash

    while (not t(n)):
        i = i + 1
        n = n0 + 2^i
    n0 = n0 + 2^(i-1)

return n

The following algorithm solves the above problem with complexity $O(2 * \log(n^*))$:
n = n0
i = -1 # trash

while (not t(n)):
    i = i + 1  # i = 0,1,...
    n = n0 + 2^i
n0 = n0 + 2^(i-1)

while (n > n0 - 1):
    if (t(int((n - n0)/2)):
        n0 = int((n - n0)/2)
    else:
        n = int((n - n0)/2)

return n

Closed in ff57d31.


Update Snapcraft.io version

Godot version:
3.1
OS/device including version:
Ubuntu/KDE Neon and every platform that supports Snaps
Issue description:
When searching for "Godot" on https://snapcraft.io/store this version pops up: https://snapcraft.io/godot-3-1 which looks like a test version and is old.
But if you open https://snapcraft.io/godot directly the proper version pops up, which is also outdated, but not listed when you search for it

The version I've been using is 3.1
snap info godot-3-1
name:      godot-3-1
summary:   Godot 3.1
publisher: Godot Engine (godot-developers✓)
license:   unset
description: |
  blah
commands:
  - godot-3-1
snap-id:      YWFs9BQUFOGAzG3bubS7vB34RReoxOpE
tracking:     edge
refresh-date: 20 days ago, at 21:51 GMT
channels:
  stable:    –
  candidate: –
  beta:      –
  edge:      3.1.1 2019-06-13 (3) 22MB -
installed:   3.1.1            (3) 22MB -

I too would have loved the snap version was just a single "godot" and the snap would just update as with other snaps. Snaps have so many benefits and I would prefer being able to install via snap.

Alan Pope is currently maintaining the snap, and he unlisted it because of some bad bugs:

I marked it unlisted because I’m debugging an issue which causes it to crash on some systems. I wanted to just hold back the number of new installs while debugging.

Source: https://forum.snapcraft.io/t/godot-engine-call-for-testing/4997/15

I think issue this can be closed.

@ksthiele I think you can file issues for the snap here: https://github.com/popey/godotsnap

Hi,
I am a student at the IUT of Nantes (France) and I created a New Snap of Godot Engine in my free time, because I thought it was a shame to have stopped putting Godot Engine on Snapcraft. And why not one day participate in open source projects.
For example to participate in publishing Godot Engine on Snapcraft.
Here is the repository of the Snap I created:

Godot Engine : https://github.com/anrouxel/godot-engine-snapcraft
Godot Engine C# : https://github.com/anrouxel/godot-engine-mono-snapcraft
Best Regards

Hi, I am a student at the IUT of Nantes (France) and I created a New Snap of Godot Engine in my free time, because I thought it was a shame to have stopped putting Godot Engine on Snapcraft. And why not one day participate in open source projects. For example to participate in publishing Godot Engine on Snapcraft. Here is the repository of the Snap I created:
* Godot Engine : https://github.com/anrouxel/godot-engine-snapcraft

* Godot Engine C# : https://github.com/anrouxel/godot-engine-mono-snapcraft
  Best Regards
  @patwork
  @hpvb

Seems to be fixed then unofficially https://snapcraft.io/gd-godot-engine-snapcraft

@LinuxUserGD
Hi,
I created the Snap for Godot Engine (https://snapcraft.io/gd-godot-engine-snapcraft).
Best Regards

This situation with lots of duplicate unofficial snaps is really bad.
What's the impediment to the verified account of Godot Engine in snapcraft distributing official updated snaps? The one that was made officially is old and doesn't even show in search results (not even in this linked page), and none of the available versions is updated as regularly as flatpak (yes, I know that one is technically unofficial too, but at least it's properly packaged and maintained by Flathub, without multiple duplicates).
Ideally there should be official snaps for:
godot3, godot3-mono
godot4, godot4-dotnet
Can you please start support these officially with regular updates? And/or transfer ownership of whichever ones are currently working and properly sandboxed. This way there would be a default/official way of installing snap Godot reliably (e.g. installation paths in a default expected location facilitating tool interoperability, regular updates, no confusion or mistrust, preferably no need for --classic escaping the sandbox, guarantee that it's compiled from the official sources without having to manually check that, etc).

Can you please start supporting these officially with regular updates?

It seems to me that the main problem stems from access to snapcraft, you first need to recover the login passwords for the godot-developers account and I do not know if anyone from the godot team is interested.

Hi @patwork,
Your idea of doing what Blender does with Snapcraft is an interesting one. Because it would allow you to make a single Snapcraft package. Just choose the version you want. It would be good to keep the latest/stable branches so that you always have the latest version on that branch. And why not group the mono and normal versions in a single package. What I mean is that when you download Godot from Snapcraft, you get the mono version straight away. Because the mono version includes the normal version. To create new branches and have the classic mode on Snapcraft. You need to be validated as the Godot account. What would be nice is for the Snapcraft file to be included in the Godot project repository for greater flexibility. Because I rely on git to get the latest tags from the repository.
Blender Snapcraft version :
latest/stable 4.0.1 17 November 2023
latest/edge 4.1.0 Today
4.0/stable 4.0.1 17 November 2023
3.6lts/stable 3.6.5 20 October 2023
3.5/stable 3.5.1 25 April 2023
3.4/stable 3.4.1 20 December 2022
3.3lts/stable 3.3.12 20 October 2023
3.2/stable 3.2.2 3 August 2022
3.1/stable 3.1.2 1 April 2022
3.0/stable 3.0.1 26 January 2022
2.93lts/stable 2.93.18 23 May 2023
2.92/stable 2.92.0 25 February 2021
2.91/stable 2.91.2 20 January 2021
2.90/stable 2.90.1 24 November 2020
2.83lts/stable 2.83.20 20 April 2022
2.82/stable 2.82a 25 June 2020
2.81/stable 2.81a 25 June 2020
2.8/stable 2.83.10 9 December 2020
Best regards.
anrouxel

You should really talk to the snapcraft team. They've assisted many other projects with adding their projects on snap. They even did many of the most used packages themselves.

Note that we already have trouble making the Flatpak fully functional, which led to it being marked as unofficial. I expect the Snap will encounter similar issues unless it goes through classic confinment, which I would strongly recommend.

I expect the Snap will encounter similar issues unless it goes through classic confinment, which I would strongly recommend for maintenance reasons.

I think using classic confinement is the best way forward when packaging software as complex as Godot, that needs libs, different resources and so on. I think to remember it's the same way VS Code is packaged (and probably other IDE and development platforms), for instance 😊

using classic confinement

Well, personally I always want to avoid installing any unsandboxed software - I usually only make exceptions when it's both open-source and reproducible builds. With those guarantees, I wouldn't mind it.
So it's better if Godot can be confined, but if not, then I guess --classic is valid, because there is already a confined version through Flatpak for whoever prefers that (I feel like Flatpak is stricter than Snap with its way of doing sandboxing anyway). The only snap I use is indeed an unconfined IDE (but it's the open-source VSCodium instead of VSCode) precisely to avoid issues with sandboxing (e.g. when using the integrated terminal; running arbitrary tasks and extensions).
Still, I don't feel like Godot should be unconfined like a general-purpose IDE if it's possible to avoid that. After all, sandboxing is one important feature of snaps - without that, the only benefit would be the auto-update system.
The linked Flathub issue is exclusive to the way Flatpak does sandboxing (you need special commands like flatpak-spawn or /run/host/... to run things outside the sandbox, unlike snap I think); and it's not difficult to resolve (I already proposed a solution).
There's also the case where if you know Godot can work inside a snap sandbox, then you can guarantee the same goes for games one may want to build and distribute in the snap store in a sandbox.


Panicked at 'called Result::unwrap() on an Err value: UnknownType'

Bug Report
This happens in try_get_core_ty_by_name() located in file cairo-lang-semantic/src/corelib.rs
UnknownType Error looks a bit confusing, which probably refers to Cairo types. And usually just needs to have cairo-libs added to the project. This might not be fixed in favour of #1595 solution but just putting it here to have some searchability...
Cairo version:
18b55fe243fd52f475cb62b1bf20a1a25e9cbfff
Current behavior:
Rather unhelpful error 'Panicked at 'called Result::unwrap() on an Err value: UnknownType'.
Expected behavior:
Maybe something helpful indicating corelib is missing?
Steps to reproduce:
Add cairo as dependency and try to something that involves compiling Cairo.
Related code:
Other information:

This will probably not be relevant soon enough, like you said. For now, I'm closing this.


Touchpad, xbox controllers, and probably more input devices does not work

Something weird is happening when server uses touchpad or controllers.
Touchpad seams to not work at all, and controllers have messed up events (buttons do not work at all, axis work but messed up).
I'll try to debug this in spare time, but for now I want to raise awareness that those are not compatible, as I spend 2 days debugging drivers for controllers.

+1 I looked into it a bit and it looks like rkvm atm only handles EV_REL and EV_KEY, but not EV_ABS (which is what Touchpads seem to use). I honestly don't have a good way of handling these either, since it doesn't look like EV_ABS can be piped to the pointer device type created (or maybe they can and I'm just missing something).

Closing as this is fixed already -- current master supports abs events.


updatehub: Bump to 20d6199 revision

This includes following changes:
50a2011 agent backend: change probe route to return if is in busy state
3cfb31a client: set request timeout

@gustavosbarreto thanks, I also cherry-picked this to the other branches. We should be good now :+1:


fix(cli): Sort output of helm env

Before this change, running 'helm env' multiple times would generate
a different order for the output each time.  This is because Go
purposely loops over hash maps in a random order.
This commit sorts the environment variables by alphabetical order before
generating the output.
Signed-off-by: Marc Khouzam<EMAIL_ADDRESS>

This one is a simple one to make the order of the output of helm env deterministic.


feat: adds dns policy

Reason for Change:

Adds DNS Policy support in helm chart

Requirements

[x] squashed commits
[ ] included documentation
[ ] added unit tests and e2e tests (if applicable).

Issue Fixed:

Does this change contain code from or inspired by another project?

[ ] Yes
[x] No

If "Yes," did you notify that project's maintainers and provide attribution?
Special Notes for Reviewers:

/azp run pr-e2e-azure

Codecov Report

Merging #1462 (fee4dc8) into master (2fc9b5f) will decrease coverage by 5.09%.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1462      +/-   ##
==========================================
- Coverage   61.78%   56.69%   -5.09%
==========================================
  Files          11       17       +6
  Lines        1078     1300     +222
==========================================
+ Hits          666      737      +71
- Misses        386      537     +151
  Partials       26       26


Add helpers to the Library

This helpers would help integrate users code with the binding library, also adding easier ways to communicate Nim data types.

To simplify setting flags
func toFlag[T: enum | Ordinal](flags: varargs[T]): T =
  for flag in flags:
    result = (ord(result) or ord(flag)).T


Add !store command back

Closes #77

@all-contributors please add @mholloway24 for code and ideas


[3pt]  - Add comments counter - Student B

Even if the API gives you the number of comments you will create a specific function to calculate it.
Make sure that the correct number is displayed on the Comments pop up.
Respect the following rules:

Each counter should be implemented as a separate module.
A counter function should look for specific DOM elements (e.g. for the comments counter it should look for comments) and make the counting based on what is actually displayed on the page.
A counter function should cover all the edge cases you can think about.

https://github.com/oluwatobi-fasasi/Recipe-Journal/pull/28


Farming Station will not plant Rotarycraft Canola Anymore

Issue Description:
Farming Station will not plant Rotarycraft canola anymore, it tills the land, and tosses the seeds on the ground. In the previous version of Enderio and Endercore, this worked fine. I had also updated RC to v11b, I am not sure if this is Reika's issue or yours, or if this function has just been removed.
What happens:
RC canola seeds tossed on ground instead of planted
What you expected to happen:
seeds to be planted, grown, and harvested
Steps to reproduce:

Place Farming Station
2.Add power, hoe, and canola seeds
3.It will till the land, and then toss seeds. They eventually de-spawn.
...

Affected Versions (Do not use "latest"):

EnderIO: 1.7.10-<IP_ADDRESS>4_beta
EnderCore 1.7.10-<IP_ADDRESS>_beta.jar
Minecraft: 1.7.10
Forge:1492

Your most recent log file where the issue was present:
This issue does not cause a crash.
[pastebin/gist/etc link here]

Can the seeds be planted on that farmland?
The Farming Station has no code to create item entities for seeds, only code to create blocks. So I suspect it creates a block that directly "itemifies" itself, just like e.g. torches do when you remove the block they are attached to.

RotaryCraft changed the seeds in V11b and the requirements for planting. I think you now need a lot of light in order to plant them.

I'll do some testing later and see.

Nevermind, they just need water now. Dug some trenches, poured in some water, and it all works fine now.


Add AWS X-Ray into Envoy as one of tracing providers

AWS X-Ray Integration with Envoy proxy
Description:
Hello Envoy contributors, I am from AWS X-Ray team and we want to make contributions to Envoy so that customer can use X-Ray as one tracing option. Before sending out PRs, we have one design regarding sampling strategy want to discuss with the community and get some feedback.
I found out Envoy provides its own sampling strategy such as random sampling and customer can just configure the % of requests that will be traced, which is different from our current existing sampling strategy. How our sampling strategy works is that customer can provide rules for sampling request through our console. By customizing sampling rules, customers can control the amount of data that they want to record, and modify sampling behavior on the fly without modifying or redeploying their code. For example, customer can specify which URL path will be sampled, or which HTTP method(GET or POST) request contains will be sampled. Each rule will be applied to a certain group of requests. Basically, providing more options for sampling requests and customer won't need to modify their code if they want to change the sampling behavior.
The implementation of centralized sampling is that inside envoy proxy, there will be two long running processes which fetch sampling rules and statistics and update local rules which is stored in cache. The cache has high read frequencies since each sampling decision requires the xray tracer(inside Envoy) to read from the cache, which uses granular locking mechanisms to ensure the performance impact is minimal. Each rule has it's own lock to isolate the process of retrieving a rule from the cache and actually modifying/using the rule. The maximum sampling rules customer were allowed to provide is 25. If somehow centralized sampling is not working, tracer will try to use the default 5% sampling rate to all incoming request.
Above is the current design we have to sampling strategy. One concern we have is that does Envoy community accept we providing another sampling strategy inside envoy? If the community accepts the PR, how we should treat the sampling strategy that envoy original have? Should we mute that one? The other concern is about the performance impact for envoy if onboard with our centralized sampling. Currently, our centralized sampling is used by customer's web application where performance impact can be small. However, Envoy is a proxy which is lightweight, after adding centralized sampling, the performance impact can be big. Any suggestions here for us about which specific performance test item we should emphasis on?
I am new to Envoy and some understanding of Envoy might be wrong, feel free to point out and have discussion with me. Thank you very much.
[Relevant Links:]
AWS X-Ray
AWS X-Ray Centralized Sampling

Hey there, we noticed that envoy did 4 releases last year. Could we know what is the release plan for this year since we really want to add our X-Ray tracer into the release so that customer can start using it. Another thing is we are going to add AWS C++ SDK as one of dependency regarding implementing the our sampling strategy. Does your community could accept that we bring AWS SDK dependency into this project? Thank you.

Hello @mattklein123 , sorry for pinging you regarding my question since it has been a week no one reply for it. Our basic question is when is the next release for Envoy so that X-Ray tracer can be part of it? Thank you.

@luluzhao we do releases approximately every 3 months. You can take a look at our last release to see roughly where we are at.

Hello @mattklein123, does the community has a exact date for the upcoming March release? Could you share with my the date? Another question would be is there any possible to get virtual host name inside header map?

There is no specific date that we set, by the end of March for sure.

Another question would be is there any possible to get virtual host name inside header map?

I'm not sure what this means. Please open a separate issue for any feature requests.

I'm guessing that as the product page for AppMesh mentions end-to-end visibility including AWS X-Ray, AWS must have a custom filter or build to enable this functionality.

Yes, we add AWS X-Ray support for App Mesh GA release and it based one Envoy version 1.9.0.  I updated the PR today which is developed against upstream. Sorry for the delay of updating the PR.

@mattklein123 @cgilmour , sorry for disconnecting a little while. Could you help me to reopen this issue. I finished all the implementation and going to submit PRs accordingly. Thank you.
BTW, I asked a question about 21 days ago on one of my closed PR and it hasn't get any replied yet. Could you help me on that? Here is the link for reference.

This is merged, we can track further work is individual issues/PRs.


latest version

greetings, docs mention 0.15.3 but it seems like pypi lastest is 0.15.2

Forgot to push the new tag 🤦. Fixed, thanks!


Add user.getTopAlbums, user.getTopArtists, user.getTopTags, user.getTopTracks

plus updating README, general linting.

I appreciate the PR, but this is beyond the scope of this package. I don't want to support user methods, as they're not very useful to me. If you want user methods, I encourage you to make your own fork.


Use redirect or popin login depending on how app is launched (standalone or not)

Using firebaseUI can solve PWA redirection problem: see Sign in users across devices section in https://firebase.google.com/docs/projects/pwa

https://www.trivago.fr/ does not have this problem

We should redirect user to the browser page when he wants to login from the standalone App on IOS

I found the solution here  ❤

This is really cool : https://github.com/GoogleChromeLabs/pwacompat


Formatting and minor suggestions

Mostly adding back ticks (`) around program names, some commas and minor clarifications.

I'd love to learn how to rebase like you suggest but this is something I have never done. I'm worried I will mess the history. I read through https://git-scm.com/book/en/v2/Git-Branching-Rebasing but I'm not 100% sure how to do it. Should I go
git checkout develop
git rebase master
# potentially followed by
git checkout master
git merge develop

or
git rebase develop
# potentially followed by
git checkout develop
git merge master

I've tried both locally but really I'm not sure what is the proper way.


Cannot connect to the extensions marketplace

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version:
OS Version:

Steps to Reproduce:
i updated my vscode to version 1.59.0 and cannot connect to the extension

I have the same issue...

Same issue.
Deleting "AppData\Roaming\Code" doesn't help.
Version: 1.57.1 (system setup)
Commit: 507ce72a4466fbb27b715c3722558bb15afa9f48
Date: 2021-06-17T13:28:07.755Z
Electron: 12.0.7
Chrome: 89.0.4389.128
Node.js: 14.16.0
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.19043

Seems to be proxy related.

Seems to be proxy related.

No proxy here. But still having this problem from time to time.
It's quite erratic, tho!
Sometimes even just closing and opening the sidebar will resolve this issue. It is just so random.


Fails to start after upgrade to vscode Version: 1.86.0

Couldn't start debug session. The debuggee process exited with code 1

Other reason.


spring-cloud-gateway-mvc need add a transparent header configuration list

version
spring cloud Greenwich.RELEASE
When I was using it, I found that some necessary header information needs to be manually transmitted. for example Content-Type.
@PostMapping("/api/**")
public ResponseEntity<Object> proxy(ProxyExchange<Object> proxy,
                         @RequestHeader("Content-Type") String contentType) {
	// ...
	return proxy.uri("url")
		.header("Content-Type", contentType)
		.post();
}

I think can add a configuration of the header list to ProxyProperties.

Without this feature, at least the documentation should be updated to clearly reflect the fact that headers from the incoming request are NOT automatically copied to the outgoing request.
JavaDoc of the ProxyEchange currenty states

By default the incoming request body and headers are sent intact to the downstream

service
and on #headers(org.springframework.http.HttpHeaders)

Additional headers, or overrides of the incoming ones, to be used in the downstream call.

To me this suggests that headers will be added automatically.


How to Handle Android 'Don't Keep Activities'? if enabled.

When my Android phone's Developer Option -> Don't keep activities is disabled this plugin works exaclty as said, but when I enable 'Don't keep activities' It stops tracking as I leave App.
How should I handle this situation?
Thanks

@DeepikaKochar This is something I haven't tested out. I'm guessing your running into an issue because useActivityDetection is true in your config and your disabling it in dev options. If you set useActivityDetection to false i'm assuming it'll start working like normal. Thanks for bringing to my attention.


Travis container build

@stepancheg just running travis for the moment

@stepancheg this is working - it takes total build time from ~18m to 6m

I don't understand, how disabling sudo speeds up build?

http://docs.travis-ci.com/user/workers/container-based-infrastructure/

Pushed.

sweet


Add core status IDs to Convinient Effects

Is your feature request related to a problem? Please describe.
When using Convinient Effects , special actions that might occur when those effects are added don't trigger with some effects. Since as of v11 effects can have multiple statuses, add the core status id to CEs.
For example instead of having just "Convinient Effects: Prone" as the effect statuses, have that AND "prone"

Added in next version. Let me know if I missed any


pip install testinfra

I'd like to be able to run TestInfra tests inside of your Docker test shim to test roles but that would require TestInfra to be installed in this image.
I've done some local tests and this approach is so much faster than Molecule (20 seconds to molecule verify vs 5 seconds by running testinfra directly). I also have some tricks up my sleeve to turn that 5 seconds to half a second for a lot of tests.
If you agree with this, please make the change to all of your base Docker images!

@nickjj - I'm a bit mixed on this:

These images are meant to have ansible... and maybe some related dependencies like python; but they're not used explicitly/only for testing Ansible roles (I use them in a lot of different scenarios).
If I make the change here I would want to change it across all my 8+ OS images, so I would need to do it across the board (not a big deal though).
In the spirit of keeping things as trim and Docker-y as possible, I'd rather have a ubuntu1804-ansible-testing image maybe instead, which would build on top of this image and have molecule, testinfra, ansible-lint, etc. (any testing-related stuff) on top of it.

But then again, that would be two sets of projects to maintain.
Another option: each of these images could have a latest tag, and a testing tag, or something like that. That might be way easier to maintain, since it could be one project per OS, with multiple tags managed on Docker Hub via branches on GitHub.

@nickjj - Molecule will be more and more important, especially for role testing since it will be adopted as an official Ansible project, so I'd definitely want it in there :)

Yep, but I don't think I'll be using it. It's waaaaaay too slow on a Windows / WSL / Docker box. Luckily your base Docker image, test shim and about 50 lines of Bash was enough to put together a proof of concept CLI that is up to 40x faster than Molecule for testing with infratest.
Anyways, happy to see you're opening to doing something like the testing tags.
Do you want me to send a PR for the ubuntu 18/16 images?

I got a working build on Docker Hub: https://hub.docker.com/r/geerlingguy/docker-ubuntu1804-ansible/tags/
Can you see if that branch works for you?

@nickjj ^^ forgot to add a mention :)

Sounds good! Closing this issue, will clone it over into the other repos.


systemd: enable BPF_FRAMEWORK by default (withLibBPF=true)

Description of changes
So far, we have been building Systemd without BPF_FRAMEWORK. As a
result, some Systemd features like RestrictNetworkInterfaces= cannot
work. To make things worse, Systemd doesn't even complain when using a
feature which requires +BPF_FRAMEWORK; yet, the option has no effect:
# systemctl --version | grep -o "\-BPF_FRAMEWORK"
-BPF_FRAMEWORK
# systemd-run -t -p RestrictNetworkInterfaces="lo" ping -c 1 <IP_ADDRESS>

This commit enables BPF_FRAMEWORK by default. This is in line with
other distros (e.g., Fedora). Also note that BPF does not support stack
protector: https://lkml.org/lkml/2020/2/21/1000. To that end, I added a
small CFLAGS patch to the BPF building to keep using stack protector
as a default.
I also added an appropriate NixOS test.

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, 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
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.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
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

Note: at some point this will need adjustments for #187978


Nag for deprecation of org.gradle.util.CollectionUtils.stringize(Collection)

Fixes https://github.com/gradle/gradle/issues/21903

I've triggered the following builds for you. Click here to see all build failures.

PullRequestFeedback build

@bot-gradle test this

I've triggered the following builds for you. Click here to see all build failures.

PullRequestFeedback build

@bot-gradle test this

I've triggered the following builds for you. Click here to see all build failures.

PullRequestFeedback build

@bot-gradle merge

The merge queue build has started. Click here to see all failures if any.

The merge queue build has started. Click here to see all failures if any.


Ensure universal stoichiometric matrix can run in cobra

Found CobraPy compliant Universal BIGG Model here. This provides access to full Universal model with 15638 Reactions and 28301 metabolites. Able to generate necessary stoichiometric matrix and optimization through CobraPy.

Small Update: To use Gurobi with this universal model, you must first rename or remove the "St" bigg reaction. This just so happens to be a keyword in the LP files that gurobi constructs from the model and it will not process the file. This problem isn't present when using other solvers (it may happen using CPLEX), so just be aware.


Markdown syntax one line below a html tag not converted

[link](about:blank)

With html enables, link in this example won't be converted to a clickable link, but both
[link](about:blank)

and

[link](about:blank)

will work.
It seems that the first example is marked as a "html_block" as a whole.
demo's here

That's all according to spec, not a bug http://spec.commonmark.org/0.28/#html-blocks


CONNECTORS-1611 MySQL version is updated to 5.1.47.

MySQL version is updated to 5.1.47.

This pull request was merged in ManifoldCF 2.14:
https://github.com/apache/manifoldcf/blob/trunk/CHANGES.txt#L220


Refactor "msg-parent-not-found" to config.ParentNotFoundID

Any reason for  ParentNotFoundID instead of  ParentIDNotFound ?

I didn't like ID and Not smushing together to IDN 🙂
Imo both works:

ParentNotFoundID, "this is the ID when the parent is not found"
ParentIDNotFound, "this is [the value] when the parent ID is not found"

I can change it if you prefer ParentIDNotFound.

Imo both works:

ParentNotFoundID, "this is the ID when the parent is not found"

I don't like this because you expect it to be an ID and it's not really an ID :)

ParentIDNotFound, "this is [the value] when the parent ID is not found"

I can change it if you prefer ParentIDNotFound.

Yes please :)


Silence Detection: how would you go about it?

Any ideas?

Two Options:

Do it yourself: Calculate from the pcm data the decibel or something else that indicates that there is silence. <--- If you do this, I would be interested in your solution

Use an existing library, e.g. pocketsphinx, snowboy or maybe alsa/pulseaudio/sox, they can probably provide you a silence detection. Also you could take a look to this module, it brings some silence detection with it: https://www.npmjs.com/package/mic

I will close this one, it won't be part of this module.


Update API documention to generate links appropriate to version 2.0.0

Updates documentation
moves return_format to a path parameter, not a query parameter in REST pattern
adds shorthand names for several products recognized by URL patterns
fix bug in retrieving historical averages
adds hydroviewer product which returns records, stats, and return periods all in 1 json for easier fetch/plot
improves analytics to use shorthand names, include return format

Also rounds all discharge data to 2 decimals rather than the 10-15 it currently is

@msouff
This pull request has updated docs, various bug fixes, and reimplements logging in the api container. Its ready to be merged. When you're ready to deploy it, i'd like to be there with you to go through the deploy steps and record it so i can practice.

removes AvailableRegions
AvailableDates does not require a reachid/region anymore
ForecastWarnings does not require a region and instead has a column indicating which region the warning applies to


Extended error codes

How can I get the extended error code for an SQLite error? The SqliteException.SqliteErrorCode only returns the primary error code (fairly useless) not the extended error code. Note there is a function (sqlite3_extended_result_codes) to put SQLite into a mode where the extended error code is returned, however I don't see how to apply this to an EF connection.

Duplicate of aspnet/Microsoft.Data.Sqlite#404. In version 2.1.x, use SqliteException.SqliteExtendedErrorCode.
In version 2.0.x, you can drop down to SQLitePCL.raw:
catch (SqliteException ex)
{
    var extendedErrorCode = SQLitePCL.raw.sqlite3_extended_errcode(connection.Handle);
}

Thanks!


Browser permissions

Hi everyone!
I faced with such problem - I've got SPA which needs access to microphone. Before any actions, user have to give permissions for browser to use mic, so the prompt window appears. Is it possible to emulate permissions whatever?

Closing since you failed to read the issue template


HTTP POST

how do i post data as json in angularjs

This is a question for Angular, not specifically this library. As I haven't used Angular in a few years (haven't done much in the frontend at all), I can't actually answer this question for you. Hopefully you can find help in one of the Angular support channels, or StackOverflow!


Merge dropwizard-java8 addon into mainline

dropwizard-java8 used to provide support for Java 8 classes like Optional<T> and the Java Date and Time API (JSR-310) for Dropwizard. Given that the baseline for Dropwizard is now Java 8, those additions can be maintained in the mainline repository.
The only backward-incompatible change is in the io.dropwizard.auth.Authenticator interface which is now using java.util.Optional instead of the equivalent class from Google Guava.
Closes #962

This looks good to me, thanks for all the work in integrating this!  Any other feedback @dropwizard/committers ?

@joschi, what do you think about creating dropwziard-jdbi-guava-optional module  with Guava's
Optional support instead of mixing it with Java8's Optional? These classes basically exclude each
other, and I don't think many folks use them together in the same codebase. It would be great to let
users choose what Optional support to use. I think we should encourage users to switch to Java8's
Optional, because it is shipped with JRE, is a more flexible type and will probably supress Guava's
Optional in future. Folks, who for some reasons don't want to switch, will have to enable an
additional module and use a custom DBIFactory. It could be implemented somehting like that:
public class GuavaOptionalDBIFactory extends DBIFactory {

    @Override
    public DBI build(Environment environment, PooledDataSourceFactory configuration,
                     ManagedDataSource dataSource, String name) {
        final DBI dbi = super.build(environment, configuration, dataSource, name);
        dbi.registerArgumentFactory(new GuavaOptionalArgumentFactory(
                                    configuration.getDriverClass()));
        dbi.registerContainerFactory(new GuavaOptionalContainerFactory());

        final Optional<TimeZone> timeZone = databaseTimeZone();
        dbi.registerArgumentFactory(new GuavaOptionalJodaTimeArgumentFactory(timeZone));
        dbi.registerArgumentFactory(new GuavaOptionalLocalDateArgumentFactory());
        dbi.registerArgumentFactory(new GuavaOptionalLocalDateTimeArgumentFactory());
        dbi.registerArgumentFactory(new GuavaOptionalInstantArgumentFactory(timeZone));
        dbi.registerArgumentFactory(new GuavaOptionalOffsetTimeArgumentFactory(timeZone));
        dbi.registerArgumentFactory(new GuavaOptionalZonedTimeArgumentFactory(timeZone));

        return dbi;
    }
}

What do you think?

I am also a bit of worried about mixing Joda-Time and JSR 310 support. Unfortunately, I don't see a way how could we modularize the support of these libraries. Removing Joda-Time support in favour of JSR310 is also not an option. I believe, for the time being, we have to force users to import Joda-Time, even if they don't use it.

@arteam In my opinion Dropwizard should "just work" with Google Guava and Joda-Time additionally to the APIs provided by JDK 8 and higher (JSR-310 and Optional).
Swapping out the support for those libraries (which are by the way being used throughout Dropwizard itself) doesn't gain us anything in my opinion and will just put the burden to add additional dependencies on our users.
Once we got rid of Google Guava or Joda-Time from the Dropwizard core components, we can move support for them from dropwizard-jdbi into separate modules, but for now I'd like to keep it.
Backward compatibility with older Dropwizard versions isn't exactly required for Dropwizard 1.0.0, but it's a nice feature. :wink:

Ok, fair enough. The rest changes look good to me. Thanks for your hard work!

@jplock  @arteam Thanks for reviewing!


App threw an error during load ReferenceError: navigator is not defined

When I run npm start I receive the following error message
App threw an error during load
ReferenceError: navigator is not defined
at /Users/hampton/Desktop/dev/app/color-wander/node_modules/fastclick/lib/fastclick.js:181:29
at Object. (/Users/hampton/Desktop/dev/app/color-wander/node_modules/fastclick/lib/fastclick.js:841:2)

When are you recieving this error? Do you have all the dependcies installed? See issue 8 https://github.com/mattdesl/color-wander/issues/8


Added neptune support across the codebase

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


Modernize unit file

AFAIK, "systemctl edit" is supported everywhere (including on RHEL-7) and is simpler to use (this also run a "systemctl daemon-reload")

Were there any releases of major distros using systemd that don't have this feature? People tend to run memc on old stuff :(

@dormando old major distro don't have systemd ;)
The oldest I know is RHEL-7 with systemd 219 which support this feature.

relased, thanks!


Add virtual IP address for API server in vSphere example

Set up keepalived on control plane nodes in vSphere Terraform example to
establish virtual IP address for Kubernetes API. API endpoint in
Terraform output is set to first control plane node if no IP address is
specified. The existing Gobetween load-balancer is removed.

What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

Replace GoBetween load-balancer in vSphere Terraform example by keepalived

/assign @kron4eg

/assign @kron4eg


Cleanup working copy files

This ensures cloning and building with VS 2015 (or older versions) doesn't leave the git workspace in a dirty state.

Use standard GitHub .gitignore for VS projects
Remove .user file since these shouldn't be checked into source control, they're per user
Since the code is in C#, changed the project file to a C# project file.

Hey, this is awesome, thanks!


"Kopia UI" to "KopiaUI"

Just removing the extra space
Related: https://github.com/kopia/kopia/pull/2140

Thanks @basldfalksjdf , is there a precedent for this change/a slack discussion about this I can catch up on?

No, we just call it KopiaUI everywhere and I think the name is indeed KopiaUI (without a space), except it shows Kopia UI (with a space) in the title bar of the actual UI. I propose this change just to be consistent.
Looking through the PRs, I think maybe the name started off as Kopia UI and then changed to KopiaUI at some point, but the change was not reflected in some places.


add edit this page functionality to learn lessons

overview
we had someone open a support ticket asking how they could submit spelling corrections to: https://www.pulumi.com/learn/building-with-pulumi/testing/
i believe Laura had a version with the right panel and edit this page functionality but i think it was dropped before launch. we should add it back in so folks can submit edits.

Closing as we've no further work planned for these layouts.


Pre-Compiled Installation Link Broken

The installation link to the pre-compiled binary file is broken:
https://aka.ms/csdmtool -> https://cosmosdbtools.blob.core.windows.net/datamigrationtool/2019.09.23-1.8.3/dt1.8.3.zip
The remote name could not be resolved: 'cosmosdbtools.blob.core.windows.net'

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

ID: 9edf1df2-588e-01ff-6d1c-234b8e51d550
Version Independent ID: 27873c08-b6cc-a52f-f277-ff9818a5e4d2
Content: Tutorial: Database migration tool for Azure Cosmos DB
Content Source: articles/cosmos-db/import-data.md
Service: cosmos-db
Sub-service: cosmosdb-sql
GitHub Login: @deborahc
Microsoft Alias: dech

@ajhanson Thanks for the feedback !  I have assigned this issue to content author to investigate and update the document as appropriate.

@ajhanson The binary was removed for some reason. We are figuring out the options to republish a new pre-compiled binary to a new location. In the meantime, you can locally compile it. I removed the doc link until we have a new location.

#please-close


Hacktoberfest Adding 3 free Indonesian e-books

What does this PR do?
Add resource(s) | Remove resource(s) | Add info | Improve repo
For resources
Description
Why is this valuable (or not)?
How do we know it's really free?
For book lists, is it a book? For course lists, is it a course? etc.
Checklist:

[✓ ] Read our contributing guidelines
[✓ ] Search for duplicates.
[✓ ] Include author(s) and platform where appropriate.
[✓ ] Put lists in alphabetical order, correct spacing.
[✓ ] Add needed indications (PDF, access notes, under construction)

Followup

Check the output of Travis-CI for linter errors!

Please read CONTRIBUTING.md guidelines! (please revise formatting)
It's usually  not helpful to add a category for a single resource. Try to find another category. Perhaps make a PHP frameworks category.

Be sure to check the output of Travis-CI for linter errors. Alphabetical order and spacing are the most common problems.


Allow user to edit some attributes of pictures that they uploaded?

This is probably a far- future thing, but I wonder if it would be a good idea to allow users to edit attributes of uploaded pictures within the app itself rather than having to enter the browser? We probably don't need to offer all types of edits, we should mostly just want to edit categories, description etc. Should probably also be restricted to images uploaded by yourself to prevent vandalism.
Not sure how easy or difficult this will be

Sounds similar to #161 :-)

Oh yup, sorry!


Add eups, use matplotlib-base

Adds eups to the recipe. Uses matplotlib-base to avoid pyqt on linux.

Checklist

[X] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[X] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[X] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

yeah I'm not sure how to best handle versioning - I thought about starting at 0.0.1 even, but I figure we can bump the patch level until we're unsatisfied with that for some reason (I definitely don't wan to do a 1.0 until we have an idea on what to do)

@conda-forge-admin, please rerender


feat: add different wallets for connection

Added different wallets from RainbowKit for wallet connection

tested phantom and xdefi wallet and metamask WC


[BUG] ConnectionResetError while processing big dataset

Describe the problem
I am trying to remove near-duplicates from big dataset (~91K images).
After few hours of processing I got ConnectionResetError error.
Code to reproduce issue
Code I use:
def gen_approx_duplicate_groups_view(dataset, index):
    """This function is used to generate the approximate duplicate groups view.
    From: https://github.com/jacobmarks/image-deduplication-plugin/blob/main/approx_dups.py
    """

    dup_ids = index.duplicates_view().values("id")
    view = dataset.select(dup_ids)

    for rep_id, dups in index.neighbors_map.items():
        ids = [rep_id] + [d[0] for d in dups]
        subview = view.select(ids)
        for sample in subview:
            sample["approx_dup_group_id"] = rep_id
            sample.save()

    approx_dup_groups_view = view.group_by("approx_dup_group_id")
    dataset.save_view("approx_dup_groups_view", approx_dup_groups_view, overwrite=True)

def remove_approx_duplicates(dataset: fo.Dataset, fraction: float) -> fo.Dataset:
    similarity = fob.compute_similarity(dataset)
    similarity.find_duplicates(fraction=fraction)

    logging.debug("Preparing duplicates view")
    approx_dup_view = similarity.duplicates_view()
    dataset.save_view("approx_dup_view", approx_dup_view, overwrite=True)
    approx_dup_view = dataset.load_saved_view("approx_dup_view")
    logging.debug("Grouping duplicates view")
    gen_approx_duplicate_groups_view(dataset, similarity)

    approx_duplicates_list = []
    logging.debug("Adding near-duplicates to list.")
    for group_id in approx_dup_view.distinct("approx_dup_group_id"):
        group_view = approx_dup_view.match(F("approx_dup_group_id") == group_id)
        group_view = group_view.sort_by("filepath")
        approx_duplicates_list.append(group_view.values("id")[1:])
    approx_duplicates_list = list(set([item for sublist in approx_duplicates_list for item in sublist]))
    logging.info(f"Near-duplicates found. Removing {len(approx_duplicates_list)} of samples...")
    dataset.delete_samples(approx_duplicates_list)
    logging.info("Done")
    return dataset

System information

OS Platform and Distribution: Linux Ubuntu 22.04
Python version : 3.10.12
FiftyOne version : FiftyOne v0.23.7, Voxel51, Inc.
FiftyOne installed from : pip

Other info/logs
{"t":{"$date":"2024-04-23T05:21:33.443Z"},"s":"I",  "c":"CONTROL",  "id":20697,   "ctx":"-","msg":"Renamed existing log file","attr":{"oldLogPath":"/home/marianna.parzych/.fiftyone/var/lib/mongo/log/mong
o.log","newLogPath":"/home/marianna.parzych/.fiftyone/var/lib/mongo/log/mongo.log.2024-04-23T05-21-33"}}
Subprocess ['/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/venv/lib/python3.10/site-packages/fiftyone/db/bin/mongod', '--dbpath', '/home/marianna.parzych/.fiftyone/var/lib
/mongo', '--logpath', '/home/marianna.parzych/.fiftyone/var/lib/mongo/log/mongo.log', '--port', '0', '--nounixsocket'] exited with error -9:
Traceback (most recent call last):
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/venv/lib/python3.10/site-packages/pymongo/pool.py", line 968, in command
    return command(
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/venv/lib/python3.10/site-packages/pymongo/network.py", line 182, in command
    reply = receive_message(conn, request_id)
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/venv/lib/python3.10/site-packages/pymongo/network.py", line 257, in receive_message
    length, _, response_to, op_code = _UNPACK_HEADER(_receive_data_on_socket(conn, 16, deadline))
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/venv/lib/python3.10/site-packages/pymongo/network.py", line 340, in _receive_data_on_socket
    chunk_length = conn.conn.recv_into(mv[bytes_read:])
ConnectionResetError: [Errno 104] Connection reset by peer

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/unstructured_sg/scripts/sample_from_SEC_data_name-based_clusters.py", line 309, in <module>
    model_name: str,
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/venv/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/venv/lib/python3.10/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/venv/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/venv/lib/python3.10/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/unstructured_sg/scripts/sample_from_SEC_data_name-based_clusters.py", line 294, in main
    type=list[str],
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/unstructured_sg/scripts/sample_from_SEC_data_name-based_clusters.py", line 153, in deduplicate_image_dataset
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/unstructured_sg/scripts/sample_from_SEC_data_name-based_clusters.py", line 133, in remove_approx_duplicates
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/venv/lib/python3.10/site-packages/fiftyone/core/collections.py", line 6514, in sort_by
    return self._add_view_stage(
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/venv/lib/python3.10/site-packages/fiftyone/core/view.py", line 1660, in _add_view_stage
    stage.validate(self)
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/venv/lib/python3.10/site-packages/fiftyone/core/stages.py", line 6970, in validate
    sample_collection.create_index(index_spec)
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/venv/lib/python3.10/site-packages/fiftyone/core/collections.py", line 8970, in create_index
    index_info = self.get_index_information()
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/venv/lib/python3.10/site-packages/fiftyone/core/collections.py", line 8903, in get_index_information
    sample_info = self._dataset._sample_collection.index_information()
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/venv/lib/python3.10/site-packages/pymongo/collection.py", line 2347, in index_information
File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/unstructured_sg/scripts/sample_from_SEC_data_name-based_clusters.py", line 294, in main
    type=list[str],
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/unstructured_sg/scripts/sample_from_SEC_data_name-based_clusters.py", line 153, in deduplicate_image_dataset
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/unstructured_sg/scripts/sample_from_SEC_data_name-based_clusters.py", line 133, in remove_approx_duplicates
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/venv/lib/python3.10/site-packages/fiftyone/core/collections.py", line 6514, in sort_by
    return self._add_view_stage(
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/venv/lib/python3.10/site-packages/fiftyone/core/view.py", line 1660, in _add_view_stage
    stage.validate(self)
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/venv/lib/python3.10/site-packages/fiftyone/core/stages.py", line 6970, in validate
    sample_collection.create_index(index_spec)
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/venv/lib/python3.10/site-packages/fiftyone/core/collections.py", line 8970, in create_index
    index_info = self.get_index_information()
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/venv/lib/python3.10/site-packages/fiftyone/core/collections.py", line 8903, in get_index_information
    sample_info = self._dataset._sample_collection.index_information()
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/venv/lib/python3.10/site-packages/pymongo/collection.py", line 2347, in index_information
    cursor = self.list_indexes(session=session, comment=comment)
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/venv/lib/python3.10/site-packages/pymongo/collection.py", line 2310, in list_indexes
    return self.__database.client._retryable_read(_cmd, read_pref, s)
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/venv/lib/python3.10/site-packages/pymongo/mongo_client.py", line 1492, in _retryable_read
    return self._retry_internal(
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/venv/lib/python3.10/site-packages/pymongo/_csot.py", line 107, in csot_wrapper
    return func(self, *args, **kwargs)
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/venv/lib/python3.10/site-packages/pymongo/mongo_client.py", line 1462, in _retry_internal
    ).run()
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/venv/lib/python3.10/site-packages/pymongo/mongo_client.py", line 2320, in run
    self._check_last_error()
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/venv/lib/python3.10/site-packages/pymongo/mongo_client.py", line 2392, in _check_last_error
    raise self._last_error
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/venv/lib/python3.10/site-packages/pymongo/mongo_client.py", line 2315, in run
    return self._read() if self._is_read else self._write()
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/venv/lib/python3.10/site-packages/pymongo/mongo_client.py", line 2445, in _read
    return self._func(self._session, self._server, conn, read_pref)  # type: ignore
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/venv/lib/python3.10/site-packages/pymongo/collection.py", line 2289, in _cmd
    cursor = self._command(conn, cmd, read_preference, codec_options, session=session)[
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/venv/lib/python3.10/site-packages/pymongo/collection.py", line 308, in _command
    return conn.command(
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/venv/lib/python3.10/site-packages/pymongo/helpers.py", line 322, in inner
    return func(*args, **kwargs)
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/venv/lib/python3.10/site-packages/pymongo/pool.py", line 996, in command
    self._raise_connection_failure(error)
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/venv/lib/python3.10/site-packages/pymongo/pool.py", line 1171, in _raise_connection_failure
    _raise_connection_failure(self.address, error, timeout_details=details)
  File "/mnt/ml-team/homes/marianna.parzych/Unstructured/od-modelling-super-gradients/venv/lib/python3.10/site-packages/pymongo/pool.py", line 411, in _raise_connection_failure
    raise AutoReconnect(msg) from error
pymongo.errors.AutoReconnect: localhost:37343: [Errno 104] Connection reset by peer (configured timeouts: connectTimeoutMS: 20000.0ms)
Skipping automatic non-persistent dataset cleanup. This action requires read access of the 'admin' database
[2024-04-23 12:54:42] WARNING - database.py - Skipping automatic non-persistent dataset cleanup. This action requires read access of the 'admin' database

Willingness to contribute
The FiftyOne Community encourages bug fix contributions. Would you or another
member of your organization be willing to contribute a fix for this bug to the
FiftyOne codebase?

[ ] Yes. I can contribute a fix for this bug independently
[ ] Yes. I would be willing to contribute a fix for this bug with guidance
from the FiftyOne community
[x] No. I cannot contribute a bug fix at this time

Hi @mariannaparzych it looks like the connection was lost while calling self._dataset._sample_collection.index_information(), which is just a direct pymongo command to retrieve index information from the database.
It seems like your database became unreachable, possibly due to an internet connection issue or heavy load issue on the database?

I'm having the exact same issue. Is there any workaround to this?
My setup is as follows:
Using VSCode+Jupyter to access a SSH remote (I'm working on Windows, remote is Linux). Dataset has about 30k images with up to 700k annotations (bounding boxes + labels).
Error happens on a dataset.delete_labels(ids=dup_ids) call, where dup_ids is the result from a call to foui.find_duplicates.


lifecycles & intro/outro transitions demos

hey @ryansolid
i was wondering if you could add some idiomatic demos for something like this:
https://domvm.github.io/domvm/demos/playground/#lifecycle-hooks
https://domvm.github.io/domvm/demos/playground/#scoreboard

That's good idea. My CSS has always been a bit weaker on my demos so far so I can look at polishing that up a bit. I've also been considering adding transitions via the compiler like Svelte but I'm not there just yet. Something like the Scoreboard makes sense and I can look at doing something like that. Control flows have afterRender hooks which is how I used to solve this in Knockout.
Lifecycle functions aren't so explicit. They are more like React Hooks (thank god for them otherwise I'd be arguing with people for hours about their necessity). There is no lifecycle around rendering specifically just 2 hooks at your disposal:
onCleanup - runs before next invocation to cleanup, or when parent context is destroyed
afterEffects - runs after synchronous graph updates (current implementation is a bit simple deferring to next microtask)
These can be used inside any other effect/memo to schedule work to be done. To achieve the same similar to React useEffect and useLayoutEffect. So everything is very fine grained there is no absolute did_____.  I need think of an example that does better at showing this off.

Ok I believe I've done the Scoreboard now.
https://codesandbox.io/s/solid-scoreboard-sjpje
I still not sure how to show off lifecycles since I don't really have any. If anything the Scoreboard example has all the lifecycle Solid has. I was trying to think of a scenario with nested cleanup but there is nothing fancy about it. I think what I really need to do is write a basic tutorial on the fundamentals of fine grained reactive programming. It takes a little bit to think this way, which I take for granted since after nearly a decade it is the way I think about solving any problem.

Ok I believe I've done the Scoreboard now.

nice. though i think the lifecycle-hooks is actually the more interesting case here since it has to retain dom elements that have been removed from state to ensure the outro transitions complete. also discerning a reorder/reinsert from a delete/recreate in new position.
while my demo does not show this, the actions following the removal do not rely on the outro finishing, it's just timed that way so as not to be too seizure-inducing. you can add transition: 3500ms; to .view1 .removed {} to observe that it still works with variable timings.

Ok yeah that is interesting. I currently have nothing of that nature. I'd even be interested to see such an example in React since I don't think they have anything like that either. What you'd do with React is where I'd first start. Although I know Svelte also handles those sort of cases pretty well.
Looking at domvm in the example you handle that on a per node basis which is interesting. Native DOM nodes having lifecycle hooks could be powerful. This actually came up in #36. At a minimum connected, disconnected, reconnected seems viable, although I suppose willDisconnect is the more interesting case. The first 3 could be handled in a generic way independent of the Solid and work with any library. But knowing the intent to remove could only be handled in Solid's Control flow (conditional/list reconcilers). Ironically this would have been a lot easier when I did the updates in 2 passes but since I optimized to a single pass this actually is can't simply be a single hook to compare node lists before and after and asynchronously resolve completion. Mind you that optimization actually was almost unnoticeable from execution time perspective so perhaps if this is important enough I could go that way.
Honestly I'm not sure. I know some Virtual DOM libraries have done a lot of research in this area, and it's definitely an area that I think fine grained computations could do some really powerful stuff. I'm just unsure where it fits in the priorities. For now I think to be pragmatic, I'm going on the side of what can React do. If anyone wants to look into this sort of thing I'm all ears.

Ironically this would have been a lot easier when I did the updates in 2 passes but since I optimized to a single pass this actually is can't simply be a single hook to compare node lists before and after and asynchronously resolve completion.

in domvm this isn't actually done in 2 passes either. the idea is that physical dom removal can be deferred/queued by any willRemove or willUnmount hook that returns a Promise. any followup redraws can see if an encountered dom node is in the removal queue and skip over it.

@leeoniya Thanks for that. As you can probably tell from my thinking out loud I haven't really thought about it a ton. And that comment alone probably saved me some time digging. A simple check pre-removal and a flag on the indicating DOM nodes would work. The trickiest part would actually be identifying the situation where shortcut disposal is involved, since any parent.textContent ="" would have to switch the the less optimized method. You'd have to know down the whole tree before making that decision. It could come down to owning context. Any descendant with a registered transition handler would signify non-optimized execution path. I think Svelte handles things similarly.

Any descendant with a registered transition handler would signify non-optimized execution path.

yep, domvm bubbles this info up in the initial vtree normalization pass [1]
[1] https://github.com/domvm/domvm/blob/master/src/view/preProc.js#L35-L37

Ok if you will, one more question. How do you handle nested contexts? Like if you had a conditional in a list. And the transitioning element is in that conditional.  Parent removes the whole list/panel etc, do you delay doing so until the one item fades out? If there are nested removal effects do they cascade upwards? Consecutive/parallel? I honestly have never used a library that had something like this so I'm unclear on expected behavior.

yes. since the presence of will* removal hooks taints all ancestors, they will awaits resolution of any descendant removal promises. admittedly, the bookkeeping is imperfect because it's expensive, so the de-optimized removal flags may remain on ancestors if a leaf component is explicitly redrawn in isolation.
notably, did* removal hooks will not de-optimize since they have no way of preventing removal, so usually it's in those that user-defined cleanup/teardown should be done.
honestly, i don't do too much transition/animation-heavy UIs in concert with dom removals, so there's sure to be more than a few gaps. e.g. i don't collect all promises from descendants for Promise.all() [1], and the ancestors are tainted with a boolean rather than a counter which should get decremented as the offending descendants are removed. i'm not terribly motivated to spend time on it though :)
[1] https://github.com/domvm/domvm/blob/master/src/view/dom.js#L30

Thank you. That gives me a better idea of the complexity. Svelte has transition feature like this and constantly has issues reported on it. I'm unsure how much to invest but this has been infinitely helpful.

I've made a handful of demos playing around with different stuff but all outside of the core library. Grabbing from various demos I found around the web:
DOM Lifecycles
createFlipState
createAnimation
Since these aren't core I'm not sure where they belong but they are at least in this thread for reference.
There is a lot you can do with the few Hooks Solid has. It's going to take a lot more effort to get the more complicated scenarios though,

Just started playing with Solid and I had the same desire for mount/unmount animations.
I took inspiration from Framer Motion and ultimately just followed this quite closely. I may be naive but is this suitable? (Using anime.js as my pref but inline animation from link above works too)
import { render } from "solid-js/dom";
import { createState } from "solid-js";
import Fade from "./Fade";

export default () => {
  const [ visibility, setVisibility ] = createState({ show: false });

  return (

      <button onClick={() => setVisibility("show", show => !show)}>
        {visibility.show ? "hide" : "show"}
      </button>
      <Fade visibility={visibility}>

 HELLO

      </Fade>

  );
};

render(() => (
  <App />
), document.body);

Fade.js
import { createEffect, createState } from "solid-js";
import anime from "animejs";

export default function Fade({ visibility, children }) {
  const state = visibility.show;
  const [ shouldRender, setRender ] = createState(state);

  createEffect(() => {
    if(visibility.show) {
      setRender("show", show => true);
      anime({
        targets: children,
        easing: "linear",
        opacity: [0, 1]
      });
    } else {
      anime({
        targets: children,
        easing: "linear",
        opacity: [1, 0],
        complete: () => {
          setRender("show", show => false);
        }
      });
    }
  }, [visibility.show]);

  return (
    <Show when={shouldRender.show}>
      {visibility.show &&
        children
      }
    </Show>
  );
}

This as is won't quite work with Solid due to syntax differences and that the data is reactive, but an approach like this should work. Reading the article I'd probably keep things simple for the fade component using signals. And outside we'd use whatever makes sense. But in this case being a toy demo it would be a signal. Admittedly that is the one thing always awkward about demos. In real applications I use state way more. But for simple piping signals are great.
But it would look like:
index.js
import { createSignal } from "solid-js";
import { render } from "solid-js/dom";

import Fade from "./fade";

const App = () => {
  const [show, setShow] = createSignal(false);

  return (
    <>
      <button onClick={() => setShow(!show())}>
        {show() ? "hide" : "show"}
      </button>
      <Fade show={show()}>

 HELLO

      </Fade>
    </>
  );
};

render(App, document.body);

fade.js
import { createSignal, createEffect } from "solid-js";

const Fade = props => {
  const [shouldRender, setRender] = createSignal(props.show),
    onAnimationEnd = () => !props.show && setRender(false);

  createEffect(() => props.show && setRender(true));

  return (
    <Show when={shouldRender()}>
      <div
        style={{ animation: `${props.show ? "fadeIn" : "fadeOut"} 1s` }}
        onAnimationEnd={onAnimationEnd}
      >
        {props.children}

    </Show>
  );
};

export default Fade;

But yeah generally you'd approach these problems the same way you do with React Hooks.

@ryansolid I just changed my example to use signals and started to also clean it up a bit. Seems to be working well. Thanks for the quick reply.

I think a valuable example would look something like this:

Here's a list of items
Now, here's how you add animations when an item is added/deleted

React's story here (with react-transition-group) is close to ideal. You're basically looking at a diff like this:
   return (

+      <ReactTransitionGroup>
       {items.map((item) => (
+        <CSSTransition>

{item.text}

+        </CSSTransition>
       )}
+      </ReactTransitionGroup>

   );

Surely this is made easier by the fact that React has a virtual dom. I haven't thought about how a Solid approach might look.

We use list reconciliation similar to a virtual dom so the same pattern interface would work more or less. It just works basically opposite direction since changes notify up rather than re-render down. We wrap each item in an object that contains extra state data about animation state, and then feed the reconciled nodes into a parent that keeps track of all these nodes and merges them into what gets attached to the DOM.
That being said it would be nice to have the means to do this less verbose ala Svelte. The challenge is that Solid's components aren't real nodes from our perspective. So not clear how to get the same level of control using directives but only on intrinsic elements. Not even sure if it would be the best pattern, but I suspect on inspection something similar should be possible.

@whatisaphone Still WIP progress but I've mimic'd Vue's Transition/TransitionGroup here. As you can see something like this should be possible. There are some limitations in this implementation like children must be single DOM node. I still have jitteryness on transition group but I think it demonstrates the potential.
https://codesandbox.io/s/basic-css-transition-36rln?file=/styles.css

Ok moved into a repo: https://github.com/ryansolid/solid-transition-group

I think this issue has run its course. We've demonstrated all sorts of animations with Solid including exit transitions. Examples have been added to examples page.


include "find frequently modified files"

git log --since="90 days ago" --pretty=format:"" --name-only | \
grep "[^\s]" | \
sort | uniq -c | \
sort -nr | head -10

from:
http://java.dzone.com/articles/gathering-useful-data-about

Is this related to "Detect files which are actually not related to each other but are frequently changed together"?

this is part of the more general "archaeology" topic.
@feststelltaste -> you want to take over here?


[bug] Settings files do not get merged if they have the same name (even if they are in different folders)

Describe the bug
I waste a lot of time on this..
If you provide multiple settings files with the same name, only the first one gets loaded, they do not get merged.
To Reproduce
settings = Dynaconf(settings_file=['settings.yaml', 'folder/settings.yaml'],
merge_enabled=true)
Only the first settings.yaml gets loaded

Could not reproduce, added a test in #439


Support for Sepolia network

Which component is your bug related to?
sncast
Foundry Version
latest
What operating system are you using?
MacOS
What system architecture are you using?
arm
What happened
It seems that some contracts are not deployed or deployed at different addresses on Sepolia network (e.g. UDC).
account create and deploy command don't work
Trace
sncast --url https://starknet-sepolia.public.blastapi.io account create --name deployer_account_sepolia_0
command: account create
error: code=ContractError, message="Contract error"
Is there an existing issue for this?

[x] I have searched the existing issues and verified no issue exits for this problem.

Prince JediSwap wrote on tg
There is some issue with deploy, I am assuming this could be due to Cairo 1 account contract. With this
https://sepolia.starkscan.co/contract/0x64cc7c1557532c07707afc3154033ae0d04f2c6959700e96ff9821c4ed5ef17#transactions,
deploy fails. With this
https://sepolia.starkscan.co/contract/0xbaa62005560c5aa97efd76fa13a44bc9a93a8d6ce9c2fc17410c93fa584d24#transactions
it works. Declare works with both.

The error I get on deploy is:
command: script
error: Got an exception while executing a hint: Custom Hint Error: Contract failed the validation = blockifier.validate_tx call failed.; failure reason: TransactionFailureReason(code='native_blockifier.PyTransactionExecutionError', error_message='ValidateTransactionError(ExecutionFailed { error_data: [StarkFelt("0x00000000496e70757420746f6f206c6f6e6720666f7220617267756d656e7473")] })').


chore(mod): bump to go 1.16, upgrade k8s and knative

Upgrade Go module management to 1.16, to solve the problem with client-go versioning as described here https://github.com/kubernetes/client-go/issues/749#issuecomment-790117721 . This removes the necessity for the replace directive :man_dancing:
Upgrade k8s libs to v0.20.5
Upgrade knative to v0.21
Update Go on CI and in Dockerfiles from 1.15 to 1.16

Once we get CI sorted out, LGTM


docs: update comment docs for GetG

Ping @aarzilli for review.

Merged. Sorry I've been busy this week and will probably keep being busy until after xmas.


display broader name in export tree's searchbar as well

Again, fix for #49
Please review @eScienceCenter/spacialists

in this branch the broader concept is neither displayed in the master box nor in the export box


2.3.x Drop dependency to javax.validation in Parameter Store and Secrets Manager

Replaced javax.validation:validation-api with Validator interface implementation in spring-cloud-aws-parameter-store-config and spring-cloud-aws-secrets-manager-config.
Added both success and fail case scenarios for checking validation in both properties.

Hey @maciejwalkowiak,
I can't mark pull request as ready for review. Could you review it please when you find time?

@MatejNedic sure. Thanks for contribution! I will review it in upcoming days (hopefully today but can't promise).


CI: Add build workflow that runs on pushes and PRs

Adds a build workflow that tests building startinpy on every push and pull request.
This way building startinpy is tested before a pull request is merged or a commit is pushed, and helps to see if a tagged release will be correctly build before actually tagging it.

@hugoledoux Tried some things here, didn't seem to work. Will try some more things later this week.

@hugoledoux Building Linux wheels is now working! Also restructured some things, the details are in the commit messages.
One thing still missing now are Aarch64 / Arm64 wheels for Linux and Windows, I might add those in a next PR.

This is amazing, so many thanks!
I think the number of linux users on arm64 that use startinpy is probably not very high, but I support your ambitions 👍
I find fiddling with GitHub Actions a very frustrating way to spend time, I am glad you seem to enjoy this?!


Update Expanse (eip155-2) Info

Updated the listing and added more information to it.

@chrisfranko
Heya! Thanks for taking the time to open this PR! Since this repository is a fork of https://github.com/ethereum-lists/chains, I think it would be best to open this upstream, there.
If you have any questions or issues doing this, just let me know and I'll try to help!

Yea man
On Fri, Apr 14, 2023 at 9:25 AM wbnns @.***> wrote:

Closed #7 https://github.com/base-org/chains/pull/7.
—
Reply to this email directly, view it on GitHub
https://github.com/base-org/chains/pull/7#event-9007923038, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AA3BBMOFGHYNCY5XLADCRYDXBFF5ZANCNFSM6AAAAAAW5RAJY4
.
You are receiving this because you were mentioned.Message ID:
@.***>


Simplify error handling in HubConnectionHandler

Since we execute hub methods inline, there's no need to abort the connection on unexpected exceptions.
Don't pass the cancellation token to ReadAsync, instead just use CancelPendingRead.
Don't treat OperationCancelledException errors as errors.

Unit tests 😱

Unit tests for what?

I think this is important behavior and should be unit tested:

Since we execute hub methods inline, there's no need to abort the connection on unexpected exceptions.

I think you misunderstood. The behavior didn’t change. It’s just simplified. Before we had to abort this way because it was fire and forget. Now we can remove the complex control flow and any exception in DispatchMessageAsync will throw inline and stop the loop.

@dotnet-bot test Windows Release x64 Build please


Docker.com's home page should also include linux

Currently Docker's home page shows only Get docker for Mac and Get docker for Windows. I cannot find any reference to Linux in the home page. For newcomers to docker, they would falsely assume that Linux isn't supported by docker. Shouldn't Get docker for Linux be in the home page as well?

The Docker open source project doesn't maintain docker.com, so maybe further discussion will have to be funneled to whatever team is appropriate.
However, the largest button at the top of docker.com (labeled "Getting Started With Docker") goes to the following page, which clearly lists all platforms, including Linux:

The docker.com direct links that I assume you are referring to are in a section of the page highlighting DockerCon Seattle 2016, at which those 2 products (Mac and Windows) were announced publicly, so I assume the links to download them there is strongly associated with that DockerCon call-out and will probably be replaced by something else in the future.

It may take almost a year for that section highlighting DockerCon Seattle 2016 to change. Better if all the supported OSs get fair treatment in the home page.

This was forwarded to the team managing the docker.com website earlier today, so I guess they'll work on it
/cc @hansfrederickbrown want this issue to be kept open for tracking?

Folks, I'll close this issue now as it's not related to the open source project. This issue can be opened again if someone decides it needs to be kept open.


IOTINVAL.VMA

HI, sir:
I find some problems  in this test too ;
1,

2,   i think the second picture not same with the spec  ; here want to inv the G entry, i think it can't work if as the spec description ;

thanks!!

Thanks for reporting. Fixed in #417

thanks!!


Prompt for database name when connecting to existing DB

Feature Request
What feature are you missing? Choosing database name when connecting to existing DB. As it is (at least in Postgres) it assumes the database is the same as the operating system user name. A safer assumption would be a prisma DB, but the user needs to be able to choose for various reasons.
How could this feature look like in detail? Tradeoffs? When running prisma init, and choosing Use existing database, the CLI should prompt for the database name in addition to the existing options, like host and port.

Thanks for creating this issue, @frankdugan3. This feature will land in version 1.8 🎉

@schickling I followed the steps of using prisma v1.8 to connect to one existed database but It fails because it cannot connect to it. (the database is hosted in docker enviornment) I think it would be great if there is one example to implement it.

I tried with v1.9 and the prisma server failed to connect to an existing database, the database was on the local machine.
The prisma introspect to replace the datamodel came closer to being successful, but failed because of some errors in the generated datamodel. The prisma introspect issue is here

I am trying to connect Prisma to an existing database.
If I follow the prompts from prisma init, it fails to connect to the database and the prisma server is an endless restart loop (error pasted below). It may be worth noting, I can connect to the postgres database using psql -h localhost -p 5432 -U postgres
This is how my docker-compose.yml looks like
version: '3'
services:
  prisma:
    image: prismagraphql/prisma:1.9
    restart: always
    ports:
    - "4466:4466"
    environment:
      PRISMA_CONFIG: |
        port: 4466
        # uncomment the next line and provide the env var PRISMA_MANAGEMENT_API_SECRET=my-secret to activate cluster security
        # managementApiSecret: my-secret
        databases:
          default:
            connector: postgres
            host: localhost
            port: 5432
            database: mydatabase
            user: postgres
            password: ''
            migrations: false

The error for the prisma restart is:
Jun 09, 2018 12:10:20 PM org.postgresql.Driver connect
SEVERE: Connection error:
org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:245)

I can confirm that this is resolved in the latest Prisma CLI - npm install -g prisma. The command asks for the database name and persists it in docker-compose.yml file.
@Jaikant : In your case, it is not working because the docker container is not aware of localhost as a resolvable URL. You need to provide an accessible URI to it with a valid Postgres server. Think of it as a VM, and localhost makes the VM search internally while the Postgres server is running on the host machine. I hope this clears it for you. Thanks.

@divyenduz yes that makes sense, let me try it with an accessible URI.


main_detr.py line 22

there is no module named 'util' in line 22
from util import box_ops

Hi @roy881020,
The module util is part of the detr repository, which is included as a submodule. Can you check whether you have downloaded the submodule? If you did, the directory detr should not be empty.
You can download the submodule with git submodule init and git submodule update.
Fred.

Thanks


Fixed addition of attributes when creating new user

When making a POST request to the user endpoint, the user's attributes are not saved, failing the following code from GithubProtocolFetcherStrategy to retrieve user attributes:
Map<String, String> attributes = u.getAttributes() != null ? u.getAttributes() : Map.of();
This approach is effective only when updating an existing user.
Additionally, when setting attributes as shown below:
"attributes": {   "arm": "test_audio",   "arm": "test_kcl",   "arm": "test_health" }
Only the last key-value pair is obtained due to the internal implementation using HashMap, which allows unique keys.
If this behavior is intentional and no updates are necessary, please feel free to close this PR.

Additionally, when setting attributes as shown below:
"attributes": { "arm": "test_audio", "arm": "test_kcl", "arm": "test_health" }
Only the last key-value pair is obtained due to the internal implementation using HashMap, which allows unique keys.

Could you please clarify if this behavior is intentional?
Thank you.

Additionally, when setting attributes as shown below:
"attributes": { "arm": "test_audio", "arm": "test_kcl", "arm": "test_health" }
Only the last key-value pair is obtained due to the internal implementation using HashMap, which allows unique keys.

Could you please clarify if this behavior is intentional? Thank you.

@this-Aditya I think the keys should be unique since the attributes keys from MP would be unique. Did you run into an instance where this is not the case?

To set these attributes when creating a new subject, we are using them to fetch the protocols from RADAR-aRMT-protocols. The attributes for the user are used to navigate to the correct protocol.json file.
Can a user have exactly one protocol? If not, how can we use both protocol.json files (e.g., from both STAGING_PROJECT/arm/test_audio/protocol.json and STAGING_PROJECT/arm/test_health/protocol.json)?
I am not entirely sure about this. Please correct any assumptions I may have wrong.

To set these attributes when creating a new subject, we are using them to fetch the protocols from RADAR-aRMT-protocols. The attributes for the user are used to navigate to the correct protocol.json file.

Can a user have exactly one protocol? If not, how can we use both protocol.json files (e.g., from both STAGING_PROJECT/arm/test_audio/protocol.json and STAGING_PROJECT/arm/test_health/protocol.json)?

A user will have only one active protocol, which will be used to schedule the questionnaires. The attribute key has to be unique so the correct protocol can be selected (with the attribute value).
But another user in the same project can have a different attribute value for that key and hence will be on a different protocol; for instance, in a randomised trial with two arms, users in one arm will have protocol 1 and users in second arm will have protocol 2.

Okay, now I understand.
Thanks for the explanation.


Wrong version of Node.js

The installation mentions that Node.js >= 14 is required. However, it is in fact Node.js >= 15.
Using node v14.21.2 (on Ubuntu 20.04), in the second lesson, we hit the following problem with exponentiation:
>  echo "2^2" | quint
TypeError: intNode.text.replaceAll is not a function
    at ToIrListener.exitLiteralOrId (/home/otrack/ALL/myWork/Implementation/quint/quint/dist/src/ToIrListener.js:358:44)
    at LiteralOrIdContext.exitRule (/home/otrack/ALL/myWork/Implementation/quint/quint/dist/src/generated/QuintParser.js:5146:22)
    at ParseTreeWalker.exitRule (/home/otrack/ALL/myWork/Implementation/quint/quint/node_modules/antlr4ts/tree/ParseTreeWalker.js:94:13)
    at ParseTreeWalker.walk (/home/otrack/ALL/myWork/Implementation/quint/quint/node_modules/antlr4ts/tree/ParseTreeWalker.js:52:26)
    at parsePhase1fromText (/home/otrack/ALL/myWork/Implementation/quint/quint/dist/src/quintParserFrontend.js:97:51)
    at compileFromCode (/home/otrack/ALL/myWork/Implementation/quint/quint/dist/src/runtime/compile.js:154:58)
    at tryEval (/home/otrack/ALL/myWork/Implementation/quint/quint/dist/src/repl.js:474:55)
    at nextLine (/home/otrack/ALL/myWork/Implementation/quint/quint/dist/src/repl.js:139:39)
    at Interface.<anonymous> (/home/otrack/ALL/myWork/Implementation/quint/quint/dist/src/repl.js:191:13)
    at Interface.emit (events.js:400:28)

Upgrading Node.js fixes this.

I've needed to pick up a later version of node for #871, and also reasoned we should use the active LTS branch. So i have this in the works as a side effect. :)


migrate-tests-to-v2: auto_start_test.py

Relates to #203

Isn't all this covered here?

Isn't all this covered here?

Isn't all this covered here?

Seems it have already been useless, cause all 4 tests are the same :) i don't understand why first two of them names manual and the last two - autostart - they are totally the same.
Should i delete this module in this PR?

Isn't all this covered here?

Seems it have already been useless, cause all 4 tests are the same :) i don't understand why first two of them names manual and the last two - autostart - they are totally the same.
Should i delete this module in this PR?

let's remove it, yep

let's remove it, yep

let's remove it, yep

Removed. :)

let's remove it, yep

Removed. :)


Different layout for children count greater than X

Not sure if anyone is actively managing this but is there any known reference for having the layout change for any nodes that have a certain number of children?
I have all my nodes in a tree structure but for visual purposes, I want to have children nodes be displayed in columns of two as opposed to one long row. Not sure if anyone using this library has had similar interests/issues like this.

If anyone finds this later, I was able to achieve this layout by creating a modified array of my original nodes (my data is an array of nodes with a parentId) where anytime a parent had more than X children (2 in my case), each child would have their parentId changed to be the node that would be physically above them in the layout.
So if my data after the layout normally looks like this:
                p
                |
  -------------------------
 |    |    |    |    |    |
c1  c2  c3  c4  c5  c6

And I want it to look like this:
      p
      |
c1 --- c2
      |
c3 --- c4
      |
c5 --- c6

I modify children c3-c6 to have a different parentId:
      p
      |
c1 --- c2
 |       |
c3     c4
 |       |
c5     c6

c1 and c2 are unaffected but I change c3 to have a parentId of c1, c4 changes to c2 and so on.
Then I just adjust some other values that are used by the lib I'm using to actually display these nodes so that the lines look how they do in the second ASCII masterpiece (how I want the data to look like).
So now my setup looks like:
const root = originalNodes[0] // or however you need to find the `root`
const modifiedNodes = structuredClone(originalNodes) // This was the easiest way to avoid modifying the original array even if probably slow
populateChildren(modifiedNodes)
const layout = flextree({ /* ... */ })
const tree = layout.hierarchy(root)
layout(tree)

// ...

The populateChildren function (this modified the given array):
export function populateChildren<T>(
    node: T,
    nodes: T[],
) {
    const children = nodes
            .filter((c) => c.parentId === node.id)
    const childIds = children.map((c) => c.id)

    // Arranges children into columns of two by assinging
    // a temporary `parentId`
    if (
        children.length > 2 && // or change `2` to whatever number you want
        !nodes.find((n) => childIds.includes(n.parentId))
    ) {
        children.forEach((c, i, arr) => {
            // `edgePosition` is used for actually displaying the nodes, not necessary to just arrange them in an array
            if (i % 2 === 0) {
                c.edgePosition = 'right'
            } else {
                c.edgePosition = 'left'
            }
            if (i <= 1) {
                return
            }
            c.parentId = arr[i - 2].id
        })
        children.splice(2, children.length - 2)
    }
    children.forEach((c) => populateChildren(c, nodes))
    node.children = children
}


Pediacluster support filter roles  when sync resources

What would you like to be added?
We want pediacluster support filter rules  when sync resources
Why is this needed?
We want skip some namepace when resource syncd like kube-system

Is this done to avoid sensitive resources being synced to the clusterpedia, or is there another purpose?

Is this done to avoid sensitive resources being synced to the clusterpedia, or is there another purpose?

We have three clusters now and the workload name is different and namespace is same.
And the k8s or other control plane system and the resources on that namespace are same, we just want keep one copy and actually do not care about them.
So we want add an optional api in  pediacluster  and that we can have a choice to avoid some resources being synced

I have a few questions:

even if the resources in these control system namespaces are the same in multiple clusters, their status may still be different for various reasons, and if we don't synchronize them, then we will never be able to see the specific information of the resources in these namespaces within a specific cluster through the clusterpedia

Is it possible to ignore some namespaces when retrieving resources, for example by using the search label -search.clusterpedia.io/namespaces notin (a,b,c) or url query - ?ignoreNamespaces=a,b,c?

Of course, it is also possible to use raw query

Of course I don't have a proper reason to oppose this feature, but it might make users confused about not retrieving resources in certain namespaces.

multiple
Two reasons
1 · Our app developer、 k8s developer and k8s  SRE are different parts.  Our team may just care about the resources we directly use. The SRE do not use clusterpedia to monitor the k8s clusters

we found when we use old version client-go to list and then watch （informers） the collection resources  will hang up because duplicate resources

To implement this we add a field in PediaCluster - ignoredNamespaces: [].
apiVersion: cluster.clusterpedia.io/v1alpha1
kind: PediaClusteer
metadata:
  name: example
spec:
  syncResources:
  - group: ""
     resources:
     - "pods"
   ignoredNamespaces:
     - "kube-system"

Global settings, not specific to a resource, What do you think?

I think we can implement this in 0.5.
To implement this we add a field in PediaCluster - ignoredNamespaces: [].
apiVersion: cluster.clusterpedia.io/v1alpha1
kind: PediaClusteer
metadata:
  name: example
spec:
  syncResources:
  - group: ""
     resources:
     - "pods"
  ignoredNamespaces:
  - "kube-system"

Global settings, not specific to a resource, What do you think?

Yeah， we can make it optional

/assign

I have a question, what should we handle if the resource is cluster resource?

I have a question, what should we handle if the resource is cluster resource?

Sometimes we may have turned on collecting all Crd resources, which may contain cluster resources.

Maybe we can pending the issue if we do not find the best scheme


added ability to auto detect .vercel/project.json files

What it does:
Allows this extension to automatically detect project ids from .vercel/project.json files if there is no setting defined. This allows for a global override to be set in (global)settings.json, or a workspace override to be set by creating a .vscode/settings.json file, just like before, but in the absence of either value, checks for a top level .vercel/project.json file (created by the Vercel CLI) to get the project id.
Reason for creation
Allows for more dynamic usage with the Vercel CLI(likely to already be in use by anyone utilizing this extension), and avoids unnecessary user effort in defining a project name in a seperate file for every Vercel app they edit.
Shortfall
This would not be supported with projects that have their .vercel folder nested within another, however such users could set a value in their workspace settings file.
What it solves:
See issue #17

One more thing! We'll need an update to the README saying we have .vercel/project.json support now :)

@haydenbleasel, Should the extension give a prompt if the file is not found? Additionally, should it give a prompt if the setting is not found? One or the other would be preferable to reduce the number of user notifications. Additionally, there could be a prompt if neither option is found, simply stating as such; or there could be no prompt, allowing the extension to work silently in the background if no vercel app is configured for the workspace.
Being your extension, that is your design choice to make, but my personal preference would be the silent execution which only bothers the user if an error occurs.

Created updated README.md File.
I just saw your recent commit that creates utilities. I will rewrite this for that. Out of curiosity, would you prefer that this function were a seperate utility, or that I continue with the inline nature it currently is?

Created updated README.md File. I just saw your recent commit that creates utilities. I will rewrite this for that. Out of curiosity, would you prefer that this function were a seperate utility, or that I continue with the inline nature it currently is?

Nevermind, this function requires too many of the imports to make it reasonable(IMO) to seperate it. You are welcome to let me know if you disagree.

I have updated the code to fix the mistakes pointed out (though like i said, I would love a second set of eyes on that type checking).
Additionally, I have updated the README.md
The code now merges with no conflicts.
Still remaining:
I would like to know your decision on the notifying the user issue(see above). Once you let me know your judgment, I will modify it(if necessary) and then this should be ready to merge.

@haydenbleasel, Should the extension give a prompt if the file is not found? Additionally, should it give a prompt if the setting is not found? One or the other would be preferable to reduce the number of user notifications. Additionally, there could be a prompt if neither option is found, simply stating as such; or there could be no prompt, allowing the extension to work silently in the background if no vercel app is configured for the workspace. Being your extension, that is your design choice to make, but my personal preference would be the silent execution which only bothers the user if an error occurs.

That's a great callout. Preferably it should fail silently as you mentioned. I'm happy to solve this in a different MR.

This change should be as simple as removing this line on line 18:
    let vercelProjectJson: Uint8Array | null = null;
   try {
     vercelProjectJson = await workspace.fs.readFile(fileUri);
   } catch {
-     await window.showErrorMessage('Could not find .vercel/project.json file.');
     return undefined;
   }

My commit has already remove the error for not setting the configuration, and you should still keep the one requesting an access key, though, perhaps the code might be rethought slightly to only check for an access token after determining that a project id is present, so that users could set individual access tokens in workspaces and not get errors in other workspaces where vercel is not utilized.
I don’t currently have time to make these changes, however in the next couple days I could do that

That could be done simply by moving lines 37 and 41 through 46 to line 59(after determining that a project id is available)

Apparently you can change files directly on github!
Anyways, I have made the appropriate changes and recommited.
WARNING: I have not tested the last commit. It should still work, but perhaps clone it and compile it before merging...


Add to eventful

Lucky (Crystal) app
https://github.com/thoughtbot/eventful
https://events.thoughtbot.com/locations

No one seems to be using Eventful, so I’m going to close this as it isn’t valuable.


Update 1_view1.md

fix sql query syntax error
add newline to uncomment END statement
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Thanks for identifying the issue - there was another pull request that incorporated this fix, closing.


Add blendaxai-gm-l3-v35 to AlpacaEval

We have added latest results of our solution. Please let me know if you have any suggestions or comments.

impressive @ym-blendax-ai 💯
THe unit test is failing for a different reason so I'm merging!

@YannDubs Thank you!