Indexer

It would be nice if we could get additional info:
Initial Auction

Number of bids
Auctions where I placed a bid
address, amount and time of all previous bids

Color is owned

What price was it sold at?
address of owner
address, amount and time of all previous bids
How long was the auction?
How many people participated?

Auction

Price it was sold for previously for all the previous auctions
Starting price
Number of bids
address, amount and time of all previous bids
Auctions where I placed a bid

Number of bids:
https://tzcolors-indexer.prod.gke.papers.tech/api/v1/auction/operations?entrypoint=bid&parameters.value=8120217918
Auctions where I placed a bid:
https://tzcolors-indexer.prod.gke.papers.tech/api/v1/auction/operations?entrypoint=bid&source=tz1PuipWs33aqS2KSG5k1qQtC6Dff1P1GBmM
address, amount and time of all previous bids:
https://tzcolors-indexer.prod.gke.papers.tech/api/v1/auction/operations?entrypoint=bid&parameters.value=8120217918


Set email deliver method to :test for development

:test method will not send the email, but instead print it to the logs. This
will allow faster development cycle, since there is no need to setup
smtp/sendmail when email is involved.
Closes #516

:+1:

Merged in https://github.com/thoughtbot/suspenders/commit/8b45fd42b29b71269ca239534f7dc77b8215d8ab. Thank you!


Clinic schema

Requesting review on the clinic database schema
Project requirements:

Take a look at the following database diagram for a clinic:

Create a file named schema_based_on_diagram.sql where you implement the database from the diagram.

Join tables from many-to-many relationships might not appear in the diagram, but you still need them.

Remember to add the FK indexes.

Thank you @ShoiraTa


NestedGraph with v2

Hi, I'm trying to use v2 and I'm having trouble with nested navigation.
In RootGraph, I have a MainScreen with four Screens contained in the MainGraph.
@NavGraph<RootGraph> annotation class MainGraph( val start: Boolean = false )
In MainScreen, how should I use MainGraph? I tried using DestinationsNavHost, but the navGraph parameter says the type doesn't match. I didn't find anything in the sample project, maybe I missed it.
I noticed a similar issue #604, but he ended up using two DestinationsNavHosts to solve the problem, which doesn't seem like best practice?
Can you give me an example? Thanks

Hi!
if you want to pass this graph to a NavHost, then it cannot have a parent - this is done by using a @NavHostGraph annotation instead of @NavGraph<RootGraph>.
read more here:
https://composedestinations.rafaelcosta.xyz/v2/defining-navgraphs#defining-navigation-graphs-1
If you’re migrating to v2, I recommend following this  guide:
https://composedestinations.rafaelcosta.xyz/migrating-to-v2

It seems that multiple NavHosts are not recommended in v2? What should I do to best implement nested navigation?

It was never recommended, but there are some reasons to do it. If you have it setup like that and it works well for you, I wouldn’t bother changing it 🙂

I have been researching for another day, but still haven't found how to implement nested navigation with single DestinationNavHost on v2. Can you give me an example？


Reputation module

This branch includes:

UI component to create a new CropTemplate OR apply an existing one to a Crop/Field/Subfiled
Integration with AWS KMS
Integration with Ethers.js
A signer Class capable of creating, getting, and signing with CMKs (Customer Managed Keys)
Integration with Colony SDK
Mongoose DB Entities for CropTemplate and Farmer (updated to store a keyID),
Simple Calculation function to generate payload amount

It looks pretty good, the only part I'm concerned about is relying on AWS KMS for just one piece of functionality. We shouldn't rely on the cloud given what Heifer have said already about not wanting it and i think multiple cloud providers will just make it more complicated. A quick look online suggests to me that people use it because it supports the signing algo that eth uses, but there probably is more to that in the form of availability.
The standard for open source key and secret management is Hashicorp Vault and I was thinking it might be a decent alternative? By itself it looks like it doens't have the functionality but the gap can be closed with plugins and software.

https://github.com/ConsenSys/ethsigner

Backed by Vault

https://github.com/kaleido-io/vault-plugin-secrets-ethsign

My (mis-)understanding is probably obvious but we can go through it in the PR run though to get a clearer picture!
Other than that I can't wait to see it in action!

The ideal solution is an HSM however most solutions are too expensive for the pilot. For a quicker setup, we focused on on KMS solutions such as Vault and AWS. Vault requires more upfront setup (larger learning curve) and maintenance (since its open source we need remove as much maintenance as possible). Vault also seems like it will be a more expensive solution as its starter prices is .50 cents an hour which is roughly $360 an hour.

AWS KMS is a fully managed solution (no maintenance required) which I was able to setup in a day.
Check out this post on a similar idea (this one is a little different as the signer functions are encapsulated in lambda functions but the use of KMS is the same).

