Improve demos build speed by adding a base docker image

Fixes https://github.com/projectnessie/nessie/issues/1984
Now the heavy lifting to create a base docker image is under docker folder, which which can be built in the github workflow using jupyter-repo2docker. The image is named projectnessie/nessie-demos-base-image:latest. I will add as well GH workflow to build the base docker image in subsequent PR.
P/S: Only for testing, the base docker image is under my docker namespace omarsmak. I will change this to projectnessie once I am able to push to projectnessie docker space. At least for now we can test the PR .. etc
Demo links:

Hive: https://mybinder.org/v2/gh/omarsmak/nessie-demos/docker-speed?labpath=notebooks%2Fnessie-iceberg-hive-demo-nba.ipynb
Spark/Iceberg: https://mybinder.org/v2/gh/omarsmak/nessie-demos/docker-speed?labpath=notebooks%2Fnessie-iceberg-demo-nba.ipynb
Spark/Delta Lake: https://mybinder.org/v2/gh/omarsmak/nessie-demos/docker-speed?labpath=notebooks%2Fnessie-delta-demo-nba.ipynb
Flink: https://mybinder.org/v2/gh/omarsmak/nessie-demos/docker-speed?labpath=notebooks%2Fnessie-iceberg-flink-demo-nba.ipynb

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: omarsmak:x: github-actions[bot]You have signed the CLA already but the status is still pending? Let us recheck it.


[lsoda] 500 steps taken before reaching tout

I am running a simulation and if I understand correctly the maximum number of steps (500) is performed before the integration finishes. Is there a way to change this parameter?
Thanks

Sure. I am trying to solve a stiff ODE system, with a quite complicated right-hand side part.
It would make sense that the message "[lsoda] 500 steps taken before reaching tout" refers to steps between times in 't_eval', as a Scipy solution that I have does indeed need more than 500 steps to integrate between some time points. The whole point is to speed this solution up by using numbaLsoda.

Got it. Thank you for the answer.

Fixed with 5ad8cce583a2e1dfb721d7f4d6c9b135b718bd60


Error occurs when opening Spectre, if it's already open

Calling :lua require('spectre').open() will open spectre.
But if I then call :lua require('spectre').open() a 2nd time (whilst it's already open), I get this error.

E5108: Error executing lua ...site/pack/packer/start/nvim-spectre/lua/spectre/init.lua:109: Vim:Error executing lua callback: [string ":lua"]:1: Vim(call):E16: Invalid r
ange:  call s:RemoveRange(start, end) | endif

This error is tripping me up on a daily basis, as I have mapped the command to a shortcut and tend to use the shortcut whenever I want to search, regardless of whether Spectre is currently open or not.

you need check another plugin have function removerange on viml

Yup, you're right. It's the vim-strip-trailing-whitespace plugin causing the issue.
I've logged an issue with them here. I'll update this issue with a solution when I work it out.


Crit Chance for Feral Druid look overstated.  Perhaps the critical chance from gear is the root to what is causing the overstatement.  In P2 Ulduar gear, it shows over 100% crit chance (with raid buffs).

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Sim Links and Screenshots
If applicable, add links to your sim settings or screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

should be all set now after a lot of feral fixes that have happened. things were a bit wonky still from tbc initially


Remove ads from article experience

Ad assets are not secure and will not load
Also pre-load next article later

Bummer.


Modifier -> SwiftUI -> View configuration: unredacted()

Doc: https://developer.apple.com/documentation/swiftui/view/unredacted()

[ ] Swift implementation
[ ] Elixir implementation

duplicates #212


CSP compliance: Remove inline styles

Hi! Thanks for this component, I have used it successfully in a small project. Now I have another project that has a strict CSP policy that disallows inline CSS styles, such as the ones that are added using a style="..." attribute. In this project, I'd like to replace  shentao/vue-multiselect with your multiselect library.
There are three uses of such inline styles in Multiselect.vue, which prevent me from using it currently:

https://github.com/vueform/multiselect/blob/main/src/Multiselect.vue#L98 for setting the width of the search input based on the amount of characters entered, falling back to 100% width in tags mode
https://github.com/vueform/multiselect/blob/main/src/Multiselect.vue#L84 same on the div wrapping the input
https://github.com/vueform/multiselect/blob/main/src/Multiselect.vue#L136 for setting the maxHeight of the options dropdown using a prop

The first can be replaced with a v-if to handle tags mode, plus using the CSP-safe size attribute on the input field. The second one can be replaced by leveraging the auto-sizing capabilities of CSS on the wrapping div, so that the width automatically matches the width of the div's content.
The third one I think can't directly be made CSP-safe, but I struggle to see why maxHeight needs to be a prop at all, when users of the library can easily add their preferred max-height using their own CSS when using the multiselect component: <style scoped>.multiselect-options { max-height: whatever I need }</style>. Users that don't have CSP constraints can even set it dynamically if they really ever need to. In case you're worried about the breaking change, I (and the CSP constraint) would also be satisfied if the style attribute was left out in case one doesn't use the max-height="" prop.
I'd be happy to provide a pull request to implement this. Would you be interested in such a change?

With 2.0.0 we now only have maxHeight and the width of the input search when using tags. The maxHeight is definitely doable as you've mentioned (skipping the attribute when undefined) but the tags input search is trickier. Does CSP allows adding style attribute after the page is loaded?

Unfortunately no, CSP can either completely allow or completely disallow any style attributes. See this excellent talk on why inline styles are even considered a risk in the first place, and this applies to both styles at page load as well as styles added after page load.
The input field width could maybe be implemented by overlaying an invisible copy of the input content and have the input match that width. I'll try to construct a fiddle to demonstrate what I mean.
Anyways, for calculating the real input width you now use some more inline styles in 2.0.0: In https://github.com/vueform/multiselect/blob/947a961ceef48c76e0c851b01bddc6573c4be8fa/src/composables/useSearch.js#L35 you have created an offscreen span to calculate the text width of the search text. These inline styles are fixed, and could be easily replaced with a CSS class to make it CSP compliant (but if my proposal with the overlay works this calculation would be obsolete anyways).

Here you go: https://jsfiddle.net/y6jnkomq/67/
Almost no JavaScript and definitely no inline style attributes needed to make the input's width adapt to the text typed into it.

Thanks for the implementation @carlobeltrame - seems fine on the first look! I've signed this up for the next release.

This got implemented 2.1.0 - I believe no inline styles left. Thanks for the detailed solution.

I can confirm that, thanks for the fix!


NestableScrollContainer missing "onScroll" prop

Currently the project readme states:

NestableScrollContainer extends the ScrollView from react-native-gesture-handler, and NestableDraggableFlatList extends DraggableFlatList, so all available props may be passed into both of them.

However, the current implementation of NestableScrollContainer is overwriting the onScroll prop.
The DraggableFlatList uses a onScrollOffsetChange as a stand-in for onScroll, and I was hoping we could have a similar prop for NestableScrollContainer.
I went ahead and created a pull request for the change: https://github.com/computerjazz/react-native-draggable-flatlist/pull/459.
Open to feedback 🙂 And thanks for the library!

@computerjazz any update on this? having the same issue...

+1

@milkman4 I just patched the default values (autoscrollSpeed & autoscrollThreshold) in the useNestedAutoScroll function (Path: react-native-draggable-flatlist/src/hooks/useNestedAutoScroll.tsx) to the ones I need in my project. Keep in mind that this only works if you need the same offset/speed everywhere.

+1


Support for standardrb in the Ruby module

Describe the feature
It would be really cool if it was possible to replace RuboCop with Standard (with something like (ruby +standard)). It's a no-configuration alternative to Rubocop. Formatting and fixing code is available through standardrb --fix.
As far as I understand it's a wrapper on top of RuboCop, so it should be fairly straightforward to add it.

I’ve found this https://github.com/julianrubisch/flycheck-standardrb
I’ll try to make it work and open a PR. Disclaimer: I don’t know what I’m doing!

I believe you would want to add support for standardrb through flycheck

Update: Ruby was dropped in my workplace, I won't work on this. I'll keep the issue open though.

The :editor module contains format, which uses format-all package. This package was recently updated to support formatting using standardrb and also rubocop.


Request for Release

Since I am relying on the functionality from commit 83cc5c20515f9b008b6dbce0b3a60c71744ee23a for a few embedded devices, I wanted to ask if a release could be made?

Yeah, it could and should be made. I will make one by the end of September.

Great, thank you.

I just made a release candidate 1.1.1-rc0. You may want to double-check everything works for you.
If everything goes fine, the final release will be in 7 days.

Since I'm using Yocto, I've recreated the planned release with patches (starting from tpm2-openssl-1.1.0.tar.gz). Looks good for me.

I have additionally tested 1.1.1-rc0 locally. LGTM.

Done. Thanks for the tests.
https://github.com/tpm2-software/tpm2-openssl/releases/tag/1.1.1

thx


Inquire/Replace react-native-share with React Native built-in library

On https://github.com/react-native-community/react-native-share, they say:
NOTE: React Native now implements share functionality Read more
which points to this React Native documentation page: https://facebook.github.io/react-native/docs/share.html

Looks good to me, the less native libraries the better.

Due to Share module from RN doesnt support url on android, it's pointless to change only iOS part. Closing with the hope that RN will support it like react-native-share does it.


squid-evm-typegen 1.3.1 fails with "TypeError: abi.map is not a function"

Attempted to use the tool with two smart contracts (0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9, the AAVEv2 pool, and 0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413 from this example), fails with
evm-typegen error: TypeError: abi.map is not a function

To Reproduce
Steps to reproduce the behavior:

Make a test directory and cd to it
Run npm install @subsquid/evm-typegen
Fetch the abi with

$ curl "https://api.etherscan.io/api?module=contract&action=getabi&address=0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413" --output abi.json

Run npx squid-evm-typegen --abi abi.json --output abi.ts
See the error. Note that abi.ts is not generated.

Expected behavior
Successful generation of abi.ts
Environment (please complete the following information):

node.js version 18.12.1
npm version 8.19.2
OS version - Gentoo rolling release

Additional context
Retrieved abi.json

Fetched abi has incorrect format

Ah I see, abi.json is expected to be cleaned up from etherscan metadata. If I do so via
$ python -c "import json; ifile=open('abi.json', 'r'); print(json.load(ifile)['result']); ifile.close()" > abi2.json

then
$ npx squid-evm-typegen --abi abi2.json --output abi2.ts

works.
Thanks.

We discussed about "etherscan abi fetch" feature, but not sure if we will implement it.

It's not strictly necessary, we'll just have to update the docs with the additional steps. Also, I just discovered EIP-1967 and in light of it etherscan abi fetching will have to be made somewhat more complicated anyway.

It would be nice to detect etherscan and format and give the user a hint instead of an opaque error message.


[6.x] Fix migration overwrite $connection property

Closes #31060.

Why did you close this?

Why did you close this?

@GrahamCampbell i used a function that exists on 8.x and don't exist on 6.x, so all the test's goes red.
i think it needs more work on 6.x not only a quick fix, i will work on it this night and make another PR

@GrahamCampbell i used a function that exists on 8.x and don't exist on 6.x, so all the test's goes red.
i think it needs more work on 6.x not only a quick fix, i will work on it this night and make another PR


feat: nix: ability to build packages which require presence of external files

Some packages rely on presence of external files, for example, proof-widget4 relies on presence of javascript files.
When the modHasDependencies option is true, source directory will be used as is instead of using directory containing only corresponding .lean file for certain component.
With this option, we can build proof-widget4 and mathlib4 via nix.

[X] Put an X in this bracket to confirm you have read the
External Contribution Guidelines.

Please put the link to your RFC or bug issue here.
PRs missing this link will be marked as missing RFC.
There is no RFC/issue related to this.
Decided to create PR without creating issue first, because there is not much changes.

Found that I can change buildMod attributes via overrideBuildModAttrs, so will close this PR.


Use local development plugin directory

Prefer using local development plugin directory if exists instead of
installed one.
Replaces this commit on PR.

:+1: It seems more and more inconvenient for the developer or qe when they installed a pdc client, but also clone source code. I like this fix.

Looks good to me


Fail to import ../../package.json on Vercel with pnpm

Description
I'm using @adobe/helix-md2docx which depends on @adobe/fetch
I'm using pnpm and when I deploy to Vercel I'm getting the following error:
Error: Cannot find module '../../package.json'
Require stack:
- /vercel/path0/node_modules/.pnpm/@adobe+fetch<EMAIL_ADDRESS>    at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
    at /var/task/node_modules/.pnpm/next@14.2.3_@babel+core@7.24.0_@opentelemetry+api@1.9.0_@playwright+test@1.45.0_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/server.runtime.prod.js:11:90905
    at Module._load (node:internal/modules/cjs/loader:981:27)
    at /opt/rust/nodejs.js:1:11508
    at Function.Wt (/opt/rust/nodejs.js:1:11878)
    at Q.e.<computed>.K._load (/opt/rust/nodejs.js:1:11478)
    at Module.require (node:internal/modules/cjs/loader:1231:19)
    at h.require (/var/task/node_modules/.pnpm/next@14.2.3_@babel+core@7.24.0_@opentelemetry+api@1.9.0_@playwright+test@1.45.0_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/server.runtime.prod.js:11:91121)
    at require (node:internal/modules/helpers:177:18)
    at 6141 (/var/task/apps/app/.next/server/app/api/reports/[id]/export/route.js:7:12225) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/vercel/path0/node_modules/.pnpm/@adobe+fetch<EMAIL_ADDRESS>  ],
  page: '/api/reports/49a10492-e00e-4056-b6e3-905daa070db0/export'
}

