text:
[hub-mirror] 请求执行任务，成功案例

{
"hub-mirror": [
"gcr.io/google-samples/microservices-demo/emailservice:v0.3.5",
"gcr.io/google-samples/microservices-demo/checkoutservice:v0.3.5",
"gcr.io/google-samples/microservices-demo/recommendationservice:v0.3.5",
"gcr.io/google-samples/microservices-demo/frontend:v0.3.5",
"gcr.io/google-samples/microservices-demo/paymentservice:v0.3.5",
"gcr.io/google-samples/microservices-demo/productcatalogservice:v0.3.5",
"gcr.io/google-samples/microservices-demo/cartservice:v0.3.5",
"gcr.io/google-samples/microservices-demo/loadgenerator:v0.3.5",
"gcr.io/google-samples/microservices-demo/currencyservice:v0.3.5",
"gcr.io/google-samples/microservices-demo/shippingservice:v0.3.5",
"gcr.io/google-samples/microservices-demo/adservice:v0.3.5"
]
}

ghcr.io/yangchuansheng/ip_derper

ghcr.io/aquasecurity/trivy-db

authors: CodeBobobo togettoyou wang-xiaowu

repo: togettoyou/hub-mirror


text:
Notion Integration Buggy

OS version: macOS Latest
Browser version: Chrome Latest
Extension version: 2.0.8

Relevant integration (if any):
Notion (notion.so)
🐛 Describe the bug
In a Notion pop-out page, the Start Timer button appears to "crunch" into the corner of the pop-out (see screenshot):

Expected behaviour
Even spacing between "Open as page" and "Start Timer" button
Steps to reproduce

Enable Notion integration
Open Notion webapp and navigate to a pop-out page
Ta-daaaah

+1 from me. This happens when you press the "open" button to quickly edit the page, but when you reload the page by pressing Ctrl-R, for example, the position of the Toggle timer button becomes correct.

source: gharchive/issue

authors: TheSoloJake karmicdude

repo: toggl/track-extension

license_type: permissive

license_source: github-api


text:
Update Posts “20221209-print-all-even-numbers-from-2-to-100”

Automatically generated by Netlify CMS

👷 Deploy Preview for monetaboot processing.

Name
Link

🔨 Latest commit
fe5340ac814c84231e5275210db53497b34dbeec

🔍 Latest deploy log
https://app.netlify.com/sites/monetaboot/deploys/63933c128209210008cc7d71

source: gharchive/pull-request

repo: toicodedoec/potato

license: MIT


text:
Support holding messages after send

Is your feature request related to a problem? Please describe.
No. This is new functionality.
Describe the solution you'd like
During the simulation I'd like to place a "hold" on the link between two hosts. Any messages sent will remain in the queue while the "hold" is active. At a later time I'd like to remove the "hold", which allows delivery for the queued messages.
This is useful for tests that need to control the ordering of events across multiple hosts.

Seems like a good feature :+1:

Do you think it's better to hold the messages on the link or in the host? The former seems closer to reality, but requires duplication of the inbox type. I'm inclined towards buffering on the link.

I was considering adding a "hold" token for any messages added to the queue. The delivery logic can inspect both delivery time and if the "hold" is present.

authors: carllerche marcbowes mcches

repo: tokio-rs/turmoil


text:
「受診相談窓口における相談件数」カードの上部注釈変更

「受診相談窓口における相談件数」カードの上部注釈（現在、黄色背景で表示させているところ）を変更します。
変更後テキスト：「東京都発熱相談センター」の開設に伴い、「新型コロナ受診相談窓口」は終了したため、10月30日（金曜日）17時をもって本グラフの数値更新を終了しました。「東京都発熱相談センターにおける相談件数グラフ」はこちら。

位置はグラフ上部のまま変更ありません。
黄色背景はなしにします。（attentionNote ではなく description のslotに入れる）
「東京都発熱相談センターにおける相談件数グラフ」はこちら。 のテキストをリンクとします。リンク先は以下になります。
/cards/number-of-reports-to-tokyo-fever-consultation-center

実装イメージ↓

やります。

@Murayu0225 ありがとうございます！よろしくお願いします 🙏


text:
モバイル版メニューのスタイル調整

#98 #101 の対応です。

すみません！他のPR受け付けたら conflict したようです。
@kaizumaki さん、本日忙しいでしょうか。対応出来なそうな場合、別の人に引き継いでください！

@halsk だいじょうぶですよ〜！いまからやっちゃいますね！

#109 も解消されていると思います。

いったん、マージしてもらってもいいですか・・・？mixinの適用は #113 でやりたいと思います。

authors: halsk kaizumaki


text:
ServiceWorkerの登録を解除する(キャッシュ問題 ローディングで止まってしまう)

👏 解決する issue / Resolved Issues

close #6023 (キャッシュ問題 ローディングで止まってしまう)

📝 関連する issue / Related Issues

#6134

⛏ 変更内容 / Details of Changes

#6134 がマージされましたが、それでは解消しないと思うので、正しくServiceWorkerを登録解除する

#6134 のコード
pwa: {
  workbox: false,
},

だと、sw.jsを生成しなくなってしまうので、一般ユーザーのブラウザにはsw.jsがServiceWorkerとして登録されたまま。
このコード
pwa: {
  workbox: {
    enabled: false,
  },
},

だと、sw.jsは生成するけど、その生成されたコードの中身は sw.js を ServiceWorker から登録解除する内容になる。
#6134 がマージされる前のコード(sw.jsがServiceWorkerとして機能している)

この状態で新しい本番ビルドをすると /_nuxt/[chunk].js の chunkファイル名が変わってしまいローディングが止まってしまう(必要な.jsファイルが404になってしまう)

#6134 がマージされた後のコードでもローディングが止まってしまう(sw.jsが生成されなくなったが、ブラウザにはsw.jsがServiceWorkerとして登録されたままのため不具合は解消しない)

このコードをマージした後(sw.jsがServiceWorkerからunregisterされる)

このコードをマージした後に生成される sw.js の中身は、sw.js を ServiceWorker から unregisterするコードになる。

ブラウザに登録しておいた ServiceWorker が

登録解除されたのを確認しました

これで解消すると思います。

@suzuryo フォローしていただき感謝です！！ 🙇♀

フォロー超多謝です！
お手数を掛けました！
たいへん失礼いたしました

authors: kaizumaki mcdmaster suzuryo


text:
Remove debug toolbar

Purpose
The third party addon debug_toolbar has been removed from requirements but was still initialised in the settings which caused problems when creating migrations for models.
Approach
Remove the unnecessary settings.

@Menda I forgot to rebase after using the same branch. Removed the other commit now.

repo: toladata/TolaActivity

license_source: bigquery


text:
Scan Local Network for Active Servers

I could really use an option to scan the local network for servers listening on the selected port, or at least an option to ping servers by IP and port, without the long timeout that comes with trying to connect to a server not knowing if it's even online...
Not sure if I'm clear enough but I'm trying to make a game with LAN/WLAN multiplayer that has autodiscovery of available hosts.
If it's possible to do that as is I'd be extremely grateful for any help.

Sounds like you're looking for the LanDiscovery class 😉
For a short explanation on setting it up, take a look at this.

authors: NoCultist tom-weiland

repo: tom-weiland/RiptideNetworking


text:
Improve and optimize Chinese Translation

Improve and optimize Chinese Translation
Reference: https://www.mcbbs.net/thread-1461023-1-1.html#post_28814848

Thank you for updating the translations.


text:
twitter-api-v2関連のエラーハンドリングをする

https://github.com/plhery/node-twitter-api-v2/blob/HEAD/doc/errors.md

特にalready favoritedとか

というか、favoriteAPI多分正常に動いてない…？

repo: tomacheese/my-pixiv


text:
Expose unsafe acquire_next_image variant

This enables convenient swapchain use in applications using UnsafeCommandBuffers to render.

I think you should just put the function in swapchain/swapchain.rs and not in a sys module, and name it something like acquire_next_image_raw. This sys module is a bit confusing.

I was trying to imitate vulkano::command_buffer::sys, but that's certainly simpler.

I rearranged the safety checks a little bit as well.

You probably want to reexport the two new items in the root swapchain module.

Addressed comments.

authors: Ralith tomaka

repo: tomaka/vulkano


text:
Adding the host and protocol to record/playback mode

My team has been experimenting with record and playback, and we noticed that the url field in the produced JSON is populated only with the path that is called but not with the host or protocol. It would be nice as a feature to add this information to the generated JSON. If this feature already exists, is it possible to document it? If not, I could take a look into making a PR to implement it.

Hey Mike,
One thing worth noting about the JSON generated during recording is that the request details are really constraints. So by adding the protocol and host to the request, you'd really be saying "only match this stub if the protocol and host are the same as at the time of recording". This isn't always the desired outcome e.g. when a recording is made on localhost then shipped to a host somewhere.
However, I can see that in some cases you would want to do this, so we could add flags in the recorder config model to enable these.
It's probably also a no-brainer to add these to the request log JSON.
What is the main use case for these fields from your perspective?

Hi Tom!
The main use case would be format interop - it would be nice to be able to ingest wiremock logs using the http-types library. For mocking, there is a use case when the mocking code is behind a reverse proxy that needs to evaluate, for example, the region that the host points to (ie AWS regions are often only encoded in the hostnames and that can change the behavior of the response).

OK, that makes sense.
Adding the two fields to the request log should be very easy. Adding as stub matching constraints might require a little more thought, but I'll see if I can get both into the next release.

Thanks!

One other use case (taht requires matching) is when you are recording in browser proxy mode and the "end client" is accessing the same url at 2 different "end servers" that provide different responses. And then later you want to reply differently depending on the host that the client is trying to reach

authors: jpc4242 mikesol tomakehurst

repo: tomakehurst/wiremock


text:
🛑 Real-time Markdown editor is down