Vault is open source (the core of it is free and there's enterprise features on top for a fee) and free which is really the only 2 reasons I'm suggesting it, but you're right KMS is less of a headache because it's a managed for us and more importantly there are examples on the internet on our use case. With vault I think we'll have to figure it out from deploying and configuring vault to integrating it with the code because there are few samples on the internet.
The main reason I was discounting the maintenance and setup costs is because in terms of infrastructure we're already running on a Kubernetes cluster and deploying new software is made easy via infra as code projects like helm.
I think it's good to merge in since the other stuff is fixed because as always the work and feature is more important than problems but maybe in the future we can look to migrating to vault.

Vault is open source (the core of it is free and there's enterprise features on top for a fee) and free which is really the only 2 reasons I'm suggesting it, but you're right KMS is less of a headache because it's a managed for us and more importantly there are examples on the internet on our use case. With vault I think we'll have to figure it out from deploying and configuring vault to integrating it with the code because there are few samples on the internet.
The main reason I was discounting the maintenance and setup costs is because in terms of infrastructure we're already running on a Kubernetes cluster and deploying new software is made easy via infra as code projects like helm.
I think it's good to merge in since the other stuff is fixed because as always the work and feature is more important than problems but maybe in the future we can look to migrating to vault.
Vault Source: https://github.com/hashicorp/vault Kubernetes Integration: https://www.vaultproject.io/docs/platform/k8s

Good points and I agree that it might be worth while to look into being that we already have Kubernetes running (didn't realize that)


Adds optional Aliasfile config

Over my last shift during the multitude of investigations I found myself wishing I had somewhere that automatically sourced some convenient aliases into ocm-container.  This adds that configuration.
The idea here being that each individual SRE can define their own set of helpful aliases rather than being forced to use the same list of them.

Yeah, I was considering just using those, but sometimes I use those for development stuff, like if I want to add a specific directory as a volume mount for a specific reason (like, when I need to reset a bunch of AAO accounts I'll mount a directory just for that reset so I can store all the account names, etc).
The other thing I wonder with in that is that we'd still need to add some code in order to have the bash shell automatically source the alias/shell files in order to pull them into the session.  So at a minimum we'd need to keep the 99-alias.bashrc file logic, and then anyone wishing to add that functionality would have to update their ocm config with:
OCM_CONTAINER_LAUNCH_OPTS="-v /path/to/alias.d:/root/.config/alias.d"

Which from a usability standpoint now means that the end-user needs to know exactly where the alias folder sits, assuming that it won't be overwritten if you also use ocm-container -o during a run command.
Though, as I'm working through this comment, since this allows a directory, I'm wondering if instead of calling it an ALIAS_FILE we should call this something along the lines of a PERSONALIZATION option?  Since it's not limited to just aliases.  Theoretically a user could put additional bash functions here, or other shell customizations like resetting their PS1 or something 🤔

nice, +1 from me, pretty safe since it only sources files matching sh extention
/lgtm


Failed to build apk on flutter 1.14

Flutter 1.14.6 • channel beta • git@github.com:flutter/flutter.git
D:\SDK\flutter\bin\flutter.bat --no-color build apk
You are building a fat APK that includes binaries for android-arm, android-arm64, android-x64.
If you are deploying the app to the Play Store, it's recommended to use app bundles or split the APK to reduce the APK size.
    To generate an app bundle, run:
        flutter build appbundle --target-platform android-arm,android-arm64,android-x64
        Learn more on: https://developer.android.com/guide/app-bundle
    To split the APKs per ABI, run:
        flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi
        Learn more on:  https://developer.android.com/studio/build/configure-apk-splits#configure-abi-split
Running Gradle task 'assembleRelease'...
ע: d:\SDK\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_unity_widget-0.1.6+5\android\src\main\java\com\rexraphael\flutterunitywidget\FlutterUnityViewFactory.javaʹ����δ�����򲻰�ȫ�Ĳ�����

ע: �й���ϸ��Ϣ, ��ʹ�� -Xlint:unchecked ���±��롣

Calling mockable JAR artifact transform to create file: C:\Users\a\.gradle\caches\transforms-2\files-2.1\551afd94a23510161cf9accf975db6de\android.jar with input d:\SDK\Android\Sdk\platforms\android-28\android.jar

FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':app:lintVitalRelease'.

> Could not resolve all artifacts for configuration ':flutter_unity_widget:profileRuntimeClasspath'.

   > Could not resolve project :UnityExport.

     Required by:

         project :flutter_unity_widget

      > Unable to find a matching variant of project :UnityExport:

          - Variant 'debugApiElements' capability android:UnityExport:unspecified:

              - Incompatible attributes:

                  - Required com.android.build.api.attributes.BuildTypeAttr 'profile' and found incompatible value 'debug'.

                  - Required org.gradle.usage 'java-runtime' and found incompatible value 'java-api'.

              - Other attributes:

                  - Found com.android.build.api.attributes.VariantAttr 'debug' but wasn't required.

                  - Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'.

          - Variant 'debugRuntimeElements' capability android:UnityExport:unspecified:

              - Incompatible attribute:

                  - Required com.android.build.api.attributes.BuildTypeAttr 'profile' and found incompatible value 'debug'.

              - Other attributes:

                  - Found com.android.build.api.attributes.VariantAttr 'debug' but wasn't required.

                  - Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'.

                  - Required org.gradle.usage 'java-runtime' and found compatible value 'java-runtime'.

          - Variant 'releaseApiElements' capability android:UnityExport:unspecified:

              - Incompatible attributes:

                  - Required com.android.build.api.attributes.BuildTypeAttr 'profile' and found incompatible value 'release'.

                  - Required org.gradle.usage 'java-runtime' and found incompatible value 'java-api'.

              - Other attributes:

                  - Found com.android.build.api.attributes.VariantAttr 'release' but wasn't required.

                  - Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'.
          - Variant 'releaseRuntimeElements' capability android:UnityExport:unspecified:

              - Incompatible attribute:

                  - Required com.android.build.api.attributes.BuildTypeAttr 'profile' and found incompatible value 'release'.

              - Other attributes:

                  - Found com.android.build.api.attributes.VariantAttr 'release' but wasn't required.

                  - Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'.

                  - Required org.gradle.usage 'java-runtime' and found compatible value 'java-runtime'.

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 2m 39s
Running Gradle task 'assembleRelease'...                          160.6s (!)
Gradle task assembleRelease failed with exit code 1
Process finished with exit code 1

In debug mode works fine.

@himulawang please follow the steps in the readme, or clone the example


Add stack using linked list

Have you read the Contributing Guidelines on Pull Requests?
Yes
(Write your answer here.)
Description
Added Stack Implementation using Linked List in C.
(Write your answer here.)
Checklist

[x] I've read the contribution guidelines.
[x] I've checked the issue list before deciding what to submit.
[x] I've edited the README.md and link to my code.

Related Issues or Pull Requests
#1983
(Write your answer here.)

@atarax665 Kindly Review

@atarax665 Kindly Review

I have changed it @atarax665 Kindly review it again

I have changed it @atarax665 Kindly review it again

I have changed it. Kindly review again @HarshCasper

I have changed it. Kindly review again @HarshCasper

I have changed it. Kindly review again @atarax665

I have changed it. Kindly review again @atarax665

I have resolved the change in README.md. Kindly review again @atarax665

I have resolved the change in README.md. Kindly review again @atarax665

@atarax665 @HarshCasper @iamrajiv  Kindly Review

@atarax665 @HarshCasper @iamrajiv  Kindly Review

@plazzy99 I have resolved it Kindly review again

@plazzy99 I have resolved it Kindly review again

@plazzy99 I have updated it. Kindly review again

@plazzy99 I have updated it. Kindly review again

@atarax665 @HarshCasper @iamrajiv Kindly Review

@atarax665 @HarshCasper @iamrajiv Kindly Review

@atarax665 @HarshCasper @iamrajiv @plazzy99. Kindly Review

@atarax665 @HarshCasper @iamrajiv @plazzy99. Kindly Review

@HarshCasper @atarax665. Can you please add DWOC and level label for this issue here on my PR.

@HarshCasper @atarax665 @anushkrishnav. Can you please add DWOC and level label for this issue here on my PR.

@HarshCasper @atarax665 @anushkrishnav . Can you please add DWOC and level label for this issue here on my PR.

@HarshCasper @atarax6 @anushkrishnav. Can you please add a level label for this issue here on my PR.


after make a record make a option to record again...

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

Issue already Exist 😅


update sdk in capabilities

Description
This PR updates the cosmos-sdk in the capability module.
Commit Message / Changelog Entry
deps: update cosmos-sdk in capability module

see the guidelines for commit messages. (view raw markdown for examples)

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

[ ] Targeted PR against correct branch (see CONTRIBUTING.md).
[ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
[ ] Code follows the module structure standards and Go style guide.
[ ] Wrote unit and integration tests.
[ ] Updated relevant documentation (docs/) or specification (x/<module>/spec/).
[ ] Added relevant godoc comments.
[ ] Provide a commit message to be used for the changelog entry in the PR description for review.
[ ] Re-reviewed Files changed in the Github PR explorer.
[ ] Review Codecov Report in the comment section below once CI passes.

Let's merge https://github.com/cosmos/ibc-go/pull/4398 first, and the diffs will be reduced :)
But this looks good!

Note: this is relevant to #4391

Note: this is relevant to

deps: update the sdk 50 branch to main #4391

Perfect, I can make another rc tag for capability once this is merged and let you know 👍 You won't have to rely on any local go mod pins that way.


Error: Invalid or incompatible cached data (cachedDataRejected)

I am trying to compile some nodejs that im using inside and electron app. I used nvm and selected the same versions of node as the node js i use inside the project to run the file compilation.
But when it try to npm start i get : Error: Invalid or incompatible cached data (cachedDataRejected).
Here you can see the node version used to compile the app is the same as the one running in my project.

Thanks for this awesome tool by the way :)

You must use electron itself, not Node.js, to compile the code.
Check the electron example to see how it is done.

Please let me know if the previous comment answers your question.

I will try it in the same way as the exampl. For all my view .js files and my other js modules i would still need to compile them in the main.js inside electron after the main window one ?

Also i is possible to cp.fork a compiled class ? Thanks alot

Also i is possible to cp.fork a compiled class ? Thanks alot

Yes, that's possible.

For all my view .js files and my other js modules i would still need to compile them in the main.js inside electron after the main window one ?

Well, compiling .js files inside the main.js file is just one way of doing it. The important thing is that: whatever executable you will use in deployment, must be the same executable you use in compiling your files.
So, you may write a very small electron script that will compile your .js files and generate .jsc files. Then, use .jsc files in the product that end-users will use.
This need some work to be done, but it is not that hard.
If you have any further questions please let me know.

Thanks for you help its now working ! Big S/0 for this amazing tool !

I am actually still having a problem with child process ! Its seems like even if i require bytenode when i do cp.fork and then give the path to my jsc it says Error: Cannot find module.

im also having issues with fs.read and path.resolve could this be related to bytenode ? thanks

Make sure you have required bytenode, before any statments that require .jsc files.
For the other question: please provide a minimal example that can be re-produced.

When packaged with electron builder or electron packager this problem still persists however it works well in development environment.How can we make sure in works after packaging?

Could you please provide more specific details? Write a minimal electron app and let me know what exactly went wrong.

Thank you for the response. Here is the repository with minimal reproduction. https://github.com/sanskarsakya/electron_package_bug.git . It is exact replication of  electron example with added dependency of electron-builder for packaging. Following error is shown after building the app.

I have cloned your repository. I ran npm start once, so that the .jsc file is generated. Then I removed the main-window.src.js file. Finally, I ran npm run dist. Everything works without issues. I can run the application, both from the .AppImage file as well as the ./linux-unpacked/package-test file.

I have been having some unusual trouble with this error. I have two electron applications (client and server) using bytenode on both the render and main processes. The server works perfectly fine, but the client's render process throws Error: Invalid or incompatible cached data (cachedDataRejected).  Things I have tried:

Loading the 'invalid' file in the server app: When I move the offending file over to the server, it loads fine- so I know that the file compiled correctly.
Verify both apps use the same version of  electron: Both programs are part of a monorepo, so they use the exact same electron binary.

Any idea what could be causing this? It's driving me mad.
Thanks!

Could you please provide a minimal app so I can reproduce the error?
It seems that you compile the files in your server, then you send it to the client. Did I understand it right?

This actually turned out to be issue #10 in disguise.


ROX-16510: (right) Fix identification of latest Helm releases

Description
This fixes identification of latest Helm releases for version compatibilities tests.
See commit descriptions for more detailed info on each modification.
Note that this modifies the former behavior that N releases prior to the given code commit were looked up. This change makes it return just the latest N releases (according to semver-like sorting of Helm's app_version). I wrote about it here. There's alternative fix that keeps that old behavior in https://github.com/stackrox/stackrox/pull/5942 but I like it less.
Checklist

[ ] Investigated and inspected CI test results
[ ] Unit test and regression tests added - some small Python things could (and should) be unit tested but we don't have Python testing framework in CI so I skip this.

These won't be done as this isn't a user-facing change:

[ ] Evaluated and added CHANGELOG entry if required
[ ] Determined and documented upgrade steps
[ ] Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)

Testing Performed

[ ] gke-version-compatibility-tests look good.

Also, compare the old output
$ .openshift-ci/get_latest_release_versions.py
Error: repository name (stackrox-oss) already exists, please specify a different name
stackrox-oss helm repository added
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "stackrox" chart repository
...Successfully got an update from the "stackrox-oss" chart repository
...Successfully got an update from the "rhacs" chart repository
...Successfully got an update from the "mirror-openshift" chart repository
...Successfully got an update from the "rhacs-preview-86" chart repository
Update Complete. ⎈Happy Helming!⎈
stackrox-oss helm repository update
Last 4 versions:
74.3.0
73.4.0
72.4.0
71.3.0

to the new output
$ .openshift-ci/get_latest_helm_chart_versions.py
INFO:root:Adding temp helm repository...
DEBUG:root:Got exit code 0 for command: helm repo add temp-stackrox-oss-repo-should-not-see-me https://raw.githubusercontent.com/stackrox/helm-charts/main/opensource
Stdout: "temp-stackrox-oss-repo-should-not-see-me" has been added to your repositories
INFO:root:Updating temp helm repository...
DEBUG:root:Got exit code 0 for command: helm repo update
Stdout:
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "stackrox" chart repository
...Successfully got an update from the "temp-stackrox-oss-repo-should-not-see-me" chart repository
...Successfully got an update from the "stackrox-oss" chart repository
...Successfully got an update from the "rhacs" chart repository
...Successfully got an update from the "mirror-openshift" chart repository
...Successfully got an update from the "rhacs-preview-86" chart repository
Update Complete. ⎈Happy Helming!⎈
DEBUG:root:Got exit code 0 for command: helm search repo temp-stackrox-oss-repo-should-not-see-me -l -o json
INFO:root:Discovered total 38 charts
INFO:root:Found 19 charts with the given name stackrox-secured-cluster-services
DEBUG:root:Identified these charts as 3 latest: [{'name': 'temp-stackrox-oss-repo-should-not-see-me/stackrox-secured-cluster-services', 'version': '400.0.0', 'app_version': '4.0.0', 'description': 'Helm Chart for StackRox Secured Clusters', 'parsed_app_version': Version(major=4, minor=0, patch=0)}, {'name': 'temp-stackrox-oss-repo-should-not-see-me/stackrox-secured-cluster-services', 'version': '74.3.0', 'app_version': '3.74.3', 'description': 'Helm Chart for StackRox Secured Clusters', 'parsed_app_version': Version(major=3, minor=74, patch=3)}, {'name': 'temp-stackrox-oss-repo-should-not-see-me/stackrox-secured-cluster-services', 'version': '73.4.0', 'app_version': '3.73.4', 'description': 'Helm Chart for StackRox Secured Clusters', 'parsed_app_version': Version(major=3, minor=73, patch=4)}]
INFO:root:Removing temp helm repository...
DEBUG:root:Got exit code 0 for command: helm repo remove temp-stackrox-oss-repo-should-not-see-me
Stdout: "temp-stackrox-oss-repo-should-not-see-me" has been removed from your repositories
INFO:root:Helm chart versions for the latest 3 releases:
400.0.0
74.3.0
73.4.0

Notice the old output does not return charts for v4.0.0.
It is also possible to suppress all logging noise by redirecting stderr to /dev/null:
$ .openshift-ci/get_latest_helm_chart_versions.py 2> /dev/null
400.0.0
74.3.0
73.4.0

/test gke-version-compatibility-tests

Builds are ongoing and gke-version-compatibility-tests haven't started, but I already open this for review.

/test gke-version-compatibility-tests

This is ready for review. gke-version-compatibility-tests look good to me. The run takes 1h32m.
Specifically, I find relevant things in logs:
INFO:root:Adding temp helm repository...
DEBUG:root:Got exit code 0 for command: helm repo add temp-stackrox-oss-repo-should-not-see-me https://raw.githubusercontent.com/stackrox/helm-charts/main/opensource
Stdout: "temp-stackrox-oss-repo-should-not-see-me" has been added to your repositories
Stderr: W0508 13:31:50.888619    1176 loader.go:222] Config not found: /tmp/kubeconfig-1967541266
INFO:root:Updating temp helm repository...
DEBUG:root:Got exit code 0 for command: helm repo update
Stdout:
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "temp-stackrox-oss-repo-should-not-see-me" chart repository
Update Complete. ⎈Happy Helming!⎈
Stderr: W0508 13:31:51.084073    1194 loader.go:222] Config not found: /tmp/kubeconfig-1967541266
DEBUG:root:Got exit code 0 for command: helm search repo temp-stackrox-oss-repo-should-not-see-me --versions --output json
Stderr: W0508 13:31:51.147048    1211 loader.go:222] Config not found: /tmp/kubeconfig-1967541266
INFO:root:Discovered total 38 charts
INFO:root:Found 19 charts with the given name stackrox-secured-cluster-services
DEBUG:root:Identified these charts as 3 latest: [{'name': 'temp-stackrox-oss-repo-should-not-see-me/stackrox-secured-cluster-services', 'version': '400.0.0', 'app_version': '4.0.0', 'description': 'Helm Chart for StackRox Secured Clusters', 'parsed_app_version': Version(major=4, minor=0, patch=0)}, {'name': 'temp-stackrox-oss-repo-should-not-see-me/stackrox-secured-cluster-services', 'version': '74.3.0', 'app_version': '3.74.3', 'description': 'Helm Chart for StackRox Secured Clusters', 'parsed_app_version': Version(major=3, minor=74, patch=3)}, {'name': 'temp-stackrox-oss-repo-should-not-see-me/stackrox-secured-cluster-services', 'version': '73.4.0', 'app_version': '3.73.4', 'description': 'Helm Chart for StackRox Secured Clusters', 'parsed_app_version': Version(major=3, minor=73, patch=4)}]
INFO:root:Removing temp helm repository...
DEBUG:root:Got exit code 0 for command: helm repo remove temp-stackrox-oss-repo-should-not-see-me
Stdout: "temp-stackrox-oss-repo-should-not-see-me" has been removed from your repositories
Stderr: W0508 13:31:51.175662    1226 loader.go:222] Config not found: /tmp/kubeconfig-1967541266

