STM32H7: Add new FDCAN driver

Summary
This is a draft PR. Style checks will fail and there is still some code that needs to be cleaned up and reviewed. I want to get this out in the open so others can get eyes on it.
The STM32H7 FDCAN block is a significant departure from the F7 and F4, so a lot has changed here. Fortunately, the SAMv7 series of chips use a nearly identical version of this IP, so that driver served as the starting point. The major difference between this controller and the one present in the F7 and F4 is the presence of the Message RAM. This is a 10 kB block of SRAM dedicated entirely to the FDCAN block and shared by the two independent FDCAN controllers. Each controller instantiates RX/TX FIFOs and buffers here to hold CAN messages. Also instantiated here are separate sets of filters for standard and extended length ID messages. The layout of the message ram is incredibly important to the proper operation of the controllers, so it is imperative that the driver get this right. The layout of the message RAM is fully configurable by the user via menuconfig. To help prevent invalid configurations, each config option has appropriate limits and a compile-time check ensures that the limits of the message RAM are not exceeded.
In its current state, the driver is functioning properly, but there is room for considerable improvement. Things that work:

Both controllers function and can be individually configured
Blocking and non-blocking operation both work as expected
Standard and extended ID messages can be sent and received
Hardware FIFOs for RX and TX
Hardware loopback mode
Classic CAN mode

Impact
Adds a shiny new driver!
Testing
Used the can example app to send a few thousand extended and standard length ID messages per test. I ran several of these tests in both blocking and non-blocking mode. I also tested using the FDCAN controller's built in hardware loopback as well as between two separate boards running the can example app. As as side note, I had to modify the can example app to get this to work properly, so I should probably commit that too.
The driver has also been used to send and receive standard length ID messages to CAN-based device controllers. These were sent alongside extended ID messages passed by UAVCAN without issue.
Important notes and things that need to be worked on

