docs: move jwt idp to guides

Moves the already existing guide of integrating jwt idps to the guides folder.
closes https://github.com/zitadel/zitadel/issues/7190
Definition of Ready

[x] I am happy with the code
[x] Short description of the feature/issue is added in the pr description
[ ] PR is linked to the corresponding user story
[ ] Acceptance criteria are met
[x] All open todos and follow ups are defined in a new ticket and justified
[ ] Deviations from the acceptance criteria and design are agreed with the PO and documented.
[ ] No debug or dead code
[ ] My code has no repetitions
[ ] Critical parts are tested automatically
[ ] Where possible E2E tests are implemented
[ ] Documentation/examples are up-to-date
[ ] All non-functional requirements are met
[ ] Functionality of the acceptance criteria is checked manually on the dev system.

@adlerhurst @livio-a thanks for the fix. Please create a permanent redirect.


new nuxt project won't start

Environment
Operating System: Ubuntu
Node Version: v20.15.0
Nuxt Version: 3.14.1592
CLI Version: -
Nitro Version: 2.10.4
Package Manager<EMAIL_ADDRESS>Builder: -
User Config: default
Runtime Modules: -
Build Modules: -
Reproduction
npx nuxi init test
npm run dev
Describe the bug
got this:
[11:03:23 AM]  ERROR  [unhandledRejection] Cannot find module<EMAIL_ADDRESS>Additional context
No response
Logs

I also occur this!
------------------------------
- Operating System: Darwin
- Node Version:     v20.0.0
- Nuxt Version:     3.13.2
- CLI Version:      3.16.0
- Nitro Version:    2.10.4
- Package Manager<EMAIL_ADDRESS>- Builder:          -
- User Config:      default
- Runtime Modules<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>pinia-plugin-persistedstate/nuxt<EMAIL_ADDRESS>- Build Modules:    -
------------------------------

[unhandledRejection] Cannot find module '***.pnpm@babel+generator<EMAIL_ADDRESS>

me too

I thought I was the only one experiencing this

Newly Created Nuxt Project and countinously getting the error in the screenshot.

Same 🖐

+1 the same here without any code change

For the moment, you can use this workaround by overriding the package version:
"overrides": {
    "@jridgewell/gen-mapping": "0.3.5"
 }

@HugoRCD  Thank you my friend!! :)

@HugoRCD , I have added the required changes to the package.json, but I am still encountering the same error. Could you kindly confirm if I may be missing any additional steps or if I am applying the changes incorrectly?
"overrides": {
"@jridgewell/gen-mapping": "0.3.5"
}

This was a bug in publishing @jridgewell/gen-mapping: https://github.com/jridgewell/gen-mapping/issues/14.
It's now resolved.
You can use overrides/resolutions to force your package manager to pick up 0.3.5.

@danielroe Thanks! It works!


mercurial: install zsh completions

Motivation for this change
They're useful, you know :).
Things done

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

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

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

Sorry for delay, updated as suggested!
Tested bash completion before/after, confirmed didn't work and now does
^_^.
On Mon, 10 Dec 2018 13:50:28 -0800, Renaud<EMAIL_ADDRESS>wrote:

c0bw3b commented on this pull request.