I'd not worry about kubeconfig warning.


[elasticsearch] fix helm test

This commit fix the Elasticsearch Helm test by adding security
compatibility.

ok to test


[RFC]: improve README examples of random/strided namespace

Description
This RFC proposes to improve the README examples of the random/strided namespace package. Currently, namespace package READMEs only include minimal examples which are not particularly informative and do not showcase namespace functionality.
Historically, namespace examples were not given much effort due to the rapidly changing nature of the project; however, now that development and organization has settled, it would be good to revisit these packages and add proper examples to better communicate to users how to use namespace contents.
For those wanting to contribute to this issue, you can use the following steps:

Browse through the contents of the random/strided namespace and identify interesting functions and packages to showcase.
Update the example code block in the "Examples" section of the README for the random/strided namespace and open a PR.
When updating the README, examples should follow existing project conventions (e.g., ES5).
Examples may require functionality from other packages to help make examples more interesting.

Related Issues
None.
Questions
No.
Other
No.
Checklist

[X] I have read and understood the Code of Conduct.
[X] Searched for existing issues and pull requests.
[X] The issue name begins with RFC:.

I want to work on this issue. Please assign me for this task. @Planeshifter


pipenv install xxx package error in python 3.10 version

ubuntu 20.04
python 3.10.4
pipenv --version
version 11.9.0
pipenv shell (working fine)
pipenv install celery (error)

Installing celery…
⠇
Error:  An error occurred while installing celery!
Traceback (most recent call last):
  File "/home/xx/.local/share/virtualenvs/yy-VQZGIAqw/bin/pip", line 8, in <module>
    sys.exit(main())
  File "/home/xx/.local/share/virtualenvs/yy-VQZGIAqw/lib/python3.10/site-packages/pip/_internal/cli/main.py", line 73, in main
    command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
  File "/home/xx/.local/share/virtualenvs/yy-VQZGIAqw/lib/python3.10/site-packages/pip/_internal/commands/__init__.py", line 96, in create_command
    module = importlib.import_module(module_path)
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/xx/.local/share/virtualenvs/yy-VQZGIAqw/lib/python3.10/site-packages/pip/_internal/commands/install.py", line 24, in <module>
    from pip._internal.cli.req_command import RequirementCommand
  File "/home/xx/.local/share/virtualenvs/yy-VQZGIAqw/lib/python3.10/site-packages/pip/_internal/cli/req_command.py", line 15, in <module>
    from pip._internal.index.package_finder import PackageFinder
  File "/home/xx/.local/share/virtualenvs/yy-VQZGIAqw/lib/python3.10/site-packages/pip/_internal/index/package_finder.py", line 21, in <module>
    from pip._internal.index.collector import parse_links
  File "/home/xx/.local/share/virtualenvs/yy-VQZGIAqw/lib/python3.10/site-packages/pip/_internal/index/collector.py", line 12, in <module>
    from pip._vendor import html5lib, requests
ImportError: cannot import name 'html5lib' from 'pip._vendor' (/home/xx/.local/share/virtualenvs/yy-VQZGIAqw/lib/python3.10/site-packages/pip/_vendor/__init__.py)

How to solve this error?

@hemanth-reckonsys  11.2.0 is long unsupported.  Please upgrade to a modern version like pipenv==2022.4.30

is something wrong?

pipenv --version
pipenv, version 2022.4.30
pipenv check
Checking PEP 508 requirements...
Specifier python_version does not match 3.1 (3.10).
Failed!

@hemanth-reckonsys Without seeing your Pipfile it is hard, but your new error I think is because you need 3.10 in quotes like "3.10" because Specifier python_version does not match 3.1 (3.10) -- its getting parsed as a float 3.1 without quotes.

@matteius hi, below i think i shared my all details
Pipfile
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[requires]
python_version = "3.10"

pipenv --version
pipenv, version 2022.4.30

python --version
Python 3.10.4

pipenv check
Checking PEP 508 requirements...
Passed!
Checking installed package safety...
All good!

pipenv install celery
Installing celery...
Error:  An error occurred while installing celery!
Error text:
Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/xx/.local/share/virtualenvs/yy-VQZGIAqw/lib/python3.10/site-packages/pip/__main__.py", line 19, in <module>
    sys.exit(_main())
  File "/home/xx/.local/share/virtualenvs/yy-VQZGIAqw/lib/python3.10/site-packages/pip/_internal/cli/main.py", line 73, in main
    command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
  File "/home/xx/.local/share/virtualenvs/yy-VQZGIAqw/lib/python3.10/site-packages/pip/_internal/commands/__init__.py", line 96, in create_command
    module = importlib.import_module(module_path)
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/xx/.local/share/virtualenvs/yy-VQZGIAqw/lib/python3.10/site-packages/pip/_internal/commands/install.py", line 24, in <module>
    from pip._internal.cli.req_command import RequirementCommand
  File "/home/xx/.local/share/virtualenvs/yy-VQZGIAqw/lib/python3.10/site-packages/pip/_internal/cli/req_command.py", line 15, in <module>
    from pip._internal.index.package_finder import PackageFinder
  File "/home/xx/.local/share/virtualenvs/yy-VQZGIAqw/lib/python3.10/site-packages/pip/_internal/index/package_finder.py", line 21, in <module>
    from pip._internal.index.collector import parse_links
  File "/home/xx/.local/share/virtualenvs/yy-VQZGIAqw/lib/python3.10/site-packages/pip/_internal/index/collector.py", line 12, in <module>
    from pip._vendor import html5lib, requests
ImportError: cannot import name 'html5lib' from 'pip._vendor' (/home/xx/.local/share/virtualenvs/yy-VQZGIAqw/lib/python3.10/site-packages/pip/_vendor/__init__.py)

✘ Installation Failed

it worked fine after I installed the 4th command but I do not know what the 4th command will do.
4. curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10
5. pipenv install celery (worked fine)

@hemanth-reckonsys Likely the version of pip on your system was too old to work with the newer pipenv.  If you can provide any additional details on what version of pip you had installed prior may be helpful.

hi @matteius,
this is my pip version
pip3 --version
pip 22.0.4 from /home/xxx/.local/lib/python3.10/site-packages/pip (python 3.10)

@hemanth-reckonsys That is your pip version now that it is working right?  After running curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10

@matteius, yes, it's working fine but still, I do not know why I need to run that command. and sometimes I need to execute export SETUPTOOLS_USE_DISTUTILS=stdlib this too.

After working through carious threads on this issue, I think what got this working correctly for me is the following on my Ubuntu 20.04 (WSL) .. will try it on my Ubuntu machine later wen attempting to duplicate this test environment for UAT/PTA purposes:

Installed Python 3.10.5 from the DeadSnakes PPA
Perform the pip update (to 22.1.2) via curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10
Install pipenv (2022.7.4) using pip
pipenv install xxx still failed at this stage. using pipenv shell in the project directory successfully created the necessary structures and virtual environment, though
Installed the required packages using pipenv install xxx from within the virtual environment and all working well.

@agpldev I don't recommend folks to use DeadSnakes in a production or critical environment.
From their own page:  https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa

Disclaimer: there's no guarantee of timely updates in case of security problems or other issues. If you want to use them in a security-or-otherwise-critical environment (say, on a production server), you do so at your own risk.

@agpldev I don't recommend folks to use DeadSnakes in a production or critical environment.
From their own page: https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa

Disclaimer: there's no guarantee of timely updates in case of security problems or other issues. If you want to use them in a security-or-otherwise-critical environment (say, on a production server), you do so at your own risk.