There are a number of things that need to be addressed; these items are marked with REVIST comments
I am uncertain about whether the message RAM is cacheable. The memory mapped address falls within the peripheral device space, which as far as I can tell is uncacheable. I could be wrong about this, but the driver currently seems to work as expected without any cache coherency operations in play.
The fdcan_reserve_buffer() function did not support non-blocking operation in the SAMv7 version of this driver. In that variation, the function utilized the nxsem_wait() function and looped until it was able to grab a buffer semaphore. I changed this over to nxsem_trywait() and then immediately return. The return code is inspected by fdcan_send(); if < 0, that function returns without sending the desired data. This prevents the driver from blocking when the hardware TX FIFO is full.
There is a single RCC reset line for the FDCAN block, meaning both controllers are reset together. The fdcan_reset() function currently makes use of this, which is no good if you have another piece of software controlling the device as well (Lookin' at you PX4 UAVCAN :p ). A better approach to resetting a single controller would be to put it into the init state and manually set all registers to the reset value. I have not done this yet.
I have not tested the busoff recovery functionality brought over from the SAMv7 driver
I have not tested whether IOCTL commands for adding and deleting filters works. I have only tested the driver working in the default "accept everything, reject nothing" mode.
I have not tested FD mode or bit rate switching. The code and Kconfig options are present for it.
I have not tested whether the TX hardware queue mode works, but the implementation was brought over from the SAMv7 driver
Remote request support is not currently implemented

Summary
This is a draft PR. Style checks will fail and there is still some code that needs to be cleaned up and reviewed. I want to get this out in the open so others can get eyes on it.
The STM32H7 FDCAN block is a significant departure from the F7 and F4, so a lot has changed here. Fortunately, the SAMv7 series of chips use a nearly identical version of this IP, so that driver served as the starting point. The major difference between this controller and the one present in the F7 and F4 is the presence of the Message RAM. This is a 10 kB block of SRAM dedicated entirely to the FDCAN block and shared by the two independent FDCAN controllers. Each controller instantiates RX/TX FIFOs and buffers here to hold CAN messages. Also instantiated here are separate sets of filters for standard and extended length ID messages. The layout of the message ram is incredibly important to the proper operation of the controllers, so it is imperative that the driver get this right. The layout of the message RAM is fully configurable by the user via menuconfig. To help prevent invalid configurations, each config option has appropriate limits and a compile-time check ensures that the limits of the message RAM are not exceeded.
In its current state, the driver is functioning properly, but there is room for considerable improvement. Things that work:

Both controllers function and can be individually configured
Blocking and non-blocking operation both work as expected
Standard and extended ID messages can be sent and received
Hardware FIFOs for RX and TX
Hardware loopback mode
Classic CAN mode

Impact
Adds a shiny new driver!
Testing
Used the can example app to send a few thousand extended and standard length ID messages per test. I ran several of these tests in both blocking and non-blocking mode. I also tested using the FDCAN controller's built in hardware loopback as well as between two separate boards running the can example app. As as side note, I had to modify the can example app to get this to work properly, so I should probably commit that too.
The driver has also been used to send and receive standard length ID messages to CAN-based device controllers. These were sent alongside extended ID messages passed by UAVCAN without issue.
Important notes and things that need to be worked on

There are a number of things that need to be addressed; these items are marked with REVIST comments
I am uncertain about whether the message RAM is cacheable. The memory mapped address falls within the peripheral device space, which as far as I can tell is uncacheable. I could be wrong about this, but the driver currently seems to work as expected without any cache coherency operations in play.
The fdcan_reserve_buffer() function did not support non-blocking operation in the SAMv7 version of this driver. In that variation, the function utilized the nxsem_wait() function and looped until it was able to grab a buffer semaphore. I changed this over to nxsem_trywait() and then immediately return. The return code is inspected by fdcan_send(); if < 0, that function returns without sending the desired data. This prevents the driver from blocking when the hardware TX FIFO is full.
There is a single RCC reset line for the FDCAN block, meaning both controllers are reset together. The fdcan_reset() function currently makes use of this, which is no good if you have another piece of software controlling the device as well (Lookin' at you PX4 UAVCAN :p ). A better approach to resetting a single controller would be to put it into the init state and manually set all registers to the reset value. I have not done this yet.
I have not tested the busoff recovery functionality brought over from the SAMv7 driver
I have not tested whether IOCTL commands for adding and deleting filters works. I have only tested the driver working in the default "accept everything, reject nothing" mode.
I have not tested FD mode or bit rate switching. The code and Kconfig options are present for it.
I have not tested whether the TX hardware queue mode works, but the implementation was brought over from the SAMv7 driver
Remote request support is not currently implemented

Hi, is there any example code that I can refer to send/receive classic CAN messages on stm32h7?


iPad Mini 2 (WiFi) not jailbreaking

I've ran the program using Xcode (on my device running iOS 10.1.1) and it gets past the offset code. The code I ran was directly from this repository (No modifications added, with the exception of importing the IOKit Framework). However, it crashes and reboots back to normal iOS. I've tried logging into the SSH server built into this app, but it says "connection refused."
I made a pastebin of the log for reference:  http://pastebin.com/cy1e56gn
Any ideas/solutions?

 Because I read through the code, and it would display the fact that it would have failed. It did not, however, and continued along. I'm just trying to submit a log for the developers of this jailbreak to reference so they can add support for this device fully...

It is because 4k devices aren't supported. Please close this :/

qwertyoruiop doesn't have the devices to test this jailbreak yet, so please wait patiently. He said he will be able to do some testing during the weekend.
Please close this issue.

OK. Will do.

Ok. Will do...


fix(form): provide typings for $el

🔗 Linked issue
Resolves #731

❓ Type of change

[ ] 📖 Documentation (updates to the documentation or readme)
[x] 🐞 Bug fix (a non-breaking change that fixes an issue)
[ ] 👌 Enhancement (improving an existing functionality)
[ ] ✨ New feature (a non-breaking change that adds functionality)
[ ] 🧹 Chore (updates to the build process or auxiliary tools and libraries)
[ ] ⚠ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description
Properly type the $el  property of the Form component to avoid type errors when accessing it from template refs.

📝 Checklist

[ ] I have linked an issue or discussion.
[ ] I have updated the documentation accordingly.

@romhml Do we really need to do this when using useTemplateRef? 🤔


Add FcntlArg::F_FULLFSYNC

https://developer.apple.com/library/ios/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fsync.2.html

I don't have Mac OS X, so I'll test on Travis. I don't know if iOS supports that flag, but this thread seems to imply so.

Okay, the tests seem to pass now!

Thank you.
@homu r+

:pushpin: Commit ae6635f has been approved by fiveop

:zap: Test exempted - status


TreeDataGrid vertical scroll is reset when scrolling horizontally

Describe the bug
TreeDataGrid's vertical scroll is reset when you scroll horizontally.
To Reproduce
Steps to reproduce the behavior:

Create a TreeDataGrid with enough content to scroll both vertically and horizontally.
Go to the vertical scrollbar and scroll down
Scroll horizontally
See how the vertical scroll is reset

Expected behavior
The vertical scroll should not change.
Video
https://user-images.githubusercontent.com/3109851/189690656-cb3df157-a68f-40e2-9c9a-ad33cb765a26.mp4
Desktop (please complete the following information):

OS: Windows 11
Versions:
TreeDataGrid 0.10.10
Avalonia 0.10.18

I think this issue belongs to: https://github.com/AvaloniaUI/Avalonia.Controls.TreeDataGrid

I think this issue belongs to: https://github.com/AvaloniaUI/Avalonia.Controls.TreeDataGrid

Yes! Sorry, I didn't know there was a different repo for it 😅


(PUP-6578) Use resource Type[title] for accessing system_values

We were previously just using the resource title instead of full
Type[title] syntax for looking up resources in the transactionstore.
This patch simply switches us to use the #to_s method instead of
Signed-off-by: Ken Barber<EMAIL_ADDRESS>

CLA signed by all contributors.

So given 3d553b5aa7063bf59c771bb6a5fad833130548e2 from this branch + a master of 364ed1a6987d2414f8b76809736dface60930a12 ... I merged those and pushed up to https://github.com/Iristyle/puppet/commits/b1a435c
I did a quick pass on the currently failing tests from CI runs:
TEST_TARGET=fedora22-64a PUPPET_FORK='Iristyle' bundle exec rake ci:test:git SHA=`git lastref` TESTS=tests/resource/package/yum.rb

              - Test Case Summary for suite 'tests' -
       Total Suite Time: 161.21 seconds
      Average Test Time: 161.21 seconds
              Attempted: 1
                 Passed: 1
                 Failed: 0
                Errored: 0
                Skipped: 0
                Pending: 0
                  Total: 1

TEST_TARGET=ubuntu1604-64a PUPPET_FORK='Iristyle' bundle exec rake ci:test:git SHA=`git lastref` TESTS=tests/resource/service/ticket_5024_systemd_enabling_masked_service.rb

             - Test Case Summary for suite 'tests' -
       Total Suite Time: 27.45 seconds
      Average Test Time: 27.45 seconds
              Attempted: 1
                 Passed: 1
                 Failed: 0
                Errored: 0
                Skipped: 0
                Pending: 0
                  Total: 1

I'm going to trigger  a full suite run now against just both of those OSes for a sanity check that nothing else broke.

once @Iristyle confirms that tests look good, I'm ready to merge this :+1:

The full suite was kicked off with:
TEST_TARGET=ubuntu1604-64a-fedora22-64a PUPPET_FORK='Iristyle' bundle exec rake ci:test:git SHA=`git lastref`

Summary:
             - Test Case Summary for suite 'tests' -
       Total Suite Time: 3676.51 seconds
      Average Test Time: 11.82 seconds
              Attempted: 311
                 Passed: 246
                 Failed: 0
                Errored: 6
                Skipped: 58
                Pending: 1
                  Total: 311

In looking at the fails, they appear to be related to the fact that this is git based acceptance, rather than package based:
Errored Tests Cases:
                      Test Case tests/direct_puppet/static_catalog_env_control.rb reported: #<Beaker::Host::CommandFailure: Host 'vc0s0t3vuo12ux8.delivery.puppetlabs.net' exited with 1 running:
                     mv /etc/puppetserver/conf.d/puppetserver.conf.bak /etc/puppetserver/conf.d/puppetserver.conf
                    Last 10 lines of output were:
                    	mv: cannot stat ‘/etc/puppetserver/conf.d/puppetserver.conf.bak’: No such file or directory>
                      Test Case tests/direct_puppet/supports_utf8.rb reported: #<Beaker::Host::CommandFailure: Host 'vc0s0t3vuo12ux8.delivery.puppetlabs.net' exited with 1 running:
                     ln -sf /tmp/supports_utf8_m5acn9ke /etc/puppetlabs/code/environments/supports_utf8_m5acn9ke
                    Last 10 lines of output were:
                    	ln: failed to create symbolic link ‘/etc/puppetlabs/code/environments/supports_utf8_m5acn9ke’: No such file or directory>
                      Test Case tests/environment/custom_type_provider_from_same_environment.rb reported: #<Beaker::Host::CommandFailure: Host 'vc0s0t3vuo12ux8.delivery.puppetlabs.net' exited with 1 running:
                     ln -sf /tmp/custom_type_provider_from_same_environment_1gjo4rbw /etc/puppetlabs/code/environments/custom_type_provider_from_same_environment_1gjo4rbw
                    Last 10 lines of output were:
                    	ln: failed to create symbolic link ‘/etc/puppetlabs/code/environments/custom_type_provider_from_same_environment_1gjo4rbw’: No such file or directory>
                      Test Case tests/face/parser_validate.rb reported: #<Beaker::Host::CommandFailure: Host 'jauagz90qn520sb.delivery.puppetlabs.net' exited with 1 running:
                     ln -sf /tmp/parser_validate_pa0c4d8t /etc/puppetlabs/code/environments/parser_validate_pa0c4d8t
                    Last 10 lines of output were:
                    	ln: failed to create symbolic link '/etc/puppetlabs/code/environments/parser_validate_pa0c4d8t': No such file or directory>
                      Test Case tests/language/exported_resources.rb reported: #<Beaker::Host::CommandFailure: Host 'vc0s0t3vuo12ux8.delivery.puppetlabs.net' exited with 1 running:
                     ln -sf /tmp/exported_resources_9adiz862 /etc/puppetlabs/code/environments/exported_resources_9adiz862
                    Last 10 lines of output were:
                    	ln: failed to create symbolic link ‘/etc/puppetlabs/code/environments/exported_resources_9adiz862’: No such file or directory>
                      Test Case tests/parser_functions/no_exception_in_reduce_with_bignum.rb reported: #<RuntimeError: PuppetAcceptance::DSL::Helpers.with_puppet_running_on failed (check backtrace for location) because: Host 'jauagz90qn520sb.delivery.puppetlabs.net' exited with 1 running:
                     puppet agent -t --environment no_exception_in_reduce_with_bignum_mqrbx78l --server vc0s0t3vuo12ux8.delivery.puppetlabs.net
                    Last 10 lines of output were:
                    	Warning: Error 500 on SERVER: Server Error: Permission denied - /etc/puppetlabs/code/environments/no_exception_in_reduce_with_bignum_mqrbx78l/environment.conf
                    	Error: /File[/opt/puppetlabs/puppet/cache/facts.d]: Failed to generate additional resources using 'eval_generate': Error 500 on SERVER: Server Error: Permission denied - /etc/puppetlabs/code/environments/no_exception_in_reduce_with_bignum_mqrbx78l/environment.conf
                    	Error: /File[/opt/puppetlabs/puppet/cache/facts.d]: Could not evaluate: Could not retrieve file metadata for puppet:///pluginfacts: Error 500 on SERVER: Server Error: Permission denied - /etc/puppetlabs/code/environments/no_exception_in_reduce_with_bignum_mqrbx78l/environment.conf
                    	Info: Retrieving plugin
                    	Error: /File[/opt/puppetlabs/puppet/cache/lib]: Failed to generate additional resources using 'eval_generate': Error 500 on SERVER: Server Error: Permission denied - /etc/puppetlabs/code/environments/no_exception_in_reduce_with_bignum_mqrbx78l/environment.conf
                    	Error: /File[/opt/puppetlabs/puppet/cache/lib]: Could not evaluate: Could not retrieve file metadata for puppet:///plugins: Error 500 on SERVER: Server Error: Permission denied - /etc/puppetlabs/code/environments/no_exception_in_reduce_with_bignum_mqrbx78l/environment.conf
                    	Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Permission denied - /etc/puppetlabs/code/environments/no_exception_in_reduce_with_bignum_mqrbx78l/environment.conf
                    	Warning: Not using cache on failed catalog
                    	Error: Could not retrieve catalog; skipping run
                    	Error: Could not send report: Error 500 on SERVER: Server Error: Permission denied - /etc/puppetlabs/code/environments/no_exception_in_reduce_with_bignum_mqrbx78l/environment.conf
                    /Users/Iristyle/source/puppet/acceptance/.bundle/gems/ruby/2.1.0/gems/beaker-2.44.0/lib/beaker/host.rb:331:in `exec'
                    /Users/Iristyle/source/puppet/acceptance/.bundle/gems/ruby/2.1.0/gems/beaker-2.44.0/lib/beaker/dsl/helpers/host_helpers.rb:83:in `block in on'
                    /Users/Iristyle/source/puppet/acceptance/.bundle/gems/ruby/2.1.0/gems/beaker-2.44.0/lib/beaker/shared/host_manager.rb:115:in `run_block_on'
                    /Users/Iristyle/source/puppet/acceptance/.bundle/gems/ruby/2.1.0/gems/beaker-2.44.0/lib/beaker/dsl/patterns.rb:35:in `block_on'
                    /Users/Iristyle/source/puppet/acceptance/.bundle/gems/ruby/2.1.0/gems/beaker-2.44.0/lib/beaker/dsl/helpers/host_helpers.rb:63:in `on'
                    tests/parser_functions/no_exception_in_reduce_with_bignum.rb:60:in `block (4 levels) in run_test'
                    tests/parser_functions/no_exception_in_reduce_with_bignum.rb:59:in `each'
                    tests/parser_functions/no_exception_in_reduce_with_bignum.rb:59:in `block (3 levels) in run_test'
                    /Users/Iristyle/source/puppet/acceptance/.bundle/gems/ruby/2.1.0/gems/beaker-2.44.0/lib/beaker/dsl/helpers/puppet_helpers.rb:171:in `with_puppet_running_on'
                    tests/parser_functions/no_exception_in_reduce_with_bignum.rb:58:in `block (2 levels) in run_test'
                    /Users/Iristyle/source/puppet/acceptance/.bundle/gems/ruby/2.1.0/gems/beaker-2.44.0/lib/beaker/dsl/structure.rb:58:in `test_name'
                    tests/parser_functions/no_exception_in_reduce_with_bignum.rb:2:in `block in run_test'
                    /Users/Iristyle/source/puppet/acceptance/.bundle/gems/ruby/2.1.0/gems/beaker-2.44.0/lib/beaker/test_case.rb:133:in `eval'
                    /Users/Iristyle/source/puppet/acceptance/.bundle/gems/ruby/2.1.0/gems/beaker-2.44.0/lib/beaker/test_case.rb:133:in `block in run_test'
                    /usr/local/opt/rbenv/versions/2.1.9/lib/ruby/2.1.0/benchmark.rb:294:in `realtime'
                    /Users/Iristyle/source/puppet/acceptance/.bundle/gems/ruby/2.1.0/gems/beaker-2.44.0/lib/beaker/test_case.rb:130:in `run_test'
                    /Users/Iristyle/source/puppet/acceptance/.bundle/gems/ruby/2.1.0/gems/beaker-2.44.0/lib/beaker/test_suite.rb:318:in `block in run'
                    /Users/Iristyle/source/puppet/acceptance/.bundle/gems/ruby/2.1.0/gems/beaker-2.44.0/lib/beaker/test_suite.rb:315:in `each'
                    /Users/Iristyle/source/puppet/acceptance/.bundle/gems/ruby/2.1.0/gems/beaker-2.44.0/lib/beaker/test_suite.rb:315:in `run'
                    /Users/Iristyle/source/puppet/acceptance/.bundle/gems/ruby/2.1.0/gems/beaker-2.44.0/lib/beaker/test_suite.rb:364:in `run_and_raise_on_failure'
                    /Users/Iristyle/source/puppet/acceptance/.bundle/gems/ruby/2.1.0/gems/beaker-2.44.0/lib/beaker/cli.rb:173:in `run_suite'
                    /Users/Iristyle/source/puppet/acceptance/.bundle/gems/ruby/2.1.0/gems/beaker-2.44.0/lib/beaker/cli.rb:99:in `execute!'
                    /Users/Iristyle/source/puppet/acceptance/.bundle/gems/ruby/2.1.0/gems/beaker-2.44.0/bin/beaker:6:in `<top (required)>'
                    /Users/Iristyle/source/puppet/acceptance/.bundle/gems/ruby/2.1.0/bin/beaker:23:in `load'
                    /Users/Iristyle/source/puppet/acceptance/.bundle/gems/ruby/2.1.0/bin/beaker:23:in `<main>'
                    >


PAdES4 DocTimeStamp

I saw your LTV/DSS prep.  I already have a branch that has the other non-validation part of PAdES part 4, document time stamping.

Please accept the invitation to contribute to this project. You will be free to add your own corrections.
LTV / DSS will create another addition to the pdf document - just like pdfbox from apache does and it will be possible to create it only after signing the document

I was already considering PAdES-LTV, and thought that the document timestamp part that gets added after DSS and VRI would be a quick way to get started.


Pulumi is not started from backed jar file

What happened?
I'm trying to run pulumi from precompiled jar file (following the guide here: https://github.com/pulumi/pulumi-java/ )
First I'm starting new project and could check that compilation is working and pulumi do the job.
Then I'm packaging exactly this project, and building farjar (repro guide is here: https://github.com/golosegor/pulumi-execute-from-jar-issue )
Then I'm trying to run pulumi with complid code from folder nearby: https://github.com/golosegor/pulumi-execute-from-jar-issue/blob/main/repro-folder/Pulumi.yaml and getting GRCP unavailable exception
Example
I've created a repro
https://github.com/golosegor/pulumi-execute-from-jar-issue
Output of pulumi about
CLI
Version      3.100.0
Go Version   go1.21.5
Go Compiler  gc
Plugins
NAME  VERSION
java  unknown
Host
OS       ubuntu
Version  23.10
Arch     x86_64
Additional context
Output looks like that:
I0109 14:52:54.785976  297662 log.go:81] GetRequiredPlugins: plugins=[]
I0109 14:52:54.796470  297662 log.go:81] Run: program=.
I0109 14:52:54.796485  297662 log.go:73] Language host launching process: /home/eg/.sdkman/candidates/java/current/bin/java-jar ../demo/target/demo-1.0-SNAPSHOT-jar-with-dependencies.jar
Jan 09, 2024 2:52:55 PM com.pulumi.deployment.internal.DeploymentImpl$DefaultEngineLogger errorAsync
SEVERE: Running program [PID: 297717](/home/eg/.sdkman/candidates/java/17.0.9-tem/bin/java -jar ../demo/target/demo-1.0-SNAPSHOT-jar-with-dependencies.jar) failed with an unhandled exception:
io.grpc.StatusRuntimeException: UNAVAILABLE: io exception
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

Thanks for opening the issue and providing a repro project @golosegor! I haven't had a chance to try the repro yet, but one quick question: Does it work if you place the .jar within repro-folder and update the path in Pulumi.yaml to not have ../?

I tried different ways. Absolute path is also not working. So it's not a problem with the path 100%

No idea why exactly is this happening, feels like some funny business inside grpc-netty-shaded and shadow jar plugin.
I debugged through the code, and basically when you run pulumi via gradle, it defaults to dns:// protocol, but when you run it via a far jar, it falls back to unix://, which is invalid.
This happens in io.grpc.internal.ManagedChannelImpl#getNameResolver(java.lang.String, io.grpc.NameResolver.Factory, io.grpc.NameResolver.Args) link, where it says it should fall back to dns://, but it doesn't.
This seems to be a fix for that: https://github.com/grpc/grpc-java/issues/10425 but dumb upgrade of grpc didn't help much.

Interesting, I've just replaced the shadow with spring-boot plugin, which can also generate a fat jar, and it is working now!


Setting frame intervals

I've figured out how to set a format (I'll list it below as it may be useful to someone else) but I cannot figure out where to set intervals/framerates. Is that currently possible?
let mut pix_format = PixFormat::from(FourCc::Mjpeg);
pix_format.set_width(1920);
pix_format.set_height(1080);
let mut format = Format::new(BufferType::VideoCapture, pix_format).unwrap();
device.set_format(&mut format).await.unwrap();

@FallingSnow Seems this feature hasn't implemented yet.
Could you try add that? PR's are welcome!
As a starting point see CaptureParm, OutputParm, StreamParm, VIDEO_x_PARM.

@FallingSnow I implemented such functionality today. Could you try it?

Awesome. Yes I will give it a try.

I strongly recommend you the following way to deal with controls/format/streamparams:

I originally intended to do that but I couldn't figure out how to modify a format once I retrieved it. I'll have to look again and double check.

Getting the frame rate returns inverted (numerator and denominator are flipped) values. I tested with v4l2-ctl -d /dev/video0 --set-parm 60 and it reports the correct inverted value.
let time_pre_frame = device.param(BufferType::VideoCapture).await.unwrap().try_ref::<CaptureParm>().unwrap().time_per_frame();
dbg!(time_pre_frame.numerator(), time_pre_frame.denominator());

[kvm/src/video.rs:83] device.param(BufferType::VideoCapture).await.unwrap().try_ref::<CaptureParm>().unwrap().time_per_frame().numerator() = 1
[kvm/src/video.rs:83] device.param(BufferType::VideoCapture).await.unwrap().try_ref::<CaptureParm>().unwrap().time_per_frame().denominator() = 60

Setting the frame rate does not seem to work. I'm using the following code. I also tried inverting the values but that didn't work either.
let mut frame_rate = tokio_linux_video::types::Fract::default();
frame_rate.set_numerator(10);
frame_rate.set_denominator(1);
device.param(BufferType::VideoCapture).await.unwrap().try_mut::<CaptureParm>().unwrap().set_time_per_frame(frame_rate);

Again, setting via v4l2-ctl -d /dev/video0 --set-parm 10 does work.

I guess it would help if I used device.set_format and device.set_param lol Sorry about that. It's working correctly now.
So it looks like the only issue is the returned inverted frame interval fraction.

After having realized that the method is called time_per_frame the 1/60 fraction makes sense.
Thanks for your quick work on this!

I can't seem to get the frame rate to be set properly. Here's what I tried:
        let dev = Device::open("/dev/video0").await?;

        let mut frame_rate = Fract::default();
        frame_rate.set_numerator(1).set_denominator(10);
        let mut frame_rate_parm = dev.param(buffer_type).await?;
        frame_rate_parm
            .try_mut::<CaptureParm>()
            .ok_or(anyhow::anyhow!("Could not set frame rate!"))?
            .set_time_per_frame(frame_rate);

        dev.set_param(&mut frame_rate_parm).await?;

        let val = dev.param(buffer_type).await?
            .try_mut::<CaptureParm>()
            .ok_or(anyhow::anyhow!("Could not get frame rate!"))?
            .time_per_frame();

        println!("In: {frame_rate}, Out: {val}");

The printlin!() at the end always gives: In: 1/10, Out: 1/30. With the v4l library, I can set it to 10 fps, but I want to use this library, since I have another project that will require MPlanes. I need to know how to do simple things like set fps, 1st.

@Type1J It looks really strange. Could you use strace to see ioctl calls?


WIP: Convert to pushing bundler

Replaces https://github.com/googleapis/gax-java/pull/194
Points to note:

Resources are not released from FlowController until after the API call is complete, i.e. the bundle is processed by the bundling receiver. This is because there is no longer a queue of bundles, but instead there is a queue of tasks waiting to be processes by the executor.
All calls to flush() are done through the executor so that all queued tasks will complete.

Codecov Report

Merging #236 into master will decrease coverage by 0.56%.
The diff coverage is 98%.

@@             Coverage Diff              @@
##             master     #236      +/-   ##
============================================
- Coverage     70.54%   69.97%   -0.57%
+ Complexity      492      478      -14
============================================
  Files            69       68       -1
  Lines          2550     2475      -75
  Branches        269      251      -18
============================================
- Hits           1799     1732      -67
+ Misses          652      646       -6
+ Partials         99       97       -2

Impacted Files
Coverage Δ
Complexity Δ

...n/java/com/google/api/gax/grpc/BundleExecutor.java
100% <ø> (ø)
5 <0> (ø)
:x:

...java/com/google/api/gax/grpc/BundlingCallable.java
88.88% <100%> (ø)
3 <0> (ø)
:x:

...n/java/com/google/api/gax/grpc/BundlerFactory.java
77.04% <95%> (-1.42%)
10 <5> (-2)

...va/com/google/api/gax/bundling/PushingBundler.java
98.7% <98.7%> (ø)
18 <18> (?)

...e/api/gax/bundling/AccumulatingBundleReceiver.java
100% <0%> (+16.66%)
4% <0%> (+1%)
:white_check_mark:

Continue to review full report at Codecov.

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

As discussed offline, have removed flush and added trigger, PTAL.

LGTM (wait for @pongad too); remember to remove "WIP" - also, don't submit until corresponding changes made in g-c-j.

Looks like there is a javadoc failure in ThresholdBundler.java.

I do not think any changes are required in GCJ, other than to update the generated layer as per: https://github.com/googleapis/toolkit/pull/1116


use social media assets from deployed production page

Instead of requesting them from staging.healthsites.io, which doesn't even have a valid https certificate at the moment: https://staging.healthsites.io/static/img/healthsites-gp.png

Coverage remained the same at 39.463% when pulling 6754243b6aa905425f3ed0910b3f115834868340 on tyrasd:patch-1 into 779dcc2e204b91fd2f749d522a48bc025c99077f on healthsites:develop.

oh, I see there were some changes in the base branch. need me to rebase this branch, or would you just merge it as is? @meomancer

thank you @tyrasd
yes, the develop is rebased (because WIP PR was merged accidentally)
maybe could you clean your PR? i can't merge this because there are commits that is still in progress

@meomancer I've rebased it now


Fix encoding for py2

Description
Fix https://github.com/dmlc/gluon-nlp/issues/349
Checklist
Essentials

[x] Changes are complete (i.e. I finished coding on this PR)
[x] All changes have test coverage
[x] Code is well-documented

Changes

[x] Feature1, tests, (and when applicable, API doc)
[x] Feature2, tests, (and when applicable, API doc)

Job PR-350/4 is complete.
Docs are uploaded to http://gluon-nlp-staging.s3-accelerate.dualstack.amazonaws.com/PR-350/4/index.html

Yes, if pickle is involved we need to make sure to pickle unicode strings when in Py2. But I currently don't follow where pickle is involved if you np.load call reads an array that only contains integers?

Thanks for fixing this for now so that Haibin is unblocked!
I am still not sure though why it is necessary to specify an encoding for np.load, if 1) there is actually no string objects involved or 2) we rather can make sure to always use unicode.

np.load uses default encoding ascii to load the file. In this pr, I change
to latin1 which is a superset of ascii. In my testing, this has something
to do the with the stored np.array of np.array data structure. I have even
tried only fetch the first example of the stored dataset and save it again,
and then load it with ascii, but it still fail.
On Sat, 29 Sep 2018 at 12:33, Leonard Lausen<EMAIL_ADDRESS>wrote:

Thanks for fixing this for now so that Haibin is unblocked!
I am still not sure though why it is necessary to specify an encoding for
np.load, if 1) there is actually no string objects involved or 2) we rather
can make sure to always use unicode.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/dmlc/gluon-nlp/pull/350#issuecomment-425615163, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ADxs1FUWU6fqQPmRz65BVOCihCMvz8A6ks5ufvgogaJpZM4W8H0S
.

Thanks @szhengac . But according to numpy API doc, the encoding parameter is "only useful when loading Python 2 generated pickled files in Python 3, which includes npy/npz files containing object arrays.". So if there is no need for pickle here, as you mentioned you only store 32bit integers, there should be no need for this option. Maybe there is something else going on?

I find that changing the encoding is necessary when the structure is
array([array(int), ..., array(int)) but not needed for array([[int], ...,
[int]]). perhaps the previous one requires some special symbol not in ascii.
On Sat, 29 Sep 2018 at 12:46, Leonard Lausen<EMAIL_ADDRESS>wrote:

Thanks @szhengac https://github.com/szhengac . But according to numpy
API doc, the encoding parameter is "only useful when loading Python 2
generated pickled files in Python 3, which includes npy/npz files
containing object arrays.". So if there is no need for pickle here, as you
mentioned you only store 32bit integers, there should be no need for this
option. Maybe there is something else going on?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dmlc/gluon-nlp/pull/350#issuecomment-425615673, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ADxs1Gr6vjbLKbZmesHs4486BkRvo8ryks5ufvsrgaJpZM4W8H0S
.

Yes, you are are storing an array of python objects (each object is a numpy array). You should use np.savez instead of np.save because the former allows you to save several arrays into a .npz archive. This will be much faster and will avoid these kind of Py2 / Py3 problems.

np.load will happily read the npz archive file. You can find some examples at https://www.numpy.org/devdocs/reference/generated/numpy.savez.html https://www.numpy.org/devdocs/reference/generated/numpy.load.html

np.savez has been used
On Sat, 29 Sep 2018 at 14:50, Leonard Lausen<EMAIL_ADDRESS>wrote:

np.load will happily read the npz archive file. You can find some
examples at
https://www.numpy.org/devdocs/reference/generated/numpy.savez.html
https://www.numpy.org/devdocs/reference/generated/numpy.load.html
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dmlc/gluon-nlp/pull/350#issuecomment-425621612, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ADxs1E-Z449QfojTKCZiP_9CuoGCdgWoks5ufxhCgaJpZM4W8H0S
.

You need to make sure that each argument to np.savez is a numpy array that does not contain any Python objects. I will take a look at your script why you have python objects in the arguments passed to savez.

I suggest you replace
src_data = np.array([ele[0] for ele in dataset])
tgt_data = np.array([ele[1] for ele in dataset])
np.savez(os.path.join(_C.CACHE_PATH, prefix + '.npz'), src_data=src_data, tgt_data=tgt_data)

with
src_data = np.concatenate([e[0] for e in dataset])
tgt_data = np.concatenate([e[1] for e in dataset])
src_cumlen = np.cumsum([e[0] for e in dataset])
tgt_cumlen = np.cumsum([e[1] for e in dataset])
np.savez(os.path.join(_C.CACHE_PATH, prefix + '.npz'), src_data=src_data, tgt_data=tgt_data, src_cumlen=src_cumlen, tgt_cumlen=tgt_cumlen)

and the loading code respectively.
It will reduce the runtime of the code from ~80 seconds to ~4 seconds and avoid the pickle trouble.

Also file-size will be reduced by 40%

The numbers are for the train data that is used when running the script with default parameters.

We cannot use np.concatenate because the sequences have different lengths. What are for src_cumlen and tgt_cumlen.?

concatenate concatenates a list of arrays. Consequently we have a single 1D array in your case. src_cumlen and tgt_cumlen store the cumulative lengths of the non-concatenated arrays. Based on this you can split the single, long 1D array up into the list of arrays of varying length when loading the cached data.
This allows you to efficiently serialize and deserialize the list of sequences of varying lengths. It only requires 5% of the time needed by the current implementation (because pickle is very expensive) and saves 40% space.


.env is not sourced

.env is supposed to be sourced from the root directory.
In newer iterations of the template, the .env file has been moved to /dev/.env
This is a cleaner implementation

change directory for sourcing https://github.com/fredrikhgrelland/vagrant-hashistack/blob/master/ansible/install.yml#L134-L135


Add an option to instead install the Pogo app yourself and not use Tips at all

Most use TrollStore and have Persistence Helper injected into Tips

This doesn't install pogo yet and once we add that it will be optional


added setup (reopned)

🤦 really you just repeated the exact same thing as before

🤦 really you just repeated the exact same thing as before

nah just removed the apistuff thing lol

hold up aciddently deleted the repo imma make a new pr


Footer Address section shrink to next line on small display

Might need to adjust Column size for smaller display

Fixed on 7/20 Update.


remove user Max Hufnagel as an approver

@animatedmax please confirm removal from the Cloud Foundry github org, if no reaction is given in 2 weeks this PR will be merged in accordance with: https://github.com/cloudfoundry/community/blob/main/toc/ROLES.md?plain=1#L552-L557

Thanks, @beyhan.

@anita-flegg the two weeks are over and I approved so that you can merge.

Thanks, @beyhan


Add yaml option to podTemplate

In order to support any possible value in
Kubernetes Pod object, we can pass a yaml snippet.
Add resources section to container spec which
allows to provide limits and requests sections.
Example:
kubernetes:
  limits: "{hugepages-2Mi: 1024Mi, memory: 1024Mi}"

Signed-off-by: Andrii Holovchenko<EMAIL_ADDRESS>

please update README file too

please update README file too

README has been updated

README has been updated


Support multiple deployment suffixes (pl/sql -sql,prc,fnc,pck, etc)

What version of Flyway are you using?
flyway 4.0.3
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin, SBT plugin, ANT tasks)
Java, Gradle
What database are you using (type & version)?
Oracle 10.2
What operating system are you using?
System     : GNU/Linux
Kernel Ver : Linux 2.6.32-431.el6.x86_64
OS Release : Red Hat Enterprise Linux Server release 6.5 (Santiago)
Platform   : x86_64
What did you do?
Configure multiple suffixes, as in my workplace we use the pl / sql and have suffixes like sql, prc, pck, view, test, but currently only displays flyway .sql me.
I think I have the solution with a change prqueño develop, but I want to know if someone else needs.
The deployment command was:
flyway.migrate ()
What did you expect to see?
Someone else that needs development

Simply go with an empty suffix and you should already have the result you want.

Thanks you


[MRG] Added checking-functions for clarity and reusability.

This is a quick PR which moves some exception-handling into separate functions for clarity and reusability. It currently only affects @use_named_args() that I recently added.
I searched for the proper module to place these in and noticed that utils.py already has check_x_in_space() so I placed them in utils.py as well.
It can be tested with the following code:
from skopt.space import Real, Integer, Dimension
from skopt.utils import check_list_types

dim1 = Real(name='foo', low=0.0, high=1.0)
dim2 = Real(name='bar', low=0.0, high=1.0)
dim3 = Real(name='baz', low=0.0, high=1.0)

dimensions = [dim1, dim2, dim3, 'Hello']

check_list_types(dimensions, (Integer, Dimension))

This fails and prints:
ValueError: All elements in list must be instances of (<class 'skopt.space.space.Integer'>, <class 'skopt.space.space.Dimension'>), but found: ['Hello']

And the following code:
from skopt.space import Real
from skopt.utils import check_dimension_names

dim1 = Real(name='foo', low=0.0, high=1.0)
dim2 = Real(name=None, low=0.0, high=1.0)
dim3 = Real(name='baz', low=0.0, high=1.0)

dimensions = [dim1, dim2, dim3]

check_dimension_names(dimensions)

This fails and prints:
ValueError: All dimensions must have names, but found: [Real(low=0.0, high=1.0, prior='uniform', transform='identity')]

Note that PR #579 changes the semantics of dimension-names, so that all dimensions are now given default names if the user has not supplied a name, so you can argue this check is not really needed after that. But there is an ongoing discussion about naming dimensions, so I think it is wise to keep this check for now.

Is merged in #839
Thanks for your contribution.


Fix bug with self-review submit

TST=[2020-11-03 12:22:12 -0500] SVT=[FATAL] PNM=[] OIP=[] RID=[] CTR=[] UID=[] MSG=[[<IP_ADDRESS>] [c865cd96-589b-41ff-8f37-efda930993df]  NoMethodError (undefined method `get_reviewer' for #<SelfReviewResponseMap:0x00000007361af8>):   app/controllers/response_controller.rb:249:in `redirect'  ]

Fix in ctripoll branch


IntentDialog in SDKv4

IntentDialog class is not in SDK v4 is there any subtitution for this ?

Hi @parag-nikhal, I'm looking into this and will let you know what I find.

@parag-nikhal, there is an equivalent to IntentDialog being developed to be included in a future build. Unfortunately, at this time there is no substitution.


Sending a multiline message in Discord to the chat channel causes clients computers to crash

Describe the bug
I sent a multi-line message in the chat link channel in Discord it crashed the computer of the player on the server. (no bsod)
Reproduction steps

Go to your chat link channel
Write a message then press shift + enter to create a new line and continue your message
The clients on your server will have their computer shutdown.

Expected behaviour
For multiline messages to at least not crash clients if support for them is not added.

    Secret Rooms
    Server Tick
    Sit
    Smooth Scrolling Everywhere
    Sodium
    Starlight
    Suitably Stackable Stew
    Tech Reborn
    True Darkness
    Vanilla Hammers
    Winged
    Wolves With Armor
    Xaero’s Minimap Fair-play Edition
    YUNG’s API
    YUNG’s Better Caves

fdlink.json
Default options except for the keys.

Issue resolved as a misconfiguration of their computer. Closing since I was not able to reproduce and I fixed their issue. I will reopen if I find this I re-encounter this bug/exploit.


pre-trained model [ENPAR] ,link is invalid

The pre-trained model ENPAR(password: 2imb)   ,The corresponding link is invalid.
Can you share the link again?

Thank you for sharing


enhancement: wrappid-service file wrappidApp.ts file moved to service core

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

This issue is rsolved.


Sidebar h2 should be a span

Describe the Bug
https://github.com/withastro/starlight/blob/main/packages/starlight/components/SidebarSublist.astro#L38
That h2 should be a span
A few reasons:

these h2 are before the h1 in the document (shouldn't happen)
hx tags are meant to communicate the structure of the content, nav items aren't typically content
Sectioning roots (details, nav) do not require hx tags within (in case that was the reason h2 was used there)
This component is recursively nested, specifying the same content heading at each layer is further confusing

ily, ty

Yes, I think that checks out! Thanks for reporting. Would you be up for PRing a fix?

No worries. :)
No thank you, but only because it'll take just 2 seconds for someone who already has it set up

Fair! Marking this as a good first issue for someone to pick up.

hey guys i decided to pick this up and just submitted a PR for it. https://github.com/withastro/starlight/pull/810

PR was merged with the fix and released, thanks all! 💜


Navigator vs. NavigatorIOS please fix docs

Someone should update this doc; how is one supposed to know the difference between Navigator and NavigatorIOS?
http://facebook.github.io/react-native/docs/navigator.html#content
It should be noted Navigator uses JS animations and that you cannot pass props in the same way as NavigatorIOS.
Also explain exactly why they are two different components, this should be in bold on top of both their doc pages.

Aw man, sorry to hear that. Which animations are you having trouble with? When you say they don't feel native, is it because they feel janky or just don't seem like they are the correct animations?

Someone should update this doc; how is one supposed to know the difference between Navigator and NavigatorIOS?

Also explain exactly why they are two different components, this should be in bold on top of both their doc pages. I'm yet to know the logic behind having two different ones.

I believe that by reading the docs for each it is not too difficult to determine the differences, but agree that it might be useful to have a sentence at the top explaining how they relate to each other.
Notice how with NavigatorIOS there is no way to add your own custom navigation bar? It uses the native implementation for it. Navigator allows you to write your own component to use as a navigation bar. Additionally, NavigatorIOS adds support for swipe-back, but Navigator has many more transitions available (eg: you can swipe a view down to dismiss it with floatFromTop), and they can be customized as well!
Would a description like the above help to have in the documentation? Or would there need to be more information?
As for passProps, this is all done with renderScene I believe - you get the data from the route object that you pushed and then pass it in as a prop to the component that you render here.

I feel like there was some way to add custom stuff to a basic nav bar when I was doing a little true native dev- would this be at all worth adding or is the functionality too hobbled?

@jtremback - NavigatorIOS uses UINavigationController, check it out to see what options are exposed

I can set leftBarButtonItem from JS?

@jtremback - you can set the leftButtonIcon and leftButtonTitle, see #1230 for issue to improve parsing of the docs for this

Doc no good

+1 the documentation needs to be clearer. PS good work guys so far..

I was about to open a similar PR and found this, so :+1: @soheil
@brentvatne

Would a description like the above help to have in the documentation? Or would there need to be more information?

I would even go further and suggest adding a new page in the docs that compares between Navigator and NavigatorIOS.
It would also be helpful to include examples to use cases where it's best to use one and not the other.

I would even go further and suggest adding a new page in the docs that compares between Navigator and NavigatorIOS.

^ +1

Thanks for the :+1:'s folks, helps me to prioritize this

+1

＋1

+1, thanks!

+1 and thanks for the info in this issue, makes it much more clear :+1:

+1
The problem I am having is with giving a bar button item access to objects and variables local within the target scene.  Example:  Scene 1 goes to Scene 2, but I setup the "onRightButtonPress()" function in Scene 1.
I am using the REACT-NATIVE-SIDE-MENU module in Scene 2, and do not know how to have the Bar Button Item access this component...

@soheil - aw man, sorry to hear that. Which animations are you having trouble with? When you say they don't feel native, is it because they feel janky or just don't seem like they are the correct animations?

@brentvatne The animation of Navigator feels really janky and the animation is not identical to the NavigatorIOS. The interpolator of Navigator module should be "RightToLeft" if I remember correctly.

sorry I stopped using react native
On Sun, Jun 7, 2015 at 8:31 PM, fxwan<EMAIL_ADDRESS>wrote:

@soheil https://github.com/soheil - aw man, sorry to hear that. Which
animations are you having trouble with? When you say they don't feel
native, is it because they feel janky or just don't seem like they are the
correct animations?
@brentvatne https://github.com/brentvatne The animation of Navigator
feels really janky and the animation is not identical to the NavigatorIOS.
The interpolator of Navigator module should be "RightToLeft" if I remember
correctly.
—
Reply to this email directly or view it on GitHub
https://github.com/facebook/react-native/issues/1219#issuecomment-109849728
.

I haven't had much time for this recently but should get around to fixing up a bunch of docs this week. Additionally, to better reflect Facebook's priorities the idea is to move NavigatorIOS to an OSSLibraries folder and outside of the internal sync process which will allow us (the OSS community) to iterate on it more quickly.

From what I understand, the two drawbacks Navigator has are swipe-to-go-back and JS driven animations - while there are a number of other benefits. Any view 'controller' that iOS provides can very well be in JS because it is just logic. The view continues to remain native, but the control is now driven from JS. This makes it more customisable.
Fortunately even the two drawbacks as mentioned can theoretically be fixed. Apple provides a EdgeSwipe UIGestureRecognizer that can be used/enabled on Navigator, to get fluid swipe to go back animation. Also JS driven animations will definitely get better as the RN team is working/exploring it very deeply.

+1

Done: [https://facebook.github.io/react-native/docs/navigator-comparison.html](Navigator Comparison)
(just pushed, should be up within a few minutes)

cool! links broken though.  ;)

That's github being too clever. Try this: https://facebook.github.io/react-native/docs/navigator-comparison.html

This is very nice, thanks @brentvatne!

@paramaggarwal - if we can come up with a name that communicates that these libraries are considered not part of the core and not actively maintained by the core team, that would be nice :smile:
let's get them moved into an OSSLibraries directory first, and we can revisit when that's done!

@brentvatne amazing work - thanks!

separate sidebar section called Third Party or Libraries

@paramaggarwal I agree - I think people should know which component is more supported.

+1 ,thanks


[WIP] chore(templates): Move common things to angular-templates-runtime

In addition to #1228
This creates a new package named angular-templates-runtime.
@Urigo why do we keep cheerio? I couldn't find any usage of that.

because it was nicer to handle dom that way when scanning.
but maybe there were a lot of iterations since then...
@DAB0mB what do you think about removing cheerio?

@Urigo There is no need in cheerio, as you said it is used to manipulate the DOM but we don't use it anymore


Daily active cases are showing negative in graph

Daily active cases shown for state is negative for some dates, most probably due to wrong formula being assigned (daily positive- daily recovered ??) instead of total postive - total recovered till that day

@riteshkr54 Could you please share a screenshot of it?

If you want to see total positive - total recovered, click on the Cumulative tab. Daily shows new positive - new recovered.

If you want to see total positive - total recovered, click on the Cumulative tab. Daily shows new positive - new recovered.

In case recovered cases and deceased cases are more than the confirmed cases on that particular day the graph will go in negative

Refer to https://github.com/covid19india/covid19india-react/issues/2038#issuecomment-641962963


Updated to Companion v3 Compatability

Will this plugin be able updated to be compatible with Companion v3? Right now, it states this plugin is not compatible and there are obvious bugs within the functionality when using this plugin with Companion v3.

Hi, Matthew.  Thanks for reaching out.  I am planning on porting this module to Companion v3 in the very near future.  However, currently there are no functionality issues with running this module in its current state on Companion v3.  I run Companion v3.11 and have no problems controlling  nb Studio.
One thing to note is that any source button that is in the presets folder or has been added to a button page will not show the name of the source you set until Livestream transmits a source config refresh. You'll notice this issue after setting up buttons to control Livestream and then restarting the system running companion.   To force Livestream to update source names in companion you can do the following: In Livestream under the INPUT tab, click a source and drag to rearrange the order of inputs in the list and then immediately drag the list back to its original order. . Changing the order of the inputs in that list will force the names to be sent to Companion. This is a common issue that can happen and cause the module to appear like it's malfunctioning.
Can you elaborate on what issues you are experiencing and I will see if I help you out?


Consider upstreaming ModInverse trait into num-traits crate

Currently the rsa crate from RustCrypto uses this forks BigUint so it can perform the needed operations when calculating values and the like. Due to this, yubikey-piv.rs is currently needing to import both this crate and the original, because some X509 certificates use BigUints as well.
Is there anything preventing the ModInverse trait and its functions from being upstreamed via a PR to num-traits?

There is more in this crate (support for memory zeroing, smallvec backend) and last time I attempted to upstream all features it was both slow and not fully successfull, though the u64  limbs eventually made it.
There is also the need to allow minimal work involved copy from and to the internal memory of the numbers, which directly opposes the api design rules of the original crate.
So I fear that for rsa it is quite unlikely that we will be able to switch any time soon. I honestly would try to switch to this crate if you wang to reduce dependencies and try to use the shared num traits for interfaces if possible.

Using the shared traits worked out pretty well, at the cost of once allocation which is negligible. Thanks for the pointer. Do you want me to close this issue?


Type here your code refactor ideas

Short Description
In this task we gather ideas for code refactor. Add them as comments.

I think that it will be good idea to create custom component for IconBlock with Tooltip

Also I think about creating something like template for JiraBucketInput, ToDoListInput and LinkListInput

Maybe some unit tests for react?

We need to check the components, whether it is possible to simplify / standardize something in terms of styles


EPIC: ICS

[x] https://github.com/rollchains/spawn/pull/129
[x] https://github.com/rollchains/spawn/issues/127
[x] https://github.com/rollchains/spawn/issues/112
[ ] https://github.com/rollchains/spawn/pull/158
[x] https://github.com/rollchains/spawn/pull/159
[x] https://github.com/rollchains/spawn/pull/133
[x] https://github.com/rollchains/spawn/pull/135
[x] https://github.com/rollchains/spawn/pull/143
[ ] https://github.com/rollchains/spawn/pull/148
[ ] https://github.com/rollchains/spawn/pull/149
[x] https://github.com/rollchains/spawn/pull/150
[x] https://github.com/rollchains/spawn/pull/164

completed ICS integration, coordinating with Informal, testing, and the first ICS consumer testnet build with spawn k launched via Hypha. All is good.


Requesting enhance better solution for JSX children

Enter your suggestions in details:
Both JSX & Preact plugins pass children params as DivElement, the idea is great 'cause dev could avoid doing manually. This is, however, not very flexible as it could break layout. I have a different approach of using function. The idea is passing a function call insertContent() that allows dev to set the right Element type, attributes, and even do prepend or append to the content.
export default ({ insertContent }) => (
   {insertContent(<>
Para 1

Para 2
<>, ['article', {className: 'awesome'}),
Para N
)}
)

I'm doing it PR, if you don't mind.

In addition to children, there's the content variable with the HTML string:
export default function ({ content }) {
  const children =

}

So I shouldn't do the insertContent() right? I kinda want to avoid having dangerouslySetInnerHTML for the end side. What if I have more dangerouslySetInnerHTML that actually need my attention more than children. I like the children property idea, I just don't feel comfortable with how fixation it

I think a different template in this case would be better than try to solve this problem.


prevent double stack trace 'fixes'

please god let this be the last one of these. closes #3371
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

[x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
[x] This message body should clearly illustrate what problems it solves.
[x] Ideally, include a test that fails without this PR but passes with it.

Tests

[x] Run the tests with pnpm test and lint the project with pnpm lint and pnpm check

Changesets

[x] If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpm changeset and following the prompts. All changesets should be patch until SvelteKit 1.0

alright, whatever gremlins were in the system appear to have left us alone. think this is ready


NPNProtocols, why?

When using the automated settings, I ended up with a configuration that sets NPNProtocols to only 'http/1.1'. I traced that down to https://git.daplie.com/Daplie/localhost.daplie.com-certificates/blob/master/lib/index.js#L41, and I wonder why that is there? Why not simply omit it, and let Node decide what the smart default is?
Due to this setting, spdy can't autonegotiate HTTP/2, and removing it makes things work fine.

Hey Wout,
You're right. That was a mistake. Would you mind submitting a PR and I'll
republish?
It's GitLab hosted, but you should be able to sign in with GitHub to fork
and PR without a problem.
AJ ONeal
<317-426-6525>e<EMAIL_ADDRESS>w. https://daplie.com/
On Thu, Jan 12, 2017 at 3:59 PM, Wout Mertens<EMAIL_ADDRESS>wrote:

When using the automated settings, I ended up with a configuration that
sets NPNProtocols to only 'http/1.1'. I traced that down to
https://git.daplie.com/Daplie/localhost.daplie.com-certifica
tes/blob/master/lib/index.js#L41, and I wonder why that is there? Why not
simply omit it, and let Node decide what the smart default is?
Due to this setting, spdy can't autonegotiate HTTP/2, and removing it
makes things work fine.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Daplie/node-greenlock/issues/66, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAHfz8WCGBJ2u2Dzf7kGf-yOqNIQmnw6ks5rRrBTgaJpZM4LiVpB
.

Opened on https://git.daplie.com/Daplie/node-greenlock/issues/69


Update to 3.7.3

Checklist

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

@conda-forge-admin, please rerender

I guess gnutls needs to be updated too as it is under export run test.

Closing since more recent version pushed


IOS14 permissions description in readme

IOS 14 introduces local network privacy, this requires an app developer to specify the services they want to scan for and why.
This PR adds a description / example on how to add this to prevent the library from crashing / not returning any services.
For context:  https://developer.apple.com/videos/play/wwdc2020/10110/

Thanks!


Disable swagger validation while it is not fixed in upstream

While go-swagger/go-swagger#1614 is not fully fixed

Codecov Report

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

@@           Coverage Diff           @@
##           master    #4423   +/-   ##
=======================================
  Coverage   20.06%   20.06%
=======================================
  Files         153      153
  Lines       30769    30769
=======================================
  Hits         6174     6174
  Misses      23652    23652
  Partials      943      943

Continue to review full report at Codecov.

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


OpenApoc

Project link: https://github.com/OpenApoc/OpenApoc
Project license: MIT
Does it work on 64-bit only Linux: MAYBE
Is source code available?: YES
Is source code stored in Git?: YES
List of Steam AppIds of supported games:

https://steamdb.info/app/7660/

Additional information

Completed


Fix changelog whitespace and update API docs

I noticed that the whitespace has broken on the live site again so this PR adds the missing whitespace back to fix the issue as per #95.
Did some misc. changes to the API docs:

Added alert severity values to fix #90
Fix rounding in the API response
Fix rounding in the TimeMachine response

Thanks for doing this! One of these days I'll get the formatting correct on the first try, but apparently today isn't that day


New extension: Event Functions

Description
Create and call functions inside events  that can make blocks of events reusable
How to use the extension
Define a function direct on the events as a condition and call it as an action when needed. The block of actions and conditions inside the event function will be called only once and will let the developer reuse the block of events as much as needed.
Checklist

[X] I've followed all of the best practices.
[X] I confirm that this extension can be integrated to this GitHub repository, distributed and MIT licensed.

Example
https://www.minzaogames.com/gdev/EventFunctionsExample.zip
Extension file
https://www.minzaogames.com/gdev/EventFunctions.json.zip

Fixed


Low priority resource paths: CareerMap, CareerWin...

Added more low priority resource paths. These paths were taking >100 ms to load on my PC, but loading them later makes the loading screen run more smoothly.

The goal of this merge was to make the loading screen less jittery.
I experimented with splitting up Puzzle.tscn which reduced the jitter of Puzzle.tscn from 170 ms to 120 ms, but it makes the design much uglier to me. Maybe there's a more elegant way to extract this which we can consider some day -- something along the lines of a raw bare-bones puzzle scene with 'decorators' around it, or something like that. Each decorator could be its own scene, and they could be modular.


[QUESTION] Retrieving all AJV validation errors

Hi,
I was wondering, is there any way to retrieve all the validation errors when using decorators such as @BodyParams? I'd like to use a global exception handler to format and show all the validation errors, but it only seems to generate an exception with the first validation error it finds. Any idea is much appreciated.
Thank you,
Daniel

Solved it:
@ServerSettings({
...
    ajv: {
        options: {
            allErrors: true
        }
    },
...
})


Help to transpile a parameterized circuit with more than 3 controls

Environment

Qiskit version: 1.2.1
Python version: 3.10.14
Operating system: Ubuntu 20.04.6 LTS (WSL2)

What is happening?
I can't transpile a parameterized circuit with more than 3 controls
How can we reproduce the issue?
from qiskit.compiler import transpile
from qiskit.circuit import QuantumCircuit, ParameterVector

p = ParameterVector('p',4)

pqc = QuantumCircuit(4)
for i in range(4):
    pqc.ry(p[i],i)

pqc = pqc.control(4,0,annotated=True)
pqc = transpile(pqc, basis_gates=['u1', 'u2', 'u3', 'cx'], optimization_level=3)

What should happen?
I got the error:
QiskitError: 'Cannot synthesize MCRY with unbound parameter: p[0].'
Any suggestions?
No response

Apparently, it's because they haven't implemented the q_ancillae in add_control() method of qiskit.circuit.add_control.py.
def control(
    operation: Gate | ControlledGate,
    num_ctrl_qubits: int | None = 1,
    label: str | None = None,
    ctrl_state: str | int | None = None,
) -> ControlledGate:
    """Return controlled version of gate using controlled rotations. This function
    first checks the name of the operation to see if it knows of a method from which
    to generate a controlled version. Currently, these are ``x``, ``rx``, ``ry``, and ``rz``.
    If a method is not directly known, it calls the unroller to convert to `u1`, `u3`,
    and `cx` gates.

    Args:
        operation: The gate used to create the ControlledGate.
        num_ctrl_qubits: The number of controls to add to gate (default=1).
        label: An optional gate label.
        ctrl_state: The control state in decimal or as
            a bitstring (e.g. '111'). If specified as a bitstring the length
            must equal num_ctrl_qubits, MSB on left. If None, use
            2**num_ctrl_qubits-1.

    Returns:
        Controlled version of gate.

    Raises:
        CircuitError: gate contains non-gate in definition
    """
    from math import pi

    # pylint: disable=cyclic-import
    from qiskit.circuit import controlledgate

    ctrl_state = _ctrl_state_to_int(ctrl_state, num_ctrl_qubits)

    q_control = QuantumRegister(num_ctrl_qubits, name="control")
    q_target = QuantumRegister(operation.num_qubits, name="target")
    q_ancillae = None  # TODO: add

Which causes the q_ancillae to be [] when mcry is called. Since it's empty, the length of it is 0, which means that
if mode is None:
        # if enough ancillary qubits are provided, use the 'v-chain' method
        additional_vchain = MCXGate.get_num_ancilla_qubits(len(control_qubits), "v-chain")
        if len(ancillary_qubits) >= additional_vchain:
            mode = "basic"
        else:
            mode = "noancilla"

Will always choose "noancilla" given MCXGate.get_num_ancilla_qubits(4, "v-chain") will evaluate to 2. So, the method uses "noancilla" and because you have 4 control qubits:
elif mode == "noancilla":
        n_c = len(control_qubits)
        if n_c == 1:  # cu
            _apply_cu(
                self, theta, 0, 0, control_qubits[0], target_qubit, use_basis_gates=use_basis_gates
            )
        elif n_c < 4:
            theta_step = theta * (1 / (2 ** (n_c - 1)))
            _apply_mcu_graycode(
                self,
                theta_step,
                0,
                0,
                control_qubits,
                target_qubit,
                use_basis_gates=use_basis_gates,
            )
        else:
            if isinstance(theta, ParameterExpression):
                raise QiskitError(f"Cannot synthesize MCRY with unbound parameter: {theta}.")

            cgate = _mcsu2_real_diagonal(
                RYGate(theta).to_matrix(),
                num_controls=len(control_qubits),
                use_basis_gates=use_basis_gates,
            )
            self.compose(cgate, control_qubits + [target_qubit], inplace=True)

It will go to the else block, and since you're using a ParameterExpression it raises the error. I think you have to wait until they finish adding the TODO part.

Indeed, we currently do not have methods to transpile parameterized MCRY gates with unbound parameters, regardless of the number of ancillas, @Cryoris and @ShellyGarion please correct me if I am wrong. For instance, the function _mcsu2_real_diagonal, used in the code snippet above, requires all of the parameters to be floats and does not work with general parameter expressions.
What you can do it to call assign_parameters prior to transpilation (this was recently added in #12869), e.g. the following code does work:
from qiskit.compiler import transpile
from qiskit.circuit import QuantumCircuit, ParameterVector

p = ParameterVector('p',4)

pqc = QuantumCircuit(4)
for i in range(4):
    pqc.ry(p[i],i)

pqc = pqc.control(4,0,annotated=True)
pqc = pqc.assign_parameters([1, 2, 3, 4])  # <------ BINDING PARAMETERS
pqc = transpile(pqc, basis_gates=['u1', 'u2', 'u3', 'cx'], optimization_level=3)

Also note that by default assign_parameters returns a new circuits, but you can also (alternatively) use
pqc.assign_parameters([1, 2, 3, 4], inplace=True)

@Augusto12 does this resolve the problem in your workflow? 🙂

No. I'm using parameterized circuits in a machine learning workflow with the lib qiskit_machine_learning. When I put the inputs, the pipeline calls some transpilation tasks that break the flow.

Could you post a minimally reproducing example of what you're doing? It might be something that can be resolved in the machine learning package itself 🙂 You could open an issue there directly or post it here and we might transfer it.

Sure!
import numpy as np
from qiskit.primitives import Sampler
from qiskit.circuit import QuantumCircuit, ParameterVector
from qiskit.circuit.library import RealAmplitudes
from qiskit_machine_learning.algorithms.classifiers import VQC
from qiskit_algorithms.optimizers import GradientDescent

CTRL_QUBITS = 3
DATA_QUBITS = 4

total_qubits = CTRL_QUBITS + DATA_QUBITS

p = ParameterVector('p',4)

feature_map = QuantumCircuit(DATA_QUBITS)
for i in range(DATA_QUBITS):
    feature_map.ry(p[i],i)

feature_map = feature_map.control(CTRL_QUBITS,0,annotated=True)
#feature_map = feature_map.decompose(reps=3)

ansatz = QuantumCircuit(total_qubits)
ansatz.compose(RealAmplitudes(num_qubits=DATA_QUBITS, reps=3),qubits=range(CTRL_QUBITS,total_qubits),inplace=True)

vqc = VQC(
        sampler=Sampler(),
        feature_map=feature_map,
        ansatz=ansatz,
        optimizer=GradientDescent(maxiter=200)
    )

fake_feature_data = np.array([[1,2,3,4],[1,1,2,2]])
fake_label_data = np.array([1,2])

vqc.fit(fake_feature_data, fake_label_data)

If you uncomment the line #feature_map = feature_map.decompose(reps=3), it works for CTRL_QUBITS <= 3. If you set CTRL_QUBITS >= 4, with or without pre-transpilation, it doesn't work. I think that this issue is related to the transpilation of annotated operations.

Ok I see, the problem here is that VQC uses the SamplerQNN internally, which computes the gradients with the parameter-shift rule. To apply that gradient rule, qiskit-algorithms tries to express the circuit in single-qubit Pauli rotations, which it knows how to deal with. But we cannot unroll the circuit to single-qubit Paulis since the synthesis algorithm only works for fixed parameters.
There's two possible resolutions to that

(easy) Use a finite difference gradient, which doesn't care about how the circuit is implemented. This option is currently not exposed in VQC, but could be added. Alternatively you could build your own classifier and use SamplerQNN, which allows to select the gradient.
(better) Extend the parameter shift rule to handle controlled Paulis. If my brain didn't break on a Monday morning, controlled Pauli rotations should have the same two distinct eigenvalues as the Pauli rotations, so the standard parameter-shift rule still applies. We could adapt the ParameterShiftGradient classes (both for sampler and estimator) to not unroll controlled Paulis.

Neither of those things are handled in this repository, depending on which we would like to pursue, we should open an issue in qiskit-machine-learning (for 1.) or in qiskit-algorithms (for 2.).

As a workaround you could use auxiliary qubits to implement the n-controlled, parameterized RY, for example something like
from qiskit.circuit import Parameter
from qiskit.circuit.library import RYGate, MCMTVChain

y = Parameter("y")
mcry = MCMTVChain(RYGate(y), num_ctrl_qubits, 1)

This circuit implements the controlled RY on the top num_ctrl_qubits + 1 qubits and uses num_ctrl_qubits - 1 additional auxiliary qubits.


wrong styling of codeblocks at https://docs.mautic.org/en/home/contributing

BUG
Hello,
something appears to go wrong with the markdown to html conversion of the codeblocks parts of the contributing page.
When visiting the contributing page the links in the table of contents do not work and upon visiting the sections in firefox 80.0 (Mac OSX 10.14.2) one does not see the arrows indicating that this would be collapsible parts, while chrome (85.0.4183.83) shows them but also is unable to render the markdown as can be seen in the attached screenshot.
Behavior in firefox:

additionally, this is also not working at the very bottom of the page for markdown syntax

additionally - it would be great if mautic would have an issue template so that new users know which information to put into a new issue. Is this already planned, can I contribute somewhere to the template?

Hey @maikroservice :)
I for myself am using Chrome 84.0.4147.135 and MacOS 10.15.4 and hadn't had any markdown rendering issues yet. I also just tested on Firefox 80.0 and had no problems either.
Maybe we can get some dev insights on this, thus I labeled the post with "help wanted".
Furthermore, we have a bug-reporting template on the mautic/mautic repository. With some smaller changes I think we could use that one for this repo aswell! Thats a pretty good suggestion! :)

This is the "bug-reporting" template I mentioned:
Bug Description
The more details the better...

Q
A

Mautic version

PHP version

Browser

Steps to reproduce

Log errors

@oltmanns-leuchtfeuer fascinating, I tried it again after rebooting and it still does not work - I also tested Safari 12.0.2 now and it does not render the markdown.

Will close for now, If more people encounter this error we will open it again.


Rootston crash on when client killed with Layer Shell popup

To reproduce: Open a layer shell popup, then kill the client with ctrl+C. Rootston crashes because:
First, it destroys the parent layer surface:
Thread 1 "rootston" hit Breakpoint 1, 0x00007ffff7915f20 in free () from /home/wmww/code/wlroots/build/rootston/../../../../../../lib64/libc.so.6
#0  0x00007ffff7915f20 in free () at /home/wmww/code/wlroots/build/rootston/../../../../../../lib64/libc.so.6
#1  0x0000555555565049 in handle_destroy (listener=0x55555589c618, data=0x5555558bc4e0) at ../rootston/layer_shell.c:336
#2  0x00007ffff7f96ec6 in wlr_signal_emit_safe (signal=0x5555558bc600, data=0x5555558bc4e0) at ../util/signal.c:29
#3  0x00007ffff7f810d2 in layer_surface_destroy (surface=0x5555558bc4e0) at ../types/wlr_layer_shell_v1.c:182
#4  0x00007ffff7f81609 in handle_surface_destroyed (listener=0x5555558bc5e8, data=0x555555918ff0) at ../types/wlr_layer_shell_v1.c:319
#5  0x00007ffff7f96ec6 in wlr_signal_emit_safe (signal=0x5555559192b0, data=0x555555918ff0) at ../util/signal.c:29
#6  0x00007ffff7f8ee59 in   (resource=0x555555919310) at ../types/wlr_surface.c:584
#7  0x00007ffff7f0ec7f in destroy_resource (element=0x555555919310, data=<optimized out>, flags=0) at src/wayland-server.c:688
#8  0x00007ffff7f13052 in for_each_helper (func=func@entry=0x7ffff7f0ec10 <destroy_resource>, data=data@entry=0x7fffffffe314, entries=<optimized out>, entries=<optimized out>) at src/wayland-util.c:372
#9  0x00007ffff7f1355f in wl_map_for_each (map=0x55555591a7a0, func=0x7ffff7f0ec10 <destroy_resource>, data=0x7fffffffe314) at src/wayland-util.c:385
#10 0x00007ffff7f0edff in wl_client_destroy (client=0x55555591a770) at src/wayland-server.c:847
#11 0x00007ffff7f0eedb in destroy_client_with_error (reason=<optimized out>, client=<optimized out>) at src/wayland-server.c:307
#12 0x00007ffff7f0eedb in wl_client_connection_data (fd=<optimized out>, mask=<optimized out>, data=0x55555591a770) at src/wayland-server.c:330
#13 0x00007ffff7f10702 in wl_event_loop_dispatch (loop=0x555555582f10, timeout=timeout@entry=-1) at src/event-loop.c:641
#14 0x00007ffff7f0f2ac in wl_display_run (display=0x555555585700) at src/wayland-server.c:1260
#15 0x0000555555565e10 in main (argc=1, argv=0x7fffffffe6d8) at ../rootston/main.c:74
(gdb)  frame 1
#1  0x0000555555565049 in handle_destroy (listener=0x55555589c618, data=0x5555558bc4e0) at ../rootston/layer_shell.c:336
warning: Source file is more recent than executable.
336		free(layer);
(gdb) p layer
$1 = (struct roots_layer_surface *) 0x55555589c600

Then, it destroys the popup. popup_handle_unmap uses the freed parent data, which causes a crash:
#0  0x00007ffff7f8535b in wlr_output_layout_get (layout=0x735f6d6f74746f62, reference=0x555555880ea0) at ../types/wlr_output_layout.c:230
#1  0x0000555555567cf2 in output_damage_whole_local_surface (output=0x55555587c860, surface=0x5555559e0f70, ox=123, oy=35, rotation=0) at ../rootston/output.c:647
#2  0x00005555555652a6 in popup_handle_unmap (listener=0x5555559e1408, data=0x5555559e1290) at ../rootston/layer_shell.c:377
#3  0x00007ffff7f96ec6 in wlr_signal_emit_safe (signal=0x5555559e1398, data=0x5555559e1290) at ../util/signal.c:29
#4  0x00007ffff7f75ef9 in unmap_xdg_surface (surface=0x5555559e1290) at ../types/xdg_shell/wlr_xdg_surface.c:34
#5  0x00007ffff7f76e38 in destroy_xdg_surface (surface=0x5555559e1290) at ../types/xdg_shell/wlr_xdg_surface.c:465
#6  0x00007ffff7f758d0 in xdg_client_handle_resource_destroy (resource=0x5555559180c0) at ../types/xdg_shell/wlr_xdg_shell.c:71
#7  0x00007ffff7f0ec7f in destroy_resource (element=0x5555559180c0, data=<optimized out>, flags=0) at src/wayland-server.c:688
#8  0x00007ffff7f13052 in for_each_helper (func=func@entry=0x7ffff7f0ec10 <destroy_resource>, data=data@entry=0x7fffffffe314, entries=<optimized out>, entries=<optimized out>) at src/wayland-util.c:372
#9  0x00007ffff7f1355f in wl_map_for_each (map=0x55555591a7a0, func=0x7ffff7f0ec10 <destroy_resource>, data=0x7fffffffe314) at src/wayland-util.c:385
#10 0x00007ffff7f0edff in wl_client_destroy (client=0x55555591a770) at src/wayland-server.c:847
#11 0x00007ffff7f0eedb in destroy_client_with_error (reason=<optimized out>, client=<optimized out>) at src/wayland-server.c:307
#12 0x00007ffff7f0eedb in wl_client_connection_data (fd=<optimized out>, mask=<optimized out>, data=0x55555591a770) at src/wayland-server.c:330
#13 0x00007ffff7f10702 in wl_event_loop_dispatch (loop=0x555555582f10, timeout=timeout@entry=-1) at src/event-loop.c:641
#14 0x00007ffff7f0f2ac in wl_display_run (display=0x555555585700) at src/wayland-server.c:1260
#15 0x0000555555565e10 in main (argc=1, argv=0x7fffffffe6d8) at ../rootston/main.c:74

(The top few stack frames are always a bit different, depending on what is done with the memory post-free)

I just tried to reproduce with the layer-shell example, and everything was fine. There must be more factors then just killing a client with a Layer Shell popup. I'll investigate when I have time.

@wmww Can close as rootston is archived?

Just verified it doesn't effect Wayfire (the only other wlroots compositor I know that supports layer shell popups), so it was either a rootston-specific issue or has been fixed.


Snapdragon qshell does not work

After starting the flight stack on Snapdragon Flight, the qshell to interact with the DSP fails to launch
pxh> qshell
Command 'qshell' failed, returned 1

@bharath374 I think you use qshell in pxh to actually do a command on the DSP side.
So you would do: qshell gps status and check the output with mini-dm


mapDispatchToProps can't recognize anonymous function

Hi guys, I've encountered one very tricky issue and I wasn't able to find any working solution so far.
I will try to describe it as clearly as possible.
I have a file, let's say actions.js which contains some action creators. Two of them are important:
export function actionCreator_A (param) {
	return {
		type: ACTION_TYPE_A,
		payload: {param},
	}
}
export const actionCreator_B = (param) => {
	return {
		type: ACTION_TYPE_B,
		payload: {param},
	}
}

As you can see, one is ES5 function and the other is ES6 anonymous function. Then I have a component, which is connected to store.
@connect(
    (state) => ({
        ...some state selectors,
    }),
    {actionCreator_A, actionCreator_B},
)
export default class MyComponent extends PureComponent {
    	onClick = () => {
		const {actionCreator_A, actionCreator_B} = this.props
                actionCreator_A(123)
                actionCreator_B(456)
	}
        ...
}

With this setup, inside the onClick function, the actionCreator_A is properly bound action creator, I can call it and the action is dispatched. But actionCreator_B is undefined!
Uncaught TypeError: actionCreator_B is not a function appears.
When I change the connect setup to this...
const mapDispatchToProps = (dispatch) => {
	return {
		actions: bindActionCreators({
			actionCreator_A,
			actionCreator_B,
		}, dispatch),
	}
}

@connect(
    (state) => ({
        ...some state selectors,
    }),
    mapDispatchToProps,
)

...everything works fine and both actions are properly dispatched. Also when I change actionCreator_B to ES5 function, it works as well.
What is really weird is that I use both these action creators in different component and it works fine there.
Am I missing something or is it a bug in the library?

Are you defining those functions in the same file as the connect / mapDispatch usage?  If so, are you defining them after the mapDispatch declaration?  The function keyword gets hoisted to the top of the file, but const and let-declared variables don't exist until the line they're declared on.
That said, your comment that directly using bindActionCreators inside of mapDispatch works fine seems confusing.
I would need to see all of your code together to be able to give a more definitive answer.  Overall, though, my guess is that you're having issues with variable scoping, and that this is not an actual issue with connect at all.

Action creators are defined in a separate file.
I know that this issue is very specific and it's hard to even guess where the problem could be, but I can't post here entire codebase of the project. Moreover, I wasn't able to reproduce the issue in different project. It doesn't even happen in the same project. I always define all functions as constants and use  mapDispatchToProps as object with shorthand notation. And this confuses me the most: I have components A and B, where A is a parent of B. It works fine in A, doesn't work in B.

My guess is that this has to do with the fact an anonymous function is not hoisted like a normal function, combined with cyclical references between your files. So it's undefined when the component js file is first executed, but is defined when it's instantiated.

@jimbolla That seems to be the most natural solution, but what about bindActionCreators ? It would receives the same undefined as connect.

Something about when the code is executed, I would guess?

By the time mapDispatchToProps function is invoked, the references have been updated. Basically...

import { A } from 'somewhere';

var obj = { A }; // A is evaluated once immediately.

var func = () => ({ A }); // A is live reference and will be evaluated every time.

I'm fairly confident this is a js build issue and not related to redux, so closing this out.


sametkayikci61 Action and Func Delegates in C#

sametkayikci61  Action and Func Delegates in C#  PR request.

Closed

Closed


Ability to pin cached files

When a program knows it's keeping a file alive (e.g., it has an mmap-ed view of that file in memory), it doesn't make sense to evict it. We should be able to mark them as pinned, and let the replacement strategy do something useful (e.g., move them to the back of the list instead of deleting them), while attempting to obey the cache capacity.
Open question: do we want to do this purely in-memory, or shall we use (shared) file locks to denote pins?

It probably makes sense to have a pin predicate on File objects.


374 make predictor_values an argument in GLMPrediction

closes #374

@dylanhmorris ready for re-review!
The recent commit includes mandatory changes plus docstring fix and change to the sample return object from a dict to a collection of SampledValues


Update sbt to 1.6.2 in series/0.3

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

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

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

Uh, weird MatchError.  Let's see what steward rebasing this does.


'string ' to 'int' conversion results in a 'int|error' type

Description:
var intResult = strVal;
It returns a 'int|error' type. Not an 'int' type .As it is returning 'int|error' type ,we are unable to perform any integer operations
Steps to reproduce:
Affected Versions:
OS, DB, other environment details and versions:
Related Issues (optional):

Suggested Labels (optional):

Suggested Assignees (optional):

Converting a string to int is an unsafe conversion. Hence it returns a union type of int and error('int|error'). Meaning your 'intResult' variable can be either an int or an error. To evaluate the int value you should use a 'match' where you have to handle both int and error cases.
    var intResult = <int>strVal;
    match intResult {
        int value => io:println(value);
        error err => io:println("error: " + err.message);
    }

Refer: https://ballerina.io/learn/by-example/type-conversion.html

Yh! I handled that 'match' too .But still  it outputs the same error.

Within the match statement you can see the variable "val". That has the casted integer value. "intResult" does not have the value of the casted integer. "intResult" is an union type.
Here are your options
Option 1 (Handle both int and error cases - https://ballerina.io/learn/by-example/match.html) :
var intResult = <int>strVal;
match intResult {
    int val => {
        int l = val;
        time:Time time1 = time:currentTime();
        int sec = time1.second();
        //.....(rest of the code)
    }
    error err => {
        io:println("error: " + err.message);
    }
}

Option 2 (If an error occurs, use a default value - https://ballerina.io/learn/by-example/match-expression.html):
int val = <int>strVal but { error e => -1 };

Option3 (Ignore the error completely. This is ideal on situations where you are so sure that an error would not occur - https://ballerina.io/learn/by-example/check.html)
int val = check <int>strVal;

Sorted out.Thanks for the response


Parser takes table alias as DB2 reserved keyword

Parsing this simple query fails:
SELECT cs.* FROM customer cs

by saying: JSQLParserException: Encountered unexpected token: "cs" <K_ISOLATION>, as does it for al the other DB2 reserved keywords for isolation (cs, ur, rs, rr): https://www.ibm.com/docs/en/db2-for-zos/11?topic=locks-choosing-isolation-option
Couldn't find a feature toggle for disabling this DB2 syntax?

Greetings.
Please try latest JSQLParser 4.6 Snapshot as this challenge has been resolved.
You can try it online here.

Nice, has this SNAPSHOT somewhere been published?

👍


Domain for Documentation seems down

All the link on the main page don't work. I was hoping to look at the documentation, http://www.jaxon-php.org/en/docs/, but you get a 404.
I'm a long time xajax user, finally getting around to trying out Jaxon.

Hi,
Welcome in the Jaxon community. I hope you are going to enjoy using our library.
The website is back online. Sorry for the inconvenience.


Uninstall trivy-operator, job tasks are not cleaned up

What steps did you take and what happened:
After helm uninstall trivy-operator -n trivy-system is executed, related tasks are not cleaned up

[A clear and concise description of what the bug is, and what commands you ran.]
What did you expect to happen:
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Environment:

Trivy-Operator version (use trivy-operator version):
Kubernetes version (use kubectl version):
OS (macOS 10.15, Windows 10, Ubuntu 19.10 etc):

@fengshunli reports should not be cleanup up as they are produce on workload namespaces , it is design to act like these

You can control the task of cleaning up through ttlSecondsAfterFinished

You can control the task of cleaning up through ttlSecondsAfterFinished

yes, you are right , maybe ttlSecondsAfterFinished need to have high value so it will not be cleaned up before operator complete report  processing

@fengshunli you want to pick it up ?

I want to transform the []string of prometheus.MustNewConstMetric into []struct, is this needed again? @chen-keinan

I want to transform the []string of prometheus.MustNewConstMetric into []struct, is this needed again? @chen-keinan

Not sure regarding the context , is it related to this issue ?

No, the modification in the collector mentioned earlier


Date select is giving 1 day previous date

selected date is 16 but the value printed is 15
Check the date selected and the date displayed. how to resolve this?

The raw date that is printed out is the UTC date.   Once it's converted to your timezone, it is a different day.

The datepicker from angular-ui is picking with your local (browser) time.
You have to know what your desired output is and do some pre-processing and/or postprocessing...
Not sure if angular-ui's datepicker has any built-in date-options to pick in UTC time, I would like to have that.

@eugef I think this issue can be closed.


rename_labels finetuning

https://github.com/Open-EO/openeo-processes/blob/a4704b2fe35ad21225e359e1a1b84868c21f6442/rename_labels.json#L4

If the array for the source labels is empty (the default) ...  The number of the source and target labels must be equal.

It's a confusing to have these two statements in the same paragraph, without an "otherwise" or something alike
On a more general note, is there a particular reason that [] is used as special value to trigger the handling of "enumerated labels"  instead of null?
https://github.com/Open-EO/openeo-processes/blob/a4704b2fe35ad21225e359e1a1b84868c21f6442/rename_labels.json#L39

The names of the labels as they are currently in the data cube. The array defines an unsorted and potentially incomplete list of labels that should be renamed to the names available in the corresponding array elements in the parameter target.

It feels like these two sentences can be condensed more efficiently. Also, I find the adjective "unsorted" confusing in this explanation, as the label order is essential for the operation.
Suggestion:

Original names of the labels to be renamed to corresponding array elements in the parameter target. It is allowed to only specify a subset of labels to rename, as long as the target and source parameter have the same length.

It's a confusing to have these two statements in the same paragraph, without an "otherwise" or something alike

Reworded, see PR #340.

On a more general note, is there a particular reason that [] is used as special value to trigger the handling of "enumerated labels" instead of null?

I guess it was just leading to a simpler schema and [] had no meaning so...

It feels like these two sentences can be condensed more efficiently.

Okay, I don't have a strong preference for either of the variants.

Also, I find the adjective "unsorted" confusing in this explanation, as the label order is essential for the operation.

I added another sentence explaining the "unsorted", i.e. the order is important between source and target (=> captured by your "corresponding"), but the order of the given labels doesn't need to match the order of the labels in the data cube.


Fix scripts

Replace references to master with main
Replace PyYAML with ruamel.yaml since that's what's in the environment
Replace pushd with cd for shell subprocesses (pushd is pointless in a subshell, and Python uses sh where pushd isn't defined)
Minor edits to README (Closes #10)

checklist:

[ ] tested the changes live by using the dev version of the action

Checks failing until #15 is merged


Vagrant box metadata JSON wrong Content-Type

When trying to run vagrant up I get the following error:
path. Box version constraints only work with boxes from Vagrant
Cloud or a custom box host. Please remove the version constraint
and try again.

I suspect that is caused because https://dl.flynn.io/vagrant/flynn-base.json has it's content-typer set to text/plain if I host the file myself with content-type application/json this step works like expected.
I also tested with self served text/plain - same error as with the official server.

I worked around this temporarily by downloading the json file and serving it locally using node-static (npm install -g node-static), updating my vagrant file to look at localhost, and serving the file locally using static -H '{"Content-Type": "application/json"}'.

even with this workaround I get the following error :
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'flynn-base' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: > 0
16:2:21 [200]: /flynn-base.json
==> default: Loading metadata for box 'http://localhost:8080/flynn-base.json'
    default: URL: http://localhost:8080/flynn-base.json
16:2:21 [200]: /flynn-base.json
==> default: Adding box 'flynn-base' (v20170417.2) for provider: virtualbox
    default: Downloading: https://dl.flynn.io/vagrant/boxes/flynn_v20170417.2_ubuntu-xenial_virtualbox.box
==> default: Box download is resuming from prior download progress
    default: Progress: 39% (Rate: 287k/s, Estimated time remaining: 0:26:16)^R
    default: Calculating and comparing box checksum...
The checksum of the downloaded box did not match the expected
value. Please verify that you have the proper URL setup and that
you're downloading the proper file.

Expected: 5deb51ae17c7862de9cc4ba7fe5593d2aa08067e2bdc457999deb66eaffbe791
Received: be409f5d7b93853afe1e9a0dc4201ac29c5a6c84290248ee6c488e57f3527181

Yeah, I opened a separate issue for that #4055

I fixed this manually and filed #4061 to make sure it doesn't happen again.


Reference actions by commit SHA

Referencing actions by commit SHA in GitHub workflows, guarantees you are using an immutable version. In contrast, actions referenced by tags and branches are vulnerable to attacks, such as the tag being moved to a malicious commit, a malicious commit being pushed to the branch or typosquatting.
Although there are pros and cons for each reference, GitHub acknowledges that using commit SHAs is more reliable, as does Scorecard security tool.
Currently, in this repository, we use actions such as<EMAIL_ADDRESS>and github/codeql-action/init@v2. Most actions are referenced by tags. To prevent the attacks mentioned above, it would be good to change the tag references to commit SHAs as suggested in this PR.
Additional Context
Hi! I'm Gabriela and I work on behalf of Google and the OpenSSF suggesting supply-chain security changes :)

Hi @gabibguti
Thank you for the PR.
Will dependabot be able to update versions?

Hi @gabibguti Thank you for the PR. Will dependabot be able to update versions?

Hm, looks like it does! For example: https://github.com/apache/commons-lang/blame/ebcb39a62fc1e47251eceaf63a4b3d731c5227a0/.github/workflows/maven.yml

Hi @gabibguti
Do you have the tooling to create PRs like this automatically? Apache Commons has a lot of components... ;-)