@@ -50,7 +50,8 @@ in python2Packages.buildPythonApplication {
chmod u+x $out/share/cgi-bin/hgweb.cgi

   # install bash completion

And refresh that comment to install shell completions or install bash/zsh completions
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
https://github.com/NixOS/nixpkgs/pull/51712#pullrequestreview-183415650Non-text part: text/html


CB-10819 Adding snapshotting and improving build system

Added 'snap' command to Makefile and gulpfile.
Fixed 'newversion' command.
Made fetched files live under /reference/.
Refactored and removed incrementversion.js in favour of simple FS commands.

@riknoll @rakatyal please review when you have a moment.

@sarangan12 @nikhilkh please review when you have a moment.

You'll need re-directs for all the links that you changed. Also, the docs have lots of references to them and they need to be changed.

@nikhilkh good catch! Updated internal links and added redirects. Please give it another look.

LGTM


A possible alternative library for apt

This is tool looking very nice... FWIW I maintain this library https://github.com/nexB/debian-inspector that has a different approach as it can deal with installed debian package in a static way e.g., even if you are not on Debian or when you are trying to get the installed packages from a tarball, or a container image. You may find it useful or entertaining!
See it used here https://github.com/nexB/scancode-toolkit/blob/1dfd73a28fed3bdd3bb6554eeda35f52fb3d86f9/src/packagedcode/debian.py#L160

Thanks for this pointer.  Is there additional documentation on the inspector?

@elear there is no additional documentation beyond the code docs, a decent battery of tests and its usage in ScanCode. I crafted https://github.com/nexB/debian-inspector/issues/24


https blocking does not take effect

Thank you very much for this library, it works very well in http mode, however an error occurred when I was processing an https request , Here is my code：
func main() {
	proxy := goproxy.NewProxyHttpServer()
	proxy.Verbose = true
	proxy.OnRequest().HandleConnect(goproxy.AlwaysMitm)
	proxy.OnResponse().DoFunc(func(resp *http.Response, ctx *goproxy.ProxyCtx) *http.Response {
		glg.Println("OnResponse:", ctx.Req.Proto, ctx.Req.Method, ctx.Req.URL.String())
		return resp
	})
	glg.Fatal(http.ListenAndServe(":62222", proxy))
}

I want to get a response from https, but the proxy.OnResponse().DoFunc method is not executed, and the following error is found in the log:
2023/06/19 20:29:21 [003] INFO: Running 1 CONNECT handlers
2023/06/19 20:29:21 [003] INFO: on 0th handler: &{2 <nil> 0x12b27c0} m.baidu.com:443
2023/06/19 20:29:21 [003] INFO: Assuming CONNECT is TLS, mitm proxying it
2023/06/19 20:29:21 [003] INFO: signing for m.baidu.com
2023/06/19 20:29:21 [003] WARN: Cannot handshake client m.baidu.com:443 remote error: tls: unknown certificate
2023/06/19 20:29:21 [004] INFO: Running 1 CONNECT handlers
2023/06/19 20:29:21 [004] INFO: on 0th handler: &{2 <nil> 0x12b27c0} m.baidu.com:443
2023/06/19 20:29:21 [004] INFO: Assuming CONNECT is TLS, mitm proxying it
2023/06/19 20:29:21 [004] INFO: signing for m.baidu.com
2023/06/19 20:29:21 [004] WARN: Cannot handshake client m.baidu.com:443 remote error: tls: unknown certificate
2023/06/19 20:29:21 [005] INFO: Running 1 CONNECT handlers
2023/06/19 20:29:21 [005] INFO: on 0th handler: &{2 <nil> 0x12b27c0} m.baidu.com:443
2023/06/19 20:29:21 [005] INFO: Assuming CONNECT is TLS, mitm proxying it
2023/06/19 20:29:21 [005] INFO: signing for m.baidu.com
2023/06/19 20:29:21 [005] WARN: Cannot handshake client m.baidu.com:443 remote error: tls: unknown certificate
2023/06/19 20:29:21 [006] INFO: Running 1 CONNECT handlers
2023/06/19 20:29:21 [006] INFO: on 0th handler: &{2 <nil> 0x12b27c0} m.baidu.com:443
2023/06/19 20:29:21 [006] INFO: Assuming CONNECT is TLS, mitm proxying it
2023/06/19 20:29:21 [006] INFO: signing for m.baidu.com
2023/06/19 20:29:22 [006] WARN: Cannot handshake client m.baidu.com:443 remote error: tls: unknown certificate
2023/06/19 20:29:22 [007] INFO: Running 1 CONNECT handlers
2023/06/19 20:29:22 [007] INFO: on 0th handler: &{2 <nil> 0x12b27c0} m.baidu.com:443
2023/06/19 20:29:22 [007] INFO: Assuming CONNECT is TLS, mitm proxying it
2023/06/19 20:29:22 [007] INFO: signing for m.baidu.com
2023/06/19 20:29:22 [007] WARN: Cannot handshake client m.baidu.com:443 remote error: tls: unknown certificate
2023/06/19 20:29:22 [008] INFO: Running 1 CONNECT handlers
2023/06/19 20:29:22 [008] INFO: on 0th handler: &{2 <nil> 0x12b27c0} m.baidu.com:443
2023/06/19 20:29:22 [008] INFO: Assuming CONNECT is TLS, mitm proxying it
2023/06/19 20:29:22 [008] INFO: signing for m.baidu.com
2023/06/19 20:29:22 [008] WARN: Cannot handshake client m.baidu.com:443 remote error: tls: unknown certificate
2023/06/19 20:29:22 [009] INFO: Running 1 CONNECT handlers
2023/06/19 20:29:22 [009] INFO: on 0th handler: &{2 <nil> 0x12b27c0} m.baidu.com:443
2023/06/19 20:29:22 [009] INFO: Assuming CONNECT is TLS, mitm proxying it
2023/06/19 20:29:22 [009] INFO: signing for m.baidu.com
2023/06/19 20:29:22 [009] WARN: Cannot handshake client m.baidu.com:443 remote error: tls: unknown certificate
2023/06/19 20:29:22 [010] INFO: Running 1 CONNECT handlers
2023/06/19 20:29:22 [010] INFO: on 0th handler: &{2 <nil> 0x12b27c0} m.baidu.com:443
2023/06/19 20:29:22 [010] INFO: Assuming CONNECT is TLS, mitm proxying it
2023/06/19 20:29:22 [010] INFO: signing for m.baidu.com
2023/06/19 20:29:22 [010] WARN: Cannot handshake client m.baidu.com:443 remote error: tls: unknown certificate
2023/06/19 20:29:22 [011] INFO: Running 1 CONNECT handlers
2023/06/19 20:29:22 [011] INFO: on 0th handler: &{2 <nil> 0x12b27c0} m.baidu.com:443
2023/06/19 20:29:22 [011] INFO: Assuming CONNECT is TLS, mitm proxying it
2023/06/19 20:29:22 [011] INFO: signing for m.baidu.com
2023/06/19 20:29:23 [011] WARN: Cannot handshake client m.baidu.com:443 remote error: tls: unknown certificate
2023/06/19 20:29:23 [012] INFO: Running 1 CONNECT handlers
2023/06/19 20:29:23 [012] INFO: on 0th handler: &{2 <nil> 0x12b27c0} m.baidu.com:443
2023/06/19 20:29:23 [012] INFO: Assuming CONNECT is TLS, mitm proxying it
2023/06/19 20:29:23 [012] INFO: signing for m.baidu.com
2023/06/19 20:29:23 [012] WARN: Cannot handshake client m.baidu.com:443 remote error: tls: unknown certificate
2023/06/19 20:29:23 [013] INFO: Running 1 CONNECT handlers
2023/06/19 20:29:23 [013] INFO: on 0th handler: &{2 <nil> 0x12b27c0} m.baidu.com:443
2023/06/19 20:29:23 [013] INFO: Assuming CONNECT is TLS, mitm proxying it
2023/06/19 20:29:23 [013] INFO: signing for m.baidu.com
2023/06/19 20:29:23 [013] WARN: Cannot handshake client m.baidu.com:443 remote error: tls: unknown certificate
2023/06/19 20:29:23 [014] INFO: Running 1 CONNECT handlers
2023/06/19 20:29:23 [014] INFO: on 0th handler: &{2 <nil> 0x12b27c0} m.baidu.com:443
2023/06/19 20:29:23 [014] INFO: Assuming CONNECT is TLS, mitm proxying it
2023/06/19 20:29:23 [014] INFO: signing for m.baidu.com
2023/06/19 20:29:23 [014] WARN: Cannot handshake client m.baidu.com:443 remote error: tls: unknown certificate
2023/06/19 20:29:23 [015] INFO: Running 1 CONNECT handlers
2023/06/19 20:29:23 [015] INFO: on 0th handler: &{2 <nil> 0x12b27c0} m.baidu.com:443
2023/06/19 20:29:23 [015] INFO: Assuming CONNECT is TLS, mitm proxying it
2023/06/19 20:29:23 [015] INFO: signing for m.baidu.com
2023/06/19 20:29:24 [015] WARN: Cannot handshake client m.baidu.com:443 remote error: tls: unknown certificate
2023/06/19 20:29:24 [016] INFO: Running 1 CONNECT handlers
2023/06/19 20:29:24 [016] INFO: on 0th handler: &{2 <nil> 0x12b27c0} m.baidu.com:443
2023/06/19 20:29:24 [016] INFO: Assuming CONNECT is TLS, mitm proxying it
2023/06/19 20:29:24 [016] INFO: signing for m.baidu.com
2023/06/19 20:29:24 [016] WARN: Cannot handshake client m.baidu.com:443 remote error: tls: unknown certificate
2023/06/19 20:29:24 [017] INFO: Running 1 CONNECT handlers
2023/06/19 20:29:24 [017] INFO: on 0th handler: &{2 <nil> 0x12b27c0} m.baidu.com:443
2023/06/19 20:29:24 [017] INFO: Assuming CONNECT is TLS, mitm proxying it
2023/06/19 20:29:24 [017] INFO: signing for m.baidu.com
2023/06/19 20:29:24 [017] WARN: Cannot handshake client m.baidu.com:443 remote error: tls: unknown certificate
2023/06/19 20:29:24 [018] INFO: Running 1 CONNECT handlers
2023/06/19 20:29:24 [018] INFO: on 0th handler: &{2 <nil> 0x12b27c0} m.baidu.com:443
2023/06/19 20:29:24 [018] INFO: Assuming CONNECT is TLS, mitm proxying it
2023/06/19 20:29:24 [018] INFO: signing for m.baidu.com
2023/06/19 20:29:24 [018] WARN: Cannot handshake client m.baidu.com:443 remote error: tls: unknown certificate
2023/06/19 20:29:24 [019] INFO: Running 1 CONNECT handlers
2023/06/19 20:29:24 [019] INFO: on 0th handler: &{2 <nil> 0x12b27c0} m.baidu.com:443
2023/06/19 20:29:24 [019] INFO: Assuming CONNECT is TLS, mitm proxying it
2023/06/19 20:29:24 [019] INFO: signing for m.baidu.com
2023/06/19 20:29:24 [019] WARN: Cannot handshake client m.baidu.com:443 remote error: tls: unknown certificate
2023/06/19 20:29:24 [020] INFO: Running 1 CONNECT handlers
2023/06/19 20:29:24 [020] INFO: on 0th handler: &{2 <nil> 0x12b27c0} m.baidu.com:443
2023/06/19 20:29:24 [020] INFO: Assuming CONNECT is TLS, mitm proxying it
2023/06/19 20:29:24 [020] INFO: signing for m.baidu.com
2023/06/19 20:29:25 [020] WARN: Cannot handshake client m.baidu.com:443 remote error: tls: unknown certificate
2023/06/19 20:29:25 [021] INFO: Running 1 CONNECT handlers
2023/06/19 20:29:25 [021] INFO: on 0th handler: &{2 <nil> 0x12b27c0} m.baidu.com:443
2023/06/19 20:29:25 [021] INFO: Assuming CONNECT is TLS, mitm proxying it
2023/06/19 20:29:25 [021] INFO: signing for m.baidu.com
2023/06/19 20:29:25 [021] WARN: Cannot handshake client m.baidu.com:443 remote error: tls: unknown certificate
2023/06/19 20:29:25 [022] INFO: Running 1 CONNECT handlers
2023/06/19 20:29:25 [022] INFO: on 0th handler: &{2 <nil> 0x12b27c0} m.baidu.com:443
2023/06/19 20:29:25 [022] INFO: Assuming CONNECT is TLS, mitm proxying it
2023/06/19 20:29:25 [022] INFO: signing for m.baidu.com
2023/06/19 20:29:25 [022] WARN: Cannot handshake client m.baidu.com:443 remote error: tls: unknown certificate
2023/06/19 20:29:25 [023] INFO: Running 1 CONNECT handlers
2023/06/19 20:29:25 [023] INFO: on 0th handler: &{2 <nil> 0x12b27c0} m.baidu.com:443
2023/06/19 20:29:25 [023] INFO: Assuming CONNECT is TLS, mitm proxying it
2023/06/19 20:29:25 [023] INFO: signing for m.baidu.com
2023/06/19 20:29:26 [023] WARN: Cannot handshake client m.baidu.com:443 remote error: tls: unknown certificate
2023/06/19 20:29:26 [024] INFO: Running 1 CONNECT handlers
2023/06/19 20:29:26 [024] INFO: on 0th handler: &{2 <nil> 0x12b27c0} m.baidu.com:443
2023/06/19 20:29:26 [024] INFO: Assuming CONNECT is TLS, mitm proxying it
2023/06/19 20:29:26 [024] INFO: signing for m.baidu.com
2023/06/19 20:29:26 [024] WARN: Cannot handshake client m.baidu.com:443 remote error: tls: unknown certificate
2023/06/19 20:29:26 [025] INFO: Running 1 CONNECT handlers
2023/06/19 20:29:26 [025] INFO: on 0th handler: &{2 <nil> 0x12b27c0} m.baidu.com:443
2023/06/19 20:29:26 [025] INFO: Assuming CONNECT is TLS, mitm proxying it
2023/06/19 20:29:26 [025] INFO: signing for m.baidu.com
2023/06/19 20:29:26 [025] WARN: Cannot handshake client m.baidu.com:443 remote error: tls: unknown certificate
2023/06/19 20:29:26 [026] INFO: Running 1 CONNECT handlers
2023/06/19 20:29:26 [026] INFO: on 0th handler: &{2 <nil> 0x12b27c0} m.baidu.com:443
2023/06/19 20:29:26 [026] INFO: Assuming CONNECT is TLS, mitm proxying it
2023/06/19 20:29:26 [026] INFO: signing for m.baidu.com
2023/06/19 20:29:26 [026] WARN: Cannot handshake client m.baidu.com:443 remote error: tls: unknown certificate
2023/06/19 20:29:26 [027] INFO: Running 1 CONNECT handlers
2023/06/19 20:29:26 [027] INFO: on 0th handler: &{2 <nil> 0x12b27c0} m.baidu.com:443
2023/06/19 20:29:26 [027] INFO: Assuming CONNECT is TLS, mitm proxying it
2023/06/19 20:29:26 [027] INFO: signing for m.baidu.com
2023/06/19 20:29:26 [027] WARN: Cannot handshake client m.baidu.com:443 remote error: tls: unknown certificate
2023/06/19 20:29:27 [028] INFO: Running 1 CONNECT handlers
2023/06/19 20:29:27 [028] INFO: on 0th handler: &{2 <nil> 0x12b27c0} m.baidu.com:443
2023/06/19 20:29:27 [028] INFO: Assuming CONNECT is TLS, mitm proxying it
2023/06/19 20:29:27 [028] INFO: signing for m.baidu.com
2023/06/19 20:29:27 [028] WARN: Cannot handshake client m.baidu.com:443 remote error: tls: unknown certificate
2023/06/19 20:29:27 [029] INFO: Running 1 CONNECT handlers
2023/06/19 20:29:27 [029] INFO: on 0th handler: &{2 <nil> 0x12b27c0} m.baidu.com:443
2023/06/19 20:29:27 [029] INFO: Assuming CONNECT is TLS, mitm proxying it
2023/06/19 20:29:27 [029] INFO: signing for m.baidu.com
2023/06/19 20:29:27 [029] WARN: Cannot handshake client m.baidu.com:443 remote error: tls: unknown certificate
2023/06/19 20:29:27 [030] INFO: Running 1 CONNECT handlers
2023/06/19 20:29:27 [030] INFO: on 0th handler: &{2 <nil> 0x12b27c0} m.baidu.com:443
2023/06/19 20:29:27 [030] INFO: Assuming CONNECT is TLS, mitm proxying it
2023/06/19 20:29:27 [030] INFO: signing for m.baidu.com
2023/06/19 20:29:28 [030] WARN: Cannot handshake client m.baidu.com:443 remote error: tls: unknown certificate
2023/06/19 20:29:28 [031] INFO: Running 1 CONNECT handlers
2023/06/19 20:29:28 [031] INFO: on 0th handler: &{2 <nil> 0x12b27c0} m.baidu.com:443
2023/06/19 20:29:28 [031] INFO: Assuming CONNECT is TLS, mitm proxying it
2023/06/19 20:29:28 [031] INFO: signing for m.baidu.com
2023/06/19 20:29:28 [031] WARN: Cannot handshake client m.baidu.com:443 remote error: tls: unknown certificate
2023/06/19 20:29:28 [032] INFO: Running 1 CONNECT handlers
2023/06/19 20:29:28 [032] INFO: on 0th handler: &{2 <nil> 0x12b27c0} m.baidu.com:443
2023/06/19 20:29:28 [032] INFO: Assuming CONNECT is TLS, mitm proxying it
2023/06/19 20:29:28 [032] INFO: signing for m.baidu.com
2023/06/19 20:29:28 [032] WARN: Cannot handshake client m.baidu.com:443 remote error: tls: unknown certificate
2023/06/19 20:29:28 [033] INFO: Running 1 CONNECT handlers
2023/06/19 20:29:28 [033] INFO: on 0th handler: &{2 <nil> 0x12b27c0} m.baidu.com:443
2023/06/19 20:29:28 [033] INFO: Assuming CONNECT is TLS, mitm proxying it
2023/06/19 20:29:28 [033] INFO: signing for m.baidu.com
2023/06/19 20:29:29 [033] WARN: Cannot handshake client m.baidu.com:443 remote error: tls: unknown certificate
2023/06/19 20:29:29 [034] INFO: Running 1 CONNECT handlers
2023/06/19 20:29:29 [034] INFO: on 0th handler: &{2 <nil> 0x12b27c0} m.baidu.com:443
2023/06/19 20:29:29 [034] INFO: Assuming CONNECT is TLS, mitm proxying it
2023/06/19 20:29:29 [034] INFO: signing for m.baidu.com
2023/06/19 20:29:29 [034] WARN: Cannot handshake client m.baidu.com:443 remote error: tls: unknown certificate

Can you help me see what needs to be done？

Hi @gitcfly , have you solved this ? I am facing this, no clue at all.

@gitcfly tell you what , you need to get your os trust your ca cert , then everything is fine.

https://github.com/elazarl/goproxy/issues/560


feat: upload cosign public key and notation certificates to cloud

using secrets manager for storing public keys and certificates
adding a default truststore for notation verification and upload all certificates to this default truststore
removig truststoreName query param from notation api for uploading certificates

(cherry picked from commit eafcc1a213f9d46fcbb3c5347e49e33af360e2cf)

What type of PR is this?

Which issue does this PR fix:
What does this PR do / Why do we need it:
If an issue # is not available please add repro steps and logs showing the issue:
Testing done on this change:

Automation added to e2e:

Will this break upgrades or downgrades?
Does this PR introduce any user-facing change?:

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

@andaaron @Andreea-Lupu are there are config changes for this PR? meaning do we need to update any examples?
This will definitely need a docs update.


SSH-rremot: vscode server won't start: "Waiting for server log..."

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

VS Code Version: 1.86.0
OS Version:

Steps to Reproduce:

Start vscode
Connect to host
Could not establish connection to server: The VS Code Server failed to start

The issue looks the same as in #203967

/duplicate
The 1.86.1 recovery release is nearly published and should resolve this.

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.
Happy Coding!


Angular2 adapter for winjs is needed

As per the latest news from Google, the Angular2 has already been started using for production applications within Google.
Because Angular2 is approaching it's release soon, an adapter for angular2 is required.

Oops I missed that this has already been requested. We'll track it on #86.


Add new Discovery parser

This commit introduces three new AutoValue classes which implement all
the required Discovery parsing functionality for Discovery samplegen.
These classes are introduced in this commit, but are not used anywhere
yet. The eventual goal is to eliminate any dependency on
DiscoveryImporter, ApiaryConfig, and
ApiaryConfigToSampleConfigConverter.

Codecov Report

Merging #1198 into master will increase coverage by 0.04%.
The diff coverage is 90%.

@@             Coverage Diff              @@
##             master    #1198      +/-   ##
============================================
+ Coverage        86%   86.04%   +0.04%
- Complexity     3682     3717      +35
============================================
  Files           372      376       +4
  Lines         14588    14738     +150
  Branches       1627     1648      +21
============================================
+ Hits          12547    12682     +135
- Misses         1606     1611       +5
- Partials        435      445      +10

Impacted Files
Coverage Δ
Complexity Δ

...ava/com/google/api/codegen/discovery/Document.java
100% <100%> (ø)
8 <8> (?)

.../java/com/google/api/codegen/discovery/Method.java
100% <100%> (ø)
6 <6> (?)

...om/google/api/codegen/discovery/DiscoveryNode.java
73.17% <73.17%> (ø)
17 <17> (?)

.../java/com/google/api/codegen/discovery/Schema.java
92.59% <92.59%> (ø)
4 <4> (?)

Continue to review full report at Codecov.

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

LGTM, you can decide if you want others to look at it too.


add broken snapshot to list of broken snapshots

For additional context, this PR will:

Stop the hourly emails I get for that snapshot failing to build.
Allow me to know when a new snapshot fails, which is a good way to detect that we need to update something in the docs repo to match a change already made in a code repo.


Add workflow to test examples are compilable

And fix those codes that trip the new workflow
Example of a failing run: https://github.com/codee-com/open-catalog/actions/runs/12238572380/job/34136975245

Just noticed that the output of the script you shared seems to be a little convoluted. For instance, the first failure occurs when compiling PWD003/example-omp.f90, and the corresponding compiler errors are shown after the first status line of the next file (Trying ... PWD004 ...).
Could we solve this by only keeping the last status line for each file?; i.e., the ones with the Good or Bad note.

This was easier than expected, I just used the CHECK_{START,PASS,FAIL} that CMake already provides. I think it's good to keep the two lines in case the try_compile call has a CMake error itself, you'll see which file was going to be compiled right above it (I know because it happened to me).


update to 1.12.1

closes https://github.com/rapidsai/ucx-split-feedstock/issues/80
cc @pentschev

rerun tests

It seems that this is failing because it's looking for sys/auxv.h, which is provided by glibc-headers-2.17-*, this change was introduced in https://github.com/openucx/ucx/pull/7909 in UCX 1.12.1 to fix some issues reported by us and we really need that to build properly. According to https://conda-forge.org/docs/maintainer/knowledge_base.html#using-centos-7 we should be able to use glibc 2.17 adding those changes. Could we try that @quasiben ?

Yes, I can try that.  It's odd that the conda-forge version didn't require that inclusion.  Also, do you think we should also add the patch in the PR John listed above ?
https://github.com/conda-forge/ucx-split-feedstock/pull/92/files

Yes, I can try that. It's odd that the conda-forge version didn't require that inclusion. Also, do you think we should also add the patch in the PR John listed above ? https://github.com/conda-forge/ucx-split-feedstock/pull/92/files

Hmm, I actually overlooked that originally. My testing was done without that patch where I confirmed having #define HAVE_DECL_GETAUXVAL 1. That has anyway been fixed in https://github.com/openucx/ucx/commit/1540181cee911d6f79fbb080b6f35d59785e6b19 (will be available in 1.13.0), so assuming glibc 2.17 indeed resolves the issue, I think the patch is unnecessary.

I'm not sure what the build errors mean:

Solving environment: ...working... WARNING conda.models.version:get_matcher(535): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 1.*, but conda is ignoring the .* and treating it as 1
WARNING conda.models.version:get_matcher(535): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 2.*, but conda is ignoring the .* and treating it as 2
WARNING conda.models.version:get_matcher(535): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 3.*, but conda is ignoring the .* and treating it as 3
failed
Traceback (most recent call last):
  File "/opt/conda/bin/conda-build", line 11, in <module>
    sys.exit(main())
  File "/opt/conda/lib/python3.9/site-packages/conda_build/cli/main_build.py", line 488, in main
    execute(sys.argv[1:])
  File "/opt/conda/lib/python3.9/site-packages/conda_build/cli/main_build.py", line 477, in execute
    outputs = api.build(args.recipe, post=args.post, test_run_post=args.test_run_post,
  File "/opt/conda/lib/python3.9/site-packages/conda_build/api.py", line 186, in build
    return build_tree(
  File "/opt/conda/lib/python3.9/site-packages/conda_build/build.py", line 3088, in build_tree
    packages_from_this = build(metadata, stats,
  File "/opt/conda/lib/python3.9/site-packages/conda_build/build.py", line 2051, in build
    output_metas = expand_outputs([(m, need_source_download, need_reparse_in_env)])
  File "/opt/conda/lib/python3.9/site-packages/conda_build/render.py", line 788, in expand_outputs
    for (output_dict, m) in deepcopy(_m).get_output_metadata_set(permit_unsatisfiable_variants=False):
  File "/opt/conda/lib/python3.9/site-packages/conda_build/metadata.py", line 2120, in get_output_metadata_set
    conda_packages = finalize_outputs_pass(ref_metadata, conda_packages, pass_no=0,
  File "/opt/conda/lib/python3.9/site-packages/conda_build/metadata.py", line 781, in finalize_outputs_pass
    fm = finalize_metadata(om, parent_metadata=parent_metadata,
  File "/opt/conda/lib/python3.9/site-packages/conda_build/render.py", line 546, in finalize_metadata
    build_unsat, host_unsat = add_upstream_pins(m,
  File "/opt/conda/lib/python3.9/site-packages/conda_build/render.py", line 386, in add_upstream_pins
    build_deps, build_unsat, extra_run_specs_from_build = _read_upstream_pin_files(m, 'build',
  File "/opt/conda/lib/python3.9/site-packages/conda_build/render.py", line 373, in _read_upstream_pin_files
    deps, actions, unsat = get_env_dependencies(m, env, m.config.variant,
  File "/opt/conda/lib/python3.9/site-packages/conda_build/render.py", line 138, in get_env_dependencies
    actions = environ.get_install_actions(tmpdir, tuple(dependencies), env,
  File "/opt/conda/lib/python3.9/site-packages/conda_build/environ.py", line 799, in get_install_actions
    actions = install_actions(prefix, index, specs, force=True)
  File "/opt/conda/lib/python3.9/site-packages/conda/common/io.py", line 88, in decorated
    return f(*args, **kwds)
  File "/opt/conda/lib/python3.9/site-packages/conda/plan.py", line 474, in install_actions
    txn = solver.solve_for_transaction(prune=prune, ignore_pinned=not pinned)
  File "/opt/conda/lib/python3.9/site-packages/conda/core/solve.py", line 152, in solve_for_transaction
    unlink_precs, link_precs = self.solve_for_diff(update_modifier, deps_modifier,
  File "/opt/conda/lib/python3.9/site-packages/conda/core/solve.py", line 195, in solve_for_diff
    final_precs = self.solve_final_state(update_modifier, deps_modifier, prune, ignore_pinned,
  File "/opt/conda/lib/python3.9/site-packages/conda/core/solve.py", line 313, in solve_final_state
    ssc = self._add_specs(ssc)
  File "/opt/conda/lib/python3.9/site-packages/conda/core/solve.py", line 707, in _add_specs
    conflicts = ssc.r.get_conflicting_specs(tuple(MatchSpec(_)
  File "/opt/conda/lib/python3.9/site-packages/conda/resolve.py", line 1109, in get_conflicting_specs
    C = r2.gen_clauses()
  File "/opt/conda/lib/python3.9/site-packages/conda/common/io.py", line 88, in decorated
    return f(*args, **kwds)
  File "/opt/conda/lib/python3.9/site-packages/conda/resolve.py", line 912, in gen_clauses
    for ms in self.ms_depends(prec):
  File "/opt/conda/lib/python3.9/site-packages/conda/resolve.py", line 796, in ms_depends
    deps = [MatchSpec(d) for d in prec.combined_depends]
  File "/opt/conda/lib/python3.9/site-packages/conda/models/records.py", line 340, in combined_depends
    result = {ms.name: ms for ms in MatchSpec.merge(self.depends)}
  File "/opt/conda/lib/python3.9/site-packages/conda/models/match_spec.py", line 478, in merge
    reduce(lambda x, y: x._merge(y, union), group) if len(group) > 1 else group[0]
  File "/opt/conda/lib/python3.9/site-packages/conda/models/match_spec.py", line 478, in <lambda>
    reduce(lambda x, y: x._merge(y, union), group) if len(group) > 1 else group[0]
  File "/opt/conda/lib/python3.9/site-packages/conda/models/match_spec.py", line 509, in _merge
    final = this_component.merge(that_component)
  File "/opt/conda/lib/python3.9/site-packages/conda/models/match_spec.py", line 760, in merge
    raise ValueError("Incompatible component merge:\n  - %r\n  - %r"
ValueError: Incompatible component merge:
  - 'mpi_mpich_*'
  - 'mpi_mpich_tempest*'

Seems like it fails while trying to satisfy mpich, which we don't use/depend upon. Any ideas @quasiben @jakirkham ?

closing in favor of conda-forge package :)

Thanks all! 😄
Adding the ucx-py recipe to the ucx-py repo with PR ( https://github.com/rapidsai/ucx-py/pull/843 ).


Please update to the latest version of the arco design/请同步最新版本的arco design

[x] I'm sure this does not appear in the issue list of the repository

基本信息
现有案例
for example: Dialog full screen.
例如：对话框全屏。
预期解决问题
There are many new features that require the new version of arco design, which hopefully will be updated in time.
有许多新特性需要新版本的arco design，希望能及时更新。

@arect 今天会发版更新一下。如果想体验使用新版可以自行安装哈。


firebase-query not retrieving items

Description
firebase-query does not list items in /notes/ but lists items in /notes/[[user.uid]]
Expected outcome
should be able to retrieve items from /notes/
Actual outcome
does not list items in /notes/ but lists items in /notes/[[user.uid/
Steps to reproduce
working
<firebase-query
    id="query"
    app-name="notes"
    path="/events/[[user.uid]]/"
    data="{{notes}}">
</firebase-query>

not working
<firebase-query
    id="query"
    app-name="notes"
    path="/events/schools/comp/"
    data="{{notes}}">
</firebase-query>

Browsers Affected

[* ] Chrome
[* ] Firefox
[ ] Safari 9
[ ] Safari 8
[ ] Safari 7
[* ] Edge
[ ] IE 11
[ ] IE 10
other browsers untested

Seems like a the user do not have access to the path in question (can you have a look at your rules).
For additional info, activate the log:
<firebase-query
  log
  id="query"
  ...
></firebase-query>

thanks for the reply @christophe-g  i turned the database rules to public just in case the user didn't have access, just a side note but i am able to fetch that path on the android app with the same user
as for the log it returns
Initializing stored value.
thanks

@bkr32 I'm having the same problem. Are you getting a warning about _flattenBehaviorsList?
[firebase-query::_flattenBehaviorsList]: behavior is null, check for missing or 404 import

@phidias51  i too have a variation of that warning [my-app::_flattenBehaviorsList]: behavior is null, check for missing or 404 import i have no clue as to what is missing or hasn't been imported

it seems firebase-query simply wont fetch any items from a path without [[user.uid]] i've tried binding any response and sending it to php to query my registration ID's and send notifications to those but without this im pretty stuck,
any suggestions @christophe-g
thanks

Oh, right - you indeed need to have [[user.id]] resolved for a path like /events/[[user.uid]]/. Otherwise, your path will be stamped as not ready and the related firebase element will not fetch any data.
See:
__pathReady: function(path) {
        return path && path.split('/').slice(1).indexOf('') < 0;
      },

If you want to fetch at /events  use it as your path.
C.

I've found a few reasons that this might occur:
The firebase-app tag was specified improperly. If the firebase console
would generate a tag instead of a JavaScript snippet, this could be avoided.
The firebase-auth tag was specified improperly. Check the app name to make
sure it agrees with the firebase-app tag.
The security rules for the node you're trying to access don't agree with
the account that you're using.
The CORS plugin in chrome was interfering with communication with the
firebase database.
I "dropped" the firebase database and re-created it (along with the whole
app), but that hasn't fixed the problem yet.
Mark
On Feb 10, 2017 1:04 PM, "christophe geiser"<EMAIL_ADDRESS>wrote:

Oh, right - you indeed need to have [[user.id]] resolved for a path like
/events/[[user.uid]]/. Otherwise, your path will be stamped as not ready
and the related firebase element will not fetch any data.
See:
__pathReady: function(path) {
return path && path.split('/').slice(1).indexOf('') < 0;
},
If you want to fetch at /events use it as your path.
C.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/firebase/polymerfire/issues/178#issuecomment-279065355,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABOqRzN5dw3Ra5w0N1EO22STReTQQOqeks5rbNDcgaJpZM4L3M5M
.

using /notes fixed my issue thanks @christophe-g


Randomly getting the following exception

I'm spawning a bunch of sprites, scaling their images this way after I load them:
`
def scale_image(image, scale=1):
if scale == 1:
return image
image = image.get_image_data()
texture_width = int(image.width * scale)
texture_height = int(image.height * scale)
newdata = c_buffer(texture_width * texture_height * 4)
gluScaleImage(GL_RGBA,
              image.width, image.height,
              GL_UNSIGNED_BYTE,
              image.get_data('RGBA', image.width * 4),
              texture_width,
              texture_height,
              GL_UNSIGNED_BYTE,
              newdata)
return ImageData(texture_width, texture_height, 'RGBA', newdata)

`
and I'm randomly getting the below exception from time to time (1 out of 20-30 times I run the game):
File "/Users/wojtek/PycharmProjects/lands/client/units.py", line 142, in init
super(Zombie, self).init(img=self.anim_spec.idle_animation(self), world_x=x, world_y=y, max_hp=20)
File "/Users/wojtek/PycharmProjects/lands/client/units.py", line 15, in init
super(Unit, self).init(*args, **kwargs)
File "/Users/wojtek/PycharmProjects/lands/client/base.py", line 43, in init
super(DestructibleSprite, self).init(*args, **kwargs)
File "/Users/wojtek/PycharmProjects/lands/client/base.py", line 11, in init
super().init(img, *args, **kwargs)
File "/Users/wojtek/PycharmProjects/lands/venv/lib/python3.7/site-packages/pyglet/sprite.py", line 248, in init
self._create_vertex_list()
File "/Users/wojtek/PycharmProjects/lands/venv/lib/python3.7/site-packages/pyglet/sprite.py", line 394, in _create_vertex_list
4, vertex_format, 'c4B', ('t3f', self._texture.tex_coords))
File "/Users/wojtek/PycharmProjects/lands/venv/lib/python3.7/site-packages/pyglet/graphics/init.py", line 293, in vertex_list
return _get_default_batch().add(count, 0, None, *data)
File "/Users/wojtek/PycharmProjects/lands/venv/lib/python3.7/site-packages/pyglet/graphics/init.py", line 371, in add
vlist = domain.create(count)
File "/Users/wojtek/PycharmProjects/lands/venv/lib/python3.7/site-packages/pyglet/graphics/vertexdomain.py", line 277, in create
start = self._safe_alloc(count)
File "/Users/wojtek/PycharmProjects/lands/venv/lib/python3.7/site-packages/pyglet/graphics/vertexdomain.py", line 247, in _safe_alloc
return self.allocator.alloc(count)
File "/Users/wojtek/PycharmProjects/lands/venv/lib/python3.7/site-packages/pyglet/graphics/allocation.py", line 196, in alloc
self.sizes[-1] += size
IndexError: list index out of range

If you are using sprites, why not just use sprite.scale = scale_val instead of trying to manipulate the image data directly?

I had issues with the bounding box for sprite collisions being wrongly calculated when I used sprite scaling.  So I just moved scaling to when loading images in order to avoid that.

@vibrant  If possible could you repost your code with proper formatting? You can put three ` marks before and after each code block, on their own line. Such as:
```
code_here()
```
Also, are you using threading at all? It sort of smells like a race condition.

@benmoran56 Nope, not using threading at all.  I just spawn 100 'enemy' sprites whose images/animations I first scale down using this code:
def scale_image(image, scale=1):
    if scale == 1:
        return image

    image = image.get_image_data()
    texture_width = int(image.width * scale)
    texture_height = int(image.height * scale)
    newdata = c_buffer(texture_width * texture_height * 4)
    gluScaleImage(GL_RGBA,
                  image.width, image.height,
                  GL_UNSIGNED_BYTE,
                  image.get_data('RGBA', image.width * 4),
                  texture_width,
                  texture_height,
                  GL_UNSIGNED_BYTE,
                  newdata)
    return ImageData(texture_width, texture_height, 'RGBA', newdata)

If I remove the scaling then the app starts up for 30 seconds or more, don't have the patience to check if that eliminates the bug, but just ran it 5 times and it didn't bug out.  I don't scale to a multiple of 2 though so maybe that's the issue?
Pasing the exception that I just reproduced again:
Traceback (most recent call last):
  File "/Users/wojtek/PycharmProjects/lands/client/main.py", line 23, in <module>
    from client.game import game
  File "/Users/wojtek/PycharmProjects/lands/client/game.py", line 139, in <module>
    game = Game(width=WIN_WIDTH, height=WIN_HEIGHT)
  File "/Users/wojtek/PycharmProjects/lands/client/game.py", line 50, in __init__
    spawn_initial_enemies(self)
  File "/Users/wojtek/PycharmProjects/lands/client/spawner.py", line 20, in spawn_initial_enemies
    random_spawn(game, Soldier)
  File "/Users/wojtek/PycharmProjects/lands/client/spawner.py", line 11, in random_spawn
    enemy = enemy_class(400 + random.randint(0, 1500), 400 + random.randint(0, 1500)).randrot()
  File "/Users/wojtek/PycharmProjects/lands/client/units.py", line 158, in __init__
    super(Soldier, self).__init__(img=self.anim_spec.idle_animation(self), world_x=x, world_y=y, max_hp=20)
  File "/Users/wojtek/PycharmProjects/lands/client/units.py", line 15, in __init__
    super(Unit, self).__init__(*args, **kwargs)
  File "/Users/wojtek/PycharmProjects/lands/client/base.py", line 43, in __init__
    super(DestructibleSprite, self).__init__(*args, **kwargs)
  File "/Users/wojtek/PycharmProjects/lands/client/base.py", line 11, in __init__
    super().__init__(img, *args, **kwargs)
  File "/Users/wojtek/PycharmProjects/lands/venv/lib/python3.7/site-packages/pyglet/sprite.py", line 248, in __init__
    self._create_vertex_list()
  File "/Users/wojtek/PycharmProjects/lands/venv/lib/python3.7/site-packages/pyglet/sprite.py", line 394, in _create_vertex_list
    4, vertex_format, 'c4B', ('t3f', self._texture.tex_coords))
  File "/Users/wojtek/PycharmProjects/lands/venv/lib/python3.7/site-packages/pyglet/graphics/__init__.py", line 293, in vertex_list
    return _get_default_batch().add(count, 0, None, *data)
  File "/Users/wojtek/PycharmProjects/lands/venv/lib/python3.7/site-packages/pyglet/graphics/__init__.py", line 371, in add
    vlist = domain.create(count)
  File "/Users/wojtek/PycharmProjects/lands/venv/lib/python3.7/site-packages/pyglet/graphics/vertexdomain.py", line 277, in create
    start = self._safe_alloc(count)
  File "/Users/wojtek/PycharmProjects/lands/venv/lib/python3.7/site-packages/pyglet/graphics/vertexdomain.py", line 247, in _safe_alloc
    return self.allocator.alloc(count)
  File "/Users/wojtek/PycharmProjects/lands/venv/lib/python3.7/site-packages/pyglet/graphics/allocation.py", line 196, in alloc
    self.sizes[-1] += size
IndexError: list index out of range

Hmm, the error you're seeing is really strange. I can't see how gluScale would have any effect on the allocator code.
For good measure, could you throw a call to glFlush() at the end of your scale method?
Going back to your original issue, what problem were you running into with the bounding box calculations? Fixing that might be the simplest way to go, and would be more performant.

@benmoran56 another one I just got :)
Traceback (most recent call last):
  File "/Users/wojtek/PycharmProjects/lands/client/main.py", line 24, in <module>
    from client.game import game
  File "/Users/wojtek/PycharmProjects/lands/client/game.py", line 137, in <module>
    game = Game(width=WIN_WIDTH, height=WIN_HEIGHT)
  File "/Users/wojtek/PycharmProjects/lands/client/game.py", line 52, in __init__
    spawn_initial_enemies(self)
  File "/Users/wojtek/PycharmProjects/lands/client/spawner.py", line 25, in spawn_initial_enemies
    random_spawn(game, Zombie)
  File "/Users/wojtek/PycharmProjects/lands/client/spawner.py", line 19, in random_spawn
    game.add_collidable_sprite(enemy)
  File "/Users/wojtek/PycharmProjects/lands/client/game.py", line 64, in add_collidable_sprite
    sprite.batch = self.sprites_batch
  File "/Users/wojtek/PycharmProjects/lands/venv/lib/python3.7/site-packages/pyglet/sprite.py", line 316, in batch
    self._vertex_list.delete()
  File "/Users/wojtek/PycharmProjects/lands/venv/lib/python3.7/site-packages/pyglet/graphics/vertexdomain.py", line 414, in delete
    self.domain.allocator.dealloc(self.start, self.count)
  File "/Users/wojtek/PycharmProjects/lands/venv/lib/python3.7/site-packages/pyglet/graphics/allocation.py", line 308, in dealloc
    assert p >= 0 and size <= alloc_size - p, 'Region not allocated'
AssertionError: Region not allocated

@vibrant The AssertionError: Region not allocated is caused by attempting to delete a vertex list (or sprite) that has already been deleted.

Closing due to lack of reply, but please follow up if you're still seeing issues.

Hi! I'm having the same issue with pyglet 2.0.16.
The error also happens randomly, it's quite hard to reproduce consistently but it happens after I attribute a sprite to a batch.
I'm doing something a bit like.
Loop:
  my_img = ...
  spr1 = Sprite(img=my_img)
  ...
  spr2 = Sprite(img=my_img)
  spr2.batch = my_batch

traceback:
  File ((mycode.py))
    "spr2.batch = my_batch"

  File pyglet\sprite.py:435 in batch
    self._vertex_list.delete()

  File pyglet\graphics\vertexdomain.py:267 in delete
    super().delete()

  File pyglet\graphics\vertexdomain.py:157 in delete
    self.domain.allocator.dealloc(self.start, self.count)

  File pyglet\graphics\allocation.py:264 in dealloc
    assert p >= 0 and size <= alloc_size - p, 'Region not allocated'  # noqa: PT018

AssertionError: Region not allocated

Values for p, size and alloc_size are: -48, 4, 4
It seems that I also have the following issue which looks like it's related (same inconsistency / difficulty to reproduce / around the same code). This one is when I create the sprite.
traceback:
  File ((mycode.py))
    "spr1 = Sprite(img=my_img)"

  File pyglet\sprite.py:334 in __init__
    self._create_vertex_list()

  File pyglet\sprite.py:496 in _create_vertex_list
    self._vertex_list = self.program.vertex_list_indexed(

  File pyglet\graphics\shader.py:1346 in vertex_list_indexed
    return self._vertex_list_create(count, mode, indices, None, batch=batch, group=group, **data)

  File pyglet\graphics\shader.py:1284 in _vertex_list_create
    vlist = domain.create(count, len(indices))

  File pyglet\graphics\vertexdomain.py:694 in create
    start = self.safe_alloc(count)

  File pyglet\graphics\vertexdomain.py:425 in safe_alloc
    return self.allocator.alloc(count)

  File pyglet\graphics\allocation.py:136 in alloc
    del self.starts[i + 1]

IndexError: list assignment index out of range

I'm not sure on how to debug this issue. I'm probably doing something wrong but I don't know where the issue is or how to solve it.

Minimal code to reproduce:

put a debug.png near the script
run the code for a bit of time (<5minutes, 2000~10000 iterations, very inconsistent)
AssertionError: Region not allocated will happen randomly after some time

from pyglet.gl import *
import pyglet

#init
window = pyglet.window.Window(800, 600, resizable=True)
batch = pyglet.graphics.Batch()

#MySprite
class MySprite:
    cache_e_to_imgs = {}
    def __init__(self, e):

        if not e in MySprite.cache_e_to_imgs:
            MySprite.cache_e_to_imgs[e] = [pyglet.resource.texture(f'{e}.png')]

        imgs = MySprite.cache_e_to_imgs[e]
        anim = [pyglet.sprite.Sprite(img=img) for img in imgs]
        self.anim, self.frames = anim, imgs

#Visual component of an object
class MyVisualObject:
    def __init__(self, obj):
        self.object = obj

    #init sprite or skeleon
    def init(self, e=None):
        self.v = MySprite(self.object.name)

#An object
class MyObject:
    def __init__(self,name):
        self.name = name
        self.v = MyVisualObject(self)
        self.v.init()

data = {'i':0}
@window.event
def on_draw():
    glClearColor(.7,.7,.7,1)
    window.clear()

    #new_obj
    new_obj = MyObject('debug')
    img = new_obj.v.v.frames[0]

    print(data['i'], 'id(texture):', id(img))
    spr = pyglet.sprite.Sprite(img=img)
    spr.batch = batch

    data['i'] += 1
    batch.draw()

pyglet.app.run()


Implement a flush mechanism to push unfinished surveys downstream

What is the context of this PR?
Add a /flush endpoint to survey runner that authenticates via the JWT, identifies which survey response the flush is required for (collection_exercise_sid, eq_id, form_type, ru_ref), and attempts to flush the requested survey response.
N.B at the moment its purely returning a status 200 if successful
How to review

Put a logger message in flush.py to expose the message being sent to RabbitMQ, just before submitter.send_answers(message) line 60
Open a survey as normal, taking note of the collection_exercise_sid, eq_id, form_type, ru_ref. Close the survey without submitting
Go to /dev_flush and put in the details above and hit flush, it should return a status 200
Test for incorrect and missing details and double flushing, recording the results

This can't be merged until the completed flag has been added to SDX - see https://github.com/ONSdigital/sdx-validate/issues/28


Link to more detailed calicoctl install instructions e.g. for K8s

Description
I was trying to find this documentation and it took me a while; I ended up finding the proper link through the Calico Users Slack server, of all things. I figure providing a link to the docs in this README will help others save some time.
It could be argued that the reference page should link to the install page, but that would be its own PR. More breadcrumb trails don't hurt, IMO.
Since this only changes the README, I'm not sure how much the PR template's questions apply here. Like, there aren't any tests for this, nor components affected besides the README itself, right? So I'm just going to check off all the to-dos and apologize for being brazen.
Related issues/PRs
N/A
Todos

[x] Tests
[x] Documentation
[x] Release note

Release Note
N/A
Reminder for the reviewer
Make sure that this PR has the correct labels and milestone set.
Every PR needs one docs-* label.

docs-pr-required: This change requires a change to the documentation that has not been completed yet.
docs-completed: This change has all necessary documentation completed.
docs-not-required: This change has no user-facing impact and requires no docs.

Every PR needs one release-note-* label.

release-note-required: This PR has user-facing changes. Most PRs should have this label.
release-note-not-required: This PR has no user-facing changes.

Other optional labels:

cherry-pick-candidate: This PR should be cherry-picked to an earlier release. For bug fixes only.
needs-operator-pr: This PR is related to install and requires a corresponding change to the operator.

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

/sem-approve


Update Readme

The Readme doesn't seem to be up to date, unfortunately.
Any chance of updating it? :)

Can't seem to get any of the example to work, actually.

What specifically doesn't work? If I build the test with make -f test.mk it runs.

The code in the README uses stuff from my apone library and can't be used directly, they are more for demonstration.

Getting a bunch of compiler errors, but I'm still trying to figure out the issue. Right now it feels like a platform specific issue (Windows). I think max macros cause issues on Windows, so I'll try getting around that first.

All of the compiler errors happened to be caused by #include "windows.h", which has it's own implementation of a max macro. This was fixed with #define NOMINMAX.
Regarding the Readme, for example this doesn't work (onUpdate doesn't exist in this case):
Tween::make().fromTo(200, 0).linear().onUpdate([](int x) {
    printf("%d\n", x);
});

So far I haven't actually been able to get any of the callbacks working. Here's a small example of how I'm trying to use the library:
float y = 0;
Tween::make().to(y, 10.0f).onUpdate([](float y){}).seconds(1.0);

This produces several compiler errors, such as this:
tween.h(201): error C2668: 'utils::CallbackCaller<T &,tween::Tween,double>::callme': ambiguous call to overloaded function
1>          with
1>          [
1>              T=float
1>          ]

I'm fairly sure I'm just not using it properly though.

OK, I never tried it with Visual Studio, but VC is not very good at C++11 support AFAIK. Are you using the bleeding edge/latest VC you can get at least?

I am, yes. The project I'm using it in is cross-platform though, so I'll see if it'll compile on Linux or OS X instead.

I can confirm, it builds and works exactly as intended on both Linux and OS X. Hmm.

I'm fairly use the issue stems from this:
callback.h(16): error C2955: 'std::conditional': use of class template requires template argument list

I'm currently working around the problem by storing references to each tweens, starting them manually, then checking if _slideInTween.allTweens.size() == 0, but this seems very cumbersome when compared to using lambdas.

Did you try the very latest Visual Studio?

I'm on the very latest Visual Studio Community 2015, with the latest updates.

Hey there, I'm running into this as well (on Visual Studio Community 2015). Everything runs great on OSX/Linux! I'm moving my dev setup to Windows though and would love to get this working. Any update on either of your fronts?

@K0j0 Never got it to work, sorry. :/


Containerise the frontend and backend

The project lacks a docker-file for the frontend and backend of the project. This is useful for people who want to run the project in isolated environments without the need for setting up the project locally from scratch. Can I be assigned this issue under GSSoC 24.

thank you @vverma022 for raising the issue, but currently i dont think there's a need for this issue.


Scary Load Times in 1.9

Use @recompile_invalidations

The problem seems to have been fixed (atleast on CI)

Tested on Julia 1.9.3:
julia> @time using NonlinearSolve
[ Info: Precompiling NonlinearSolve [8913a72c-1f9b-4ce2-8d82-65094dcecaec]
 89.902674 seconds (6.52 M allocations: 423.038 MiB, 3.10% gc time, 0.86% compilation time)


Support multibyte characters with breakat

This is a pull-request working in progress.

This patch behaves a little bit incorrectly. The following lines doesn't follow and scroll with breaking lines above.

@brammool Hmm, it is difficult to figure out why do not scroll-down correctly. Can you figure out what is still wrong?

Sorry, I already have a lot of things to look into.

I don't know about the scroll-down problem, but here are a few remarks on the patch:

Going through the list is quite slow, this should use binary search.  Sort the numbers in fill_breakat_flags() and do the binary search in has_breakat_chars()
In has_breakat_chars() the formatting is not in Vim style.  "*p == NULL" should be "*p == NUL".

Is this still being worked on? Do you have an automated test for this functionality?

This seems to have been stalled. I am closing this one. If you ever make progress (or rebase on current master), please create a new PR.


Feature request: ssm-agent installed by default on Amazon Images

Feature Request
I believe that Nix should ship its EC2 images with Amazon Systems Manager Agent out of the box by default. All Amazon-provided AMIs including Amazon Linux and Ubuntu as well as their Windows images come with this agent which allows you to log into the instance without exposing port 22 or using an SSH key. I would argue that this is something that users might expect in AWS from an image and be surprised that it is not present.
This would make deploying and administering Nix on AWS easier and more secure for those familiar with this method of connecting, and it could be disabled via an Nix configuration if it is not desired on the instance.
Relevant Links

https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/virtualisation/amazon-image.nix
https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/misc/ssm-agent.nix
https://docs.aws.amazon.com/systems-manager/latest/userguide/ssm-agent.html
https://docs.aws.amazon.com/systems-manager/latest/userguide/ami-preinstalled-agent.html

I agree. Wanna send a PR to enable it? I can review it.

Where can I make the change? Is there a declarative list of packages that get added to the images?

It's here:
https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/virtualisation/amazon-image.nix

Btw, does SSM agent work correctly inside NixOS?
It seems at startup SSM tries to run some tests and bootstrap, but fails. Excerpt from /var/log/amazon/ssm/amazon-ssm-agent.log:
"runtimeStatus": {
  "aws:runShellScript": {
    "status": "Failed",
    "code": 127,
    "name": "aws:runShellScript",
    "output": "\n----------ERROR-------\nsh: line 1: /var/lib/amazon/ssm/i-0a19eaa44cdc5988d/document/orchestration/5fd87533-dbde-4f6f-b55e-688a9883eb32/awsrunShellScript/0.awsrunShellScript/_script.sh: cannot execute: required file not found\nfailed to run commands: exit status 127",
    "startDateTime": "2024-03-16T06:50:13.719Z",
    "endDateTime": "2024-03-16T06:50:13.804Z",
    "outputS3BucketName": "imagepipeline-logs",
    "outputS3KeyPrefix": "imagepipelineprefix/nixos-rebuild/1.0.0/1/wf-75bb3cd2-783c-4a85-971e-3eb40187d962/ApplyBuildComponents/5fd87533-dbde-4f6f-b55e-688a9883eb32/i-0a19eaa44cdc5988d/awsrunShellScript",
    "stepName": "0.awsrunShellScript",
    "standardOutput": "",
    "standardError": "sh: line 1: /var/lib/amazon/ssm/i-0a19eaa44cdc5988d/document/orchestration/5fd87533-dbde-4f6f-b55e-688a9883eb32/awsrunShellScript/0.awsrunShellScript/_script.sh: cannot execute: required file not found\nfailed to run commands: exit status 127"
  }
}

Here is the bash script itself, which AWS SSM uploads to agent: script.sh.txt.
Apparently, the failure prevents from running Image Builder pipeline in my case.

Does the agent crash? Or keep going?
I've had it working on 23.05 to log in to machines as an alternative to ssh at work. But didn't really look at the logs
We should see if we can convince it not to run this step.
I don't think AWS image builder is gonna work well with nixos anyway.

There's a PR up for this:  https://github.com/NixOS/nixpkgs/pull/294493

There's a PR up for this: #294493

It's not enough for AWS Image Builder, which utilizes AWS SSM agent.
@arianvp, it crashes on the first line because of #!/bin/bash. Ok, we can solve it with ln -s /run/current-system/sw/bin/bash /bin/bash. Further it requires cloud-init executable. Ok, I solved it with a combination of services.cloud-init.enable = true and cloud-init system package (however, cloud-config.service and apply-ec2-data.service definitely overlap). Then it downloads /tmp/imagebuilder/TaskOrchestratorAndExecutor/bootstrap.sh executable, which exits with error:
# /tmp/imagebuilder/TaskOrchestratorAndExecutor/awstoe
bash: /tmp/imagebuilder/TaskOrchestratorAndExecutor/awstoe: cannot execute: required file not found

Though, its library dependencies are satisfied:
# ldd /tmp/imagebuilder/TaskOrchestratorAndExecutor/awstoe
        linux-vdso.so.1 (0x00007ffec3559000)
        libresolv.so.2 => /nix/store/1zy01hjzwvvia6h9dq5xar88v77fgh9x-glibc-2.38-44/lib/libresolv.so.2 (0x00007f3e0a473000)
        libpthread.so.0 => /nix/store/1zy01hjzwvvia6h9dq5xar88v77fgh9x-glibc-2.38-44/lib/libpthread.so.0 (0x00007f3e0a46e000)
        libc.so.6 => /nix/store/1zy01hjzwvvia6h9dq5xar88v77fgh9x-glibc-2.38-44/lib/libc.so.6 (0x00007f3e0a285000)
        /lib64/ld-linux-x86-64.so.2 => /nix/store/1zy01hjzwvvia6h9dq5xar88v77fgh9x-glibc-2.38-44/lib64/ld-linux-x86-64.so.2 (0x00007f3e0a486000)

Forgot to check, obviously it has incompatible interpreter:
# file /tmp/imagebuilder/TaskOrchestratorAndExecutor/awstoe
/tmp/imagebuilder/TaskOrchestratorAndExecutor/awstoe: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, Go BuildID=a9xxwgAIGQObloxPpOa4/77w2Nk7IBZnprXj7Q5RZ/4sY0LutJK2aXl4ayaFQZ/pduPLBCeO2XUlIRdj-OZ, stripped

autoPatchelf awstoe fixed this. Now awstoe runs (manually):
# ./awstoe
AWS Task Orchestrator and Executor (AWSTOE) is an application that allows users to run operations on their respective operating system through TOE documents.

Usage:
  awstoe [flags]
  awstoe [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  help        Help about any command
  run         Execute TOE document.
  validate    Validate TOE document syntax and run sanity check.

Flags:
  -h, --help      help for awstoe
  -v, --version   Displays executable version

Use "awstoe [command] --help" for more information about a command.

It seems we can skip installation of TOE if ${WORKING_DIR}/imagebuilder/TaskOrchestratorAndExecutor/awstoe already exists.
IMAGE_BUILDER_DIR="${WORKING_DIR}/imagebuilder"
TOE_DIR="${IMAGE_BUILDER_DIR}/TaskOrchestratorAndExecutor"
function package_exists() {
    if [ $1 == "TOE" ] ; then
        if [ -f "${TOE_DIR}/awstoe" ]; then return 0
        else return 1
        fi
    else
        $(type "$1" > /dev/null 2>&1 )
        return $?
    fi
}

function bootstrap() {
    mkdir -p ${BOOTSTRAP_DIR}
    if ! package_exists TOE ; then
        install_package TOE
    fi
}

WORKING_DIR can be specified in parameters of Image Recipe. But it's not clear what's the point in our case, because it must be writable.

Assuming Amazon gives instructions on how to install AWSTOE manually, maybe there are other checks before the script above gets uploaded by SSM.

Amazon Image Builder seems like a separate issue.
The fact that it uses a bunch of imperative SSM commands to do image builds seems directly in contradiction with how nix stuff works.
I don't think I will plan to support it any time soon. Just build your image with Nix and upload it with nix run github:NixOS/amis#upload-ami

@arianvp, agree. AWSTOE downloads and executes arbitrary binaries, which have to be patched for Nix (or having some sort of nix-ld onboard).
And generally yes, builders like AWSTOE really contradict with what Nix can do more powerfully.

Influenced by your advice to use another method, I've come up EC2 user_data bash script, which brings flake.nix, flake.lock, etc. via bash heredoc (i.e. EOF stuff) and runs nixos-rebuild in the end. For offline environment --option substituters "s3://BUCKET_NAME?region=REGION&trusted=true" is used. Binary cache gets built as an S3 asset (with local Bundling) and deployed to S3 bucket using BucketDeployment. Fully orchestrated with AWS CDK. So, EC2 instance gets updated in-place. It works.

This is the same setup that I do. Except that I just pass in a nix store path so that the instance doesn't need to have access to GitHub go evaluate the flake
https://github.com/arianvp/nixos-village/blob/411ebd86eed7cbca31ff23b0aa92b02f311b864d/deploy/asg.tf#L50

I just pass in a nix store path so that the instance doesn't need to have access to GitHub go evaluate the flake

I bundle nixpkgs source nix store path into binary cache required for flake evaluation, so that further invocations of nixos-rebuild over ssh work for cases of quick emergency changes in-place. However, I was considering your no-eval variant too, except considering nix-store --export & nix-store --import to pass a single file over S3 instead of a binary cache. Since, my each deployment contains only a single EC2, there is no binary cache reuse benefit and deployment of a single-file CDK S3 Asset would be quicker than CDK BucketDeployment (which spawns additional Lambda for zip unpacking with caveats...). But I stumbled across 2 issues:

nix-store --export cannot run inside a Nix derivation (whereas nix-store --dump can, thus possible to build binary caches reproducibly by nix build)
currently, there is no AWS CLI binary (awscli2 package) available in amazon-init, so no CDK upstream convenience like aws_s3_download_command in user_data

I'm sorry for off-topics.

I will create a Matrix channel where we can discuss AWS + NixOS issues! I will close this topic for now as the PR was merged

https://matrix.to/#/#aws:nixos.org


MMDrawerController vs DZNEmptyDataSet

If i use DZNEmptyDataSet and MMDrawerController in one Project the gesture recognizer  takes over every touch. Its much too easy to open the menu.
I only integrated  DZNEmptyDataSet with Pods haven't implemented it in the Code yet, nevertheless i am fighting with such odd behaviours.

I'm not familiar with that project. Can you post an example and reopen this issue?


crast at the start with advent of ascension and boss of mass destruction

Mod Name
advent of ascension, boss of mass destruction
Mod Homepage
https://www.curseforge.com/minecraft/mc-mods/bosses-of-mass-destruction https://www.curseforge.com/minecraft/mc-mods/advent-of-ascension-nevermine
Describe the bug
crash at start
Steps to reproduce

have ffapi, connector, advent of ascension, bomd
start
see
...

Logs
https://pastebin.com/uViK60p4
Additional context
No response

BOMD is not compatible with Geckolib Forge, try the Fabric version.

I already use the fabric version of gecko try yourself if you don't trust me

The problem here is probably that one of the mods has got Geckolib Forge included/embedded in it, which makes it crash.

ok like said in issue I only use AoA and Bomd with it dependencies os it can be only AoA or Bomd

AoA depend of gecko also but I put fabric version of it so it should use it

I tried with the Fabric version of Geckolib with AoA it crashes.

The problem here comes in 2 parts:

AoA bundles Forge Geckolib, which will be preferred over its Fabric version in case you install both. This means Fabric Geckolib will never be loaded.
Even if you remove Forge Geckolib from AoA and load Fabric Geckolib instead, you get potential item rendering issues as explained in #198

so it's geckolib fabric version who need to make the change

or geckolib forge need to update to avoid init to early

The problem here comes in 2 parts:

AoA bundles Forge Geckolib, which will be preferred over its Fabric version in case you install both. This means Fabric Geckolib will never be loaded.
Even if you remove Forge Geckolib from AoA and load Fabric Geckolib instead, you get potential item rendering issues as explained in Using this with fabric Geckolib can make some items turn invisible #198

How do you remove forge gecko lib from a mod that use it ?
And how do you detect these mods ?
Thanks

to pitch a bit into the situation, using connector extras allows models to show up but does not solve the game crashing when rendering a forge geckolib item. Most of them seem to be AbstractMethodErrors.
crash-2023-11-08_19.35.28-client.txt
crash-2023-11-08_19.27.14-client.txt

Yeah, that happens due to code differences between the two versions of geckolib

In case it solves anything now there is a forge version of Bosses of Mass destruction... https://www.curseforge.com/minecraft/mc-mods/bosses-of-mass-destruction-forge

yeah but it's not the only fabric mod who use geckolib so can be good to solve this or gecko make parity between forge and fabric

So I posted that issue about Enderman Overhaul not working with the fabric version of Geckolib (logs and all necessary info can be found there for anyone curious). What exactly is the issue it has with fabric Geckolib?

Throwing NeepMeat in here as #1010 is a dupe. Works with Geckolib Fabric, doesn't work with the Forge version.

Does anyone have other info on what mods forcibly bundle geckolib forge in then?
If Soulslike Weaponry and similar mods that require geckolib fabric, plus mods that require geckolib forge and AREN'T bundled, BUT work fine with connector's geckolib fabric... that's awesome - but how can we tell what mods we have are bundling geckolib forge and preventing things from working? :/

Hello, still having a similar issue. For some reason, using Geckolib Fabric to replace GeckoLib Forge not only causes a crash with Celestisynth, but also the BCLib mod which is necessary for Better End/Better Nether

https://www.curseforge.com/minecraft/mc-mods/critters-and-companions/files/all?page=1&pageSize=20&gameVersionTypeId=4
https://www.curseforge.com/minecraft/mc-mods/pokeblocks
these mods has the same issue it can't decide between the two and it will crash the game


Flake8 rule 'E999' reported an invalid point

Flake8 reported an invalid point for the rule E999, with the messge SyntaxError: invalid syntax.
This was on the very first line of the script which happens to be a hash-bang line:
#! /usr/bin/env python

Debug information:
Atom version: 1.17.2
Flake8 version: 3.0.4 (pycodestyle: 2.0.0, pyflakes: 1.2.3, mccabe: 0.5.2, flake8-docstrings: 1.0.2, pydocstyle: 1.0.0) CPython 2.7.13 on Darwin

I'm getting this too

I also got the "NaN:NaN". Although now the error is gone somehow and I cannot reproduce it, not even with a one-liner script...

Please update your flake8 version (pip install -U flake8). This particular error should be fixed in flake8>=3.2.1.


 Here is the error after re-running the apero_mk_template:
15:32:08.106-  |FTTEMP1[00325]|A[40-019-00033]:         Reading file: /cosmos99/nirps/apero-data/nirps_he_online/tellu/NIRPS_2024-03-09T05_55_44_531_pp_e2dsff_tcorr_A.fits
15:32:08.156-  |FTTEMP1[00325]|A[40-016-00035]: Identified object as GJ3693 with BERV = 4.0157 km/s
15:32:08.176-  |FTTEMP1[00325]|A[40-017-00036]: Wavelength solution read from infile.
15:32:08.177-  |FTTEMP1[00325]|  Wave file = EF250B7287_pp_e2dsff_A_wave_night_A.fits
15:32:08.387-|FTTEMP1[00325]|I[40-019-00051]: Calculated BERV coverage: 4.893203766774332 km/s
15:32:08.429-  |FTTEMP1[00325]|A[40-019-00034]: E2DS low f filter iteration 1 of 5
15:32:08.664-  |FTTEMP1[00325]|A[40-019-00034]: E2DS low f filter iteration 2 of 5
15:32:08.881-  |FTTEMP1[00325]|A[40-019-00034]: E2DS low f filter iteration 3 of 5
15:32:09.087-  |FTTEMP1[00325]|A[40-019-00034]: E2DS low f filter iteration 4 of 5
15:32:09.298-  |FTTEMP1[00325]|A[40-019-00034]: E2DS low f filter iteration 5 of 5
15:32:09.512-@!|FTTEMP1[00325]|W[40-005-10002]: QUALITY CONTROL FAILED:Insufficient BERV coverage to build template.
15:32:09.512-@!|FTTEMP1[00325]|  BERV coverage was: 4.893203766774332 km/s required > 8.0 km/s
15:32:10.353-|FTTEMP1[00325]| ***************************************************************************
15:32:10.362-|FTTEMP1[00325]|I[40-003-00001]: Recipe apero_mk_template_nirps_he has been successfully completed
15:32:10.370-|FTTEMP1[00325]| ***************************************************************************

Yer os this could mean two things:

There has not been enough observations yet [in which case we ignore this error]
Many files failed reduction (to the telluric correction point)

To check which one it is you can look to see how many raw files there are compared to how many tcorr files there are (probably from ARI) and also check what the distribution in time across a year there is for those that passed all QC and were reduced to the end of the "tcorr" part of the telluric correct.


Publish a JSON Schema ...

... so ppl can use this JSON Schema to generate proper access classes e.g. in Java.

run the api in your browser
https://randomuser.me/api/1.2?results=1&format=pretty
then paste into
http://www.jsonschema2pojo.org/
and you win?

Doesn't work all the time. I do in my Java courses but the problem is the postcode, like
"postcode": 11633,
for a German address. It will be inferred to a integer type, but other countries use strings. If the generator is always printings strings it would be fine again ...

using the jsonschema2pojo i mentioned before, change the 11633 into "11633" it should work no? Or just change it from an integer to a string in the code it generates, then make sure you use a specific version of the API and you don't have to worry about it changing underneath you?
in NZ they are numbers only too, so I have to make sure they're strings in my code, especially as there  are leading 0s.


[MI-2396] Create request modal and add slash command to open request …

…modal

closing this PR as it is already merged https://github.com/Brightscout/mattermost-plugin-servicenow/pull/4


I added unique questions to the list of General CS Quiz

Summary of changes
I added unique questions to the list of General CS Quiz, questions on DNS, firewall, OOP, encapsulation and polymorphism
Checklist

[x] I have read and followed the contribution guidelines.
[x] I have read through the Code of Conduct and agree to abide by the rules.
[x] This PR is for one of the available issues and is not a PR for an issue already assigned to someone else.
[x] My PR title has a short descriptive name so the maintainers can get an idea of what the PR is about.
[x] I have provided a summary of my changes.

closes #XXXXX

@Markson17
Are you still interested in working on this?

Yes I'm still interested in working on it, I would update it later today.


⚠ Bofrost.at has degraded performance

In 97fae4c, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1377 ms

Resolved: Bofrost.at performance has improved in 47bbcb7.


dev 模式无错，打包报错；

Describe the bug
安装完 electron-store 后，使用的pnpm dev 可以，build 报错；删除所有依赖用yarn重装问题解决，晕死；

Electron-Vite Version
1.0.28
Electron Version
25.6.0
Vite Version
4.4.9
Validations

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

https://cn.electron-vite.org/guide/troubleshooting.html#分发

建议看你下故障排除章节


Expose message generator to users.

scippneutron.data_stream module is going to be removed as most of the relevant code is moved to beamlime.
However, beamlime is handling streaming data different from the data_stream.
data_stream module is exposing the buffer to the user in a form of generator,
but beamlime is not going to expose the generator only internally, to its handlers, not to the user.
Users will only see the plots and results of the data reduction.
https://github.com/scipp/scippneutron/blob/525c424ba8770020d6c1d09b18a0c11d94dea1ff/src/scippneutron/data_streaming/data_stream.py#L43-L54
Should we also have a helper that you can stream the data itself in the jupyter notebook or in a script for advanced user...?

We kind of have it as a result_registry.
If we want to save the raw data, we can simply have a workflow that load the data along with the new chunks.


Building call graphs for embedded client-side code in dynamic web applications

Paper link: http://dl.acm.org/citation.cfm?id=2635928

author emailed setp 18 2015


uses depricated packages, example code doesn't work as is (without modification to use the new packages)

These are the new packages (new URLs) which should be quoted in examples:
"github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
"github.com/Azure/azure-sdk-for-go/sdk/azcore"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources"

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

ID: abc812f1-5c2e-f614-50a8-240851237ce6
Version Independent ID: f84a275e-df66-5225-b5dd-b3e0cfbd15c4
Content: Azure SDK for Go authentication with a service principal
Content Source: articles/go/azure-sdk-authentication-service-principal.md
Service: azure
GitHub Login: @Duffney
Microsoft Alias: jduffney

Hi @ealasgarov,
I've updated the article with a different sample that uses the latest packages, resolving the deprecation warnings. Please let me know if this doesn't resolve the issue for you.
Thank you filing this issue, have a great day! :)

#please-close


AimBot aiming at ground or sky

When Im pressing 'alt' my aimbot aiming at ground or sky. How to fix?

Any Fix?


Webmock interfering with before(:suite || :each) in RSpec.configuration?

Ruby 2.1.0
Rails 4.0.3
rspec-rails 2.14.1
My current issue here: http://stackoverflow.com/questions/22585469/rspec-before-suite-not-being-run
I'm trying to stub requests for a given domain on all tests, but the code in the before(:suite) or before(:each) block is never executed when the Webmock gem is bundled. It doesn't even matter whether or not spec_helper.rb contains require 'webmock/rspec' and WebMock.disable_net_connect!(allow_localhost: true).
rspec_helper.rb snippet:
RSpec.configure do |config|
    config.before(:each) do
        raise "This should be raised as an error, but it isn't when Webmock is bundled"
        # This is normally where I'd put stub_request but since this block isn't called...
    end
end

Also of note, the error is being raised when the geocoder gem tries to do an API lookup to maps.googleapis.com upon the creation of a model via FactoryGirl create() within one of the tests.

I know this post is old, but I noticed that if you place webmock gem before travis in your test gem group it causes webmock to throw a WebMock::NetConnectNotAllowedError when you do a 'bundle exec rake'.  Placing webmock at the end of the gem list in the test gem group fixed the problem.


[FLINK-27205][docs-zh] Translate "Concepts -> Glossary" page into Chinese.

What is the purpose of the change

Translate Glossary page into Chinese: https://nightlies.apache.org/flink/flink-docs-master/zh/docs/concepts/glossary/.
The markdown file is located in docs/concepts/glossary.md.
In https://nightlies.apache.org/flink/flink-docs-master/zh/docs/concepts/glossary/, most of them have been translated, but a small part has not been translated into Chinese. Details See FLINK-13037 for information.

Brief change log

Translate "Concepts -> Glossary" page into Chinese.

Verifying this change

This change is a trivial rework / code cleanup without any test coverage.

Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): no
The public API, i.e., is any changed class annotated with @Public(Evolving): no
The serializers:  no
The runtime per-record code paths (performance sensitive): no
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
The S3 file system connector: no

Documentation

Does this pull request introduce a new feature? no
If yes, how is the feature documented? not applicable

@MartijnVisser , Sorry to bother you again, can you help me review this pr? Thank you.


Removed extra | in documentation

Why are these changes needed?
To make the Documentation cleaner.
The Tune-User-Defined-Function doc(i.e https://microsoft.github.io/FLAML/docs/Use-Cases/Tune-User-Defined-Function#details-and-guidelines-on-hyperparameter-search-space) had an extra | after the table.
So I had removed the extra |.
Related issue number
Closes #775
Screenshots
| Before |

| After |

Checks

[x] I've used pre-commit to lint the changes in this PR, or I've made sure lint with flake8 output is two 0s.
[x] I've included any doc changes needed for https://microsoft.github.io/FLAML/. See https://microsoft.github.io/FLAML/docs/Contribute#documentation to build and test documentation locally.
[x] I've added tests (if relevant) corresponding to the changes introduced in this PR.
[x] I've made sure all auto checks have passed.

@sonichi @skzhang1, I have updated the main comment with screenshots. Please have a look

@sonichi @skzhang1, I have updated the main comment with screenshots. Please have a look

Looks good to me! Thanks.


Pure theme - new installation instructions

Edit: I was missing something :)
After pulling the new version, I had a merge conflict (Unmerged paths: (...) deleted by them: tools/zim_update) and zimfw was not accessible.

Pure README has been updated with the following instructions:
Add zmodule sindresorhus/pure --source async.zsh --source pure.zsh to your .zimrc and run zimfw install
I probably miss something, because I have no idea how that zimfw install should work.
Nonetheless, Zim README instructions source ~/.zim/zimfw.zsh install work like a charm.
Should Pure README show the same instructions?

Pulling the latest version with git is not the recommended way to upgrade from the previous version, as ZIM_HOME does not need to be a git repo anymore, and you just need the zimfw.zsh script there. Check the Changelog. Also beware of empty module subdirectories when try to upgrade pulling with git.
Do a fresh install instead.
PRs with suggestions on how to make the upgrade process clearer and easier for users coming from the previous master version are welcome.

Of course I read the Changelog. Rigorously after upgrading :D
I do not use Zim on my main box, then I am not sure about anything so far. In fact, I started checking instruction in Pure README.
Only suggestions I have right now is, perhaps, to make explicit wherever relevant (theme repos, installation notes,...) what should be the recommended way to upgrade from previous version.
Probably, it is cleaner (easier) solution than trying to cope with every possible drawback. Personal example: I have a highly customized (call it messy) $ZDOTDIR configuration. After upgrading, I still have history and tty support broken.
Anyway, as I enjoy Zim and the new architecture sounds amazing, I am going to check what is happening in my test box. Finding something relevant, I will comment here.

@maxdevjs, can we close this?

@ericbn sure :)


Ensure KCM MR is not deleted too early via priority labels

How to categorize this PR?
/area control-plane
/kind bug
What this PR does / why we need it:
Ensures that the KCM ManagedResource containing its ClusterRoleBinding is not deleted too early from the shoot. When this happens, KCM starts crashing with configmaps "extension-apiserver-authentication" is forbidden: User "system:serviceaccount:kube-system:kube-controller-manager" cannot get resource "configmaps" in API group "" in the namespace "kube-system", and deletion of other managed resources may fail since KCM is not there to remove the foregroundDeletion finalizers from various resources.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
This PR is an alternative to #5062 (and therefore undoes its changes). Instead of fixing the issue by setting keep=true on the KCM MR, it splits all managed resources into 2 groups with normal and high priority based on a priority label. The MRs from the high priority group are deleted later in the flow (after the control plane is deleted, since the csi-driver-node daemon set may also use foregroundDeletion finalizers), when it's safe to do so.
This has the following advantages:

No resources are artificially kept in the shoot just to resolve ordering issues.
If there are other MRs in the future that may need to be deleted later, they could simply be labeled with high priority.

It also has the obvious disadvantage that it's a bit more complex, so we should judge the value of the above sufficiently high to justify it.
Release note:
NONE

/invite @rfranzke

I like the pragmatic fix in #5062 and it is a good example for a case where we rather want to use ManagedResource .spec.keepObjects=true (we don't gain much if we clean up this KCM ClusterRoleBinding).
I understand the motivation for this change. On the other side 1) it introduces a bit more complexity and 2) it is not a solution that could cover all potential cases (for example how would we handle the case when there is a dependency between 2 high priority MRs).
That's why I would rather vote to keep the current fix that we have in the master (#5062) and to think about similar approach if we have cases where the .spec.keepObjects=true solution can't do the trick. Or if there are special MRs that have to be deleted later in the flow, a possible solution would be to remove their origin=gardener label and to delete them explicitly later in the deletion flow.


Real-time factor: calculation

I know the metric real time factor (RTF) from STT (or ASR) systems. A RTF of 0.5 would mean than 1 sec is recognized in 0.5 sec.
I would expect a similar logic for TTS systems. But the numbers reported in larynx' debug output as Real-time factor seem to be 1/RTF. This is confusing, isn't it?

Thanks, I had forgotten to flip that. Will be updated in the next release.


Add workflows, github pieces, and pre-commit

Add workflows, github pieces, and pre-commit

They can go out of order as far as I'm concerned.


Feature request: Make Expression Serializable

It would be nice to be able to use jmespath in Spark.  The main requirement for this is that code needs to be serializable so that it can be sent to worker nodes.  Jackson is serializable, for example, so one can define a "user defined function" or udf like this:
import org.apache.spark.sql.functions.udf

val mapper = new ObjectMapper()

// Function that will se serialised and sent to the worker nodes:
val processJson = udf((json: String) => mapper.readValue[SomeClass](json, classOf(SomeClass)) ....

someDataFrame.withColumn("processedJson", processJson(someExistingColumn))

But the same fails for jmespath with a serialisation error:
val runtime = new JacksonRuntime()
val query = runtime.compile("""[?type=='pineapple']""")
val jmespathSelection = udf((json: String): Seq[String] =
   query.search(runtime.parseString(json)) match { case an: ArrayNode => an.elements.asScala.toSeq.map(runtime.toString)}

Happy to work on this when I have time or buy a decent amount of beer for anyone else who gets there first.  It is often just a matter of marking the classes as serialisable.

Getting it to work on Spark seems like a good thing to do, and it shouldn't be too hard. I don't think there is anything that wouldn't be serializable.
The best thing for me would obviously be if you had time to work on it, since you have the code and environment to test it properly. I can probably whip up a Spark environment and get something working, but I couldn't promise that I'd cover all cases. If you gave me some example code that should work but doesn't that would be a start, though.

We have decided to deprecate this project and put the repo in archive mode.


Crest Unity asset is no longer working in 2021.3.3f1

Solved

Hi @Xue1iang, can you share what did you do to solve it?


Update readme

In this PR we modify the README to present the inference example before the training example (as it could interest more people) and adds some examples links. Will update the documentation after the changes have been validated

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


Unclear toast error when creating a custom template with the same name as another

Is your feature request related to a problem? Please describe.
When a user attempts to create a custom template with the same name as another, the error thrown is Deployment error Template name must be unique but this is not a deployment request.
Describe the solution you'd like
Add form validation to the custom templates view so that the Create custom template button is disabled if a user enters a name that is already taken and a warning message next to the name field that the name is taken.
Describe alternatives you've considered
Make the toast error clear that a template of the same name already exists. Something like Failure a template with the name test already exists

Form validation is the way to go here.


schema 2020 03

To support https://github.com/AlphaWallet/TokenScript/pull/332
Merge once all schema related tasks are done and we have TokenScripts served.
TODO

[x] #1730
[ ] #1729
[x] #1728
[ ] #1731
[ ] #1732
[ ] #1733
[x] #1734
[x] #1735
[ ] #1740

@hboon from now on let's make separate PRs to this branch before ultimately merging it into master as a solid piece


Setup Campus Mobile GitHub Project

Time Tracking: Time Tracking: MA-131
This is done when:

[x] GitHub Campus Mobile project created
[x] GitHub Campus Mobile project configured
[ ] GitHub Campus Mobile project issues added automatically
[ ] GitHub Campus Mobile project PR's added automatically

Reviewing potential blockers:
https://github.com/actions/add-to-project/issues/163
https://github.com/github/roadmap/issues/286


Shared subset any to avoid wasted memory and update overhead

Signed-off-by: tianqian.zyf<EMAIL_ADDRESS>Description:  Currently subset may create multiple points to all the hosts of PrioritySubsetImpl, it will be a waste of memory, and each update will be repeated  computation, so this PR to these PrioritySubsetImpl merge
Risk Level: low
Testing: unit tests of existence
Docs Changes: N/A
Release Notes: N/A

@zuercher Is there anyone else to review?

@snowp or @nezdolik could you have a look?


next build minimizing doesnot work effieciently

after doing next build my current project is creating a file around 8 mb - 10 mb which taking so many time for routing... How to minimize our all code in like kb file so our site performance increases.
Whenever i changed my routes to settings it takings so much time. and its showing Size of 8.4 Mb. Whats the cause for this?

@BijayRai Without more information about your project and dependencies, there is nothing we can help with. In general, use tools for bundle size analysis; here are examples of how to use them with Next.js:

https://github.com/zeit/next.js/tree/canary/examples/with-webpack-bundle-analyzer
https://github.com/zeit/next.js/tree/canary/examples/with-webpack-bundle-size-analyzer


[Autocomplete] Improve freeSolo UX

This is a draft.
First I started putting all the logic inside the Autocomplete and useAutocomplete, but the more I advance, the more complicated the state was and the code started not looking that good (as you can see here and here). So I made some research and based on react-react created a new component that handles the creation of a new option.
There isn't any tests and no new documentation, first I want to know if It looks good so I can move on.
:)
https://deploy-preview-19663--material-ui.netlify.com/components/autocomplete/

[ ] I have followed (at least) the PR section of the contributing guide.

closes #18985

@itelofilho Why do we need a new component? For instance, what about a new demo?
https://codesandbox.io/s/material-demo-bsbxm
/* eslint-disable no-use-before-define */
import React from "react";
import TextField from "@material-ui/core/TextField";
import Autocomplete, {
  createFilterOptions
} from "@material-ui/lab/Autocomplete";

const filter = createFilterOptions();

export default function ComboBox() {
  const [value, setValue] = React.useState(null);

  return (
    <Autocomplete
      value={value}
      onChange={(event, value) => {
        console.log("value", value);
        if (value && value.freeSolo) {
          setValue({
            title: value.inputValue
          });
          return;
        }

        setValue(value);
      }}
      filterOptions={(options, params) => {
        const filtered = filter(options, params);

        if (params.inputValue !== "") {
          filtered.push({
            freeSolo: true,
            inputValue: params.inputValue,
            title: `Add "${params.inputValue}"`
          });
        }

        return filtered;
      }}
      id="combo-box-demo"
      options={top100Films}
      getOptionLabel={option => option.title}
      style={{ width: 300 }}
      freeSolo
      renderInput={params => (
        <TextField {...params} label="Combo box" variant="outlined" fullWidth />
      )}
    />
  );
}

// Top 100 films as rated by IMDb users. http://www.imdb.com/chart/top
const top100Films = [
  { title: "The Shawshank Redemption", year: 1994 },
];

Now, I'm wondering about the level of integration we should give. They are 3 levels:

demos
some way to enable it
default behavior

I have looked at the options react-select provides for it: https://react-select.com/props#creatable-props. It seems that all of them can be easily be implemented with the demo I have proposed. So 1, 2, 3 are all on the table. What would be best? 🤔

react-select has ~300 issues related to "Creatable", vs 3000 issues in total.
#18985 is our second most upvoted issue for the matter. https://github.com/mui-org/material-ui/issues?q=is%3Aopen+label%3A"lab%3A+Autocomplete"+sort%3Areactions-%2B1-desc

What about we go with 1. and look at the demo stats usage? Then, we can better evalute if we should bring it into the core?

I agree with you, the 1 is fine for now. Should I close this PR and create a new one with only the new demos or just a rebase is ok?
Also, I believe the most common cases for creating a new option are the two I put in the examples, could I move with it?

@itelofilho I think that we could keep iterating on this pull request. The demos look great. For the organization of the documentation, I think that we can put them as h3, after the h2 "Free solo".
On a side note, I'm surprised that Chrome uses a smaller font size (14px?) for its built-in component

I update the examples but in the middle of the process, I found some issues.

When I press the Enter/Return key, the value is cleared. I need to press arrow down and then Enter to the input be filled right.

When I select the "Add " sometimes the input text glitches.

When I open the Dialog, fill the inputs and close it, the menu is still opened.

We are good.

and 2. are the same one, it's the missing getOptionLabel, check the freeSolo demos, I haven't started from the combobox demo to make the example
is #18815

I will push the fix for 1 and 2. For 3, if you want to lead the effort, it would be huge :D.

Awesome! I will take a look at 3.

@itelofilho If you could double-check my changes, it would be perfect

I just found a little mistake that I already fixed, I believe everything is fine now.
Should I rebase?

Thanks for the small patch :)

Nice bro, works like a charm


Add missing word in fields docs

Change Summary

Related issue number

Checklist

[ ] The pull request title is a good summary of the changes - it will be used in the changelog
[ ] Unit tests for the changes exist
[ ] Tests pass on CI
[ ] Documentation reflects the changes where applicable
[ ] My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

@Viicos,
This is fixed in this PR, which should be merged later today: https://github.com/pydantic/pydantic/pull/8171.
Thanks for the fix, though!


feat(app): Add map position to exhibitor model and api

I'm guessing that position 0 is never used, so 0 here means not known?

Yes, exhibitors start from 1.


Fix autocompletion panic

Fixes #178.

Codecov Report

Merging #251 into master will decrease coverage by 0.02%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##           master     #251      +/-   ##
==========================================
- Coverage   61.34%   61.31%   -0.03%
==========================================
  Files          68       68
  Lines        6327     6369      +42
==========================================
+ Hits         3881     3905      +24
- Misses       1933     1944      +11
- Partials      513      520       +7

Impacted Files
Coverage Δ

sql/scanner/token.go
22.22% <ø> (ø)

database/table.go
56.70% <33.33%> (-0.55%)
:arrow_down:

sql/parser/create.go
67.24% <50.00%> (-1.39%)
:arrow_down:

database/config.go
68.55% <71.42%> (-0.05%)
:arrow_down:

sql/parser/expr.go
77.81% <0.00%> (-0.77%)
:arrow_down:

Continue to review full report at Codecov.

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


Implement Collection Block

If running storybook: http://localhost:6006/?path=/docs/components-collection--default
Collection could be from a spreadsheet to return data to produce a list. Or could be a table.

Franklin supports an index using this method: https://www.hlx.live/developer/indexing