Appreciated and agreed @matteius, certainly worth highlighting/reiterating that point. I have not had time to compile 3.10 on this Ubuntu version for my purposes as I am still working on some design aspects at present.

The new version of pipenv==2022.8.5 should not depend on the system/user installed pip.


Permissions for disposition

[Enter feedback here]
The article says to create create a new role group called Disposition Reviewers, with one role from Exchange Online and one role from the Security & Compliance Center. Where should the role group be created? I'm assuming the Security & Compliance center, but it isn't clear. Is it possible to include a role from one admin center in the role group of another admin center?
Anything that can be done to make the permissions setting process would be much much appreciated.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 7ad8e9d1-9cd8-0231-b4ef-47c2657449d1
Version Independent ID: e2be2f00-9a29-592b-f202-ad73d6e7a99d
Content: Disposition of content - Microsoft 365 Compliance
Content Source: microsoft-365/compliance/disposition.md
Service: o365-seccomp
GitHub Login: @cabailey
Microsoft Alias: cabailey

@Jimnar  Yes, you can create this role group in the Security & Compliance Center.  It's not always possible to include a role from one admin center in the role group of another admin center. However, in this specific case, View-only Audit Logs from EAC can be assigned to a user as part of the Disposition Reviewers role group created in the Security & Compliance Center.
The engineering team is looking at making improvements to the permissions model for retention and records management, to make it simpler.  But I strongly encourage you to post this request on UserVoice, to help bump the priority and you can monitor progress.  Use this category: https://office365.uservoice.com/forums/289138-office-365-security-compliance?category_id=379531

@cabailey, thank you so much for the clarification. I think just making it a bit more clear in Docs would be a beautiful thing. Maybe take the text from your post and put it into the artilce:
It's not always possible to include a role from one admin center in the role group of another admin center. However, in this specific case, View-only Audit Logs from EAC can be assigned to a user as part of the Disposition Reviewers role group created in the Security & Compliance Center.

@Jimnar  I'm pleased my clarification helped but I'm hesitant to put "It's not always possible to include a role from one admin center in the role group of another admin center" into this documentation.  That statement is true today but might not always be true, and I might not be informed of such a change.  Instead, I would rather keep this documentation focused on what to do, and the instructions documented are possible by using by the Security & Compliance Center.  If it required a special configuration, such as PowerShell only, that would be documented.


Date and time types use UTC instead of the user's time zone

Date and time types use UTC instead of the user's time zone
Related to #10296
Consider the following code:
Console.WriteLine($"It is now {DateTime.Now} local time.");
Console.WriteLine($"It is now {DateTime.UtcNow} UTC.");
Console.WriteLine($"Your time zone is {TimeZoneInfo.Local.DisplayName}.");

When run interactively, it produces the following output:
It is now 03/12/2019 16:11:47 local time.
It is now 03/12/2019 16:11:47 UTC.
Your time zone is UTC.

When run on my local system, it produces the following output:
It is now 3/12/2019 9:11:37 AM local time.
It is now 3/12/2019 4:11:37 PM UTC.
Your time zone is (UTC-08:00) Pacific Time (US & Canada).

UTC appears to be used by default as the user's local time zone rather, and the UTC offset available from the user's browser is not used.
//cc @LadyNaggaga @jonsequitur

Closing. This is now a duplicate of dotnet/try#167.


Support displaying signature after selecting completion

Coming from vim and YouCompleteMe, a feature I didn't realize I depended upon was YCM's signature help (associated PR for it with GUI examples).  The signature would pop up after accepting a completion so that you can easily reference the signature while typing.
Below is what I am talking about:

After typing foo(, the signature help would float above what I was typing to reference it.  After the closing paren (i.e., )) the signature would disappear.
Does nvim-cmp already support this?  If not, is it a feature that fits well with the project?  Thanks!

A colleague pointed me at https://github.com/ray-x/lsp_signature.nvim.  If this feature is not in scope for nvim-cmp, I can use another plugin for this functionality.

The author of this plugin has mentioned multiple times that this feature is not within the scope of the project because is not in the LSP spec, hence he has no plans of supporting this. As you mentioned, there is lsp_signature.nvim and it's a fine solution.

@rafamadriz, thanks!  I completely forgot to check existing closed issues.  I found https://github.com/hrsh7th/nvim-cmp/issues/235#issuecomment-924942666.  I'll close this and apologies for the noise.


Chrisda to Main

Learn Build status updates of commit a205a59:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/Get-DataClassification.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Get-MailboxRepairRequest.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Get-MailboxSearch.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Get-SystemMessage.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/New-MailboxExportRequest.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/New-MailboxRepairRequest.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/New-MigrationBatch.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/New-SystemMessage.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Remove-SystemMessage.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Set-SystemMessage.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Test-OwaConnectivity.md
:white_check_mark:Succeeded
View (exchange-ps)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel


Domain activation is Failed - [BRIEF DESCRIPTION]

App Id: dqz07a4t7qjz4
Region: ap-south-1
Step: Domain activation
Status: Failed

Note: Do not include information that is sensitive in nature such as your domain name, company etc.

Issue/question
A clear and concise description of what the issue/question is.
Error message
If there is an error message, please include it here.
Note: Be sure to check the message for sensitive information.
Additional information
Please add any other relevant information. Please feel free to include screenshots.

Our records indicate that this domain is now available: pad*****t.com


0.8.x release with updated Istanbul?

I know 0.9.x is still in testing, but would it be possible to cut a 0.8.3 with the updated Istanbul dependency in the meantime? There are some important bugfixes in<EMAIL_ADDRESS>in particular

I'm afraid I won't have time to do this myself right now. If you can make a branch from https://github.com/facebook/jest/tree/3931bb0e377cfbb6f08f041a3f98b488e79a6867, update the dependencies and package.json and let me know which branch it is on your fork, I can pull it in and tag it no problem :) You can also fork jest at that point in time and set the dependency of your jest-cli package to git://github.com/facebook/jest.git@<commit-hash>.

@cpojer Here you go: https://github.com/yaycmyk/jest/tree/0.8.3

Hm, I thought about this some more and I'm all in with 0.9 right now and I'm worried that tagging this reveals some other problems of things that happened since the 0.8.2 tag. I think it makes sense to do what I said and link to your specific commit hash in the package.json of your project.
I was also thinking of whether it makes sense to be able provide your own version of jsdom. Basically a config option jsdom that is a path to the jsdom node_module that you'd like to use – that way people can decide more freely which version they want to use even if we at FB trail behind. Is this something you'd be interested in helping out with?
I'm going to close this. Sorry for the trouble but I really appreciate the contribution!

I also wanna say I'm trying to make the 0.9 release really awesome and am spread a bit thin trying to accomplish that and maintaining our internal test infra at FB right now – so I'm mostly just worried that tagging 0.8.3 would be a distraction, I hope that is understandable :)

Conceptually i like the idea, but it might be a little tricky since a future JSDOM update may change the API and swapping out versions would then not be trivial without editing the JSDOM environment file, etc.
Sent via mobile. Please excuse brevity / typos.

On Feb 19, 2016, at 4:23 AM, Christoph Pojer<EMAIL_ADDRESS>wrote:
Hm, I thought about this some more and I'm all in with 0.9 right now and I'm worried that tagging this reveals some other problems of things that happened since the 0.8.2 tag. I think it makes sense to do what I said and link to your specific commit hash in the package.json of your project.
I was also thinking of whether it makes sense to be able provide your own version of jsdom. Basically a config option jsdom that is a path to the jsdom node_module that you'd like to use – that way people can decide more freely which version they want to use even if we at FB trail behind. Is this something you'd be interested in helping out with?
I'm going to close this. Sorry for the trouble but I really appreciate the contribution!
—
Reply to this email directly or view it on GitHub.

There is already and experimental setting that you can use to include your own environment for your tests :)


[FEATURE] JRTB-0: create Skeleton Spring Boot project

Create skeleton Spring boot project for JRTB.
Acceptance criteria:

Spring boot project created.

implemented in https://github.com/patronRiza/javatelebot/pull/1


DW1820A bluetooth not recognized

Bluetooth worked exactly once on the macOS side. Fails to be recognized now (system report says no bluetooth installed).
Tried to rectify by re-running installer to reinstall driver. No change.
WiFi works fine in macOS. Both WiFi and BT work fine in Windows 10.
Expected behavior
Functioning bluetooth capability.
Configuration

