Unable to set the source to ready state.

debug messages
log4cplus:ERROR Unable to open file: ./log/kvs.log
[INFO ][2021-03-10 10:46:04] Using region: us-west-2
[INFO ][2021-03-10 10:46:04] Using aws credentials for Kinesis Video Streams
[INFO ][2021-03-10 10:46:04] No session token was detected.
[INFO ][2021-03-10 10:46:04] createKinesisVideoClient(): Creating Kinesis Video Client
[INFO ][2021-03-10 10:46:04] heapInitialize(): Initializing native heap with limit size 134217728, spill ratio 0% and flags 0x00000001
[INFO ][2021-03-10 10:46:04] heapInitialize(): Creating AIV heap.
[INFO ][2021-03-10 10:46:04] heapInitialize(): Heap is initialized OK
[DEBUG][2021-03-10 10:46:04] stepStateMachine(): PIC Client State Machine - Current state: 0x1, Next state: 0x2
[DEBUG][2021-03-10 10:46:04] getSecurityTokenHandler invoked
[DEBUG][2021-03-10 10:46:04] Refreshing credentials. Force refreshing: 0 Now time is:<PHONE_NUMBER>691667986 Expiration: 0
[INFO ][2021-03-10 10:46:04] New credentials expiration is<PHONE_NUMBER>
[DEBUG][2021-03-10 10:46:04] stepStateMachine(): PIC Client State Machine - Current state: 0x2, Next state: 0x10
[INFO ][2021-03-10 10:46:04] createDeviceResultEvent(): Create device result event.
[DEBUG][2021-03-10 10:46:04] stepStateMachine(): PIC Client State Machine - Current state: 0x10, Next state: 0x40
[DEBUG][2021-03-10 10:46:04] clientReadyHandler invoked
[DEBUG][2021-03-10 10:46:04] Client is ready
[INFO ][2021-03-10 10:46:04] Creating Kinesis Video Stream webcam-video-stream
[INFO ][2021-03-10 10:46:04] createKinesisVideoStream(): Creating Kinesis Video Stream.
[DEBUG][2021-03-10 10:46:04] stepStateMachine(): PIC Stream State Machine - Current state: 0x1, Next state: 0x2
[DEBUG][2021-03-10 10:46:04] stepStateMachine(): PIC Client State Machine - Current state: 0x40, Next state: 0x40
[INFO ][2021-03-10 10:46:05] writeHeaderCallback(): RequestId: 7fc17fb8-a212-423e-b566-7c26d0ae809a
[DEBUG][2021-03-10 10:46:05] describeStreamCurlHandler(): DescribeStream API response: {"StreamInfo":{"CreationTime":1.615298195922E9,"DataRetentionInHours":2,"DeviceName":"Kinesis_Video_Device","IngestionConfiguration":null,"KmsKeyId":"arn:aws:kms:us-west-2:791299146659:alias/aws/kinesisvideo","MediaType":"video/h264","Status":"ACTIVE","StreamARN":"arn:aws:kinesisvideo:us-west-2:791299146659:stream/webcam-video-stream/1615298195922","StreamName":"webcam-video-stream","Version":"iNaVH35InLO0ckDEN5Rb"}}
[INFO ][2021-03-10 10:46:05] describeStreamResultEvent(): Describe stream result event.
[DEBUG][2021-03-10 10:46:05] stepStateMachine(): PIC Stream State Machine - Current state: 0x2, Next state: 0x20
[DEBUG][2021-03-10 10:46:05] stepStateMachine(): PIC Client State Machine - Current state: 0x40, Next state: 0x40
[INFO ][2021-03-10 10:46:05] writeHeaderCallback(): RequestId: 270b0dda-aa87-4615-8826-f1c0e5a17bde
[DEBUG][2021-03-10 10:46:05] getStreamingEndpointCurlHandler(): GetStreamingEndpoint API response: {"DataEndpoint":"https://s-4010bf70.kinesisvideo.us-west-2.amazonaws.com"}
[INFO ][2021-03-10 10:46:05] getStreamingEndpointResultEvent(): Get streaming endpoint result event.
[DEBUG][2021-03-10 10:46:05] stepStateMachine(): PIC Stream State Machine - Current state: 0x20, Next state: 0x10
[DEBUG][2021-03-10 10:46:05] stepStateMachine(): PIC Client State Machine - Current state: 0x40, Next state: 0x40
[DEBUG][2021-03-10 10:46:05] getStreamingTokenHandler invoked
[DEBUG][2021-03-10 10:46:05] Refreshing credentials. Force refreshing: 1 Now time is:<PHONE_NUMBER>544997645 Expiration:<PHONE_NUMBER>
[INFO ][2021-03-10 10:46:05] New credentials expiration is<PHONE_NUMBER>
[INFO ][2021-03-10 10:46:05] getStreamingTokenResultEvent(): Get streaming token result event.
[DEBUG][2021-03-10 10:46:05] stepStateMachine(): PIC Stream State Machine - Current state: 0x10, Next state: 0x40
[DEBUG][2021-03-10 10:46:05] defaultStreamReadyCallback(): Reported streamReady callback for stream handle<PHONE_NUMBER>1545
[DEBUG][2021-03-10 10:46:05] streamReadyHandler invoked
[DEBUG][2021-03-10 10:46:05] Stream is ready
[INFO ][2021-03-10 10:46:05] Streaming from live source
[DEBUG][2021-03-10 10:46:05] Streaming with live source and width: 0, height: 0, fps: 25, bitrateInKBPS512
Unable to set the source to ready state.
[INFO ][2021-03-10 10:46:05] stopKinesisVideoStreamSync(): Synchronously stopping Kinesis Video Stream 0000564e1af1a3c9.
[DEBUG][2021-03-10 10:46:05] defaultStreamClosedCallback(): Reported streamClosed callback for stream handle<PHONE_NUMBER>1545. Upload handle<PHONE_NUMBER>3709551615
[DEBUG][2021-03-10 10:46:05] streamClosedHandler invoked for upload handle:<PHONE_NUMBER>3709551615
[INFO ][2021-03-10 10:46:05] Freeing Kinesis Video Stream webcam-video-stream
[INFO ][2021-03-10 10:46:05] freeKinesisVideoStream(): Freeing Kinesis Video stream.
[DEBUG][2021-03-10 10:46:06] defaultStreamShutdownCallback(): Reported streamShutdown callback for stream handle<PHONE_NUMBER>1545
[INFO ][2021-03-10 10:46:06] Freeing Kinesis Video Stream webcam-video-stream
[INFO ][2021-03-10 10:46:06] freeKinesisVideoClient(): Freeing Kinesis Video Client
log4cplus:ERROR Failed to open file ./log/kvs.log

I'm using kinesis video stream to capture the live video from laptop  webcam and push to kinesis video stream for further analysis.

