Error when downloading headers

I'm getting the following error when I'm installing node-gyp:
gyp ERR! stack Error: 404 response downloading https://nodejs.org/download//v8.1.1/node-v8.1.1-headers.tar.gz

See #1230, #1231, #1232 and #1233.  I'll leave this issue open for a while in the hope that it stops the duplicates.
tl;dr use npm install --dist-url https://nodejs.org/download/release

Should be okay now that https://github.com/nodejs/build/pull/759 is in place.  You'll still want to upgrade to v8.1.2 when it comes out later today / tomorrow.

Ah sorry for the duplicate, this is also caused by the fact that the laster Node Docker image is using 8.1.1.


Function 2: get_polls_from_user(user_id, num=5)

Write the function
Test the function

My branch for this function code can be found here: https://github.com/UBC-MDS/tweepypoll/tree/python_get_polls_from_users

Updates:

[ ] Number of polls: When using Client.get_users_tweets, it will return maximum 100 most recent tweets of the user per request (note: with our account, the maximum number of tweets we can pull is 3200). On the other hand, majority of tweets do not have a poll. Hence, I settle to just include the 100 most recent tweets; and a lot of times there will be no poll_id returned.
[ ] Can't use environmental variable for bearer_token yet


Switching to embed.FS broke hot-reload of templates

After this commit, hot-reloading of templates is no longer working since the files are now embedded rather than being read on-demand.

Fixed: https://github.com/mikestefanello/pagoda/commit/81c65fcc30ce42f39159f05184c4d3e38ada8f07


fix: feature result shall not ignore failing scenario

Currently, the result of a feature reflects the result of its last scenario. That is not always correct.
Example:

First scenario: failed
Second scenario: passed
Feature: passed

In this example, I would have expected the feature to be failed as well.
This PR changes that behavior. A feature is only passed when all its scenarios are passed, otherwise it failed.

This issue will also be addressed by the refactor in #104. I've confirmed that it works over there, so closing this PR.


⚠ Spryr has degraded performance

In 70b82b5, Spryr (https://spryr.com) experienced degraded performance:

HTTP code: 200
Response time: 6098 ms

Resolved: Spryr performance has improved in ef218a8 after 12 minutes.


Stac 8556 nagios molecule test

What does this PR do?
Added molecule tests for Nagios check.

looks good @hruhek, 2 small comments
we also need to merge the agent-integration PR and we can bump the integration deps in the agent to master


Adding capability to set serviceAccountName through flags

Pull request

What this PR does / why we need it
In this feature, serviceAccountName is added as a flag and can be used in create/update/apply commands.
To delete serviceAccountName from workload, the flag should be set to "" or ''
E.g.

tanzu apps workload create rmq-sample-app --git-repo https://github.com/jhvhs/rabbitmq-sample --git-branch main --type web --service-account myServiceAccount -y
tanzu apps workload apply rmq-sample-app --service-account myServiceAccountUpdated -y // When retrieving the workload, the new service account name should be 'myServiceAccountUpdated'
tanzu apps workload update rmq-sample-app --service-account "" -y // Should delete serviceAccountName from workload

Which issue(s) this PR fixes

Fixes #83
Describe testing done for PR

Added unit test
Tested in local cluster

Additional information or special notes for your reviewer

Signed-off by: Wendy Arango<EMAIL_ADDRESS>

What this PR is missing

Shorthand for --service-account as mentioned in issue (--sa)
Usage string for new flag (missing design)


fix: Auto teleport tooltip

PR Type

[x] Bugfix
[ ] Feature
[ ] Refactoring

Context

use tippy instate of NeoTooltip

fixed vertical margins

renamed file from AutotelportTooltip to AutotelportPopever

[x] Closes #8820

[x] Closes #8451

Did your issue had any of the "$" label on it?

[x] Fill up your DOT address: Payout

Community participation

[x] Are you at KodaDot Discord?

Screenshot 📸

[x] My fix has changed something on UI;

@exezbcz please review

is v-tippy better than NeoTooltip? should we use only one of the tooltip component?

first time using v-tippy , so idk , seems to be better in some aspects but we are only using it in 3 places
The only reason I ended up using v-tippy it's because I couldn't get the same behaviour using the oruga component.
using only one would good  idea though

yup looks good thanks!
one issue i came across is this now. Not sure if related to the deploy, but this does not seem right

seems like its also a canary issue
the autoteleport should not be active
my address:
14JipEfjkyFEe4jRViuqFomLPBz96SEXKGcYVkCcfqbAqAxU
nft:
https://canary.kodadot.xyz/ahp/gallery/50-533

yup looks good thanks!

@exezbcz can you add the visual ok tag
thanks ;D

Thanks!
pay 30 usd

😍 Perfect, I’ve sent the payout
💵 $30 @ 8.58 USD/DOT ~ 3.497 $DOT
🧗 13QUj3pZyFNfYj4AM336hRdyLQbevj5H3sR4PKmLEXLdwZhh
🔗 0xb96543f954d0b07062092e7f3bfdb7b86fa852db0d12e6973ec4f3abadc9b0af
🪅 Let’s grab another issue and get rewarded!
🪄 github.com/kodadot/nft-gallery/issues


Create Project is breaking in middle

Hi Team,
When trying to create project using DemoGenerator , process get initiate but it fails in between.
With no error details.
Could you please have a look into this issue.
Regards,
Shivam
AB#3793

Hi @shukla2020, thank you for reaching us.
Please let us know which template you have used, and in the meantime did you try again to provision the same template?

we verified all the templates and everything looks fine. This looks like an intermittent issue, kindly try again.


make stub-country pretend to be more countries in joint

Will doesn't work here any more, and Joint is no longer an environment. Closing.


Update planner to use pipeline even for the first deployment when alwaysUsePipeline was configured

What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Does this PR introduce a user-facing change?:

NONE

/lgtm

Nice
/approve

/changelog


The maximum length limit of %Library.Vector

I noticed that the length of %Library.Vector does not specify a clear upper limit, but when I try to insert a particularly large embedded value (dimension 66000), the SQL statement will report an error. Is this related to my server configuration?

No, there is a limit of ~64000 elements for the underlying datatype, which is not meant to be configurable. We will add this to the documentation and consider a compile-time warning. Thanks for bringing this up!


Auto-redirect port 80 to 443

When you enter nothing as protocol and you arrive on port 80, you should be re-directed automatically to port 443

Test code proves it's not the correct way to do this in CherryPy because you needed to start a second server, just for the forwarding.  This is too much overhead.
It can easily be done with the firewalld setting to do port forwarding.
Hence, issue closed and will not be implemented.

https://www.linode.com/docs/security/firewalls/introduction-to-firewalld-on-centos/


Documentation links not working

None of the local links in the https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md file work.

Thanks, we're aware and we were discussing it on today's call. We have agreed what we need to do to fix.

Same for version 3.0.1.

It affects all the markdown files, same cause.

We discussed this in the March 9th meeting and decided to fix these things in place.  @webron was going to figure out the exact logistics, which has not happened by the time I commented in the agenda for the April 27th meeting.  AFAIK, this last detail was not resolved.
One difficulty was the range of PRs from various people that needed tweaks, but the PR submitters had moved on due to lack of activity.
Since it's been a good 6 months without movement, I'm going to consolidate the PRs myself.

Consolidating all broken link issues into issue #3054 and PR #3408


CFRG FROST compatibility

The CFRG is currently working to specify an interoperable version FROST. As this project implements FROST as the threshold Schnorr signature variant, I'm curious to know if there's interest in aligning the implementation with the specification. This issue tracks that interest (or lack thereof). =)

because bip340 uses the unusual/weird x-only pubkey encoding, there is little hope for compatibility, right? @chris-wood @jesseposner


Not an issue... a question

Where did you get those SWEET animated tokens from?

(read the README)
https://github.com/Moerill/mess#atribution


CAMEL-17780: camel-elasticsearch - Add doc about the SB component

Related to https://issues.apache.org/jira/browse/CAMEL-17780
Motivation
A new component camel-elasticsearch-starter is available, and we would like to have the corresponding doc about it.
Modifications:

Add the doc section about the corresponding starer
Replicate the doc related to the configuration of the sniffer

Waiting for https://github.com/apache/camel-spring-boot/pull/630


2019/05/26 01:14:55 Rate limit reached, sleeping for 10 seconds...

Is google putting the smack down on this uploader, or is this just me?
2019/05/26 01:14:55 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:15:05 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:15:16 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:15:26 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:15:36 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:15:46 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:15:56 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:16:06 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:16:16 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:16:26 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:16:36 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:16:46 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:16:56 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:17:06 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:17:17 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:17:27 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:17:37 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:17:47 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:17:57 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:18:07 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:18:17 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:18:27 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:18:37 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:18:47 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:18:57 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:19:07 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:19:17 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:19:27 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:19:37 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:19:47 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:19:57 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:20:08 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:20:18 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:20:28 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:20:38 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:20:48 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:20:58 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:21:08 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:21:18 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:21:28 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:21:38 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:21:48 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:21:58 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:22:08 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:22:18 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:22:28 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:22:38 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:22:48 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:22:59 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:23:09 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:23:19 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:23:29 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:23:39 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:23:49 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:23:59 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:24:09 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:24:19 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:24:29 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:24:39 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:24:49 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:24:59 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:25:09 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:25:19 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:25:30 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:25:40 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:25:50 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:26:00 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:26:10 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:26:20 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:26:30 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:26:40 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:26:50 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:27:00 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:27:10 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:27:20 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:27:30 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:27:40 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:27:50 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:28:00 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:28:10 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:28:20 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:28:31 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:28:41 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:28:51 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:29:01 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:29:11 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:29:21 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:29:31 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:29:41 Rate limit reached, sleeping for 10 seconds...
2019/05/26 01:29:51 Rate limit reached, sleeping for 10 seconds...

Create your own App in Google Console and use the given app credentials

By the way, I would recommend, to expand the sleeping time to 60 seconds.
Because on page https://developers.google.com/photos/library/guides/best-practices it's mentioned, that the client should wait 30 seconds.

For 429errors, the client may retry with minimum 30 s delay. For all other errors, retry may not be applicable. Ensure your request is idempotent and see the error message for guidance.

And with this client 5 threads are running in parallel, so my advise is to expand it to 60 seconds. When I made this change I had the feeling that I do not get to much errors anymore.