This is caused by this line:
https://github.com/adobe/fetch/blob/11eaa8483f8df8a0da986152bb9b8c82489240c6/src/core/request.js#L29
Version:
4.1.8
Additional context
This works locally, but fails on Vercel

Thanks for reporting this issue. adobe/fetch does neither specifically target pnpm nor Vercel. Any related issues with these environments are out of the scope of this project.


force new formatting rules

#4350 added new code formatting rules but they're need to be applied on all of the codebase :/
I can't turn on format-on-save because every save will reformat the whole document.

@kubistika you are absolutely right. This is definitely on the list.

ok, added #5667 so that it is known by everyone that this is about to really happen ;)


Effects of an Echo Dot in the network on an rpi

In the notes, it states "AlexaPi will allow you to control your devices such as Hue provided you also have a genuine Echo in the network which acts as a gateway between the Alexa service and your Hue bridge."
In my network, I have two real Echo dots. Both of these can switch on devices via "Alexa, turn on HiFi" type of command.  The note above seems to imply that this should also be possible via the rpi installation....but it does not mention how this arises. Is it automatic or is there some binding that has to be done?
Apart from this lack..the AlexaPi installation is working well..it has run for two days without a problem, and I can also play back music via Squeezelite. So far I have not linked the two together because of the problem mentioned above.

I have tplink wifi outlets; once my echo had identified them my AlexaPi could also control them - no additional setup was needed.  Not sure for folks with no amazon official devices.

Hi,
I have reverted back to the former 3-terminal Alexa. With that version, I can control everything. With the version here it never identified a device, even though I do have several official Amazon dots around the house. Not only that, I can run Squeexeelite simultaneously with Alexa through an on-board DAC. I think part of the problem is that this (simplified setup) version of Alexa is using old interfaces .. I suspect it is going to be useful staying with the original Amazon setup.


Fix for Dockerfile smell DL3007

Hi!
The Dockerfile placed at "Dockerfile" contains the best practice violation DL3007 detected by the hadolint tool.
The smell DL3007 occurs when the tag "latest" is used instead of a specific version tag for the base image.
In this pull request, we propose a fix for that smell generated by our fixing tool. We have verified that the patch is correct before opening the pull request.
To fix this smell, specifically, we use a heuristic approach that selects the most probable version tag for the base image in order to replace the "latest" tag. In detail, it selects the most recent image tag which corresponds to the same image digest that currently corresponds to the "latest" tag.
This change is only aimed at fixing that specific smell. If the fix is not valid or useful, please briefly indicate the reason and suggestions for possible improvements.
Thanks in advance

(sorry for delay, was out for a few days last week)


Dockerize

Merged master into this branch and proposed a few changes regarding the way we could do this dockerization :whale: thing... if we're still up for it :wink:.
I made some change in response to my comments on github-pages gem #423. Figured, it's better show what I mean rather than squeal about it.
Changes

Cleaned up the Dockerfile to the bare minimum for using it as a test/dev environment and even using is as a server to view any jekyll-site in a github-pages-like environment
Added some make rules to simplify usage

Usage

Use make image to build the github-pages image
Use make shell to produce a bash shell

run the scripts inside that shell by simply running

./script/bootstrap, usually run this first to ensure a fresh
bundle install
./script/cibuild
./script/test-site
./script/fmt

Run the server by:

exporting SITE first and then calling make server, e.g.: export SITE=../path-to-jekyll-site; make server
prepending an assignment to SITE to the make server rule, e.g: SITE=../path-to-jekyll-site make server

Note... I've only made the last 6 commits. I had to catch up with master to make a possible acceptance of the dockerize branch into master less painful.

@vidbina Thanks for this. Would be great to be able to help users spin up a local docker container. The diff is a bit hard to review. Would you be able to update your PR to point to master instead of the other PR?

@benbalter I tried updating my PR to point to master, but since johndmulhauser's pages-gem master is not actively tracking the upstream master the diff didn't change much.
I created a new PR github/pages-gem#461 into the upstream master branch which shows a clean diff :wink:.


Store data in a file repository

Do we really need to build this? And if so, how do we keep it simple?
It depends: storing the data on our own/LifeWatch servers gives us more control. Another option is to depend on the BALTRAD infrastructure for hosting, backing up and giving access to our data. @leijnse, what is advisable? A: Data repository is required
How do we organize our data?
To limit the scope, we kinda decided to not have a database with the raw data, but rather have researchers download the data as files. That means that the data should ideally be organized in such a way that you can easily download logical packages. E.g. by having file format (e.g. hdf5) high up in the hierarchy, you avoid that users have to download "duplicate" data (in different formats) when selecting a directory to download.
@leijnse @hvangasteren, will users be more interested to download a time period for all radars or a radar for all time periods?
Suggested structure: /fileformat/yyyy/mm/dd/radar_id.hdf5 where each file contains 24h of data.

The BALTRAD infrastructure is built for real-time applications, not for long-term storage. So we need our own data repository. KNMI can host longer-term data, so the choice should be KNMI or our own data storage.

Default directory tree will be radar/yyyy/mm/dd/radar_yyyymmddhhmm.h5, where each file contains one profile for one radar at one time instant only.

@adokter: if the h5 file contains data from one radar for a 15 minute interval, the /dd directory will contain 4 * 24 (96) files, no?

@peterdesmet: sorry typo, also hour is a subfolder

We'll upload everything to an Amazon S3 bucket.
@peterdesmet do you want me to include code to create the bucket as well? We'll be currently running this in our sandbox environment, meaning the bucket can be gone at the end of the day.

@bartaelterman code to create the bucket: that would be useful.

@peterdesmet @bartaelterman
A different service worth considering is this EU-funded Dropbox-like service designed specifically for the exchange and storage of research data:
https://eudat.eu/
They offer 20GB of storage. Given that one bird profile is 5kB (zipped), it can store 4M profiles. A network of 100 radars produces 424365*100=3.5M profiles per year. So a limitation there, but we could inform whether these limits can be enlarged

Since we can easily setup things on S3, I would choose that for now. I would revisit EUDAT or any of the other possible repository once we have a functional data flow. Closing this issue: we now that a data repository is needed.


Forbidden error messages

I've used concourse-up to deploy in the past. My aws access keys have not changed. Now when I attempt to get info on my deployment I get:
Forbidden: Forbidden
	status code: 403, request id: 28FB2C0419D182D4, host id: mU6KWkZXpx7Rho6bPlhYbrSJ/sZ22viT6pj8L/GvZidGTw6m7WUQryuM9iMSgFsky5WVJDlno1Q=

I also tried concourse-up deploy test and got this error:
env var AWS_ACCESS_KEY_ID not found