There is some progress and issue solved but I'm getting below error about camara device not configured:
root@ip-172-31-29-203:/home/ubuntu# gst-inspect-1.0 kvssink
Factory Details:
Rank                     primary + 10 (266)
Long-name                KVS Sink
Klass                    Sink/Video/Network
Description              GStreamer AWS KVS plugin
Author                   AWS KVS<EMAIL_ADDRESS>Plugin Details:
Name                     kvssink
Description              GStreamer AWS KVS plugin
Filename                 /home/ubuntu/amazon-kinesis-video-streams-producer-sdk-cpp/build/libgstkv                                                  ssink.so
Version                  1.0
License                  Proprietary
Source module            kvssinkpackage
Binary package           GStreamer
Origin URL               http://gstreamer.net/
GObject
+----GInitiallyUnowned
+----GstObject
+----GstElement
+----GstKvsSink
root@ip-172-31-29-203:/home/ubuntu#
root@ip-172-31-29-203:/home/ubuntu# gst-launch-1.0 v4l2src do-timestamp=TRUE device=/dev/video0 ! videoconvert ! video/x-raw,format=I420,width=640,height=480,framerate=30/1 ! x264enc  bframes=0 key-int-max=45 bitrate=500 ! video/x-h264,stream-format=avc,alignment=au,profile=baseline ! kvssink stream-name="webcam-video-stream" storage-size=512 access-key="AKIA3QPI2YOR3YADW3UA" secret-key="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" aws-region=us-east-1
Setting pipeline to PAUSED ...
log4cplus:ERROR could not open file ./kvs_log_configuration
INFO - createKinesisVideoClient(): Creating Kinesis Video Client
2021-03-12 07:07:01 [140646992290880] INFO - heapInitialize(): Initializing native heap with limit size 536870912, spill ratio 0% and flags 0x00000001
2021-03-12 07:07:01 [140646992290880] INFO - heapInitialize(): Creating AIV heap.
2021-03-12 07:07:01 [140646992290880] INFO - heapInitialize(): Heap is initialized OK
2021-03-12 07:07:01 [140646992290880] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000001, Next state: 0x0000000000000002
2021-03-12 07:07:01 [140646992290880] DEBUG - getSecurityTokenHandler invoked
2021-03-12 07:07:01 [140646992290880] DEBUG - Refreshing credentials. Force refreshing: 0 Now time is:<PHONE_NUMBER>376939155 Expiration: 0
2021-03-12 07:07:01 [140646992290880] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000002, Next state: 0x0000000000000010
2021-03-12 07:07:01 [140646992290880] INFO - createDeviceResultEvent(): Create device result event.
2021-03-12 07:07:01 [140646992290880] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000010, Next state: 0x0000000000000040
2021-03-12 07:07:01 [140646992290880] DEBUG - clientReadyHandler invoked
2021-03-12 07:07:01 [140646992290880] INFO - try creating stream
2021-03-12 07:07:01 [140646992290880] INFO - Creating Kinesis Video Stream webcam-video-stream
2021-03-12 07:07:01 [140646992290880] INFO - createKinesisVideoStream(): Creating Kinesis Video Stream.
2021-03-12 07:07:01 [140646992290880] DEBUG - logStreamInfo(): Kinesis Video Stream Info
2021-03-12 07:07:01 [140646992290880] DEBUG - logStreamInfo():  Stream name: webcam-video-stream
2021-03-12 07:07:01 [140646992290880] DEBUG - logStreamInfo():  Streaming type: STREAMING_TYPE_REALTIME
2021-03-12 07:07:01 [140646992290880] DEBUG - logStreamInfo():  Content type: video/h264
2021-03-12 07:07:01 [140646992290880] DEBUG - logStreamInfo():  Max latency (100ns): 600000000
2021-03-12 07:07:01 [140646992290880] DEBUG - logStreamInfo():  Fragment duration (100ns): 20000000
2021-03-12 07:07:01 [140646992290880] DEBUG - logStreamInfo():  Key frame fragmentation: Yes
2021-03-12 07:07:01 [140646992290880] DEBUG - logStreamInfo():  Use frame timecode: Yes
2021-03-12 07:07:01 [140646992290880] DEBUG - logStreamInfo():  Absolute frame timecode: Yes
2021-03-12 07:07:01 [140646992290880] DEBUG - logStreamInfo():  Nal adaptation flags: 0
2021-03-12 07:07:01 [140646992290880] DEBUG - logStreamInfo():  Average bandwith (bps): 4194304
2021-03-12 07:07:01 [140646992290880] DEBUG - logStreamInfo():  Framerate: 25
2021-03-12 07:07:01 [140646992290880] DEBUG - logStreamInfo():  Buffer duration (100ns):<PHONE_NUMBER>
2021-03-12 07:07:01 [140646992290880] DEBUG - logStreamInfo():  Replay duration (100ns): 400000000
2021-03-12 07:07:01 [140646992290880] DEBUG - logStreamInfo():  Connection Staleness duration (100ns): 600000000
2021-03-12 07:07:01 [140646992290880] DEBUG - logStreamInfo():  Store Pressure Policy: 1
2021-03-12 07:07:01 [140646992290880] DEBUG - logStreamInfo():  View Overflow Policy: 1
2021-03-12 07:07:01 [140646992290880] DEBUG - logStreamInfo():  Segment UUID: NULL
2021-03-12 07:07:01 [140646992290880] DEBUG - logStreamInfo():  Frame ordering mode: 0
2021-03-12 07:07:01 [140646992290880] DEBUG - logStreamInfo(): Track list
2021-03-12 07:07:01 [140646992290880] DEBUG - logStreamInfo():  Track id: 1
2021-03-12 07:07:01 [140646992290880] DEBUG - logStreamInfo():  Track name: kinesis_video
2021-03-12 07:07:01 [140646992290880] DEBUG - logStreamInfo():  Codec id: V_MPEG4/ISO/AVC
2021-03-12 07:07:01 [140646992290880] DEBUG - logStreamInfo():  Track type: TRACK_INFO_TYPE_VIDEO
2021-03-12 07:07:01 [140646992290880] DEBUG - logStreamInfo():  Track cpd: NULL
2021-03-12 07:07:01 [140646992290880] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000001, Next state: 0x0000000000000002
2021-03-12 07:07:01 [140646992290880] INFO - writeHeaderCallback(): RequestId: 0eb36b19-ed3e-4e94-8424-3db15475d374
2021-03-12 07:07:01 [140646425609984] DEBUG - describeStreamCurlHandler(): DescribeStream API response: {"StreamInfo":{"CreationTime":1.614842971791E9,"DataRetentionInHours":24,"DeviceName":null,"IngestionConfiguration":null,"KmsKeyId":"arn:aws:kms:us-east-1:791299146659:alias/aws/kinesisvideo","MediaType":null,"Status":"ACTIVE","StreamARN":"arn:aws:kinesisvideo:us-east-1:791299146659:stream/webcam-video-stream/1614842971791","StreamName":"webcam-video-stream","Version":"g1i0PSYYpTIiyAz5K0FF"}}
2021-03-12 07:07:01 [140646425609984] INFO - describeStreamResultEvent(): Describe stream result event.
2021-03-12 07:07:01 [140646425609984] WARN - describeStreamResult(): Retention period returned from the DescribeStream call doesn't match the one specified in the StreamInfo
2021-03-12 07:07:01 [140646425609984] WARN - describeStreamResult(): Content type returned from the DescribeStream call doesn't match the one specified in the StreamInfo
2021-03-12 07:07:01 [140646425609984] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000002, Next state: 0x0000000000000020
2021-03-12 07:07:01 [140646425609984] INFO - writeHeaderCallback(): RequestId: 4a5cc906-449c-4b7c-af58-d8d4dcc82c05
2021-03-12 07:07:01 [140646417217280] DEBUG - getStreamingEndpointCurlHandler(): GetStreamingEndpoint API response: {"DataEndpoint":"https://s-468461da.kinesisvideo.us-east-1.amazonaws.com"}
2021-03-12 07:07:01 [140646417217280] INFO - getStreamingEndpointResultEvent(): Get streaming endpoint result event.
2021-03-12 07:07:01 [140646417217280] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000020, Next state: 0x0000000000000010
2021-03-12 07:07:01 [140646417217280] DEBUG - getStreamingTokenHandler invoked
2021-03-12 07:07:01 [140646417217280] DEBUG - Refreshing credentials. Force refreshing: 1 Now time is:<PHONE_NUMBER>506019767 Expiration:<PHONE_NUMBER>3709551615
2021-03-12 07:07:01 [140646417217280] INFO - getStreamingTokenResultEvent(): Get streaming token result event.
2021-03-12 07:07:01 [140646417217280] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000010, Next state: 0x0000000000000040
2021-03-12 07:07:01 [140646417217280] DEBUG - streamReadyHandler invoked
2021-03-12 07:07:01 [140646417217280] Stream is ready
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Could not open device '/dev/video0' for reading and writing.
Additional debug info:
v4l2_calls.c(621): gst_v4l2_open (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
system error: No such device or address
Setting pipeline to NULL ...
Freeing pipeline ...
INFO - Freeing Kinesis Video Stream webcam-video-stream
2021-03-12 07:07:01 [140646992290880] INFO - freeKinesisVideoStream(): Freeing Kinesis Video stream.
2021-03-12 07:07:01 [140646992290880] DEBUG - curlApiCallbacksShutdownActiveRequests(): pActiveRequests hashtable is empty

None of this is KVS related. Could you remove KVS sink from the pipeline and stabilize it with fakesink first. Please resolve this if you have no further questions related to KVS itself. GStreamer forums might be a better source for help regarding the pipeline

I didn't get you, what correction need to make to work video stream?

I am not sure what corrections your pipeline needs in order to work but you can debug it a lot easier without KVS being the sink. Set the sink as fakesink, debug your pipeline. Once working, use KVS

As @MushMal stated this is the general guidance.  Always try your pipeline with something simple, my recommendation is to use filesink. Once it is working properly with filesink then replace with kvssink. If there are issues then we know they are specific to kvssink and we can debug further.
As of now the error is:
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Could not open device '/dev/video0' for reading and writing.
Additional debug info:
v4l2_calls.c(621): gst_v4l2_open (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
system error: No such device or address
It is clear that you have an issue with your pipeline not related to kvssink
Perhaps you can start with figuring out with why you can't open /dev/video0, is that the right thing, maybe you need to properly configure your source element so it can recognize your media source.
I'm going to close this issue for now because there is no KVS issue.  Once you've tested it with filesink and you know it works there and if it doesn't work with kvssink please open a new issue with that information.
Finally for more guidance I suggest you visit gstreamer specific forums to help you get your media source started.


shuffle / randomize browse js cards

add shuffle function:
/* Fisher-Yates shuffle https://bost.ocks.org/mike/shuffle/ */
  function shuffle(array) {
      var m = array.length, t, i;
      while (m) {
      i = Math.floor(Math.random() * m--);
      t = array[m];
      array[m] = array[i];
      array[i] = t;
      }
      return array;
  }

then add shuffle(items); somewhere.

@dcnb @owikle should it be:

shuffle the array one time on load (each time you visit browse it is different, but it doesn't change while you are searching, clicking buttons on the page)
re-shuffle everytime it adds cards (each time you search or click something it reshuffles)
shuffle is a button (maybe next to item count?) that you click to re-shuffle the current set of cards/array, making it a user option.

p.s. I don't think there is any noticeable performance difference shuffling or not

consensus on option 1.
now added!


Blue Screen Issue After Setting Up KDE Plasma Desktop and Connecting via RDP

Requirements

[X] Yes
[ ] No

WSL Version

[X] WSL 2
[ ] WSL 1

Version
10.0.22621.3155
Kernel Version
<IP_ADDRESS>-1
Repro Steps

Install KDE Plasma and necessary packages with:
sudo pacman -S plasma kio-extras
sudo systemctl enable sddm.service --force
pacman -S xorg xorg-server xrdp
yay -S xorgxrdp
Enable and start xrdp service:
sudo systemctl enable xrdp.service
sudo systemctl start xrdp.service
sudo systemctl reboot
Add the specified code to ~/.xinitrc.
Obtain IP address with ip addr | grep eth0.
Connect to the RDP server using mstsc with ip:13389 and select the xvnc option.

Expected Behavior
I expected to see the KDE Plasma desktop environment after successfully logging in through the RDP session.
Actual Behavior
After entering my username and password, I am presented with a blue screen, and the desktop environment does not load.


DateTime validation before calling ToInt32() or ToInt64().  Make sure…

Description

DateTime validation before calling ToInt32() or ToInt64().  Make sure the input string is numeric, otherwise return DateTime.MaxValue

Motivation and Context

Prior to these changes, Json deserialization of non-numeric strings longer than 18 characters would cause Native exceptions.  These exceptions caused annoying delays and output when running applications in the nanoFramework debugger.

How Has This Been Tested?

All unit tests in the Json nuget run successfully in both 'Debug' and 'Release' modes

Types of changes

[x] Improvement (non-breaking change that improves a feature, code or algorithm)
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Config and build (change in the configuration and build system, has no impact on code or features)
[ ] Dependencies (update dependencies and changes associated, has no impact on code or features)
[x] Unit Tests (work on Unit Tests, has no impact on code or features)
[ ] Documentation (changes or updates in the documentation, has no impact on code or features)

Checklist:

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.

As Ellerbach suggested, I've removed the Text.RegularExpressions nuget in favor of a small function to validate a string as numeric.
This causes the code to never call ToInt32() or ToInt64() unless the string is numeric (thereby eliminating the extraneous exceptions).
It also makes the Json library MUCH faster than it was before I started messing with it.
The test case I added (for arrays of class objects) took over 10 seconds before I made any code changes to the Json library.
It took around 9.5 seconds with the Regex code.
It now runs in 2.6 seconds!
It looks like the existing unit test cases are running much faster as well.
Please take a look at the recent changes.

Last tweaks pushed and then we're good to go!
@skigrinder thanks for the improvements! 💯

Hi Jose' & Laurent,
Thanks for the help getting this implemented!
Jim

@skigrinder thank YOU for your... determination... 😁  on getting rid of those exception output. In the end, this refactor vastly improved the overall performance. 👍🏻


Issue with --local command line parameter.

While executing the test case blocked_transform which is present under runtime (https://github.com/bcosenza/sycl-bench/blob/master/runtime/blocked_transform.cpp), we noticed that we are getting a core dump error.
Command used to execute - ./blocked_transform --device=gpu
Output -
********** Results for Runtime_BlockedTransform_iter_64_blocksize_0**********
problem-size: 3072
local-size: 1024
device-name: NVIDIA RTX A4000
sycl-implementation: LLVM CUDA (Codeplay)
blocked_transform: /tmp/llvm-sycl-nightly-20220222/sycl/source/detail/scheduler/commands.cpp:1826: void cl::sycl::detail::adjustNDRangePerKernel(cl::sycl::detail::NDRDescT&, cl::sycl::detail::pi::PiKernel, const cl::sycl::detail::device_impl&): Assertion `NDR.NumWorkGroups[0] != 0 && NDR.LocalSize[0] == 0' failed.
Aborted (core dumped)
However, when we are explicitly assigning the value of the --local parameter to 256 (which is the default value) during runtime, it is executing without any errors.
Command used to execute - ./blocked_transform --device=gpu --local=256
We would like to know if there is a fix for this issue? If so, where can we get the revised code?

Hi, we would like to know if there are any solutions for the above mentioned issue. Thanks.

I cannot reproduce the issue with hipSYCL. Your output indicates that somehow a block size of 0 enters the benchmark. This value is derived from the local size. I had a quick look at the code paths, and I don't understand how this could happen - it does not for me.
There's an assert that checks that the block size is non-zero. Can you check what happens when compiling with debug assertions enabled?

Hi, we are not working with hipSYCL. The issue that we are facing is occurring during runtime. The test case is failing to execute when we are not passing the local parameter (as in, when it is taking the value of local parameter as 256 by default).
Command being used to execute - ./blocked_transform --device=gpu
However, it is working fine when we are explicitly defining the local parameter to 256.
Command being used to execute - ./blocked_transform --device=gpu --local=256
We are not sure as to why this issue is occurring.

Hi, we are not working with hipSYCL. The issue that we are facing is occurring during runtime.

I'm aware of this. But I don't have an installation of the DPC++ SYCL implementation with CUDA backend here. I'm just saying I cannot reproduce this with my setup. And I don't understand why DPC++ or hipSYCL would behave differently here anyway. The error does not seem to be related to SYCL specific functionality.

The test case is failing to execute when we are not passing the local parameter (as in, when it is taking the value of local parameter as 256 by default).
Command being used to execute - ./blocked_transform --device=gpu
However, it is working fine when we are explicitly defining the local parameter to 256 during runtime.
Command being used to execute - ./blocked_transform --device=gpu --local=256

I understood this. As I've said I cannot reproduce here. Command line option handling is the same for DPC++ and hipSYCL. For further investigation into the issue, I asked you the following:

There's an assert that checks that the block size is non-zero. Can you check what happens when compiling with debug assertions enabled?

i.e. make sure that the NDEBUG macro is not set when building.

Hi, as suggested, I've added the following in the blocked_transform.cpp code and I've rebuilt it again.
#include<assert.h>
#define NDEBUG
It seems that by default, the value of local size is being taken as 1024 (please see attached screenshot below).

However, when I am defining '--local' to be either 256 (default value) or 1024 explicitly, it is working fine.
Command being used:
./blocked_transform --device=gpu --local=256
./blocked_transform --device=gpu --local=1024
Could this be a bug in the code?
Thanks.

Hi, is there any update regarding this issue? Thanks.


rebind expressions by filter

my filter has config that my change at any time,
i need listen to config.change and rebind all the expressions using this filter (and only them, i don't want to set the $stateful on the filter to true and run $rootScope.$apply(); when i need to rebind).

@leibale please direct general support questions like this one to an appropriate support channel, see https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#question
Thank you!

it's not a question, i know there is no option to rebind by expression, i need you (or any body) to add this option


Drop common suffixes from track names

Just some heuristics dropping a suffix starting with " - " from track names, when they match the first track's.
Some examples from 101:

Electric Warrior [Expanded & Remastered]: Dropped  - 2003 Remaster
The Rise and Fall of Ziggy Stardust and the Spiders from Mars (2012 Remaster): Dropped  - 2012 Remaster
Ramones (2017 Remaster): Dropped  - 2016 Remaster
Body Talk: Dropped  - Radio Edit

Thanks! I'm building a new jukebox playlist., I'll test this one on that asap.

Some other things to consider dropping on 101

[Expanded & Remastered]
(2017 Remaster)
(2015 Deluxe Edition)
(20th Anniversary Special Edition)
(Deluxe)

ooo, right on!
updated to take care of album names too.
here's the before/after on 101:
[
    [
        "Electric Warrior [Expanded & Remastered]",
        "Electric Warrior"
    ],
    [
        "The Rise and Fall of Ziggy Stardust and the Spiders from Mars (2012 Remaster)",
        "The Rise and Fall of Ziggy Stardust and the Spiders from Mars"
    ],
    [
        "Ramones (2017 Remaster)",
        "Ramones"
    ],
    [
        "Graceland (25th Anniversary Deluxe Edition)",
        "Graceland"
    ],
    [
        "Rage Against The Machine - XX (20th Anniversary Special Edition)",
        "Rage Against The Machine - XX"
    ],
    [
        "Brotherhood (Deluxe)",
        "Brotherhood"
    ],
    [
        "Rumours (Super Deluxe)",
        "Rumours"
    ],
    [
        "Lady Soul (With Bonus Selections)",
        "Lady Soul"
    ],
    [
        "Loaded (2015 Remaster)",
        "Loaded"
    ],
    [
        "Joanne (Deluxe)",
        "Joanne"
    ],
    [
        "Rubber Soul (Remastered)",
        "Rubber Soul"
    ],
    [
        "All Hands on the Bad One (Remastered)",
        "All Hands on the Bad One"
    ],
    [
        "Settle (Deluxe)",
        "Settle"
    ],
    [
        "Version 2.0 (20th Anniversary Edition / Remastered)",
        "Version 2.0"
    ],
    [
        "The Platinum Collection (Greatest Hits I II & III - 2011 Remaster)",
        "The Platinum Collection"
    ],
    [
        "Revolver (Remastered)",
        "Revolver"
    ]
]

WIP happy hour playlist: https://open.spotify.com/playlist/6hyJgde8Tc87CXKpAp9VRI?si=5d168a17e3b8437f

106 🫡 let's go!


Add valid_return_none argument to @op

Fixes #978

Looks like we need to run black. See https://intel.github.io/dffml/master/contributing/style.html


Bug: CNRichTextView failed to render normal text

I play around the basic logic that convert editor value to html by convertToHtmlString (assuming to save it in db), and directly convert the result back to object by convertToObject, render the result through CNRichTextView. There is error that stop it from rendering anything.
Here are some snapshots and piece of demo code.
    {this.state.back && <CNRichTextView text={this.state.back} />}
  demo = () => {
    const res = convertToHtmlString(this.state.value);
    console.log(res);
    const back = convertToObject(res);
    console.log(back);
    this.setState({ back });
  };

hi,
same here, could you please take a look at it and document the CNRichTextView ?

Got it, CNRichTextView want an html string for the "text" property, so if you don't convert back your html string, it should work.
To init a CNRichTextView without value (for my example, where it's load async), just set "" as the text property of the CNRichTextView.

@flyinghawker sorry for the late response. as @LudoFont mentioned , CNRichTextView Text field needs a html string, so you shouldn't covert it back to object.
Something like this:
const text = '

 // or any other html converted using convertToHtmlString()
<CNRichTextView text={text} />

@imnapo thank you for that great plugin by the way ! ;)

@imnapo @LudoFont Got it, thank you guys.

@imnapo  Thank you man for great plugin


(InvitingGuests) Inviting Guests

There are 3 items remaining:

Need to automatically trigger the signin modal if you land on / with a redirect url
Issue in IE where an empty autosuggest results flyover becomes visible
Whitespace is trimmed from a timeago message label. I don't think that space is needed as it is joined with another space in the $.timeago code. Need to verify and try and update the message key (commented in MySearch PR to remove the \)

This is ready for review.

@nicolaasmatthijs I don't think any of the 3 remaining items necessarily need to stop a review as they are pretty trivial, but feel free to hold off. I may have them addressed tomorrow morning before you wake up, though...

@nicolaasmatthijs this is now ready for review

We talked briefly around the issues surrounding an i18n "OR" for the centre circle divider in the signup page. I checked the existing styles and spot checked a 1-char, 2-char, 3-char and 4-char ("eller") variation of the text (none go longer than that in our bundles) and they all seem fine. So I don't think any fluid-width circle component is needed there.

Followed up and merged w/ master. Back to @nicolaasmatthijs

Just fixed 2 issues:

Library search on the /me page did not work properly due to an invalid reference to oae.api.util.url()
LHNav can sometimes nuke the QA parameters (History.replaceState) before the UI has a chance to use them (i.e., detect emailpreferences). The result was that sometimes the email preferences widget would not show even though it is in the query string. This is fixed by having LHNav retain custom querystring parameters when it replaces state

Still ready for more review.

Finished review! Back to @mrvisser for follow-up.

Bugs from bug bash fixed and followed up thus far. Back to @nicolaasmatthijs for review

Merged! Created follow-up ticket at https://github.com/oaeproject/3akai-ux/issues/4060


tasks: pre_checks: Fix interface name issue that contains dash char

In order to get interface details from Ansible facts,
if the interface name contains a dash it's replaced with an underscore.
This led to "device does not exist" error when the interface name
was not converted back to the original one containing a dash.
Bug-Url: https://bugzilla.redhat.com/1459229
Signed-off-by: Asaf Rachmani<EMAIL_ADDRESS>

Did you verify with bond and team interface types  ?

Did you verify with bond and team interface types ?

No, I didn't. There is another bug for bond interface:
https://bugzilla.redhat.com/show_bug.cgi?id=1776302

OK, but it's irrelevant for the verification of this PR.
You changed the behavior on how ansible returns the network interfaces and verified it with normal (a.k.a Ethernet) interfaces. It is important to verify it also with the other permitted network interfaces: bond and 'team`

OK, but it's irrelevant for the verification of this PR.
You changed the behavior on how ansible returns the network interfaces and verified it with normal (a.k.a Ethernet) interfaces. It is important to verify it also with the other permitted network interfaces: bond and 'team`

team interface type works fine w/ and w/o dash char,
bond interface type works only w/o dash char, using dash char in bond is not allowed (this is the bug I mentioned above).


Lights does not render when diffuse is disabled and blur is enabled

I've noticed that on some hardware configurations Lights are not rendered when RayHandler.useDiffuseLight(false); and blur is enabled. This is what happens on the same laptop running the same code both on IGPU HD Graphics 620 and external Nividia GeForce MX150:
MX150 with RayHandler.useDiffuseLight(false); and blurNum = 3

MX150 with RayHandler.useDiffuseLight(false); and blurNum = 0

IGPU HD Graphics 620 with RayHandler.useDiffuseLight(false); and blurNum = 3

Same with blurNum = 0
When RayHandler.useDiffuseLight(true); everything works as expected.
I've noticed also that on OnePlus 6T (Adreno 630) I've got the same result that happens on MX150.

I've finally found the reason of this bug, and it's a my mistake plus a missing warning in Box2DLights docs. In my scenario diffuse lights can be enabled and disabled at runtime, this causes the issue because blurShader depends on RayHandler.isDiffuse value:
https://github.com/libgdx/box2dlights/blob/29a84c7d5cbcd183049e7d62c134f6ad9c842b7b/src/shaders/Gaussian.java#L13
This shader is created only once, in the constructor of LightMap:
https://github.com/libgdx/box2dlights/blob/29a84c7d5cbcd183049e7d62c134f6ad9c842b7b/src/box2dLight/LightMap.java#L130
So if I try to change RayHandler.isDiffuse after new RayHandler(world), shaders are messed up, on some GPUs works, on others not. So to fix this issue a possible workaround could be recreate the LightMap object when isDiffuse changes, in order to do that resizeFBO() function could be called.
Changing RayHandler.isDiffuse might not be a common situation, that's why this workaround could be enough without modify anything in box2dLights, so if this is not relevant please feel free to close this issue.
Thanks

I merged #124 a while back


ChakraCore Servicing Update for 2020.05B

Changes to address the following issues:
[CVE-2020-1037]
Ensure JIT bails out when there is an object marked as temporary during an implicit call, to prevent objects stored on the stack to be used outside of the function. This is done by preventing removal of the Bailout instruction for that case during the DeadStore pass of GlobOpt.
[CVE-2020-1065]
A previous MSRC fix removes the body scope of an enclosing function when a nested function is declared in the param scope of that enclosing function. This an result in us calculating incorrect envIndex for any symbols captured from enclosing scopes if this skipped body scope appears in the frameDisplay being passed to the nested function. This fix addresses the issue by marking the parameter scope also as mustInstantiate = true so we end up computing the correct envIndex. This problem and the fix only triggers when the enclosing function's param and body scopes are merged so the param and body scopes will never appear together in the scope stack and as such will not mess up the envIndex.

@emacedo is added to the review. #Closed


Bug: Monitoring System ID (Appendix E Heat Input from OIL)

The ECMPS UI field Monitoring System ID for Test Data is currently returning mon_sys_Id. This needs to be updated to return system_identifier .
This is causing issues when user is creating Test Data

Bug fixed


Unable to login into admin panel in GeniXCMS 1.1.9

Describe the bug
Unable to login into admin panel post installing it successfully. It gives following error.
Token not exist, or your time has expired. Please refresh your browser to get a new token.
To Reproduce
Steps to reproduce the behavior:

Go to admin page
add the admin details
See error

Expected behavior
Allowed to login

@jameswill thank you for the report. i will take check it again. i do can't login either. but i got no token error. i will do check for it.
once again, thanks

fixed

Hello @semplon ,
I am getting the same error in version 1.1.10 i.e :
Token not exist, or your time has expired. Please refresh your browser to get a new token.
Also on front-end page the welcome text is not changed i.e Welcome to GenixCMS 1.1.8, which should be 'Welcome to GenixCMS 1.1.10'.
This text comes from options table under 'value'  column filed corresponding to column 'name' field 'gneex_options'.
So to check further I checked with the code written in insertData() function, which holds the query under $options variable, defined on line 312 in /inc/lib/Install.class.php.
Please make the change in insert query on line number 382 in /inc/lib/Install.class.php
i.e Welcome to GenixCMS 1.1.8 to Welcome to GenixCMS 1.1.10.

hello @jameswill thank you for your reply. i will check it again and see the error. please do check the demo site
https://demo.genix.me
username : admin
password : admin
yes i forgot to change the options value at the install class. i will fix it.
Thank You,

Hello @semplon ,
Thanks for your prompt response. Checked with the demo site as well. Got the same error there as well.
Regards.

Hi,
I am still getting the same error while logging into admin panel in GeniXCMS 1.1.11 version as well.
i.e Token not exist, or your time has expired. Please refresh your browser to get a new token.
However the front end version number issue got resolved.

okay, thanks @jameswill for the information.
I will check it thoroughly. the token validation is too strict I suppose.
Did You install it at localhost or on the internet ? I need more information to do the modification.
please run this at the php and share the output
<?php
foreach($_SERVER as $k => $v) {
    echo $k . ": " . $v . "<br>";
}

Hi,
Sorry for the late reply.
I have installed on
Attaching the output your were asking for.
HTTP_HOST: DOMAIN.COM
HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:81.0) Gecko/20100101 Firefox/81.0
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.5
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_CONNECTION: keep-alive
HTTP_REFERER: http://DOMAIN.COM/DIRECTORY/
HTTP_COOKIE: SOFTCookies6415_sid=M8vpEWvJBX6bS8YBPvoKZTNpRba9mZTq
HTTP_UPGRADE_INSECURE_REQUESTS: 1
PATH: /sbin:/usr/sbin:/bin:/usr/bin
SERVER_SIGNATURE:
SERVER_SOFTWARE: Apache
SERVER_NAME: DOMAIN.COM
SERVER_ADDR: LINUX_IP
SERVER_PORT: 80
REMOTE_ADDR: REMOTE_IP
DOCUMENT_ROOT: /home/USER/public_html
SERVER_ADMIN<EMAIL_ADDRESS>SCRIPT_FILENAME: /home/USER/public_html/DIRECTORY/test.php
REMOTE_PORT: 54321
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING:
REQUEST_URI: /DIRECTORY/test.php
SCRIPT_NAME: /DIRECTORY/test.php
PHP_SELF: /DIRECTORY/test.php
REQUEST_TIME_FLOAT:<PHONE_NUMBER>.4204
REQUEST_TIME:<PHONE_NUMBER>
argv: Array
argc: 0
Since this is a public platform, I have renamed the private information with the general term in CAPITALS.

Hello @jameswill thanks for your reply. I know now why does it's now work. Your server didn't passing the $_SERVER['HTTP_SCHEME']
New update of GeniXCMS need this variable to validate token. When the value is not match it won't work.

Hi,
What would be the work around for this ? Or what could be solution for this ?

I think just removing $protocol at the Token validate method will fix this problem.
I will update it soon, i am still busy with another project.

Hi,
Sure. I shall wait for the new version with the fix.
Please let me know.

Hi,
I wanted to know why is this issue closed ?
Is this resolved ? I was notified that with the new release this issue will resolve ? Is there new update available with the fix ?

Hi,
I wanted to know why is this issue closed ?
Is this resolved ? I was notified that with the new release this issue will resolve ? Is there new update available with the fix ?

Hi, @jameswill yes, it does. It's been fixed.

Hi, @jameswill yes, it does. It's been fixed.

Hello @semplon,
The issue still persists in 1.1.11 version. I have tested the manual installation on Centos 6.9 Final with PHP 7.2.24, MYSQL 5.5.62, Apache 2.2.34. Still getting the same error i.e:
Token not exist, or your time has expired. Please refresh your browser to get a new token.
Could you please replicate this issue and post a fix for the same?.


[Feature Request] Private feeds on nuget.org locked by an ApiKey

Current NuGet gallery is for public consumption - it's like a single, PUBLIC feed.
Would love to have a the ability to create private feeds, locked by api keys (which already exist).
Currently we could:

Use one of the -other- nuget server implementations that exist but this means we need to manage them (which most people don't need to want to manage anything, these days)
Use a commercial product. This is good for businesses that making a profit/want extra security+complience/advanced features/etc ... but there's still a section of the community that don't need all of that and/or don't make money (but still would like private feeds).

So it would be really awesome if this could be a feature that could be considered.
(This idea was raised in #8314 )

@PureKrome , thanks for the suggestion, however nuget.org is a public feed, and we have made the decision to stay public only. As you mentioned, there are many offerings out there of private feeds.
Based on the scenario of each user, they can decide with private feed to use. Here's a list of offerings in our docs: https://docs.microsoft.com/en-gb/nuget/hosting-packages/overview


fix issue #1730

Fixes #1730

You should add a test to make sure that it fails without your patch and pass otherwise

Please add a test

@Arkni @staabm
this is the fixed test
https://jsfiddle.net/Alucelx/480b2osg/5/


FR: Disable user-select on .react-split__sash by default

Feature request:
Current behavior:
Dragging the divider outside of the split pane selects text.

Expected behavior:
Dragging the divider of the split pane doesn't select text.

Proposed changes:
Modify the default CSS to disable user-select on the divider:
.react-split__sash {
   user-select: none;
}

Feature request:
Current behavior: Dragging the divider outside of the split pane selects text.
Expected behavior: Dragging the divider of the split pane doesn't select text.
Proposed changes: Modify the default CSS to disable user-select on the divider:
.react-split__sash {
   user-select: none;
}

Thank you for your use, but this may not solve your problem。The component can only control the text inside the component not to be selected, and the content outside the component needs to be controlled by you. For example, you can use this component as the root component. I don't know if it can solve your problem.

fixed


Preload some vocabs in extra to improve runtimes

See https://github.com/codewars/factor/issues/11
As a suggestion, for 0.99, consider preloading some vocabs as mentioned, but final list to be decided

NOTE: current Factor docs (for 0.100 development version on master branch) only list the following vocabs in extras:
assocs.extras
combinators.extras
grouping.extras
math.extras
math.matrices.extras
namespaces.extras
sequences.extras
sets.extras
sorting.extras
splitting.extras
stream.extras

Check which vocabs are supported by 0.98, and which are supported by 0.98.

Factor 0.99 supports the following extras vocabs:
assocs.extras
combinators.extras
grouping.extras
math.extras
math.matrices.extras
namespaces.extras
sequences.extras
sets.extras
sorting.extras
splitting.extras
stream.extras

Factor 0.98 supports the following extras vocabs:
assocs.extras
combinators.extras
grouping.extras
math.extras
sequences.extras
sets.extras
sorting.extras
splitting.extras
stream.extras

When looking at the original list as suggested in the issue, some of these are not extras vocabs as indicated, but separate vocabs located in the extra vocab root. Reconsider the list of vocabs to be preloaded.

Out of the list of suggested vocabs, the following list is actually in extra:
coroutines
decimals
generators
infix
lru-cache
multisets
pair-rocket
pairs
path-finding
qw
trees
variants

Out of the list in the previous comment, the following vocabs are also present in 0.98:
decimals
infix
lru-cache
pair-rocket
pairs
path-finding
qw
trees
variants

So coroutines ,generators, and multisets were newly introduced in 0.99.

When I have referred to extras I do not mean purely vocabs ending in .extras, but rather than vocab in the extras root.
Also, all the vocab roots listed have vocabs in extras. It is not a list of explicit imports, but rather a list of prefixes to load. See load.
I have already done extensive testing with compile time, cold load time, warm load time, and image size. The final list is one which includes almost all vocabs which might be useful for kata, with only neglegible size difference (ie. the total size after increased image and removed extras ends up smaller than the current factor docker image).

When I have referred to extras I do not mean purely vocabs ending in .extras, but rather than vocab in the extras root.
Also, all the vocab roots listed have vocabs in extras. It is not a list of explicit imports, but rather a list of prefixes to load. See load.
I have already done extensive testing with compile time, cold load time, warm load time, and image size. The final list is one which includes almost all vocabs which might be useful for kata, with only neglegible size difference (ie. the total size after increased image and removed extras ends up smaller than the current factor docker image).

Thanks for investigating that.
Right, so you want to load all vocabs with these prefixes?
So that would include the ".extras" variants.
Right. If you have already tested that then I'm fine with it. I will make sure it will work for both 0.98 and 0.99.

I will introduce specializations for versions 0.98 and 0.99, so it will be easy to maintain.

So that would include the ".extras" variants.

Yes, but not only those.


[Req]: Store the user theme preference to the local storage

Contact Details
<EMAIL_ADDRESS>Explain the proposed feature
Every time after refreshing the webpage, the theme gets set to the default one. Rather than this, it should remember the user preference and load the theme that is chosen by the user whenever the user visits the webpage.
Explain the possible use cases for the feature
Suppose I will visit the webpage after months, even after so long time the webpage directly loads into my preferred theme that I may had choose months ago.
Any other details you would like to provide?
No response

Cool, go for it 👍


fix flaky VM live migration e2e case

📑 Description
Some time echoserver in VM could take more than 20s to start up, so increase timeout to 60 seconds to avoid flakiness.
✅ Checks

[ ] My code requires changes to the documentation
[ ] if so, I have updated the documentation as required
[ ] My code requires tests
[ ] if so, I have added and/or updated the tests as required
[ ] All the tests have passed in the CI

CC @flavio-fernandes


Allow direct OAuth2 Authentication

Is your feature request related to a problem? Please describe.
I have previously obtained an OAuth2 Spotify access token, and would like to use that to authenticate librespot 'Session'.
I'm building an android app and using the official Spotify Auth library, so that the user does not give me his credentials directly.
Describe the solution you'd like
Either make private Authentication.LoginCredentials loginCredentials public, or make a setter, so that i can directly set the LoginCredentials object ; or make an oauthToken() method in builder that constructs the loginCredentials object (i.e. what the FacebookAuthenticator does) from an access token.
Describe alternatives you've considered
Additional context
I think this would also allow users of the library to go arround the maybe broken Facebook login implementation (i saw an issue on that and a PR that was not yet merged) ; they could, if they really need to, implement OAuth2 directly to connect with Facebook (what i did in my app, using okhttpclient, using authorization code flow, requesting access and refresh token.

I think that tokens from the official API are not compatible with the internal APIs used here. Also have you looked at librespot-android?

In your pull request (https://github.com/librespot-org/librespot-java/pull/356/commits/275727306516d1d2bb9138871acc02d25651ae8d) you seem to be implementing the exact same auth flow i did implement successfully to get my token. However instead of starting the flow with 'facebook connection' window, i started it with the official api window ; this is the only difference.
I did look at librespot-android, yes ; in fact it is what inspired me to build a new version of my music player (Blade Player), because of how great librespot-java seems to be compared to the old spotify sdk i was using before. However, in librespot-android, you authenticate directly using user/pass, and some users could legitimately think that i'm trying to steal their credentials (i could send them to a server of mine + the spotify one), which is precisely why stuff like OAuth2 exists.

In your pull request (2757273) you seem to be implementing the exact same auth flow i did implement successfully to get my token. However instead of starting the flow with 'facebook connection' window, i started it with the official api window ; this is the only difference (i think).

Exactly, but #356 is broken all will not allow you to authenticate.

Oh ; but you say in the last commit :

Currently broken, the token endpoint returns 400. The client-token header may be the culprit.

I'm successfully obtaining a token, i believe ; so the endpoint is not an issue for me.
The issue would be passing that token to librespot, which i can not do because there is no external interface to do that.
But maybe something else is broken after token obtention ?

It is currently not possible to retrieve playlist-read tokens from Facebook/Spotify originated tokens. that scope is mandatory for initializing the mercury connection which we still rely on.

Alright ; then i guess i have no choice but use user+password authentication.
You can close the issue if you want (or keep it open until spotify changes things ?)
Anyway, thank you for your answers and your great work on librespot :))
By the way, are you talking about those scopes : https://developer.spotify.com/documentation/general/guides/authorization/scopes ? Because there does not seem to be a 'playlist-read' scope documented... Is spotify trying to hide that ? Or is it a completely different kind of token/scope ?

Is spotify trying to hide that ? Or is it a completely different kind of token/scope ?

Part of the internal API, not necessary to document it publicly.


QEMU crash when execute device_add and device_del alternately

When execute device_add and device_del alternately, qemu crashes:
[root@localhost coredump]# virsh qemu-monitor-command testvm --hmp 'device_add vfio-user-pci,socket=/var/run/cntrl,id=testdisk0'
[root@localhost coredump]# virsh qemu-monitor-command testvm --hmp 'device_del testdisk0'
[root@localhost coredump]# virsh qemu-monitor-command testvm --hmp 'device_add vfio-user-pci,socket=/var/run/cntrl,id=testdisk0'
[root@localhost coredump]# virsh qemu-monitor-command testvm --hmp 'device_del testdisk0'
[root@localhost coredump]# virsh qemu-monitor-command testvm --hmp 'device_add vfio-user-pci,socket=/var/run/cntrl,id=testdisk0'
error: Unable to read from monitor: Connection reset by peer
And the coredump stack as follows:

thread_all_bt.log
I have repetitioned for several times, and QEMU always crashes in flatview_destroy process.
oracle qemu branch: vfio-user-dbfix
spdk branch: V22.01
Has anyone ever encountered a similar issue? thanks a lot🙂

Is there an out-of-bounds memory access?

@saranzhou you'd better raise an issue at https://github.com/oracle/qemu, we don't maintain QEMU in this repository.
Aside from that, have you tested the latest version of vfio-user client sent by John Johnsons at qemu-devel?


Suricata rules with "flowbits:noalert" are blocked (false positive)

I've enabled the Suricata rule "emerging-trojan" and enabled "Change all alerts to drop actions".
This triggers a lot of false positives. It looks like I'm not the only one with this problem (https://forum.opnsense.org/index.php?topic=10198).
The offending rule is for example ID 2022317:
https://doc.emergingthreats.net/bin/view/Main/2022317
The rule specifies "flowbits:noalert". If I understand the folks at PT Research/EmergingThreats correctly, a rule with flowbits:nolert should not trigger an alert and should not be blocked (https://github.com/ptresearch/AttackDetection/issues/7).
The Suricata docs suggest the same:
https://suricata.readthedocs.io/en/suricata-4.1.2/rules/flow-keywords.html
flowbits: noalert
No alert will be generated by this rule.

Expected behavior
No alert or block should be triggered if flowbits:noalert is set.
Environment
OPNsense 19.1.4-amd64
FreeBSD 11.2-RELEASE-p9-HBSD
Suricata version 4.1.3 RELEASE

Just to be very sure, when changing this rule to alert you're not receiving events?
The rule in question is:
alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"ET TROJAN Zbot download config - SET"; flow:established,to_server; content:"GET"; http_method; content:".dat"; http_uri; content:!"Content-Type|3a|"; http_header; content:!"Referer"; http_header; pcre:"/\.dat$/U"; flowbits:set,ET.zbot.dat; flowbits:noalert; classtype:trojan-activity; sid:2022317; rev:2; metadata:created_at 2015_12_30, updated_at 2015_12_30;)

If it only happens on drops, we could probably just filter those out and leave them default.

https://github.com/opnsense/core/commit/6de00487f2053f9ef570c2aaf76d6c603aa5f8a5 should leave the noalert flowbits as is, to test:
opnsense-patch 6de0048
rm /usr/local/etc/suricata/rules/emerging-trojan.rules

And download again.

Looks good, with the patch everything works as expected. Thank you for the fast fix and the great support!

@xiic thanks for confirming

When we chose change action from alert to drop, would i see the alert on the Alert page ?
after the update i am not seeing the Alerts at all.

This patch only applies to rules containing flowbits:noalert; - those rules should neither be blocked nor trigger an alert. Before this patch there were a lot of false positive alerts.
Real dropped actions still trigger an alert on my system.


feature request: read multiple sheets from excel

I have a feature request. Looking at scanpy.api.read_excel, would it be possible to read an excel file that has multiple sheets, named 'expression', 'observations', and 'genes'? The sheets would be analogous to the the AnnData .X, .obs, and .var.
Here is an example
base_template.xlsx

Hi Dustin!
Thank you for providing a template. You can easily read that template in with two additional lines of code:
adata = sc.read_excel('./data/base_template.xlsx', sheet='expression').T
adata.obs = pd.read_excel('./data/base_template.xlsx', sheet_name='observations', index_col='observations')
adata.var = pd.read_excel('./data/base_template.xlsx', sheet_name='genes', index_col='gene_symbol')

I'm a bit hesitant to put all of this into sc.read_excel... it would add 4 new parameters and many people might not have organized their excel files this way? Or am I wrong with the last assumption? If it's something very common todo, I can add the two other lines and extend read_excel.
What do you think? Are the two further lines too much additional code?

Your example above works just fine. Thank you!
My template is not a universal standard, at least not to my knowledge. For my use case, I'm just trying to provide users a template to populate with their data. At upload I'll convert the xlsx into an AnnData object.
Thanks again!


Update fr_FR.lang

Added a lot of translations

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.

Hi @Aellyx
could you sign the CLA ?

Done ! Good luck with the game ! i'm dying to see it further in the devlopment .


Fixes issue #1501 - Add support for multi-releases Jar

This is a very naive implementation of the multi-release resource wrapper that probably needs some performance improvement. However, it is enough to load the Weld multi-release jar.
It still needs to change the Piranha Micro to use this wrapper
Fixes #1501

The implementation is not very performant because it tries each version from the current release until version 9, probably implementing a fast-path for versions 9 and 11 should help when there is a multi-release entry (these are the most used entries so far).
Maybe would be possible to cache all the multi-release entries, but this should have an increased memory consumption, so I'm having a hard time choosing the best way to improve the performance. I'm thinking of opening an issue to handle it later.


Chapter2_pymc2 does not work with the latest numpy

When I run the notebook for Chapter 2 on pymc2, it fails with the error below. It looks like current implementation is not compatible with numpy boolean subtract.
python version: 3.6
numpy version: 1.14.5
model = pm.Model([p, true_answers, first_coin_flips,
                  second_coin_flips, observed_proportion, observations])

# To be explained in Chapter 3!
mcmc = pm.MCMC(model)
mcmc.sample(40000, 15000)

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-36-aa3a84ff9334> in <module>()
      4 # To be explained in Chapter 3!
      5 mcmc = pm.MCMC(model)
----> 6 mcmc.sample(40000, 15000)

/usr/local/lib/python3.6/dist-packages/pymc/MCMC.py in sample(self, iter, burn, thin, tune_interval, tune_throughout, save_interval, burn_till_tuned, stop_tuning_after, verbose, progress_bar)
    277
    278         # Run sampler
--> 279         Sampler.sample(self, iter, length, verbose)
    280
    281     def _loop(self):

/usr/local/lib/python3.6/dist-packages/pymc/Model.py in sample(self, iter, length, verbose)
    249         # Loop
    250         self._current_iter = 0
--> 251         self._loop()
    252         self._finalize()
    253

/usr/local/lib/python3.6/dist-packages/pymc/MCMC.py in _loop(self)
    313                         print_('Step method %s stepping' % step_method._id)
    314                     # Step the step method
--> 315                     step_method.step()
    316
    317                 # Record sample to trace, if appropriate

/usr/local/lib/python3.6/dist-packages/pymc/StepMethods.py in step(self)
    908     def step(self):
    909         if ndim(self.stochastic.value):
--> 910             Metropolis.step(self)
    911         else:
    912

/usr/local/lib/python3.6/dist-packages/pymc/StepMethods.py in step(self)
    499
    500         # Sample a candidate value
--> 501         self.propose()
    502
    503         # Probability and likelihood for s's proposed value:

/usr/local/lib/python3.6/dist-packages/pymc/StepMethods.py in propose(self)
    967             switch_locs = where(rand_array < p_jump)
    968             if shape(new_value):
--> 969                 new_value[switch_locs] = True - new_value[switch_locs]
    970             else:
    971                 new_value = True - new_value

TypeError: numpy boolean subtract, the `-` operator, is deprecated, use the bitwise_xor, the `^` operator, or the logical_xor function instead.

I experienced the same issue.
A simple solution to get the code working is to downgrade numpy to version <= 1.13.3

Yea, I need to update the libs (all of them really) for the chapters

No other possible solution?


[Bug]: Problem with AWS Organizations Cloudtrail

Steps to Reproduce
I had this same issue with Prowler2 years ago but it looks like its back in Prowler3. My employer uses AWS Organizations which is an API to manage groups of accounts, and in addition to consolidated billing you get the ability to manage some services at the organization level (i.e. cross-account and cross-region). One of those services is Cloudtrail. When you create an organization level cloudtrail it will appear in every account and region so you know it exists but most of the CIS checks, for example, will fail because the Cloudwatch logs groups and/or S3 buckets being used by the organization trail usually exist in another account. So now I am running checks in the organization master account and they are all failing. In particular these checks:
cloudtrail_s3_dataevents_read_enabled
cloudtrail_s3_dataevents_write_enabled
cloudwatch_changes_to_network_acls_alarm_configured
cloudwatch_changes_to_network_gateways_alarm_configured
cloudwatch_changes_to_network_route_tables_alarm_configured
cloudwatch_changes_to_vpcs_alarm_configured
cloudwatch_log_metric_filter_and_alarm_for_aws_config_configuration_changes_enabled
cloudwatch_log_metric_filter_and_alarm_for_cloudtrail_configuration_changes_enabled
cloudwatch_log_metric_filter_authentication_failures
cloudwatch_log_metric_filter_aws_organizations_changes
cloudwatch_log_metric_filter_disable_or_scheduled_deletion_of_kms_cmk
cloudwatch_log_metric_filter_for_s3_bucket_policy_changes
cloudwatch_log_metric_filter_policy_changes
cloudwatch_log_metric_filter_root_usage
cloudwatch_log_metric_filter_security_group_changes
cloudwatch_log_metric_filter_sign_in_without_mfa
cloudwatch_log_metric_filter_unauthorized_api_calls

And because it is every single check I suspect there is a common source like someone discarding the organization (aka shadow) trails because the prowler results indicate no trails at all when in fact there is the one organizational trail.
For example:
prowler aws --role ${ROLEARN} --verbose --output-modes json --checks cloudtrail_s3_dataevents_read_enabled --log-level INFO --session-duration 3600

Gives the output:
Check ID: cloudtrail_s3_dataevents_read_enabled - cloudtrail [low]
	FAIL us-east-1: No CloudTrail trails have a data event to record all S3 object-level API operations.

However:
aws cloudtrail list-trails --profile xxx

{
    "Trails": [
        {
            "TrailARN": "arn:aws:cloudtrail:us-east-1:nnnnnnnnnn:trail/xxx-cloudtrail",
            "Name": "xxx-cloudtrail",
            "HomeRegion": "us-east-1"
        }
    ]
}

And:
aws cloudtrail get-event-selectors --profile xxx --trail-name xxx-cloudtrail
{
    "TrailARN": "arn:aws:cloudtrail:us-east-1:nnnnnnnnnn:trail/xxx-cloudtrail",
    "EventSelectors": [
        {
            "ReadWriteType": "All",
            "IncludeManagementEvents": true,
            "DataResources": [
                {
                    "Type": "AWS::DynamoDB::Table",
                    "Values": [
                        "arn:aws:dynamodb"
                    ]
                },
                {
                    "Type": "AWS::S3::Object",
                    "Values": [
                        "arn:aws:s3:::"
                    ]
                },
                {
                    "Type": "AWS::Lambda::Function",
                    "Values": [
                        "arn:aws:lambda"
                    ]
                }
            ],
            "ExcludeManagementEventSources": []
        }
    ]
}

Which clearly shows there is a cloudtrail and the S3 events are enabled.
And likewise:
prowler aws --role ${ROLEARN} --verbose --output-modes json --checks cloudwatch_changes_to_network_acls_alarm_configured --log-level INFO --session-duration 3600

Gives the output:
Check ID: cloudwatch_changes_to_network_acls_alarm_configured - cloudwatch [medium]
	FAIL us-east-1: No CloudWatch log groups found with metric filters or alarms associated.

However:
aws logs describe-metric-filters --profile xxx

...
        {
            "filterName": "cis-metrics-filters-NACLChangeFilter-6JK5C3TKOXF3",
            "filterPattern": "{\n  ($.eventName = CreateNetworkAcl) ||\n  ($.eventName = CreateNetworkAclEntry) ||\n  ($.eventName = DeleteNetworkAcl) ||\n  ($.eventName = DeleteNetworkAclEntry) ||\n  ($.eventName = ReplaceNetworkAclEntry) ||\n  ($.eventName = ReplaceNetworkAclAssociation)\n}",
            "metricTransformations": [
                {
                    "metricName": "NACLChanges",
                    "metricNamespace": "CloudTrailMetrics",
                    "metricValue": "1"
                }
            ],
            "creationTime":<PHONE_NUMBER>855,
            "logGroupName": "/cloudtrail/xxx-cloudtrail"
        },
...

So clearly the filter exists and is in place - but I am guessing that the organization trail is being filtered out, so Prowler can't link the filter to an active cloudtail.
Expected behavior
The checks should work for organization trails.
Actual Result with Screenshots or Logs
I can provide logs in private
How did you install Prowler?
Cloning the repository from github.com (git clone)
Environment Resource
Fargate task
OS used
Alpine Linux
Prowler version
Prowler 3.5.3 (it is the latest version, yay!)
Pip version
pip 22.3.1 from /opt/prowler/lib/python3.11/site-packages/pip (python 3.11)
Context
No response

Hi @zfLQ2qx2 this is weird since we not discard at all the shadow trails.
We will review this behaviour since it seems to be related with event selectors and other properties of the trails when we store it that information.

@n4ch04 I'm getting the result I described every time. What is the next move? I can send logs but if is going to contain account numbers and things like that I'd rather provide them in private.

Can you join our slack https://join.slack.com/t/prowler-workspace/shared_invite/zt-1x8u9938k-YI~FIBW3VQH~~qo1a5C~0w ?
Then write directly to me (Nacho Rivera)

Hi @zfLQ2qx2 we're closing this issue, please feel free to update it when you have time to review it and reopen it if you still have this issue with the latest released version of Prowler.
Thanks for using Prowler 🚀


Add a newline to pem blobs if one is not present

/fixes #504
I'm not sure where is the best place to put this routine.
The function I chose isn't technically limited to loading PEM files, but it's currently not used for anything else.
It's the only place I found where we'd only have to invoke the routine once.
The only actual change is in src/config/utils.rs  the rest are formatting changes.

@clux - Those were formatted with cargo +nightly fmt

@rrichardson
Removing other files from the PR like the following should be enough?
git reset HEAD~
git add kube/src/config/utils.rs
git restore . # restore other files
git commit
git push --force-with-lease

Other files should be formatted by GitHub Actions after merging. The rustfmt job failed last time for unknown reason.

Other files should be formatted by GitHub Actions after merging.

I thought I had seen GitHub Action formatting code and pushing commit when necessary, but I guess I misremembered (maybe it was from other repo).

If it's possible to do that, then that's great. Usually I have been doing a quick make fmt && git ci -m fmt after commits (since github stuff doesn't run on forks).
Turns out the stray formatting issues in there was my fault - had merged some prs and forgotten to do it.

Released in 0.53.0.


docs: fix build status badge to github actions

SUMMARY
Fixes README badge that was still linking to travis, updated to github actions
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Changes UI
[ ] Requires DB Migration.
[ ] Confirm DB Migration upgrade and downgrade tested.
[ ] Introduces new feature or API
[ ] Removes existing feature or API

Codecov Report

Merging #12251 (468a0a9) into master (a3bbbf8) will decrease coverage by 3.82%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #12251      +/-   ##
==========================================
- Coverage   67.11%   63.29%   -3.83%
==========================================
  Files         996      485     -511
  Lines       49176    29782   -19394
  Branches     4993        0    -4993
==========================================
- Hits        33006    18851   -14155
+ Misses      16047    10931    -5116
+ Partials      123        0     -123

Flag
Coverage Δ

cypress
?

javascript
?

python
63.29% <ø> (-0.93%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

superset/db_engines/hive.py
0.00% <0.00%> (-85.72%)
:arrow_down:

superset/databases/commands/create.py
32.65% <0.00%> (-59.19%)
:arrow_down:

superset/sql_validators/postgres.py
50.00% <0.00%> (-50.00%)
:arrow_down:

superset/db_engine_specs/hive.py
54.61% <0.00%> (-29.62%)
:arrow_down:

superset/views/database/mixins.py
59.64% <0.00%> (-22.81%)
:arrow_down:

superset/db_engine_specs/presto.py
70.56% <0.00%> (-12.78%)
:arrow_down:

superset/db_engine_specs/mysql.py
79.59% <0.00%> (-12.25%)
:arrow_down:

superset/databases/commands/update.py
85.71% <0.00%> (-8.17%)
:arrow_down:

superset/databases/dao.py
94.11% <0.00%> (-5.89%)
:arrow_down:

superset/views/database/validators.py
78.94% <0.00%> (-5.27%)
:arrow_down:

... and 532 more

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 a3bbbf8...468a0a9. Read the comment docs.

Codecov Report

Merging #12251 (468a0a9) into master (a3bbbf8) will decrease coverage by 3.82%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #12251      +/-   ##
==========================================
- Coverage   67.11%   63.29%   -3.83%
==========================================
  Files         996      485     -511
  Lines       49176    29782   -19394
  Branches     4993        0    -4993
==========================================
- Hits        33006    18851   -14155
+ Misses      16047    10931    -5116
+ Partials      123        0     -123

Flag
Coverage Δ

cypress
?

javascript
?

python
63.29% <ø> (-0.93%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

superset/db_engines/hive.py
0.00% <0.00%> (-85.72%)
:arrow_down:

superset/databases/commands/create.py
32.65% <0.00%> (-59.19%)
:arrow_down:

superset/sql_validators/postgres.py
50.00% <0.00%> (-50.00%)
:arrow_down:

superset/db_engine_specs/hive.py
54.61% <0.00%> (-29.62%)
:arrow_down:

superset/views/database/mixins.py
59.64% <0.00%> (-22.81%)
:arrow_down:

superset/db_engine_specs/presto.py
70.56% <0.00%> (-12.78%)
:arrow_down:

superset/db_engine_specs/mysql.py
79.59% <0.00%> (-12.25%)
:arrow_down:

superset/databases/commands/update.py
85.71% <0.00%> (-8.17%)
:arrow_down:

superset/databases/dao.py
94.11% <0.00%> (-5.89%)
:arrow_down:

superset/views/database/validators.py
78.94% <0.00%> (-5.27%)
:arrow_down:

... and 532 more

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 a3bbbf8...468a0a9. Read the comment docs.


Nothing Showing Up

Im on a 6s Plus running 15.5b4. don't know what's going on. It looked like everything worked fine, though, the tips app is still just the tips app with no pogo installed. Btw I'm not as skilled with some of the jailbreaking stuff as you all might be. This is just a secondary phone and I like messing around with jailbeaks and such. So if i don't know something simple that's why lol. Here is what was shown when I tried. ~ Thanks
hcndrxx@lildemon palera1n % ./palera1n.sh --debug
palera1n | Version 1.0.0-d8540c6
Written by Nebula | Some code and ramdisk from Nathan | Patching commands and help from Mineek | Loader app by Amy
Hello, iPhone8,2 on 15.5!
[] Switching device into recovery mode...
Telling device with udid<PHONE_NUMBER>729868e34ce6b6f0831137c553a31c to enter recovery mode.
Device is successfully switching to recovery mode.
[] Waiting for device to reconnect in recovery mode
[] Getting device info...
[] Press any key when ready for DFU mode
Get ready (0)
Hold volume down + side button (0)
Keep holding (0)
Release side button, but keep holding volume down (0)
[] Device entered DFU!
[] Pwning device
usb_timeout: 5
[IOKit] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227
CPID:8003 CPRV:01 CPFM:03 SCEP:01 BDID:06 ECID:001925681050EC26 IBFL:1C SRTG:[iBoot-2<IP_ADDRESS>.22]
Found the USB handle.
Stage: RESET
ret: true
[IOKit] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227
CPID:8003 CPRV:01 CPFM:03 SCEP:01 BDID:06 ECID:001925681050EC26 IBFL:1C SRTG:[iBoot-2<IP_ADDRESS>.22]
Found the USB handle.
Stage: SETUP
ret: true
[IOKit] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227
CPID:8003 CPRV:01 CPFM:03 SCEP:01 BDID:06 ECID:001925681050EC26 IBFL:1C SRTG:[iBoot-2<IP_ADDRESS>.22]
Found the USB handle.
Stage: PATCH
ret: true
[IOKit] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227
CPID:8003 CPRV:01 CPFM:03 SCEP:01 BDID:06 ECID:001925681050EC26 IBFL:1C SRTG:[iBoot-2<IP_ADDRESS>.22] PWND:[gaster]
Found the USB handle.
Now you can boot untrusted images.
[*] Booting device
[==================================================] 100.0%
[==================================================] 100.0%
[==================================================] 100.0%
[==================================================] 100.0%
[==================================================] 100.0%
[==================================================] 100.0%
[==================================================] 100.0%
[==================================================] 100.0%
Done!
The device should now boot to iOS
If you already have ran palera1n, click Do All in the tools section of Pogo
If not, Pogo should be installed to Tips

same. iphone8,4  15.7


How to Watermarks to Images in PDF

Hello,
Could you comment on whether the approach in #19 is still the best way to watermark images in a PDF? If so, would you mind please elaborating on how you'd do this?
Alternatively, if I add watermarks to an image before adding to the document, the image resizing distorts the watermarks.
Thanks for taking a look.

Apologies, I realize this question is better suited to your Stack Overflow tag.
Closing this issue in favor of:
https://stackoverflow.com/questions/63629436/how-to-add-watermarks-to-images-in-tppdf-document


Memory usage increase every load of an Image widget

We have observed increasing memory usage in one of our apps where we may display up to 10 images per visible page in a PageView widget. Upon further investigation in Observatory we could see the Image class is being retained when the page had either been swiped off screen (i.e. no longer visible) and other widgets disposed (e.g. video) -- OR -- when the page had been popped from navigation.
This occurs on both Android and iOS devices (e.g. Samsung Galaxy 7/iPad 9.7" 2018).
We have tried loading the image via different methods (asset, network and file) -- and stable versions of Flutter 1.5.4-hotfix.2, 1.7.8+hotfix.4 and 1.9.1+hotfix.6.

Example
Below is an example that routes to another page loading an image, then pop back to the main page. The Image is retained, and multiple push and pops appears to accumulate memory.
When GC is forced, the ImagePage class is collected, however Image is retained.
import 'package:flutter/material.dart';

void main() => runApp(MaterialApp(
  title: 'Flutter Demo',
  theme: ThemeData(
    primarySwatch: Colors.blue,
  ),
  home: App()
));

class App extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Image Test'),
      ),
      body: Center(
        child: Text('Image retained on navigation route'),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: () => Navigator.push(context, MaterialPageRoute(builder: (BuildContext context) => ImagePage())),
        child: Icon(Icons.folder_open),
      ),
    );
  }
}

class ImagePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Image.network('https://github.githubassets.com/images/modules/open_graph/github-octocat.png?t=${DateTime.now().millisecondsSinceEpoch}'),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: () => Navigator.pop(context),
        child: Icon(Icons.close),
      ),
    );
  }
}

Flutter
[✓] Flutter (Channel stable, v1.9.1+hotfix.6, on Mac OS X 10.14.5 18F203, locale en-AU)
    • Flutter version 1.9.1+hotfix.6 at /Users/cmengler/Documents/flutter-v1.9.1+hotfix.6
    • Framework revision 68587a0916 (6 weeks ago), 2019-09-13 19:46:58 -0700
    • Engine revision b863200c37
    • Dart version 2.5.0

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
    • Android SDK at /Users/cmengler/Documents/Android/Sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.0
    • ANDROID_HOME = /Users/cmengler/Documents/Android/Sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.1, Build version 11A1027
    • CocoaPods version 1.7.3

[✓] Android Studio (version 3.4)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 37.0.1
    • Dart plugin version 183.6270
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[✓] VS Code (version 1.39.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.5.1

[✓] Connected device (1 available)
    • SM G930F • ce12190cb3e9bddb0c • android-arm64 • Android 8.0.0 (API 26)

• No issues found!

The image objects are being held by Flutter's image cache (https://api.flutter.dev/flutter/painting/ImageCache-class.html)
In the example app, the image's URL contains a timestamp and changes each time the image is loaded.  The ImageCache will consider the different URLs to be different images and will add a new entry for each new URL.

Thanks for pointing this out @jason-simmons -- I missed the reference to ImageCache in the documentation :)
Closing issue, I can confirm GC cleans up images when evicted/cleared from the global imageCache.


[Theme Request] add leuven theme

leuven theme https://github.com/fniessen/emacs-leuven-theme is a really nice light theme out there for emacs. Please consider adding this to doom themes. thanks!

Any updates on this?

hi, is there any updates?

hi, is there any updates?

Oh, I try (setq doom-theme 'leuven), and it works. Surprise!


microcodeIntel: 20191113 -> 20191115

Motivation for this change
https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/releases/tag/microcode-20191115
cc #73383 and related.
Backport please!
Things done

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

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

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

Keeping up with their microcode changes is like a dayjob in itself :stuck_out_tongue:

Tested on 19.09 and works for me on an 8700k.
[    0.000000] microcode: microcode updated early to revision 0xca, date = 2019-10-03

The date seems off, but that's probably due to Intels release process. It clearly updated the microcode though.

Backported to 19.09: ca9f709fd0b8535261234e6eb5d2020aaf1a2c61


Pinecone index dimensions

What are the index dimensions when creating Pinecone index?

What are the index dimensions when creating Pinecone index?

https://docs.pinecone.io/docs/choosing-index-type-and-size#dimensionality-of-vectors

The magic number 1536 mentioned here
Reference
https://docs.pinecone.io/docs/langchain

The number must be 1287+249 which equals exactly 1536 dimensions ;)

The langchain docs mention 1536 but it is not a magical number, more details are found here: https://www.pinecone.io/learn/openai-embeddings-v3/


We need to do something about these feature tests

Seriously. I'd reckon that 50% of our CI runs fail due to this. Dunno what happened to make these flakier. EIM seems like a good time to address this.
Previous notes:

#11858
#8534
#15106

We're definitely correctly waiting on the conhost / openconsole process to start. It's just that some percent of the time, it still just fails to re-open the stdout handle and attach to that console. Crazy.

I spend some time digging into this.

We're definitely correctly waiting on the conhost / openconsole process to start.

I can confirm this. Every call to freopen_s is reaching the new spawned openconsole properly. It invokes two calls inside openconsole, first CONSOLE_IO_CLOSE_OBJECT and then CONSOLE_IO_CREATE_OBJECT inside IoSorter.cpp.
@zadjii-msft We can't see what raw ioctl reply is received by the application, can we? I'm assuming this is implemented within ConsoleApi*.h which is not part of this repository.

More details:
Even the first call to freopen_s within the sleep (for)  loop makes it to the newly spawned console, which indicate that sleep shouldn't be required for 'wait for console to get ready'.
It just that the new handles that were created/returned by the conhost are sometimes valid, sometimes not. Seems like a magic so far 🤔.
Removing these lines is enough to stop tests from failing 100% of the time out of my 30 min of testing it with 'run until failure' (though I now don't know how to stop a test that passes all the time 😂, had to close VS)
https://github.com/microsoft/terminal/blob/821ae3af2d311350fbfaa4c77af09858488681e9/src/host/ft_host/InitTests.cpp#L256-L259
We could get rid of the whole sleep loop, since I tested with/without it and it worked regardless.
This led me to believe that our ObjectHandleData create/destroy is busted somewhere, surety level: negative.
If someone could confirm these, I'd be happy to raise a PR proposing these changes.

One more thing. A huge one.
The testhost surprisingly is not a console app, so the new handle that is created is not set as standard handle by ucrt, and is not a standard handle. Whatever GetStdHandle returns is old and very well a wrong handle. I'm sure we didn't expect that 😅.

Just to give an idea, here is where it checks if SetStdHandle needs to be called for the new handles.
In ucrt/lowio/osfinfo.cpp:

_query_app_type() returns _crt_app_unknown and skips the if body.


Optimization: Bytecode dispatching via function pointers

Currently wasmi bytecode is organized as a simple enum for every wasmi bytecode operator.
A subset of those operators look like the following:
pub enum Instruction {
    GetLocal { local_depth: u32 },
    Br(Target),
    BrTable { len_targets: usize },
    Unreachable,
    Return(DropKeep),
    Call(FuncIdx),
    I32Load(Offset),
    Const(UntypedValue),
    I32Add,
    // etc ...
}

When executing a wasmi bytecode function we simply traverse its internal slice of Instruction and have a giant match over all Instruction variants and then dispatch to the respective execution handler.
This match procedure could be removed by embedding the execution handler directly into the wasmi bytecode via function pointers.
For this to work we need to split Instruction into a handler and data part where handler is the function pointer to the handler function and data is a generic data enum.
The problem with such a generic data enum is that we'd end up with just another match and would win nothing in the end. Therefore we actually want or need a generic data union. While this is unsafe we can interpret this generic data union as the correct data in the respective handler function.
Therefore such as new wasmi bytecode Instruction type would look something like this:
/// Generic set of parameters for `wasmi` bytecode instructions.
///
/// The respective instruction dispatch handler is responsible to
/// select the correct instruction parameter variant out of the `union`.
#[derive(Copy, Clone)]
union InstructionParams {
    /// Used by any instruction that does not have inputs.
    none: (),
    /// Used by `local.get`, `local.set` and `local.tee`.
    local_depth: u32,
    /// Used by `br`, `br_if_eqz` and `br_if_nez`.
    target: Target,
    /// Used by `return`.
    drop_keep: DropKeep,
    /// Used by `br_table`.
    len_targets: usize,
    /// Used by `call`.
    func_idx: FuncIdx,
    /// Used by `call_indirect`.
    signature_idx: SignatureIdx,
    /// Used by `global.get` and `global.set`.
    global_idx: GlobalIdx,
    /// Used by all the linear memory `load` and `store` operations.
    offset: Offset,
    /// Used by `{i32,i64,f32,f64}.const`.
    value: UntypedValue,
}

/// Handles instruction disptach.
type InstructionHandler = fn(&InstructionParams) -> Result<(), TrapCode>;

/// A `wasmi` instruction consists of its dispatch handler and its parameters.
pub struct Instruction {
    /// The instruction dispatch handler.
    handler: InstructionHandler,
    /// The parameters of the instruction if any.
    params: InstructionParams,
}

Drawbacks

This will cause the Instruction type to require more stack space which could in the worst case even degrade performance.
Also this approach will introduce plenty of unsafe Rust code, however, we can encapsulate this unsafe code pretty well into those handler functions since it is mainly required for selecting the respective InstructionParams variants out of the union set of possibilities.
It is not yet clear to me how we can handle the very fast dispatch handling for instructions that may bail out of the hot instruction scheduling such as call, call_indirect and return. Currently they are inlined into the big match expression which leads to very efficient codegen, however, due to the generic interface enforced by the InstructionHandler function pointer we can no longer return arbitrary values in these handler easily which makes this pattern impossible. More elaborate thinking needed here. If we had guaranteed tail call optimization in Rust we could solve this problem using tail call based instruction scheduling.

Advantages

Once Rust supports guaranteed tail call optimizations this new wasmi bytecode format would make it very simple to use a tail call based dispatching strategy which is known to be superior to the current dispatching routines.
This paper from the WAMR authors shows a 7% performance improvement using this dispatching technique.

This GitHub Gist shows an example of how tail calls could be achieved using this dispatch architecture.

Another reason why this optimization might yield useful results is that our current bytecode definition that is based on an enum is 16 bytes in size where 8 of those 16 bytes resemble the tiny enum discriminant which could ideally fit in just a single byte. Therefore we have a very wasteful overhead of 7 bytes in total per wasmi instruction.
If instead of enum discriminants we store function pointers directly to the handlers of the respective wasmi instruction we'd still use the same 16 bytes per instruction but could remove one indirect branch via the giant match in the interpeter's hot path to dispatch to the respective wasmi instruction handler since the pointer is already given directly.

I created this proc. macro crate that generates code according to the idea of this issue: https://github.com/Robbepop/union-fn
There are also some interpreter based benchmarks to compare performance: https://github.com/Robbepop/union-fn/tree/main/benches
The benchmarks results are sad: https://github.com/Robbepop/union-fn/pull/4
The clear indication is that this trick will only work (if at all) if Rust supports guaranteed tail calls. Without guaranteed tail calls we will always end up with better performance with our current simple loop+match instruction dispatch technique.

I usually do not link to youtube videos but this one is really foundational to optimization of interpreter logic and I want to conserve it by referncing the talk in this issue: https://www.youtube.com/watch?v=EIVZwHrJLLk
The presenter clearly demonstrates why we ideally want to have guaranteed tail calls in Rust.

The approach proposed by this issue is also called direct-threaded interpreter architecture.
My own research as well as some (old) scientific papers suggest that this approach is not superior to so-called indirect-threaded interpreter dispatch architecture.
Therefore I think it is okay to close this issue. If new findings indicate that this conclusion might be incorrect, we can simply reopen.


Add protonmail

Currently missing.

done: https://github.com/jaegeral/companies-hiring-security-remote/commit/7c214653ca3429952849d8ffef0538955962d4d2


Can't automate thing based on humidity from Xiaomi Aqara Temperature Humidity Sensor

When I'm trying to create some automation Aqara Sensor give s me only battery value. Can I get humidity and temperature data somehow?

I experience the same in the latest SmartThings app for Android (1.17.47-22), but in the app for iOS it is still working fine. So it seems to be a bug in this specific version of the app, not the device handler

Tried an old classic app. Works ok.


Fetch updates across child collectives

@znarf when you have a chance, can you look into why the tests aren't even starting?
This is the error message (never seen it before):
Starting container circleci/node:10.3.0
  image cache not found on this host, downloading circleci/node:10.3.0

  Error pulling image circleci/node:10.3.0: Error response from daemon: received unexpected HTTP status: 503 Service Unavailable... retrying
  image cache not found on this host, downloading circleci/node:10.3.0

Error response from daemon: received unexpected HTTP status: 503 Service Unavailable

Coverage decreased (-0.01%) to 69.652% when pulling 58bbf0d78fbca5721e2dfc957963974a99b4676f on updates into e8f7fa8b7998f4ac8db585e6653a1cc2ab343d3b on master.

@xdamman do you want to merge that now that tests are passing?

@xdamman should we merge or forget about that?

Lack of activity closing.


Manual upload handler clarity

The onDrop function is used as the handler for both the drop and click upload actions. The handler name slightly conflicts across actions, so I wasn't sure if there was an undocumented handler for the manual open action. When I looked at the source I could see that onDrop was used for both.
As a developer I think I would have found it useful to see that the onDrop handler was also the completion handler for the manual open action so I added it to the README.
Thanks for the lib its great! ❤ ❤ ❤

I will make a PR on the gh-pages branch also :)


Release Google.Cloud.Security.PrivateCA.V1Beta1 version 2.0.0-beta02

Changes in this release:
New features

Enable REST transport in C# (commit f6a1c3e)

Created release for Google.Cloud.Security.PrivateCA.V1Beta1-2.0.0-beta02


[🐛] App crashed after select Video from Library in iOS 13

Description
Getting this error after select Video from Library in iOS 13. App crashed at function didFinishPickingMediaWithInfo.
"Error returned from daemon: Error Domain=com.apple.accounts Code=7 "(null)""

How to repeat issue and example

Use this options for Video selection:
{
"durationLimit": 600,
"maxHeight": 1000,
"maxWidth": 1000,
"mediaType": "video",
"quality": 1,
"videoQuality": "low"
}
Choose Video from Library
Showing Video viewer screen
Tap on 'Choose' and compress video
App crashed

Additional Information

Image Picker version: 4.0.3
React Native version: 0.63
Platform: iOS
Development Operating System: MacOS
Dev tools: Xcode 12.4

Happening this to me as well.

Can confirm this is happening on v4.0.4

Hi Naveen,
I have submitted my fixes and now still waiting for code review.You can check this pull request #1743
Have a good day.
Best Regards,Vivian Lee
On Tuesday, 29 June 2021, 09:42:29 am MYT, Naveen Cooray<EMAIL_ADDRESS>wrote:

Happening this to me as well.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Hi Naveen, I have submitted my fixes and now still waiting for code review.You can check this pull request #1743 Have a good day. Best Regards,Vivian Lee On Tuesday, 29 June 2021, 09:42:29 am MYT, Naveen Cooray @.***> wrote: Happening this to me as well. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Thanks @vivianlys90! Will check that out

Same here, can confirm this is happening on 4.0.4

I am still having issue any solution

I have submitted PR for this issue, but still waiting for code merge. #1743

when I picked a video in Android
APP crashed in recently
react–native 0.59.1
react–native–image–picker 0.28.1
so I set option mediaType:'photo'
but I still can choose video
I try to make the most simple option
and I find remove the option 'quality'
that can solve crash
but no 'quality' upload image is too slow
hope having a best solution

when I picked a video in Android
APP crashed in recently
react–native 0.59.1
react–native–image–picker 0.28.1
so I set option mediaType:'photo'
but I still can choose video
I try to make the most simple option
and I find remove the option 'quality'
that can solve crash
but no 'quality' upload image is too slow
hope having a best solution

:tada: This issue has been resolved in version 4.6.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Added link to the app registration redirect uri section

The details of the app registration are in a separate page, added link to the relevant section to make it easier to navigate to the page and discover information.

Microsoft authors of articles need to make updates through the private repository so the updates can be staged and validated by the current validation rules. After you review staging and fix all validation issues, you can add the sign-off comment to let the PR reviewers know the updates are ready to be merged.It's easy to access the private repo version of your articles in GitHub. Just add -pr to the URL, as follows:
Public repo URL: https://github.com/MicrosoftDocs/{docs-repo}
Private repo URL: https://github.com/MicrosoftDocs/{docs-repo-pr}
We have closed this pull request. Please resubmit the updates through the private repo. For more information, [see the contributor guide].(https://docs.microsoft.com/en-us/contribute/)


this can use autolayout?

hi,this can use auto layout

Yes, it surely can.
Though, you might have to handle rotation. The number of buttons shown changes when orientation changes.
If you are interested, fork this project and open a pull request when you are done.


yarn start not working

I am just setting up this app and yarn dev works fine but yarn start returns
missing tasks in project
could not find task start in project
What does this mean if anyone has any idea?

Please see https://docs.medusajs.com/learn/build on how to run production builds

I'm also curious about this, and I'm not really following where to run npx medusa build command? If I run it from apps/backend I will be getting Cannot find module '@starter/types' or its corresponding type declarations..
And from root it won't work, there's no tsconfig.json file.

You need "start": {} in turbo.json even if it's empty, and (with optional filter) npx turbo run start -- --filter=backend if you want to start only backend. These is basic stuff for deployment, should be documented.


Alert does not show icon image after update!

Please check it again.

Hello,
Could you provide more information? What is not working? Which icon and in which version it's broken? Also if you can share some code, it would be better.

My mistake, now it's working. Thanks!


python311Packages.lightning-utilities: 0.9.0 -> 0.10.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python311Packages.lightning-utilities is: Common Python utilities and GitHub Actions in Lightning Ecosystem
meta.homepage for python311Packages.lightning-utilities is: https://github.com/Lightning-AI/utilities
meta.changelog for python311Packages.lightning-utilities is: https://github.com/Lightning-AI/utilities/releases/tag/v0.10.0
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.10.0 with grep in /nix/store/x0nrgb3waqwnjpx24dib747cbnagf226-python3.11-lightning-utilities-0.10.0
found 0.10.0 in filename of file in /nix/store/x0nrgb3waqwnjpx24dib747cbnagf226-python3.11-lightning-utilities-0.10.0

Rebuild report (if merged into master) (click to expand)

13 total rebuild path(s)

13 package rebuild(s)

First fifty rebuilds by attrpath
piper-train
python310Packages.elegy
python310Packages.lightning-utilities
python310Packages.pytorch-lightning
python310Packages.rising
python310Packages.torchmetrics
python310Packages.treex
python311Packages.elegy
python311Packages.lightning-utilities
python311Packages.pytorch-lightning
python311Packages.rising
python311Packages.torchmetrics
python311Packages.treex

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/x0nrgb3waqwnjpx24dib747cbnagf226-python3.11-lightning-utilities-0.10.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python311Packages.lightning-utilities https://github.com/r-ryantm/nixpkgs/archive/b571b72879f22fc46a7b32755ca5640452fc336c.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/b571b72879f22fc46a7b32755ca5640452fc336c#python311Packages.lightning-utilities

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/x0nrgb3waqwnjpx24dib747cbnagf226-python3.11-lightning-utilities-0.10.0
ls -la /nix/store/x0nrgb3waqwnjpx24dib747cbnagf226-python3.11-lightning-utilities-0.10.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review took longer than 45m and timed out

Maintainer pings
cc @mweinelt for testing.

Result of nixpkgs-review pr 268241 run on x86_64-linux 1

10 packages marked as broken and skipped:

piper-train
piper-train.dist
python310Packages.elegy
python310Packages.elegy.dist
python310Packages.treex
python310Packages.treex.dist
python311Packages.elegy
python311Packages.elegy.dist
python311Packages.treex
python311Packages.treex.dist

16 packages built:

python310Packages.lightning-utilities
python310Packages.lightning-utilities.dist
python310Packages.pytorch-lightning
python310Packages.pytorch-lightning.dist
python310Packages.rising
python310Packages.rising.dist
python310Packages.torchmetrics
python310Packages.torchmetrics.dist
python311Packages.lightning-utilities
python311Packages.lightning-utilities.dist
python311Packages.pytorch-lightning
python311Packages.pytorch-lightning.dist
python311Packages.rising
python311Packages.rising.dist
python311Packages.torchmetrics
python311Packages.torchmetrics.dist