HaC Mini version 2.10:
OSX version 10.15.6:
NUC model NUC8i7HNK:
Boot SSD model and protocol INTEL SSDPEKKW512G8, NvME:
Second SSD model and protocol WDC WDS500G2B0C-00PXH0 NvME (windows 10:
First DIMM model Kingston DDR4 2400MHz (8GB):
Second DIMM model Kingston DDR4 2400MHz (8GB):
Display port(s) used USB-C, HDMI:
Display resolution(s) 1080p:
Any TB3 devices:
Any USB devices: mouse, keyboard

Modifications
none
Panic log
none

Found this via dmesg:
****[BroadcomBluetoothHostController][TransportRadioPowerOff] -- returns kIOReturnError because Radio Power State = Powered Off -- inOpCode = 0xFCE9 (Broadcom VSC -- LE Meta VSC), From: Unknown (255), mNumberOfCommandsAllowedByHardware is 1, requestPtr = 0x8000

Upgraded install to 10.15.6 Supplemental Update.
Bluetooth is magically back....


Include inline ignored violations when --no-ignore flag is used

Please check if the PR fulfills these requirements

[x] The commit message follows our guidelines
[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Bug fix
What is the current behavior? (You can also link to an open issue here)
Running woke with --no-ignore processes ignored files, but continues to skip inline ignores. Fixes #54
What is the new behavior (if this is a feature change)?
Running woke --no-ignore now processes both ignored files and inline ignores
Does this PR introduce a breaking change? (What changes might users need to make due to this PR?)
Lines ignored with an inline ignore will now be processed when using the --no-ignore flag
Other information:

$ cat foo
Hey, check out this whitelist! // wokeignore:rule=whitelist
$ ./woke foo
No violations found. Stay woke ✊
$ ./woke foo --no-ignore
foo:1:20-29: `whitelist` may be insensitive, use `allowlist` instead (warning)
Hey, check out this whitelist! // wokeignore:rule=whitelist
                    ^
$ ./woke foo --no-ignore --debug
2021-03-05T19:29:45-05:00 DBG woke version main built from 000000 on today
2021-03-05T19:29:45-05:00 DBG rules enabled rules=["blackbox","blacklist","dummy","grandfathered","guys","man-hours","master-slave","sanity","slave","whitebox","whitelist"]
2021-03-05T19:29:45-05:00 DBG created new printer printer=text
2021-03-05T19:29:45-05:00 DBG process files path=foo type=parallel
2021-03-05T19:29:45-05:00 DBG finished processing violations durationMS=0.143625 file=foo
foo:1:20-29: `whitelist` may be insensitive, use `allowlist` instead (warning)
Hey, check out this whitelist! // wokeignore:rule=whitelist
                    ^
2021-03-05T19:29:45-05:00 DBG woke completed durationMS=0.928502

Thank you!


bug, admin login valid, bad web redirect

There is an error in file: functions-auth.php; Line: 83;
The content needed in $_SERVER['HTTP_HOST'] is not equal to used $_SERVER['SERVER_NAME'].
See before fix:
//$url = yourls_match_current_protocol(yourls_sanitize_url(sprintf("%s%s", $_SERVER['SERVER_NAME'], $_SERVER['REQUEST_URI'])));
See after fix:
$url = yourls_match_current_protocol(yourls_sanitize_url(sprintf("%s%s",YOURLS_SITE, $_SERVER['REQUEST_URI'] )));
Explain perceived error:
Configure [protocol]://www.domain.name. After login web redirects to: [protocol]://domain.name. This fails to recognized already logged in. I speculate: maybe the cookie (keeps session) is linked to the host-name (with: www.) instead of the domain-name.
Specifics to my installation:
I enabled the program with a domain name for testing, another for pre-production, then another for production. Having enabled server to listen to all three domains. But the program is configured once in defined constant: YOURLS_SITE. And the value defined in there is not being used in web redirect after login success.
In my scenario I changed to enable a dynamic site:
define( 'YOURLS_SITE', 'https://'.$_SERVER['HTTP_HOST'] );
So I can better handle security. I can hide "/admin/" dir from the public hostname in HTTP. And have it only visible in another hostname -or- domain using HTTPS.

YOURLS_SITE is the install root, eg "http://sho.rt" or "http://mysite.com/shorturl" : in your specific case you can define it as above, but this isn't going to work for everybody, especially people installing YOURLS in a subdir


Teardown command for deployment is missing

As I understand from the deployment instructions in the README file, the application is deployed nowhere.
It would be nice to have a teardown command, so, the non-existent deployment could be completely removed.
I'll be happy to open a PR for the same.

The easiest way for teardown is this,
rm /usr/bin/rm

You won't have to worry about leftover files ever again


Local resources used in #[cfg]-disabled tasks incorrectly considered shared

Modifying cfg-whole-task example from the repo:

//! examples/cfg-whole-task.rs

#![deny(unsafe_code)]
#![deny(warnings)]
#![no_main]
#![no_std]

use panic_semihosting as _;

#[rtic::app(device = lm3s6965,  dispatchers = [SSI0, QEI0])]
mod app {
    use cortex_m_semihosting::debug;
    #[cfg(debug_assertions)]
    use cortex_m_semihosting::hprintln;

    #[shared]
    struct Shared {
        #[cfg(never)]
        unused: u32,
    }

    #[local]
    struct Local {
        count: u32,
    }

    #[init]
    fn init(_: init::Context) -> (Shared, Local, init::Monotonics) {
        foo::spawn().unwrap();
        foo::spawn().unwrap();

        (
            Shared {
                #[cfg(never)]
                unused: 1,
            },
            Local {
                count: 0
            },
            init::Monotonics(),
        )
    }

    #[idle]
    fn idle(_: idle::Context) -> ! {
        debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator

        loop {
            cortex_m::asm::nop();
        }
    }

    #[task(capacity = 2, local = [count])]
    fn foo(mut _cx: foo::Context) {
        #[cfg(debug_assertions)]
        {
            _cx.shared.count.lock(|count| *count += 1);

            log::spawn(_cx.shared.count.lock(|count| *count)).unwrap();
        }

        // this wouldn't compile in `release` mode
        // *_cx.shared.count += 1;

        // ..
    }

    // The whole task should disappear,
    // currently still present in the Tasks enum
    #[cfg(never)]
    #[task(capacity = 2, local = [count])]
    fn foo2(mut _cx: foo2::Context) {
        #[cfg(debug_assertions)]
        {
            _cx.shared.count.lock(|count| *count += 10);

            log::spawn(_cx.shared.count.lock(|count| *count)).unwrap();
        }

        // this wouldn't compile in `release` mode
        // *_cx.shared.count += 1;

        // ..
    }

    #[cfg(debug_assertions)]
    #[task(capacity = 2)]
    fn log(_: log::Context, n: u32) {
        hprintln!(
            "foo has been called {} time{}",
            n,
            if n == 1 { "" } else { "s" }
        )
        .ok();
    }
}

and trying to compile:
>>= cargo build --example cfg-whole-task --target thumbv7em-none-eabihf
   Compiling cortex-m-rtic v1.1.3 (/Users/r/prj/p/copterust/japaric/cortex-m-rtfm)
error: Local resource "count" is used by multiple tasks or collides with multiple definitions
  --> examples/cfg-whole-task.rs:53:35
   |
53 |     #[task(capacity = 2, local = [count])]
   |                                   ^^^^^

error: Local resource "count" is used by multiple tasks or collides with multiple definitions
  --> examples/cfg-whole-task.rs:71:35
   |
71 |     #[task(capacity = 2, local = [count])]
   |                                   ^^^^^

error: could not compile `cortex-m-rtic` due to 2 previous errors

Even thoug foo2 is behind cfg(never).
Expected behaviour: code is accepted with local resource.

I haven't looked into this specific example, but in general its not possible for RTIC to evaluate (any) cfg, so the analysis need to be pessimistic (i.e. assume that the task will be there). The only thing we can currently do regarding cfg:s is to re-emit them during synthesis, so that the Rust compiler (later) evaluates the macro and removes the code.
That behavior is not specific to RTIC but a limitation of the current proc-macro design in Rust.
/Per

I'll close this for now, feel free to re-open if you still have questions.

@perlindgren well, crate announces some support for #[cfg], there is even a test. Support is just far from complete. While this task can be worked around (by using "shared" resouces), related bug is more annoying: https://github.com/rtic-rs/cortex-m-rtic/issues/665


Clippy 1.49

Address latest warnings with 1.48. It feels like we should have gotten the some_str == "" in earlier versions as well, other than this these are just minor idiomatic changes. Will follow up on this with a forgotten panic documentation on ipfs-unxifs walker.

Whoops, forgot the one I was thinking of following up later. Maybe I'll just include it here :) Cancelling.

Whoops, forgot the one I was thinking of following up later. Maybe I'll just include it here :) Cancelling.

Quite interesting I cannot get the error https://github.com/rs-ipfs/rust-ipfs/pull/435/checks?check_run_id=1642641798#step:6:294 locally with the usual trick of find . -name 'lib.rs' -or -name 'main.rs' -exec touch {} \; && cargo clippy --workspace --all-targets. Wonder why is that...

Quite interesting I cannot get the error https://github.com/rs-ipfs/rust-ipfs/pull/435/checks?check_run_id=1642641798#step:6:294 locally with the usual trick of find . -name 'lib.rs' -or -name 'main.rs' -exec touch {} \; && cargo clippy --workspace --all-targets. Wonder why is that...

bors r+

bors r+

Hmm so it succeeded but failed. Interesting...
bors retry

Hmm so it succeeded but failed. Interesting...
bors retry

Again, cancelling the in-PR workflow.
bors r+

Again, cancelling the in-PR workflow.
bors r+


Add thumbnails for non-binary scene types

There are no thumbnails in the filesystem dock for non-binary scene files. Quickly finding scenes is much easier in grid mode with previews.

yeah.. they can't be saved in-file like in scn, so i guess they should be
generated outside...
On Tue, Feb 9, 2016 at 5:05 PM, eska014<EMAIL_ADDRESS>wrote:

There are no thumbnails in the filesystem dock for non-binary scene files.
Quickly finding scenes is much easier in grid mode with previews.
—
Reply to this email directly or view it on GitHub
https://github.com/godotengine/godot/issues/3640.

Maybe they should be generated at the same place where .gd file thumbnails are stored?

Maybe they should be generated at the same place where .gd file thumbnails are stored?
If they aren't stored anywhere, it could be in local storage or under a special folder of the project?

On Linux, $HOME/.cache/godot should be used (the XDG cache directory) so that it doesn't go in $HOME/.godot (user doesn't need to back them up).

Not critical for the upcoming 2.1, so moving to the next milestone. (A fix for 2.1 would be great though :P)

Hi
I'm new here and I would like to start trying to fix the this issue.  It seems a easy job.
I like the idea to generate and store the thumbnails of .tscn files in the same way than .gd files. In case that loading an big scene takes a lot of time, the thumbnail could be also generated and cached when the scene is saved (the same behavior than binary scene).
Finally, I think that thumbnail generation for binary scene should work like the other non binary scenes format in order to give some consistency.

I think some work was done for this in the master branch. What's the current status?

I tried but failed. Sorry.

As far as i cant tell they already have a preview, hough its only generated when doing save and run scene, that is fixed by #12852


vs-code golangci-lint multiple processes eats up all memory

VSCode Version:Version 1.35.1 (1.35.1)
OS Version: Mac OS X Mojave 10.14.5

Steps to Reproduce:

install Go extension and golangci-lint

Impossible to use golangci-lint on vscode/go.12
Using the following settings on vscode
    "go.lintTool": "golangci-lint",
    "go.lintFlags": [
      "--config=${workspaceFolder}/.golangci.yml",
      "--fast",
    ],

Please include the following information:

Version of golangci-lint: golangci-lint --version (or git commit if you don't use binary distribution)

I can't even get the version
 golangci-lint --version
Error: unknown flag: --version
Usage:
  golangci-lint [flags]
  golangci-lint [command]

Available Commands:
  config      Config
  help        Help
  linters     List current linters configuration
  run         Run this tool in cloud on every github pull request in https://golangci.com for free (public repos)

Flags:
      --color string              Use color when printing; can be 'always', 'auto', or 'never' (default "auto")
  -j, --concurrency int           Concurrency (default NumCPU) (default 4)
      --cpu-profile-path string   Path to CPU profile output file
  -h, --help                      help for golangci-lint
      --mem-profile-path string   Path to memory profile output file
  -v, --verbose                   verbose output

Use "golangci-lint [command] --help" for more information about a command.

failed executing command with error unknown flag: --version

Config file: cat .golangci.yml

run:
  tests: true

linters:
  enable:
    - errcheck # Errcheck is a program for checking for unchecked errors in go programs. These unchecked errors can be critical bugs in some cases [fast: true, auto-fix: false]
    - govet # (vet, vetshadow): Vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string [fast: true, auto-fix: false]
    - errcheck # Errcheck is a program for checking for unchecked errors in go programs. These unchecked errors can be critical bugs in some cases [fast: true, auto-fix: false]
    - staticcheck # Staticcheck is a go vet on steroids, applying a ton of static analysis checks [fast: false, auto-fix: false]
    - unused # Checks Go code for unused constants, variables, functions and types [fast: false, auto-fix: false]
    - gosimple # Linter for Go source code that specializes in simplifying a code [fast: false, auto-fix: false]
    - structcheck # Finds an unused struct fields [fast: true, auto-fix: false]
    - varcheck # Finds unused global variables and constants [fast: true, auto-fix: false]
    - ineffassign # Detects when assignments to existing variables are not used [fast: true, auto-fix: false]
    - deadcode # Finds unused code [fast: true, auto-fix: false]
    - typecheck # Like the front-end of a Go compiler, parses and type-checks Go code [fast: true,       auto-fix: false]
    - golint # Golint differs from gofmt. Gofmt reformats Go source code, whereas golint prints out style mistakes [fast: true, auto-fix: false]
    - gofmt # Gofmt checks whether code was gofmt-ed. By default this tool runs with -s option to check for code simplification [fast: true, auto-fix: true]

    # TODO(mbana): enable these in next PR
    # - gosec # Inspects source code for security problems [fast: true, auto-fix: false]
    - interfacer # Linter that suggests narrower interface types [fast: false, auto-fix: false]
    - unconvert # Remove unnecessary type conversions [fast: true, auto-fix: false]
    - dupl # Tool for code clone detection [fast: true, auto-fix: false]
    - goconst # Finds repeated strings that could be replaced by a constant [fast: true, auto-fix: false]

    - gocyclo # Computes and checks the cyclomatic complexity of functions [fast: true, auto-fix: false]
    - lll # Reports long lines [fast: true, auto-fix: false]
    - unparam # Reports unused function parameters [fast: false, auto-fix: false]
    - nakedret # Finds naked returns in functions greater than a specified function length [fast: true, auto-fix: false]
    - megacheck

    # TODO(mbana): enable these in next PR
    - prealloc # Finds slice declarations that could potentially be preallocated [fast: true, auto-fix: false]
    # - scopelint # Scopelint checks for unpinned variables in go programs [fast: true, auto-fix: false]
    - gocritic # The most opinionated Go source code linter [fast: true, auto-fix: false]
    # - gochecknoinits # Checks that no init functions are present in Go code [fast: true, auto-fix: false]
    - gochecknoglobals # Checks that no globals are present in Go code [fast: true, auto-fix: false]

  enable-all: false
  disable-all: true
  fast: false

# all available settings of specific linters
linters-settings:
  govet:
    # report about shadowed variables
    check-shadowing: true
  errcheck:
    # report about not checking of errors in type assetions: `a := b.(MyStruct)`;
    # default is false: such cases aren't reported by default.
    check-type-assertions: true
    # report about assignment of errors to blank identifier: `num, _ := strconv.Atoi(numStr)`;
    # default is false: such cases aren't reported by default.
    check-blank: true
  staticcheck:
    fast: true
  unused:
    fast: true
  gosimple:
    fast: true
  golint:
    # minimal confidence for issues, default is 0.8
    min-confidence: 1.0
  gofmt:
    # simplify code: gofmt with `-s` option, true by default
    simplify: true
  misspell:
    # Correct spellings using locale preferences for US or UK.
    # Default is to use a neutral variety of English.
    # Setting locale to US will correct the British spelling of 'colour' to 'color'.
    locale: UK
  gocyclo:
    min-complexity: 13
  interfacer:
    fast: true
  lll:
    # max line length, lines longer will be reported. Default is 120.
    # '\t' is counted as 1 character by default, and can be changed with the tab-width option
    line-length: 1024
    fast: true
  unparam:
    fast: true

  # see: https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml#L47
  #
  # by default isn't set. If set we pass it to "go list -mod={option}". From "go help modules":
  # If invoked with -mod=readonly, the go command is disallowed from the implicit
  # automatic updating of go.mod described above. Instead, it fails when any changes
  # to go.mod are needed. This setting is most useful to check that go.mod does
  # not need updates, such as in a continuous integration and testing system.
  # If invoked with -mod=vendor, the go command assumes that the vendor
  # directory holds the correct copies of dependencies and ignores
  # the dependency descriptions in go.mod.
  modules-download-mode: readonly

# output configuration options
output:
  # colored-line-number|line-number|json|tab|checkstyle, default is "colored-line-number"
  format: colored-line-number

  # print lines of code with issue, default is true
  print-issued-lines: false

  # print linter name in the end of issue text, default is true
  print-linter-name: true

issues:
  # Maximum issues count per one linter. Set to 0 to disable. Default is 50.
  max-per-linter: 0

  # Maximum count of issues with the same text. Set to 0 to disable.

Please file the issue against the go extension here: https://github.com/microsoft/vscode-go


Clarify "a point is the field set in the same series with the same timestamp."

At https://docs.influxdata.com/influxdb/v1.2/concepts/key_concepts/#point, what does "same" refer to in

"Finally, a point is the field set in the same series with the same timestamp."

"fieldset" is defined beforehand as

the collection of field-key and field-value pairs make up a field set.

No mention of "the same timestamp" here. Can a field set come from two different "rows"? (apologies for the SQL terminology). If not, then even if pedantic, it might be be worth mentioning "with the same timestamp" since we're explaining concepts that many coming from the SQL words may have trouble adjusting to.
Finally, a note about the Key Concepts page overall: I've been using Influx for a while now, and "series" vs. "measurement" still doesn't come as an easy distinction. Also, even the author of the only sanctioned Node library had trouble confusing the two!. I'd love to see these concepts explained in a different way that might stick better.

I'm totally agree that both terms (series/measurement) are usually used indifferently,  I'm not sure if this is deliberate or not, and I would like to know what influx team thinks about it.


Allow skipping files/folders using an xattr and merge snapshots

Output of restic version
restic 0.12.0 compiled with go1.15.8 on linux/amd64
What should restic do differently? Which functionality do you think we should add?
Now restic when backing up some data, will compare the size, mtime, ctime and the inode of a file instead of fully read it. There are some storage platforms (like Ceph and EOS) that recursivelly update some extended attributes when a file changes to the root parents. This could be exploited in order to discard some folders as we are 100% sure that from the previous snapshot the folder (and avery files in it, no matter how much deeply) did not change. So, it could be nice have an option (like proposed in https://github.com/restic/restic/issues/2902) for comparing an xattr specified by the user, that is checked against a folder as well. This functionality has two main advantages:

skipping folders that we already know were not updated since the last snapshot will save a lot of time, expecially if you have millions of resources in that folder
reduces the load on production storage instances

In addition, because restic for the time being only stores in a new snapshot the processed files (so adding a feature like skipping a folder by an extended attribute means skipping a sub tree in the new snapshot), could be nice to have a merge option, that will merge the new snapshot with a parent one. This can be helpful while restoring a full folder, or a part of it, from a snapshot without checking whether the previous snapshots have additional files/folders that were skipped in the current snapshot we are using for restoring. Also, this can be useful as a prune could delete these older snapshots that contains useful resources not included in the newer snapshots. This was also already mentioned in the forum, like in https://forum.restic.net/t/merge-restic-snapshots/4364, or https://forum.restic.net/t/backup-parent-behavior/3286.
What are you trying to do? What problem would this solve?
This will save a lot of time backing up really big folders and reduce the load on instances used everyday by thousands of users.
Did restic help you today? Did it make you happy in any way?
Restic is a fantastic tool we are using at CERN to backup every day ~40K home and project directories of our users, resulting in >300M of new files every day, for a total of 4PB of data being backed up.

Allowing the archiver part of the backup command to skip directories based on an extended attribute would be fairly easy to implement. However, I currently see two problems that would have to be solved:

The backup command consists of a scanner which just counts how many files have to be backed up (only for statistics!) and the actual archiver component which backs up everything. The scanner currently does not use the parent snapshot in any way such that it also won't be able to skip directories based on an extended attribute. It would probably be possible to add that functionality to the scanner, but we'd have to ensure that it doesn't regress performance when not using the extended attributes.
When skipping directories then the statistics won't add up. That would probably be acceptable. Reconstructing the statistics based on the directory metadata from the backup repository is probably overkill.

could be nice to have a merge option, that will merge the new snapshot with a parent one

I've seen #3405 which I plan to look at whenever I get around to look at snapshot rewriting and similar functionalities. But I've can't make any promises when that will happen.


M3 migration with custom theme

Added app code
Added Launcher icon

I haven't done an in-depth review of the UI code yet, but can you include a screenshot (in the chat or here)? Thanks!

I haven't done an in-depth review of the UI code yet, but can you include a screenshot (in the chat or here)? Thanks!


insert/clone same data in 2 collections

Hi,
I am trying to use loki for storing binary data in memory. I created 2 collections with this configuration :
{name, unique  : ['i'], indices : ['s']} then generated an array just for testing:
let buf = new ArrayBuffer(1024) for (let i =0; i < 4; ++i) arr.push({ i: i, s: 0, d: buf });
I used then the insert method. For one collection, no problem but for the second I got "Document is already in collection, please use update()". In real case scenarios, I might have the same 'i' and 's' fields but different 'd' buffers. I expected no trouble saving these in different collections. Is this expected ? When I tried with 2 different arrays, I had no issue.
Then I tried with the clone param set to true. With 'shallow' option, I get
obj[idx].hasOwnProperty is not a function     at insertMeta (http://<IP_ADDRESS>:8080/js/libs/lokijs.min.js:2:27802)     at insertCallback (http://<IP_ADDRESS>:8080/js/libs/lokijs.min.js:2:28719)     at http://<IP_ADDRESS>:8080/js/libs/lokijs.min.js:1:8408     at Array.forEach (native)     at Collection.LokiEventEmitter.emit (http://<IP_ADDRESS>:8080/js/libs/lokijs.min.js:1:8311)     at Collection.insert (http://<IP_ADDRESS>:8080/js/libs/lokijs.min.js:3:2500)
i didn't get an error with 'jquery-extend-deep', but as I will not have any nested objects so I thought shallow could be the most appropriate approach.

I think there was an issue with our 'shallow' clone method, it should be fixed in main branch now.  Let me know if that works for you.
If you only need to support newer browsers/node I also added 'shallow-assign' cloneMethod which may be faster but might not be supported by older browsers.

It works fine with the fix, thanks. I run some benchmarks and found out that shallow and shallow-assigned performance are very close.

ah, great... thanks

I think this is resolved, closing...


Funny Face Filter Using OpenCv

Is your feature request related to a problem? Please describe.
There are various mirrors in which human face length, width extends or decreases, which makes the look funny.
Describe the solution you'd like
I would like to contribute by making such a filter using OpenCV and facial features, it would be fun to experience it using a code.
Describe alternatives you've considered
we can try implementing funny props to make filters.
Additional context
Under GSSOC'23, please assign me this task.
Code of Conduct

[X] I agree to follow this project's Code of Conduct

@Tisha6661 - you can go ahead! We are assigning you 21 days for this project, after which it will be assigned to someone else if not completed. All the best!
Name the file as: algorithm_dataset.ipynb and link it in the readme of the labeled directory as algorithm - dataset.

@khusheekapoor  I have created a pull request regarding this task, please verify and merge it.


Indigo Bench doesn't seem to work with ROCm 1.8.0beta on Vega FE

Hi all,
I did a test of this with ROCm 1.8.0beta
https://www.indigorenderer.com/indigobench

Seems to stall and not progress after building OpenCL code. My specs are the same as my other posts:
Ubuntu 18.04
Kernel 4.13
ROCm 1.8.0beta
AMD Vega 10 XTX Frontier Edition

Printed in the terminal:
OpenCL code for 'blend(phong,diffuse)' on Vega 10 XTX [Radeon Vega Frontier Edition] built. (from cache, elapsed: 0.04700 s)
OpenCL code for 'diffuse' on Vega 10 XTX [Radeon Vega Frontier Edition] built. (from cache, elapsed: 0.04998 s)
OpenCL code for 'phong' on Vega 10 XTX [Radeon Vega Frontier Edition] built. (from cache, elapsed: 0.03738 s)
OpenCL code for 'blend(diffuse,diffuse_transmitter)' on Vega 10 XTX [Radeon Vega Frontier Edition] built. (from cache, elapsed: 0.03057 s)
OpenCL code for 'blend(oren_nayar,diffuse_transmitter)' on Vega 10 XTX [Radeon Vega Frontier Edition] built. (from cache, elapsed: 0.009486 s)
OpenCL code for 'blend(phong,diffuse_transmitter)' on Vega 10 XTX [Radeon Vega Frontier Edition] built. (from cache, elapsed: 0.01825 s)
OpenCL code for 'blend(diffuse,null)' on Vega 10 XTX [Radeon Vega Frontier Edition] built. (from cache, elapsed: 0.02253 s)
OpenCL code for 'specular' on Vega 10 XTX [Radeon Vega Frontier Edition] built. (from cache, elapsed: 0.01029 s)
OpenCL code built: (elapsed: 0.05369 s)
Optimised OpenCL code for 'blend(phong,diffuse)' on Vega 10 XTX [Radeon Vega Frontier Edition] built. (from cache, elapsed: 0.005047 s)
Optimised OpenCL code for 'diffuse' on Vega 10 XTX [Radeon Vega Frontier Edition] built. (from cache, elapsed: 0.02840 s)
Optimised OpenCL code for 'phong' on Vega 10 XTX [Radeon Vega Frontier Edition] built. (from cache, elapsed: 0.02449 s)
Optimised OpenCL code for 'blend(diffuse,diffuse_transmitter)' on Vega 10 XTX [Radeon Vega Frontier Edition] built. (from cache, elapsed: 0.02021 s)
Optimised OpenCL code for 'blend(oren_nayar,diffuse_transmitter)' on Vega 10 XTX [Radeon Vega Frontier Edition] built. (from cache, elapsed: 0.01636 s)
Optimised OpenCL code for 'blend(phong,diffuse_transmitter)' on Vega 10 XTX [Radeon Vega Frontier Edition] built. (from cache, elapsed: 0.006637 s)
Optimised OpenCL code for 'blend(diffuse,null)' on Vega 10 XTX [Radeon Vega Frontier Edition] built. (from cache, elapsed: 0.01176 s)
Optimised OpenCL code for 'specular' on Vega 10 XTX [Radeon Vega Frontier Edition] built. (from cache, elapsed: 0.007623 s)

Just to confirm, is this an ok place to put down bug reports/tests for these kind of things?
Cheers

This has been fixed internally; will update once the fix is available.

Hi @boberfly
The issue was fixed and closed in ROCm 3.x.
Recommend to try with the latest ROCm 4.0.
File a new issue if you find any issue so that we will track the issue with more speed.
Thank you.

Hi @boberfly
The issue was fixed and closed in ROCm 3.x.
Recommend to try with the latest ROCm 4.0.
File a new issue if you find any issue so that we will track the issue with more speed.
Thank you.


Communication: Allow native apps to access code of conduct template

On the native applications, we have to enforce that students accept a code of conduct before accessing the messaging features due to play store and app store guidelines.
However, some courses do not have a code of conduct set. In these cases, we want to, instead, query the code of conduct template and show it to the user.
With this PR, we allow all students to query the code of conduct template, so that we can download it on the native apps.

@Strohgelaender the difference between the behaviors of the webapps and the native apps is intentional. We would also like to skip the additional check on the native clients, but we cannot without breaking the rules of the app stores.

I have added a hint to the template such that everyone knows that the template can also be directly shown to users.


OTG Test Update - TE-1.2 - fixed packet count

Changed the traffic to fixed packets
Resolves #1150

Pull Request Functional Test Report for #2110 / 25dcc864eb18f300332f807f2bd13b2a13b7ea54
Virtual Devices

Device
Test
Test Documentation
Job
Raw Log

Arista cEOS

TE-1.2: My Station MAC

Cisco 8000E

TE-1.2: My Station MAC

Cisco XRd

TE-1.2: My Station MAC

Juniper cPTX

TE-1.2: My Station MAC

Nokia SR Linux

TE-1.2: My Station MAC

Openconfig Lemming

TE-1.2: My Station MAC

Hardware Devices

Device
Test
Test Documentation
Raw Log

Arista 7808

TE-1.2: My Station MAC

Cisco 8808

TE-1.2: My Station MAC

Juniper PTX10008

TE-1.2: My Station MAC

Nokia 7250 IXR-10e

TE-1.2: My Station MAC

Help


Clara rule condition match formatting

Dear Kim, I am trying to format clara rules and I have vector instances of both "atom" and collections inside them.
I'd like to ask if it is possible not to wrap when the contents of the vector are following some atom (like :from, see below) not collections. Alternatively if one could not wrap only after the first collection is encountered.
For instance this should not happen:
(r/defrule shared-modality-derive-ao-annulus-area
-  [?annulus <- latest :from
+  [?annulus
+   <-
+   latest
+   :from
    [CoreValue (= "data/ao/annulus" id) (= ::update source) (= ?value value)]]
   [:or [Encounter (= cs/mr modality)] [Encounter (= cs/ct modality)]]
   =>
   (calc-and-insert-elliptical-area ?annulus ?value "data/ao/annulus-area"))

and stay:
(r/defrule shared-modality-derive-ao-annulus-area
  [?annulus <- latest :from
   [CoreValue (= "data/ao/annulus" id) (= ::update source) (= ?value value)]]
   [:or [Encounter (= cs/mr modality)] [Encounter (= cs/ct modality)]]
   =>
   (calc-and-insert-elliptical-area ?annulus ?value "data/ao/annulus-area"))

It should basically follow this example.
In our case what's after :from should not be wrapped. I hope I am making sense, apologies if not.
Thank you as always!

Hello!  As always, thanks for asking.  I'm hopeful that I can come up with something which works for you!  That said, I'm so confused by what you want (and why you aren't getting what you want).  The link to "this example" didn't do anything for me -- if everything fits on one line, there isn't any formatting.  It helps me a lot if you show me specific things that you do want.
I'm assuming that the second example you give, prefaced with "and stay:" is what you want to get?
Interestingly, that is what I get when I format it:
(czprint i244 {:parse-string? true})
(r/defrule
  shared-modality-derive-ao-annulus-area
  [?annulus <- latest :from
   [CoreValue (= "data/ao/annulus" id) (= ::update source) (= ?value value)]]
  [:or [Encounter (= cs/mr modality)] [Encounter (= cs/ct modality)]]
  =>
  (calc-and-insert-elliptical-area ?annulus ?value "data/ao/annulus-area"))
nil

; So, maybe you want the rule name on the same line as defrule...
; Let's do that:

zprint.core=> (czprint i244 {:parse-string? true :fn-map {"defrule" :arg1}})
(r/defrule shared-modality-derive-ao-annulus-area
  [?annulus <- latest :from
   [CoreValue (= "data/ao/annulus" id) (= ::update source) (= ?value value)]]
  [:or [Encounter (= cs/mr modality)] [Encounter (= cs/ct modality)]]
  =>
  (calc-and-insert-elliptical-area ?annulus ?value "data/ao/annulus-area"))
nil

; That still seems to be working the way I think you want it?  Let's try the styles from
; the discussion topic, in case that does something different?

zprint.core=> (czprint i244 {:parse-string? true :fn-map {"defrule" :arg1} :style [:community :meta-alt :how-to-ns :binding-nl]})
(r/defrule shared-modality-derive-ao-annulus-area
 [?annulus <- latest :from
  [CoreValue (= "data/ao/annulus" id) (= ::update source) (= ?value value)]]
 [:or [Encounter (= cs/mr modality)] [Encounter (= cs/ct modality)]]
 =>
 (calc-and-insert-elliptical-area ?annulus ?value "data/ao/annulus-area"))

They all come out the way that I think you want them.  So either:

I'm confused as to what you want to get (likely)
Something in your configuration is causing the oddness you are getting.  I have no idea what your configuration is, of course.

  I have a lot of possibilities, but I need to get my hands around what you really want before I can make any more progress.
Thanks!

Sorry it has taken me so long to get back to you.
Here is my first attempt to get you something that works for Clara rules.  This is using a modified zprint.edn from one of your other issues.  Here is the result:
(czprint i244 (merge-deep {:parse-string? true} om224c i224om1))
(r/defrule shared-modality-derive-ao-annulus-area
  [?annulus <- latest :from
   [CoreValue (= "data/ao/annulus" id) (= ::update source) (= ?value value)]]
  [:or [Encounter (= cs/mr modality)]
       [Encounter (= cs/ct modality)]]
  =>
  (calc-and-insert-elliptical-area ?annulus ?value "data/ao/annulus-area"))

I changed your :fn-map entry for defrule to the following to get the above output:
            ;; clara-rules
            "defrule" [:arg1-body
                       {:vector {:option-fn
                                   (fn ([] "clara-option-fn")
                                       ([opts n exprs]
                                        (cond (or (= :or (first exprs))
                                                  (= :and (first exprs)))
                                                {:vector {:fn-format :hang},
                                                 :fn-force-nl #{:hang},
                                                 :next-inner-restore
                                                   [[[:fn-force-nl] :hang]]}
                                              :else nil)))}}]

I did :or and :and.  Looking briefly at the Clara Rules documentation, it looks like there are :and, :or, and :not.  Maybe also :test?  But it wouldn't be hard to add a few to the or in the cond above.
I'm not naive enough to think this will solve your rule formatting issues, but it might be a reasonable first step.  Let me know if this works, and what else you need when you have a chance.  Thanks!


Use Uint8Array instead of Buffer

Continuing to work on changing Buffer usage to Uint8Array, we got a pretty decent performance improvement out of this one:
Before
buffer: 8.211ms
  ✔ .buffer()
stream: 20.57ms
  ✔ .stream()
file: 11.752ms
  ✔ .file()
  ✔ .fileSync() (1s)
fileSync: 1.053s

After
buffer: 4.755ms
  ✔ .buffer()
stream: 15.74ms
  ✔ .stream()
file: 7.634ms
  ✔ .file()
  ✔ .fileSync() (600ms)
fileSync: 599.281ms

I pulled in uint8array-extras for the indexOf function and used that instead of looping over every byte in the buffer one by one.
I bumped the minimum version of node to 18 to match read-chunk's requirement. This is great because node v16 has an annoying limitation when a buffer references its own values.
I added two new files to the fixtures that are over 65535 bytes so we can test to ensure streaming works across multiple chunks. It is CC licensed and I added a link to the license file.
Also bumped devDependencies and updated the workflows to modern versions.

It is CC licensed and I added a link to the license file.

I don't see the need to bring in a CC license file. Just pick one from Unsplash (no license / credit needed).

It is CC licensed and I added a link to the license file.

I don't see the need to bring in a CC licensed file. Just pick one from Unsplash (no license / credit needed).

Ah, thanks for the tip, I'll swap it out.

Thanks 🙏


fix: ignore /api/** from service worker cache

Fixes #3427

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.004%) to 22.17%

Totals

Change from base Build<PHONE_NUMBER>:
-0.004%

Covered Lines:
3737

Relevant Lines:
17928

💛  - Coveralls


Need support for depending on a specific pkg-config file only if a specific feature is enabled

See https://github.com/gtk-rs/cairo/blob/master/cairo-sys-rs/build.rs
cairo-gobject should only be checked/pulled in if the glib feature is enabled. I believe that's currently not possible to express

Won't this do https://docs.rs/system-deps/1.3.1/system_deps/#optional-dependency ?

Oh indeed, how did I miss that? I'll try that later.


[Bug] Pressing Ctrl+R during generation borks state

While text is being streamed during prediction, you can still press Ctrl+R to regenerate. This causes the text window to print tokens being streamed from two different requests and inadvertently interleaves the output resulting in jumbled text.

Thank you for the bug report! Fixed in dc4b2c59dba7e29713e78251c8358b04c7b2bd0a.


[BUG] Backgrounds on multiple pages aren't being displayed

Describe the bug
Certain divs (which as far as I've found are all children of main, with both the section class and the content id) are being given the display:unset style by the script, even with all of the features disabled. This 1) removes the background and 2) conflicts with the styling for .section to somehow create two bars along the left side of the element. Examples are on the "add new thread" page (https://kbin.social/new/article), the login page (https://kbin.social/login while logged out), and in almost every tab of the "magazine panel" moderation tool.
To Reproduce
Steps to reproduce the behavior:

Go to https://kbin.social/new/article with the script enabled. Alternatively, with the script still off, add the display:unset style manually to the #content div on that page via the inspector.
The box beneath the new thread form should be mostly transparent except for two bars to the left and slightly above and below it, overlapping with other objects on the page.

Expected behavior
The divs should have solid gray backgrounds across their entire width, rather than bars on their left side.
Screenshots
The "new thread" page:

The actual elements and styles of the #content div on the new thread page:

The moderators tab of the magazine panel:

KES version:

Version number 3.1.0

Extension and version:

Extension: TamperMonkey
Version number: 4.19.0

Desktop (please complete the following information):

OS: Linux Mint 21.2 Cinnamon (And previously Ubuntu 20.04 on a different device, same issue but probably earlier versions of the browser/extension/script)
Browser: Firefox
Browser version 120.0.1

Smartphone (please complete the following information):

Device: Google Pixel 5
OS: Android 14
Browser: Firefox
Version: 120.1.0

Additional context
I spent awhile playing around with the css before I originally reported this issue to make sure I understood where it was coming from. I'm fairly confident that the display:unset style is the only thing wrong here: toggling it off and on again fixes and unfixes the issue, and I can induce it from scratch with the script disabled just by adding that one style manually without needing to change anything else.

Thank you for the detailed report. I have identified the offending issue as stemming from the way a mod was disabling itself. This will be fixed in a forthcoming update.

Resolved in 3.2.0


Basic motion tracking feature

Supports throwing the device into the air and seeing a score of 0-10 corresponding to the distance thrown.

@grahamhome @cman131 What is the status of this PR? Can we get these comments resolved and try to merge today?

Delaying PR until spin data is implemented


Inform users on double Script action execution

Script actions are executed twice if a user binds it to a Keyboard key with PressAndRelease. Once when the button is pressed down, once when it is released.
This may be desirable or not, the user should at least know about it.

[ ] Inform user when they bind a Script Action to PressAndRelease
[ ] Allow a script to get whether it's action was triggered by a button press or release (might be useful)

I removed PressAndRelease since it caused more trouble than what it solved. Users should now manually PressState.Press and later PressState.Release (possibly with a timeout in a script)


feat: ZK Stack framework MVP

⚠ Please read the description before reviewing. ⚠
This is the ZK Stack framework MVP that represents the core functionality of the new framework.
A lot of things are not polished yet: it'll need better logging/reporting, interfaces can be better, naming is off at some places (and I haven't decided on the usage of ZK Stack / zkSync there), we need more tests and examples, no README.md, etc.
Additionally, only a few resources and tasks are implemented right now. The reasons for that:

Adapting the existing code to get a single interface takes time, as most of the tasks/resources were created in an ad-hoc manner.
I wanted to focus on the framework functionality here, the implementations may come later as separate PRs.
I didn't want the diff to be big.

In the current form, the framework contains a showcase of how interacting with it looks like, and generally, it seems to work fine.
For more details on motivation and goals, please read the spec.
With that in mind, any feedback is appreciated, but I don't guarantee that I'll proceed it in this PR. Here I'll focus on making sure that the framework works and there is no major disagreement w.r.t. its design, and then there will be N follow-up PRs bringing the missing functionality and polishing the code.

@RomanBrodetski

Is there somewhere a list of potential resources?

I think a few obvious examples are ObjectStore and StateKeeperIO (where we can choose different implementation -- that would be up to ResourceProvider). A less obvious example is a tree reader: probably it would be a lazy resource that is provided by the metadata_calculator and tree API will wait until it's available (actual logic will be more complex, but I think it gives an idea).

The main node example is helpful, would it only have master_pool_resource?

No, it will evolve as more components are migrated to support the framework. I wanted to reduce diff size, so for now the example is incomplete.

We have a nice invariant that components don't communicate with each other directly, I was hoping this would allow us to treat them independently on the code level as well.

This is mostly to alter the behavior of components via configuration on the top level, e.g. switch IO implementation in the state keeper. Also resource abstraction will allow to create 3rd party crates that aren't part of our codebase -- e.g. someone will be able to write AWS S3 object store and inject it as an ObjectStoreResource.

Probably some examples that highlight usefullness of this abstractions would help

Will be done in subsequent PRs.


Add headline information to list

In the reocrd list also the headline text should be displayed. To long text needs to be cutted.

backend: provide headline information in list data & timeline data
frontend: remove id column, instead add headline column (trimmed if too long), timeline add hover for headline, details add headline

headline field is provided in backend


Better dark mode color palette

Our dark mode background is too dark. While it's fine for the Docusaurus website because the text is relatively sparse, as soon as the text gets dense, it literally hurts my eyes.

Not only is the background too black, but the admonition is too blue as well. The light mode contrast seems so much better.
GitHub and Twitter also have this problem (hence I never read long READMEs on GitHub), but VuePress's palette is very nice:

Hmm, I don't have that much inconveniences when reading, but maybe we should darken foreground text color because it's probably bright a bit now. Just compare and let me know what works best for you:

Before
After

I actually like the color palette of Microsoft Docs, where the background is even darker than in Docusaurus. Wonder if you are comfortable reading their docs https://docs.microsoft.com/en-us/aspnet/core/introduction-to-aspnet-core?view=aspnetcore-6.0

Ah, I think their docs are good for me as well. I don't know what's the key here now 😄
Less eye strain

More eye strain

It may be a combo of font, text density, and background/foreground contrast?

Maybe so, although I would definitely tweak text color for dark mode. As another example, the new Vue.js site looks good in enabled dark mode: https://vuejs.org/guide/extras/ways-of-using-vue.html

Yes, whatever makes it looks better, may not necessarily be the background 👍

Hey, also missed this issue.
I also find it uncomfortable to read a Docusaurus site in dark mode. For me the text is too bright.
In light mode it's fine right?
Would you agree on this change only in dark mode?
-    --ifm-color-content: var(--ifm-color-emphasis-900);
+   --ifm-color-content: var(--ifm-color-emphasis-700);

Not sure of the exact value to use, and it doesn't even fix the issue in all places though 😅
Here's what -300 do, the sidebar/toc/admonitions remain too bright

I added a comment here that might help: https://github.com/facebookincubator/infima/issues/139#issuecomment-2093539041


add recording url

add recording urls for event-010 and event-012

LGTM

https://1331-267395254-gh.circle-artifacts.com/0/SORSE/programme/talks/event-010/index.html
https://1331-267395254-gh.circle-artifacts.com/0/SORSE/programme/talks/event-012/index.html

the test failure is not related to this PR, so merging