Which was odd because my ~/.aws/credentials` file has my keys in it and my bash_profile exports the keys as environment variables.
I was on an older version of concourse-up so I upgraded to version Concourse-Up version 0.13.9 and pulled the latest changes from master.
I tested my credentials and they worked. I created new credentials for my IAM user and those still wont work with concourse-up. I tested a few aws cli commands and those commands work. So, I don't know what's happening now.

Hi @alohaahola
I just tested this on my machine and it seems to work as expected.
$ env | grep -i aws
AWS_ACCESS_KEY_ID=<snip>
AWS_SECRET_ACCESS_KEY=<snip>
$ cup --version
Concourse-Up version 0.13.9
$cup deploy aws-creds-test

WARNING: allowing access from local machine (address: <snip>)

aws_eip.atc: Creating...
  allocation_id:     "" => "<computed>"
  association_id:    "" => "<computed>"
  domain:            "" => "<computed>"
  instance:          "" => "<computed>"
  network_interface: "" => "<computed>"
  private_ip:        "" => "<computed>"
  public_ip:         "" => "<computed>"
  vpc:               "" => "true"
...

Can you double check your env to make sure your bash_profile has exported your credentials properly?
Its worth noting that concourse-up deployment names have to be globally unique by region so its quite likely that a deployment called test already exists in eu-west-1 so running concourse-up deploy test verbatim would get an error since you don't control that bucket.

Thanks for the quick reply @crsimmons
I've pasted my info below. Is there any other debug info I gather?
$ env | grep -i aws; concourse-up --version; concourse-up deploy aws-creds-test; grep -i aws ~/.bash_profile; aws ec2 describe-instances > /dev/null && printf "success\n"; concourse-up deploy aws-creds-test

AWS_SECRET_ACCESS_KEY=<yes>
AWS_ACCESS_KEY_ID=<yes>

Concourse-Up version 0.13.9

export AWS_ACCESS_KEY_ID=<yes>
export AWS_SECRET_ACCESS_KEY=<yes>

success

Forbidden: Forbidden
	status code: 403, request id: C888451116DC056B, host id: yciS8sn3/L7TenJp0/xcKNLt/J6D/hKAMVFAiNYHVFNas2cIqeDyd3yp01rPfaUHPwQyb6TO938=

I resolved this with the info from @crsimmons. I thought my deployment name was unique. It was not. 😄


ndk-build compile error?

I have an error when I compile example with .so,The error message show as below
In file included from jni/test.cpp:25:
In file included from jni/arm_compute/core/Types.h:27:
In file included from jni/arm_compute/core/Coordinates.h:27:
In file included from jni/arm_compute/core/Dimensions.h:27:
jni/arm_compute/core/Error.h:123:2: error: expected expression
[[noreturn]] void error(const char *function, const char *file, const in...
^
jni/arm_compute/core/Error.h:123:14: error: expected unqualified-id
[[noreturn]] void error(const char *function, const char *file, const in...
^
In file included from jni/test.cpp:25:
In file included from jni/arm_compute/core/Types.h:27:
In file included from jni/arm_compute/core/Coordinates.h:27:
jni/arm_compute/core/Dimensions.h:29:10: fatal error: 'algorithm' file not found
#include
^
3 errors generated.

That looks like your compiler doesn't support C++11 or at least doesn't compile for it. Which version of the NDK are you using? And what is your build command?

You need to use the standalone toolchains not ndk-build.
Follow the instructions in the documentation to generate the toolchain and build the library.
Alternatively you can download Android binaries from the release page

Re-open if you've got issues compiling using the standalone toolchain


Reconcile flake and non-flake builds.

Pre-submit checklist:

Branch

[x] Commit sequence broadly makes sense
[x] Key commits have useful messages
[x] Relevant tickets are mentioned in commit messages
[x] Formatting, materialized Nix files, PNG optimization, etc. are updated

PR

[x] Self-reviewed the diff
[x] Useful pull request description
[ ] Reviewer requested

Pre-merge checklist:

[ ] Someone approved it
[ ] Commits have useful messages
[ ] Review clarifications made it into the code
[ ] History is moderately tidy; or going to squash-merge

Note that I haven't yet tested the new github action, will likely do so after merge.

@michaelpj I don't have ability to request reviewers but I think you'd be best.

@michaelpj Comments addressed, let me know what you want to do about the cron job.

Happy to merge the cron job if you're willing to fix if it becomes a pain :p


Xrm.Sdk.Entity not found

Issue reported by a developer on my team:
When I tried to open a Network View, a window opens up and doesn’t show anything but if I check the Developer Tools it says Cannot read property Entity of undefined.  See attachment.

They're using v7.3 of Sparkle and v1.0.4 of NetworkView.

They will need 1.2 of network view - https://github.com/scottdurow/NetworkView/releases/tag/v1.2.0
Thanks,
Scott
From: Craig Seymour<EMAIL_ADDRESS>Sent: 21 March 2017 10:14
To: scottdurow/NetworkView<EMAIL_ADDRESS>Cc: Subscribed<EMAIL_ADDRESS>Subject: [scottdurow/NetworkView] Xrm.Sdk.Entity not found (#18)
Issue reported by a developer on my team:
When I tried to open a Network View, a window opens up and doesn’t show anything but if I check the Developer Tools it says Cannot read property Entity of undefined. See attachment.
[nv_error1]https://cloud.githubusercontent.com/assets/14763830/24142614/f91b27c2-0e1e-11e7-8996-ba3206aeb538.jpg
They're using v7.3 of Sparkle and v1.0.4 of NetworkView.
[nv_error2]https://cloud.githubusercontent.com/assets/14763830/24142613/f907220e-0e1e-11e7-80a9-e6eeaedcea49.jpg
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/scottdurow/NetworkView/issues/18, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACvPUcsQ6f7SGqyvjub-RNaE0xyoiGENks5rn6LKgaJpZM4MjlE7.

Thanks - I think they got 1.0.4 straight off the master branch - might be worth some signposting to the latest version?

Ooh - that shouldn't really have been there - I've deleted it! Thanks for pointing that out.


#3138 #3488 refactor UserView

Going to /user/scott, nothing shows up. Did you test the view in your dev environment after you refactored?

Turn out that this view is closely related to MainUserView, I will refactor both views and submit a fix

I updated my code but there appears to be messed up css on the page, could you please take a look at it for me

Looks like you're getting a good handle of our kinda wonky loading system. Squashed and merged in, thanks! 👍 https://github.com/codecombat/codecombat/commit/4f369a1e2f32ce9a84274f3da6478513bc30f215


Robot joint 5 calibration is multiple degrees off

Description
Robot joint 5 is at -6.8 degrees on the physical robot, when it should be on 0.
Your environment
ROS Distro: Humble
OS Version: Ubuntu 22.04
Branch/Commit hash: humble #3c9b2ab5c8134974398607492abe749b2ce14df3
Protocol: CPRCANv2
Firmware version: 1.14

To Reproduce

Start launchfile via 'ros2 launch irc_ros_moveit_config rebel.launch.py rebel_version:=01 gripper:=none use_rviz:=true launch_dio_controller:=false'
set robot to zero state

Expected behavior
All joints are at 0 degrees, both in the real world, as well as in simulation.
Actual behavior
Joint 5 is at -6.8 degrees in the real world. Joints 2 and 3 may be a little offset as well (less than a degree, but enough to sometimes crash the robot if it is asked to joint limit states for these joints). In RViz I can see the joint angles should be at 0.
I think this could be an issue with referencing on the ROS side, since referencing the joints in the Igus control software seems to correctly reflect the physical state of the robot. These joints seems consistently miscalibrated for me, on multiple commits and after restarting the robot and the ROS driver.

Ah I see, that would explain the observed offset in joint 5 then.
For me it is semi-reproducible. I move joint 3 to +119 degrees and observe that the links attached to it are already touching each other. When I then for instance try to move it to +120 degrees, the module may crash with the following message:
[ros2_control_node-2] [INFO] [1683631204.824437985] [iRC_ROS]: Module 0x30: Errorcode: 01000100
[ros2_control_node-2] [INFO] [1683631204.824456905] [iRC_ROS]: Module 0x30: Errors MNE DRV detected, motorstate set to disabled
[ros2_control_node-2] [INFO] [1683631204.824460928] [iRC_ROS]: Module 0x30: Reset required
[ros2_control_node-2] [ERROR] [1683631204.824466559] [iRC_ROS]: 0x30: Error detected with no recovery option, stopping entire hardware interface for safety reasons
I had varying success trying to reproduce this, it did not crash on the first attempt when moving from further away, say 0 degrees to 120, but it crashed just now moving from 119 degrees to 120 degrees in joint 3. However, then trying to reproduce it another time proves hard. I think the main problem is that the physical limit of joints 2 and 3 seem to be at 119 degrees on our robot right now (-119 for joint 3 only, the link will go into colission before getting to +120 degree by design).

Hm, I see. This was something I tested when I set the limits in software, but I suppose the tollerances are to slim to make it work all the time on all the robots. irc limits joint 2 and 3 to 110° for that reason, now I see that it was not an unnecesseraly precautious setting...
I'll change the joint limits in in the same PR then, thanks for all the bug reports!

@JHeuverRiwo Can you test if the offset and crashing are gone with the branch from your robot? It would do it myself but I don't know how without being able to reproduce the issues here

I tested the code and it seems to resolve the issue for me!
I do see that the zero position has changed with the fix however; so while the robot and simulated now correspond, joint 5 has a zero position that has been offset compared to the previous version. This in itself is completely workable for us, but I am not sure whether it was intentional.

Perfect, thanks a lot for testing!
The change was intentional, as the zero position is supposed to be the position where all the joint modules report their actual position over CAN as zero. It is not intended as an upright-ish position or anything, that needs to be added at some point in the future as well I guess


SCons build fails with missing module compilation_db

Describe the bug
When trying to build  openpilot using scons in the home directory of  openpilot, it fails with the following error message:
SConsEnvironmentError: No module named compilation_db:
File ".../openpilot/SConstruct", line 147:
env = Environment(
File "/usr/lib/scons/SCons/Environment.py", line 990:
apply_tools(self, tools, toolpath)
File "/usr/lib/scons/SCons/Environment.py", line 102:
env.Tool(tool)
File "/usr/lib/scons/SCons/Environment.py", line 1809:
tool = SCons.Tool.Tool(tool, toolpath, **kw)
File "/usr/lib/scons/SCons/Tool/init.py", line 122:
module = self._tool_module()
File "/usr/lib/scons/SCons/Tool/init.py", line 220:
error_string = "No module named %s" % self.name
Looking in /usr/lib/scons/SCons/Tool/__init__.py where the eroor was thrown, it seems like scons is looking for the following file ./openpilot/site_scons/site_tools/compilation_db.py'. In the site_scons/site_tools directory I only have cython.py. Is that expected? Am I missing some setup steps?
Thanks for your help :slight_smile:
How to reproduce
cd $HOME/openpilot
scons -j$(nproc)

I tried running ubuntu_setup.sh script in the tools directory in case I was missing some dependencies and it did not help.
Device/Version information (please complete the following information):

Build on Ubuntu 20.04LTS
Version: c189d15af9a613d8f109b39298c0ab3e22f39f6d on master branch

Looks like you're using scons from the ubuntu repos. Make sure you use the latest one using pipenv.

Compilation database support is new in scons as of v4.0. Update scons or use the version in our Pipfile.

Thanks both. It seems this error message is indeed gone now.


NSUserTrackingUsageDescription data collection

After this to my Info.plist (suggested here: https://wiki.appodeal.com/en/ios/get-started/data-protection/app-tracking-transparency):
<key>NSUserTrackingUsageDescription</key>
<string>This identifier will be used to deliver personalized ads to you.</string>

I'm getting this message from Apple:

Your app contains NSUserTrackingUsageDescription, indicating that you will request permission to track users. To update this information on your app's product page, you must indicate which data types are tracking users. If this is incorrect, update your app binary and upload a new build to App Store Connect.

I added alsoAppTrackingTransparency.framework.
So Apple needs more information about what I am collecting:

What should I mark there? (location, user content...)

More info: https://santoshbotre01.medium.com/ios-14-5-data-usage-and-user-tracking-in-depth-understanding-f68c573117f


Fixed service registration so it won't break when no 'themes' folder yet exists.

This handles the situation when config('themes.paths.absolute') returns either null or the returned path does not yet exist. Previously this situation would break the traversing of the themes root folder, in search of theme subfolders, which would throw a "must call one of in() or append() methods before iterating over a Finder" FileSystem exception.

👍


add file ShellSortExample.swift

update code.

I'm not convinced this is an improvement over the current implementation. shellsort.swift looks succinct already, and follows the current explanation of it being an improvement over insertion sort.
What sort of improvement do you want to show with your example (compared to the current implementation)?

I agree with you there.
But I think, in the same way, my algorithm takes less time. Maybe my advantage is here.

@Moon1102 Your implementation is much better, as it eliminated the function call and iterator overheads.

Looks good. Thanks @Moon1102 @mitghi !

Thanks @kelvinlauKL  @mitghi

@Moon1102 Your implementation has bugs. If you try this array: [64, 20, 50, 21, 72, 10, 23, -1, 4], you won't get the right answer.

@daisysomus  Thank you for pointing out the mistake.


Better solution than subversion for fonts?

From https://github.com/caskroom/homebrew-cask/pull/16215#issue-124228698.

The reason we’re doing it this way is svn, unlike git, allows us to checkout a single directory from the repo, making for a smaller download.

Download size in itself isn’t that big a deal, I’d say, since worst case scenario the download of a full fonts repo should be ≈250MBs (Google Fonts) and there are bigger apps.

However, using subversion in this manner is in itself bad for casks, I’d argue, since it requires an important additional value to urls. This subversion revision value is (seems like) an obtuse parameter to get in the context of a github repo, and I’m not even sure there’s an easy way for contributors to know when to updated it and to what value. It also makes the cask somewhat more difficult to understand in the sense that its url value will seem to lead nowhere.

In light of all this, I’d rather have yet a different solution. I briefly considered a sibling project, like our sister alehouse to host these multiple-fonts-per-repo fonts. I was envisioning a script that regularly would download those repos, package fonts as individual zip files, and push them to a github repo. Corresponding cask font files would then be set to :latest (fonts is one case where you absolutely always want the latest) and download from there. Those wouldn’t really be official links, though, and there may be other things I’m also not predicting there.

Any ideas?

https://github.com/user/repository/raw/branch/filename works per-se, but it's not great - you need to do one download per font file.
ie:
alef
https://github.com/google/fonts/blob/master/ofl/alef/Alef-Regular.ttf => https://github.com/google/fonts/raw/master/ofl/alef/Alef-Regular.ttf
https://github.com/google/fonts/blob/master/ofl/alef/Alef-Bold.ttf => https://github.com/google/fonts/raw/master/ofl/alef/Alef-Bold.ttf
The raw url also works:  https://raw.githubusercontent.com/google/fonts/master/ofl/alef/Alef-Bold.ttf

https://github.com/user/repository/raw/branch/filename works per-se, but it's not great - you need to do one download per font file.
ie:
alef
https://github.com/google/fonts/blob/master/ofl/alef/Alef-Regular.ttf => https://github.com/google/fonts/raw/master/ofl/alef/Alef-Regular.ttf
https://github.com/google/fonts/blob/master/ofl/alef/Alef-Bold.ttf => https://github.com/google/fonts/raw/master/ofl/alef/Alef-Bold.ttf
The raw url also works:  https://raw.githubusercontent.com/google/fonts/master/ofl/alef/Alef-Bold.ttf

That would require multiple URLs per cask, which we don't support at the moment, and would probably require a good bit of refactoring.

That would require multiple URLs per cask, which we don't support at the moment, and would probably require a good bit of refactoring.

I never said that it was a good idea :wink:
I'm actually surprised there is isn't a better solution for fonts - i would expect Google to have at least a downloadable zip per font somewhere....

I never said that it was a good idea :wink:
I'm actually surprised there is isn't a better solution for fonts - i would expect Google to have at least a downloadable zip per font somewhere....

I'm actually surprised there is isn't a better solution for fonts - i would expect Google to have at least a downloadable zip per font somewhere....

They do, on the Google Fonts directory but we’d have to go and grab them one by one since each has a different hash in the download link, and I’m not even sure they aren’t temporary.
There are other repos with multiple fonts, however, so doing that wouldn’t in itself solve the problem.

I'm actually surprised there is isn't a better solution for fonts - i would expect Google to have at least a downloadable zip per font somewhere....

They do, on the Google Fonts directory but we’d have to go and grab them one by one since each has a different hash in the download link, and I’m not even sure they aren’t temporary.
There are other repos with multiple fonts, however, so doing that wouldn’t in itself solve the problem.


Update README.md

Updated function name as in Issue #305

Description

Checklist

[ ] This pull request was tested on both of:

[ ] PowerShell 5.1 (Windows)
[ ] PowerShell 6.x
[ ] PowerShell 7.x (Latest PowerShell)

[ ] Scripts do not contain static passwords or other secret tokens.
[ ] All Azure resource identifiers which must be universally unique are guaranteed to be so.

Testing information

Platform and PowerShell version: [pscustomobject]$PSVersionTable | Select-Object OS, BuildVersion, PSVersion
Az version: (Get-InstalledModule -Name Az).Version

#sign-off

@mikefrobbins Can you please approve and merge these changes


[LIB-579] register user and userprofile class in SCRegisterManager

LGTM. Not sure why for me after same changes tests were failing.

Circleci :)


Use SpawnTaskHandles for spawning tasks in the tx pool

As mentioned on element, this should be removed.

Won't this allow malicious actors starve consensus/syncing tasks over rpc/p2p ?

Won't this allow malicious actors starve consensus/syncing tasks over rpc/p2p ?

spawn_blocking (used in this PR) spawns a dedicated thread.
The only difference compared to now is that the task would be instrumented and its CPU usage visible on Prometheus.

bot merge

bot merge

bot merge

You haven't addressed the comment about running only 2 threads.


Small multiple plots for clusters

[ ] Additional function parameters / changed functionality / changed defaults?
[ ] New analysis tool: A simple analysis tool you have been using and are missing in sc.tools?
[x] New plotting function: A kind of plot you would like to seein sc.pl?
[ ] External tools: Do you know an existing package that should go into sc.external.*?
[ ] Other?

Hey @fidelram !
I just wrote something to create small multiples to plot cells in a clustering category. Pretty simple and very useful if you have too many clusters. What do you think of this:
def cluster_small_multiples(adata, clust_key, size=60, frameon=False, legend_loc=None, **kwargs):
    tmp = adata.copy()

    for i,clust in enumerate(adata.obs[clust_key].cat.categories):
        tmp.obs[clust] = adata.obs[clust_key].isin([clust]).astype('category')
        tmp.uns[clust+'_colors'] = ['#d3d3d3', adata.uns[clust_key+'_colors'][i]]

    sc.pl.umap(tmp, groups=tmp.obs[clust].cat.categories[1:].values, color=adata.obs[clust_key].cat.categories.tolist(), size=size, frameon=frameon, legend_loc=legend_loc, **kwargs)

Example output from:
test = sc.datasets.pbmc68k_reduced()
sc.pp.pca(test)
sc.pp.neighbors(test)
sc.tl.umap(test)
cluster_small_multiples(test, 'bulk_labels')

Could generalize this to different bases via sc.pl.scatter(). Or is this already implemented somewhere that I'm not aware of? Or maybe it's too simple to have as a small helper function?

I need that a lot actually. One question, is it different than just sc.pl.umap(adata, groups=adata.bulk_labels.cat.categories)?
Maybe a special keyword like groups='all' would be easy to use on the API side?

Tbh, I found out about groups after writing the function and looking for a way to put the dots in front. Maybe there is a simpler way to do this...
But then the command you suggest gives an error if I don't also specify color='bulk_labels', and then it just puts all the labels on the same plot and doesn't create small multiples.

Just saw this by chance.  As we're planning to merge with scvelo's plotting modules soonish, that would simply become
scv.pl.scatter(adata, groups=[[c] for c in adata.obs['clusters'].cat.categories], color='clusters', ncols=4), simply passing a list of lists to groups (without copying a whole anndata object). Will that be sufficient?

Damn... so smug that @VolkerBergen ;).
This looks great! Although maybe a keyword that triggers this might be nice for the user.

Any keyword suggestion? groups='all' as @gokceneraslan suggested?

@LuckyMD  thanks for the suggestion. I actually wrote some code long time ago that does something similar and that I use quite frequently. The main difference is that I always use the same color for all the clusters as sometimes I can not distinguish between the gray background and the cluster color. But using what @VolkerBergen suggested and then resetting the colors should do the trick.
@VolkerBergen I secon the idea of groups='all' as I think this also exists for sc.pl.embedding_density

I actually used sc.pl.embedding_density() for this in the end, as it works quite well for this use case as well.

Tried with the group option but got an Value error: The truth value of a Index is ambiguous. As I didn't know how to deal with it I just applied the function @LuckyMD posted above and it worked perfectly alright.

How are the things going now ?

Hi there - random question, but for some reason, after applying this plotting solution, it specifically then leads to an error being thrown when the adata object is written (I double checked, and this doesn't happen if this command isn't called).
--> 103 write_elem(f, "obs", adata.obs, dataset_kwargs=dataset_kwargs)
TypeError: Can't implicitly convert non-string objects to strings
Is something stored in the object that is specific to this here, that can lead to an AnnData write error?  The issue relates to the .obs column, and I can certainly save the adata object if not running this plotting command


Failed assertion:  '!_dirty': is not true.

class SelectPicker2State extends State<SelectPicker2> {
  String selectedItem = "";

  @override
  void didUpdateWidget(covariant SelectPicker2 oldWidget) {
    listToShow = widget.list;
    if (mounted) {
      setState(() {});
    }

    if (oldWidget.list.length == 0) {
      if (widget.initialItem != null && widget.initialItem != "") {
        _selectInitialItem();
      }
    }

    super.didUpdateWidget(oldWidget);
  }

 _selectInitialItem() {
      for (SelectPickerIten? element in listToShow) {
        if (element != null && element.id == widget.initialItem && widget.initialItem != null && widget.initialItem != "") {
          **selectedItem = "${element.id} - ${element.title}";
          widget.onSelect(element);**
          break;
        }
      }
  }

}

if i coment this line:
selectedItem = "${element.id} - ${element.title}";
widget.onSelect(element);
the error stop

Apologies for the delay. I'm not able to reproduce the error in a new project to share all the code, but I've identified exactly where the problem occurs. I have a customized SelectPicker that receives an "onSelect" function as a parameter, and in didUpdateWidget I eventually execute this function, it is at this moment that the problem is occurring, the function is not nullable, however in the first call of didUpdateWidget it is null, and that's where the error happens

flutter doctor

code

I have a customized SelectPicker that receives an "onSelect" function as a parameter, and in didUpdateWidget I eventually execute this function, it is at this moment that the problem is occurring, the function is not nullable, however in the first call of didUpdateWidget it is null, and that's where the error happens

Thanks for the update @gaabrielricci Would be good to provide a text format code snippet for this so that we can make this issue actionable. Also please verify if you are able to see the same issue on latest stable or master as well or not.


Ensure Prometheus Remote Write Exporter respond to OTLP data format from Prometheus Receiver

Description:
This PR is to ensure the Prometheus Remote Write Exporter responds to OTLP data format from the Prometheus Receiver, specifically for the metric data types of gauge and sum, to check and handle the OTLP MetricDataPointFlagNoRecordedValue flag for staleness and set the sample value of the data point containing this flag to the StaleNaN value.
Link to tracking Issue:
Issue # 6620
Testing:
Test cases have been implemented to verify the sample value of a datapoint with the OTLP flag for staleness is set to the staleNaN value for the metric data types, gauge and sum.

Merged upstream, closing PR.


Fix intermittent RichTextMentionListbox test

Pull Request
🤨 Rationale
Fixes #1891
👩💻 Implementation
Calling show() on the RichTextMentionListbox results in its anchored region becoming un-hidden, and an intersection observer begins observing the new anchor element (i.e. what the anchored region is attached to). The observer closes the listbox when the anchor element is  scrolled out of view. Depending on the timing, the observer callback can run right after calling show(), and if the anchor element is not fully visible in the viewport, then the listbox can be closed before we get a chance to run the rest of the test. Previously, the test had been using the document element as the anchor element, but for some reason that I couldn't discern, the intersection observer would say it was not intersecting (with itself!). I changed the test to use a div (which stays fully in the viewport) as the anchor element, and we no longer run into an issue with the intersection observer prematurely closing the listbox.
🧪 Testing
Interestingly, focusing the intermittent test with fit would cause it to always succeed. I had to disable all other tests (with xdescribe) to run the flaky test by itself. I ran the test with my changes many times without any failures.
✅ Checklist

[x] I have updated the project documentation to reflect my changes or determined no changes are needed.

@mollykreis could you please buddy this for me?


Regression iOS18 in Chrome and Safari which broke all offscreen rendering

BGFX Example : https://rdtesthtml5.s3.eu-west-1.amazonaws.com/Issam/Bug_iOS18/example-09-hdrDebug.html
We noticed that our product no longer works on iOS 18 with Chrome and Safari. Upon investigation, I found that we can fix this issue by using immutable textures: using glTexStorage2D + glTexSubImage2D instead of glTexImage2D
After applying this workaround (https://github.com/issam3105/bgfx/commit/7cfbdfef8219575844f75cc4f8bebf81fc40e213), the issue is temporarily resolved, but a full fix is still required
BGFX Example after workaround: https://rdtesthtml5.s3.eu-west-1.amazonaws.com/Issam/Bug_iOS18/workaround/example-09-hdrDebug.html

Thank you for your find! We've encountered the same issue on our project and will be using your fix in the meantime.


Sort by string

Sorting by name:asc or name:desc with a missing attribute on some items gives the error r.tolowercase is not a function and o.tolowercase is not a function. I temporary fixed this by adding .toString() before the toLowerCase().

All possible sorting attributes must be present on all target elements in order for MixItUp to sort. A warning should be thrown in the console if any attributes are missing. Did you see the warning?


glm Support For Vulkano

Feature request
Add support for glm structures in Vulkano.

The glm crate isn't stable and hasn't been updated in 5 years. I'm not sure if Vulkano should be supporting it.


[reminder] add mouse buttons to SAPP_MODIFIERS_xxx

See the replies in this PR:
https://github.com/floooh/sokol/pull/507
...it makes a lot of sense to allow polling the current mouse button state in events that are not mouse button up/down events. But the sapp_event.mouse_button isn't the right place for this because multiple mouse buttons can be pressed.
Suggestion: add the current mouse button state as modifier bit flags, which are set in "regular events":
enum {
    SAPP_MODIFIER_SHIFT = 0x1,
    SAPP_MODIFIER_CTRL = 0x2,
    SAPP_MODIFIER_ALT = 0x4,
    SAPP_MODIFIER_SUPER = 0x8,
    SAPP_MODIFIER_MOUSEBUTTON_LEFT = 0x100,
    SAPP_MODIFIER_MOUSEBUTTON_RIGHT = 0x200,
    SAPP_MODIFIER_MOUSEBUTTON_MIDDLE = 0x400,
};

Note to self:

macOS: NSEvent.pressedMouseButtons
Win32: GetAsyncKeyState() (don't forget about the physical->logical mapping)
Emscripten: EmscriptenMouseEvent.buttons (only in mouse events, store the last button state from mouse events somewhere and write to other events)
X11: XEvent.state => already used for modifiers keys, also contains mouse button mask

Underway in sapp-mousebutton-modifiers branch:

[ ] MacOS
[ ] Emscripten
[ ] Win32
[ ] Linux

Fixed in https://github.com/floooh/sokol/commit/2f97685e88749937ee8bace99979a1bb366f95e0


VSCode crash randomly\

Does this issue occur when all extensions are disabled?: not sure!

VS Code Version:

Version: 1.71.0-insider (user setup)
Commit: 9529e11f6481ae53bba821b05e34549491b9415e
Date: 2022-08-25T13:00:37.808Z
Electron: 19.0.12
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.19043
Sandboxed: Yes

OS Version: Windows 10

Steps to Reproduce:

open a project
wait...

Description:
had VSCode Insiders open in the background for like an hour and this popped up
error code -1073741819

Can you attach the crash report following the steps provided in https://github.com/microsoft/vscode/wiki/Native-Crash-Issues#creating-and-symbolicating-local-crash-reports, thanks!

im not sure what steps to do, when i run the command it doesnt save anything
there arent really any "steps" to produce the crash, it just happened randomly after opening my pc

+1
Using insiders version, on ubuntu, from snap store.
Logs (even extension logs) don't show anything related (last write to log can be 5 minutes before random exit).
VSCode randomly exits without prompt or any logs, started with version 1.70 insiders.
Did not try to isolate from extensions

I have the same issue

@r-bit-rry Is this issue still present with latest insiders ?

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


Register grass in type registry

Allows grass blades to be viewed / edited in bevy_editor_pls:

Looks great to me. Have nothing to complain about


[SPARK-16240][ML] ML persistence backward compatibility for LDA - 2.0 backport

What changes were proposed in this pull request?
Allow Spark 2.x to load instances of LDA, LocalLDAModel, and DistributedLDAModel saved from Spark 1.6.
Backport of https://github.com/apache/spark/pull/15034 for branch-2.0
How was this patch tested?
I tested this manually, saving the 3 types from 1.6 and loading them into master (2.x).  In the future, we can add generic tests for testing backwards compatibility across all ML models in SPARK-15573.

To reviewers: This code was taken and modified from [#14112]. @GayathriMurali should be the primary author when we merge this into branch-2.0
I'll merge this once tests pass.

Test build #65800 has started for PR 15205 at commit 2a95b5c.

Test build #65800 has finished for PR 15205 at commit 2a95b5c.

This patch fails MiMa tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/65800/
Test FAILed.

Test build #65804 has started for PR 15205 at commit a3d02ce.

Test build #65804 has finished for PR 15205 at commit a3d02ce.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/65804/
Test PASSed.

Local testing worked, so merging with branch-2.0 now


Added release drafter for one click release of SDK

Description
This PR adds a release drafter required for 1-click-release-process.

[x] Tested the workflow here and published a release on fork here.
[x] Created a new task in gradle to fetch the version in release-drafter.

Issues Resolved
Part of https://github.com/opensearch-project/opensearch-sdk-java/issues/836
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Let's wait for @gaiksaya to review before we merge this.


proposal: Go 2: Short statement in switch

Author background

Would you consider yourself a novice, intermediate, or experienced Go programmer?
Something between novice and intermediate
What other languages do you have experience with?
JS/TS, C#, Python

Related proposals

Has this idea, or one like it, been proposed before?
No

Does this affect error handling?
No

Is this about generics?
No

Proposal

What is the proposed change?
This proposal adds short statement in switch, like in if statement
Who does this proposal help, and why?
This proposal helps make switch code more shorter and nicer(?)
Please describe as precisely as possible the change to the language.
Switch now can include short statement, like in if, it's looks like this

switch val := returnSomeInt(); val {
    case 5:
        // do some stuff
}

Or like this, if there is no condition
switch val := returnSomeInt() {
    case val == 5:
        // do some stuff
}

What would change in the language spec?
Note about this short statement in switch

Is this change backward compatible?
Yes

Show example code before and after the change.

Before

import (
    "rand"
    "time"
    "fmt"
)

func returnSomeInt() int {
    rand.Seed(time.Now().UnixNano())
    return rand.Intn(2)
}

func main() {
    val := returnSomeInt()
    switch val {
        case 0:
            fmt.Println("0!")

        case 1:
            fmt.Println("1!")
    }
}

After

import (
    "rand"
    "time"
    "fmt"
)

func returnSomeInt() int {
    rand.Seed(time.Now().UnixNano())
    return rand.Intn(2)
}

func main() {
    switch val := returnSomeInt(); val {
        case 0:
            fmt.Println("0!")

        case 1:
            fmt.Println("1!")
    }
}

Orthogonality: how does this change interact or overlap with existing features?
It's new feature

Is the goal of this change a performance improvement?
No

Costs

Would this change make Go easier or harder to learn, and why?
No

What is the cost of this proposal? (Every language change has a cost).
Adding this thing to language?

How many tools (such as vet, gopls, gofmt, goimports, etc.) would be affected?
gopls, vet(?), gofmt(?)

What is the compile time cost?
Zero

What is the run time cost?
Zero

Can you describe a possible implementation?
No

Do you have a prototype? (This is not required.)
No

The first form you propose already works: https://go.dev/play/p/avLc8LRUPu5

Oh, really :D
It mentioned in specification, but not in Go tour, i missed it
Anyway, second form is not working, so i think this proposal makes sense

Second form is working too, but with a required semicolor
package main

import "fmt"

func main() {
	switch x := 1; {
	case x == 1:
		fmt.Println("yes")
	}
}

https://go.dev/play/p/3hM5pzBdALh

See https://go.dev/ref/spec#Switch_statements. I'm going to close this for now, as expression switch statements already support these simple statements as pointed out above. If you want to file a different proposal, feel free to open a new one, but please read the spec carefully first.


Fix dep validation to work on single checks for PRs

What does this PR do?
PR https://github.com/DataDog/integrations-core/pull/8293 added support to perform stricter dependency validation on PRs to gradually force updates to checks, but this validation runs across the whole repo.
This fixes it so the validation can run against a single check which should limit the scope in PR CI runs.

/azp run

/azp run


[2.x cherry-pick] Prevent outbound buffer overwrite during chunking

Description
Problem: For large Assurance events, the way the outbound event  is being read and converted to a string can cause un-necessary content being appended to the last chunk. This is because the content is read in to a buffer and converted to a string directly irrespective of the actual bytes read. So if the last chunk of data is smaller than the buffer size the remaining part from the buffer could be included.
Solution: As a solution, modify the reading algorithm to store the number of bytes actually read. Then when creating the string use only the portion of the bytes actually read.

Related Issue
https://github.com/adobe/aepsdk-assurance-android/pull/80

Motivation and Context
feature/v-next was cut before the fix was made. This is a direct cherry-pick from 2.x.
Problem: For large Assurance events, the way the outbound event  is being read and converted to a string can cause un-necessary content being appended to the last chunk. This is because the content is read in to a buffer and converted to a string directly irrespective of the actual bytes read. So if the last chunk of data is smaller than the buffer size the remaining part from the buffer could be included.
Solution: As a solution, modify the reading algorithm to store the number of bytes actually read. Then when creating the string use only the portion of the bytes actually read.

How Has This Been Tested?

Unit tests
Manual tests

Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

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

Looks like the circle ci step did not run fir this PR because I have one setup for my branch and it passed - https://app.circleci.com/pipelines/github/prudrabhat/aepsdk-assurance-android/105/workflows/cd6bcdcb-f8b1-4c99-ab12-985ccca30754


Event SpeechEndDetected doesn't raise.

I have a simple text to SRT function(Text to speech, then speech to text), and I use TaskCompletionSource to notify the end of the task, but SpeechEndDetected doesn't seem to be triggered.
P.S: I used to save the synthesized speech as a wav file first and it worked fine. Now, I'm operating directly on the memory stream and I've found this problem.
var subscription = new AzureSubscription("<key>", "<region>");
var speechService = new SpeechService(subscription, "en-US", "en-US-SaraNeural");

bytes= await speechService.CreatBytesAsync(Ssml);

var srtService = new SrtService(speechService.SpeechConfig);
using var audioInputStream = AudioInputStream.CreatePushStream();
audioInputStream.Write(bytes);

using var audioConfig = AudioConfig.FromStreamInput(audioInputStream);
var subtitles = await srtService.BuildSrtAsync(audioConfig);

public async Task<byte[]> CreatBytesAsync(Ssml ssml)
{
    using var synthesizer = new SpeechSynthesizer(SpeechConfig, null);
    var result = await synthesizer.SpeakSsmlAsync(ssml.Raw);
    byte[] stream = result.AudioData;

    return stream;
}

public async Task<List<Subtitle>> BuildSrtAsync(AudioConfig audioConfig)
{
    var recognizer = new SpeechRecognizer(SpeechConfig, audioConfig);
    var subtitles = new List<Subtitle>();

    var begin = TimeSpan.Zero;
    var end = TimeSpan.Zero;

    recognizer.SessionStarted += (sender, e) => {
        Debug.WriteLine(">>> Srt SessionStarted.");
    };

    recognizer.SpeechStartDetected += (sender, e) => {
        Debug.WriteLine(">>> Srt SpeechStartDetected.");
    };

    recognizer.Recognizing += (sender, e) => {
        Debug.WriteLine(">>> Srt Recognizing.");
    };

    recognizer.Recognized += (sender, e) => {
        Debug.WriteLine(">>> Srt Recognized.");
        begin = TimeSpan.FromMilliseconds(e.Result.OffsetInTicks / 10000);
        end = begin + e.Result.Duration;
        var subtitle = new Subtitle(e.Result.Text, begin, end);
        subtitles.Add(subtitle);
    };

    recognizer.SessionStopped += async (sender, e) => {
        Debug.WriteLine(">>> Srt SessionStopped.");
        await recognizer.StopContinuousRecognitionAsync();
    };
    recognizer.Canceled += async (sender, e) => {
        Debug.WriteLine(">>> Srt Canceled.");
        await recognizer.StopContinuousRecognitionAsync();
    };
    recognizer.SpeechEndDetected += (sender, e) => {
        Debug.WriteLine(">>> Srt SpeechEndDetected.");
        _tcs.TrySetResult(true);
    };

    await recognizer.StartContinuousRecognitionAsync();

    await _tcs.Task;

    return subtitles;
}

Output:
>>> Srt SessionStarted.
>>> Srt SpeechStartDetected.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognized.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognized.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognized.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognized.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognized.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognizing.
>>> Srt Recognized.

Following the guidelines of this Duplicate of #1277, I added a line of code:
audioInputStream.Write(bytes);
audioInputStream.Close(); // add close()

This did solve my problem, but I don't know if this is the right "pattern", so if anyone knows, please let me know so I can do it with confidence.

That is correct.
When reading from file, the sdk will automatically send zero bytes and endpoint when it hits end of file.
When you are sending audio via a buffer, you either have to return zero bytes on the stream read, so it know no more data will come, or you have to send enough silence that the service will endpoint for you.
Another experiment you could do is add the Break tag to your SSML to have the tts engine will inject a set amount of silence into the audio stream. You should receive the SpeechEndDetected event after about 20 seconds of silence.
<?xml version="1.0"?>
<speak version="1.1" xmlns="http://www.w3.org/2001/10/synthesis"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.w3.org/2001/10/synthesis
                 http://www.w3.org/TR/speech-synthesis11/synthesis.xsd"
       xml:lang="en-US">
  Take a deep breath <break/>
  then tell me what is wrong.
 <break time="30s"/>
  I didn't hear you!
</speak>

Thanks for using the Speech SDK! As you've already found, you do need to close the stream as otherwise there is no way to determine that the data is complete.


Improve the getRequestContext/getOptionalRequestContext's behavior in the Node.js runtime

Currently if users run getRequestContext or getOptionalRequestContext in the Node.js runtime they get a generic error saying that the request context could not be found, these changes improve such situation by making it much clearer to the user that the error lies in the runtime being used.
These changes make it so that when either function is used:

if we can detect for a high level of certainty that the code is running in the Node.js runtime throw an error clearly stating that the wrong runtime is being used
if we are not completely sure what runtime is being used (and the request context could not be retrieved) add a hint in the error message prompting the developer to double check that they are using the correct runtime (only applies to getRequestContext)
if the (correct) edge runtime is being used we don't include this information at all.

resolves #674

Could we create some tests for this?

Could we create some tests for this?

Currently we don't have any e2e test for local development behaviors (maybe we should 😕, the problem is that it would require an e2e testing process completely different from what we have now) so that's why I haven't added tests for this
But I guess we could have unit tests for getRequestContext 👍
Good point! thanks I'll look into adding them 🙂


WebAuthn: Better errors

Also fixes deprovisioning and removes a merge conflict.
Closes #6157.

Thanks for catching these errors @woodruffw :)  A few items:
Consolidating JS code
We currently have two places where we check for webauthn browser compatibility:

https://github.com/pypa/warehouse/blob/master/warehouse/static/js/warehouse/utils/webauthn.js#L41
https://github.com/pypa/warehouse/blob/master/warehouse/static/js/warehouse/index.js#L67

Would it make sense to move all of this into one place?
Consistent error messages
Can we update this line to have the following message:
Upgrade your browser
This would be consistent with the other webauthn errors in the template.
Disabling the input
Can we please also update the JS so that the input is disabled on the provisioning page, e.g.
Before

After

Would it make sense to move all of this into one place?

Yup! Done.

Can we update this line to have the following message:
Upgrade your browser
This would be consistent with the other webauthn errors in the template.

This should be fixed now; I've made it so that populateWebAuthnErrorList doesn't clobber the existing error, so that should always appear.

Can we please also update the JS so that the input is disabled on the provisioning page, e.g.

Done!

Thanks @woodruffw.
I've improved the display of the errors:

I think we should be ready to merge this one now.

Yep, everything's good on my end. Thanks for fixing that!


an error caused by running the example of the opt

(pytorch) root@USER-20211001RA:~/EnergonAI-main/examples/opt# python opt_fastapi.py opt-125m --checkpoint ./restored.pt
/usr/local/anaconda3/envs/pytorch/lib/python3.9/site-packages/torch/library.py:130: UserWarning: Overriding a previously registered kernel for the same operator and the same dispatch key
operator: aten::index.Tensor(Tensor self, Tensor?[] indices) -> Tensor
registered at /opt/conda/conda-bld/pytorch_1670525539683/work/build/aten/src/ATen/RegisterSchema.cpp:6
dispatch key: Meta
previous kernel: registered at /opt/conda/conda-bld/pytorch_1670525539683/work/aten/src/ATen/functorch/BatchRulesScatterOps.cpp:1053
new kernel: registered at /dev/null:228 (Triggered internally at /opt/conda/conda-bld/pytorch_1670525539683/work/aten/src/ATen/core/dispatch/OperatorEntry.cpp:150.)
self.m.impl(name, dispatch_key, fn)
Traceback (most recent call last):
File "/root/EnergonAI-main/examples/opt/opt_fastapi.py", line 7, in
from energonai import QueueFullError, launch_engine
File "/usr/local/anaconda3/envs/pytorch/lib/python3.9/site-packages/energonai-0.0.1+torch1.13cu11.7-py3.9-linux-x86_64.egg/energonai/init.py", line 2, in
from .engine import launch_engine, SubmitEntry, QueueFullError
File "/usr/local/anaconda3/envs/pytorch/lib/python3.9/site-packages/energonai-0.0.1+torch1.13cu11.7-py3.9-linux-x86_64.egg/energonai/engine.py", line 9, in
from colossalai.logging import get_dist_logger
File "/usr/local/anaconda3/envs/pytorch/lib/python3.9/site-packages/colossalai-0.2.5-py3.9.egg/colossalai/init.py", line 1, in
from .initialize import (
File "/usr/local/anaconda3/envs/pytorch/lib/python3.9/site-packages/colossalai-0.2.5-py3.9.egg/colossalai/initialize.py", line 18, in
from colossalai.amp import AMP_TYPE, convert_to_amp
File "/usr/local/anaconda3/envs/pytorch/lib/python3.9/site-packages/colossalai-0.2.5-py3.9.egg/colossalai/amp/init.py", line 9, in
from .torch_amp import convert_to_torch_amp
File "/usr/local/anaconda3/envs/pytorch/lib/python3.9/site-packages/colossalai-0.2.5-py3.9.egg/colossalai/amp/torch_amp/init.py", line 9, in
from .torch_amp import TorchAMPLoss, TorchAMPModel, TorchAMPOptimizer
File "/usr/local/anaconda3/envs/pytorch/lib/python3.9/site-packages/colossalai-0.2.5-py3.9.egg/colossalai/amp/torch_amp/torch_amp.py", line 10, in
from colossalai.nn.optimizer import ColossalaiOptimizer
File "/usr/local/anaconda3/envs/pytorch/lib/python3.9/site-packages/colossalai-0.2.5-py3.9.egg/colossalai/nn/init.py", line 1, in
from ._ops import *
File "/usr/local/anaconda3/envs/pytorch/lib/python3.9/site-packages/colossalai-0.2.5-py3.9.egg/colossalai/nn/_ops/init.py", line 1, in
from .addmm import colo_addmm
File "/usr/local/anaconda3/envs/pytorch/lib/python3.9/site-packages/colossalai-0.2.5-py3.9.egg/colossalai/nn/_ops/addmm.py", line 5, in
from ._utils import GeneralTensor, Number, convert_to_colo_tensor
File "/usr/local/anaconda3/envs/pytorch/lib/python3.9/site-packages/colossalai-0.2.5-py3.9.egg/colossalai/nn/_ops/_utils.py", line 8, in
from colossalai.nn.layer.utils import divide
File "/usr/local/anaconda3/envs/pytorch/lib/python3.9/site-packages/colossalai-0.2.5-py3.9.egg/colossalai/nn/layer/init.py", line 7, in
from .moe import *
File "/usr/local/anaconda3/envs/pytorch/lib/python3.9/site-packages/colossalai-0.2.5-py3.9.egg/colossalai/nn/layer/moe/init.py", line 1, in
from .experts import Experts, FFNExperts, TPExperts
File "/usr/local/anaconda3/envs/pytorch/lib/python3.9/site-packages/colossalai-0.2.5-py3.9.egg/colossalai/nn/layer/moe/experts.py", line 8, in
from colossalai.zero.init_ctx import no_shard_zero_decrator
File "/usr/local/anaconda3/envs/pytorch/lib/python3.9/site-packages/colossalai-0.2.5-py3.9.egg/colossalai/zero/init.py", line 7, in
from colossalai.zero.sharded_model.sharded_model_v2 import ShardedModelV2
File "/usr/local/anaconda3/envs/pytorch/lib/python3.9/site-packages/colossalai-0.2.5-py3.9.egg/colossalai/zero/sharded_model/init.py", line 1, in
from .sharded_model_v2 import ShardedModelV2
File "/usr/local/anaconda3/envs/pytorch/lib/python3.9/site-packages/colossalai-0.2.5-py3.9.egg/colossalai/zero/sharded_model/sharded_model_v2.py", line 15, in
from colossalai.gemini.memory_tracer import MemStatsCollector, StaticMemStatsCollector
File "/usr/local/anaconda3/envs/pytorch/lib/python3.9/site-packages/colossalai-0.2.5-py3.9.egg/colossalai/gemini/init.py", line 1, in
from .chunk import ChunkManager, TensorInfo, TensorState, search_chunk_configuration
File "/usr/local/anaconda3/envs/pytorch/lib/python3.9/site-packages/colossalai-0.2.5-py3.9.egg/colossalai/gemini/chunk/init.py", line 3, in
from .search_utils import classify_params_by_dp_degree, search_chunk_configuration
File "/usr/local/anaconda3/envs/pytorch/lib/python3.9/site-packages/colossalai-0.2.5-py3.9.egg/colossalai/gemini/chunk/search_utils.py", line 8, in
from colossalai.gemini.memory_tracer import MemStats, OrderedParamGenerator
File "/usr/local/anaconda3/envs/pytorch/lib/python3.9/site-packages/colossalai-0.2.5-py3.9.egg/colossalai/gemini/memory_tracer/init.py", line 6, in
from .static_memstats_collector import StaticMemStatsCollector    # isort:skip
File "/usr/local/anaconda3/envs/pytorch/lib/python3.9/site-packages/colossalai-0.2.5-py3.9.egg/colossalai/gemini/memory_tracer/static_memstats_collector.py", line 7, in
from colossalai.fx.passes.meta_info_prop import MetaInfoProp
File "/usr/local/anaconda3/envs/pytorch/lib/python3.9/site-packages/colossalai-0.2.5-py3.9.egg/colossalai/fx/init.py", line 4, in
from .tracer import ColoTracer, meta_trace, symbolic_trace
File "/usr/local/anaconda3/envs/pytorch/lib/python3.9/site-packages/colossalai-0.2.5-py3.9.egg/colossalai/fx/tracer/init.py", line 4, in
from ._symbolic_trace import symbolic_trace
File "/usr/local/anaconda3/envs/pytorch/lib/python3.9/site-packages/colossalai-0.2.5-py3.9.egg/colossalai/fx/tracer/_symbolic_trace.py", line 8, in
from .tracer import ColoTracer
File "/usr/local/anaconda3/envs/pytorch/lib/python3.9/site-packages/colossalai-0.2.5-py3.9.egg/colossalai/fx/tracer/tracer.py", line 23, in
from .bias_addition_patch import func_to_func_dict, method_to_func_dict, module_to_func_dict
File "/usr/local/anaconda3/envs/pytorch/lib/python3.9/site-packages/colossalai-0.2.5-py3.9.egg/colossalai/fx/tracer/bias_addition_patch/init.py", line 1, in
from .patched_bias_addition_function import *
File "/usr/local/anaconda3/envs/pytorch/lib/python3.9/site-packages/colossalai-0.2.5-py3.9.egg/colossalai/fx/tracer/bias_addition_patch/patched_bias_addition_function/init.py", line 1, in
from .addbmm import Addbmm
File "/usr/local/anaconda3/envs/pytorch/lib/python3.9/site-packages/colossalai-0.2.5-py3.9.egg/colossalai/fx/tracer/bias_addition_patch/patched_bias_addition_function/addbmm.py", line 7, in
from .bias_addition_function import LinearBasedBiasFunc
ModuleNotFoundError: No module named 'colossalai.fx.tracer.bias_addition_patch.patched_bias_addition_function.bias_addition_function'
Python 3.9.13

Hi, could you reinstall the latest colossalai?

reinstall the latest colossalai=0.2.7，but it's still error，details:

reinstall the latest colossalai=0.2.7，but it's still error，details:
(base) [aigc@phy-22-124 opt]$ python opt_fastapi.py opt-125m --checkpoint /home/aigc/sqwang/model/restored.pt
Traceback (most recent call last):
File "/home/aigc/sqwang/proj/EnergonAI-main/examples/opt/opt_fastapi.py", line 7, in
from energonai import QueueFullError, launch_engine
File "/home/aigc/anaconda3/lib/python3.9/site-packages/energonai-0.0.1+torch2.0cu11.7-py3.9-linux-x86_64.egg/energonai/init.py", line 2, in
from .engine import launch_engine, SubmitEntry, QueueFullError
File "/home/aigc/anaconda3/lib/python3.9/site-packages/energonai-0.0.1+torch2.0cu11.7-py3.9-linux-x86_64.egg/energonai/engine.py", line 9, in
from colossalai.logging import get_dist_logger
File "/home/aigc/anaconda3/lib/python3.9/site-packages/colossalai-0.2.7-py3.9.egg/colossalai/init.py", line 1, in
from .initialize import (
File "/home/aigc/anaconda3/lib/python3.9/site-packages/colossalai-0.2.7-py3.9.egg/colossalai/initialize.py", line 18, in
from colossalai.amp import AMP_TYPE, convert_to_amp
File "/home/aigc/anaconda3/lib/python3.9/site-packages/colossalai-0.2.7-py3.9.egg/colossalai/amp/init.py", line 9, in
from .torch_amp import convert_to_torch_amp
File "/home/aigc/anaconda3/lib/python3.9/site-packages/colossalai-0.2.7-py3.9.egg/colossalai/amp/torch_amp/init.py", line 9, in
from .torch_amp import TorchAMPLoss, TorchAMPModel, TorchAMPOptimizer
File "/home/aigc/anaconda3/lib/python3.9/site-packages/colossalai-0.2.7-py3.9.egg/colossalai/amp/torch_amp/torch_amp.py", line 10, in
from colossalai.nn.optimizer import ColossalaiOptimizer
File "/home/aigc/anaconda3/lib/python3.9/site-packages/colossalai-0.2.7-py3.9.egg/colossalai/nn/init.py", line 1, in
from ._ops import *
File "/home/aigc/anaconda3/lib/python3.9/site-packages/colossalai-0.2.7-py3.9.egg/colossalai/nn/_ops/init.py", line 1, in
from .addmm import colo_addmm
File "/home/aigc/anaconda3/lib/python3.9/site-packages/colossalai-0.2.7-py3.9.egg/colossalai/nn/_ops/addmm.py", line 5, in
from ._utils import GeneralTensor, Number, convert_to_colo_tensor
File "/home/aigc/anaconda3/lib/python3.9/site-packages/colossalai-0.2.7-py3.9.egg/colossalai/nn/_ops/_utils.py", line 8, in
from colossalai.nn.layer.utils import divide
File "/home/aigc/anaconda3/lib/python3.9/site-packages/colossalai-0.2.7-py3.9.egg/colossalai/nn/layer/init.py", line 7, in
from .moe import *
File "/home/aigc/anaconda3/lib/python3.9/site-packages/colossalai-0.2.7-py3.9.egg/colossalai/nn/layer/moe/init.py", line 1, in
from .experts import Experts, FFNExperts, TPExperts
File "/home/aigc/anaconda3/lib/python3.9/site-packages/colossalai-0.2.7-py3.9.egg/colossalai/nn/layer/moe/experts.py", line 8, in
from colossalai.zero.init_ctx import no_shard_zero_decrator
File "/home/aigc/anaconda3/lib/python3.9/site-packages/colossalai-0.2.7-py3.9.egg/colossalai/zero/init.py", line 7, in
from colossalai.zero.sharded_model.sharded_model_v2 import ShardedModelV2
File "/home/aigc/anaconda3/lib/python3.9/site-packages/colossalai-0.2.7-py3.9.egg/colossalai/zero/sharded_model/init.py", line 1, in
from .sharded_model_v2 import ShardedModelV2
File "/home/aigc/anaconda3/lib/python3.9/site-packages/colossalai-0.2.7-py3.9.egg/colossalai/zero/sharded_model/sharded_model_v2.py", line 16, in
from colossalai.gemini.memory_tracer import MemStatsCollector, StaticMemStatsCollector
File "/home/aigc/anaconda3/lib/python3.9/site-packages/colossalai-0.2.7-py3.9.egg/colossalai/gemini/init.py", line 1, in
from .chunk import ChunkManager, TensorInfo, TensorState, search_chunk_configuration
File "/home/aigc/anaconda3/lib/python3.9/site-packages/colossalai-0.2.7-py3.9.egg/colossalai/gemini/chunk/init.py", line 3, in
from .search_utils import classify_params_by_dp_degree, search_chunk_configuration
File "/home/aigc/anaconda3/lib/python3.9/site-packages/colossalai-0.2.7-py3.9.egg/colossalai/gemini/chunk/search_utils.py", line 8, in
from colossalai.gemini.memory_tracer import MemStats, OrderedParamGenerator
File "/home/aigc/anaconda3/lib/python3.9/site-packages/colossalai-0.2.7-py3.9.egg/colossalai/gemini/memory_tracer/init.py", line 6, in
from .static_memstats_collector import StaticMemStatsCollector    # isort:skip
File "/home/aigc/anaconda3/lib/python3.9/site-packages/colossalai-0.2.7-py3.9.egg/colossalai/gemini/memory_tracer/static_memstats_collector.py", line 7, in
from colossalai.fx.passes.meta_info_prop import MetaInfoProp
File "/home/aigc/anaconda3/lib/python3.9/site-packages/colossalai-0.2.7-py3.9.egg/colossalai/fx/init.py", line 3, in
from .passes import MetaInfoProp, metainfo_trace
File "/home/aigc/anaconda3/lib/python3.9/site-packages/colossalai-0.2.7-py3.9.egg/colossalai/fx/passes/init.py", line 2, in
from .concrete_info_prop import ConcreteInfoProp
File "/home/aigc/anaconda3/lib/python3.9/site-packages/colossalai-0.2.7-py3.9.egg/colossalai/fx/passes/concrete_info_prop.py", line 10, in
from colossalai.fx.profiler import GraphInfo, profile_function, profile_method, profile_module
File "/home/aigc/anaconda3/lib/python3.9/site-packages/colossalai-0.2.7-py3.9.egg/colossalai/fx/profiler/init.py", line 4, in
from .opcount import flop_mapping
File "/home/aigc/anaconda3/lib/python3.9/site-packages/colossalai-0.2.7-py3.9.egg/colossalai/fx/profiler/opcount.py", line 273, in
aten.upsample_nearest2d_backward.vec: elementwise_flop_counter(0, 1),
File "/home/aigc/anaconda3/lib/python3.9/site-packages/torch/_ops.py", line 488, in getattr
raise AttributeError(
AttributeError: The underlying op of 'aten.upsample_nearest2d_backward' has no overload name 'vec'

the same error is occurred:
e3f770c086f88c869c52f1dc7b77e94.jpg


Data Base

Need to work on the database to store the users/ user computed areas. checkout flask and sqlalchemy

Closed


Adds static type checking to the tests

i found this lying around on my disk today.
hope you are well, and they didn't draft you into Spargelstechen.

Thanks for taking care of this.


chore(css): css preprocessors support enhancement

This addon allows "global" CSS extension language files in public/ dir which are then merged to dist/app.css and that file can be included in index.html.
This webpack build runs concurrently with the main build compilation.

@jkuri CSS/SASS files are part of source for project and it would be good if we have that under src folder, something like src/assets

+1 to @sirajc. I think, as per the ember-cli convention, the public folder should have no processors other than copying aso-is into the root of the website.

Instead of a fixed location, how about a configuration setting for global styles?  Ideally the option would accept an array of files with glob support.  This allows public, as well as src/assets, or just an individual file.  It could also allow pulling in styles directly from a package as well (bootstrap?).
Where to put the option is the question.  Does it fit in angular-cli.json?  Or would it be better to add a separate config file for project specific build options?

I'll update this in the next hours, but it is not quite sure this will be merged.

We talked a bit more about this functionality, and this is the current plan:

add the following property to config

{
   // ...
  "apps": [
    {
     // ...
      styleEntryPoints: {
        "src/style.css": { output: "style.css", autoImported: true }
      }
    }
  ],

add file on sourceDir, maybe with a comment about css imports if the styleExt for the project is css
add entry point on wepack config common using config to resolve
add test that checks that global styles are included (see test for sass/etc for code you can copy paste)

We have component-name.css so why not index.css next to index.html?

@intellix you could change that in angular-cli.json, I'll write a documentation about it. Btw, just pushed to this.

shouldn't the file be: style.__styleext__ to support pre-processors as well?

yes, thanks, was a long night.

Great work @jkuri, Thanks..., with this we can define styles like
"apps": [
    {
      "main": "src/main.ts",
      "tsconfig": "src/tsconfig.json",
      "mobile": false,
      "styles": [
            "assets/vendor/paper.bootstrap.css",
            "styles/index.scss"
      ]
    }
  ]

:+1:

@sirajc no problem. I still have some minor improvements to do with injecting styles and write tests but this, I think, would be it. Actually the config looks like:
"styles": {
  "src/style.css": { "output": "style.css", "autoImported": true },
  "src/app.sass": { "output": "app.css", "autoImported": true }
}

but this will be noted in the readme for sure. In the meanwhile feel free to test this and report any bugs. Thanks.

I managed to get mobile tests passing and working with app-shell prerender.
@filipesilva, @TheLarkInn please review.

this PR does not follow the proper design so I am closing it.

@jkuri Should we discuss the design on #1459


Integrate frame differencing into EVA video loader

Description:
Integrate frame differencing into EVA video loader to be able to skip similar frames. Current EVA implementation has support for sampling every nth frame from a given video stream. Support has now been added to compare frames and skip frames based on following metrics:

Mean Square Error
Absolute Difference

The  threshold value and distance metric are taken as parameters by the Video Loader class.
The above distance metrics can be used to compare all the pixels in the frame or based on the scenario, only the foreground pixels. For the latter, the flag compare_foreground can be set to True so that the comparison would happen only on the detected foreground pixels. A function to identify the foreground mask has been added to the utility functions so that it can be leveraged by other components as well.
Testing:
Appropriate tests have been added to test all the distance metrics as well as the foreground mask comparison. Following is the list of tests with each function name describing the tested scenario and expected result:

test_should_skip_identical_frames_absdiff
test_should_skip_identical_frames_msediff
test_should_skip_identical_frames_only_foreground

Usage:
Usage corresponding to above tests are:

test_should_skip_identical_frames_absdiff:

SimpleVideoLoader(video_info, threshold=0.5, distance_metric='absolute_difference')

test_should_skip_identical_frames_msediff

SimpleVideoLoader(video_info, threshold=0.5, distance_metric='mse_difference')

test_should_skip_identical_frames_only_foreground

SimpleVideoLoader(video_info, threshold=0.5, distance_metric='absolute_difference', compare_foreground=True)

The distance metric should correspond to the function name as defined in framediff_utils. Thus, as of now the following distance metrics can be passed:

absolute_difference
mse_difference

@gaurav274 , kindly review our changes and let us know if there's anything we need to change.


Doc improvement for cluster_addons

Is your request related to a new offering from AWS?
Is this functionality available in the AWS provider for Terraform? See CHANGELOG.md, too.

No 🛑: please wait to file a request until the functionality is avaialble in the AWS provider
Yes ✅: please list the AWS provider version which introduced this functionality

Is your request related to a problem? Please describe.
I have been working on a project to provision EKS with Add-ons using the module.
While configuring cluster_addons, I found it is not easy to find the accepted plugin names list, I did some searching and testing and finally understand it is the Add-ons name defined in this AWS Doc
Describe the solution you'd like.
I think it would be great to add reference to this doc, so that others can know where to find the plugin name and supply to the cluster_addons
Describe alternatives you've considered.
NA
Additional context
NA

This issue has been resolved in version 20.12.0 :tada:


feat: :sparkles: add pwa support

Description
Add PWA support with next-pwa being install
Fixes # (issue)
Closes #39
Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Run lighthouse and check if the requirements are checked for PWA
Checklist:

[ ] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

@niteshseram
Thanks a lot for taking the issue and making the app better. Please feel free to pick up more, contribute more. I wish you a great #Hactoberfest ahead. You will be added to the contribution list right after we merge this PR. Don't forget to share about your contribution publicly and provide your support with a star ⭐.
Great work 🔥 !!!!


feature: gracefully handle -s vs _s in wasm filenames

Is your feature request related to a problem? Please describe.
https://github.com/kinode-dao/kit/issues/216 documents annoyance of cargo preferring _s and Kimap App Store protocol preferring -s. https://github.com/kinode-dao/kit/pull/222 resolved this on the kit side by making kit more robust wrt _s vs -s and just "doing the right thing". There is still some trickiness here associated with our manifest.json files, where we specify a file path for processes.
Describe the solution you'd like
Make Kinode core, when given a process path of foo-bar.wasm, if not found, check for foo_bar.wasm (and vice versa!). Print a verbosity 1 message if this switcheroo happens so that devs can be informed.
Ideally this should happen for both manifest.json, scripts.json, and spawn() to give a consistent behavior across all process-spawning interfaces.
Describe alternatives you've considered
This is in addition to kit being better. E.g., kit could read manifest.json and see if the corresponding .wasm file exists; error out with useful error message if it does not.
Additional context
@dr-frmr what do you think about this?

Yup, ought to do this

Revisiting this @nick1udwig I am now thinking that we should strictly enforce non-usage of underscore. Otherwise, every program that wants to interact with .wasm files stored in the VFS will always need to implement this backup-check logic. It seems burdensome as opposed to following the config files blindly and immediately alerting the developer if they are misconfigured.

Hmm, yeah, its either every .wasm interaction has the backup logic or else fail out ASAP.
I can change kit to error out given _s. This would be a breaking change.

https://github.com/kinode-dao/kit/pull/257 implements the desired "fail fast" behavior in kit.
At a minimum we should change distro modules/processes to use -s rather than _s. This would be a breaking change unless we alias them.
We should also consider rejecting running .wasm files that have a _ in them. This would be a breaking change as well.

Is this work done / can we close this? @nick1udwig

Yup -- just waiting on 0.10.0 to merge, but work is done


Add tests that catch a race condition in the reported size of a message buffer

Description
Introduce tasks that test the coherency of the reported space available in a message buffer from two separate tasks. Designed to highlight the issue reported in https://github.com/FreeRTOS/FreeRTOS-Kernel/pull/264
Introduce configRUN_ADDITIONAL_TESTS which must be set to 1 to run the new tests. That is because the new tests got added to an existing standard demo file and smaller platforms may not have the resources to run them.
Set configRUN_ADDITIONAL_TESTS to 1 in the MSVC and IAR/QEMU project so both project run the new test. Also add missing 'volatile' qualifier on some register accesses in the same file.
Test Steps
Run the soak test in either the MSVC Win32 or the IAR MPS2 QEMU projects.
Related Issue
https://github.com/FreeRTOS/FreeRTOS-Kernel/pull/264
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Duplicate PR so closing.


Expose the Protected header

This adds two new functions to COSESign1:

new_with_protected, to allow users to pass in a protected header
get_protected_and_payload, to allow users to retrieve the protected
header

These two functions allow users to use the protected header, in case
their use of COSE uses values in this header.
Signed-off-by: Patrick Uiterwijk<EMAIL_ADDRESS>By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the Apache License Version 2.0, as specified in the LICENSE file of this repository.

I don't think the 1.38 failure is due to me, that is because of something in serde_with_macros (pulled in by serde_with).

Seems the serde_with 1.5 crate has a new version. I'll see if I can bump the minimum rust version or pin the crate version more specifically.

https://github.com/awslabs/aws-nitro-enclaves-cose/pull/9 should fix the CI issue.


what is .exe

[Enter feedback here]

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

ID: 433b4c70-07c8-34c3-b567-22c80b71c5e2
Version Independent ID: e3699917-899c-85fd-44f2-942b317cb8ff
Content: How to: Install and uninstall Windows services - .NET Framework
Content Source: docs/framework/windows-services/how-to-install-and-uninstall-services.md
Product: dotnet-framework
GitHub Login: @gewarren
Microsoft Alias: dotnetcontent

is it the setup.exe that is created after publiush
cause there is no other exe in my publish folder

Complete beginner here ~ I think there should be only one .exe file.

Hello. I just came across this issue and I'm sure it's too late, but after reading through the document it seems to be talking about your project's compiled executable. This tool isn't meant to replace an installer system like install shield or wix.