In 6cc0a95, Real-time Markdown editor (https://notas.saiyans.com.ve) was down:

HTTP code: 503
Response time: 8296 ms

Resolved: Real-time Markdown editor is back up in 1191228 after 18 minutes.


text:
Support non ascii

Python3 print() encodes to unicode, so changing to output as byte.
Also, the emulator shouldn't output a newline in the end (but let's do it if there's a breakpoint set do make debugging more convenient).
$ cat a.fj
startup
output_char 0xff
loop

$ git checkout main
Switched to branch 'main'
Your branch is up to date with 'origin/main'.
[lestrozi@lestrozi-fedora-PC1RGAWG flip-jump]$ python src/fja.py -w 32 a.fj -o a.fjm && python src/fji.py -s a.fjm | hexdump
  parsing:         0.123s
  macro resolve:   0.002s
  labels resolve:  0.000s
0000000 bfc3 000a
0000003

$ git checkout support_non_ascii
Switched to branch 'support_non_ascii'
Your branch is up to date with 'origin/support_non_ascii'.

$ python src/fja.py -w 32 a.fj -o a.fjm && python src/fji.py -s a.fjm | hexdump
  parsing:         0.125s
  macro resolve:   0.002s
  labels resolve:  0.000s
0000000 00ff
0000001

Thanks, @lestrozi! I accepted both of your changes. The quine is under fjms/ and I mentioned you in the Readme.
May I ask how did you get your quine? what was the process? I'm intrigued 😀.

Thanks! I didn't mean to post the quine in the same commit, but glad you moved it to a better folder :)
I'll post the source after I manage to make it understandable

Doc for the quine: https://github.com/tomhea/flip-jump/pull/142

authors: lestrozi tomhea

repo: tomhea/flip-jump


text:
gdxVersion=1.9.14 fails for iOS

When building iOS with the RoboVM Tools plugin in Eclipse it fails for gdxVersion=1.9.14. Going back to 1.9.13 works.
Stack-trace fills up with lots of error of the same type:
2021-03-02, 01:52:26: [ERROR] duplicate symbol '_Java_com_badlogic_gdx_utils_BufferUtils_find___3FIILjava_nio_Buffer_2IIF' in: 2021-03-02, 01:52:26: [ERROR]     /Users/.../.robovm/cache/ios/thumbv7/release/Users/.../.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-platform/1.9.14/c7d0536467112c5313c7da6d34a2c1229192623f/gdx-platform-1.9.14-natives-ios.jar.extracted/META-INF/robovm/ios/libs/libgdx.a(com.badlogic.gdx.utils.BufferUtils.o) 2021-03-02, 01:52:26: [ERROR]     /Users/.../.robovm/cache/ios/thumbv7/release/Users/.../.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-platform/1.9.14/c7d0536467112c5313c7da6d34a2c1229192623f/gdx-platform-1.9.14-natives-ios.jar.extracted/META-INF/robovm/ios/libs/libgdx.a(com_badlogic_gdx_utils_BufferUtils.o) 2021-03-02, 01:52:26: [ERROR] duplicate symbol '_Java_com_badlogic_gdx_utils_BufferUtils_find__Ljava_nio_Buffer_2IILjava_nio_Buffer_2IIF' in: 2021-03-02, 01:52:26: [ERROR]     /Users/.../.robovm/cache/ios/thumbv7/release/Users/.../.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-platform/1.9.14/c7d0536467112c5313c7da6d34a2c1229192623f/gdx-platform-1.9.14-natives-ios.jar.extracted/META-INF/robovm/ios/libs/libgdx.a(com.badlogic.gdx.utils.BufferUtils.o) 2021-03-02, 01:52:26: [ERROR]     /Users/.../.robovm/cache/ios/thumbv7/release/Users/.../.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-platform/1.9.14/c7d0536467112c5313c7da6d34a2c1229192623f/gdx-platform-1.9.14-natives-ios.jar.extracted/META-INF/robovm/ios/libs/libgdx.a(com_badlogic_gdx_utils_BufferUtils.o) 2021-03-02, 01:52:27: [ERROR] ld: 126 duplicate symbols for architecture armv7
Not sure if this has anything to do with liftoff, but it will anyway affect users of it. Took me a while to figure out what the real problem was. Not sure if it could work building it any other way (different IDE/using gradle and so on).

It's a known bug in libGDX 1.9.14, unrelated to gdx-liftoff. There's actually several bugs in libGDX 1.9.14 ( https://github.com/libgdx/libgdx/issues/6437 is still open, https://github.com/libgdx/libgdx/issues/6413 should be fixed), and you can get around them by switching to 1.9.15-SNAPSHOT (which may change subtly whenever you refresh Gradle) or 1.9.13 (which is stable). Both of those versions should be possible to set in gdx-liftoff's Advanced tab, and if it can't take 1.9.15-SNAPSHOT, that can be changed in the gradle.properties file after generation.
Personally, I am avoiding 1.9.14 and just sticking to 1.9.13. There's very few new features in 1.9.14 anyway. A new libGDX release could be made soon-ish; typically the first of the month has had a release for the last 2 months. Liftoff will be updated when libGDX does, or sooner if the release is delayed a long time.
Closing because the bug(s) are in libGDX, and gdx-liftoff can work around them with a setting while the official gdx-setup is stuck making 1.9.14 projects (unless you can find an old version). Thank you for bringing this to my attention.

Might be a good idea to keep stuff like these open in the future. I was about to post this same issue.

@auraxangelic Yeah, it's just that this is a bug in libGDX, not in gdx-liftoff. The latest release, 1.9.14.2, does default to libGDX 1.9.13 because 1.9.14 is so broken. I'd rather not keep a bug open in, say, anim8-gdx because it doesn't work with libGDX 1.9.14; the bug goes in libGDX because that's who can fix it...

authors: JojoIce auraxangelic tommyettinger

repo: tommyettinger/gdx-liftoff


text:
Always reset completion state to IDLE when in CANCELLING

Previously adding a space while requesting completion would
cause completion to stay in CANCELLING indefinitely.
Fixes https://github.com/tomv564/LSP/issues/510

Coverage decreased (-0.09%) to 27.033% when pulling 663153b1f08113c345d2fb2273b4465c0394cd7f on simonklb:completion-space-fix into fc804a27115c5f16f1e780b6207e61167d1d82d3 on tomv564:master.

Don't merge this yet.
@tomv564 could you or someone that knows this codebase better than me please take a look and confirm if resetting the CANCELLING state to IDLE like this is ok or not?
My language server crashed with the error message textDocument/completion: illegal Pos value and this patch might be the culprit since I've not seen it before.

I’ll try it out locally today or tomorrow.
We should really have some sort of integration test for these kinds of things.

Yes, you've found the fix for a problem I've seen from time-to-time: When responses for two completion requests arrive in a certain sequence, the completion state cannot not leave CANCELLING because no next request is scheduled.
Before merging I want to understand exactly what case triggers this, both potentially for testing and to make sure this is the right place for the fix.
Any chance you can repro with logging of the state transitions on both the request and response logic?

The issue I experienced was the case where it goes into CANCELLING state after you add a space during a request here: https://github.com/tomv564/LSP/blob/3f39c3dc5d3c8632e50eca54ad733768e99898be/plugin/completion.py#L204-L205
After this you never get out of the CANCELLING state since self.next_request is None here: https://github.com/tomv564/LSP/blob/3f39c3dc5d3c8632e50eca54ad733768e99898be/plugin/completion.py#L326-L329
The next time you try to do a completion you enter on_query_completions and self.next_request is set here:
https://github.com/tomv564/LSP/blob/3f39c3dc5d3c8632e50eca54ad733768e99898be/plugin/completion.py#L227-L229
But the problem is that you never get to the handle_response because do_request is never run while in the CANCELLING state.
Simple debug logging of a completion -> space -> failed completion attempts:
LSP: on_query_completions state = 0 # Initial completion
LSP:  --> textDocument/didChange
LSP:  --> textDocument/completion
LSP:  --> textDocument/didChange # Followed by a quick spacebar
...
LSP: handle_response state = 3 # Completion response, cancelled by the space
LSP: handle_response next_request:  None
LSP: on_query_completions state = 3 # Failed completion attempt
LSP:  --> textDocument/didChange
LSP: on_query_completions state = 3 # Failed completion attempt
LSP:  --> textDocument/didChange

In the case where you do two request in succession, and the second request gets cancelled and next_request is set, the race condition you might be seeing is that next_request is set after handle_response has completed on the first request.

I believe I've fixed the consecutive requests bug by moving the CANCELLING->IDLE state change before calling do_request for the next_request.
I discovered that the log would sometimes say Got unexpected response while in state 0. The second commit seems to have fixed that.
@tomv564 Not sure if this is the problem you were describing, but my completions are working much better now.

Thanks for documenting your findings, we now have some evidence to look at in case we need to fine-tune the logic further. Great work!

authors: coveralls rwols simonklb tomv564

license: mit


text:
Innernet fails with "Decode error occurred: Failed to parse message with type 16"

The interface is still set up correctly by innernet (or at least it seems to work and I hope I'm not missing something, but the hosts are still pingable).
❯ /usr/local/bin/innernet -vv --mtu 1420 up japanet7 --interval 60 --daemon
[*] bringing up interface japanet7.
[D] set address 10.100.0.6/16 on interface japanet7
[D] set interface japanet7 up with mtu 1420
[D] route 10.100.0.6/16 already existed.
[*] fetching state for japanet7 from server...
[D] [ureq::stream] connecting to 10.100.0.2:61820 at 10.100.0.2:61820
[D] [ureq::stream] created stream: Stream(TcpStream { addr: 10.100.0.6:4204, peer: 10.100.0.2:61820, fd: 4 })
[D] [ureq::unit] sending request GET http://10.100.0.2:61820/v1/user/state
[D] [ureq::unit] writing prelude: GET /v1/user/state HTTP/1.1
Host: 10.100.0.2:61820
User-Agent: ureq/2.9.6
Accept: */*
X-Innernet-Server-Key: REDACTED
[D] [ureq::response] Body entirely buffered (length: 2196)
[D] [ureq::pool] adding stream to pool: http|10.100.0.2|61820 -> Stream(TcpStream { addr: 10.100.0.6:4204, peer: 10.100.0.2:61820, fd: 4 })
[D] [ureq::unit] response 200 to GET http://10.100.0.2:61820/v1/user/state
[D] [wireguard_control::backends::kernel] get_by_name: got 1 response message(s) from netlink request
[D] [wireguard_control::backends::kernel] get_by_name: parsed wireguard device japanet7 with 4 peer(s)

[*] updated interface japanet7

[D] [ureq::stream] dropping stream: Stream(TcpStream { addr: 10.100.0.6:4204, peer: 10.100.0.2:61820, fd: 4 })

[E] Decode error occurred: Failed to parse message with type 16

NOTE: this also happens with no options set in the command line, that's just the command I've taken straight from my service file.
innernet show also fails with just this error:
❯ innernet -vv show

[E] Decode error occurred: Failed to parse message with type 16

innernet fetch doesn't consider the interface to be up.
❯ innernet fetch japanet7

[E] Interface is not up. Use 'innernet up japanet7' instead

The issue seems to have appeared on my server after a kernel update (a vendored SBC kernel 5.10 → 6.8 mainline) and a friend also got this error after an update to Alpine Linux 3.19 (so it would be 6.1 → 6.6).
❯ innernet --version
innernet 1.6.1

I've now looked a bit more into it. This happens when calling get_local_addrs and the error comes from https://github.com/rust-netlink/netlink-packet-core/blob/91e71b69fe8d94a8ae7e2748b0443272c6c3307c/src/message.rs#L116.
It seems related to k3s as this doesn't happen when I stop it on my server.

@odrling thanks for the investigation. What is k3s?

It's a Kubernetes implementation https://github.com/k3s-io/k3s

I experience the same issue and it started after k3s installation. Stopping k3s service does not help

After looking into it more it seems to be related to this upstream issue https://github.com/rust-netlink/netlink-packet-route/issues/54

the update did not solve the problem for me:
> sudo innernet list
[E] Decode error occurred: Failed to parse message with type 16
> sudo innernet --version
innernet 1.6.1

Is there anything I can troubleshoot?

@Santonclause sorry for a captain obvious question, but are you using recent-enough build from main that has the fix? It hasn't been released yet in any version.
(unfortunately innernet --version returns 1.6.1 for both the last released version and current git main, so that cannot be used to tell which is which)

@Santonclause sorry for a captain obvious question, but are you using recent-enough build from git main that has the fix? It hasn't been released yet in any version.
(unfortunately innernet --version returns 1.6.1 for both the last released version and current git main, so that cannot be used to tell which is which)

@strohel , I've used the 1.6.1 release from here https://github.com/tonarino/innernet/releases and built from it. I assume this is not correct then? Should I just clone the main and build from source there?

@Santonclause Yes, you should try cloning the repo and building from the main branch.
The issue got closed when the fix was merged a few days ago and it is not yet in a release.
I used k3s as a test when I wrote the fix so you should not be running into this error with a build from main.

thank you @odrling! Yes, I just rebuilt from main branch and the issue was fixed. Thank you for the contribution!

authors: Santonclause odrling strohel

repo: tonarino/innernet


text:
Running multiple test commands in the same directory overwrites coverage

This may be more of a feature request than a bug, not sure.
If you run dotnet test /p:CollectCoverage=true in a directory with multiple test assemblies in it, the coverage output files generated write to the same file so the last assembly to be tested is the only one with coverage reported.
I know that the CoverletOutput property exists, and I was able to have a workaround in this specific case by setting /p:CoverletOutput=coverage-$(cat /dev/random | LC_CTYPE=C tr -dc "[:alpha:]" | head -c 8).json which creates a random file name. This is not ideal (it would be better if it was the project name) and also doesn't solve the case I think is more important.
I'm using Azure Pipelines which use a yaml definition. The .NET Core task allows you to specify multiple projects and to specify arguments, but there is no way I am aware of to access either the project name, an iterator, or a random string within the arguments to set the CoverletOutput to something unique per project.
I tried a couple of things including --configuration $(BuildConfiguration) /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /p:CoverletOutput=$(System.DefaultWorkingDirectory)/TestResults/Coverage/coverage-$(cat /dev/random | LC_CTYPE=C tr -dc "[:alpha:]" | head -c 8).cobertura.xml but this results in an error in my YAML: #Your build pipeline references an undefined variable named ‘cat /dev/random | LC_CTYPE=C tr -dc "[:alpha:]" | head -c 8’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972.

Not sure if this is still relevant to your case, but I've struggled with the same issue for a few days until I realized, that the solution is really simple: just use a relative path for /:pCoverletOutput
Here is the relevant yaml snippet from our pipeline:
steps:
- task: DotNetCoreCLI@2
  displayName: 'Test and collect code coverage'
  inputs:
    command: test
    projects: '**/*.Test.csproj'
    arguments: '--configuration $(BuildConfiguration) --no-build /p:CollectCoverage=true /p:CoverletOutput=TestResults\Coverage\coverage.cobertura.xml /p:CoverletOutputFormat=cobertura  /p:Exclude="[xunit.*]*"'

So this runs dotnet test for all '*.Test.csproj' projects in the solution and generates the coverage output inside the source directories of the test projects.
In essence, simply writing /p:CoverletOutput=cobertura.xml is equivalent to writing /p:CoverletOutput=$(Build.SourcesDirectory)\$(ProjectName)\cobertura.xml (where of course '$(ProjectName)' doesn't actually exist).
The second part to my solution is having reportgenerator collect all those reports using a wildcard pattern:
steps:
- task: Palmmedia.reportgenerator.reportgenerator-build-release-task.reportgenerator@4
  displayName: ReportGenerator
  inputs:
    reports: '$(Build.SourcesDirectory)\*\TestResults\Coverage\coverage.cobertura.xml'
    targetdir: '$(Build.SourcesDirectory)\TestResults\Coverage\Reports'

In theory this works like a charm, however we had to (temporarily) remove coverlet from our pipeline again since we seem to be affected by the "Unable to read beyond end of stream" issue.
https://github.com/tonerdo/coverlet/issues/210

@Blackbaud-ChristiSchneider do the @KerbalSpike work around works in your case?

repo: tonerdo/coverlet


text:
Update to location of build tasks

When loading this project in VS2017 and Rider the unit tests are  currently failing due to a missing reference

See https://github.com/tonerdo/coverlet#building-the-project for instructions on how to build

Despite the fact that the solution is building properly using the provided instructions, it will be more convenient to have an ability for building the solution w/o additional steps. It seems that the provided changes provide a simpler way to import props and targets.

authors: alexanderkozlenko brewsoftware tonerdo


text:
aliases broken

After migrating to 1.6, the admin_alias.expire_at values is NULL but the query contained in sql-aliases.cf require a date:
query = SELECT alr.address FROM modoboa_admin_aliasrecipient AS alr INNER JOIN admin_alias AS al ON alr.alias_id=al.id WHERE al.enabled=1 AND al.address='%s' AND al.expire_at>now()

Did I missed a step ? If not you should also take care of NULL values in the query.

I can also confirm this behavior. Aliases without an expiry date don't work and results in:
<test@example.com>: host mail.example.com[private/dovecot-lmtp] said: 550
    5.1.1 <test@example.com> User doesn't exist: test@example.com (in reply
    to RCPT TO command)

Current work around is just adding a really far away date like 2020-12-25 16:52:41

Yes, this is a SQL query issue. You can fix it like this (sql-aliases.cf):
AND (al.expire_at IS NULL OR al.expire_at>now())

I'll post a fix soon.

authors: dugite-code gawel tonioo

repo: tonioo/modoboa

license: isc


text:
recognize() expects 2 arguments despite documentation.

Hi @xulihang,
I'm trying to use this library with "react-native-vision-camera": "^3.6.8" and "vision-camera-dynamsoft-label-recognizer": "^1.0.0"
In documentation, recognize() function only takes frame but it expects ScanConfig
And I got Frame Processor threw an error: Exception in HostFunction: java.lang.ArrayIndexOutOfBoundsException: length=0; index=1 error.

This is not the argument's problem.
You have to add pixelformat="yuv" to the vision camera.

Thank you @xulihang. This resolved the issue.
By the way, I looked into your example project,  I got an empty object from recognize() why might this happen?

Thanks @xulihang, sorry for the late reply. I'm scanning document like the example, why might not recognize anything?
My code like this;
const scanRegion: ScanRegion = {
left: 5,
top: 40,
width: 90,
height: 10,
};
const updateFrameSize = (width: number, height: number) => {
if (width !== frameWidth && height !== frameHeight) {
setFrameWidth(width);
setFrameHeight(height);
}
};
const updateFrameSizeJS = Worklets.createRunInJsFn(updateFrameSize);
const frameProcessor = useFrameProcessor(frame => {
'worklet';
updateFrameSizeJS(frame.width, frame.height);
let config: ScanConfig = {};

config.scanRegion = scanRegion;

let scanResult = recognize(frame, config);

console.log(scanResult);

}, []);

I'm trying to scan the bottom white part

Thanks a lot @xulihang.

In addition, the default license expires in one day. You need to apply for a trial license.


text:
Error

Error in calling python method from Blazor app:
info: CSnakes.Runtime.IPythonEnvironment[0]
      Setting up Python environment from C:\Users\adham\.nuget\packages\python\3.12.6\tools using home of D:\Projects\C#\_EXPERIMENT\CSnakes\BlazorApp1\BlazorApp1\wwwroot\modules
Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Repeat 2 times:
--------------------------------
   at CSnakes.Runtime.CPython.CPythonAPI.Py_DecRefRaw(IntPtr)
--------------------------------
   at CSnakes.Runtime.Python.GIL+PyGilState.Dispose()
   at BlazorApp1.Components.Pages.Home+<Test>d__3.MoveNext()

Python file:
from typing import Tuple

def test(string: str) -> str:
    return string

def info() -> Tuple[str, str, str, str]:
    """
    Get information about this module

    Returns a tuple containing name, description, module type and version
    """

    return "Demo", "This is demo", "DataReader", "1.0.0"

def callback(cb_func) -> bool:
    value = cb_func()
    return value == "Hello, World!"

C# code:
private async Task Test((string fileName, (string name, string desription, string type, string version)) item)
    {
        try
        {
            using (GIL.Acquire())
            {
                var fileName = Path.GetFileNameWithoutExtension(item.fileName);
                using PyObject module = Import.ImportModule(fileName);
                using var infoFunc = module.GetAttr("test");
                var testStr = "Hello, World!";
                using var pyStr = PyObject.From(testStr);
                using var result = infoFunc.Call(pyStr);
                var info = result.As<string>();
                if (info != testStr)
                {
                    throw new Exception("Test failed");
                }
                else
                {
                    await jsRuntime.InvokeVoidAsync("alert", "Test passed");
                }
            }
        }
        catch (Exception ex)
        {
            await jsRuntime.InvokeVoidAsync("alert", ex.Message);
            logger.LogError(ex, "Test failed");
        }
    }

I changed the C# code and the problem was solved
private async Task Test((string fileName, (string name, string desription, string type, string version)) item)
    {
        try
        {
            using (GIL.Acquire())
            {
                var fileName = Path.GetFileNameWithoutExtension(item.fileName);
                using PyObject module = Import.ImportModule(fileName);
                using var infoFunc = module.GetAttr("test");
                var testStr = "Hello, World!";
                using var pyStr = PyObject.From(testStr);
                using var result = infoFunc.Call(pyStr);
                var info = result.As<string>();
                if (info != testStr)
                {
                    throw new Exception("Test failed");
                }
            }
        }
        catch (Exception ex)
        {
            await jsRuntime.InvokeVoidAsync("alert", ex.Message);
            logger.LogError(ex, "Test failed");
            return;
        }

        await jsRuntime.InvokeVoidAsync("alert", "Test passed");
    }

I think your problem was the await call while holding on to the GIL. The PyGILState_Release documentation says that the GIL must be released on the same thread it was acquired on:

Every call to PyGILState_Ensure() must be matched by a call to PyGILState_Release() on the same thread.

However, the await call can potentially complete or wake up on a different thread than when it started awaiting. This is why moving the await outside the using fixes the problem. That said, two things:

It's generally not a good practice to hold a lock across an await boundary.
I don't think your user code needs to worry about the GIL since CSnakes should acquire and release as necessary.

On point 2, I think the exception here is Import.ImportModule, which doesn't acquire & release the GIL internally:
https://github.com/tonybaloney/CSnakes/blob/586bb13e172d82316875eb46e5eb8c5c471f470b/src/CSnakes.Runtime/Python/Import.cs#L7-L10
and neither does CPythonAPI.Import that is delegates to:
https://github.com/tonybaloney/CSnakes/blob/048e011b5d70849edb1d0c26fa9b985f8a48f6dc/src/CSnakes.Runtime/CPython/Import.cs#L13-L19
@tonybaloney can probably comment on whether ``Import.ImportModule` was designed for public consumption or that this is an oversight.

Thank you! I understand what it is. But unfortunately, I wanted to use it in a multitasking app.

I wanted to use it in a multitasking app.

Right, but do you need the GIL for that? Couldn't you use a standard lock or synchronisation primitive to coordinate the work between the threads in your application?

authors: atifaziz psxbox

repo: tonybaloney/CSnakes


text:
What is the roadmap

Hi @tonybaloney , your Pyjion project is awesome.
Do you have a roadmap of where you want to go in the future?
Do you have plan to support async and "with" in the future ?
Do you collaborate with Microsoft or other people or you are alone on that project?
Make python faster is really something important and Pyjion look like of the most promising tool.
Regards

The plan is actually to get as much of Pyjion and the optimisations into CPython as possible. So far, 2 (and a bit) of the optimisations that Pyjion has are in 3.11, with others probably coming later.
This way, CPython will just be faster and an extra project isn't required

Hi @tonybaloney , that would be awesome!
Do you work alone on that project? Are you helped by Microsoft?

Hi @tonybaloney , that would be awesome!
Do you work alone on that project? Are you helped by Microsoft?

I now work for Microsoft, which is totally unrelated to this project!
The CPython core developers are working on that project, there is a virtual team working on optimizations called the "Faster CPython" team

Hi @tonybaloney , do you know why this project that seem awesome is not supported by Microsoft ?
This projevt architecture seem good.
Do you know if limitation like with ans async await will be raised on day?

This is an excellent project, @tonybaloney! Is there still a plan to release wheels for py2.11 and py3.12?
Also, you mentioned upstreaming some optimization to CPython, so how successful have you been? :chipmunk:

authors: Borda guillaume-chervet tonybaloney

repo: tonybaloney/Pyjion


text:
[BUG] Uncleared indicator not showing for the "Emphasize Uncleared Accounts" toggle

Describe the bug
Potentially after a recent YNAB update (October 24), the uncleared indicator no longer shows for any accounts in the left accounts list with uncleared transactions in them.
To Reproduce
Steps to reproduce the behavior:

Enter an uncleared transaction
Uncleared indicator no longer shows on the accounts tab on the left, even after a browser refresh

Expected behavior
The expected behavior is for the uncleared icon to show next to the account name in which the uncleared transaction exists
Desktop (please complete the following information):

OS: Windows 10
Browser: Chrome
Toolkit Version: 3.4.0

Setting Export
[{"key":"AccountsDisplayDensity","value":"0"},{"key":"AccountsEmphasizedInflows","value":true},{"key":"AccountsEmphasizedOutflows","value":false},{"key":"AccountsStripedRows","value":false},{"key":"AccountsStripedRowsColor","value":"#fafafa"},{"key":"AccountsStripedRowsDarkColor","value":"#1e1e1f"},{"key":"AssistedClear","value":false},{"key":"AutoDistributeSplits","value":true},{"key":"AutoEnableRunningBalance","value":true},{"key":"AutomaticallyMarkAsCleared","value":false},{"key":"BetterScrollbars","value":"0"},{"key":"BottomNotificationBar","value":false},{"key":"BudgetCategoryFeatures","value":true},{"key":"BudgetProgressBars","value":"0"},{"key":"BudgetQuickSwitch","value":false},{"key":"BudgetSpendingGoal","value":false},{"key":"BulkEditMemo","value":false},{"key":"BulkManagePayees","value":false},{"key":"CalculateIRR","value":false},{"key":"CalendarFirstDay","value":"0"},{"key":"CategoryActivityCopy","value":false},{"key":"CategoryActivityPopupWidth","value":"0"},{"key":"CategorySoloMode","value":"0"},{"key":"ChangeEnterBehavior","value":false},{"key":"ChangeMemoEnterBehavior","value":false},{"key":"CheckCreditBalances","value":false},{"key":"CheckNumbers","value":false},{"key":"ClearSelection","value":true},{"key":"CollapseInspector","value":false},{"key":"ColourBlindMode","value":false},{"key":"CompactIncomeVsExpense","value":false},{"key":"ConfirmEditTransactionCancellation","value":false},{"key":"ConfirmKeyboardCancelationOfTransactionChanges","value":false},{"key":"CreditCardEmoji","value":true},{"key":"CtrlEnterCleared","value":false},{"key":"CurrentMonthIndicator","value":true},{"key":"CustomAverageBudgeting","value":false},{"key":"CustomFlagNames","value":false},{"key":"CustomizeColourScheme","value":true},{"key":"DateOfMoney","value":false},{"key":"DaysOfBuffering","value":"all"},{"key":"DaysOfBufferingDate","value":false},{"key":"DaysOfBufferingExcludeCreditCards","value":true},{"key":"DaysOfBufferingHistoryLookup","value":"0"},{"key":"DefaultCCToCleared","value":false},{"key":"DeselectTransactionsOnSave","value":false},{"key":"DisableToolkit","value":false},{"key":"DisplayMonthlyGoalsOverview","value":false},{"key":"DisplayTargetGoalAmount","value":"0"},{"key":"DisplayTotalMonthlyGoals","value":true},{"key":"DisplayTotalOverspent","value":false},{"key":"DisplayUpcomingAmount","value":false},{"key":"EasyTransactionApproval","value":false},{"key":"EditAccountButton","value":"0"},{"key":"EnlargeCategoriesDropdown","value":false},{"key":"FilterCategories","value":true},{"key":"GoalIndicator","value":true},{"key":"GoalWarningColor","value":true},{"key":"GoogleFontsSelector","value":"0"},{"key":"HideAccountBalancesType","value":"0"},{"key":"HideAgeOfMoney","value":false},{"key":"HideClosedAccounts","value":false},{"key":"HideDebtRatio","value":false},{"key":"HideHelp","value":true},{"key":"HideReferralBanner","value":true},{"key":"HideTotalAvailable","value":true},{"key":"HighlightNegatives","value":false},{"key":"HoveredBudgetRows","value":true},{"key":"ImportNotification","value":"0"},{"key":"IncomeFromLastMonth","value":"0"},{"key":"IncomeVsExpenseHoverHighlight","value":true},{"key":"LargerClickableIcons","value":false},{"key":"LastReconciledDate","value":"disabled"},{"key":"LinkToInflows","value":true},{"key":"LiveOnLastMonthsIncome","value":"0"},{"key":"MasterCategoryRowColor","value":false},{"key":"MasterCategoryRowColorSelect","value":"#d1d1d6"},{"key":"MasterCategoryRowDarkColorSelect","value":"#636366"},{"key":"MemoAsMarkdown","value":false},{"key":"MonthlyNotesPopupWidth","value":"0"},{"key":"NavDisplayDensity","value":"0"},{"key":"NotesAsMarkdown","value":false},{"key":"POSStyleCurrencyEntryMode","value":false},{"key":"Pacing","value":"0"},{"key":"PrintingImprovements","value":true},{"key":"PrivacyMode","value":"0"},{"key":"QuickBudgetWarning","value":false},{"key":"ReconcileAssistant","value":false},{"key":"ReconcileBalance","value":false},{"key":"ReconcileConfetti","value":false},{"key":"ReconciledTextColor","value":"0"},{"key":"RemovePositiveHighlight","value":false},{"key":"RemoveZeroCategories","value":false},{"key":"ResetColumnWidths","value":true},{"key":"RightClickToEdit","value":true},{"key":"RowHeight","value":"0"},{"key":"RowsHeight","value":"0"},{"key":"SavingsRatio","value":"0.10"},{"key":"ScrollableEditMenu","value":false},{"key":"SeamlessBudgetHeader","value":false},{"key":"SetMultipleFlags","value":false},{"key":"ShowAvailableAfterSavings","value":false},{"key":"ShowCategoryBalance","value":false},{"key":"SpareChange","value":false},{"key":"SplitTransactionAutoAdjust","value":false},{"key":"SplitTransactionAutoFillPayee","value":false},{"key":"SplitTransactionTabExpand","value":false},{"key":"SquareNegativeMode","value":false},{"key":"StealingFromFuture","value":false},{"key":"StripedBudgetRows","value":false},{"key":"SubtractUpcomingFromAvailable","value":"0"},{"key":"SwapClearedFlagged","value":false},{"key":"TargetBalanceWarning","value":false},{"key":"ToBeBudgetedWarning","value":false},{"key":"ToggleAccountColumns","value":false},{"key":"ToggleMasterCategories","value":false},{"key":"ToggleSplits","value":false},{"key":"ToggleTransactionFilters","value":"0"},{"key":"ToolkitReports","value":true},{"key":"UnclearedAccountHighlight","value":true},{"key":"ViewZeroAsEmpty","value":false},{"key":"l10n","value":"0"},{"key":"options.dark-mode","value":true}]

I have noticed that either the toolkit or the browser seems to be messing with the size of the columns in YNAB. The cleared balance is probably there....it's just enlarged on the side or minimized the column width.
Do you have a screenshot of this issue? I have the current toolkit on Chrome and don't have that issue.

I was thinking if you had the "Swap flag and cleared columns" setting in the toolkit that might be hiding the cleared, but mine is still there.
Do you have any other extensions possibly running on your computer?

Yeah, this is happening for me also.

Happening for me also. I just noticed today though so it probably means it's not something that I need, it's just a nice to have.

Bumping this up. This is happening in MacOS and ChromeOS devices.

Any updates on this?

I'm also having this issue.  Toolkit for YNAB v3.6.1.

FWIW, this is still happening in v3.8.0.

I'm still experiencing this issue in the most recent version (v3.8.1).

authors: HeyHarry3636 alexmidd kcollett nickjyc saxtonjoshua1 telmof terelias

repo: toolkit-for-ynab/toolkit-for-ynab


text:
preview not work.

when i click on preview button, just show me markdown code.
exp:
##Farshid
result should be Farshid but just show me ##Farshid.
how can i fix it?

I think you need to include http://www.codingdrama.com/bootstrap-markdown/js/markdown.js on your code

I try to use bootstrap-markdown with web pack.
install with node.

How can I setup dependent  markdown.js  and to-markdown.js?

repo: toopay/bootstrap-markdown


text:
Mögliches Lizenzproblem

Stskit gefällt mir sehr gut. Ich benutze es schon länger und habe auch angefangen es etwas zu erweitern. Dabei ist mir aufgefallen, dass PyQt5 verwendet wird, dass die GPL v3 Lizenz verwendet. Soweit ich weiß können Pakete, die GPL verwenden, nur in Software verwendet werden, die ebenfalls GPL verwenden.

Danke für den Hinweis. Ich werden dem nachgehen und die Lizenz ggf. anpassen.
Freut mich, dass dir stskit gefällt. Was machst du für Erweiterungen? Hauptsächlich Stellwerkskonfigurationen? Da gibt es natürlich noch eine Menge zu tun. Ich hoffe zwar, dass ich diesen Prozess irgendwann vereinfachen kann oder dass die automatische Konfiguration bei den meisten Stellwerken gut genug ist.
Falls du was am Code selber machen willst, möchte ich darauf hinweisen, dass ich an einer neuen Version arbeite (dev-graph-Zweig), die andere interne Datenstrukturen verwendet. Ich rate daher, in Code, der auf der alten Version beruht, nicht mehr allzu viel Arbeit zu investieren. Die Konfigurationen betrifft das jedoch nicht, diese bleiben kompatibel. Auch die stsplugin-Schnittstelle bleibt unverändert.

Ich mache hauptsächlich Stellwerkskonfigurationen, habe aber auch eine UI geschrieben, in der ich den Hostnamen ändern kann, wenn die Verbindung mit dem localhost fehlschlägt.

repo: topological-state/stskit


text:
update ginkgo to v2

What
Update ginkgo to v2. This is curretly blocked by CSI sanity test, in which ginkgo v1 is used.
How

Create an issue at CSI test project.  (https://github.com/kubernetes-csi/csi-test)
After ginkgo version of CSI sanity test is update ,  update the CSI sanity test version of topolvm to the one which supports ginkgo v2.
Update ginkgo version of topolvm to v2.

Checklist

[ ] Finish implementation of the issue
[ ] Test all functions
[ ] Have enough logs to trace activities
[ ] Notify developers of necessary actions

upstream issue: https://github.com/kubernetes-csi/csi-test/pull/366

We can go ahead this task so csi-sanity supports ginko v2.
https://github.com/kubernetes-csi/csi-test/blob/v5.0.0/CHANGELOG/CHANGELOG-5.0.md

authors: cupnes peng225 toshipp

repo: topolvm/topolvm


text:
macOS zsh installation instructions wrong

The current command line installation instructions for zsh don't work, and cause all output to have an n placed after it.
Current command given in the instructions is:
echo "function gi() { curl -sLw "\n" https://www.toptal.com/developers/gitignore/api/\$@ ;}" >> \
~/.zshrc && source ~/.zshrc

However, this needs extra escaping, as the "\n" is ending up as just n.
I found the following worked:
echo "function gi() { curl -sLw \"\\\n\" https://www.toptal.com/developers/gitignore/api/\$@ ;}" >> \
~/.zshrc && source ~/.zshrc

I've tested on macOs and Linux, and the same applies to both.
Versions used:
macOs:
zsh 5.8.1 (x86_64-apple-darwin22.0)
macOS 13.2 (22D49)
Linux:
zsh 5.8.1 (aarch64-unknown-linux-gnu)
Ubuntu 22.04.1 LTS

Hi @lukens ! Thank you for pointing it out.
We'd happily accept a PR with the fix if you're willing to do that.
Otherwise, we'll be adding this to our backlog.

@lukens true! This documentation page is powered by Gitbooks. I have added this issue to our backlog and will work on the fix soon (tm).

The docs are currently stored in https://github.com/joeblau/gitignore.io-docs

Thank you again for the report, @lukens !
Your changes have been published

It looks like only the macOS instructions have been updated, but this also applies to zsh for Linux, as far as I can tell.
This is really my fault, as it only said "macOS" in the subject. I'd started typing the issue out before thinking to test in Linux too, and it seems I then forgot to go back and change the subject (which I have now done).

@lukens Truuuue! That's totally my fault.
I just published the change for linux instructions as well. It should pop in in a couple of minutes after cache revalidation.
Thank you again for pointing it out!!!

authors: filipechagas lukens


text:
Custom Ids

Create a field for all Types, pages and entries to have custom Ids. They will perform similar to Wordpress slugs, in that they can be used by a client developer to group information without having to depend on the title

Call the custom Id's tags. Every entry must have a unique tag

Tags would be confusing, Call them Handles. Sice we have things like Handles in social media, this would be clear.


text:
AuthInfo is an encoded token

How to fix this error
"The "your" value in an AuthInfo is an encoded token that must not appear for the "Digest" scheme and must not be followed by additional parameters"

Are you copying and pasting the following as is into the command window?
setenv("OPENAI_API_KEY","your API key here")
Please replace "your API key here" with your actual API key.

Thank you.
On Fri, Apr 14, 2023 at 11:11 AM Toshiaki Takeuchi @.***>
wrote:

Closed #7 https://github.com/toshiakit/MatGPT/issues/7 as completed.
—
Reply to this email directly, view it on GitHub
https://github.com/toshiakit/MatGPT/issues/7#event-9008888608, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ANIPJAA576KTJ6L67I27G63XBFSKXANCNFSM6AAAAAAW6AXANI
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
BR
Hatem Enaami

authors: enaami toshiakit

repo: toshiakit/MatGPT


text:
docs(framer-motion): support i18n and add code blocks

Overview
Hi 😃
I wanna suggest that live editor(code blocks) in docusaurus.

Adds korean and english documentations for @toss/framer-motion.
Adds Code Blocks about @toss/framer-motion example.

PR Checklist

[x] I read and included theses actions below

I have read the Contributing Guide
I have written documents and tests, if needed.

Thanks for reply, @HoseungJang 🙇♀
That's so reasonable thinking, I agree!
I'll remove live editor in this PR.

We plan to add live code blocks to our website, and this pull request will help us a lot. Meanwhile, what about adding live code blocks in other libraries like @toss/utils or @toss/impression-area?

I agree that live code blocks don’t help much in @toss/framer-motion.

@raon0211
Oh thanks for consent to my suggestion! 🤸♀
I'll comeback with other PR 🙇♀

repo: toss/slash


text:
像smzdm那样，302后，执行JS，这种场景如何更好的支持？

Cookie更新已经完成，参数逻辑怎么办，引入Java中的JS引擎？

试试Emulator~
准备完善下，支持这种这类场景

Emulator已经可以实现b/d搜索

repo: totyumengr/crawler


text:
Features: Display release date of each package; filter by package release date

Since I have run across pipdeptree, it has become the single most important tool for me for analyzing package dependencies when something goes wrong with the dependencies. Kudos to the dev team!!
What I am missing though is the package release date of the installed package to be shown in the output, maybe controlled by an option.
Also, a filter option would be great that lists only those packages from the complete set of packages that have been released recently, say in the last 7 days, or since a specifyable number of days.
The motivation for these two features is that in most of the cases, the reason for a dependency problem is a recently released package, and that way it would be quite easy to find.

Hi @andy-maier. Sorry for a very late response. At present pipdeptree completely relies on the pip's code that's installed in the env. So the scope is limited to the information that pip provides.
To get the release information, we'd need to use the json api provided by pypi.org. But it may not be as trivial as that because extra index urls will also need to be supported. I will look into this but can't promise anything.
Also, with the recent improvements in pip dependency resolution is now much better. So I am not sure if there's a use case anymore for the conflict and cyclic deps detection functionalities in pipdeptree. Perhaps it's only useful for legacy envs where pip can't be upgraded for some reason.

This information is not available after installation so we cannot do this.

authors: andy-maier gaborbernat naiquevin

repo: tox-dev/pipdeptree


text:
Relax Sphinx version requirement

The required sphinx version for this extension is >=7.0.1 https://github.com/tox-dev/sphinx-autodoc-typehints/blob/ae448e21c21faf6aedeedb8244c9a5c38f25db71/pyproject.toml#L41
We use the sphinx readthedocs theme, and they do not support sphinx 7 yet https://github.com/readthedocs/sphinx_rtd_theme/issues/1463 and I propose to relax the sphinx version requirement to allow for versions >=6,<8.
According to this commit a021cc8b39b10e145fb1f5cc651baf411f746482, the bumped happened in the middle of a larger change without much consideration, is that correct ?

IMHO this is a problem for the theme, not us.

a larger change without much consideration

For what's worth it's done because that's the only version we test again in the CI, so we only know it will work with the latest version.

authors: gaborbernat jooola

repo: tox-dev/sphinx-autodoc-typehints


text:
Code Example Play doesn't work

When i try to run the play command from the code example of the music system, i get following errors
with a seach query
ERROR: query "crab rave": Failed to parse JSON  (caused by JSONDecodeError('Expecting value: line 1 column 1 (char 0)')) Ignoring exception in command play: Traceback (most recent call last):   File "C:\Users\admin\AppData\Local\Programs\Python\Python38-32\lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped     ret = await coro(*args, **kwargs)   File "c:\Users\admin\Desktop\Python Code\test.py", line 22, in play     await player.queue(url, search=True)   File "C:\Users\admin\AppData\Local\Programs\Python\Python38-32\lib\site-packages\DiscordUtils\Music.py", line 171, in queue     song = await get_video_data(url, search, bettersearch, self.loop)   File "C:\Users\admin\AppData\Local\Programs\Python\Python38-32\lib\site-packages\DiscordUtils\Music.py", line 70, in get_video_data     data = data["entries"][0] TypeError: 'NoneType' object is not subscriptable
with a direct video link
ERROR: No video formats found Ignoring exception in command play: Traceback (most recent call last):   File "C:\Users\admin\AppData\Local\Programs\Python\Python38-32\lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped     ret = await coro(*args, **kwargs)   File "c:\Users\admin\Desktop\Python Code\test.py", line 22, in play     await player.queue(url, search=True)   File "C:\Users\admin\AppData\Local\Programs\Python\Python38-32\lib\site-packages\DiscordUtils\Music.py", line 171, in queue     song = await get_video_data(url, search, bettersearch, self.loop)   File "C:\Users\admin\AppData\Local\Programs\Python\Python38-32\lib\site-packages\DiscordUtils\Music.py", line 70, in get_video_data     data = data["entries"][0] TypeError: 'NoneType' object is not subscriptable

Its a youtube-dl problem, use bettersearch instead of search and it'll fix it

authors: FiireWiinter toxicrecker

repo: toxicrecker/DiscordUtils


text:
🛑 Mercury is down

In a94b420, Mercury (https://banland.xyz/) was down:

HTTP code: 521
Response time: 134 ms

Resolved: Mercury is back up in d5ef1ca after 26 minutes.

repo: tp-link-extender/status

license: Unlicense


text:
Update dd-trace-api, dd-trace-ot to 0.74.1

Updates

com.datadoghq:dd-trace-api
com.datadoghq:dd-trace-ot

from 0.72.0 to 0.74.1.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.datadoghq" } ]

labels: library-update, semver-minor

Superseded by #277.

repo: tpolecat/natchez


text:
Composing BlockGraphs

If I have two BlockGraph's g1 and g2, where g1 has an "output" Port and g2 has an "input" Port: is there an easy way to compose them? Let's say I set the positions up correctly and I want the output port to "cancel out" the input port. I tried naively just adding the nodes and edges from g1 and g2 to a new, combined graph but it complained that there's already a node there (perhaps unsurprisingly).
Is there an idiomatic way to compose/combine blockgraphs that uses ports as ports?

Currently, there is no easy way to combine two computations through port matching. You either need to compose them in SketchUp or build a new computation from scratch. This is definitely a feature that we need to add.

This is enough for my purposes, in case it helps
def add_edge_merge_ports(g: BlockGraph, u: Cube, v: Cube):
    assert u.is_port
    # prev_pos = start_pos.shift_by(dz=-1)
    if u.position in g._graph.nodes:
        # Throw out `u`, use the actual previous cube
        u = g._graph.nodes[u.position]['tqec_node_data']

        # prepare for edge into `v` by removing the port there. We make
        # sure there's a port there.
        # Since we're doing unsupported mutation, we have to make sure we
        # update both `g._graph` and `g._ports`.
        v_port_cube: Cube = g._graph.nodes[v.position]['tqec_node_data']
        assert v_port_cube.is_port
        g._graph.remove_node(v_port_cube.position)
        (portkey,) = [portkey for portkey, portcube in g._ports.items() if v == v.position]
        del g._ports[portkey]

    g.add_edge(u, v)

a related concern with composing subgraphs is dealing with duplicate port labels, since those must be globally unique.

That is definitely a function that should be included in the main code.
@mpharrigan would it be OK for you to try to submit a PR with your changes? We can iterate on it if you or anyone else think that it would gain being more generic.

@nelimee happy to create a PR for this if @mpharrigan doesn't have the bandwidth right now. Would allow me to explore the internals a bit more.

@JLenssen I assigned you. I know that other people planned to work on that issue, so if you end up not wanting to work on this issue anymore, please unassign yourself :)

Thanks @nelimee , will work on it during the weekend and unassign myself if I don't get it done.

authors: JLenssen inmzhang mpharrigan nelimee

repo: tqec/tqec


text:
Invitee: don't wait for bootstrap node

closes #108
closes #109
closes #110

zerotier api is broken for me right now, the wait script is stuck at:
{"type":"internal","message":"Error updating member: json: cannot unmarshal string into Go struct field APIMember.hidden of type bool"}

If I remove hidden: false from the api call in the script it seems to work. Do you see the same?

authors: harryttd nicolasochem


text:
Not working on android

When I'm trying to call : EscPosPrinter.init app crashing with this error : react native attempt to invoke virtual method 'double java.lang.double.doublevalue()'
Also There's a typo >> EscPosPrinter.discovery() should be EscPosPrinter.discover() also this function returning an empty list (not showing printers connected via bluetooth)

@deounix Hello!
Could you provide a bit more info?
At least the package version you're are using. Thanks

I have the same problem

the same problem here

@samuel20miglia @MeSMedia  could you please provide the info I've mentioned above?

Hi @tr3v3r ,
please find below the details about the issue:
react-native-cli: 2.0.1
react-native: 0.64.2

Best Regards

@samuel20miglia Thanks.
Also, it would be nice if you could provide ]react-native-esc-pos-printer] version you are using and code snippet of how you call init method

react-native-esc-pos-printer: latest

@samuel20miglia I suppose the problem is that you are using a printer produced NOT by Epson.
Here is the list of all supported series names
EPOS2_TM_M10,
  EPOS2_TM_M30,
  EPOS2_TM_P20,
  EPOS2_TM_P60,
  EPOS2_TM_P60II,
  EPOS2_TM_P80,
  EPOS2_TM_T20,
  EPOS2_TM_T60,
  EPOS2_TM_T70,
  EPOS2_TM_T81,
  EPOS2_TM_T82,
  EPOS2_TM_T83,
  EPOS2_TM_T88,
  EPOS2_TM_T90,
  EPOS2_TM_T90KP,
  EPOS2_TM_U220,
  EPOS2_TM_U330,
  EPOS2_TM_L90,
  EPOS2_TM_H6000,
  EPOS2_TM_T83III,
  EPOS2_TM_T100,
  EPOS2_TM_M30II,
  EPOS2_TS_100,
  EPOS2_TM_M50,

But anyway thanks for finding this bug. I'll add an assertion for this case

yes, sure


text:
🐛 use symlinkJoin and nix-filter

close #34
symlinkJoinとnix-filterを使った実装に変更

@zer0-star レビューお願いします

@mtaku3 ありがとうございます！issue建てました
#108

@mtaku3 これは一旦マージして、flake.nixを別prでdockertoolsを使った実装に書き換えようと思うのですが、flake.nix以外の部分はこれで大丈夫そうですか？

repo: traP-jp/traO-Judge-docs


text:
PDFのプレビューが欲しい

PDFをプレビューしたい。最初の一枚をサムネイル的な感じで表示？

https://q.trap.jp/messages/1a1df0e1-315b-464b-be85-61e81da3e444

似たようなissue:
https://github.com/traPtitech/traQ/issues/191
https://github.com/traPtitech/traQ/issues/2380

repo: traPtitech/traQ


text:
Update scala3-library to 3.2.1

Updates org.scala-lang:scala3-library from 3.1.3 to 3.2.1.
GitHub Release Notes - Version Diff - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scala-lang", artifactId = "scala3-library" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "@monthly" },
  dependency = { groupId = "org.scala-lang", artifactId = "scala3-library" }
}]

labels: library-update, early-semver-minor, semver-spec-minor, commit-count:n:2

Superseded by #150.


text:
Update trace4cats-core to 0.14.6

About this PR
📦 Updates io.janstenpickle:trace4cats-core from 0.14.4 to 0.14.6
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "io.janstenpickle", artifactId = "trace4cats-core" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "io.janstenpickle", artifactId = "trace4cats-core" }
}]

labels: library-update, early-semver-minor, semver-spec-patch, version-scheme:early-semver, commit-count:1

Superseded by #207.


text:
Update scalafmt-core to 3.5.3

Updates org.scalameta:scalafmt-core from 3.5.2 to 3.5.3.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scalameta", artifactId = "scalafmt-core" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequest = { frequency = "@monthly" },
  dependency = { groupId = "org.scalameta", artifactId = "scalafmt-core" }
}]

labels: library-update, early-semver-patch, semver-spec-patch, commit-count:n:2

Superseded by #208.


text:
Add certificate revocation list for TLS mutual authentication

Do you want to request a feature or report a bug?
Feature
What did you expect to see?
add crl list for deny access to clients that are no longer trusted
https://jamielinux.com/docs/openssl-certificate-authority/certificate-revocation-lists.html

We are looking at moving from nginx to traefik for proxying requests and would need this feature as well. It's been a little over an year since the issue was opened. Are there any updates on this?

Being able to use a CA certificate to trust a group of TLS clients but not being able to use a certificate revocation list to exclude some of them makes the mutual authentication not usable right now

Any updates? Only EE feature? Do you need help implementing?

Do you accept contributions for this?

@Equanox This feature is not present in TraefikEE at the moment, nor can I find any indication that it's planned in the roadmap.
@EmiiKhaos The team would love to hear your ideas on implementing this capability in Traefik, and would appreciate your contribution. Please let me know if there is anything I can do to help you get started!

@notsureifkevin since Traefik 2.3 RC with plugins are here, what do you think? Should this go into Traefik itself or as a plugin middleware?

IMHO this should be a part of accepting TLS client connections and not be a
separate plugin. Mutual authentication is not complete without revocation
checks.
Em notifications@github.com schrieb am Mi., 12. Aug. 2020, 10:30:

@notsureifkevin https://github.com/notsureifkevin since Traefik 2.3 RC
with plugins are here, what do you think? Should this go into Traefik
itself or as a plugin middleware?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/containous/traefik/issues/3433#issuecomment-672731348,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAFOY6DZNZUJUQCFVFAQEPLSAJHJDANCNFSM4FDIM7RQ
.

Hi! I'm Træfiker :robot: the bot in charge of tidying up the issues.
I have to close this one because of its lack of activity :disappointed:
Feel free to re-open it or join our Community Forum.

Nooooooooo ^^
Didn't had the time yet to tackle this

@EmiiKhaos I would love to help out on this, as this would be a huge feature for my team.
Looking at cfssl's certificate revocation, it looks like the logic should not be too hard.
Have you had a chance to start anything?  Otherwise, I'm not familiar with Traefik development, but I may try to work on it.

Hello @EmiiKhaos @m-wynn,
We are still open to hear your ideas on implementing this feature in Traefik !

I'll provide a PR for this tomorrow.

https://github.com/traefik/traefik/pull/7614

Accordingly to https://github.com/traefik/traefik/pull/7614#issuecomment-758666023 , we move this issue to proposal.

Accordingly to https://github.com/traefik/traefik/pull/7614#issuecomment-758666023 , we move this issue to proposal.

We are using HashiCorp Vault to manage our PKI.  It can generate short-lived certificates on demand for services or longer-lived certificates for people to use for authentication.  Most of our internal services are behind various traefik endpoints which check and verify client certificates (we hate passwords).
If an employee leaves the company or is deemed for whatever reason as untrustworthy to access some resource, we currently have to invalidate all the certificates via regenerating the signing certificate and generating new client certificates for all-except-this-one employees.  I don't know of any other way except to tell traefik that the certs must be signed by some other CA.
If the CRL was supported, we could tell Vault to revoke a certificate, it would regenerate the CRL and traefik would automatically pick up the change and instantly cut the revoked certificate owner's access.
As @arkanoid87 mentioned, without revokation the whole client certificate authentication scheme is severly inconvenient or outright broken.

We are using HashiCorp Vault to manage our PKI.  It can generate short-lived certificates on demand for services or longer-lived certificates for people to use for authentication.  Most of our internal services are behind various traefik endpoints which check and verify client certificates (we hate passwords).
If an employee leaves the company or is deemed for whatever reason as untrustworthy to access some resource, we currently have to invalidate all the certificates via regenerating the signing certificate and generating new client certificates for all-except-this-one employees.  I don't know of any other way except to tell traefik that the certs must be signed by some other CA.
If the CRL was supported, we could tell Vault to revoke a certificate, it would regenerate the CRL and traefik would automatically pick up the change and instantly cut the revoked certificate owner's access.
As @arkanoid87 mentioned, without revokation the whole client certificate authentication scheme is severly inconvenient or outright broken.

While I also support this feature, in the meantime my suggestion is to have a BIG warning message preface the Mutual TLS section of the documentation.
Having to re-issue the root certificate along with all client certificates when a single client certificate is compromised should not be considered a workable approach. The potential for people adapting Traefik thinking this feature is feasible, when in reality its not is rather big.

While I also support this feature, in the meantime my suggestion is to have a BIG warning message preface the Mutual TLS section of the documentation.
Having to re-issue the root certificate along with all client certificates when a single client certificate is compromised should not be considered a workable approach. The potential for people adapting Traefik thinking this feature is feasible, when in reality its not is rather big.

I would also like to know if someone is working on this, without a CRL the mTLS is not really usable to be honest.

FYI this is not in our short term tasks at this moment, we prefer to focus first on OCSP for certificate revocation support, then probably looking at OCSP Stapling as a next step / enhancement.
So we definitely plan to revisit this task in the future, but first we want to clear out other priorities.

Check, thanks for the update, I won't hold my breath then. :(

Certificate revocation

not sure if that's helpful, but perhaps take a peek at envoy' proxy implementation of crl
https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/transport_sockets/tls/v3/common.proto#envoy-v3-api-field-extensions-transport-sockets-tls-v3-certificatevalidationcontext-crl

Hello everyone!  This concept is a candidate for a bounty during the Traefik Proxy 3.0 Hackaethon!  The goal for the version on the hackathon is focused on OSCP Stapling, so I thought I would link you to the blog post that describes it so that you can check that out and maybe participate with us.
There will also be a more in-depth update on the issues associated with it coming soon.
This means that if the design and POC or the fully fleshed-out PR for this issue is accepted in the Hackaethon, the person or team behind doing it will receive $250 as well as a chance at the Grand Prize of $1000!
All accepted PRs and designs will receive a tshirt and stickers.
To learn more about the Traefik Proxy 3.0 Hackaethon, check out our blog post that covers the goals, rules, scoring criteria, and dates in detail.
To join us, sign-up here!

https://github.com/traefik/traefik/pull/7614#issuecomment-759338221 asked for more use cases for certificate revocation, so here is ours.
We build embedded devices that are installed in public transport vehicles. Due to EU regulations we are now considered critical infrastructure, which for example mandates making security updates available to customers. As you can imagine, actually getting the updates to the devices is not a simple feat for the system integrators with hundred of thousand devices in the field. One way of simplifying this it is a fleet management platform we are currently working on. Devices that are internet connected can now interact with the fleet management platform, e.g. can do an autonomous A/B update.
As one of our security layers to protect ourselves from bad actors, the fleet management platform will only accept connections from devices that can present a valid client certificate, signed by our CA authority (mTLS). These client certificates are unique for each device and added during the device provisioning before locking down the device and shipping it to customers.
Unfortunately, many devices will never or seldom be connected to the internet, thus it is impossible to have short-lived certificates for this. Basically, the client certificate has to be valid throughout the devices lifetime.
For us it is therefore vital to be able to revoke individual device certificates if we see suspicious traffic coming from one of the devices, which to us would basically mean an attacker was able to circumvent other security measurements , i.e. secureboot, signed partitions, etc., undermining the devices chain-of-trust.

亲，你的邮件我已收到...有空常联系...

Hi, my use case is similar to above. I am making embedded devices and want to have TLS communication with server. If one embedded device is compromised and cracked by a malicius entity and the client certificate is recovered from device ROM, I want to be able to block that particular device. Thanks.

亲，你的邮件我已收到...有空常联系...

Hello there,
This would not make it to our roadmap as we are focused elsewhere. If a community member would like to build it, let us know, and we will work with you to ensure you have all the information needed to merge it.
We prefer to work with our community members at the beginning of the design process to ensure that we are aligned and can move quickly with the review and merge process. Let us know here or create a PR before you start, and we will work with you there.
Don’t forget to check out the contributor docs and link the PR to this issue.

authors: Bleala EmiiKhaos Equanox Fuco1 Jasper-Ben Kamilcuk a1exus arkanoid87 ddtmachado jbdoumenjou jzandbergen leonklingele lining1993 m-wynn nmengin notsureifkevin ojasp pdeak rtribotte tfny traefiker zeeZ zong400

repo: traefik/traefik


text:
TRAEFIK_ENTRYPOINTS__HTTP_TLS_DOMAINS[n]_MAIN environment can not be set

Do you want to request a feature or report a bug?
Bug
What did you do?
Setting up the following configuration using environment variables:
traefik \
        --accesslog="true" \
        --certificatesresolvers.letsencrypt.acme.caserver="https://acme-v02.api.letsencrypt.org/directory" \
        --certificatesresolvers.letsencrypt.acme.email="email@example.com" \
        --certificatesresolvers.letsencrypt.acme.keytype="RSA4096" \
        --certificatesresolvers.letsencrypt.acme.storage="letsencrypt.json" \
        --certificatesresolvers.letsencrypt.acme.dnschallenge="true" \
        --certificatesresolvers.letsencrypt.acme.dnschallenge.provider="hetzner" \
        --entrypoints.web="true" \
        --entrypoints.web.address=":80" \
        --entrypoints.web.http.redirections.entrypoint.to="webssl" \
        --entrypoints.webssl="true" \
        --entrypoints.webssl.address=":443" \
        --entrypoints.webssl.http.tls="true" \
        --entrypoints.webssl.http.tls.certresolver="letsencrypt" \
        --entrypoints.webssl.http.tls.domains[0].main="server.example.com" \
        --log="true" \
        --log.level="DEBUG" \
        --ping="true" \
        --ping.entrypoint="web" \
        --providers.docker="true" \
        --providers.docker.endpoint="unix:///var/run/docker.sock"

The issue here is that the variable --entrypoints.webssl.http.tls.domains[0].main, which corresponds to TRAEFIK_ENTRYPOINTS_<NAME>_HTTP_TLS_DOMAINS[n]_MAIN according to the documentation is not a good variable name in bash/sh:
export TRAEFIK_ENTRYPOINTS_webssl_HTTP_TLS_DOMAINS[0]_MAIN="server.example.com"
bash: export: `TRAEFIK_ENTRYPOINTS_webssl_HTTP_TLS_DOMAINS[0]_MAIN=server.example.com': not a valid identifier
export TRAEFIK_ENTRYPOINTS_webssl_HTTP_TLS_DOMAINS'[0]'_MAIN="server.example.com"
bash: export: `TRAEFIK_ENTRYPOINTS_webssl_HTTP_TLS_DOMAINS[0]_MAIN=server.example.com': not a valid identifier

What did you expect to see?
Documentation example for env variable TRAEFIK_ENTRYPOINTS_<NAME>_HTTP_TLS_DOMAINS[0]_MAIN. As it is right now, it is not usable in bash/sh.
What did you see instead?
An error "not a valid identifier"
Output of traefik version: (What version of Traefik are you using?)
Docker image:
traefik:v2.4.0

What is your environment & configuration (arguments, toml, provider, platform, ...)?
no toml used

The full configuration is provided in the example above using cli arguments.
If applicable, please paste the log output in DEBUG level (--log.level=DEBUG switch)
Not relevant.

I think the best way to fix this would be to assign __ to [, and subsequently ], given that it's the only non alphanumeric character allowed. Just as _ is assigned to .

@LeviHarrison
Here is a reference regex for POSIX variable names: [a-zA-Z_]+[a-zA-Z0-9_]*
Using __ (two underscores) would be only possible if a proper parser is used on a string (i.e. going a symbol at a time and build a parse tree, which can be used later for character substitution). In the reference code you mentioned, there is a simple substitution.
In my opinion, it is easier to use two distinct unique sets of characters for each [ and ]. It can be as simple as _lbr_ and _rbr_ or perhaps something more elegant. As long as e.g. _lbr_ can be identified uniquely inside the variable, it will be recognized properly.

Just by curiosity, could you explain why you are using env vars instead of a file or CLI flags?

@ldez I generally prefer using env vars (it's just a personal preference). In the end I switched to using CLI flags, because env var config is broken. In my current use case I am deploying traefik on a single docker daemon using ansible task (docker_container). In ansible the templating engine allows to insert variables both in env or command, thus it does not matter there.
This issue is still a bug, if the configuration through environment does not work, it should be either fixed or removed. Otherwise it is just confusing and time-wasting thing.

Closed by #7849.

authors: LeviHarrison earthquakesan ldez traefiker


text:
Improve Crossandra.tokenize return type

Right now the method is declared to return list[Enum | Any] where:

Enum refers to the token_source enum members (probably not specific to the one specified in the __init__?)
Any refers to anything that the rules supplied to the tokenizer return

It feels like both things could be improved with generics.
Here are some (hopefully relevant) highlights of their origin:
def invert_enum(enum: type[Enum]) -> dict[str, Enum]:
    ...

class Empty(Enum):
    pass

class Crossandra:

    def __init__(
        self,
        token_source: type[Enum] = Empty,
        *,
        ...
        rules: list[Rule[Any] | RuleGroup] | None = None,
        ...
    ) -> None:
        self.__rules: list[Rule[Any]] = []
        for r in rules or []:
            if isinstance(r, RuleGroup):
                self.__rules.extend(r)
            else:
                self.__rules.append(r)
        ...
        self.__tokens = invert_enum(token_source)
        ...

    def tokenize(self, code: str) -> list[Enum | Any]:
        ...

Solving #16 is likely to help here.

Canceled due to Crossandra 3.0's design changes


text:
Representable docs small update

I have applied @myabc 's suggestions on previous PR (#64) but have forgotten to open the PR.
So here it is!
cc: @apotonick

thanks @abinoam!

authors: abinoam myabc


text:
Large content in info response impacts performance a lot

Raised by @bbeattie-phxlabs.

Collection of body content doesn't matter much when the response size is under a few megs, but when a response is a FileResponse beyond a couple hundred megs, it really starts to matter.

Considering response.body isn't used in any metrics in metrics.py, I'd suggest removing its collection altogether.

Hmm... I see this was added in for https://github.com/trallnag/prometheus-fastapi-instrumentator/pull/203. I wonder if the better approach here would be to customize the send_wrapper based on a PrometheusInstrumentatorMiddleware instance variable, allowing this body aggregation for those that choose to enable it, or disabled for those that choose to disable it, depending on the approach.

Released in https://github.com/trallnag/prometheus-fastapi-instrumentator/releases/tag/v6.0.0

license: ISC


text:
B-17965 Send Email - Gov't Counselor Submission (Before TOO Approval)

Agility ticket B-17965
Summary
The automated test that I implemented just confirms that the correct email body is presented.
Verification Steps for the Author
These are to be checked by the author.

[x] Tested in the Experimental environment (for changes to containers, app startup, or connection to data stores)
[x] Have the Agility acceptance criteria been met for this change?

Verification Steps for Reviewers
These are to be checked by a reviewer.

[ ] Has the branch been pulled in and checked out?
[ ] Have the BL acceptance criteria been met for this change?
[ ] Was the CircleCI build successful?
[ ] Has the code been reviewed from a standards and best practices point of view?

Setup to Run the Code

Instructions for starting storybook
Instructions for starting the MilMove application
Instructions for running tests

How to test
Frontend

[ ] There are no aXe warnings for UI.
[ ] This works in Supported Browsers and their phone views (Chrome, Firefox, Edge).
[ ] There are no new console errors in the browser devtools.
[ ] There are no new console errors in the test output.
[ ] If this PR adds a new component to Storybook, it ensures the component is fully responsive, OR if it is intentionally not, a wrapping div using the officeApp class or custom min-width styling is used to hide any states the would not be visible to the user.
[ ] This change meets the standards for Section 508 compliance.

Backend

[ ] Code follows the guidelines for Logging.
[ ] The requirements listed in Querying the Database Safely have been satisfied.

Database
Any new migrations/schema changes:

[ ] Follows our guidelines for Zero-Downtime Deploys.
[ ] Have been communicated to #g-database.
[ ] Secure migrations have been tested following the instructions in our docs.

Screenshots

File names.  move_counselled.go, move_counselled_test.go
"counselled" should be "counseled"

repo: transcom/mymove


text:
INT B-20976 customer state management to avoid duplicate moves

Agility ticket
LINK TO PREVIOUS INT PR PRIOR TO REBASE
Summary
We were running into an issue where customers were able to add an additional move after submitting their orders and then clicking the browser back button to go back to the add orders form, fill it out, and submit again. This was a huge no-no cause we really know all they wanted was just to update their orders information (we all make some oopsies sometimes).
At first we had this grand solution that was beautiful and wonderful and that was turned down, so we made it simpler.
Using Redux, we are tracking essentially where the customer is coming from to add the orders. We only want to let the customer add new orders if they are originating from the "Create a Move" button on the multi moves landing page. So if the customer clicks that and navigates to the add orders form, we let them in the house. If they try to access that route in any other capacity, we leave them outside with the dogs so they don't get mud on the carpets.
This PR does the following:

update the generalState entity in state to add a canAddOrders value that defaults to false
update that value to true when the customer clicks the Create a Move button
update the AddOrders.jsx component to first check the canAddOrders value in state prior to loading and redirect the user to either the move home page or their default home page or let them add orders
added and updated relevant tests

How to test

Access the app as a customer
Create a new move and add your orders
Once you're on the upload attachments route, hit the browser back button
You should be redirected to the move home page that you just created
Try to access the /orders/add route from anywhere in the app
You should be redirected to the default home page
PLEASE TEST WITH BOTH MULTI MOVE FLAG ON AND OFF

Screenshots
https://github.com/user-attachments/assets/5701f28a-d7a9-4244-b1ef-f8243cdbee33

works like a charm
but I see conflicts

works like a charm but I see conflicts

Should be resolved now

authors: danieljordan-caci deandreJones


text:
Adding another office user

Description
This PR is a secure migration that adds a new office user for the story linked below.
Setup
Run bin/run-prod-migrations and validate that the new office user in your local prod_migrations database matches what's listed in the story below.
Code Review Verification Steps

[ ] Request review from a member of a different team.
[ ] Have the Pivotal acceptance criteria been met for this change?

References

Pivotal story for this change

LGTM!

authors: chrisrcoles reggieriser


text:
MB-6662 post move submission state for editing contact information

Description
Retrieve and check if the current move is in a draft sate (it has not been submitted). Disable the ServiceInfoDisplay if the move is in draft. Also, add an alert to the profile page once the move has been submitted.
Reviewer Notes
Have at it folks!
Setup
Add any steps or code to run in this section to help others prepare to run your code:
make client_run
make server_run

Code Review Verification Steps

[x] There are no aXe warnings for UI.
[x] This works in Supported Browsers and their phone views (Chrome, Firefox, IE, Edge).
[ ] User facing changes have been reviewed by design.
[x] Request review from a member of a different team.
[x] Have the Jira acceptance criteria been met for this change?

References

Jira story for this change

Screenshots
If this PR makes visible UI changes, an image of the finished UI can help reviewers and casual
observers understand the context of the changes. A before image is optional and
can be included at the submitter's discretion.
Consider using an animated image to show an entire workflow instead of using multiple images. You may want to use GIPHY CAPTURE for this! 📸
Please frame screenshots to show enough useful context but also highlight the affected regions.

Messages

:book:
:link: MB-6662

  Generated by :no_entry_sign: dangerJS against dc318a36c99e7f8df71a211c747333ab338aa9fa

I'm seeing a bit of extra space between Service info and the text below it. Looks like 24px, should be 16px.
Other than that, everything looks good to me!


text:
MB-13897 Fix race conditions in GHC rate engine importer

Jira ticket for this change
Summary
I removed all the spinner related code since it was generating race conditions when I turned the -race flag on for Go.
Go does run the tests in parallel, so I suspect that it wasn't really an issue. I decided to fix it anyways since I think putting in the fix is easier than proving why the code isn't vulnerable.
This is related to PR for the related ADR
Setup to Run Your Code

💻 You will need to use three separate terminals to test this locally.
Terminal 1
Start the UI locally.
make client_run

Terminal 2
Start the Go server locally.
make server_run

Additional steps

Make sure everything works as expected.

Verification Steps for Author
These are to be checked by the author.

[ ] Request review from a member of a different team.
[ ] Have the Jira acceptance criteria been met for this change?

Verification Steps for Reviewers
These are to be checked by a reviewer.

Backend

[ ] Code follows the guidelines for Logging
[ ] The requirements listed in Querying the Database Safely have been satisfied.

Messages

:book:
:link: MB-13897

  Generated by :no_entry_sign: dangerJS against 099de2f7bd8d05904f32130d24989d2353cd54aa


text:
Update tweet HTML tag and add forwardRef

Summary
This PR updates the root HTML tag of Tweet to be semantically correct and adds forwardRef to Tweet.
Motivation

There can only be one main element on any one page according to the HTML spec: https://html.spec.whatwg.org/multipage/grouping-content.html#the-main-element. That makes rendering multiple tweets hard if some automated HTML validation audit runs on your builds. In our case, this was reported by the aXe developer tools audit as erroneous markup.
Adding forwardRef makes it possible to pass a ref in order to get a reference to the rendered DOM element, if needed.

Detailed design
I replaced the root main tag in packages/react-static-tweets/src/tweet.tsx with an article tag. According to MDN:

The HTML  element represents a self-contained composition in a document, page, application, or site, which is intended to be independently distributable or reusable (e.g., in syndication).

A tweet seems to fit that description.
I also wrapped a forwardRef around <Tweet />. As a type for the ref, I passed in HTMLElement, because there is no dedicated type for article.

This is awesome; thanks @nickrttn 🙏

Published as v0.3.1.

Hey Travis,
Thanks for merging this! :)

authors: nickrttn transitive-bullshit

repo: transitive-bullshit/react-static-tweets


text:
🛑 TechinAsia_WordPress_API is down

In c2af4d8, TechinAsia_WordPress_API (https://www.techinasia.com/wp-json/techinasia/2.0/posts) was down:

HTTP code: 403
Response time: 227 ms

Resolved: TechinAsia_WordPress_API is back up in 48707be after 22 minutes.

repo: traqy/upptime


text:
🛑 TechinAsia_WordPress_API is down

In 908ea98, TechinAsia_WordPress_API (https://www.techinasia.com/wp-json/techinasia/2.0/posts) was down:

HTTP code: 403
Response time: 172 ms

Resolved: TechinAsia_WordPress_API is back up in cf07e8b after 7 minutes.


text:
🛑 TechinAsia_Laravel_API is down

In ea42ecb, TechinAsia_Laravel_API (https://www.techinasia.com/api/2.0/companies) was down:

HTTP code: 403
Response time: 227 ms

Resolved: TechinAsia_Laravel_API is back up in 858597a after 8 minutes.


text:
🛑 TechinAsia_Laravel_API is down

In d0acf01, TechinAsia_Laravel_API (https://www.techinasia.com/api/2.0/companies) was down:

HTTP code: 403
Response time: 226 ms

Resolved: TechinAsia_Laravel_API is back up in fd5c1b7 after 7 minutes.


text:
🛑 TechinAsia_Laravel_API is down

In 372a9fb, TechinAsia_Laravel_API (https://www.techinasia.com/api/2.0/companies) was down:

HTTP code: 403
Response time: 227 ms

Resolved: TechinAsia_Laravel_API is back up in 379793f after 10 minutes.


text:
Optionally separate cache setup process from install

With cache.custom_install: true, other caching directives
such as cache.bundler: true will be respected, and the
overridden install section will not negate cache.bundler: true
Caveat: There are no specs yet.

The fold now looks like this:

repo: travis-ci/travis-build


text:
bump default neko version for "language: haxe" to 2.1.0

Neko 2.1.0 has been released. Existing Neko programs should run fine with this new release, so let's bump the default Neko version.

Thank you!

authors: BanzaiMan andyli


text:
Update kind-projector to 0.10.1

Updates org.typelevel:kind-projector from 0.10.0 to 0.10.1.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention @scala-steward in the comments below.
Have a nice day!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [{ groupId = "org.typelevel", artifactId = "kind-projector" }]

labels: semver-patch

Codecov Report

Merging #27 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           master    #27   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           3      3
  Lines           3      3
=====================================
  Hits            3      3

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 e38e1d1...57233bc. Read the comment docs.

authors: codecov-io scala-steward

repo: travisbrown/iteratee-twitter


text:
How to use the new http:get/3 api?

For following code, I can not find way to fetch the contents of response:
:- initialization(main).

main :-
        net:client('http://www.example.com', S),
        http:get(S, /, [debug(true)]),
        net:stash_get(S, 'Content-Length', LengthAtom),
        atom_number(LengthAtom, Length),
        sys:bread(S, Length, Response),
        write(Length), nl,
        halt.

Output:
GET / HTTP/1.1
Host: www.example.com
User-Agent: Trealla
Transfer-Encoding: chunked
Connection: keep-alive
Accept-Encoding: chunked

0

You always have to call parse/3 now.
On 23 Jun 2017 11:55, "Xin Wang" notifications@github.com wrote:

For following code, I can not find way to fetch the contents of response:
:- initialization(main).
main :-
net:client('http://www.example.com', S),
http:get(S, /, [debug(true)]),
net:stash_get(S, 'Content-Length', LengthAtom),
atom_number(LengthAtom, Length),
sys:bread(S, Length, Response),
write(Length), nl,
halt.
Output:
GET / HTTP/1.1
Host: www.example.com
User-Agent: Trealla
Transfer-Encoding: chunked
Connection: keep-alive
Accept-Encoding: chunked
0
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/trealla-lang/trealla/issues/174, or mute the thread
https://github.com/notifications/unsubscribe-auth/AVqpEhviE9GKmboDp65Nmk9gie0UKO3Yks5sGxsJgaJpZM4ODCyy
.

Also, set the length to 0 I think.
On 23 Jun 2017 11:55, "Xin Wang" notifications@github.com wrote:

For following code, I can not find way to fetch the contents of response:
:- initialization(main).
main :-
net:client('http://www.example.com', S),
http:get(S, /, [debug(true)]),
net:stash_get(S, 'Content-Length', LengthAtom),
atom_number(LengthAtom, Length),
sys:bread(S, Length, Response),
write(Length), nl,
halt.
Output:
GET / HTTP/1.1
Host: www.example.com
User-Agent: Trealla
Transfer-Encoding: chunked
Connection: keep-alive
Accept-Encoding: chunked
0
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/trealla-lang/trealla/issues/174, or mute the thread
https://github.com/notifications/unsubscribe-auth/AVqpEhviE9GKmboDp65Nmk9gie0UKO3Yks5sGxsJgaJpZM4ODCyy
.

For example, from library/http_client.pro
get11_internal(S,Path,Data) :-
http:get(S,Path,[version(1.1),length(0),persist(false)]),
http:parse(S,Status),
Status = 200,
net:stash_get(S,'CONTENT_LENGTH',LenStr,'-1'),
atom_number(LenStr,Len),
(Len >= 0 -> bread(S,Len,Data) ; get11_chunk(S,'',Data)),
true.
On Fri, Jun 23, 2017 at 12:08 PM, Andrew Davison andrew.davison@gmail.com
wrote:

Also, set the length to 0 I think.
On 23 Jun 2017 11:55, "Xin Wang" notifications@github.com wrote:

For following code, I can not find way to fetch the contents of response:
:- initialization(main).
main :-
net:client('http://www.example.com', S),
http:get(S, /, [debug(true)]),
net:stash_get(S, 'Content-Length', LengthAtom),
atom_number(LengthAtom, Length),
sys:bread(S, Length, Response),
write(Length), nl,
halt.
Output:
GET / HTTP/1.1
Host: www.example.com
User-Agent: Trealla
Transfer-Encoding: chunked
Connection: keep-alive
Accept-Encoding: chunked
0
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/trealla-lang/trealla/issues/174, or mute the thread
https://github.com/notifications/unsubscribe-auth/AVqpEhviE9GKmboDp65Nmk9gie0UKO3Yks5sGxsJgaJpZM4ODCyy
.

Also, i'm going to make it an option whether to accept chunked responses.
On Fri, Jun 23, 2017 at 12:14 PM, Andrew Davison andrew.davison@gmail.com
wrote:

For example, from library/http_client.pro
get11_internal(S,Path,Data) :-
http:get(S,Path,[version(1.1),length(0),persist(false)]),
http:parse(S,Status),
Status = 200,
net:stash_get(S,'CONTENT_LENGTH',LenStr,'-1'),
atom_number(LenStr,Len),
(Len >= 0 -> bread(S,Len,Data) ; get11_chunk(S,'',Data)),
true.
On Fri, Jun 23, 2017 at 12:08 PM, Andrew Davison <andrew.davison@gmail.com

wrote:

Also, set the length to 0 I think.
On 23 Jun 2017 11:55, "Xin Wang" notifications@github.com wrote:

For following code, I can not find way to fetch the contents of response:
:- initialization(main).
main :-
net:client('http://www.example.com', S),
http:get(S, /, [debug(true)]),
net:stash_get(S, 'Content-Length', LengthAtom),
atom_number(LengthAtom, Length),
sys:bread(S, Length, Response),
write(Length), nl,
halt.
Output:
GET / HTTP/1.1
Host: www.example.com
User-Agent: Trealla
Transfer-Encoding: chunked
Connection: keep-alive
Accept-Encoding: chunked
0
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/trealla-lang/trealla/issues/174, or mute the thread
https://github.com/notifications/unsubscribe-auth/AVqpEhviE9GKmboDp65Nmk9gie0UKO3Yks5sGxsJgaJpZM4ODCyy
.

It is a bit strange to have to specify length(0) explicitly for GET method, I think that should be the default, according to RFC 7231:

A payload within a GET request message has no defined semantics;
sending a payload body on a GET request might cause some existing
implementations to reject the request.

ok, had wondered.
On Fri, Jun 23, 2017 at 12:27 PM, Xin Wang notifications@github.com wrote:

It is a bit strange to have to specify length(0) explicitly for GET
method, I think that should be the default, according to RFC 7231
https://tools.ietf.org/html/rfc7231#section-4.3.1:
A payload within a GET request message has no defined semantics;
sending a payload body on a GET request might cause some existing
implementations to reject the request.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/trealla-lang/trealla/issues/174#issuecomment-310554004,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AVqpEgaG25QP9bXiR84e-kkqbbegdfjhks5sGyKGgaJpZM4ODCyy
.

Can be closed now, thanks.

authors: dram infradig

repo: trealla-lang/trealla


text:
getline/1 unexpectedly fails

Here's an odd one: getline/1 stopped working.
?- getline(X).
   false.

I ran a git bisect and it's pointing to: https://github.com/trealla-prolog/trealla/commit/5e4636a4c26fe19846e85c2bae12a651062cc90c as the commit that caused this.
Interestingly, changing the Makefile to remove -std=c99 from the CFLAGS seems to fix it.
No idea why 🤔
Also, it seems to have never broken for the WASM target. Maybe an issue with my libc or something? I'll do some more digging.
My environment:
$ uname -a
Linux 5.10.102.1-microsoft-standard-WSL2 #1 SMP Wed Mar 2 00:30:59 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

$ cc -v
Using built-in specs.
COLLECT_GCC=cc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:hsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.4.0-1ubuntu1~20.04.1' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-9-Av3uEd/gcc-9-9.4.0/debian/tmp-nvptx/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)

Ah, setting -std=gnu99 does the trick.

Thanks! Works great now 👍

repo: trealla-prolog/trealla


text:
🛑 PROD-Consus is down

In daf341b, PROD-Consus (https://api-prod.treant.io/health/consus) was down:

HTTP code: 404
Response time: 25 ms

Resolved: PROD-Consus is back up in a824407 after 16 hours, 14 minutes.

repo: treant-io/status