sublayout tab bar doesn't vanish when switching workspaces

Hello there, I recently added the subLayout modifier to my layout hook. I wanted to change the color of the tab bar to fit my theme so I switched from the subTabbed modifier to the generic subLayout one.
Uppon doing that, I noticed that when using the tabbed sublayout and switching to another workspace, the tab bar of the sublayout continued to be in the same position as previously. This only happens when using the sublayout version, but not the full-workspace one.
Is there any obvious reason that could cause this?
This is my layout hook:
myLayout = avoidStruts $ windowNavigation $ subLayout [0] (tabbedLayout) $ (BW.boringWindows) $
  -- with spacing
     spacingWithEdge 5
     (
       tall ||| grid ||| spiralLayout ||| tabbedLayout
     )
     -- without spacing
     ||| full
   where
     grid = Grid
     tabbedLayout = tabbed shrinkText myTabConfig
     full = (noBorders Full)
     tall = Tall 1 (3/100) (1/2)
     spiralLayout = spiral (6/7)

Xmonad-version: 0.17.1

subTabbed exists because of this issue, not merely as a convenience; you would need to duplicate its logic to replace it properly. The messages that tell tabbed to show/hide the tab bar don't get routed properly otherwise.

Ah, good to know.
Is there a way how I can apply "myTabConfig" to the subTabbed modifier?

I don't know subLayouts well enough to say if anything special would be needed aside from copying and modifying the definition of subTabbed (https://hackage.haskell.org/package/xmonad-contrib-0.17.1/docs/src/XMonad.Layout.SubLayouts.html#subTabbed). What I do know is that the behavior you are seeing is documented at the end of the haddock for SubLayout (https://hackage.haskell.org/package/xmonad-contrib-0.17.1/docs/XMonad-Layout-SubLayouts.html#g:3, last item: "fail horribly").

So I've been trying to get the styling to work.
Using
addTabs shrinkText myTabConfig $ subLayout [] (Simplest)

in the layout hook works for me.
The trick is to not use a tabbed layout at all but to addTabs to another layout like simplest. Doing that you can pass your tabConfig to the addTabs modifier.


dbeaver/dbeaver#22347 "Team" disappeared from context menu in 23.3.2

Removed item "team" from context menu only for remote resources

verified


Upgrade log4j to 2.17.1, solve CVE-2021-44832

Thanks for your contribution to Apache Tika! Your help is appreciated!
Before opening the pull request, please verify that

there is an open issue on the Tika issue tracker which describes the problem or the improvement. We cannot accept pull requests without an issue because the change wouldn't be listed in the release notes.
the issue ID (TIKA-XXXX)

is referenced in the title of the pull request
and placed in front of your commit messages surrounded by square brackets ([TIKA-XXXX] Issue or pull request title)

commits are squashed into a single one (or few commits for larger changes)
Tika is successfully built and unit tests pass by running mvn clean test
there should be no conflicts when merging the pull request branch into the recent main branch. If there are conflicts, please try to rebase the pull request branch on top of a freshly pulled main branch.

We will be able to faster integrate your pull request if these conditions are met. If you have any questions how to fix your problem or about using Tika in general, please sign up for the Tika mailing list. Thanks!

Thank you!  I just merged https://github.com/apache/tika/pull/474 which fixed this.


Cant' update to samba 9.3 from 9.2

Hi,
i'm on version 9.2 and i can't see any advice of updating to 9.3
How can i solve ?
Thanks

It should be available.
If you reload the add-on store, does it pop up? If not, anything visible in the logs after reloading?

If i delete the addon and next try to reinstall, the add-on store show me always version 9.2

That was not what I asked. Could you please try what I suggested in the question and share the logs that go with that?
Thanks 👍

Do you mean addon log or system log ?

Both :)

Ok i think (hope) i have found the problem In the system log:
ERROR (MainThread) [supervisor.store.git] Can't update https://github.com/home-assistant/hassio-addons repo: Cmd('git') failed due to: exit code(128)   cmdline: git fetch --depth=1 --update-shallow -v origin   stderr: 'error: object file .git/objects/00/843bb4078ee618605da27b8b69c2d68d6d0cea is empty fatal: loose object 00843bb4078ee618605da27b8b69c2d68d6d0cea (stored in .git/objects/00/843bb4078ee618605da27b8b69c2d68d6d0cea) is corrupt'.


[Feature] Switch Widget

Summary
Users want a switch widget as an alternative to the checkbox widget due to the aesthetic appeal
Additional Context
The switch widget will contain the following properties
label: string
isSelected: boolean
isVisible: boolean
isDisabled: boolean
isRequired: boolean
onSelectionChange:ActionSelector
https://www.figma.com/file/moGQyQffFfyUhHUMO9xqn3/Appsmith-v1.0-Final?node-id=1768%3A5093

@Nikhil-Nandagopal  Can we have 'isToggledOn' or 'isSwitchedOn' instead of 'isSelected', 'onChange' instead of 'onSelectionChange'?

@marks0351 Yes makes sense 👍


Add script to setup k8s environment on Travis CI

Part of #17. The setup is borrowed from ElasticDL. We can add others like dockerfile and k8s yaml later.

/release-note-none

@terrytangyuan Thanks, should we enable the project build in Travis first then merge it?

/assign @zw0610

@gaocegege I think it’s already enabled by @ddysher. You should be able to see the build now.

Gotcha.
/lgtm
/approve


Jump when transitioning from scene with NavBar to one without

Version

react-native-router-flux dev-master
react-native v0.49.3

Expected behaviour
It should be a smooth transition (smooth slide up) or just stay where it is on the previous scene
Actual behaviour
You can see how the NavBar get's removed. Just doesn't look super smooth as one would except from a good iOS app.

Steps to reproduce
Create two scenes, one with NavBar and one without NavBar. transition to the one with to the one without.

Exactly the same problem here. Can't understand the reason why the bar must be displayed while dragging back.

1

Seems like this issue is related to react-navigation package. But it's unbelievable there's not any workaround with that. Did someone solve this problem?

Please try to reproduce it with Example project and latest version 4.0.0-beta.40. Feel free to open if the issue still exists

So, any resolution to this issue?