This should be addressed at https://github.com/gphotosuploader/google-photos-api-client-go/issues/8. It's this package which is responsible of it.


feature(feature): set bundle features in legacy

duplicates the setBundlesFeature in the legacy code

@ianwremmel  Thanks ian i made the necessary changes


Performance improvement in SPI

Chaning the spi_set_format call in my_spi_init to use SPI_CPHA_1 seems to bring about a 10% improvement in performance.

I'm surprised that works at all. ChaN says

SPI mode 0 (CPHA=0, CPOL=0) is the proper setting to control MMC/SDC, but mode 3 (CPHA=1, CPOL=1) also works as well in most case.

but you're using mode 1? He doesn't cite his source, unfortunately. I looked at SD Specifications, Part 1, Physical Layer Specification, Version 3.01, February 18, 2010, and I couldn't find any mention of the SPI mode, and the bus timing diagrams are omitted in the simplified (free) versions of the SD Physical Layer specification. The Simplified Specifications are a subset of the complete SD Specifications, which I don't have. If you have access to the full Specifications, you might want to check whether SPI mode 1 operation is compliant.

I made the change based on looking at the rp2040 datasheet and scope views. I originally did it for the noOs version of the code to get that little extra performance I needed.
Get Outlook for Androidhttps://aka.ms/AAb9ysg

From: Carl J Kugler III @.>
Sent: Saturday, January 13, 2024 12:44:00 AM
To: carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico @.>
Cc: Tom @.>; Author @.>
Subject: Re: [carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico] Performance improvement in SPI (Issue #27)
I'm surprised that works at all. ChaN sayshttp://elm-chan.org/docs/mmc/mmc_e.html#spimode
SPI mode 0 (CPHA=0, CPOL=0) is the proper setting to control MMC/SDC, but mode 3 (CPHA=1, CPOL=1) also works as well in most case.
but you're using mode 1? He doesn't cite his source, unfortunately. I looked at SD Specifications, Part 1, Physical Layer Specification, Version 3.01, February 18, 2010, and I couldn't find any mention of the SPI mode, and the bus timing diagrams are omitted in the simplified (free) versions of the SD Physical Layer specification. The Simplified Specifications are a subset of the complete SD Specifications, which I don't have. If you have access to the full Specifications, you might want to check whether SPI mode 1 operation is compliant.
—
Reply to this email directly, view it on GitHubhttps://github.com/carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico/issues/27#issuecomment-1890330197, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADNHM6ADQORBNJCZ2SXKDATYOINKBAVCNFSM6AAAAABBYRM3UKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQGMZTAMJZG4.
You are receiving this because you authored the thread.Message ID: @.***>

Quick question.  Have you gotten this to work with pico-w doing tcp? If you have an example that would be great. I've been pulling my hair out for days.
Get Outlook for Androidhttps://aka.ms/AAb9ysg

From: Carl J Kugler III @.>
Sent: Saturday, January 13, 2024 12:44:00 AM
To: carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico @.>
Cc: Tom @.>; Author @.>
Subject: Re: [carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico] Performance improvement in SPI (Issue #27)
I'm surprised that works at all. ChaN sayshttp://elm-chan.org/docs/mmc/mmc_e.html#spimode
SPI mode 0 (CPHA=0, CPOL=0) is the proper setting to control MMC/SDC, but mode 3 (CPHA=1, CPOL=1) also works as well in most case.
but you're using mode 1? He doesn't cite his source, unfortunately. I looked at SD Specifications, Part 1, Physical Layer Specification, Version 3.01, February 18, 2010, and I couldn't find any mention of the SPI mode, and the bus timing diagrams are omitted in the simplified (free) versions of the SD Physical Layer specification. The Simplified Specifications are a subset of the complete SD Specifications, which I don't have. If you have access to the full Specifications, you might want to check whether SPI mode 1 operation is compliant.
—
Reply to this email directly, view it on GitHubhttps://github.com/carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico/issues/27#issuecomment-1890330197, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADNHM6ADQORBNJCZ2SXKDATYOINKBAVCNFSM6AAAAABBYRM3UKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQGMZTAMJZG4.
You are receiving this because you authored the thread.Message ID: @.***>

I made the change based on looking at the rp2040 datasheet and scope views. I originally did it for the noOs version of the code to get that little extra performance I needed.

How are you measuring the performance improvement? I can't imagine how changing the phase could significantly change the throughput unless you are also increasing the baud rate.

No baud rate increase. Writing data to the file and get usec time at start and end. Pretty simple. I am running at 25mhz exactly.  Tested on 5 different cards from several different manufacturers.
When I find some free time I'll hook up the scope again and do a capture and send it along.
Get Outlook for Androidhttps://aka.ms/AAb9ysg

From: Carl J Kugler III @.>
Sent: Saturday, January 13, 2024 1:14:39 PM
To: carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico @.>
Cc: Tom @.>; Author @.>
Subject: Re: [carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico] Performance improvement in SPI (Issue #27)
I made the change based on looking at the rp2040 datasheet and scope views. I originally did it for the noOs version of the code to get that little extra performance I needed.
How are you measuring the performance improvement? I can't imagine how changing the phase could significantly change the throughput unless you are also increasing the baud rate.
—
Reply to this email directly, view it on GitHubhttps://github.com/carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico/issues/27#issuecomment-1890651237, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADNHM6H777SQJIKZCBWDMFTYOLFI5AVCNFSM6AAAAABBYRM3UKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQGY2TCMRTG4.
You are receiving this because you authored the thread.Message ID: @.***>

No baud rate increase. Writing data to the file and get usec time at start and end. Pretty simple. I am running at 25mhz exactly. Tested on 5 different cards from several different manufacturers. When I find some free time I'll hook up the scope again and do a capture and send it along.

Do you have a theory on how changing the clock phase could improve the data transfer rate?
There are many variables that could affect the timing. (See Performance Tuning Tips. For example, the file might span a segment on the SD card. Are you formatting the cards between tests?

The ph0 drops the clock for a longer period.  Not sure why. The same sd card, same file that is preallocated before hand. So the same sectors are being read and written.
Get Outlook for Androidhttps://aka.ms/AAb9ysg

From: Carl J Kugler III @.>
Sent: Saturday, January 13, 2024 4:48:13 PM
To: carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico @.>
Cc: Tom @.>; Author @.>
Subject: Re: [carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico] Performance improvement in SPI (Issue #27)
No baud rate increase. Writing data to the file and get usec time at start and end. Pretty simple. I am running at 25mhz exactly. Tested on 5 different cards from several different manufacturers. When I find some free time I'll hook up the scope again and do a capture and send it along.
Do you have a theory on how changing the clock phase could improve the data transfer rate?
There are many variables that could affect the timing. (See Performance Tuning Tipshttps://github.com/carlk3/no-OS-FatFS-SD-SDIO-SPI-RPi-Pico#appendix-d-performance-tuning-tips. For example, the file might span a segment on the SD card. Are you formatting the cards between tests?
—
Reply to this email directly, view it on GitHubhttps://github.com/carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico/issues/27#issuecomment-1890776714, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADNHM6CE2TYI2G3IXP7JDRDYOL6J3AVCNFSM6AAAAABBYRM3UKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQG43TMNZRGQ.
You are receiving this because you authored the thread.Message ID: @.***>

Yes, clock is low for a longer period. As far a file size, 8 to 16mb.
Get Outlook for Androidhttps://aka.ms/AAb9ysg

From: Carl J Kugler III @.>
Sent: Sunday, January 14, 2024 2:34:40 PM
To: carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico @.>
Cc: Tom @.>; Author @.>
Subject: Re: [carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico] Performance improvement in SPI (Issue #27)
The ph0 drops the clock for a longer period.
I'm not sure what you mean by drops the clock. The clock signal is low for a longer part of the cycle? Does the frequency change? Does the card indicate "busy" for less time?
Writing data to the file and get usec time at start and end.
How much data are you writing? Does big_file_testhttps://github.com/carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico/blob/master/examples/command_line/tests/big_file_test.c (which you can run from command_linehttps://github.com/carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico/tree/master/examples/command_line show a significant difference for, say, a 30 MB file?
—
Reply to this email directly, view it on GitHubhttps://github.com/carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico/issues/27#issuecomment-1891050452, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADNHM6EXT4UGKFSRGF4ZKBDYOQXNBAVCNFSM6AAAAABBYRM3UKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJRGA2TANBVGI.
You are receiving this because you authored the thread.Message ID: @.***>

Yes, clock is low for a longer period.

How does having the clock is low for a longer period improve the performance? Is the overall clock cycle period shorter? I can't understand how it can be moving data faster unless the frequency goes up or somehow there's less host wait time (normally due to card busy time).

Let me rephrase.  In ph0 the clock is low longer making each xfer take longer. Ph1 doesn't have that ossue
Get Outlook for Androidhttps://aka.ms/AAb9ysg

From: Carl J Kugler III @.>
Sent: Monday, January 15, 2024 2:04:52 PM
To: carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico @.>
Cc: Tom @.>; Author @.>
Subject: Re: [carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico] Performance improvement in SPI (Issue #27)
Yes, clock is low for a longer period.
How does having the clock is low for a longer period improve the performance? Is the overall clock cycle period shorter? I can't understand how it can be moving data faster unless the frequency goes up or somehow there's less host wait time (normally due to card busy time).
—
Reply to this email directly, view it on GitHubhttps://github.com/carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico/issues/27#issuecomment-1892656757, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADNHM6HEZAEIUSD2OFTJ3NTYOV4VJAVCNFSM6AAAAABBYRM3UKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJSGY2TMNZVG4.
You are receiving this because you authored the thread.Message ID: @.***>

Ah, so the frequency does change. What if you raise the baud_rate in ph0 instead of switching to ph1?

I don't understand how the frequency can change. From RP2040 Datasheet:

<IP_ADDRESS>.1. Bit rate generation
The serial bit rate is derived by dividing down the input clock, SSPCLK. The clock is first divided by an even prescale
value CPSDVSR in the range 2-254, and is programmed in SSPCPSR. The clock is divided again by a value in the range 1-256, that is 1 + SCR, where SCR is the value programmed in SSPCR0.

where SSPCLK is wired to clk_peri. By default clk_peri is attached directly to the system clock. So I would guess that the serial bit rate would be some constant ratio to the clk_peri. How would changing the clock phase affect that?

It's not the frequency per se. It's the time the chip takes to start sending data for each packet. This weekend I'll have time to pull some traces that show what I am talking about.  A picture is worth a thousand words.
Btw, I appreciate all the help. I'm way behind on my Flux copier so getting things going with rtos really helped.
Get Outlook for Androidhttps://aka.ms/AAb9ysg

From: Carl J Kugler III @.>
Sent: Monday, January 15, 2024 2:37:44 PM
To: carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico @.>
Cc: Tom @.>; Author @.>
Subject: Re: [carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico] Performance improvement in SPI (Issue #27)
I don't understand how the frequency can change. From RP2040 Datasheet:
<IP_ADDRESS>.1. Bit rate generation
The serial bit rate is derived by dividing down the input clock, SSPCLK. The clock is first divided by an even prescale
value CPSDVSR in the range 2-254, and is programmed in SSPCPSR. The clock is divided again by a value in the range 1-256, that is 1 + SCR, where SCR is the value programmed in SSPCR0.
where SSPCLK is wired to clk_peri. By default clk_peri is attached directly to the system clock. So I would guess that the serial bit rate would be some constant ratio to the clk_peri. How would changing the clock phase affect that?
—
Reply to this email directly, view it on GitHubhttps://github.com/carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico/issues/27#issuecomment-1892687626, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADNHM6DFBZKQKLFEYTYQRFDYOWAQRAVCNFSM6AAAAABBYRM3UKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJSGY4DONRSGY.
You are receiving this because you authored the thread.Message ID: @.***>

I tried using
        spi_set_format(spi_p->hw_inst, 8, SPI_CPOL_0, SPI_CPHA_1, SPI_MSB_FIRST);

and I can't get the card to initialize. Even at 122,070 Hz, it gets CRC errors on CMD0, "Go Idle State", which is the first command.

Wow. That's odd. Every card I use works.
Get Outlook for Androidhttps://aka.ms/AAb9ysg

From: Carl J Kugler III @.>
Sent: Monday, January 15, 2024 10:03:42 PM
To: carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico @.>
Cc: Tom @.>; Author @.>
Subject: Re: [carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico] Performance improvement in SPI (Issue #27)
I tried using
    spi_set_format(spi_p->hw_inst, 8, SPI_CPOL_0, SPI_CPHA_1, SPI_MSB_FIRST);

and I can't get the card to initialize. Even at 122,070 Hz, it gets CRC errors on CMD0, "Go Idle State", which is the first command.
—
Reply to this email directly, view it on GitHubhttps://github.com/carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico/issues/27#issuecomment-1893001855, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADNHM6ERGVJORH4EIFZU7W3YOXUY5AVCNFSM6AAAAABBYRM3UKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJTGAYDCOBVGU.
You are receiving this because you authored the thread.Message ID: @.***>

It's the Silicon Power 3D NAND U1 32GB microSD card that refuses to initialize with SPI_CPHA_1. So, I switched to a SanDisk Ultra 16GB. That does work, so I ran some benchmarks with big_file_test.c and bench.c. My results are summarized here: SPI_CPHA test results.
In general, with SPI_CPHA_1 I found:
big_file_test.c, 20 MiB file:

On average (three trials), it took 6.40% more time to write the file
No change in time to read a 20 MiB file

bench.c, 5 MiB file:

Write speed decreased 5.50% for a 5 MiB file
Average write latency increased 5.35%
Read speed decreased 1.18% for a 5 MiB file
Average read latency increased 1.09%

Writing to SD cards is far from deterministic, there is a lot variance in these results, and I only tested with the SanDisk Ultra 16GB, so more testing would be needed to really quantify the differences, but I'm not seeing the performance  improvement.

So strange. Guess it depends on the card.
On other issues, still getting hangs and unreliable behavior.
Get Outlook for Androidhttps://aka.ms/AAb9ysg

From: Carl J Kugler III @.>
Sent: Tuesday, January 16, 2024 2:47:32 PM
To: carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico @.>
Cc: Tom @.>; Author @.>
Subject: Re: [carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico] Performance improvement in SPI (Issue #27)
It's the Silicon Power 3D NAND U1 32GB microSD cardhttps://www.amazon.com/gp/product/B07RSXSYJC/ that refuses to initialize with SPI_CPHA_1. So, I switched to a SanDisk Ultra 16GBhttps://www.westerndigital.com/products/memory-cards/sandisk-ultra-uhs-i-microsd?sku=SDSQUNC-016G-AN6MA. That does work, so I ran some benchmarks with big_file_test.chttps://github.com/carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico/blob/master/examples/command_line/tests/big_file_test.c and bench.chttps://github.com/carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico/blob/master/examples/command_line/tests/bench.c. My results are summarized here: SPI_CPHA test resultshttps://docs.google.com/spreadsheets/d/1lDVyZO5_2BJLS-WF96ADBPmk8W7aX-u8vp1t2ejg48g/edit?usp=sharing.
In general, with SPI_CPHA_1 I found:
big_file_test.chttps://github.com/carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico/blob/master/examples/command_line/tests/big_file_test.c, 20 MiB file:

On average (three trials), it took 6.40% more time to write the file
No change in time to read a 20 MiB file

bench.chttps://github.com/carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico/blob/master/examples/command_line/tests/bench.c, 5 MiB file:

Write speed decreased 5.50% for a 5 MiB file
Average write latency increased 5.35%
Read speed decreased 1.18% for a 5 MiB file
Average read latency increased 1.09%

Writing to SD cards is far from deterministic, there is a lot variance in these results, and I only tested with the SanDisk Ultra 16GBhttps://www.westerndigital.com/products/memory-cards/sandisk-ultra-uhs-i-microsd?sku=SDSQUNC-016G-AN6MA, so more testing would be needed to really quantify the differences, but I'm not seeing the performance improvement.
—
Reply to this email directly, view it on GitHubhttps://github.com/carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico/issues/27#issuecomment-1894405444, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADNHM6AYOVDKPUC7MPCUU33YO3KNJAVCNFSM6AAAAABBYRM3UKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJUGQYDKNBUGQ.
You are receiving this because you authored the thread.Message ID: @.***>

Probably not worth worrying about then.
I've just about given up on getting wifi and sd card stuff working together.  Absolutely unstable.
If you have someplace I can post my code , maybe I'm missing something
Get Outlook for Androidhttps://aka.ms/AAb9ysg

From: Carl J Kugler III @.>
Sent: Tuesday, January 16, 2024 3:48:55 PM
To: carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico @.>
Cc: Tom @.>; Author @.>
Subject: Re: [carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico] Performance improvement in SPI (Issue #27)
So strange. Guess it depends on the card.
Never mind, I was using the wrong hw_config.c file. D'oh!
Now that I have gotten that straightened out, I can't get any of these cards to initialize with SPI_CPHA_1:

Silicon Power 3D NAND U1 32GB microSD cardhttps://www.amazon.com/gp/product/B07RSXSYJC/: gets CRC errors in response to CMD0 or no response to CMD59
SanDisk Ultra 16GBhttps://www.westerndigital.com/products/memory-cards/sandisk-ultra-uhs-i-microsd?sku=SDSQUNC-016G-AN6MA: gets no response to CMD0
PNY Elite Class 10 U1 microSD Flash Memory Cardhttps://www.pny.com/en-eu/elite-class-10-u1-microsd-flash-memory-card: gets no response to CMD0

In all cases, the SPI CLK is running at 398089 Hz. (The SD Specification says that initialization must happen at 100-400 kHz.)
—
Reply to this email directly, view it on GitHubhttps://github.com/carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico/issues/27#issuecomment-1894489393, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADNHM6CJQK4CHYQOSAMU74LYO3RTPAVCNFSM6AAAAABBYRM3UKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJUGQ4DSMZZGM.
You are receiving this because you authored the thread.Message ID: @.***>

If you have someplace I can post my code , maybe I'm missing something

You can always fork  this repository on GitHub.

I created a repo and gave you access.
Get Outlook for Androidhttps://aka.ms/AAb9ysg

From: Carl J Kugler III @.>
Sent: Tuesday, January 16, 2024 5:05:47 PM
To: carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico @.>
Cc: Tom @.>; Author @.>
Subject: Re: [carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico] Performance improvement in SPI (Issue #27)
If you have someplace I can post my code , maybe I'm missing something
You can always fork https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/fork-a-repo this repository on GitHub.
—
Reply to this email directly, view it on GitHubhttps://github.com/carlk3/FreeRTOS-FAT-CLI-for-RPi-Pico/issues/27#issuecomment-1894595376, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADNHM6HT23O3JE2OPG4UGU3YO32TXAVCNFSM6AAAAABBYRM3UKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJUGU4TKMZXGY.
You are receiving this because you authored the thread.Message ID: @.***>


Error when trying to toggle on lights from a matter controller

Hi, I get the following error when trying to trigger a toggle on lights when the are in the off state in order to turn them on.
[ 2024-11-27T21:41:37.282Z ] [ WARN  ] [ Matter / ResourceSet                               ]: Transaction setStateOf<3ebcd2668bdb4307bf929cde24e9d6a6.aggregator.light_kitchen_spotlights>#157e blocked by online#35a4a21@1
[ 2024-11-27T21:41:37.282Z ] [ WARN  ] [ Matter / ResourceSet                               ]: You may need to await transaction.begin() to acquire locks asynchronously
[ 2024-11-27T21:41:37.282Z ] [ ERROR ] [ apply-patch-state                                  ]: Failed to patch the following properties:
{
  "onOff": false
}
[ 2024-11-27T21:41:37.285Z ] [ ERROR ] [ Matter / Transaction                               ]: Error post-commit of 3ebcd2668bdb4307bf929cde24e9d6a6.aggregator.light_kitchen_spotlights.homeAssistantEntity.state: Error in reactor<3ebcd2668bdb4307bf929cde24e9d6a6.aggregator.light_kitchen_spotlights.onOff.update>: Cannot lock 3ebcd2668bdb4307bf929cde24e9d6a6.aggregator.light_kitchen_spotlights.onOff.state synchronously
  at ResourceSet.acquireLocksSync (file:///usr/local/lib/node_modules/home-assistant-matter-hub/node_modules/@matter/node/dist/esm/behavior/state/transaction/ResourceSet.js:66:13)
  at Tx.beginSync (file:///usr/local/lib/node_modules/home-assistant-matter-hub/node_modules/@matter/node/dist/esm/behavior/state/transaction/Tx.js:198:32)
  at startWrite (file:///usr/local/lib/node_modules/home-assistant-matter-hub/node_modules/@matter/node/dist/esm/behavior/state/managed/Datasource.js:209:17)
  at Object.change (file:///usr/local/lib/node_modules/home-assistant-matter-hub/node_modules/@matter/node/dist/esm/behavior/state/managed/Datasource.js:162:7)
  at OnOff$State.set [as onOff] (file:///usr/local/lib/node_modules/home-assistant-matter-hub/node_modules/@matter/node/dist/esm/behavior/state/managed/values/StructManager.js:105:32)
  at Function.assign (<anonymous>)
  at applyPatchState (file:///usr/local/lib/node_modules/home-assistant-matter-hub/dist/backend/cli.js:926:14)
  at OnOffServer.update (file:///usr/local/lib/node_modules/home-assistant-matter-hub/dist/backend/cli.js:996:5)
  at #reactWithLocks (file:///usr/local/lib/node_modules/home-assistant-matter-hub/node_modules/@matter/node/dist/esm/behavior/internal/Reactors.js:286:26)
  at #reactWithContext (file:///usr/local/lib/node_modules/home-assistant-matter-hub/node_modules/@matter/node/dist/esm/behavior/internal/Reactors.js:262:32)

I am using a flic twist through the flic hub that is connected via matter and this seems to work for on, off, brightness and even using toggle from the on state to turn the lights off.
The lights are connected with zigbee to home assistant and exposed through this integration.
If there is any more info I can give, or anything I can try to get this working then please let me know!
Thanks,
James

This is caused by a race condition. The command is sent to home assistant and processed faster than matter finishes its transaction. Before the transaction finishes home assistant already reports the updated state.
I had a workaround for that before but it seems that I accidentally removed it during a refactoring.
I’ve prepared a PR for this, but I’ll release it tomorrow after some testing.

Thats amazing, thanks for the speed of the reply. I look forward to the fix!

Did I read it correct that you connected home-assistant-matter-hub with a flic hub using matter?
if yes, I’d love to know more: what is actually working and what doesn’t? Not only related to lights or switches. We don’t have any data for flic hubs.
additionally I’d like to know if the flic hub couldn’t be directly integrated with home assistant without matter?

Did I read it correct that you connected home-assistant-matter-hub with a flic hub using matter?
if yes, I’d love to know more: what is actually working and what doesn’t? Not only related to lights or switches. We don’t have any data for flic hubs. additionally I’d like to know if the flic hub couldn’t be directly integrated with home assistant without matter?

Yeah! Since the flic hub can now connect matter devices, adding a bridge created in home assistant to the hub you can then control the exposed devices by setting up actions in the flic app. I currently have 3 flic twists connected to the flic hub controlling exposed lights, but am only in the very initial stages of testing it out.
I think there is an integration somewhere made to integrate the flic hub directly into home assistant (maybe flic2hass) but it doesn't support the flic twists as the flic SDK doesn't support them for some reason. Or at least didn't, not sure if that has been updated.
I can answer any other questions if you have them, and can try controlling more devices than lights at some point, but have only tried a couple of lights so far with it.
I'm currently away from home, but once back I'll update the integration at test out the update!


division doesn't implicitly upcast dtype

Behaviour in tinygrad:
from tinygrad import Tensor
print((Tensor([1]) / Tensor([2])).numpy())
# array([0], dtype=int32)

Behaviour in torch:
import torch
out = torch.tensor([1]) / torch.tensor([2])
print(out, out.dtype)
# tensor([0.5000]) torch.float32

is this intented?

Hmm, perhaps not and you should use // if you want integer division. I'd support that change

fixed on master


Platform-specific options addition.

Hello,
This changes are to demonstrate the working of Jpackage options and how to add the to badass-runtime-plugin.
Thank you.

Thanks for the PR!

Thanks for accepting!


cluster: fix TestDispatch

Signed-off-by: disksing<EMAIL_ADDRESS>What problem does this PR solve?
Fix https://github.com/pingcap/pd/issues/1925
What is changed and how it works?
we were expecting transfer leader 4->2, but sometimes it got 4->3, the reason is that balance leader scheduler and test code run concurrently. Possible execution sequence:

test: tc.updateLeaderCount(4, 50) (leader count 1:0, 2:0, 3:0, 4:50)
scheduler: sort stores by leader count (order 4, 1, 2, 3)
test: continue update leader counts (leader count 1:10, 2:20, 3:50, 4:50)
test: put region (leader:4, follower: 2, 3)
scheduler: select the region and create balance leader 4->3

how to fix: run coordinator after done all setups
Check List
Tests

Unit test
Manual test (add detailed scripts or steps below)
add some time.Sleep and test 20000 times.

/merge


zrythm: 1.0.0-beta.4.6.3 -> 1.0.0-beta.4.9.1

Description of changes

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

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

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

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

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

[x] Fits CONTRIBUTING.md.

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

1 package built:

zrythm

@magnetophon irrc new version of Zrythm is out.


Added application packages support for Batch

Added application packages support with new AutoRest generated
Flatten Batch update parameters

Can one of the admins verify this patch?

Hi @brnleehng, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

It looks like you're working at Microsoft (brhoan). If you're full-time, we DON'T require a contribution license agreement.

If you are a vendor, DO please sign the electronic contribution license agreement. It will take 2 minutes and there's no faxing! https://cla.azure.com.

TTYL, AZPRBOT;

Using these swagger specs https://github.com/Azure/azure-rest-api-specs/blob/master/arm-batch/2015-12-01/swagger/BatchManagement.json

@azuresdkci add to whitelist


Treat list as a safe json object

list is a common root element of json files

The current behavior is documented and intended. Any backward incompatible change should first be discussed on the django-developers mailing list, where you'll reach a wider audience and see what other think.


Sort shipment accessorials before rendering

Description
This PR sorts the shipment accessorials so that:

The last approved item is shown at the very top
A new submitted item is shown after the last approved item

Code Review Verification Steps

[ ] There are no aXe warnings for UI.
[ ] This works in IE.
[ ] Request review from a member of a different team.
[ ] Have the Pivotal acceptance criteria been met for this change?

References

Pivotal story for this change

Screenshots

@donaldthai can you fix the unit test? (After the migration you are working on.)

@tinyels had to merge master and rename the selector imported

@donaldthai Looks good! Thanks for iterating on this one.


Feature request: feature-gated rayon integration for itertools

Hello,
It would be great if itertools and rayon could work with each other. This would be very useful for gradually improving itertools-based code to work with rayon's parallel iteration.
Why not use rayon's existing iteration helper methods?

Some existing code uses itertools. To parallelize it, one would have to remove the itertools-based parts to use rayon. In some cases rayon may not provide a good alternative to the powerful iteration methods afforded by itertools, like cartesian_product.

What this would entail:

From a high level, this would require an impl IntoParallelIterator for itertools::Itertools. That should be enough, from an end-user perspective. Itertools would then have a feature-gated .into_par_iter method callable whenever the rayon feature flag is enabled.
Note that it may also be possible to provide an impl for ParallelIterator directly so that rayon methods and itertools methods can be interspersed.

Providing an interface between rayon and itertools would be beneficial for parallelizing any existing code based on itertools, as well as reducing friction between complementary iterator tools.
Is this something you'd like to see? Would you be willing to accept a Pull Request adding this functionality?
Thanks for considering!

Looking forward to this feature.  I am currently using rayon iterator for ziping two arrays.  Trying to zip multiple arrays and combination of rayon and itertool will definitely help.

From a high level, this would require an impl IntoParallelIterator for itertools::Itertools.

I think this would be served by the long-standing rayon request for Iterator support, rayon-rs/rayon#46, and we may have a way forward in rayon-rs/rayon#550.  I'm not sure there's much that itertools could do in particular that couldn't be more broadly applicable, especially since all of these adaptors have to deal with generic Iterator inputs themselves.
On the rayon side, we've already tried to provide equivalents to many itertools methods -- at least those where the semantics of a parallel translation are straightforward.


fix(server): Sleep on socket IO errors

Fixes #1358
This pull request introduces a new sleep_on_error configuration option. It is used to swallow IO errors when the Hyper server is accepting requests. That way developers do not have to worry about IO errors in case the server is under heavy load and runs out of available file descriptors. Better DoS protection.

Is sleep_on_error a good name? I copied that from https://github.com/tailhook/tk-listen
What should be the default value? Currently sleep_on_error is false for backwards compatibility and developers need to enable it. I would argue that Hyper should be secure by default and it should be set to true.

Great, I love it!
I agree it should probably be enabled by default, and maybe someone may want to be able to configure the duration too, but this is a great first step.

Oh, cool, this was merged fast! Sorry about the additional merge commit. I though you would use the squash merge method on Github and did not clean up the commits here. Will do that next time!
And a big thank you to @tailhook, I copied quite a bit of your code and docs!


underscore is not properly supported

Version
1.26.0
What happened?
A bug happened!
given a table such as:
CREATE TABLE `items` (
  `id` int(11) NOT NULL DEFAULT 0,
  `casttime` int(11) NOT NULL DEFAULT 0,
  `casttime_` int(11) NOT NULL DEFAULT 0,
  `charmfile` varchar(32) NOT NULL DEFAULT '',
  `charmfileid` varchar(32) NOT NULL DEFAULT '',
    UNIQUE KEY `ID` (`id`),
  KEY `name_idx` (`Name`),
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

models.go generates:
	Casttime            int32
	Casttime            int32

Which is invalid go
Relevant log output
No response
Database schema
No response
SQL queries
No response
Configuration
No response
Playground URL
No response
What operating system are you using?
Linux
What database engines are you using?
MySQL
What type of code are you generating?
Go

Found the fix.
sql:
  - engine: "mysql"
    queries: "mysql-queries.sql"
    schema: "mysql-schemas.sql"
    gen:
      go:
        package: "mysqlc"
        out: "mysqlc"
        rename:
          casttime_: "CastTime2"

ref link


migrated normal css to tailwind css and made cards component so it can be reused

sure I will, connect with me on linkedin
https://bento.me/amaanmirza


Issues when already running in a container

ISSUE TYPE

Bug Report(s)

SUMMARY
This is about multiple bugs, all related to already being inside a container when calling ansible-navigator.
A VSCode DevContainer definition is used - ansible is installed via pip3 in a debian/python 3.10 environment as user.

collections installed via ansible-galaxy to their default location ~/.ansible/collections/ansible_collections/, in use by ansible without additional configuration are not found by ansible-navigator: ERROR 'ansible_navigator.actions.collections._parse' Unable to extract collection json from stdout in logfile.

ansible-navigator should fallback to a local EE if it's detecting being inside a container, or if there's no container engine present.

config returns nothing, not even a log message.

inventory is missing some ansible groups. Didn't dig deeper into it yet.

run: It really should have autocomplete options, or list playbooks from the current directory. The interactive output while running is also jumping all over the place, maybe trying to use \t for its columns.

ANSIBLE-NAVIGATOR VERSION

 $  ansible-navigator --version
ansible-navigator 2.1.0

CONFIGURATION

LOG FILE

DEBUG 'ansible_navigator.main' EE support disabled: using 'ansible --version' for 'ansible.cfg'
DEBUG 'ansible_navigator.main' ansible --version stdout:
'ansible [core 2.11.10]
  config file = /workspaces/project/ansible/ansible.cfg
  configured module search path = ['/home/vscode/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/vscode/.local/lib/python3.10/site-packages/ansible
  ansible collection location = /home/vscode/.ansible/collections:/usr/share/ansible/collections
  executable location = /home/vscode/.local/bin/ansible
  python version = 3.10.4 (main, Apr  7 2022, 03:15:56) [GCC 10.2.1 20210110]
  jinja version = 3.1.1
  libyaml = False
'

STEPS TO REPRODUCE

EXPECTED RESULTS

ACTUAL RESULTS

ADDITIONAL INFORMATION

I'm sorry for not following your format - I don't have the time (or patience) to open 5 separate issues, and all of these require the same environment for testing. Happy to test things or get additional information if requested though.

Hey @max06, thanks for this one.
Quick question, was ansible-navigator installed in the VSCode DevContainer or were you trying to use the dev container as an execution environment?
I'll break this up into smaller issues in the near future so they can be addressed individually.

Is this still an issue?  I’m going to explore devcontainers with ansible-navigator.  Does docker-in-docker or docker-from-docker fix this?

I believe I hit the same issue. I tried running ansible-navigator in a GitHub action and got the "the input device is not a TTY" error message.

Navigator is a TUI, so it does expect a TTY.

a) This has nothing to do with TTY.
b) I'm no longer using ansible - explaining why would violate the code of conduct.
All the best!

@max06 If it doesn't help with navigator, maybe it will with another project of yours.  I've been doing some early testing with container in container leveraging some of what the podman team has done for their testing.  It's here for now because it's early days.  https://github.com/cidrblock/container_in_container
Hope you might find is useful.
t/c Brad


fix: huawei uncache image fail

这个 PR 实现什么功能/修复什么问题:
修正：huawei image代码优化
是否需要 backport 到之前的 release 分支:

release/2.13

Codecov Report

Merging #4616 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##           master   #4616      +/-   ##
=========================================
- Coverage    6.82%   6.81%   -0.02%
=========================================
  Files         522     522
  Lines       88678   88678
=========================================
- Hits         6050    6039      -11
- Misses      82122   82134      +12
+ Partials      506     505       -1

Flag
Coverage Δ

#aFlag
6.81% <ø> (-0.02%)
:arrow_down:

Impacted Files
Coverage Δ

pkg/cloudcommon/cronman/cronman.go
49.51% <0%> (-5.34%)
:arrow_down:

pkg/appsrv/response.go
66.15% <0%> (ø)
:arrow_up:

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 8f400ae...f1afe69. Read the comment docs.


Creating the DEI Team

Please leave feedback and the next steps to make this happen officially. I hope this helps us to bring in more diversity into the Solid community!

I believe the intent is for this file to be recognized at Markdown - recommend changing filename to dei.md so github recognizes it as such.


Update spack-stack doc to reflect version 1.0.2 more accurately

Describe the bug
A couple users noted some differences/mistakes in the documentation which are due to changes in spack-stack between version 1.0.0 and 1.0.2.
To Reproduce
The module load sequence for MSU Orion using GNU will fail with the error "stack-openmpi module not found".
Expected behavior
All the modules load properly
System:
Orion
Additional context

Closed via https://github.com/NOAA-EMC/spack-stack/pull/306


Builder doesn't mutate

https://github.com/0xSpaceShard/starknet-devnet-rs/blob/337b24fbab448db993c93239bba762d13d97208c/crates/server/src/builder.rs#L71
Right now every time any function on builder is called callee loses ownership of Builder object because it's moved. In my opinion every function except of build is setter function & configures object. I would propose using &mut self instead and fn build will consume the object which is also a question if it shall do that on build, I'm not sure

@taco-paco hi again!
can you check this is it still relevant, do you maybe want to fix it or try it out?

Closing as stale


Out of date info for dataflows in deployment pipelines

Hi there. Two items appear to be out of date in the table here: https://docs.microsoft.com/en-us/power-bi/create-reports/deployment-pipelines-process#permissions
According to my test:

A workspace member can deploy a dataflow. So it looks like the same improvement that datasets got applies to dataflows too…which is awesome! So, on the dataflow row I believe it can be changed from dataflow owner to workspace member like the other artifacts.)
The owner after deployment for the dataflow does change to who deployed it. In the documentation, that’s shown for the paginated report whereas it should be the dataflow.

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

ID: adc3b8dc-0d07-e0d4-a27a-dc80c45c121e
Version Independent ID: 389f5272-2ed2-dd5d-5671-f514e086fb7d
Content: Deployment pipelines, the Power BI Application lifecycle management (ALM) tool, process - Power BI
Content Source: powerbi-docs/create-reports/deployment-pipelines-process.md
Service: powerbi
Sub-service: pbi-deployment-pipeline
GitHub Login: @KesemSharabi
Microsoft Alias: kesharab

Thanks for your comments, @sqlchick.
I'm checking this with the development team. If you're right, I'll revise the documentation accordingly.

Hi @sqlchick,
After checking with the engineering team, it seems that the table is correct. The scenario you described can happen during a first time deployment (when using a 'clean copy'). However, during an update, the information in the table is correct. Please try to recreate this scenario when you're updating the pipeline, and let me know if it works.
Thanks,
Kesem

Hi Kesem - Thanks very much for looking into it.
Unfortunately that doesn't agree with what I'm seeing in my tenant.
Here are the steps I've taken to verify & reproduce:
-User A is the owner of the dataflow in both the Dev & Test workspaces.
-User A is a workspace admin for both the Dev & test workspaces.
-User B is a workspace member for both Dev & Test workspaces.
-Users A and B are both deployment pipeline admins.
-User A makes a change to the dataflow in the Dev workspace.
-User B does the compare in the pipeline & successfully deploys all changes to Test workspace.
-User B becomes the new owner of the dataflow in the Test workspace.
Based on the above steps that I performed just a few minutes ago, it appears to me like a workspace member can deploy an existing dataflow & take over ownership.
Also, regardless of the outcome of the above, I still think the reference to "owner" needs to be taken off of the paginated report row in the table & put on the dataflow row of the table (if you see the arrow in my original screenshot you'll see it's just sitting on the wrong row). Basically item 2 from my original message is just a typo on the page.
Thanks!
Melissa

Thanks @sqlchick,
This is definitely not the expected behavior. I asked the engineering team to look into this and will keep you posted.
Thanks,
Kesem

Hi @sqlchick,
As per my understanding the engineering team will investigate this issue with you. I'll sync with them shortly and update the documentation according to their findings.
Thanks,
Kesem


Render translation links in their own language

This commit introduces a new Jinja {% language %} tag modeled after the Django {% language %} tag, and uses it to ensure that page translation links always get rendered in the destination language (e.g. links to a Spanish translation always say "Español" regardless of the language of the page being viewed).
How to test this PR
To test using a production dump with translation links imported using the method described in #7461, a good page to test with is http://localhost:8000/es/coronavirus/asistencia-hipotecas-y-viviendas/:

The lack of translation for "Chinese (Traditional)" is to be expected; that will come with the new translations added in #7392.
Alternatively, to test with our test database (./refresh-data.sh ./test.sql.tz), a good page to test with is http://localhost:8000/about-us/blog/translated-page-english/.
In both cases above you'll need to enable the translation links feature flag at http://localhost:8000/admin/flags/TRANSLATION_LINKS/.
Checklist

[x] PR has an informative and human-readable title
[x] Changes are limited to a single goal (no scope creep)
[x] Code follows the standards laid out in the CFPB development guidelines

I've rebased this against main now that #7392 is merged, and the "Chinese (Traditional)" translation now works as desired:


Middleware for individual/group routes

Is your feature request related to a problem? Please describe.
I'm not sure if it's already built-in, but I was wondering if it's possible to associate middlewares to an individual (or a group of) routes.
Describe the solution you'd like
I'd like to define middlewares that can be usable on individual/group routes rather than setting them up globally.
Describe alternatives you've considered
None at the moment
Additional context
A common use case (and the one which I stumbled upon recently) is about routes that require authentication along with the ones that don't. So for example, you have a bunch of public routes (eg: /*) and another bunch of private ones (eg: /admin/*). If I setup a middleware that checks authentication (and eventually redirects to a login page if the client is not authenticated) means that it'll act even to the public routes (and it'll create an endless loop which redirects to the login page).
What do you think? Thanks in advance for any feedback.

When you add middleware with app.middleware all previously added routes will be wrapped in the middleware. Generally speaking, this results in middleware being executed from bottom to top.
try with:
use graphul::{http::{Methods, response::{Response, Redirect}}, Graphul, middleware::{self, Next}, Req, IntoResponse};

async fn check_user_is_authenticated(request: Req, next: Next) -> Response {
    let authenticated = false;
    if !authenticated {
        return Redirect::to("/login").into_response() ;
    }
    next.run(request).await
}

#[tokio::main]
async fn main() {
    let mut app = Graphul::new();

    app.get("/", || async {
        "protected index route"
    });
    app.middleware(middleware::from_fn(check_user_is_authenticated));

    // routes out of the scope of the middleware
    app.get("/login", || async {
        "Login page"
    });

    app.run("<IP_ADDRESS>:8000").await;
}

based on your feedback we will support middleware through groups
Future API v0.5.0:
#[tokio::main]
async fn main() {
    let mut app = Graphul::new();

    let mut admin = app.group("admin");

    // /admin
    admin.get("/", || async {
        "protected index route"
    });

    app.get("/login", || async {
        "Login page"
    });

    // add middleware to a specific group of routes ( 1 or n  groups)
    app.middleware_groups(["admin"], my_middleware);

    app.run("<IP_ADDRESS>:8000").await;
}

Wow, that's interesting for the first part. And thank you for the announced new features!


Sepolia

Deploy of contracts to sepolia network.
Also removed unused networks.
ps: did not remove goerli yet.
closes #4

@tuler, there are some conflicts with package.json and yarn.lock


"Please specify a valid Node.js project or project directory in solution"

In a normal MVC project VS2013.
I've configured everything and am able to use npm in the command prompt in the solution directory.
NTVS allows global installs using .npm install -g
But I cant seem to find a way to tell it which project to point at
It says "If solution contains multiple projects, specify target project using .npm [ProjectName or ProjectDir] "
I've tried the project name and the full uri to the project directory on my local machine.

An MVC project isn't a valid Node.js project type, but we'd be happy to accept a PR to change this behavior to work more generally.
https://github.com/Microsoft/nodejstools/blob/master/Nodejs/Product/Nodejs/Repl/NpmReplCommand.cs#L107

Also did you include the brackets with the command? The syntax isn't entirely clear.

Hi, thank you for your reply.
I have installed Nodejs and Git which is a Bower dependency.
In the MVC project after creating package.json, with the help of a VS extension called Package Intellisense I was able to get node_modules created.
I could also do this by using the command line in the solution folder and running "npm install"
Which works fine, got bower and gulp setup using the command line.
I would like to be able to use these npm commands from NTVS.
When I run npm install I see this

Please specify a valid Node.js project or project directory in solution. If solution contains multiple projects, specify target project using .npm [ProjectName or ProjectDir]

So there's probably a way to set the project and let npm know which one were referring to.
I ran .npm [MvcProjectName] and got back, this did not however set the project and I kept getting the error message on the next command.

Specify configs in the ini-formatted file:
C:\Users\Warren.npmrc
or on the command line via: npm  --key value
Config info can be viewed via: npm help config
<EMAIL_ADDRESS>C:\Program Files\nodejs\node_modules\npm
[JobAdder.Web.Public] successfully completed

I also ran .npm [JobAdder.Web.Public] install bower to no avail.

If JobAdder.Web.Public is a Node.js project type in your solution, then it should work. If not, it won't work using the [ProjectName] specification.
Alternatively in order to use a [ProjectDir] specification - where you copied the full path, you'll need a package.json file there for it to be considered a valid Node.js project.
As I mentioned above, feel free to submit a PR if you'd like to change the behavior to be more inclusive.
We have not implemented switching project path context yet, but that would require far more design work. We actually implemented it once, but reverted because we we didn't want to destabilize the product at that time and hadn't thought through the user experience and edge cases well enough.

Thanks for the reply and explanation.
As soon as I can find the time I'll give it a look.
In the meantime I found a VS plugin Open Command Line - which opens Powershell etc using Alt + Space. So that works for now.

@madskristensen another reason consolidating External Web Tools + Node.js Tools settings would be good - lets us light up features like the Interactive Window in other project types. Additionally, exposing an interface to grab the proper executable path would be helpful.

I got this meessage: "Please specify a valid Node.js project or project directory. If your solution contains multiple projects, specify a target project using .npm [ProjectName or ProjectDir]  For example: .npm [MyApp] list" And then I've been reading the discussions about this text instruction and I don't understand what you don't understand. The issue is not about the text of the message, its about the confusing situation that the confusing message is trying to instruct you how to solve. The problem is, however, that the problem is insoluable from the user's perspective. The actual problem that necessitates the message is: "You are not calling the interactive window from within a node.js project." That problem is caused by the fact that NodeJs tools enables the user to open the interactive window in a project that is not a nodejs project. Which means that NodeJs tools cannot itself identify what is a nodejs project and what is not a nodejs project. It should do nothing if it isn't in a nodejs project!!! and it should be able to tell the user exactly what it means when it refers to what it thinks is a nodejs project. Therefore, enabling nodejs tools to 'do its thing' in just any project may seem like a solution, but that makes nodejs-tools into a 'nodejs look-alike tool for just any old project type'. Is that really what you want to do with the tool? And then you start building in features to make gulp do stuff that nuget does, and that msbuild does, and then... and then... Instead! please re-focus on bringing actual nodejs tool features into a verifiable VISUWALL STYEWDEO native terminal window like you find in WebStorm and that gaggle of other editors that are just jsFiddle in a packaged browser. Like... hey! How about a command line that can parse 'en' 'pee' 'em' without a leading period! Even the terminal in Webstorm can use Powershell as the command line without requiring a leading period! Or how about parsing hyphen g before or after the name of the lib to install! Please stick to the plan and follow the way. THat's how whoever did it got to nodejs... by sticking with Kernigan and Ritchie up until this very day when a forty year old command line is still ruling half the world or more. Come on people! This isn't helping! Woudl you use something called 'NodeJS Toyes?'


amalgamate extension-functions.c (sqrt,cos,stdev,etc)

this pr is intended to improve node-sqlite3's datascience-capabilities out-of-the-box, e.g.:
let db;
db = require("sqlite3");
db = new db.Database(":memory:");
db.serialize(function () {
    db.exec(`
CREATE TABLE data1 (val REAL);
INSERT INTO data1 VALUES (1.0), (2.0), (3.0), (4.0), (5.0), (6.0), (7.0);
    `);
    db.all("SELECT STDEV(val) AS std FROM data1;", function (ignore, rows) {
        console.log(rows[0].std);
        // output - 2.160246899469287
    });
});

admit the pr is a little hacky, and am open to suggestions to make it more clean ^^;;;
pr resolves #1414

First and foremost, thank you for taking the time to contribute, it's very much appreciated.
I was taking a look at #1438 which seems to reference that this extension is already present in the draft source code of sqlite3?
SQLite3 3.35 will include this functions (30th March) it will be released.
@kaizhu256 are you interested in PR'ing an alternative solution (upgrade to 3.35 + set flags + linker flags).
That would be a pull request that I would be more willing to merge, given that any time spent reviewing this PR will be undone by the next release.

Hi, closing this pull request in favor of #1507


Document MSBuild compression flags

Description
There are several MSBuild properties that can be used to customize compression behaviors.

CompressionEnabled completely disables compression.
CompressionExcludePatterns allows you to filter out some files from being considered for compression. This accepts glob patterns like **\*.js.

Page URL
https://learn.microsoft.com/en-us/aspnet/core/release-notes/aspnetcore-9.0?view=aspnetcore-9.0
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/release-notes/aspnetcore-9.0.md
Document ID
4e75ad25-2c3f-b28e-6a91-ac79a9c683b6
Article author
@Rick-Anderson
Related Issues

We also want to mention these flags in the upgrade path, in case a customer runs into issues.


feat: auth-helpers-nextjs total fix with createMiddlewareClient2

createMiddlewareClient was basically completely broken for correctly syncing the session state between the server and browser parts of a NextJS application.
It works in most situations where the user is actively interacting with the site, but as soon as they leave the site for an extended period of time and come back, it's very likely that after the JWT expiry time they will receive an Invalid Refresh Token error from the server. Because these events are not time-correlated, it's impossible to debug what is causing them.
Why does this happen:

NextResponse.next() is not enough. Pages, server-rendered components and route handlers do not see the Set-Cookie header set on the response.
Because this runs in the middleware.ts file, the session is correctly refreshed in the middleware client and the Set-Cookie headers are set on the response so the browser syncs up with the state of the middleware client.
However, the page or component client rendered on the server still only sees the cookie header from the request which is the old session and any use of getSession() or getUser() will refresh the session every time. If you have, say, 3 Data API calls to PostgREST, it's very likely that the session would be refreshed 3 times.
Because the page or component cannot set headers on the response, these refreshed sessions just remain unused, but the Auth server already tracks them as the "later" refresh tokens for the user session and is expecting (for security reasons) the browser to know about them too.
One hour after this has happened, the Supabase client on browser or server will try to refresh the session from step 2 (coming from middleware.ts) and be greeted with the "Invalid Refresh Token" error.

How is this being fixed:
The design of createMiddlewareClient does not care at all about what happens to the request, but this is incredibly important so the new refreshed session is passed down to the page or server-rendered component. Furthermore, this cannot "just be set" as for the propagation to take place, NextResponse.next({ request }) needs to be called.
Therefore, createMiddlewareClient is fully deprecated and replaced with its new counterpart createMiddlewareClient2. This works a bit differently (without reinventing the simplistic beauty of the @supabase/ssr package):
export function middleware(request: NextRequest) {
  const [supabaseClient, nextResponse] = createMiddlewareClient2(request, { /* standard client options */ })

  const { data: { user } } = await supabaseClient.auth.getUser()

  if (!user) {
    // there's no user session, ask them to log in
    return NextResponse.redirect(new URL('/sign-in-page-in-your-app'))
  }

  return nextResponse()
}

Firstly it returns two arguments, the Supabase client and a nextResponse function. It should be called towards the bottom of the middleware.ts file, ideally in the return statement.
The client is setup such that, it initially reads from the request's Cookie header, but writes the changes to local memory. It tracks what items (not cookies!) are being set or deleted.
When you call nextResponse() the requests's Cookie header is reset to reflect the new state of the Supabase client. Because this header will just be propagated down to the page or server-rendered component, no cookie chunking is necessary.
Then, it calls:
NextResponse.next({
  request
})

Which ensures that the request's changes will be actually propagated down to the page or component. This enables the clients there to pick up the Cookie header which now includes the refreshed session.
Finally, it sets the Set-Cookie header on the response, which eventually reaches the browser and the session state is finally synchronized between them.

pnpm build:nextjs fails - also, if createMiddlewareClient is broken, why not just modify the implementation to call createMiddlewareClient2 under the hood instead?

As described in the PR -- to forward the headers NextResponse.next() should be called after the client has processed the session.

@hf you need to export the new client in the index.ts file too

Reviewing now


Could I use this directly on a server?

I want to run it on a server, and access it from my own computer. But it seems this acquires the browser to run. Since I do not have a Xwindow on the server, is it possible to run it on server?

Of course, you can. Just set listen address with your server IP and set [openpage] setting enabled to false in aurora.toml.

3Q! I didn't notice there is a toml file.


Incorrect fingerprint for github proof?

The output I got when trying to prove my Github identity seems to use a fingerprint I do not recognise. It starts out like this:
### Keybase proof

I hereby claim:

  * I am lindhe on github.
  * I am lindhe (https://keybase.io/lindhe) on keybase.
  * I have a public key ARB61KejAt8j-Z8OHwbrT4gZz0eyA2nE3V_xMKgsZIasQgo

As you can tell, it does not at all look like a fingerprint usually does, and it's certainly not 4EEECFA0147F71215C72CF2E34C14B6996D5B89E which I expected to see.
It might well be something fancy like a NaCL fingerprint or something else I'm not familiar with. If it is not, I'll provide more details to debug. But I don't feel like writing an essay in case this is expected output.

Can I make it use GPG instead of NaCL if that is what's happening here?

Base64 for a NaCl kid
Written in hex it would be
01107ad4a7a302df23f99f0e1f06eb4f8819cf47b20369c4dd5ff130a82c6486ac420a

https://gist.github.com/lindhe/e3b5310aed8073d361298689eed6e6f5
Your proof says:
I have a public key whose fingerprint is 4EEE CFA0 147F 7121 5C72 CF2E 34C1 4B69 96D5 B89E
I'm confused.
What's your problem?

After five or so "failed" attempts using the keybase cli client, I tried the bash + crul + gpg method and got a proof with a PGP fingerprint. I now realize that it most likely was a legitimate proof the first time(s) also, but I didn't understand that since I expected to see a PGP style fingerprint. My issue was further compounded by the fact that a third party client I used incorrectly said that the proofs using NaCl cloud not be verified (so I started to think something was broken on your end). So I guess I have figured things out by now, and there was no real bug (in your client) to begin with.
But I would like to propose a give the alternative to use PGP instead of NaCl. I'm pretty well versed with cryptography, but the rather unusual fingerprint threw me off. Frankly, I don't even know what key that is or how to check that the fingerprint corresponds to the correct key. What I want to say is that I think it would be more user friendly if it had the option to use PGP keys instead of NaCl. I understand that your client can easily verify either, but people can't.

PGP is not user friendly.
PGP is developer-that-knows-how-to-use-PGP friendly.
I am not affiliated with Keybase, but PGP keys are not compatible with the use cases that keybase is looking to fill with their services.
You can still generate proofs with PGP if you want. You just need to be aware that it is not default.
That’s not keybase’s fault.
Also, the third party app says that keybase support is experimental. So saying that keybase should change to match some third party’s app that is only experimental stage is not realistic.

Please try not to warp the meaning of my words like that. I have never said anything anything along those lines.

I am not affiliated with Keybase, but PGP keys are not compatible with the use cases that keybase is looking to fill with their services.

Yes, PGP keys are absolutely compatible with the use case of creating proofs. PGP is one of the core technologies used in Keybase. As you yourself have already pointed out, my proof was signed with a PGP key.
NaCl might have some technical benefit that I do not know of, and if that is the case I have no issue at all with them having it as the default. But if PGP can be used (which it can) I would rather like to generate my own proofs with that technique, so that it's easier for me to compare the proofs with my key and so on. There are a lot of users who know how to compare the PGP fingerprint with the correct key. No reason to not let them do that.

You can still generate proofs with PGP if you want. You just need to be aware that it is not default.
That’s not keybase’s fault.

It is most certainly up to Keybase what's the default settings in their client. And while I would rather see PGP being their default setting I did not even propose that. I proposed giving us the option, not changing the default.

Also, the third party app says that keybase support is experimental. So saying that keybase should change to match some third party’s app that is only experimental stage is not realistic.

The third party app clearly has a broken implementation of the Keybase proof verification, and there is an open issue for it. I said that my issue was compounded by the fact that the app incorrectly were not able to verify the proofs. But maybe I should have rather written that "because of the fact that a third party app I use have an incorrect implementation for verifying Keybase proofs, I was further led to believe that the proofs with fingerprints I did not recognize were broken". But I was on mobile, so I chose not to be so precise.

What it boils down to, and what I think you misunderstood from what I wrote, is that it would be nice to be able to generate the proofs using signatures with PGP, directly using their client. As it stands, their web client generates proofs with PGP. The alternative "hardcore" version of CLI (I.E. bash + gpg + curl) uses PGP. The keybase cli client by some reason, does not. And as far as I can tell from the documentation, there is no flag for it. I think there should be one.


volume indicator and night light (blue light filter)?

Hi,
Maybe there are already features for this and if so, what are the config lines of code to configure them? I have looked everywhere online and no help yet. Thank you.

waybar & https://github.com/hyprwm/Hyprland/issues/1140

waybar & #1140

I have waybar already. I want something like this: https://github.com/francma/wob. I've used this on sway before and it works like a charm. I'm hoping for something similar for hyprland. Also I am not familiar with shader programming and how to apply it to my linux environment. Do you have any helpful guides?

http://wiki.hyprland.org/Configuring/Variables/#decoration
If it works on sway probably also works on hyprland

http://wiki.hyprland.org/Configuring/Variables/#decoration
If it works on sway probably also works on hyprland

okay adding:
decoration {

screen_shader = path/to/[filename].frag
}

to the config did the trick with the blue light filter.
As for the WOB, I wish I knew what the config code was to get it to work 😭

@leozhang1 If you want the blue light filter activated on a schedule, you can use a script I wrote: https://github.com/loqusion/hyprshade


if more than 1 replicate spectrum, which one used to query main database?

if there's more than 1 replicate spectrum for a given compound in the replicates database, which one do you use to query the main database? a randomly-selected one? or do you query with all of them and average performance?
Additionally, if training with a different dataset that has a few spectra for a given compound, should I include them all in the replicates sdf file or only one?
Thanks!

Thanks for the interest!
We reported our results based on the spectra; we didn't aggregate the results for a single molecule if it had multiple replicates spectra.
I'm not sure if I fully understand your second question. We use the replicates file for evaluation only, so having multiple spectra for a single model doesn't affect the model's performance. For training purposes, it would probably be fine to include multiple spectra for the same molecule.

thanks for your response!
To elaborate on my second question:
I want to train and evaluate the model with a different dataset. In this dataset, the replicates library contains sometimes several spectra for the same molecule. What should I do in these cases (what did you do in these cases if you had cases like this?)? Should I include all different spectra for a single molecule or include just a randomly-selected one? If I include several spectra for a single molecule, which one is used to query the augmented library during evaluation?

For our project, our goal was to show how often we could recover the right molecule identity in the top K hits. We regarded multiple spectra for a single molecule in the replicates library as independent queries, and reported the results over all spectra (rather than over all molecules).
If you'd like to report your results based on recovery by molecule, maybe it makes more sense to randomly select a spectra, as you suggested. If the spectra aren't super noisy and different, you could run each spectra as a query, and then find a way of aggregating the results, perhaps by overlap.

thank you!


fix instruction mistake and add instructions for fixing rake sequel c…

Correcting a mistake in my previous PR and adding instructions to fix the rake sequel:create command.

@opensourceame Thanks for the fix.


Creating a new overlay in an other overlay handler is not possible

Which Ionic Version? 1.x or 2.x
2.x beta 11
Short description of the problem:
I have an ActionSheet overlay, containing one button (basically a delete action); In the handle of this button, I would like to pop a new Alert overlay (to ask for user confirmation for example). The Alert is showing up, but then we are stuck on it cause there is no effect when clicking on any buttons of the Alert Overlay.
What behavior are you expecting?
If I put the code of the ActionSheet button handle in a setTimeout function (tested with 1 second timeout), it is working as expected (The handlers of the alert buttons are called). I guess this is because the ActionSheet has not been popped out of the stack yet, and I am trying to insert a new overlay.
I am using ionic-beta11, but it was not working with beta 10 either. In the past, this behavior was working well (but I definetely have no idea from which version it stopped to work).
I attached 2 plunkers (one without the setTimeout, one with it) to illustrate the issue.
Both plunker are using beta10, but even with updating the ActionSheet/Alert to the new Overlay API (using AlertController, ActionSheetController), the same behavior is happening and it is also not working. (Sorry, couldn't get the plunker working with beta11...)
Plunker that shows an example of your issue
Not working example: http://plnkr.co/edit/umdrsPVELJkOhcLk2q2q?p=preview
Working example (using timeout hack): http://plnkr.co/edit/0LIXSGaE1KBfyUMO3DeP?p=preview

Hello! Thanks for opening an issue with us! As you can read here all your navigation and presenting of components is async in Ionic 2, therefore you must wait on one transition to finish before starting the next. I have made a plunker here that demonstrates the correct way to use promises and events to achieve your use case. Thanks for using Ionic!
PS: the only change you will need for beta.11 is to use the new overlay API and use onDidDismiss instead of onDismiss. There is currently an issue with the issue plunker and beta.11 related to an npmcdn issue, but this should be fixed soon.

This looks indeed a much cleaner way to do it; Thank you for you help and keep up the good work !

No problem and thanks for the kind words @schankam !


Elaborate on concurrency in GitHub actions

Code of Conduct

[X] I have read and agree to the GitHub Docs project's Code of Conduct

What article on docs.github.com is affected?
https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#concurrency
What part(s) of the article would you like to see updated?
I am dealing with a situation of both concurrency and integrity.
Assume a workflow with 4 actions:

checkout
set up dependencies
build container
push container

These run in a nice chain, as multiple jobs.
This workflow runs on pull_request. So every commit on a branch that is a PR triggers a new container to be built.
That container is then tagged with pr-<number>-latest, so that tag constantly moves to the latest version of the built of that PR.
Now, we have a PR open, number 3.
We do a commit, which triggers the workflow, which we'll call workflow run A. We spot a non-build-breaking error and, change our code, and push a second commit, which triggers the workflow, this time workflow run B.
So we can do concurrency at the level of the workflow itself, which protects us from B ever finishing before A.
But how does it work when we do concurrency at an individual job level? When does it get evaluated?
Let's look at our same flow again, but we move the concurrency to the level of push container.
So we have our new PR, number 4.
We do a commit, which triggers the workflow, workflow run A. We spot that non-build-breaking erroro again and we change our code, and push another commit, triggering workflow run B.
Now, because of some flaw in some external dependency the build part of workflow run A takes significantly longer, so that workflow run B actually builds and pushes BEFORE workflow run A.
So going back to that concurrency at a job level:
Does it get checked when the job starts and it checks for same-named siblings?
Or does it also take in account the order in which they're added to the workflow queue?
Additional information
No response

Thank you for opening this detailed issue!

So going back to that concurrency at a job level:
Does it get checked when the job starts and it checks for same-named siblings?
Or does it also take in account the order in which they're added to the workflow queue?

I believe that a job using concurrency will not start if there is already a job/workflow in progress that uses the same concurrency group. Instead, the job will be paused and have the status pending. Additionally, if there is also a job pending in the same concurrency group, that job will be canceled. So you will have a maximum of one running and one pending job within the concurrency group.
Does this answer your question? We recently added new docs about concurrency here: https://docs.github.com/en/actions/deployment/about-deployments/deploying-with-github-actions#using-concurrency Let us know if you think we should add more details or examples to that article.


Spike flush data

What is the context of this PR?
To get a first look at flushing data from a survey. The spike was initially undertaken to investigate whether it was possible, which it is. However, how it should work is still up for discussion.
As long as we have the eq_id, form_type, collection_exercise_sid and ru_ref we can recreate the user_id and ik meaning we can get the data out of the database for any user, without needing any session stored keys.
At the moment I have put a flag on the JWT and dealt with it in session.py, however I also experimented with making an end point and that was just as effective. A middle ground is probably the best solution, with a flag in the JWT passing to an endpoint to do the flushing.
The JWT seems to be the way to go as it offers authentication but the rest is up for debate
N.B You can see it working by using /dev and ticking the flush data checkbox. I have left a logger statement in the code on purpose so the flushed data can be seen for this spike
How to review
No review required, just general comments and idea's how it should work

As discussed; we'd also benefit from he ability to not just flush but also clear a respondents data using the same/similar mechanism (e.g if their data is broken in some way) so we should think about that as part of the discussion/approach.

Andrew's idea was the add to the JWT a list of endpoints that the authentication provides permissions to access and add a /clear /flush etc. Endpoint that can only be accessed if the JWT gave permission to prevent regular users just hitting them. Combined with this the JWT could contain an 'action' to take e.g. go to /flush.

Spike has proven what it needed to, a card has been created for the implementation of this.


Add example for display attribute localization

The runtime doesn’t look up localized strings for non-validation attributes. In the code above, “Email” (from [Display(Name = "Email")]) will not be localized.
it is really annoying to state a problem in official documentation without telling a solution or a workaround.
Thanks a lot

https://github.com/aspnet/Mvc/issues/3518


footstep esp

mby add?

 But visual Audio is okay for me.

+1


InternalServerError: binary data has type 0 (-) instead of expected 25 (text) in record column 1

EdgeDB Version: 3.0-dev.7435+bb3b78c
EdgeDB CLI Version: EdgeDB CLI 2.3.1+ef99779
OS Version: Windows 10

Schema:
module default {
  global abc -> tuple<str, int64>;
}

Query:
var result = await client
    .WithGlobals(new Dictionary<string, object?>
    {
        { "abc", ("abc", 123L) }
    })
    .QueryAsync<(string, long)>("select global abc");

State data:
00000001000000030000002B00000001000000000000001F0000000200000000000000036162630000000000000008000000000000007B

Parse succeeds, Execute throws the ISE.
Can other people test in different bindings? I don't think this is only a .NET binding issue.

seems to happen with any tuple type

Yup I'm getting the following in Python:
edgedb.errors.InternalServerError: binary data has type 0 (-) instead of expected 25 (text) in record column 1

JS client as well: https://github.com/edgedb/edgedb/issues/5356

It works in the CLI, but that has a pretty different path

dupe


[New]: Added button for delete modules

Summary of the Pull Request

PR Checklist

[ ] Closes: #xxx
[ ] Communication: I've discussed this with core contributors already. If work hasn't been agreed, this work might be rejected
[ ] Tests: Added/updated and all pass
[ ] Localization: All end user facing strings can be localized
[ ] Dev docs: Added/updated
[ ] New binaries: Added on the required places

[ ] JSON for signing for new binaries
[ ] WXS for installer for new binaries and localization folder
[ ] YML for CI pipeline for new test projects
[ ] YML for signed pipeline

[ ] Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx

Detailed Description of the Pull Request / Additional comments
This pull request adds a button at the end of each module page that allows you to remove the module, thereby freeing up some space. For me, this is a very necessary function, since I do not need most of the functions that Microsoft PowerToys provides me.

Validation Steps Performed

@microsoft-github-policy-service agree


Bugfix/combobox multiple display

Linked Issue
Closes #2963
Description
In Zag's documentation:

This leave values to be handled on our own. selectedLabels does that. I provided a transform function as a prop in case user wanted to customize it.
I think this is an OK solution since the component is temporary. There are limitations when multiple is set now, such as manually wiping the input value (not using the dropdown) doesn't reset the value (if it's supposed to do so even).
Changsets
Instructions: Changesets automate our changelog. If you modify files in /packages, run pnpm changeset in the root of the monorepo, follow the prompts, then commit the markdown file. Changes that add features should be minor while chores and bugfixes should be patch. Please prefix the changeset message with feat:, bugfix: or chore:.
Checklist
Please read and apply all contribution requirements.

[x] This PR targets the dev branch (NEVER master)
[x] Documentation reflects all relevant changes
[x] Branch is prefixed with: docs/, feat/, chore/, bugfix/
[x] Ensure Svelte and Typescript linting is current - run pnpm ci:check
[x] Ensure Prettier linting is current - run pnpm format
[x] All test cases are passing - run pnpm test
[x] Includes a changeset (if relevant; see above)

@Hugos68 would you mind doing a quick audit of this when you can. I want to verify this is the most Zag-friendly way to go about this. Feedback or suggestions welcome.

Will do! 👍

@phamduylong after thinking about this I don't think we'll move forward with this change. There's nothing wrong with your implementation, I just think from a UX perspective I don't think multi-selection is a great experience for our Svelte-only Combobox for now. There's essentially two ways to handle the display:
Example 1: using a comma separated list like so (which I believe you opted for):

Example: 2: Using an input with tags:

I really don't like the first option as it is extremely limited on space, even if the input expands. And the second should look familiar because we already have a primitive component for this interface - the Tags Input component!
I understand that it's a common user pattern to select multiple options from a canned list of options, but I'd rather we wait until we have Floating UI Svelte available to pair with the Tags Input, rather than re-inventing the Tags Input component within Combobox. Especially since it's only intended as a temporary solution. Basically the simplest solution is probably the best when it comes to any Svelte-specific Popover components.
Plus I'd rather not have a feature, then have it implement in a way I don't think it useful.
So for now I'm going to do do the following:

Close your PR
Update the ticket with the decision to remove the multiple option from Combobox
Then submit a follow up PR that omits the multiple prop from the component's type to disable this feature

Understandable. Thanks for the heads up 😄

@phamduylong yeah, thanks for your effort on this all the same. We always have this as reference if we change our mind in the future. Much appreciated sir!


Segmentation Fault

Hi,
Thanks for the package. I compiled it as mentioned in your docs but when I am running Edgetpu example its giving me the segmentation fault.
Error: Encountered unresolved custom op edgetpu-custom-op
Error: Node number 0 (edge-custom-op) failed to prepare
Platform : Raspberry Pi4
OS: Raspbian Buster

Most likely an outdated version of libedgetpu, can you share the outputs of:
dpkg -l | grep libedgetpu

It was version 14. I have uninstalled your package as of now but I can confirm it was 14. I also tried your minimal package and got the same error.

Humn, what OS are you doing this on?
Can you try capturing the strace logs? I can probably find which share library was actually loaded during runtime :)

Thanks and Sure , I will compile your minimal package again since it takes less time and come back to you. I am using raspbian buster on raspberry pi4

Hi @Namburger here is the log file.  https://drive.google.com/file/d/1AEIk2MNh0ZhlfHzEXig0zCZpX1f3F4ts/view?usp=sharing

@zainmehdi Humnnn, looks like you're right o_0, from the strace:
openat(AT_FDCWD, "/home/pi/edgetpu-minimal-example/libedgetpu/direct/armv7a/libedgetpu.so.1", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3

Let me try to reproduce on my pi, haven't touch it in a while :)

Humn, I can't reproduce it, unfortunately, just did a fresh installed of buster, and tried the minimal example:
strace ../out/armv7a/minimal ../test_data/mobilenet_v1_1.0_224_quant_edgetpu.tflite ../test_data/resized_cat.bmp ../test_data/imagenet_labels.txt 2> strace.txt
...
Class: Egyptian cat
Score: 0.792969
...

Even strace shows that I'm loading the same .so that I used in my repo...
cat strace.txt | grep libedgetpu.so
...
openat(AT_FDCWD, "/home/pi/workspace/edgetpu-minimal-example/libedgetpu/direct/armv7a/libedgetpu.so.1", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3

Here is the md5sum:
md5sum /home/pi/workspace/edgetpu-minimal-example/libedgetpu/direct/armv7a/libedgetpu.so.1
4e8ca36b62492f87ff59591e36186569  /home/pi/workspace/edgetpu-minimal-example/libedgetpu/direct/armv7a/libedgetpu.so.1

I'm not so sure, could you try adding pi to plugdev group?
sudo usermod -aG plugdev pi
sudo reboot now

@Namburger After adding plugdev I am able to run minimal example. Thanks alot. I am trying the camera example now. I will update here soon.

I have checked the camera example as well and its working now. Thanks alot :)

Awesome, have fun!