Have same issue :(

@mxmtsk did you fixed this issue?


How about ReplyToMessageID for Topics?

I want to send message in supergroup with topics. For this i need a ReplyToMessageID field. Can you add this? Thx

Maybe you mean topic id?


allow inference of sequence

Infer schema based on record. (Works for both sequence and normal schemas)

Refer to this link for build results (access rights to CI server needed):
/job/datavec_PR/50/


Add Newsletter Subscription

This is useful for knowing the updates in your websites by subscribing to it. Please assign this to me under gssoc extd and hacktoberfest.

you can assign this task to me..


add "is it good? yes" link to FAQ

This takes inspiration from Helix FAQ

Hello! This is not a hackernews reference, at least not directly.

Hello!

hi!

not a hackernews reference

ok, it's fine. I just thought it'd be funny. Or (at least) that we could start a trend, haha


readall: fail on Ruby syntax warnings, check 'brew.rb'

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes?
[x] Have you successfully ran brew tests with your changes locally?

Should help with code quality and prevent accidental introduction of Ruby syntax warnings, as those will now cause a test bot build to fail.
cc @xu-cheng

:+1:

Updated to address the code comments. Additionally, removed the no longer needed nostdout do.


layer.conf: Do not require meta-networking.

It is not a strict requirement. I got a bit overzealous.

Failing because of meta-raspberry not yet using the latest version of u-boot. I've submitted a PR: https://github.com/agherzan/meta-raspberrypi/pull/512.

Perfect. My patch was merged and I just successfully got CI to pass with those changes. I think that's good enough for merging this. Thanks!


Fix typo in design.ipynb

PR Description
Fix typo in design.ipynb
Some notes

[x] Please make sure that you placed the files in an appropriate folder

[x] And that the files have indicative names.

[x] Please note that Classiq runs automatic code linting, which may minorly alter some files.

[x] If you're familiar with pre-commit, you may run pre-commit install, and then at each commit, your files will be altered in a similar way

Hi @king-p3nguin, thank you for the PR and for your patience.
We have a new version release tomorrow, after which we will merge this PR.


ENYO-2168: Marquee doesn't recalculate distance when scroller show/hide

scroll thumb.
Issue:

The moon.Scroller doesn't have a way to detect content changes.
So, we need to bubble up onRequestSetupBonds to update scroll boundary
and thumb state.
The problem is even if moon.Scroller (moon.ScrollStrategy) update it's
scroll bounds and enable scroll thumb area. All the items inside
doesn't get any notice from scroller when scroll thumb area is
reserved by strategy (push padding-right).

Fix:

It need to call resize on scroller when scroll thumb state is changed,
because the scroll content area and item width is actually changed.

Signed-off-by: Kunmyon Choi<EMAIL_ADDRESS>

I went ahead and reimplemented this without the observers and the calls to .set().  While I really liked the observer approach at first I did decide it hides the connection between cause and effect and it is not as performant as a more direct approach.  I suppose this is one of those situations that flux deals with well.


Crash on startup when the path to the password store does not exist

As reported by @kirkzp in #62. Investigation pending.

Unable to reproduce. The application behaves as expected: an error message informing the user that the password store does not exist.


fix(): reduce the data request on home blog posts

https://openforge.teamwork.com/#/tasks/17524798
I saw that we where requesting to butter cms all the blogs that comes in one page (10) twice, and then just getting the number 0 on the first one, and the number 1 on the second. So I just swap to just call once and with the page only for those 2 first items.

QA Passes


fix: typo in document_found

document_found step referenced camelCased documentVale but read_item result uses document_value.
Fixes #<issue_number_goes_here>

It's a good idea to open an issue first for discussion.

[ ] Tests pass
[ ] Appropriate changes to README are included in PR

Thanks for raising this @jontybrook. The JSON files in this repository are generated so we'll look into how to get a proper fix.
Opened #88 for follow-up.


[Release] 07-matlab-upload.sh misses shebang

Describe the bug, including details regarding any error messages, version, and platform.
Executable shell script should have shebang.
Component(s)
Release

Issue resolved by pull request 44454
https://github.com/apache/arrow/pull/44454


No pdf rendered

Hi. I am playing with the rails-latex-demo example.
In the root page "http://localhost:3000/latex_example" there is the link "print".
When I click on print, the browsers downloads the file latex_example.pdf, but it is not a pdf, instead this is its content:
\section*{Example \LaTeX\ to PDF document}
Generated at 2011-06-09 20:33:11 UTC.
\includegraphics{/var/www/rails/rails-latex-demo/public/example.jpg}
The last page is \pageref{LastPage}.
What is going wrong?
Thank you very much

Still actual for me... What's new?

Hmm, have you checked out my branch at https://github.com/hperl/rails-latex? I made some adaptions to rails 3.1 a while ago but didn't manage to merge them yet. Maybe that will help you.


hysteria draft

🤔 This is a ...

[x] New feature

🔗 Related issue link

💡 Background and solution

📝 Changelog

☑ Self-Check before Merge
⚠ Please check all items below before requesting a reviewing. ⚠

[ ] Doc is updated/provided or not needed
[ ] Changelog is provided or not needed

At present, hysteria2 can already perform tcp proxy, mainly udp proxy, brutal congestion, ports hopping has not been implemented, port hopping may be just a small problem.
In the process of implementing salamander, I encountered a very confusing problem. The obfuscation can be correctly encrypted and decrypted by both parties, and the quic connection can be established. But when sending h3 authentication, an error will occur. I don’t know if it’s a problem with the h3 library or the obfuscation algorithm itself or something else. I don’t know if you know more about quic and if you have any ideas.
@ibigbug  @greenhat616  @xmh0511

I'm busy these days. while I am spare, I could take a look.

I'm busy these days. while I am spare, I could take a look.

thanks, salamander obfs have been fixed, it work now

Hey thank you guys.
I see that you've fixed the problem, is there anything left to be done for this PR?

@eauxxs the build is failed on Windows

@eauxxs the build is failed on Windows

It looks like the problem is with borrowing-ssl, can we remove deps directory, and use boring crate directly, why it is necessary?

@eauxxs the build is failed on Windows

It looks like the problem is with borrowing-ssl, can we remove deps directory, and use boring crate directly, why it is necessary?

the forked boring added aes however this https://github.com/Watfaq/clash-rs/pull/240 removes it

怎么没消息了

@ibigbug  I'm very sorry that I just saw this news now. One is the problem of my work, and the other is the congestion control algorithm of quic. The other aspects of the protocol have been implemented. . . Regarding congestion control, I can only refer to the implementation of go, but I still don't know how to implement it. If you only use bbr, you can use it directly.

No worries. Thanks for the update. I might be able to take it over when I get some time.

I'm very sorry for taking so long. It's okay, I will rebase to the latest branch first. Then try to make a usable version. I like this project very much. . . I will give you feedback in time if I encounter any problems later.

Much appreciated!

6e4b2a8 这个分支的代码我在我本地 ubuntu22.04 机器上跑了下 hysteria2 代理，发现建立连接时就报错。
通过 wireshaek 抓包后发现，
Initial 连接时的 Crypto Frame 包含了 handshake 握手信息， 其中 Extension::signature_algorithms 为空，导致 client 发出的信息不正常。 分析了代码后，我发现可能是 tls_config 这个变量初始化有问题。
在我改了supported_verify_schemes 这个函数后。客户端发出的 handshake 正常，但是服务端的响应，客户端无法正常解析。
[Failed to create decryption context: Secrets are not available]

I ran the hysteria2 proxy on my local Ubuntu 22.04 machine using the code from branch 6e4b2a8, and encountered an error when establishing a connection.
After capturing packets, I found that during the initial connection, the Crypto frame contained handshake information, but the Extension::signature_algorithms field was empty. This caused the client to send abnormal information. After analyzing the code, I found that the issue might be with the initialization of the tls_config variable.
After modifying the supported_verify_schemes function, the handshake sent by the client became normal, but the server’s response could not be correctly parsed by the client. The error message is:
[Failed to create decryption context: Secrets are not available]

@lmmqxyx404 谢谢你的review。目前这个最新的提交只是基于最新的分支进行rebase。因为rustls，h3-quinn，quinn版本的更新，所以以前的代码也不可用了。这次pr也更新到了相关依赖的最新版本，而且有些方法重写了，但是我还没有时间来得及测试，如果你那边发现了问题，可以在这个分支上提交，一起工作。也可以另开一个分支，重用一些这个pr的代码，如果能用的到的话。

@eauxxs 我倒是挺想把这个功能实现的，不过主要是我能力有限。不知道改的方向，只好做一些琐碎的工作。
如果大哥有什么好的思路，就在这一起讨论下吧，万望不吝赐教。

我对于服务端的响应理解有误，原始go实现的 hysteria2 服务端响应被抓包后，也是一样会报错。这个问题还需要继续分析

@eauxxs @ibigbug  我这边修改代码已经让hysteria2 协议跑起来了
总的来说只要改动两处代码。

supported_verify_schemes 前面已经说过了

let any = session
           .congestion_state()
           .into_any()
           .downcast::<DynController>()
           .unwrap();
       any.set_controller(Box::new(Burtal::new(0, session.clone())));```
改为

match session
.congestion_state()
.into_any()
.downcast::()
{
Ok(any) => {
any.set_controller(Box::new(Burtal::new(0, session.clone())));
}
Err(err) => {
tracing::error!("Failed to downcast congestion controller");
}
}

@eauxxs 看看？

@lmmqxyx404 @ibigbug 这些都是些小问题，主要的问题是拥塞控制，还有一个问题是端口跳跃的问题。目前拥塞控制需要帮助。。

@lmmqxyx404 @ibigbug 这些都是些小问题，主要的问题是拥塞控制，还有一个问题是端口跳跃的问题。目前拥塞控制需要帮助。。

具体是什么问题呢？能不能具体说说，如果容易解决，我最近有空，可以再试着去解决下。


ESP32C3 - lots of log data corrupts rtt control block

Describe the bug
Logging lots of data on the esp32c3 often corrupts the RTT control block.
To Reproduce
log a large amount of data very fast, in a tight loop, to defmt-rtt
Expected behavior
data should be logged, either blocking or trimming depending on the settings.
Stacktrace

Desktop (please complete the following information):

macOS 12.6, apple m1 processor

@TheButlah ... I'd like to test if this is an API or a tool thing, but cannot reproduce this on probe-rs-debugger. Can you share some parameters please?

What is the connection speed to the probe?
Are you writing small amounts of data, but very fast, or large (how large) blocks at a time?
Anything you think that might be a contributing factor (other than the 'large amount of data very fast') ?

@Yatekii do you know off-hand if cargo-embed turns on "BlockIfFull" on the defmt channel when it connects?

I think cargo-embed does not turn that on.

@TheButlah I've setup cargo embed for my own test case, and although I'm dumping full buffers at zero wait time, I am unable to reproduce this.
Can you please provide a test case?

sure! I was having a bit of trouble getting a minimally reproducible example. I'll try to get back to you after the holiday

sure! I was having a bit of trouble getting a minimally reproducible example. I'll try to get back to you after the holiday

I tried this a bit ago but getting a basic esp32c3 no_std working was taking some time, and my freetime is quite bottlenecked rn with apartment hunting. Apologies for the delay 😅

OK, on my minimally reproducible example, I could not get the error message above. But I did get the weird behavior I often observe when logging data, where I frequently have to reset the device a lot. I opened #1353 for that.

Since my attempt to reproduce with a minimal example failed, here is a very not minimal example:
recording
very complex example (sorry! I will try to pare it down)
This recording was taken on windows 11, build 22623.875. Seems like the issue is cross platform, at least between windows and mac.
Make this change to cargo.toml to get your working tree in the same state that I used for the recording:

FYI I've seen this on both RISC-V and ARM when the stack clobbers the RTT header, not sure this is the case here but just adding another data point.

Silly question, but how do you know it is the stack that clobbers the RTT header, and not maybe the rtt app that misreports an error, or maybe overwrites the header when it updates the buffer pointers?  Just trying to get a full understanding of what others have seen/discovered.

Well, I guess once a stack overflow happens and corrupts a part of memory, anything can happen, its UB. I saw the stack overflow by using a debug assist which allowed me to monitor the stack pointer. Not really much that can be done on the probe-rs side, just wanted to note a possible cause :).

That is good info. I wonder if we could trap the error about the RTT header corruption, and test the stack pointer, for a more informative error. Knowing there was a stack overflow would be less likely to send users down the rathole of RTT header corruptions. Thoughts?

Yeah I think there was the idea of a canary in the past :)

My guess is it could be a relatively low-cost test as part of the RTT poll cycle.  Also valuable, because if reading RTT header information detects a stack overflow condition, then you can declare that everything else about your app's execution after that point is suspect.
That said, isn't that exactly what flip-link was meant to protect against?
@TheButlah Is your original problem with or without flip-link?  Can you reproduce in both cases?

Yes, flip-link should protect against exactly this :)

@TheButlah Is your original problem with or without flip-link?

I usually (always?) get this error on esp32c3. flip-link is only for cortex-m devices.
I tried setting up flip link for esp32c3 via my .cargo/config.toml, and tried it with both direct-boot and without in the esp hal. This is what I got :
direct-boot:
60abb.rlib" "/Users/ryan.butler/P/slimevr/rust/firmware/target/riscv32imc-unknown-none-elf/debug/deps/libcompiler_builtins-0
158787edf03555e.rlib" "-Bdynamic" "-znoexecstack" "-L" "/Users/ryan.butler/.rustup/toolchains/nightly-2022-12-18-aarch64-app
le-darwin/lib/rustlib/riscv32imc-unknown-none-elf/lib" "-o" "/Users/ryan.butler/P/slimevr/rust/firmware/target/riscv32imc-un
known-none-elf/debug/deps/firmware-1e28105c11103122" "--gc-sections" "-Tlinkall.x" "-Tdefmt.x"
  = note: rust-lld: warning: section type mismatch for .uninit.defmt-rtt.BUFFER
          >>> /Users/ryan.butler/P/slimevr/rust/firmware/target/riscv32imc-unknown-none-elf/debug/deps/libdefmt_rtt-0059e106
3e6f7d93.rlib(defmt_rtt-0059e1063e6f7d93.defmt_rtt.eeaf34bf-cgu.5.rcgu.o):(.uninit.defmt-rtt.BUFFER): SHT_PROGBITS
          >>> output section .uninit: SHT_NOBITS

          rust-lld: warning: address (0x42000008) of section .text is not a multiple of alignment (256)
          rust-lld: warning: address (0x3c041ece) of section .rodata is not a multiple of alignment (16)
          Error: "MEMORY.RAM not found after scanning linker scripts"

I'm not sure that flip link is an option for my use case.

Note that even when not logging data fast, this bug occurs. I'm editing the original message now.

I forgot that flip-link is only for ARM.
If we want to test the theory that this error is caused by a stack overflow, do you think there is anything in your app that could cause that?

honestly I don't think so. It happens with all imu drivers stubbed and the networking stubbed. At that point its just embassy and defmt logging.

OK I just did another test, and realized the behavior differs depending on if I use direct-boot or not.
Direct boot: I do not observe the error message.
cargo espflash flash --format direct-boot --release
cargo embed monitor --release

OR
cargo embed --release

Without direct boot: I observe the error message.
cargo espflash flash --release
cargo embed monitor --release


[CLI] Graphback CLI improvements

The Graphback CLI experience could be improved with more clear instructions and more syntax highlighting.

I think it will need more info. From my point of view we might no longer need to print instructions after generate - as there are numerous flows and commands.
We should also call out generate being called from the yarn generate

yarn generate will only work for prebuilt templates that have "generate": "graphback generate" script in the package.json file. Then should we also have a a script for graphback db|openapi?

I think it will need more info. From my point of view we might no longer need to print instructions after generate - as there are numerous flows and commands.

This issue is just to review the CLI experience to ensure that the flow is helpful and consistent.
https://github.com/aerogear/graphback/issues/1043 shows that the --templateUrl option does not seem to work


README.MD FileNotFound on install

When installing 0.1.8 either through pip3 or setup.py it fails with a FileNotFound on "README.MD"
Workaround - rename README.md to README.MD.

Probably the error might be in  setup.py  with this line  with open("README.MD","r") as file: but I already have put the file name as README.MD , if you could paste the error message for better elaboration?. Thanks

$ python3 setup.py install
Traceback (most recent call last):
File "setup.py", line 3, in
with open("README.MD","r") as file:
FileNotFoundError: [Errno 2] No such file or directory: 'README.MD'
But there is a file at that point in the point tree called README.md (which I renamed to resolve the error)


tslib dependency is a few versions behind

Summary
tslib is now at 1.9.3. Your versions are:

stryker: ^1.5.0
stryker-api: ^1.6.0
stryker-javascript-mutator: ^1.8.0
stryker-karma-runner: ^1.6.1
stryker-mocha-framework: ^1.5.0
stryker-mocha-runner: ^1.5.0
stryker-typescript: ^1.5.0

I'm particularly fond of Greenkeeper for CI and npm-check-updates for local development. Staying up-to-date on packages is generally a good idea:

You get the latest bug fixes and improvements, particularly security patches
You don't fall out of date with API needs (e.g. #566!)
Users have fewer duplicate npm dependency versions resolved

This is strange. @dependabot, any idea why this versions are behind?

It is not behind actually. See: https://github.com/stryker-mutator/stryker/pull/904 for example.
A clean install should give us the latest version of tslib for each package. We could either: add a package.lock.json again or remove the ^ before the version so Dependabot will give a PR with every version.

Ah my apologies, I didn't think to check whether you already had Dependabot :)
+1 to explicit version ranges!

No problem :) bots can be sneaky. What would you suggest as a version range for tslib? Pinning major and minor versions down but not the patch version?

I prefer exact versions to be sure of the exact version.
Package authors sometimes "mess up

I prefer exact versions to be sure of the exact version.
Package authors sometimes "mess up

(sorry, large thumbs on mobile)
+1 to including major and minor versions.
Even with package-lock.json/yarn.lock, there are benefits to explicitly stating your version. It's impossible to exactly follow semver, as even additions to an existing API can be breaking changes (e.g. to checks of whether some APIs exist). It's also clearer to non-package-authors what versions you're using: both in practice (as a convenience for quick scans) as as your intent (what versions you explicitly intend to support).
Also, you remove the possibility of version X being specified, X + 1 shipping with a bug, X + 2 fixing the bug and being what you're used to, and a user with some particular dependency chain resolving to X instead of X + 2.

+1 to including major and minor versions.

This should be done for all dependencies, right? Not only tslib

@JoshuaKGoldberg I've created PR #974. Would you mind reviewing this one?


Update to Work Recent Subgraph Changes

Subgraphs are now stable, so this will most likely be the last update before I get version 1.0.0 out.

To calculate APY
First you will need hardcode these values

blocksPerDay, I usually use 6500

Will add a query for getting average block time over a specified period in a future PR.

Then calculate sushiPerBlock (after reduction):
+sushiData.masterchef.pool({ poolId: "45" }) to get allocPoint for REDUCE pool.
+sushiData.masterchef.info() to get totalAllocPoint for all pools.
100 - 100 * (pool45_allocPoint / totalAllocPoint)

*I'll try to add a better way to get this through sushi-data, in a future PR.
Finally using sushi-data you can get the rest of the data like so:
+sushiData.sushi.info(): to get derivedETH price for SUSHI.
+sushiData.masterchef.stakedValue({ lpToken: "<desired_pool_lpToken_address>" }) to get totalValueETH, and totalSupply for desired pool.
+sushiData.masterchef.pool({ poolId: "<desired_poolId>" }) to get allocPoint and slpBalance for desired pool.
+sushiData.masterchef.info() to get totalAllocPoint for all pools.
After retrieving all the data from the sushi-data queries you can calculate APY like so:
// yearly APY Including 2/3rds Lockup
(derivedETH * blocksPerDay * sushiPerBlock * 3 * 365 * (allocPoint / totalAllocPoint)) / (totalValueETH * (slpBalance / totalSupply))

// Not Including 2/3rds Lockup
(derivedETH * blocksPerDay * sushiPerBlock * 365 * (allocPoint / totalAllocPoint)) / (totalValueETH * (slpBalance / totalSupply))

// to calculate APY for monthly replace 365 with 30
// to calculate APY for daily replace 365 with 1

Hi, What will be the formula for past sushi reward calculation for particular pool(like eth-usdt)
like if i want to calculate, what was the sushi token reward roi for last 1 month back for eth-usdt pool..
Can you guide me.. thanks:)

Hi, What will be the formula for past sushi reward calculation for particular pool(like eth-usdt)
like if i want to calculate, what was the sushi token reward roi for last 1 month back for eth-usdt pool..
Can you guide me.. thanks:)


Remove feature groups from RNA

Modifies the current RNA schema to include filtering by feature ID and removes the FeatureGroup functionality. @diekhans @dcolligan @saupchurch @kozbo
Also includes commits to keep RNA up to date against master.

+1

+1


tests hang if zp is absent

The tests will hand if the zp command is absent on the system.
An error would be appreciated, or simply skipping that part of the test.
I had to read the code to find out what was going on.
This was found while packaging a new version of pointlander/compress for Debian.
Cheers,

fixed, fractal has been moved to github.com/pointlander/frak


add CarInterfaceHelpers and CarControllerBase

I think
if self.flag(SubaruFlags.Hybrid):
is much easier to understand than
if bool(self.CP.flags & SubaruFlags.Hybrid):
also CarController did not have a base class

Pattern of subclassing to add functionality to the car interfaces seems odd, don't know if we need this.


[Idea] VMAF ranges crf-search

I would like to share an idea for the crf-search part that I have encountered in prolonged use:
Sometimes the specified VMAF value is not found by the search, which then ends with "Error: Failed to find a suitable crf"
but the user may be fine with a nearby value.
For example.

I specify the VMAF value 98
but the best result found is 97
-I am fine with that but that 97 found has an excessive estimated file size and the search does not continue to find a different crf with VMAF 97 because it was started for value 98

Basically a VMAF range would have to be accepted to perform the search (in this case it would be 98-97).
For quite some time I have been doing this simply with a bash script and crf-search but there is a lot of overhead as it has to repeat the search several times for different VMAF values even for crfs that have already been analyzed previously.

iiuc you want vmaf 98 but would be happy with 97, but only if 98 is impossible to satisfy.
To me the vmaf range arg idea doesn't really convey this. Or at least I don't find the --min-vmaf range an immediately understandable concept.
I'm not 100% sure how to convey this idea clearly in args. Maybe if we had an additional vmaf arg that is your "preferred" quality like --preferred-vmaf=98 --min-vmaf=97.
Or alternatively --min-vmaf=98 --failover-min-vmaf=97 meaning try again with this other min-vmaf.
I'm not sure myself.

Or alternatively --min-vmaf=98 --failover-min-vmaf=97 meaning try again with this other min-vmaf.

Yes this is similar to the approach I used with the batch script redo the search by changing the min-VMAF value for all values within the range (e.g. range 98-96, means search for 98 then 97 then 96).
It is rather inefficient though since it will also recalculate attempts with the same crf.
If instead you include logic in the program you could store the results of partial crf -> VMAF searches temporarily until the first completion of a search with min-VMAF present in the range.
I would solve with this pseudo algorithm.
For example, crf-search for the range 98-96:

start the current crf-search algorithm with min-VMAF 98
at each crf -> VMAF result (which are also written in CLI output) store them in an array
if there is no result in the search with that VMAF (Error: Failed to find a suitable crf) start the crf-search algorithm again with the next VMAF in the range (in this example if you step up by one, 97)
but in this new search exclude already tested crf -> saved VMAF encoding attempts that still do not match this new VMAF (97) so that no time is wasted in reencoding them having already the necessary values to be able to continue the binary search.

Yeah if it was built into ab-av1 it would re-use previously calculated crf results. So --min-vmaf=98 --failover-min-vmaf=97 would try again, but re-using the work. Otherwise the feature wouldn't add much.
Another idea is to be able to save crf-search results in a file and re-use them on subsequent runs. It would only work using the same encoder & any encoder args though, so not as flexible an idea as it may first appear.
I also wonder if either approach is worth the extra complexity.

I also wonder if either approach is worth the extra complexity.

Regarding storing crf results via file since it concerns that single video file (content) I think it is not worth the added code and checks.
A simple multiple invocation of crf-search with reading the values from an array if they are present before coding normally I think is the approach with least modification that may be worthy compared to the function performed.
Realistically I can assume that with a 98-96 VMAF range I can rule out 2 to 6 re-encodings in case the solution is found with 96 VMAF which on video files greater than 1h should roughly save at least twenty minutes (depends of course on the hardware in use, the settings chosen and particularly the complexity of the video content).
Regarding storing crf results via file since it concerns that single file (content) I think it is not worth the added code and steps.
A simple multiple invocation of crf-search with reading the values from an array if they are present before coding normally I think is the approach with least modification that may be worthy compared to the function performed.
Realistically I can assume that with a 98-96 VMAF range I can rule out 2 to 6 re-encodings in case the solution is found with 96 VMAF which on video files greater than 1h should roughly save at least twenty minutes (depends of course on the hardware in use, the settings chosen and particularly the complexity of the video content).
Personally I try to specify a VMAF value at which I do not visually notice a loss of quality to re-encode videos (>=96) and save space but preferring quality over weight for this the batch script I currently use starts the search with the highest VMAF value and then decreases.

Thanks for the further explanation, I'll have a think about how the cli args could work to provide this.

No problem, I share ideas happily, thank you for being available and open-minded 👍

I think I'm leaning toward the #59 style saving crf-search history. With that you can re-run with the same encoder opts and make use of previously calculated crf values while targeting whatever min-vmaf.

Certainly it is a useful addition to speed up the repeated search and would almost completely solve the question.
In order to implement the search in a VMAF range externally, as mentioned, for example with a powershell/batch script it would also be necessary to be able to read as a return value whether the search ended successfully or keep repeating the invocation with different --min-vmaf.
I had tried %errorlevel% but that doesn't seem to work.
Maybe is related to https://github.com/alexheretic/ab-av1/issues/58

to be able to read as a return value whether the search ended successfully

The command should return non-zero (error) exit status if it fails to find a suitable crf or errors for any other reason.

With #92 merged you can now do something like
ab-av1 auto-encode -i v.mkv --min-vmaf 98 || ab-av1 auto-encode -i v.mkv --min-vmaf 97

I will use it that way next times, thanks for the update.


Some cleanups

Pull request for @andyneeb

NOT TESTED YET!

Tested with openshift enterprise & rhel - works very well after some changes ;-)

Thanks for the contribution Robert and thanks for testing!


Anchors disappear in YamlParser for Scalar keys, Sequences, and Mapping nodes.

Anchor and Alias have been added to the Yaml model, but only work on Scalar values.
Anchors on Scalar keys, Sequences, and Mapping nodes will disappear.
Aliases for any of the mentioned Anchors will NPE.
Notes:

Based on the Yaml spec, each Yaml#Node includes an Anchor.
Scalar, Sequences, Mapping, and Alias are Yaml#Nodes.
Our equivalent to Yaml#Node is Yaml#Block, since Scalar, Sequence, Mapping, and Alias implement Block.
Yaml MappingNode is a key: Node =>  value: Node, but our Mapping#Entry is a key: Yaml#Scalar => value: Yaml#Block.

@traceyyoshima - do you recall if there were any technical blockers with this item? Or has there just not been sufficient reason/demand to implement it?
Looks like the NPE on the Alias case occurs during the print operation, which causes the whole file to get blanked out, not just the unsupported syntax. Extra fun.

On a related note, would be interested to get opinions on supporting Merge Key syntax:
https://yaml.org/type/merge.html
It's still a draft spec, but some yaml parsers do support it regardless, so it's feasible that OR would encounter it.
Currently, OpenRewrite throws something like this on each occurrence during the parse:
[WARNING] java.nio.file.InvalidPathException: Illegal char <<> at index 28: my.mapping.<<

do you recall if there were any technical blockers with this item? Or has there just not been sufficient reason/demand to implement it?

Hi @nmck257, there weren't any blockers aside from priority. I added tests for the cases mentioned in the issue, but as you mentioned, we didn't know if the case would occur in code.
I don't have time to add it immediately, but I'd be happy to help/review if you add support in the grammar. @pway99 may be available to add more resilience to the YamlParser to prevent blank files and implement the fixes. Otherwise, I'll get to the issues as soon as I can.
I think adding support for merge is reasonable. From a glance, it looks fairly simple to add support for in the yaml grammar. I opened an issue for the request here.
Are the parsing issues heavily impacting your work?

Not a heavy impact at this time, no. I only recently encountered someone using these yaml features in the wild.
And for the merge syntax, I haven't isolated/verified, but since it's logging an error per occurrence (within the same file), I expect the parser is recovering each time and parsing the rest of the doc, which is good -- the syntax would probably get dropped when printed back out, though.
I'll definitely appreciate your review if I get to this first -- though like you said, it's a prioritization thing.

Hi @nmck257 and @traceyyoshima, I should be able to start focusing on the YamlParser early next week.

@traceyyoshima and @nmck257, just created a PR #2140 for this one would you mind having a look?

Re-Opening since keys having anchors and aliases are still not functional


flex/03-flex-header-2: Solution can be simplified by using margin-left:auto to split navigation

Complete the following REQUIRED checkboxes:

[x] I have thoroughly read and understand The Odin Project Contributing Guide
[x] The title of this issue follows the location for request: brief description of request format, e.g. Foundations exercises: Add exercise for XYZ

The following checkbox is OPTIONAL:

[x] I would like to be assigned this issue to work on it

1. Description of the Feature Request:

The exercise can be solved without modifying the markdown by using margin-left: auto to split the navigation, as introduced in the assigned readings for the lesson (here and here). This simplifies the solution and practices a concept that would otherwise remain untested (as far as I can tell).
2. Acceptance Criteria:

[ ] solution.css applies margin-left: auto to the notification class.
[ ] The markdown in solution.html does not add any containers.
[ ] The introductory text about editing the markdown in the README is moved to the next exercise.
[ ] [Optional] A hint that points towards the auto property is added to the README.

3. Additional Information:

My solution can be found here.

I'm not sure if this would be an entirely necessary update. While it would slightly clean things up, it's using something that has only been mentioned in passing in one of the assigned readings, while the point of these exercises is to get practice with the various flex properties themselves.

I think this is not needed.  We've already stated in a few places that students do not need to solve things in the exact same way as the solution file.. so if someone thinks of doing the margin:auto trick.. that's fine.
We don't need to update the official solution just for that.


Update homework_2.sql

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
Adding code
What did you learn from the changes you have made?
joining, selecting etc
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
None
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
How were these changes tested?
A reference to a related issue in your repository (if applicable)
Checklist

[x] I can confirm that my changes are working as intended

HW2 marked.


linter: Add rule against multiple whitespaces after comma.

From grep, there are 5 at static/styles/right-sidebar.css, 3 at static/js/filter.js, static/js/popovers.js, ...

I added the rule for python files only for now, don't know about potential pitfalls in other languages.

Merged, and cleaned those other files as well (expanding on this).  Thanks @derAnfaenger and @rht!


String parameter for eval_algo_str methods in Python

Added string parameters for all eval_algo_str methods as described in #93 . I have kept the previous methods that accept lists but I guess they are redundant now? Shall I remove them?

Awesome contribution @alexander-g ! I have been meaning to get around this one for a while, so this is a great addition as it will make it much more convenient when passing raw shader string. I will run the tests locally and will merge - I will be planning to do another release of 0.5.2 / 0.6.0 next weekend

Can I get @alexander-g contact nummper please , how can I contact without him ? Thank you


Add exercise word-search

I will add the word-search exercise to this track.
I have some concerns about the canonical tests not being comprehensive enough.  I'm going to open an issue to get some feedback on https://github.com/exercism/problem-specifications
If the changes don't get added there, I'll extend the cases here.
UPDATE: it sounds like there is support on the problem spec repo for adding the cases.  Once that PR is accepted, I will open my PR here.
UPDATE: my PR in problem-specifications has been merged, so we now have an official updated canonical test set!  I hope to finish the EcmaScript version this weekend and get it pushed here for code review.
UPDATE: Whew!  This was tougher than I expected!  The PR looks big because there was a curly brace out of place in the package.json file, so every exercise is updated.
I would welcome feedback or improvements on example.js if anyone has thoughts.  The whole exercise is very "loopy" by nature, would love to improve that if there are suggestions.

@exercism/ecmascripts I've made a few changes that reduce code duplication and (I think) make the PR more readable.
LMK what you think.  Thanks!

@exercism/ecmascripts sounds like everyone is too busy to do any code review?  Since this implements the canonical tests and passes CI, I'll merge it in the morning unless I hear any objections.
LMK if you see any issues, I'm happy to open another PR to correct them.

Hey @matthewmorgan,
I didn't see this PR before, so I'm giving it a look now. Also, I just noticed that there are 85 files being changed on this PR, and it seems to me that there is an automatic formatting step being performed by your editor (my best guess). Would you mind double-checking it before going any further?

@joelwallis @rchavarria thanks for taking a look.  I believe I've addressed all of your feedback, please let me know if not.
@rchavarria If we can decide on the question of explicitly returning undefined or not, I can finish this up.  I don't have a strong opinion: I think an argument could be made that it demonstrates this feature of the language, and a contrary argument could be made that an explicit return is clearer.  I guess the question is which is more valuable to someone who is likely to be reading the example in this repo.

This is ok for me. If nobody has anything to say...

Thanks @rchavarria!!
@joelwallis I could merge my own PR, but would be happier if one of my esteemed colleagues would do the honors!  Do you have any remaining concerns?

We can revert if there are any concerns with this PR. Meanwhile, I'm going to merge it.
Thanks @matthewmorgan !!

@matthewmorgan I spend some time reading the code but I was tired enough to not understand a thing 😂
I'm glad Rubén merged your PR. I deleted your branch, btw. Great work!


Phpactor. status is not an editor command in nvim.

Phpactor. status is not an editor command in nvim.
How do we solve this?

I think you used the wrong command. You should call :PhpactorStatus instead of phpactor.status
@kevin1121


prevent extendedTimeOut from overriding timeOut

It would be nice to have an option (or as the default behavior maybe?) that prevents the extendedTimeOut property from overriding the timeOut property, so that it works as follows:

Toast shown with timeOut:10000 and extendedTimeOut:1000
User hovers in and out of the toast while the timeOut timer is around 5000
The toast stays visible for around 5000 more milliseconds, as per the timeOut property

Use case with current behavior:
An user action triggers a toast and this toast is below the pointer, the user moves the pointer out of the toast so that the pointer does not occlude the text and then the toast disappears.
Also, for me it kinda makes sense for the extendedTimeOut property to only extend the timeOut property, and not shorten it.

how has this not been addressed yet?

There was a PR (here)[https://github.com/CodeSeven/toastr/pull/315] but it didn't get merged.

According to the project owner the PR was made against the wrong branch. You could submit another one.


Removing filter from table component set Data

Issue: #19620
This PR remove the filter from table component as it is not needed anymore. The treeGrid component used by execution plan already has this filter.

@aasimkhan30 you also need to call this in execution plan, right?

@Charles-Gagnon , updated the description and linked the error.


HtmlFrame widget is trying to interpret the file path as a web URL instead of a local file path when I try to load a folium map.

When I try to load a folium map in HtmlFrame, I got an error. The code is below:
from tkinterweb import HtmlFrame
from tkinterweb import HtmlFrame #import the HTML browser
try:
import tkinter as tk #python3
except ImportError:
import Tkinter as tk #python2
import folium
root = tk.Tk() #create the tkinter window
frame = HtmlFrame(root) #create HTML browser
Create a folium map
m = folium.Map(location=[37.7749, -122.4194], zoom_start=12)
Save the map as an HTML file
m.save("F:/py2exedata/map.html")
frame.load_website("file:///F://py2exedata//map.html") #load a website
frame.pack(fill="both", expand=True) #attach the HtmlFrame widget to the parent window
root.mainloop()
The error is below:
Starting TkinterWeb for 64-bit Windows with Python 3.10.9.
Tkhtml3 successfully loaded from F:\py2exedata\myenv\Lib\site-packages\tkinterweb\tkhtml\Windows\64-bit.
Welcome to TkinterWeb 3.23!
https://github.com/Andereoo/TkinterWeb
Debugging messages are enabled.
Use the parameter messages_enabled = False when calling HtmlFrame() to disable these messages.
Connecting to file:.
An error has been encountered while loading http://file:///F://py2exedata//map.html: <urlopen error [Errno 11001] getaddrinfo failed>.

Hi! You need to use load_url or load_file instead of load_website.
load_website is mostly a convenience function forces the page to be opened as a website, even though you specify "file://" in the url . Similarly, load_file instead forces the page to be opened as a file, so passing both "file:///F://py2exedata//map.html" and "F://py2exedata//map.html" should load the file. load_url will load whatever url is passed to it without altering it.


Won't install

Fails to install from PIP Install

I am
Expected Behavior

Should install
Actual Behavior

Fails at 99% (Killed
Possible Fix

Steps to Reproduce

pip install zappa under venv

(venv) pi@raspberrypi:~/kodi-alexa$ pip install zappa Collecting zappa   Using cached zappa-0.43.2-py2-none-any.whl Requirement already satisfied: six==1.10.0 in ./venv/lib/python2.7/site-packages (from zappa) Requirement already satisfied: wheel==0.29.0 in ./venv/lib/python2.7/site-packages (from zappa) Collecting durationpy==0.5 (from zappa)   Using cached durationpy-0.5.tar.gz Collecting kappa==0.6.0 (from zappa)   Using cached kappa-0.6.0-py2-none-any.whl Collecting botocore==1.5.40 (from zappa)   Using cached botocore-1.5.40-py2.py3-none-any.whl Collecting tqdm==4.15.0 (from zappa)   Using cached tqdm-4.15.0-py2.py3-none-any.whl Collecting wsgi-request-logger==0.4.6 (from zappa)   Using cached wsgi-request-logger-0.4.6.tar.gz Collecting base58==0.2.4 (from zappa)   Using cached base58-0.2.4.tar.gz Collecting hjson==3.0.0 (from zappa)   Using cached hjson-3.0.0.tar.gz Requirement already satisfied: python-dateutil==2.6.1 in ./venv/lib/python2.7/site-packages (from zappa) Requirement already satisfied: requests>=2.10.0 in ./venv/lib/python2.7/site-packages (from zappa) Collecting argcomplete==1.8.2 (from zappa)   Using cached argcomplete-1.8.2-py2.py3-none-any.whl Collecting docutils>=0.12 (from zappa)   Using cached docutils-0.14-py2-none-any.whl Collecting lambda-packages==0.16.1 (from zappa)   Downloading lambda_packages-0.16.1.tar.gz (59.2MB)     99% |████████████████████████████████| 59.1MB 7.9MB/s eta 0:00:01Killed You have new mail in /var/mail/pi (venv) pi@raspberrypi:~/kodi-alexa$ pip uninstall zappa Cannot uninstall requirement zappa, not installed (venv) pi@raspberrypi:~/kodi-alexa$

try another large package? i dont think this is zappa, but rather pip
From my phone..
On Aug 30, 2017 4:20 PM, "simonrb2000"<EMAIL_ADDRESS>wrote:

Fails to install from PIP Install
I am
Expected Behavior
Should install
Actual Behavior
Fails at 99% (Killed
Possible Fix Steps to Reproduce

pip install zappa under venv

(venv) pi@raspberrypi:~/kodi-alexa$ pip install zappa Collecting zappa
Using cached zappa-0.43.2-py2-none-any.whl Requirement already satisfied:
six==1.10.0 in ./venv/lib/python2.7/site-packages (from zappa)
Requirement already satisfied: wheel==0.29.0 in ./venv/lib/python2.7/site-packages
(from zappa) Collecting durationpy==0.5 (from zappa) Using cached
durationpy-0.5.tar.gz Collecting kappa==0.6.0 (from zappa) Using cached
kappa-0.6.0-py2-none-any.whl Collecting botocore==1.5.40 (from zappa) Using
cached botocore-1.5.40-py2.py3-none-any.whl Collecting tqdm==4.15.0 (from
zappa) Using cached tqdm-4.15.0-py2.py3-none-any.whl Collecting
wsgi-request-logger==0.4.6 (from zappa) Using cached
wsgi-request-logger-0.4.6.tar.gz Collecting base58==0.2.4 (from zappa)
Using cached base58-0.2.4.tar.gz Collecting hjson==3.0.0 (from zappa) Using
cached hjson-3.0.0.tar.gz Requirement already satisfied:
python-dateutil==2.6.1 in ./venv/lib/python2.7/site-packages (from zappa)
Requirement already satisfied: requests>=2.10.0 in
./venv/lib/python2.7/site-packages (from zappa) Collecting
argcomplete==1.8.2 (from zappa) Using cached argcomplete-1.8.2-py2.py3-none-any.whl
Collecting docutils>=0.12 (from zappa) Using cached
docutils-0.14-py2-none-any.whl Collecting lambda-packages==0.16.1 (from
zappa) Downloading lambda_packages-0.16.1.tar.gz (59.2MB) 99%
|████████████████████████████████| 59.1MB 7.9MB/s eta 0:00:01Killed You
have new mail in /var/mail/pi (venv) pi@raspberrypi:~/kodi-alexa$ pip
uninstall zappa Cannot uninstall requirement zappa, not installed (venv)
pi@raspberrypi:~/kodi-alexa$
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Miserlou/Zappa/issues/1075, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAIi05_UrUtteH7iNSTcuh3bJxYaQT5aks5sdcQUgaJpZM4PH7F3
.

Tried this on another raspberry pi and got this
Requirement already satisfied: docutils>=0.12 in /usr/local/lib/python2.7/dist-packages (from zappa) Collecting lambda-packages==0.16.1 (from zappa)   Downloading lambda_packages-0.16.1.tar.gz (59.2MB)     99% |████████████████████████████████| 59.1MB 167kB/s eta 0:00:01Exception: Traceback (most recent call last):   File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in main     status = self.run(options, args)   File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py", line 324, in run     requirement_set.prepare_files(finder)   File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 380, in prepare_files     ignore_dependencies=self.ignore_dependencies))   File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 620, in _prepare_file     session=self.session, hashes=hashes)   File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/download.py", line 821, in unpack_url     hashes=hashes   File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/download.py", line 659, in unpack_http_url     hashes)   File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/download.py", line 882, in _download_http_url     _download_url(resp, link, content_file, hashes)   File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/download.py", line 603, in _download_url     hashes.check_against_chunks(downloaded_chunks)   File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/utils/hashes.py", line 46, in check_against_chunks     for chunk in chunks:   File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/download.py", line 571, in written_chunks     for chunk in chunks:   File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/utils/ui.py", line 139, in iter     for x in it:   File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/download.py", line 560, in resp_read     decode_content=False):   File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/response.py", line 357, in stream     data = self.read(amt=amt, decode_content=decode_content)   File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/response.py", line 314, in read     data = self._fp.read(amt)   File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/_vendor/cachecontrol/filewrapper.py", line 63, in read     self._close()   File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/_vendor/cachecontrol/filewrapper.py", line 50, in _close     self.__callback(self.__buf.getvalue())   File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/_vendor/cachecontrol/controller.py", line 275, in cache_response     self.serializer.dumps(request, response, body=body),   File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/_vendor/cachecontrol/serialize.py", line 55, in dumps     "body": _b64_encode_bytes(body),   File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/_vendor/cachecontrol/serialize.py", line 12, in _b64_encode_bytes     return base64.b64encode(b).decode("ascii") MemoryError (venv) pi@raspberrypi:~/kodi-alexa $

found this:-
https://github.com/Miserlou/lambda-packages/issues/27

I think we can close this issue :)


Show some warning if the user tries to add a term that is already present

The only reason to add a term that is already present is if there is new metadata. Therefore, show whether a term is already there to prevent unnecessary duplication.

This is now allowed if the citation is different. I think there is no need to implement this any more


Add documentation outlining machine readable output

Adds a document that outlines all possible examples / options for each
command available.
Closes https://github.com/redhat-developer/odo/issues/1464

/hold

:white_check_mark: odo build 2108 completed and artifacts can be found here (for commit https://github.com/redhat-developer/odo/commit/8f52ded9be by @cdrage)

Note, this is a WIP as I'm probably missing a lot more commands, although some are being deprecated, for example odo app create since we're removing app, as well as odo app list..

I'm going to close this for now :+1: will revisit this in the future.


[WIP] Feature/power operations

We add the ability to turn off or turn on a host.

1

2

Logs :
ERROR -- evm: MIQ(ems_infra_controller-button): "Power Off": not available for pollux

Working better with the last commit :

@dberg1 Maybe we can develop a method that returns "true" if all lpars are off?

Looking good @CallisteH you probably don't need VCR for the specs, you can let(:conn) { double("PowerHMC") } and then  allow(ems).to receive(:with_provider_connection).and_yield(conn) and then expect(conn).to receive(:poweron_server).with(physical_server.ems_ref)
We should check the validates methods in tests also by setting the power_state to different values confirming it works as expected.

Hi @agrare
Thanks for your review !
There are two or three elements that I don't quite understand.
  context "power_operation" do
    let(:conn) { double("IbmPowerHmc") } do
      it "start" do
        allow(ems).to receive(:with_provider_connection).and_yield(conn)
        expect(conn).to receive(:poweron_managed_system).with(host.ems_ref)
      end
    end
  end

How can I control what poweron_managed_system returned ? Where can I call host.start function ?

@agrare, Thank you for your help. I made the changes accordingly

@CallisteH I see that https://github.com/ManageIQ/manageiq-ui-classic/pull/8266 has been merged.
I believe this means you have to use supports instead of implementing the validate_xyz methods.

Looks pretty good @CallisteH can you fix the conflict?

@agrare I removed the [WIP] label in the title

@CallisteH one more thing before I merge, can you rebase and edit these commits to remove the WIP from the commit message?  No need to squash them just rewrite the message.

@agrare thanks for your suggestion, everything looks good ?


[1.10] Make capabilities an option in crio.conf

The list of capabilities to be added can be defined in
/etc/crio/crio.conf.
Signed-off-by: umohnani8<EMAIL_ADDRESS>

/test all

/test all

/test critest_rhel
/test critest_fedora

Did you mean to add the move over to quay.io with this PR too? I would have made them separate PR's.

Overall the changes LGTM, but the tests are less than happy.

/test critest_fedora

/test all

/test e2e_fedora

/test critest_fedora

/test all

All but one test is green, looks like that should be good too! @mrunalp @rhatdan PTAL.

meh... Looks like I jinxed it :(
/test e2e_rhel

/test e2e_rhel

/test e2e_rhel

/test e2e_rhel

/test all

/test integration

/test kata-containers

/test kata-containers

@sboeuf Can you look at the kata CI failure?

I would strongly drop the capabilities feature, it's a new feature which must not be back ported. It's going to be tested in 1.11 and if requested, we'll back port it.

@runcom The networking fixes are on top of capabilities and we need those :/

@umohnani8 I think that for 1.10 branch we should ensure that we retain the same default capabilities as before.

@runcom The networking fixes are on top of capabilities and we need those :/

definitely, we need net fixes but not capabilities new feature

@runcom okay, I agree with you. It would be lower risk to just take the networking fixes.

@mrunalp @runcom so I should remove the capabilities commits from this PR completely? Or keep them and just change the capabilities list to what the default is in the spec.

@mrunalp @runcom so I should remove the capabilities commits from this PR completely? Or keep them and just change the capabilities list to what the default is in the spec.

remove the capabilities commits altogether, we want to retain the old behavior in 1.10

Removed the capabilities commits.

/test all

@umohnani8 You would have to fix up the positional arguments to start_crio for the network patches.

/test all

/test all

/test e2e_rhel

/test e2e_rhel

/test e2e_rhel


Do not unwrap joinapp future exceptions unnecessarily

An AppFuture will always present its exception as a future.exception(),
not as a RemoteWrapper. RemoteWrappers are used at the executor future
layer.
Type of change

Code maintentance/cleanup

Wouldn't it have been easier to do res = inner_future.result() and leave the rest as is?

@yadudoc i think just personal preference for representing control flow choices using if rather than try/except in an expected case.


Cannot re-focus after canvas lost focus in webgl

I found that after the scene is loaded, and then click to other blank area of the webpage (canvas lost focus), and click on the canvas it cannot be refocus.
@jice-nospam do you know why and do your project have the same issue too?

Yeah I noticed that too yesterday. I'll have a look at it today


Generated binary files not working

Hi,
I am trying to use the binaries but they report the following error:
$ sprint
zsh: exec format error: sprint

Can you please help?

Hi,
What's your operating system?

Hi,
It’s a MacOS Mojave 10.14.6

On Oct 23, 2019, at 3:44 PM, Zhang, Feng<EMAIL_ADDRESS>wrote:
Hi,
What's your operating system?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/jumphone/SPRINT/issues/22?email_source=notifications&email_token=AADARWULWEGC7HPHJLY3ELLQQCSRXA5CNFSM4JEHD7QKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECCURMA#issuecomment-545605808, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADARWQCL67BCHSPAJNIK5LQQCSRXANCNFSM4JEHD7QA.

The binary file has only been tested in Linux system (Centos and Ubuntu).
Can you try the python2.7 version ?

Yes, the python 2.7 version works. I was just hoping to use a portable binary.
Thank you for the help.
Are there any plans to port this to Python 3?

Yes, we are developing a new version of SPRINT.
Actually, you can compile the python version into binary file by yourself.
Please see: https://github.com/jumphone/SPRINT/blob/master/pyinstaller.sh

Perfect. Thanks.


Remove CodeAnnotations and related JetBrains use from client code generation source

Is this a Bug or Feature request?
Enhancement that's part of #7947
Description of the problem
Current source inherited CodeAnnotations from dotnet-ef. Since these annotations etc. aren't really needed and we have nothing similar in the Mvc repo, just remove the class and its use.
Version of Microsoft.AspNetCore.Mvc or Microsoft.AspNetCore.App or Microsoft.AspNetCore.All:
See the features/client.code.generation branch branch. That work is intended for the 2.2 Preview 3 milestone.

9437f29b1


D -> M webhook messages sometimes have wrong nickname

D -> M webhook messages have, on the matrix side, sometimes a wrong nickname. Haven't quite figured out the pattern yet

I've experienced this, I have about 15 discord users bridge and only one of them doesn't have an avatar or a proper name. The only thing so far I've found that sets hers apart is she has a very long username. Most others are only about 5-15 chars and hers is about 30.
Otherwise no major difference in names.


no tabs converted to spaces in v1.23.1 on Sierra 10.12.6

I have a javascript file open that has hard tabs.  When I select Convert Tabs to Spaces or Convert All Tabs to Spaces, nothing happens.  Still all hard tabs.

This package does not contain commands named "Convert Tabs to Spaces" or "Convert All Tabs to Spaces". I assume that you're talking about the built-in Atom commands. If I am correct, then you should file an issue on the whitespace package which is the built-in Atom package that provides those commands.

Oops, sorry, I thought this was the right package, my bad.


[bug]: Cannot identify if the already selected select item is clicked on Select component

Describe the bug
I tried to use the onValueChange function in Select component. This function doesn't trigger when the already selected element is clicked, only when the value is changed. I also tried to use onChange functions in SelectContent and SelectItem. These are even not triggered.
Affected component/components
Select, Select Content, Select Item
How to reproduce

Create a select component with onChangeValue function with a console log.
Select a value from the list.
You can see the console.log output.
Now select the same item in the list.
No console.log output is available.

Codesandbox/StackBlitz link
No response
Logs
No response
System Info
Arc browser

Before submitting

[X] I've made research efforts and searched the documentation
[X] I've searched for existing issues

Hello! @dhanushkac :)
Wrap the Select component inside a `div` and add a click event listener to the `div`. Use state to track the selected item. In the click handler, check if the clicked item is the same as the selected one—if it is, manually trigger the desired action (e.g., logging or callback). If a different item is selected, let the `onValueChange` function handle it normally. This ensures that actions are triggered even when the selected item is clicked again.


hydrus: 520 -> 537

Description of changes
https://github.com/hydrusnetwork/hydrus/blob/812a82eea6797f06fa8a8c7e1b8fc4698f079692/docs/changelog.md#L4
Updated the package from 520 to 537
Things done

Built on platform(s)

[ *] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[* ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

Duplicate of #243364


Error when a field is named meta

Hi there, and thanks for your support.
I realized that if a form field is named meta, this leads to a name clash with the actual meta attribute of the Form object. I'm wondering whether this use case could be supported, or otherwise whether an informative error message could be raised.
For the record, this same issue was mentioned in https://github.com/aminalaee/sqladmin/issues/539.
Actual Behavior
from wtforms import Form, StringField

class RegistrationForm(Form):
    username = StringField('Username')
    meta = StringField('Meta')

form = RegistrationForm()

Traceback (most recent call last):
  File "/somewhere/test.py", line 7, in <module>
    form = RegistrationForm()
  File "/somewhere/venv/lib/python3.10/site-packages/wtforms/form.py", line 208, in __call__
    return type.__call__(cls, *args, **kwargs)
  File "/somewhere/venv/lib/python3.10/site-packages/wtforms/form.py", line 286, in __init__
    self.process(formdata, obj, data=data, **kwargs)
  File "/somewhere/venv/lib/python3.10/site-packages/wtforms/form.py", line 106, in process
    formdata = self.meta.wrap_formdata(self, formdata)
AttributeError: 'StringField' object has no attribute 'wrap_formdata'

The reason for this behavior is clear from this snippet (https://github.com/wtforms/wtforms/blob/master/src/wtforms/form.py#L282-L285):
        for name, field in self._fields.items():
            # Set all the fields to attributes so that they obscure the class
            # attributes with the same names.
            setattr(self, name, field)

Expected Behavior
Either one of

Using meta for a field is supported. This could be achieved by renaming meta into something more specific (similar to _wtforms_meta), although this is admittedly not a trivial change.
When trying to name a field meta, wtforms raises an informative error (anything on the line of ValueError("Naming a field meta is not supported")).

Environment

Python version: 3.10.6
wtforms version: 3.0.1

Thanks for your feedback!
Changing the model-field names is not something we plan to do (since this applies to an existing code base), but it's good to know a possible workaround.

It's the form field attribute, not the modern field name.

It's the form field attribute, not the model field name.

My bad, I mixed up the answer here with the one in the related issue over at sqladmin.
More in detail:
In our use case, we are not creating forms ourselves, but rather through sqladmin. And sqladmin sets the form-attribute names to match the names of the (e.g. sqlalchemy) model. I think the relevant bit is the following snippet from the sqladmin get_model_form function:
    attributes = []
    names = only or mapper.attrs.keys()
    for name in names:
        if exclude and name in exclude:
            continue
        attributes.append((name, mapper.attrs[name]))

    field_dict = {}
    for name, attr in attributes:
        field_args = form_args.get(name, {})
        field_widget_args = form_widget_args.get(name, {})
        label = column_labels.get(name, None)
        override = form_overrides.get(name, None)
        field = await converter.convert(
            model=model,
            prop=attr,
            engine=engine,
            field_args=field_args,
            field_widget_args=field_widget_args,
            label=label,
            override=override,
            form_include_pk=form_include_pk,
            form_ajax_refs=form_ajax_refs,
        )
        if field is not None:
            field_dict[name] = field

    return type(type_name, (form_class,), field_dict)

where the default is form_class=wtforms.Form.
For this reason, I have no direct control on the details of how the form is created. A full example with sqladmin then fails, when my (sqlalchemy) model has a meta field, because this clashes with the reserved meta attribute of the Form object.
A similar workaround to the one you suggested (using _meta) was also suggested at the level of the sqlalchemy-model field names, and this explains my previous comment that for us it would not be trivial to change model-field names in an existing project.
Apologies if I mixed up the two issues.


Exclude /admin/ from all tweaks

The ACP looks quite funny with the new styles enabled, but I prefer to not have it :P

Resolved in https://github.com/Legend-of-iPhoenix/cemetech-userstyle/commit/5e4283e8dde4c23fb29571fbd652d7d225f5c476


Add booqable

https://github.com/robchahin/sso-wall-of-shame/issues/246

Hey @exitcode0 ,
Thank you for your contribution! I just integrated your PR into https://github.com/ssotax/ssotax as this repository was not maintained for a long time. Your changes are in https://github.com/ssotax/ssotax/commit/9fa62dbac75b2339b6dba1a669c5fce603c1229c.
You find the new page under https://ssotax.org/.  I also made a few improvements based on community feedback like showing free SSO providers. Feel free to share your feedback!
/cc @bieberium


A problem occurred while I was running _aug.sh

amax@amax:/data/semantic-segmentation/sdcnet$ sudo bash _aug.sh
[sudo] amax 的密码：
Loaded checkpoint '../pretrained_models/sdc_cityscapes_vrec.pth.tar' (at epoch 390)
Augmenting aachen for mode rgb_image
/pytorch/torch/csrc/autograd/python_function.cpp:622: UserWarning: Legacy autograd function with non-static forward method is deprecated and will be removed in 1.3. Please use new-style autograd function with static forward method. (Example: https://pytorch.org/docs/stable/autograd.html#torch.autograd.Function)
/opt/anaconda3/lib/python3.6/site-packages/torch/nn/functional.py:2494: UserWarning: Default upsampling behavior when mode=bilinear is changed to align_corners=False since 0.4.0. Please specify align_corners=True if the old behavior is desired. See the documentation of nn.Upsample for details.
"See the documentation of nn.Upsample for details.".format(mode))
/pytorch/torch/csrc/autograd/python_function.cpp:622: UserWarning: Legacy autograd function with non-static forward method is deprecated and will be removed in 1.3. Please use new-style autograd function with static forward method. (Example: https://pytorch.org/docs/stable/autograd.html#torch.autograd.Function)
The 622 question is endless. Do you know how to solve it？Thank you very much.

This warning is because new version of PyTorch (maybe pytorch 1.2 and later) requires new way of writing forward function. I don't know exactly how to solve this problem, but try to add @staticmethod before forward function. Here is an example you can refer to, https://pytorch.org/tutorials/beginner/examples_autograd/two_layer_net_custom_function.html
You can also check online, here are related posts,
https://discuss.pytorch.org/t/legacy-autograd-function-with-non-static-forward-method-is-deprecated-and-will-be-removed-in-1-3/69869
Hope it helps.

Thank you for your reply. When I run the _aug.sh, I find that the enhancement process is in progress while warning.
In addition, can your model be used for video semantic segmentation? I have seen your demo, which works very well, but I don't see any content related to video data in your description.

Yes, it is just warning, so the process won't be interrupted.
Yes, you can use it for video semantic segmentation. Just use the demo_folder.py https://github.com/NVIDIA/semantic-segmentation/blob/master/demo_folder.py.
This script can handle a folder of images, as long as you store the images in order, such as 0001.jpg, 0002.jpg, ..., 0100.jpg, etc. So if you have a video, you can first decode the video into frames first and use the script to inference.
Or you can directly modify the demo_folder.py to accept video input.

@antahikari Closing this issue. Please feel free to reopen if you see the issue.


exceptions.GQLException: Unauthorized: The "Authorization" token is invalid.

Fresh install, fresh login, using latest build available date of this ticket post (Last build date: 2024-08-04 15:32:52+00:00)

19:14:57: Fatal error encountered:
19:14:57:
19:14:57: Traceback (most recent call last):
19:14:57:   File "main.py", line 153, in main
19:14:57:   File "twitch.py", line 572, in run
19:14:57:   File "twitch.py", line 622, in _run
19:14:57:   File "twitch.py", line 1415, in fetch_inventory
19:14:57:   File "twitch.py", line 1362, in gql_request
19:14:57: exceptions.GQLException: Unauthorized: The "Authorization" token is invalid.

No Games even linked yet.

I cannot get the miner to work, get the same error as Kazlehoff, it won't even load just gives the error above!!

Please see numerous threads regarding this issue. It's being worked on:
https://github.com/DevilXD/TwitchDropsMiner/issues/526#issuecomment-2271881119

Please see numerous threads regarding this issue. It's being worked on:
#526 (comment)

It's another error which occurs on first request.
Looks like client_id is out of date/has been blocked by twitch. Changing it here helped me https://github.com/DevilXD/TwitchDropsMiner/blob/master/constants.py#L164

This is a duplicate of #526.


Minor output changes

This PR applies PRs #989, #990 and #991 to all languages (glorified search & replace)

Thank you @fdbeirao!


1071 seed script

Resolves #1071. Also includes a load of refactorizations and other improvements, as well as #629

Use prompt_field method to prompt for value, assign/save and validate
Define a method to build a model instance and pass its name to new generate_objs method.
Abstract out some stuff into global vars
New modes for the script: semi, which only autogenerates the superuser and appconfigs but prompts for other data, no_pics which doesn't assign images to equipment models (makes the script way faster), and fast which invokes no_pics and minimal. For comparison, on my machine minimal runs in 26 seconds and fast runs in 6.
Seed script now draws from the whole database instead of the items created in the current instance of the script. Before even if your database had 1000 users if you ran the seed script to generate 1 additional user and 100 new reservations, all of those reservations would go to that new user
A nice side effect of this change is that entering 0 users/categories/equipment models doesn't cause the script to quit, it will simply pull from the preexisting users/categories/equipment models when building new objects. (The script handles zero cases gracefully; eg if there are 0 equipment models it will not attempt to create any equipment objects)

This is awesome! I've left a bunch of inline comments but here are some more notes:

I think that we should capitalize the object name in the status message (e.g. n User records successfuly created! instead of n user records successfully created!), I think it makes things pop a bit more.
Rubocop wasn't checking db/seeds.rb before since we were excluding the entire db/ directory. When I scanned it locally I saw something like 139 errors, so these should be cleaned up before the final merge. There was a bunch of extra whitespace (e.g. two lines between methods, etc) as well as lines that are too long, but I'm sure I didn't pick everything up when I read through it.
I'm having an issue where a user created w/o CAS can't log in with the e-mail and password set during the seed script. Can someone else verify? It doesn't happen in minimal mode.

I think that mostly covers it for now, great work! Get these cleaned up and we can merge this in.

@orenyk I tried re-running the Travis build to run rubocop on seeds.rb, but found out that @squidgetx branched off master before you merged the linters branch, so no rubocop running on Travis :(
@squidgetx You'll need to run rubocop locally. Or better yet, rebase off master, and that should do it.

new changes

everything is now about 100% faster (fast mode completes in 3s on my machine)
rubocop is good to go though I disabled ABC complexity for em generation and reservation generation
reservation generation is now WAY more realistic than before.

there was a bug where all generated reservations would start/end on same day, now fixed
global constants control the ratio of past reservations to future (set at 0.7), odds a reservation is overdue (set at 0.3) and odds someone will neglect to pick up their reservation (set at 0.2)
all generated future reservations will not fail ActiveRecord validations (so blackout and availability is guaranteed), though I think things like category max could be violated
past reservations won't pass validations simply because it's already a violation to create a reservation in the past, but that's how it was before anyway

Tested this locally, this seems great! I'll do another read-through of the script later and then we can rebase / merge it in.

I fixed a few final rubocop errors, will let you know if I catch anything else while reading through it.

merge the pr when you're ready, i already rebased after the latest changes to master

Do you want to squash commits post-review? I think we'll move towards that model (and I'll note that in #1056).

looks like our commit numbers are about to drop severely

Yea I know, and I was about to catch up too :-P


Separate config for ignoring extra fields and allowing casts

MapperBuilder::flexible() enables flexible mode to automatically cast types and ignore extra fields, but I would like to ignore extra fields without casting types. Ignoring unknown JSON fields in a REST API is pretty common to help with forward compatibility, but I'd like to keep the types strict.

Hi @AndrolGenhald, you are not the first one to ask for a way to distinguish these two options. I'll definitely think about a way to make it possible, I'll keep you updated here.

I might take a stab at it myself in a week or two. It doesn't seem too difficult, and a quick search shows that most of the relevant classes are @internal so compatibility shouldn't be too hard to handle.

I would be +1 on this.
We do use use valinor in the exact same scenario: API response to DTO mapping.
Since adding new properties to a response is not a BC break, this shouldn't lead to problems in valinor.
For now, I do actually set flexible again but I only have to do that to allow new properties to exist.

Hi @AndrolGenhald & @boesing, could you take a look at #248 and tell me what you think of it?

Looks great to me! That's pretty similar to what I had been working on before my day job took all my time away.

LGTM as well. Having every feature configurable dedicatedly makes the most sense to me.

Released with 0.17.0.
Enjoy!


Multiple ReactFlow instances in a single page not working

Hi guys,
I need to draw multi flowcharts in one page, just like the index page of https://reactflow.dev/, but seems not working.
<ReactFlow id="react-flow-1" elements={elements_1} >
</ReactFlow>
<ReactFlow id="react-flow-2" elements={elements_2} >
</ReactFlow>

The code above generate 2 charts but all are react-flow-2 (seems react-flow-2 overlap all elements and config).
Why this happened, and how to fit it? (using iframe can fix this problem, but not a good solution)
Thanks

Hey @bosskwei
you need to wrap each flow with a ReactFlowProvider https://reactflow.dev/docs/api/components/provider/
I will add the information to the docs.

Hey @bosskwei
you need to wrap each flow with a ReactFlowProvider https://reactflow.dev/docs/api/components/provider/
I will add the information to the docs.

Thank you ~ @moklick

Thank you ~ @moklick


Camera comtrol with PTP PTPy 0.3.2 fails with No backend available

I am trying to run the camera control software ptpy 0.3.2
I am using window 10, python38.
I installed the software by pip install ptpy-0.3.2-py3-none-any.whl
From python, I execute the following commands:
from ptpy import PTPy
camera = PTPy()
I get the following error:
Traceback (most recent call last):
File "", line 1, in
File "D:\Python38\lib\site-packages\ptpy_init_.py", line 110, in new
plain_camera = plain(device=device)
File "D:\Python38\lib\site-packages\ptpy\ptp.py", line 712, in init
super(PTP, self).init(*args, **kwargs)
File "D:\Python38\lib\site-packages\ptpy\transports\usb.py", line 90, in init
else find_usb_cameras(name=name)
File "D:\Python38\lib\site-packages\ptpy\transports\usb.py", line 61, in find_usb_cameras
return usb.core.find(
File "D:\Python38\lib\site-packages\usb\core.py", line 1263, in find
raise NoBackendError('No backend available')
usb.core.NoBackendError: No backend available
In the python directory I have \site-packages\pyusb-1.0.2-py3.8.egg-info.
In site-packages\usb\backend I have libusb0.py, libusb1.py and openusb.py
In the Windows directory I only have only libusb0.dll in C:\Windows\System32\DriverStore\FileRepository\arduino_gemma.inf_amd64_ccc1c03de7b2c57b\amd64
In the locate_library function in D:\Python38\Lib\site-packages\usb\libloader.py, the find_library is ctypes.util.find_library
It is looking for the following DLLs:
usb-1.0.dll, libusb-1.0.dll, usb.dll, openusb.dll, usb-0.1.dll, libusb0.dll
I have also noticed that none of the above are in the Windows System32 directory. Should the code be modified to look for DLLs for other names in Windows 10.

I think you should raise this issue in the github repo for ptpy which you are using in the code. (I assume https://github.com/Parrot-Developers/sequoia-ptpy/ is that repo)
This repo houses the backend for https://pypi.org/ and IMO not the correct place for filing this.

Solved.


XarrayReader produces upside down images for some datasets with xarray backend

I'm not sure if this is a problem in titiler-cmr or somewhere upstream (rio-tiler) but when reading images from some NetCDF files without doing a reprojection operation, the images are returned upside down!
This request to one NetCDF dataset returns the expected result:
https://9ox7r6pi8c.execute-api.us-west-2.amazonaws.com/bbox/-99.524,19.043,-78.647,31.126.png?concept_id=C2036881735-POCLOUD&datetime=2024-09-20T00:00:00Z/2024-09-21T00:00:00Z&variable=analysed_sst&backend=xarray&rescale=273,325&colormap_name=thermal&return_mask=true

A request to a different NetCDF dataset (MUR SST) with all of the same parameters yields an upside down image!
https://9ox7r6pi8c.execute-api.us-west-2.amazonaws.com/bbox/-99.524,19.043,-78.647,31.126.png?concept_id=C1996881146-POCLOUD&datetime=2024-09-20T00:00:00Z/2024-09-21T00:00:00Z&variable=analysed_sst&backend=xarray&rescale=273,325&colormap_name=thermal&return_mask=true

/tile requests to the second dataset return the expected result:
https://9ox7r6pi8c.execute-api.us-west-2.amazonaws.com/tiles/WebMercatorQuad/5/8/13.png?concept_id=C1996881146-POCLOUD&datetime=2024-09-20T00:00:00Z/2024-09-21T00:00:00Z&variable=analysed_sst&backend=xarray&rescale=273,325&colormap_name=thermal&return_mask=true

When I specify a dst_crs that is not the dataset's native CRS, /bbox produces a correct image:
https://9ox7r6pi8c.execute-api.us-west-2.amazonaws.com/bbox/-99.524,19.043,-78.647,31.126.png?concept_id=C1996881146-POCLOUD&datetime=2024-09-20T00:00:00Z/2024-09-21T00:00:00Z&variable=analysed_sst&backend=xarray&rescale=273,325&colormap_name=thermal&return_mask=true&dst_crs=epsg:3857

After digging into the issue some more I think the problem is in the default CRS definition for non-georeferenced datasets in titiler-cmr:
https://github.com/developmentseed/titiler-cmr/blob/afe8b6dee5d2202fd8213080f986f3b66125d8b6/titiler/cmr/reader.py#L200-L201
The dataset that works as expected (GAMSSA) contains a georeference while the file that is not working correctly (MUR SST) does not contain a georeference and has it manually set to "epsg:4326". If I set the CRS using the CRS WKT from the GAMSSA dataset (instead of "epsg:4326", the MUR SST dataset behaves correctly.
diff --git a/titiler/cmr/reader.py b/titiler/cmr/reader.py
index 979629b..5e0af7d 100644
--- a/titiler/cmr/reader.py
+++ b/titiler/cmr/reader.py
@@ -197,7 +197,10 @@ def get_variable(
         da = da.sortby(da.x)

     # Make sure we have a valid CRS
-    crs = da.rio.crs or "epsg:4326"
+    crs = (
+        da.rio.crs
+        or 'GEOGCS["undefined",DATUM["undefined",SPHEROID["undefined",6379137,298.257223563]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AXIS["Longitude",EAST],AXIS["Latitude",NORTH]]'
+    )
     da.rio.write_crs(crs, inplace=True)

This does not explain why everything works when a reprojection operation is performed without any changes to the default CRS, but it suggests that defaulting to epsg:4326 is probably not the right thing.

rioxarray will set the Affine transformation via the crs attribute and coordinates if it is not already defined in the dataset, which means the data gets "flipped" properly to match the destination transform in the reprojection step. rio_tiler's XarrayReader skips the reprojection entirely if the source and destination crs are the same - https://github.com/cogeotiff/rio-tiler/blob/abec15162c1d8cf9dd67cb5945d8532e2b6f562c/rio_tiler/io/xarray.py#L249-L263. If the bbox endpoint should always return an image that's oriented with y coordinates positive upwards, I'd guess this should be implemented at the rio-tiler level.
I think the automatic assignment of a CRS is a broader issue. I don't agree with assuming that it's "epsg:4326" if it's not in the metadata. I guess there are a lot of datasets that are missing that metadata, so there should be a way for users to get around that still. Maybe a query parameter in the titiler-cmr endpoints?

After more investigation with @maxrjones and others, the problem is actually pretty simple. Neither of these datasets follow the convention of y axis coordinates positive upwards in the arrays.
The GAMSSA dataset has a georeference attached to it that rioxarray can find, and when rio-tiler checks to see if the CRS matches the dest_crs, it sees that they are not equal and performs a reprojection. This reprojection operation yields an array that does follow the conventional y-coordinate direction.
The MUR SST dataset does not have a georeference attached to it and gets the "epsg:4326" value hard-coded. In the part method, rio-tiler checks to see if self.input.rio.crs matches dest_crs (default: "epsg:4326") and they do match so no reprojection operation is performed. This means the array is never transformed to match conventional expectation of y-coordinates.

If the bbox endpoint should always return an image that's oriented with y coordinates positive upwards, I'd guess this should be implemented at the rio-tiler level 🤔

We should propose a fix in rio-tiler to ensure the array that is passed to ImageData matches expectation of y axis coordinates positive upwards.

Here's the roughly equivalent rio_tiler code showing the inconsistent behavior between the Rasterio and Xarray readers:
import earthaccess
import rio_tiler
import xarray as xr
import matplotlib.pyplot as plt
from odc.geo.geom import Geometry
from shapely.geometry import box

# Download dataset
earthaccess.login()
variable = "analysed_sst"
results = earthaccess.search_data(
    concept_id="C2036881735-POCLOUD", count=1, temporal=("2024-09-20", "2024-09-20")
)
fp = earthaccess.download(results, "earthaccess_data")[0]

# Set up GeoJSON for reader
bbox = box(-99.524, 19.043, -78.647, 31.126)
gbox = Geometry(bbox, "EPSG:4326")
shape = gbox.geojson()

# Use Xarray reader
ds = xr.open_dataset(fp)
ds = ds.rio.write_crs("EPSG:4326")
r = rio_tiler.io.xarray.XarrayReader(ds[variable])
im = r.feature(shape)
plt.imshow(im.data.squeeze())
plt.colorbar()
plt.show()

# Use rasterio reader
r = rio_tiler.io.rasterio.Reader(f"NETCDF:{str(fp)}:analysed_sst")
im = r.feature(shape)
plt.imshow(im.data.squeeze())
plt.colorbar()
plt.show()

I'm not sure where mask_and_scale and masking gets handled with using the rasterio reader, which is the reason for the difference in values. I could open a PR tomorrow suggesting a change to the Xarray reader to return consistent array structure.

I'm not sure where mask_and_scale and masking gets handled with using the rasterio reader, which is the reason for the difference in values. I could open a PR tomorrow suggesting a change to the Xarray reader to return consistent array structure.

@maxrjones can you try plt.imshow(im.data_as_image()) instead of plt.imshow(im.data.squeeze())
import earthaccess
import rio_tiler
import xarray as xr
import matplotlib.pyplot as plt
from geojson_pydantic import Polygon

# Download dataset
earthaccess.login()
variable = "analysed_sst"
results = earthaccess.search_data(
    concept_id="C2036881735-POCLOUD", count=1, temporal=("2024-09-20", "2024-09-20")
)
fp = earthaccess.download(results, "earthaccess_data")[0]

# Set up GeoJSON for reader
bbox = (-99.524, 19.043, -78.647, 31.126)
shape = Polygon.from_bounds(*bbox).model_dump(exclude_none=True)

# Use Xarray reader
print("xarray")
ds = xr.open_dataset(fp)
ds = ds.rio.write_crs("EPSG:4326")
r = rio_tiler.io.xarray.XarrayReader(ds[variable])
im = r.feature(shape)

plt.imshow(im.data_as_image())
plt.colorbar()
plt.show()

print("rasterio")
# Use rasterio reader
r = rio_tiler.io.rasterio.Reader(f"NETCDF:{str(fp)}:analysed_sst")
im = r.feature(shape)

plt.imshow(im.data_as_image())
plt.colorbar()
plt.show()

Thank you both for digging on this issue 🙏

I think the automatic assignment of a CRS is a broader issue. I don't agree with assuming that it's "epsg:4326" if it's not in the metadata. I guess there are a lot of datasets that are missing that metadata, so there should be a way for users to get around that still. Maybe a query parameter in the titiler-cmr endpoints?

I totally agree 🙏

Yes I agree. We should add a query parameter for src_crs that would allow an application to provide a CRS definition for datasets that do not have one attached, then raise an exception if the dataset is missing a CRS and src_crs is not supplied.

I'm a bit worry about passing use WKT crs via query parameter, but I don't see better solution

if we agree that not setting a CRS automatically in the XarrayReader, then might get issue when using titiler-cmr backend because we won't be able to easily forward the Error message up to the users 😬

ok I think I may have a solution
import xarray

ds = xarray.open_dataset("20241012090000-JPL-L4_GHRSST-SSTfnd-MUR-GLOB-v02.0-fv04.1.nc", decode_coords="all")
da = ds["analysed_sst"]
print(da.rio.bounds())
print(da.rio.crs)
print(da.rio.transform())
print(da.rio._unordered_bounds())

(-179.99500549324037, -89.99499786365084,<PHONE_NUMBER>000763, 89.99499786365084)
None
| 0.01, 0.00,-180.00|
| 0.00, 0.01,-89.99|
| 0.00, 0.00, 1.00|
(-179.99500549324037, 89.99499786365084,<PHONE_NUMBER>000763, -89.99499786365084)

if you look at the tranform the y resolution is positive, while the bounds (form rio.bounds()) indicate that the transform Y resolution should be negative
rioxarray reorder the bounds, so if you look at the difference between  da.rio._unordered_bounds() and da.rio.bounds() this might indicate that the transform should have a -Y resolution

This is another case where the vrt:// URI syntax shines. What if we could just use the rasterio backend for all of these NetCDF datasets? I don't know how to specify a vrt:// URI in a 4-D (lon, lat, time, variable) where you need to select a time slice AND a variable, but it might be possible (I haven't found an example dataset with that format yet).
This /vsicurl operation takes ~23 seconds on my laptop.
import earthaccess
import matplotlib.pyplot as plt
import rio_tiler

# query MUR SST from CMR
earthaccess.login()
results = earthaccess.search_data(
    concept_id="C1996881146-POCLOUD", count=1, temporal=("2024-10-22", "2024-10-22")
)

url = results[0].data_links()[0]

# Use rasterio reader to read a bbox
bbox = (-99.524, 19.043, -78.647, 31.126)
variable = "analysed_sst"

r = rio_tiler.io.rasterio.Reader(f"vrt:///vsicurl/{url}?sd_name={variable}")
im = r.part(bbox)
plt.imshow(im.data_as_image())
plt.show()

I don't know how to specify a vrt:// URI in a 4-D (lon, lat, time, variable) where you need to select a time slice AND a variable, but it might be possible (I haven't found an example dataset with that format yet).

This example file has four dimensions: https://www.unidata.ucar.edu/software/netcdf/examples/tos_O1_2001-2002.nc
You can pick the variable with sd_name={variable} and a time slice with bands={i}.
gdalinfo "vrt:///vsicurl/https://www.unidata.ucar.edu/software/netcdf/examples/tos_O1_2001-2002.nc?sd_name=tos&bands=1"

I don't know how to specify a vrt:// URI in a 4-D (lon, lat, time, variable) where you need to select a time slice AND a variable, but it might be possible (I haven't found an example dataset with that format yet).

This example file has four dimensions: unidata.ucar.edu/software/netcdf/examples/tos_O1_2001-2002.nc
You can pick the variable with sd_name={variable} and a time slice with bands={i}.
gdalinfo "vrt:///vsicurl/https://www.unidata.ucar.edu/software/netcdf/examples/tos_O1_2001-2002.nc?sd_name=tos&bands=1"

How would this work with rio-tiler?
I tried:
import matplotlib.pyplot as plt
import rio_tiler

# Use rasterio reader to read a bbox
bbox = (-99.524, 19.043, -78.647, 31.126)
src = "vrt:///vsicurl/https://www.unidata.ucar.edu/software/netcdf/examples/tos_O1_2001-2002.nc?sd_name=tos&bands=1"

r = rio_tiler.io.rasterio.Reader(src)
im = r.part(bbox)
plt.imshow(im.data_as_image())
plt.show()

You shouldn't need the /vsicurl/ prefix with rasterio

You shouldn't need the /vsicurl/ prefix with rasterio

Good to know, thanks! The bands= trick via VRT wasn't working for me, but it was possible to use indexes=1 with Reader.part(). Still, I'm not sure how you would go from an application/user specified time stamp to an index without a tool like xarray / rioxarray.
import matplotlib.pyplot as plt
import rio_tiler

# Use rasterio reader to read a bbox
bbox = (190, 19.043, 240, 31.126)
src = "https://www.unidata.ucar.edu/software/netcdf/examples/tos_O1_2001-2002.nc?sd_name=tos&bands=1"

r = rio_tiler.io.rasterio.Reader(src)
im = r.part(bbox, indexes=1)
plt.imshow(im.data_as_image())

@hrodmn FYI while that dataset has 4 dimensions, the tos variable only has three. concept_ID="G1991303139-POCLOUD" in an example of a dataset with 4 dimensional data variables (time: 1, Z: 50, latitude: 360, longitude: 720).


Sidebar content should be separated into "Content" and "Time" visual groups.

We could add in some visual stylings (lines, breaks) or gaps to collect elements together, and make the top-half of elements (Compare Across and Include) separate from the bottom half (Timescale and Date Range).

add a white line between the two parts.


Support parsing nested JSON properties and schema check for nested properties

Add a function to support parsing nested properties
Update test scenarios for nested properties and schema check

Fixed #210


[WIP]: 📝  Release eds-core-react and eds-tokens

Resolve #1140

Suggestions for improvements @mimarz ?

I'm not 100% sure about which date to add.


Dependency injection of HttpClient not working

I can't get the following code snippet to work:
public HttpTrigger(IMyService service, HttpClient httpClient)
{
_service = service;
_client = httpClient;
}
The only way I could get it working was to pass in a HttpClientFactory, like so:
public HttpTrigger(IMyService service, IHttpClientFactory httpClientFactory)
{
_service = service;
_client = httpClientFactory.CreateClient();
}
It would be interesting to know why that is the case, and to update the example accordingly.

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

ID: 5786402e-9d88-5de0-607a-1c2a143af006
Version Independent ID: 15368d1c-b22e-7eb2-413f-cc0d41d2b909
Content: Use dependency injection in .NET Azure Functions
Content Source: articles/azure-functions/functions-dotnet-dependency-injection.md
Service: azure-functions
GitHub Login: @craigshoemaker
Microsoft Alias: cshoe

Hi @qfyra Thanks for your feedback. We will review and update as appropriate.

Moving to #please-close this issue as this is more of a support question rather than an issue with the documentation