vhost-device-sound: implement RX capture with ALSA

Depends on #487
Summary of the PR

Add an RX code path that is similar to the existing TX code in the ALSA backend.

Requirements
Before submitting your PR, please make sure you addressed the following
requirements:

[x] All commits in this PR are signed (with git commit -s), and the commit
message has max 60 characters for the summary and max 75 characters for each
description line.
[x] All added/changed functionality has a corresponding unit/integration
test.
[x] All added/changed public-facing functionality has entries in the "Upcoming
Release" section of CHANGELOG.md (if no such section exists, please create one).
[x] Any newly added unsafe code is properly documented.

@epilys All commits must have a proper subject and commit log, both are must. I see that many of the commits don't have a message with them. Please add those.
Also I would suggest separating bug fixes / cleanups from developement patches, so we don't block the smaller changes for longer duration. Can you please split this series into two? Cleanups and bug fixes can be immediately merged then.

Also I would suggest separating bug fixes / cleanups from developement patches, so we don't block the smaller changes for longer duration. Can you please split this series into two? Cleanups and bug fixes can be immediately merged then.

The only one that can be separated is sound/pipewire: handle StreamWithIdNotFound consistently. I will pull it out.

Actually, I forgot, it cannot be separated because it depends on c5fece292c9b0b0ba1900b0e903b62a66b356d56 and is meaningless without it.

I was expecting everything except https://github.com/rust-vmm/vhost-device/pull/476/commits/5b94cd2d307dff19620ed4f15a84c145483c69d0 can be moved to a separate pull request. As that is the only part which is adding a new feature.
Or did I misread the whole thing ? Others really looked like cleanups or minor fixes to me..

I was expecting everything except 5b94cd2 can be moved to a separate pull request. As that is the only part which is adding a new feature.
Or did I misread the whole thing ? Others really looked like cleanups or minor fixes to me..

Sure, will tag a separate PR before RX.

Regarding commit https://github.com/rust-vmm/vhost-device/pull/476/commits/ac1c38a795f31e3f6bdc1800bced13477a6b1fd0, I think it is not a good idea to continue executing a control command in an invalid stream state. Based on the virtio spec, invalid means it does not conform to the possible sequences that are considered valid based on "<IP_ADDRESS>.1 PCM Command Lifecycle". The specification does not explicitly specify what should happen if a control request is issued in an invalid stream state. In this case, I would return "VIRTIO_SND_S_BAD_MSG" or "VIRTIO_SND_S_NOT_SUPP". Crosvm does respond the latter. While we don't need to do the same, I think accepting any control message at any state may lead to unexpected results.

I agree in principle, but there are valid counter-arguments:

The lifecycle is not in Sound Device Conformance and is non-normative
It's evident user-space linux apps do not follow that logic (see libsox)

I believe it's best to be conservative in what we don't allow implementation-wise. If we see a problem with this in the future we can address it.

I agree in principle, but there are valid counter-arguments:
* The lifecycle is not in `Sound Device Conformance` and is non-normative

But non-normative doesn't mean you have to support all possible transitions. IMHO if we expect a transition it's fine, otherwise we should return an error if we don't expect it and don't know how to handle it, no?

* It's evident user-space linux apps do not follow that logic (see libsox)

What is the issue with libsox? How can we replicate?

I believe it's best to be conservative in what we don't allow implementation-wise. If we see a problem with this in the future we can address it.

I agree in being conservative, but if our device does not support a specific transition, IMHO we should return an error to the driver.
However maybe we should discuss this in #487 , this is the PR for RX IIUC (aaaa github dependencies, what a mess)

@stefano-garzarella I agree. I just haven't identified yet any specific case where that should happen. Re: libsox, try using play (wrapper for playback with sox) on ubuntu/debian, I had written about it around October 3rd on slack and Dorinda reproduced it:

I installed libsox on a VM days ago to start working on Capture and I found it doesn't work at Playback+alsa at all, it issues a Prepare->Prepare->Stop which is invalid driver behavior

@stefano-garzarella I agree. I just haven't identified yet any specific case where that should happen. Re: libsox, try using play (wrapper for playback with sox) on ubuntu/debian, I had written about it around October 3rd on slack and Dorinda reproduced it:

I installed libsox on a VM days ago to start working on Capture and I found it doesn't work at Playback+alsa at all, it issues a Prepare->Prepare->Stop which is invalid driver behavior

I use fedora 37 guest for testing and IIRC what i could reproduce on libsox with Playback+pipewire was SET_PARAMS -> PREPARE -> SET_PARAMS -> PREPARE -> SET_PARAMS -> PREPARE -> START -> STOP ->RELEASE -> ... which is a valid transitioning. I would confirm if this is the case for alsa.

same is the case for alsa (valid transition using sox) - guest is running fedora 37

@stefano-garzarella I agree. I just haven't identified yet any specific case where that should happen.

What? That our device doesn't support the transition?

Re: libsox, try using play (wrapper for playback with sox) on ubuntu/debian, I had written about it around October 3rd on slack and Dorinda reproduced it:

Sorry, my memory is pretty bad ;-)

I installed libsox on a VM days ago to start working on Capture and I found it doesn't work at Playback+alsa at all, it issues a Prepare->Prepare->Stop which is invalid driver behavior

So here the wrong transition is prepare -> stop, right?
Should we just support *->stop, instead of relaxing all transitions?
Anyway, maybe we should write this example in the commit description so even in the future we can remember why.

The thing that worries me about executing any command at any state is to open the door for unexpected behaviors. For example, if we add tests, we should also cover the case in which we receive a set_param or prepare after start, etc. In these situations, I think the best is to return an error to the guest instead of executing the actual command.

What? That our device doesn't support the transition?

Yes, exactly. I think I should roll this change back and bring back the transition errors, and only change it if we come across a problem in the future and open an issue here. This is the proper approach.


Adding myself to contributor's page

can you add a paragraph about yourself, what you'd like to to work on and stuff like that..
thanks

Taking this PR out of the pending list.  Please fix the bugs/resolve conflicts and raise the new PR or move to the Milestone 2. Thank you.


.NET Core?

That was an idea of a good developer from RaGEZONE Martinmine, what you think @TheDoct0r11 , we will change to .NET Core, after refactorement?

Just had to read up on .Net Core. Basically that looks like a good idea.
But we will have to check weather the libraries we're using are supporting .NET Core...
Also before switching to .NET Core I'd rather  want to do some extensive testing and if someone is motivated enough create some unit tests (NUnit)
Keeping this open as a reminder.

@sant0ro Are you ideas for i download all habbo furniture ? (Le contain of "hof_furni" folder on Habbo.com)

Sory @Anthologique what are you talking about?

I will all furniture off Habbo.com, how i dowload the latest "hof_furni" folder please ?

@Anthologique please stop posting spam. This issue isn't related to furniture. But to .NET Core
Locking conversation.


Add agnostiq to partners

This logo could be used:
Link: https://agnostiq.ai/

Logo has been added to the Partners.js page. Closing.


Feat/material theme

Please read and mark the following check list before creating a pull request (check one with "x"):

[x] I read and followed the CONTRIBUTING.md guide.
[x] I read and followed the New Feature Checklist guide.

Short description of what this resolves:
Using ngx-admin bootstrap admin theme for a college project.

Will this PR be merged into master in the nearby future? Thanks

Are we pending for anything to merger to master branch?


What should be the shape of the icon outside the current position marker?

Please give us your opinion on the shape of the icon.

glyphicon glyphicon-map-marker


skin

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

Error/s in console
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add 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.
I would like to have met skin in osw! but it just won't let me, is this a bug? or is it a work in progress?

The skin button is currently disabled, as per the grey colour, However this is being worked on in the latest updates and is a work in progress


Add Loki ruler config to loki.yml and defaults

This allows to use the ruler setting for Loki.

#1


Allow setting a binary's working directory

Describe the problem you are trying to solve
I have a workspace with multiple packages and binaries. Occasionally I will work on a particular crate but want to run one of the multiple binaries and need to change my current working directory to properly test it.
Describe the solution you'd like
I would like to add an optional configuration to [[bin]], [[example]], [[test]] so that myself and users of my workspace don't need to be in the exact directory required by a particular binary.
https://doc.rust-lang.org/cargo/reference/cargo-targets.html#binaries

If I were to investigate how to implement this, where's the best place to start?

For future folks who might want to do the same thing, there's a different path. Instead of relying on the current working directory it's better practice to load that data from a configured environment variable (this is helpful for deployment in Docker too).
After you've coded your app to read an environment variable for the location of the dataset, create a .cargo/config.toml file at the root of the workspace that defines that variable. This will set things up any time you're working there. Note though that you shouldn't use the env!() macro as that will bake the path into your binary.


How can I use rg in a no live way?

I just wanna use it as in  :Rg of fzf.vim.

You can can provide an initial_filter, so you could create a lua function:
function grep(query)
   snap.run {
     prompt = 'Grep',
     producer = snap.get'producer.ripgrep.vimgrep',
     select = snap.get'select.file'.select,
     multiselect =  snap.get'select.file'.multiselect,
     initial_filter = query
  }
end

And then call it from a command you have registered.

Sorry, I tested it and it does not behave as I asked, is just a live_grep with an initial search term preset.  I was asking for something more like search only once with rg,  fuzzy-search over the list of outputs.
I prefer that kind of search because that way I  can filter over the files' names too.

@leiserfg Ah I see! Sorry for not understanding. While I understand the usecase and think it makes sense, it is probably at the moment out of scope for the project as it doesn't so much pertain to the live searching paradigm of the plugin.
However, I actually use the same approach as you sometimes, and I can show you how I do it.
While this is fennel not lua it should be easy to follow. The following external-grep function prompts for input:
https://github.com/camspiers/dotfiles/blob/4a8ec3a0ebd17d3f79e8bdb27c74464bc961215a/files/.config/nvim/fnl/mappings.fnl#L28-L33
I use which key to bind a mapping here:
https://github.com/camspiers/dotfiles/blob/4a8ec3a0ebd17d3f79e8bdb27c74464bc961215a/files/.config/nvim/fnl/mappings.fnl#L45
And all importantly I set the grepprg for vim in general here such the the inbuilt grep command uses ripgrep:
https://github.com/camspiers/dotfiles/blob/4a8ec3a0ebd17d3f79e8bdb27c74464bc961215a/files/.config/nvim/fnl/options.fnl#L41-L42

I ended up with chaining  producer-vimgrep and fzy, and it seems to work as I wanted, but still have to test how does it perform in a long codebase
  (snap.register.map
    [:n]
    [:<Leader>m]
    (fn []
      (snap.run {:prompt :Grep
                 :initial_filter (vim.fn.input "Grep> ")
                 :producer (fzy (limit 1000 producer-vimgrep))
                 :select select-vimgrep.select
                 :multiselect select-vimgrep.multiselect
                 :views [preview-vimgrep]})))

https://github.com/camspiers/snap/commit/dd9e742b9c095a8a615c26b949b7aab00bb87359
I think you will like this feature.
You can now run:
  (snap.register.map
    [:n]
    [:<Leader>ff]
    (fn []
      (snap.run {:prompt :Grep
                 :producer (limit 50000 producer-vimgrep)
                 :next {:consumer fzf :config {:prompt :FZF}}
                 :select select-vimgrep.select
                 :multiselect select-vimgrep.multiselect
                 :views [preview-vimgrep]})))

And you can change arbitrary config for the next consumer. Then next consumer get provided the current results list from the results view.


Testing: Site testing for MackTrucks Museum (QA & UAT)

Testing in full all pages/sections of the site. This issue is for both QA testing and UAT.

Content migrated and site is live


How to index a local folder?

I'd like to index a local folder, ideally without having to init a Git repo in it. Does Zoekt support this? I haven't found a way to do it.

check out the zoekt-index command.


Launchkey mini MK3 support

Are there specific reasons why launchkey mini mk3 has this long control sequence?  My understanding is that one of the messages is suddicient, namely [159, 12, 127] which turns DAW mode on (there are more details here: https://github.com/giezu/LaunchkeyMiniMK3) .
Also, you can switch between session and drum mode, and drum mode provides 16 more pads on channel 9 that can be controlled. Not sure if there is a need for this, but as a proof of principle I was able to make it work. Basically we can just add two more pad rows below the current ones in UI.

Wow! I wish I found this when I was first writing SC. I believe the control sequence is what it is because when I first figured out that it may be a necessary feature, it was on another controller which exchanged 100+ messages with Ableton. From there I pared it down to what seemed like the minimum messages required to gain control instead of Ableton.
If a single message works, a single message should absolutely be used. Would be great if this can be simplified for all controllers, but will require some testing. Iirc, the current control sequence is the same for all controllers currently.
Re session mode/drum mode, I would love to support this. Many controllers offer different modes, and it makes sense that there would be sort of a multi-input functionality. Same goes for the piano keys re. transposition. Main question to me is, how to abstract it into a scalable pattern so that it's not a huge pain to hard-code each controller's alternate functionalities.


in ancient pack, stop choosing shrinking storages when we exceed the threhold

Problem
when ancient packing runs, especially at startup, it can encounter a large number or large storages that need to be shrunk. Those needing to be shrunk storages could consume the maximum number of packed storages we want to create. This would cause us to fail to make progress on overall reduction in # of storages.
Summary of Changes
Don't include the last 'should shrink' storage that would cause us to exceed the ratio of shrinkable storages to force include.
Fixes #

going to do this another way


Design: Update icons to improve usability and address alignment issues

Type
enhancement
Detail
Update download and share icons based on user feedback
Provide a spec for use of icon with label
Recut the icon svg files to make it consistent size

Final improved set of icons attached. This covers the main stylistic set associated with the site but does not cover every single icon we currently have (covers most however). There are still a few edge cases where icons are used that fall outside of this set, that is mainly due to their size within the page design. The set attached is based on a unified size and style.
This clean up was done in order to ensure that these icons are utilised in a consistent way across the site.
The icons contained here should always be used in their 100% and only that size. Never reduce their size or grow it. This way the icons across the site are a consistent language that the user can learn and use
They can however be used in any colour that the design calls for.

Working AI file:
WC_Icons_2017.ai.zip
Expanded AI file:
WC_Icons_2017_Exp.ai.zip
Exported SVGs:
Icons_2.zip

Would you also put together few examples of links/buttons where we display icon and text label? e.g. Sort, Save, Download, etc.

Some basic guidelines for icon use:

Updated files:
Working AI file:
WC_Icons_2017.ai.zip
Expanded AI file:
WC_Icons_2017_Exp.ai.zip
Exported SVGs:
Icons_2.zip

Once new icons get created. I will continue to add them to this thread.

Added 3 CC icons:
@davidpmccormick
SVGs:
00_New 01.zip
Updated design files:
Archive.zip

Added 2 new icons:
@davidpmccormick
SVGs:
00_New 02.zip
Design files:
Archive.zip

Four new icons added
Rotate left, rotate right, rotate 360, add to clipboard
SVGs:
00_New 03.zip
AI:
WC_Icons_2017_02.ai.zip

New AD icon:
WC_AD_icon.ai.zip
WC_Icons__AD.svg.zip

Collection of icon SVGs that should be uploaded to Cardigan
@jamesgorrie
00_Upload SVGs.zip

Latest icon update. Can someone just upload the SVGs to cardigan so we have them in the future @davidpmccormick @jamesgorrie @gestchild  Few might be there already.

SVGs:
00_New 04.zip
Working AI file:
Uploading WC_Icons_2017_02.ai.zip…


Connections closed by remote host

No errors in the upload but looks odd
{
"_index": "error-report-entries-fcc561a",
"_type": "log-entry",
"_id": "758",
"_score": null,
"_source": {
"@timestamp": "2015-07-18T14:03:48.097+01:00",
"level": "WARN",
"thread_name": "NioClientManager",
"logger_name": "org.bitcoinj.net.ConnectionHandler",
"message": "Error handling SelectionKey: An existing connection was forcibly closed by the remote host",
"level_value": 30000,
"@version": 1

Bumped into 0.1.3 since it is similar to the other connection problems Bitcoinj is reporting.

Looking at the log more carefully the user synced ok so these stack traces aren't a problem.


podvm-mkosi build fails

When building the podvm-mkosi, the Makefile takes in a AA_KBC value for various build steps, but in the AA build stage, there is a ATTESTER value available in the sub Makefile for only building some attesters, yet in setting that value it isn't honoured during the podvm-mksoi. ref #1576
make ATTESTER=snp-attester

Fails with the same error from https://github.com/confidential-containers/cloud-api-adaptor/pull/1576#issuecomment-1810016224

This is outdated, so closing


Add install-strip option.

I'd like to add this option because not all people want to strip the symbols by default and I don't understand the procedure that one enables debug first then strip the symbols during install...

So, I've decided that since this is more in line with what other packages do, JWM should probably do it this way too.

Thx.
:trollface:


Fix missing module declaration

Closes #6257
(found during writing #4986.)

Jenkins, test this please.

Jenkins CI test (for commit a2f824de42a32e8c86dc19f8b962d7ef9094388d, target branch master) succeeded!


"Error while emitting" on wrong mock usage

ScalaMock Version (e.g. 3.5.0)
5.2.0
Scala Version (e.g. 2.12)
2.13.12
Runtime (JVM or JS)
JVM
Reproducible Test Case
File for scala-cli:
//> using scala 2.13.12
//> using dep org.scalamock::scalamock:5.2.0
//> using dep org.scalatest::scalatest:3.2.17
//> using options -Vprint:typer

trait A1
trait A2

trait A {
  def f(x: Int)(implicit a1: A1, a2: A2 = new A2 {})
}

import org.scalamock.scalatest.MockFactory

trait Test extends MockFactory {
  val aMock = mock[A]
  (aMock.f(_: Int)(_: A1)).expects(*, *) // here is a bug, A2 should be passed too
}

Please describe the expected behavior of the issue
Compilation fails with message, that A2 should be passed too.
Please provide a description of what actually happens
Compilation fails with unhelpful message:
scalac: Error while emitting Main.scala
value x$1

Original issue: https://github.com/scala/bug/issues/12924

Works with scala 3


updated sabnzbd (1.0.0)

new build from sabnzbd for osx, see https://forums.sabnzbd.org/viewtopic.php?f=8&t=20459

Thank you for the contribution. It was merged directly as 6f45f6264548589a87c0e831dbafb44cb365bfff to keep commit history cleaner. Your contribution is still credited to you.


Arm MacOS Binary does not work

When following the Laravel guide Local Installation
I get the following errors when trying to run the binary on a MacBook Pro with a M1 Pro chip.
➜ ./frankenphp-mac-arm64 run
zsh: permission denied: ./frankenphp-mac-arm64
➜  sudo ./frankenphp-mac-arm64 run
sudo: ./frankenphp-mac-arm64: command not found
➜  chmod +x frankenphp-mac-arm64
➜  ./frankenphp-mac-arm64 run
zsh: bad CPU type in executable: ./frankenphp-mac-arm64

Could you try with RC2 to see if something changed recently? It used to work (I use a Mac M1 myself).

Could you try with RC2 to see if something changed recently? It used to work (I use a Mac M1 myself).

Just tried RC2 same issue.

I investigated a bit and indeed we have a problem with the CircleCI pipeline. The produced binary is not an ARM.
file ./frankenphp-mac-arm64
./frankenphp-mac-arm64: Mach-O 64-bit executable x86_64

On my computer, this works anyway, but maybe because I have Rosetta 2 installed.
We need to fix the CircleCI pipeline.


Usability update for the haskell-gym client

This includes a lot of minor fixes to smooth over rough edges of using the current haskell-gym client. Changes include:

Changing returned datatypes to opaque json objects. This helps with my need of building out multiple gym environments in Sentenai/reinforce without having to push to this repo (I'll be contributing back here when possible, though).
an update to GHC8.0.2 (lts-8.4) which removes the reader requirement from servant-client.
use of servant's :<|> combinator to reduce code duplication (unfortunately, it only seems to work on one nesting)
more instances for data types
a single-module export for the library

ping @catherio, @Lucsanszky

Hey @stites,
Sorry for not responding. I remember the issue with the :<|> combinator regarding more than one nesting and I opted to exclude this trick all together (don't ask why).
Anyways, looks good to me!


Update tck tests from extended to sanity

Signed-off-by: Sophia Guo<EMAIL_ADDRESS>

@sophia-guo thanks!  will you switch the other external tests over to extended in a separate PR (in this swap that we are doing)?

@smlambert did you mean all others should be switched to extended?  Just to confirm.

Yes, I was thinking to do that (at least shift some the others to extended).  Mostly this is an exercise in measuring how much available machine time we have nightly.
My suggestion would be:
functional -> special
system -> special
the 3 mp-tck targets -> sanity
scala -> extended
elasticsearch -> extended
derby -> extended
lucene-solr -> extended
jenkins -> extended
wildfly -> extended
tomcat -> extended
What do you think?

@smlambert updated. The jobs under test_external will also be updated.


meta-security-framework dbus: avoid hard dependency on D-Bus 1.8.10

OE-core master has updated D-Bus to version 1.8.18. This breaks
compilation when our layer is enabled, because each .bbappend
file must have a matching .bb file.
Our .bbappend file works regardless of the base dbus recipe's version,
so we can use a wildcard instead of a specific version to make our
layer compatible with both OE-core Fido and master at the same time.
The patched dbus-cynara remains at version 1.8.10 for now. This is not
a problem (libdbus 1.8.18 is compatible with dbus-daemon 1.8.10) but
probably dbus-cynara should be updated to 1.8.18 to take advantage of
upstream fixes.
Signed-off-by: Patrick Ohly<EMAIL_ADDRESS>

:+1: looks good for me.


Possible Bug in Hash

in ./example.cr:1: instantiating 'Hash(K, V):Class#new(Int32)'

    letters = Hash.new(0)
                   ^~~

instantiating 'new(Int32, Hash::StandardComparator:Module)'

in /opt/crystal/src/hash.cr:44: instantiating 'new(Hash::StandardComparator:Module)'

    new(comp) { default_value }
    ^~~

in /opt/crystal/src/hash.cr:39: undefined constant K

  def self.new(comp = StandardComparator, &block : (Hash(K, V), K -> V))

Ah, I think this will be impossible to solve because of the recursiveness of the issue. We need to document this. You can do this:
letters = Hash(String, Int32).new(0)

Well, mmm, not recursiveness (there was a similar issue with generic types recently), but if you just give the value there's no way for the compiler to infer the key type. So the error it gives you is correct ("I don't know the key type K").

Maybe when the undefined constant is one of the type parameters the compiler can give a different error message?

@waj Oh, that's a great idea! I didn't know how to solve this. It also happens when you do:
Array.new # Error: undefined constant T

Ideas of what the error message should be? You can use the two examples above.

Maybe just "Couldn't infer generic type argument T/K, please specify it."?

"Could not infer the type parameter V for the class Hash(K, V). Please provide it explicitly"
Now I remember the idea about adding an unique code to each compile error so we can have a dedicated page for each with more clear explanation and examples.

Can there be more specific messages depending on the type of object? If so then,
"Could not infer type of hash key. Use `Hash(<key type>, <value type>).new()`."

Something like that. And like wise for Array.
"Could not infer type of array elements. Use `Array(<type>).new()`."

Providing the example code really helps make it clear.


RUNTIME ERROR: Field does not exist: weave_net - CI Job Failed to Deploy Kubernetes Cluster

new commit broke the nightly CI.
https://github.com/kubernetes/kubernetes-anywhere/commit/78df3b1501745b10df2757d4f6d6fa08022b7ac4
We will need to add extra config property in the deployment script.
make do WHAT=deploy-cluster
make[1]: Entering directory '/opt/kubernetes-anywhere'
( cd "phase1/$(jq -r '.phase1.cloud_provider' .config.json)"; ./do deploy-cluster )
RUNTIME ERROR: Field does not exist: weave_net
	../../phase3/all.jsonnet:2:42-58	function <if_enabled>
	../../phase3/all.jsonnet:10:16-83	thunk <array_element>
	std.jsonnet:631:46-53	thunk <b>
	../../phase3/all.jsonnet:3:50	function <func>
	std.jsonnet:631:32-54	thunk <running>
	std.jsonnet:631:17-64	function <aux>
	std.jsonnet:631:17-64	function <aux>
	std.jsonnet:632:9-31	function <anonymous>
	../../phase3/all.jsonnet:3:21-60	function <join>
	../../phase3/all.jsonnet:(5:14)-(11:15)	thunk <manifest>
	...
	vSphere.jsonnet:132:21-133	thunk <array_element>
	vSphere.jsonnet:(130:27)-(135:19)	object <anonymous>
	vSphere.jsonnet:(129:32)-(136:17)	object <anonymous>
	vSphere.jsonnet:(128:27)-(137:12)	thunk <array_element>
	vSphere.jsonnet:(128:26)-(141:13)	object <anonymous>
	vSphere.jsonnet:(121:17)-(142:9)	object <anonymous>
	std.jsonnet:(943:13)-(952:13)	object <anonymous>
	std.jsonnet:(943:13)-(952:13)	object <anonymous>
	all.jsonnet:3:49-79	object <anonymous>
	During manifestation
Makefile:63: recipe for target 'do' failed

Full Log: http://cna-storage-jenkins.eng.vmware.com:8080/job/k8s-release-1.5-validation/38/consoleText
@BaluDontu @tusharnt @abrarshivani

We should document regarding this weave_net add-on, if we choose n we do not have any issue.
but when user choose to install this addon, make deploy is failing with following message.
Validation: Expected 5 healthy nodes; found 5. (10s elapsed)
Validation: Success!
KUBECONFIG="$(pwd)/phase1/$(jq -r '.phase1.cloud_provider' .config.json)/.tmp/kubeconfig.json" ./phase3/do deploy
+ case "${1:-}" in
+ deploy
+ gen
+ cd ./phase3
+ mkdir -p .tmp/
+ jsonnet --multi .tmp/ --tla-code-file cfg=../.config.json all.jsonnet
.tmp/dashboard-deployment.json
.tmp/dashboard-svc.json
.tmp/heapster-deployment.json
.tmp/heapster-svc.json
.tmp/kube-dns-deployment.json
.tmp/kube-dns-svc.json
.tmp/kube-proxy.json
.tmp/weave-net-cluster-role-binding.json
.tmp/weave-net-cluster-role.json
.tmp/weave-net-daemon-set.json
.tmp/weave-net-service-account.json
+ mkdir -p /tmp/kubectl/
+ HOME=/tmp/kubectl
+ kubectl apply -f ./.tmp/
deployment "kubernetes-dashboard" created
service "kubernetes-dashboard" created
deployment "heapster-v1.2.0" created
service "heapster" created
replicationcontroller "kube-dns-v19" created
service "kube-dns" created
daemonset "kube-proxy" created
serviceaccount "weave-net" created
unable to decode ".tmp/weave-net-cluster-role-binding.json": no kind "ClusterRoleBinding" is registered for version "rbac.authorization.k8s.io/v1beta1"
unable to decode ".tmp/weave-net-cluster-role.json": no kind "ClusterRole" is registered for version "rbac.authorization.k8s.io/v1beta1"
error validating ".tmp/weave-net-daemon-set.json": error validating data: found invalid field tolerations for v1.PodSpec; if you choose to ignore these errors, turn validation off with --validate=false
make: *** [addons] Error 1
Makefile:57: recipe for target 'addons' failed

User can ignore this error as Cluster remains healthy.

Pending action item - update the documentation to specify 'n' or 'N' for weave_net add-on.

Updated phase1/vsphere/README.md : kubernetes/kubernetes-anywhere#388
Asking user to Make sure to choose 'N' for weave-net addon.

Documentation changes Merged.


User is able to create 2 Workspaces - Reported by: @Santhosh-Sellavel

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Go to app
Create new workspace from "+' in LHN
Try to create a 2nd workspace from "+" in LHN
Navigate to 1st workspace
On details screen, click menu to create a new workspace

Expected Result:
Experience should be consistent across pages. If we allow creating more than one workspace then we should allow creating a workspace from the Global create menu also.
Actual Result:
Able to create more than one workspace from more options inside any workspace view. By clicking on New workspace in more options.
Workaround:
unknown
Platform:

Where is this issue occurring?

Web
iOS
Android
Desktop App
Mobile Web

Version Number: 1.1.21-0
Reproducible in staging?: Y
Reproducible in production?: y
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

Expensify/Expensify Issue URL:
Issue reported by: @Santhosh-Sellavel
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1639671862329700
View all open jobs on GitHub

Triggered auto assignment to @cead22 (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

Triggered auto assignment to @luacmartins (Demolition), see https://stackoverflow.com/c/expensify/questions/8099 for more details.

I was able to reproduce, and I think we could have external contributors remove the button when it shouldn't be there, but I think the fact that we were able to create multiple workspaces means we should add a check on the backend preventing this, which can only be done by our internal team

Put up a PR for the frontend part. Gonna look into the backend solution now.

@luacmartins Can you help me get reporting bonus for this, thanks!

Triggered auto assignment to @trjExpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@Santhosh-Sellavel yes, thanks for bringing this to my attention!
@trjExpensify This issue is being fixed internally, however @Santhosh-Sellavel should be paid the reporting bonus. Could you help with the payment please?

Actually, I talked to @kevinksullivan about this and confirmed that this is NOT a bug.
Paraphrasing Kevin:

We initially have New workspace in the global create menu because that's a good way for admins to get set up. We then remove it from the global create because the case for multi-workspaces is rare among free plan users. However, that does not mean that we restrict Workspace creation to one per account and creating a Workspace via the three dot menu is intended.

I acted too soon and should have confirmed that this is indeed a bug first. I'll close the internal PR and put up a revert for the changes deployed to NewDot.

Issue is still reproducible. PR #6827 is failing.

:wave: Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

Identify the pull request that introduced this issue and revert it.
Find someone who can quickly fix the issue.
Fix the issue yourself.

Current assignee @luacmartins is eligible for the Engineering assigner, not assigning anyone new.

@kavimuru PR https://github.com/Expensify/App/pull/6827 was reverted and we SHOULD see the New workspace button. Closing this issue.


Unsupported operation given in Arch Linux installation documentation.

The official documentation describes using -Sy when upgrading on Arch Linux but this kind of operation is not supported for that distrubtion.
Please consider removing the entire "Upgrade" section as it's pretty unnecessary.  Even if this was changed to the correct -Syu innvocation the options --needed and crystal would be redundant.  Essentially you'd end up with pacman -Syu which is not what you mean.  Other distributions using pacman (such as msys2) do support partial upgrades. (afaik)

+1. This bites people sometimes. A good example right now of this would be people (partially) upgrading just the ncurses library, usually rendering the system unbootable.


Helm dependency that shares the same chart name dont get picked up

👋 Thanks for creating this project, trying to use it but ran into a minor bug when using dependencies;
If the chart name is the same as the dependency name, helm-schema fails to pick up the dependency;
example if this is my Chart.yaml:
apiVersion: v2
appVersion: 0.1.0
description: A wrapper chart for node-problem-detector
name: node-problem-detector
version: 0.1.0
dependencies:
- name: node-problem-detector
  repository: https://charts.deliveryhero.io
  version: 2.3.11

First I get the dependency
helm dependency build
Update Complete. ⎈Happy Helming!⎈
Saving 1 charts
Downloading node-problem-detector from repo https://charts.deliveryhero.io
Deleting outdated charts

Then untar the helm chart:
cd charts
tar -xzvf node-problem-detector-2.3.11.tgz
cd ..

then running helm-schema gives me the following:
helm-schema -r  --skip-auto-generation="required" --log-level debug
WARN[2024-05-10T15:27:23-07:00] Could not sort results: circular or missing dependency found: map[node-problem-detector:Set{node-problem-detector}]
DEBU[2024-05-10T15:27:23-07:00] Processing result for chart: node-problem-detector (Chart.yaml)
WARN[2024-05-10T15:27:23-07:00] Dependency (node-problem-detector->node-problem-detector) specified but no schema found. If you want to create jsonschemas for external dependencies, you need to run helm dependency build & untar the charts.

If I rename my chart or the dependency, seems to work ok;

I gave it some tries, but I'm not able to fix this. Please use different names for the charts.

The problem is in the TopSort function, if you want to give it a try.


Severely unhelpful

As others have asked for over a year (one person two years ago!) this and other pages have zero helpful documentation to them. Where is the full schema for reference? How do we know what we do and don't have to work with? Will this ever be supported?  Is there a secret documentation that only the big customers have access to?

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

ID: 90db6e4c-6240-fe2e-3043-0a7d186b9ca7
Version Independent ID: a62ec500-3330-e28a-8019-118a3b9e261f
Content: Service Endpoints - Azure DevOps
Content Source: docs/extend/develop/service-endpoints.md
Product: devops
Technology: devops-ecosystem
GitHub Login: @chcomley
Microsoft Alias: chcomley

Hi @vanpyrzericj,
Thank you for calling these issues to our attention. We understand how frustrating out-of-date or incomplete documentation; to fix these issues, we're working on a complete overhaul of this area.  We're in the beginning phases of that work, so I don't have an ETA for when the updates will be published. Once we have an ETA, I'll update this issue.
I understand that forums are not a good substitute for thorough documentation, but while we work on updating this content, these resources might be able to help:

Azure DevOps on Stack Overflow
Azure DevOps Support Bot

If we come across additional resources that might be helpful, I'll post them here.
Regards,
Mike

Here's some additional documentation that you might find helpful:

https://developer.microsoft.com/azure-devops/develop/extensions

Hi @vanpyrzericj , I know outdated documentation can be very hard on developers. I can understand the pain as a fellow developer.
I want to help you. Let me know what you are looking for.
I assumed you need the docs on writing the service endpoint contributions. I am not sure if you have gone through this doc or not but give the below one a try:
https://github.com/microsoft/azure-pipelines-extensions/blob/master/docs/authoring/endpoints/serviceEndpoints.md
If this doesn't answer your questions, and while the docs team is working on this, let me know if you have more questions. I will try my best to answer them.

We haven't heard back from you, @vanpyrzericj, so I'm assuming that the additional information given on June 5, 2020 sufficed. So, this issue will be closed. For more information, please check the Microsoft Product Lifecycle for information about how this product, service, technology, or API is supported. Also, see the Formula Design System, REST API reference, Extension samples, and resources in the Developer Community. Please don't hesitate to @mention me if you have any further questions or feedback. Thank you!


Fix old tests for Windows

Fixes the issue with the old tests mentioned in #316. This is mostly a temporary fix until we migrate all tests to tests_new.
Regarding the new tests, there may be a possibility to move the
original_backend = qibo.get_backend()
qibo.set_backend(backend)
...
qibo.set_backend(original_backend)

mechanism to conftest.py and avoid all the code repetition, however I am not yet sure if this could work.

Thanks, looks good. I would suggest to disable the parallel tests for windows or raise an exception when importing the multiprocessing module in parallel.py.


Minor text updates

A few minor touch-ups to this passage.

@guardrex,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by .NET Foundation. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot

@guardrex Thank you for fixing this up!


Allow address ranges to be marked as 'no auto-allocate'

Description
We are migrating a large cluster of servers over many different networks/vlans to ONE. We don't want sysadmins to accidentally create a new server on ONE with an IP address of an existing server during this time. It would be nice to be able to set up most vlans with IPv4 address ranges but have a tickbox to say 'do not auto-allocate addresses from this range' so that allocation can only happen by someone specifying the IP address when network interface is added to the VM creation.
We could potentially do this using reservations but would have to delete each reservation and then create the vm with that IP address which seems not very user-friendly.

Progress Status

[ ] Branch created
[ ] Code committed to development branch
[ ] Testing - QA
[ ] Documentation
[ ] Release notes - resolved issues, compatibility, known issues
[ ] Code committed to upstream release/hotfix branches
[ ] Documentation committed to upstream release/hotfix branches

Would any of the following cover your use case:

hold the IPs of the AR and release one before launching  a VM with an IP in that range
for regular VMs, set the AR ID to the other ARs (the ones that allow for auto-allocation) so no IP is acquired automatically from the 'no auto allocate' AR

we want to keep the code as simple as possible

yeah we ended up having to write a script to create ip ranges and mark them all as held. it's still pretty annoying to have to do this though

ok, i'm adding this to the backlog, thanks for the feedback


Feature/pybind11 fleet update handle

Added Some C++ Interfaces to Python
Exposed rmf_fleet_adapter::agv::FleetUpdateHandle::close_lanes and rmf_fleet_adapter::agv::FleetUpdateHandle::open_lanes.
This might be useful for those who want to handle lane closures in their python-based fleet adapters.

Done.  Thanks.


Pull Docker File For Container and Display When Requested

Adding this as an improvement suggestion (if I can get cycles to work on it, I'll update the ticket, else have at it :-) ): add an icon or link to each container that when clicked on will pull the docker file for the container and display it. For extra credit, color coding it per its syntax (as suggested by @Elesant) would make it really helpful. This would give the developer a LOT more insight into what the container was being setup to do and help them choose between similar containers.

Thanks for the idea :)

One challenge on getting this to work consistently is accessing the actual Dockerfile for the containers. For some of them, it is easy to find as there is only one... For example: https://registry.hub.docker.com/u/abh1nav/cassandra/dockerfile/
But, there appear to be many apps that have multiple versions available (for example: https://registry.hub.docker.com//redis/ or https://registry.hub.docker.com//mysql/). In that case, it is not at all obvious how to get the Dockerfile (unless we start scraping and processing the hub pages - which does not seem ideal).
This also surfaces a missing feature - being able to select a version other than latest to install...
Does the Docker team give you any insight into how to surface the Docker file for projects with multiple versions?


m[c] is nil!

I forgot to add code to check when a new memory cell is accessed to initialize it to 0.
Fix by adding such to a __index metamethod on the memory.

Oh yea, I fixed that like right away earlier today. Whoops.


Create consistent position identifiers between us_cia_world_leaders and us_cia_world_factbook

This smells a bit but it gets the job done. I guess adding the key_prefix in there in the first place is the bug, but backing out of that is a bit difficult.

Very leaky :(
On Fri, 29 Sep 2023, 07:31 Friedrich Lindenberg, @.***>
wrote:

Merged #414 https://github.com/opensanctions/opensanctions/pull/414
into main.
—
Reply to this email directly, view it on GitHub
https://github.com/opensanctions/opensanctions/pull/414#event-10506998846,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AABZSGPVKFGDJG3HIDNN6KDX4ZMLJANCNFSM6AAAAAA5K3PNVQ
.
You are receiving this because you authored the thread.Message ID:
@.***>


Fix not being able to type in code cell after switching from text (#1…

…7590)

Fix not being able to type in code cell after switching from text

This PR fixes #17579
Note: this hasn't been approved for release yet, opportunistically opening this if/when it's approved.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 1 (0.0%)  changed or added relevant line in 1 file are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage increased (+0.002%) to 41.509%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/sql/workbench/contrib/notebook/browser/cellViews/textCell.component.ts
0
1
0.0%

Files with Coverage Reduction
New Missed Lines
%

src/sql/workbench/services/connection/browser/connectionDialogWidget.ts
1
75.1%

Totals

Change from base Build<PHONE_NUMBER>:
0.002%

Covered Lines:
26840

Relevant Lines:
58674

💛  - Coveralls


Remove workarounds in HealthChecksUI sample

Removes workarounds in the HealthChecksUI sample that should no longer be required now that dotnet/aspire#3786 and dotnet/aspire#3749 are fixed.
~NOTE: I'm currently deploying the sample via azd to ensure it still works. Will update here to confirm outcome once done.~
~OK so seems there's a regression from this change. I'll investigate:~

LOL it came good after a few seconds 😄

azd up output:
Packaging services (azd package)

Provisioning Azure resources (azd provision)
Provisioning Azure resources can take some time.

Subscription: ****
Location: ****

  You can view detailed progress in the Azure Portal:
  *****

  (✓) Done: Container Registry: acrrfuiqiqdyuxji (9.938s)
  (✓) Done: Log Analytics workspace: law-rfuiqiqdyuxji (18.178s)
  (✓) Done: Container Apps Environment: cae-rfuiqiqdyuxji (1m36.401s)

Deploying services (azd deploy)

  (✓) Done: Deploying service apiservice
  - Endpoint: https://apiservice.internal.delightfulbay-32d021f3.westus.azurecontainerapps.io/

  (✓) Done: Deploying service cache
  - Endpoint: https://cache.internal.delightfulbay-32d021f3.westus.azurecontainerapps.io/

  (✓) Done: Deploying service healthchecksui
  - Endpoint: https://healthchecksui.delightfulbay-32d021f3.westus.azurecontainerapps.io/

  (✓) Done: Deploying service webfrontend
  - Endpoint: https://webfrontend.delightfulbay-32d021f3.westus.azurecontainerapps.io/

  Aspire Dashboard: https://aspire-dashboard.ext.delightfulbay-32d021f3.westus.azurecontainerapps.io

SUCCESS: Your up workflow to provision and deploy to Azure completed in 5 minutes 4 seconds.

Out of curiosity, if we wouldn't have ingested 9.0 GA yet (with the fixes), and we tried doing these changes, would a test(s) have failed as part of CI in this PR? If not, should it and should we add a test for it?

Not for this specific change, as it relates to publishing. We don't have any tests that verify the output of publish currently. The cheapest thing we could do is add tests to verify the manifests generated are what's expected. Of course any change that impacts the manifest would then require the "expected state" manifest to be updated. Logged #572 to track that idea.

Looks good!

I don't think you need this branch https://github.com/dotnet/aspire-samples/blob/4969bf28d763eabff246a1771fb4d6cc6cbb1f2e/samples/HealthChecksUI/HealthChecksUI.AppHost/HealthChecksUIResource.cs#L158-L160


(SOLUTION) Session restore on windows still failing with build 1.99.0 on latest win10 preview

Windows 10 insider preview 10074 / Atom 1.99.0
Editor file saved in storage dir is being saved with a long string of hex in the filename (editor-ac42cf437b339099db1a29.......) and not being read by atom on startup.
Each startup makes a new file.
Renaming one file to simply "editor" allows atom to open and restore my previous session.
Hope this helps.

cc @maxbrunsfeld

@jonseppanen After quitting Atom with one or more editor windows open, what is the contents of the application.json file in your storage directory?

Application.json shows:
[{"initialPaths":["C:\Users\xxxxxxxx\OneDrive\Dev\ww\public_html\css"]}]
This opens up when I open atom.
Strangely, after having multiple windows open it seems to be working now as it should - previous session is now always restored.
Is anyone else seeing this on this configuration?

@jonseppanen so is everything working for you?

@jonseppanen Let us know if you can still reproduce this problem in the latest version of Atom (0.201.0) and in safe mode -- closing this for now.


How to uninstall PX4 Windows Toolchain

I want to install the old version of PX4.Windows.Cygwin.Toolchain.0.8, but it says that the new version has been installed. How do I uninstall the new version?

I want to use the PSP Toolbox ，as in the https://uk.mathworks.com/help/supportpkg/px4/ug/setup-cygwin-toolchain.html, so I need  V0.8

@mengchaoheng You uninstall in the same way as any other windows program - start bar > Add or remove programs . Then select PX4 toolchain from the list.


Add AzureChatOpenAI and ChatOpenAI cross compatibility

Fixes https://github.com/hwchase17/langchain/issues/6238
Re-initializes the openai environment with the correct api_type, api_base, and api_version, as passed in by the user.
Who can review?
@hwchase17

we have moved to passing in the parameters when calling - previously, modifying the openai package made it not possible to have two different openai related models initialized at same time
im not following how the current wrapper is broken

Yeah, this is my fault, my image wasn't pulling the latest packages (despite having the latest langchain listed in the requirements). The updated behavior fixes this


Make tools/perf.sh executable

JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély<EMAIL_ADDRESS>

Looks good to me

Looks good to me.


--epic-fail/-f returns 0 for FC078

Looks like epic-fail ignores FC078:
$ foodcritic -f any .
Checking 1 files
x
FC078: Ensure cookbook shared under an OSI-approved open source license: ./metadata.rb:1
$ $?
-bash: 0: command not found

But if you break some more rules:
$ foodcritic -f any .
Checking 1 files
x
FC066: Ensure chef_version is set in metadata: ./metadata.rb:1
FC067: Ensure at least one platform supported in metadata: ./metadata.rb:1
FC078: Ensure cookbook shared under an OSI-approved open source license: ./metadata.rb:1
$ $?
-bash: 3: command not found

$ foodcritic --version
foodcritic 14.0.0

Right now anything with the ~opensource gets ignored there. It was mostly to deal with constant complaints about FC078 failing for people.


[Snyk] Security upgrade setuptools from 40.5.0 to 70.0.0

This PR was automatically created by Snyk using the credentials of a real user.![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)
Snyk has created this PR to fix 1 vulnerabilities in the pip dependencies of this project.
Snyk changed the following file(s):

requirements-dev.txt

⚠ Warning
```
flake8 5.0.4 has requirement pycodestyle<2.10.0,>=2.9.0, but you have pycodestyle 2.10.0.
flake8 5.0.4 has requirement importlib-metadata<4.3,>=1.1.0; python_version < "3.8", but you have importlib-metadata 4.13.0.
</details>

---

> [!IMPORTANT]
>
> - Check the changes in this PR to ensure they won't cause issues with your project.
> - Max score is 1000. Note that the real score may have changed since the PR was raised.
> - This PR was automatically created by Snyk using the credentials of a real user.
> - Some vulnerabilities couldn't be fully fixed and so Snyk will still find them when the project is tested again. This may be because the vulnerability existed within more than one direct dependency, but not all of the affected dependencies could be upgraded.

---

**Note:** _You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs._

For more information: <img src="https://api.segment.io/v1/pixel/track?data=eyJ3cml0ZUtleSI6InJyWmxZcEdHY2RyTHZsb0lYd0dUcVg4WkFRTnNCOUEwIiwiYW5vbnltb3VzSWQiOiI4ODU3NWRmOS05YTM1LTQ4OGItYjY4OC1mZDY3YjIyZGQ3YjUiLCJldmVudCI6IlBSIHZpZXdlZCIsInByb3BlcnRpZXMiOnsicHJJZCI6Ijg4NTc1ZGY5LTlhMzUtNDg4Yi1iNjg4LWZkNjdiMjJkZDdiNSJ9fQ==" width="0" height="0"/>
🧐 [View latest project report](https://app.snyk.io/org/personal-bEqse6HVqFQBcaCq3oGg3D/project/2bbff117-5297-4018-b47c-742c78a73703?utm_source=github&utm_medium=referral&page=fix-pr)
📜 [Customise PR templates](https://docs.snyk.io/scan-using-snyk/pull-requests/snyk-fix-pull-or-merge-requests/customize-pr-templates)
🛠 [Adjust project settings](https://app.snyk.io/org/personal-bEqse6HVqFQBcaCq3oGg3D/project/2bbff117-5297-4018-b47c-742c78a73703?utm_source=github&utm_medium=referral&page=fix-pr/settings)
📚 [Read about Snyk's upgrade logic](https://support.snyk.io/hc/en-us/articles/360003891078-Snyk-patches-to-fix-vulnerabilities)

---

**Learn how to fix vulnerabilities with free interactive lessons:**

🦉 [Improper Control of Generation of Code ('Code Injection')](https://learn.snyk.io/lesson/malicious-code-injection/?loc=fix-pr)

[//]: # 'snyk:metadata:{"customTemplate":{"variablesUsed":[],"fieldsUsed":[]},"dependencies":[{"name":"setuptools","from":"40.5.0","to":"70.0.0"}],"env":"prod","issuesToFix":[{"exploit_maturity":"Proof of Concept","id":"SNYK-PYTHON-SETUPTOOLS-7448482","priority_score":768,"priority_score_factors":[{"type":"exploit","label":"Proof of Concept","score":107},{"type":"freshness","label":true,"score":71},{"type":"fixability","label":true,"score":214},{"type":"cvssScore","label":"7.5","score":375},{"type":"scoreVersion","label":"v1","score":1}],"severity":"high","title":"Improper Control of Generation of Code ('Code Injection')"},{"exploit_maturity":"Proof of Concept","id":"SNYK-PYTHON-SETUPTOOLS-7448482","priority_score":768,"priority_score_factors":[{"type":"exploit","label":"Proof of Concept","score":107},{"type":"freshness","label":true,"score":71},{"type":"fixability","label":true,"score":214},{"type":"cvssScore","label":"7.5","score":375},{"type":"scoreVersion","label":"v1","score":1}],"severity":"high","title":"Improper Control of Generation of Code ('Code Injection')"},{"exploit_maturity":"Proof of Concept","id":"SNYK-PYTHON-SETUPTOOLS-7448482","priority_score":768,"priority_score_factors":[{"type":"exploit","label":"Proof of Concept","score":107},{"type":"freshness","label":true,"score":71},{"type":"fixability","label":true,"score":214},{"type":"cvssScore","label":"7.5","score":375},{"type":"scoreVersion","label":"v1","score":1}],"severity":"high","title":"Improper Control of Generation of Code ('Code Injection')"},{"exploit_maturity":"Proof of Concept","id":"SNYK-PYTHON-SETUPTOOLS-7448482","priority_score":768,"priority_score_factors":[{"type":"exploit","label":"Proof of Concept","score":107},{"type":"freshness","label":true,"score":71},{"type":"fixability","label":true,"score":214},{"type":"cvssScore","label":"7.5","score":375},{"type":"scoreVersion","label":"v1","score":1}],"severity":"high","title":"Improper Control of Generation of Code ('Code Injection')"},{"exploit_maturity":"Proof of Concept","id":"SNYK-PYTHON-SETUPTOOLS-7448482","priority_score":768,"priority_score_factors":[{"type":"exploit","label":"Proof of Concept","score":107},{"type":"freshness","label":true,"score":71},{"type":"fixability","label":true,"score":214},{"type":"cvssScore","label":"7.5","score":375},{"type":"scoreVersion","label":"v1","score":1}],"severity":"high","title":"Improper Control of Generation of Code ('Code Injection')"},{"exploit_maturity":"Proof of Concept","id":"SNYK-PYTHON-SETUPTOOLS-7448482","priority_score":768,"priority_score_factors":[{"type":"exploit","label":"Proof of Concept","score":107},{"type":"freshness","label":true,"score":71},{"type":"fixability","label":true,"score":214},{"type":"cvssScore","label":"7.5","score":375},{"type":"scoreVersion","label":"v1","score":1}],"severity":"high","title":"Improper Control of Generation of Code ('Code Injection')"}],"prId":"88575df9-9a35-488b-b688-fd67b22dd7b5","prPublicId":"88575df9-9a35-488b-b688-fd67b22dd7b5","packageManager":"pip","priorityScoreList":[768],"projectPublicId":"2bbff117-5297-4018-b47c-742c78a73703","projectUrl":"https://app.snyk.io/org/personal-bEqse6HVqFQBcaCq3oGg3D/project/2bbff117-5297-4018-b47c-742c78a73703?utm_source=github&utm_medium=referral&page=fix-pr","prType":"fix","templateFieldSources":{"branchName":"default","commitMessage":"default","description":"default","title":"default"},"templateVariants":["updated-fix-title","pr-warning-shown","priorityScore"],"type":"auto","upgrade":[],"vulns":["SNYK-PYTHON-SETUPTOOLS-7448482"],"patch":[],"isBreakingChange":false,"remediationStrategy":"vuln"}'

Already updated


Definations of the sections

Hello Daisy, Awesome work on this repo. may i request one thing can you add formal definition of the sections(generalization, Interpretability etc). So it's easier to understand the sections more.

Hi, thanks for your nice suggestion. I will find a way to add these definitions properly.


Parse additionalFiles in crc-bundle-info.json

Newer crc versions hardcode that a bundle contain an 'oc' binary, which is not
always the case if it's handling an older bundle.
https://github.com/code-ready/snc/pull/380 adds an explicit mention of the
presence of 'oc' in the bundle. This pr is its crc counterpart.
Fixes: Issue #2145
Testing
What is the bottom-line functionality that needs testing? Describe in pseudo-code or in English. Use verifiable statements that tie your changes to existing functionality.

Run crc start with crc 1.17 or older
Run crc start with latest git
Bundle 'crc_libvirt_4.7.2.crcbundle' was requested, but the existing VM is using 'crc_libvirt_4.5.14.crcbundle' should be printed rather than Error loading bundle metadata: oc not found in bundle

https://github.com/code-ready/crc/pull/2174/commits/d7153a8552d3fb77b4ef234891c2bbc7e927c9ae doesn't this  should be part of previous commit?

appveyor failing with following.
time="2021-03-31T20:19:34Z" level=info msg="bundle: &{1.0 snc {2020-10-26T04:48:26+00:00 ./openshift-install v4.6.0\nbuilt from commit ebdbda57fc18d3b73e69f0f2cc499ddfca7e6593\nrelease image registry.svc.ci.openshift.org/origin/release:4.5 git4.1.14-137-g14e7} {4.6.1 crc testing apps-crc.testing id_ecdsa_crc kubeconfig kubeadmin-password } [{[master worker] crc-h66l2-master-0 crc.qcow2    <IP_ADDRESS>}] {[{{crc.qcow2 9 245a0e5acd4f09000a9a5f37d731082ed1cf3fdcad1b5320cbe9b153c9fd82a4} qcow2}] [{{oc 72728632 983f0883a6dffd601afa663d10161bfd8033fd6d45cf587a9cb22e9a681d6047} oc-executable}]} {libvirt} C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\repo258962051\\crc_libvirt_4.6.1 crc_libvirt_4.6.1.crcbundle}"
time="2021-03-31T20:19:34Z" level=info msg="Could not find 'C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\repo258962051\\crc_libvirt_4.6.1\\oc'"
--- FAIL: TestUse (0.05s)
    repository_test.go:33:
        	Error Trace:	repository_test.go:33
        	Error:      	Received unexpected error:
        	            	oc not found in bundle
        	Test:       	TestUse
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0xa92daf]

/lgtm


[BUG]: svelte-heros-v2 increasing  bundle size

Description of the bug
apparently  svelte-heros-v2 adding 50% of my bundle size.
is there a way to reduce this size?

Steps To Reproduce
N/A
Additional Information
N/A

Can you try the latest version?

Using 	"svelte-heros-v2": "0.9.5",

Maybe I need to go back to individual components rather than putting all path in a file.
Can you try v0.7.4 and let me know.

The v0.10 should solve this problem.

I'm sorry, it's a breaking change.

no problem.
Just for your reference, I switched to flowbite-svelte-icons  for the same project, The client icon bundle is 57.63 kB and the server icon bundle size is 226.97 kB  I am OK for this size for convenience for easy of use.

Since Flowbite icon library is increasing in number, I will change it to individual components in the future. It adds extra benefits as well.


Error in material design spec -- easing

There is an error in the Material Design spec.
In the animation section it describes easing curves for material leaving the screen. It mentions an easing in curve and gives parameters for the for this asymmetric curve. However, the graphic is incorrect and show a symmetric curve.

I am sorry if this is the wrong place to report this issue. That page has no contact information and it appears this project may be by a related team.

cc @traviskaufman as he should be able to relay this to the MD spec team.
Closing the issue though as MDL is in no way capable of fixing the specification itself as that is a completely different team and project within Google.
Thank you.

Thank you @Garbee.
Hello @traviskaufman. If Google is accepting feedback somewhere, I have other corrections to submit.

Hey @fulldecent ,
The best way to relay this would be to use the "Site Feedback" link at the bottom of the Side Nav:

The link is present on every page so you could report your issue(s) this way. Hope this helps!


whereKeyExists not working accurately for PFFile

I am performing a query on the User class that checks to see if the user's picture, which is a PFFile, exists: query.whereKeyExists("picture").
This is removing some users without pictures from the results but not all.

Hey @cshah3, let's find the solution for this together...
Few questions:

Are you using parse.com or self hosted Parse Server?
Could your app with network debug tool from this wiki page and paste the output here? (don't need the direct urls, but do need to see the network traffic)
Was there something specific that changed or happened when this stopped working or it was like this from the start?

We are using parse.com.
Here is the output from the network debug tool:

[PFNetworkNotificationURLRequestUserInfoKey: <NSMutableURLRequest: 0x14fc2cd0> { URL: https://api.parse.com/1/classes/_User }] [PFNetworkNotificationURLResponseUserInfoKey: <NSHTTPURLResponse: 0x1609a520> { URL: https://api.parse.com/1/classes/_User } { status code: 200, headers {     "Access-Control-Allow-Methods" = "*";     "Access-Control-Allow-Origin" = "*";     Connection = "keep-alive";     "Content-Encoding" = gzip;     "Content-Length" = 20790;     "Content-Type" = "application/json; charset=utf-8";     Date = "Mon, 07 Mar 2016 03:35:30 GMT";     Server = "nginx/1.6.0";     "X-Parse-Platform" = G1;     "X-Runtime" = "0.102742"; } }, PFNetworkNotificationURLRequestUserInfoKey: <NSMutableURLRequest: 0x14fc2cd0> { URL: https://api.parse.com/1/classes/_User }, PFNetworkNotificationURLResponseBodyUserInfoKey: {"results":[

We haven't changed anything for this query or the SDK version. I think it was working properly a few weeks ago - we just noticed this issue in the last week.

Any chance you can expand the body of the request and the results that are sent back?

2016-03-07 16:39:13.700 Reach[68930:9515103] URL : https://api.parse.com/1/classes/_User 2016-03-07 16:39:13.700 Reach[68930:9515103] Method : POST 2016-03-07 16:39:13.701 Reach[68930:9515103] Headers : {     "Content-Type" = "application/json; charset=utf-8";     "X-Parse-Installation-Id" = "___";     "X-Parse-Session-Token" = ___; } 2016-03-07 16:39:13.701 Reach[68930:9515103] Request Body : {"limit":"25","where":{"picture":{"$exists":true},"location":{"$nearSphere":{"__type":"GeoPoint","longitude":-79.3911270660543,"latitude":43.64133881156735},"$maxDistance":3.924030764401193}},"_method":"GET"} 2016-03-07 16:39:13.980 Reach[68930:9515106] URL : https://api.parse.com/1/classes/_User 2016-03-07 16:39:13.983 Reach[68930:9515106] Status Code : 200 2016-03-07 16:39:13.984 Reach[68930:9515106] Headers : {     "Access-Control-Allow-Methods" = "*";     "Access-Control-Allow-Origin" = "*";     Connection = "keep-alive";     "Content-Encoding" = gzip;     "Content-Length" = 27856;     "Content-Type" = "application/json; charset=utf-8";     Date = "Mon, 07 Mar 2016 21:39:06 GMT";     Server = "nginx/1.6.0";     "X-Parse-Platform" = G1;     "X-Runtime" = "0.138685"; } 2016-03-07 16:39:13.985 Reach[68930:9515106] Response Body : {"results":[

@cshah3, the query and responses look absolutely fine, meaning that this is likely a backend issue...
Any chance you can try using cURL (hopefully the debugged request helps) to check if the issue reproduces outside of iOS SDK?

The issue also exists on the Android SDK. The constraint works perfectly for all non-PFFile fields.

This is actually very weird.
Any chance you are using both Parse server and parse.com at the same time for Files?
From what it feels like there is something specific about those files that limit them from being queryable and returned to you on the client.
Any chance you can query for all of them and look at the network debug tool (post here would be great) to see if there is something specific that distinguishes them?


Fix playerLeft event not triggering on player leave.

World.getPlayerByName returns null if player isn't found.

That's a sneaky one, I guess the World.getPlayerByName API used to throw instead of returning null huh? Good find :)

Yep! https://github.com/ChatTriggers/ChatTriggers/commit/59c49add76ad36f219f9f105d213e717ab91e245#diff-7f4cad0816a68956e3a09a7ac0d405f4


Hi i am trying to build the application for the 32 bit version and i still receive the error

Hi i am trying to build the application for the 32 bit version and i still receive the error
Unhandled exception. System.AggregateException: One or more errors occurred. (Index was outside the bounds of the array.
)
 ---> System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at ElectronNET.CLI.Commands.Actions.GetTargetPlatformInformation.Do(String desiredPlatform, String specifiedPlatfromF
romCustom) in D:\Code\GitHub\Electron.NET\ElectronNET.CLI\Commands\Actions\GetTargetPlatformInformation.cs:line 17
   at ElectronNET.CLI.Commands.BuildCommand.<ExecuteAsync>b__19_0() in D:\Code\GitHub\Electron.NET\ElectronNET.CLI\Comma
nds\BuildCommand.cs:line 77
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.<>c.<.cctor>b__274_0(Object obj)
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executio
nContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executio
nContext, ContextCallback callback, Object state)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at System.Threading.Tasks.Task`1.get_Result()
   at ElectronNET.CLI.Program.Main(String[] args) in D:\Code\GitHub\Electron.NET\ElectronNET.CLI\Program.cs:line 59
win32 : The term 'win32' is not recognized as the name of a cmdlet, function, script file, or operable program. Check t
he spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:43
+ electronize build /target custom win7-x86;win32 /dotnet-configuration ...
+                                           ~~~~~
    + CategoryInfo          : ObjectNotFound: (win32:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

I am using the electron.NET CLI version 9.31.1 on a Windows 10 machine
I tried to build it using the following command:
electronize.exe build /target custom win-x86;win /dotnet-configuration Debug /electron-arch ia32
Originally posted by @raftopyannis in https://github.com/ElectronNET/Electron.NET/issues/152#issuecomment-647949999

🎉🚀 New Electron.NET version 23.6.1 released 🚀🎉
With native Electron 23 and .NET 6 support. Your problem should be fixed here. If you continue to have the problem, please let us know. Please note the correct updating of your API & CLI. Info in the README. Have fun!


Add new Aerodrome vaults

WETH-AERO
vault: 0x92868C059CfCd035ea204e3163Bd84b308dD358e
strat:0x2de93273d06c344427f7Ef8992e5baB9ff971005
WETH-WELL
vault: 0x7Fbdd51b59a7eA89Ea5Dd2A160D0002030e58c97
strat: 0xa263fF93Aff0FE038101a9F884b4a4c24E11cB7e

@reviewer: The failed build was caused by a force-push on my side. yarn validate runs successfully, so the PR should be fine to merge.


[BUG] sub-0001_ses-01_task-alignvideos_run-01 to run-04

Which module is this from?

beh
What is the issue?

Data partially exists in .mat file, not .csv file
What was your expected behavior?

The alignvideo python script was supposed to convert .csv to BIDS-valid _events.tsv. It failed
How can we reproduce this?

(Write your answer here.)
Any additional context?

(Write your answer here.)

Resolved via datalad commits
b191d62db1abca5a4a46e69a33eea9e2cabcf429
13d1d6db4c235c9db2525f3f4b32596e6edd91cf
4d6adc447a944e1c406ad4566322a748f34e47a7
72e1d7e4f803578099bd9875b0734e640571ce84
Author: jungheejung<EMAIL_ADDRESS>Date:   Tue Jun 25 02:51:05 2024 +0000

    [DATALAD RUNCMD] DEV: recover behavioral data from sub-0001 mat files and convert to BIDS events data

    === Do not change lines below ===
    {
     "chain": [],
     "cmd": "python ./code/spacetop-prep/spacetop_prep/events/bidsify_alignvideos_ENH.py --bids_string sub-0001/ses-01/func/sub-0001_ses-01_task-alignvideo_acq-mb8_run-01_events.tsv",
     "dsid": "2ee2bfa7-6c1b-4cf6-87e9-297e30f42517",
     "exit": 0,
     "extra_inputs": [],
     "inputs": [],
     "outputs": [],
     "pwd": "."
    }
    ^^^ Do not change lines above ^^^


Unable to training

input
python  train.py --gpu 0 --workdir ./output/logs/ --model sparenet --weights ./output/logs/checkpoints
The results are as follows（Partly as a result）
INFO: - Collecting files of Taxonomy [ID=04256520, Name=sofa]
INFO: - Collecting files of Taxonomy [ID=04379243, Name=table]
INFO: - Collecting files of Taxonomy [ID=04530566, Name=watercraft]
INFO: - Complete collecting files of the dataset. Total files: 231792
INFO: - Collecting files of Taxonomy [ID=02691156, Name=airplane]
INFO: - Collecting files of Taxonomy [ID=02933112, Name=cabinet]
INFO: - Collecting files of Taxonomy [ID=02958343, Name=car]
INFO: - Collecting files of Taxonomy [ID=03001627, Name=chair]
INFO: - Collecting files of Taxonomy [ID=03636649, Name=lamp]
INFO: - Collecting files of Taxonomy [ID=04256520, Name=sofa]
INFO: - Collecting files of Taxonomy [ID=04379243, Name=table]
INFO: - Collecting files of Taxonomy [ID=04530566, Name=watercraft]
INFO: - Complete collecting files of the dataset. Total files: 1200
DEBUG: - update config NUM_CLASSES: 8.
INFO: - Finish building dataset.
Residualnet
generating 2D grid
DEBUG: - Parameters in net_G: 82562191.
INFO: - Recovering from ./output/logs/checkpoints ...
INFO: - Recover complete. Current epoch = #150; best metrics = {'F-Score': 0.6606881591485739, 'ChamferDistance': 0.5150378787751227, 'EMD': 1.8626600753050297}.
INFO: - runner time: 0.000025
(Sparenet) medialab@medialab-7910:~/workspace/YZQ/SpareNetNew$ python  train.py --gpu 0 --workdir ./output/logs/ --model sparenet --weights ./output/logs/checkpoints
Please give advice or commentsThere is no training process

Does your checkpoint model already train 150 epochs?
If the max epoch n_epochs is also 150, there will be no training process.

I think I changed the code to only output training 150

In utils\misc.py
the code changes as follows
#checkpoint = torch.load(cfg.CONST.weights)      The code is modified to load  model as follows ,and test.py This code works fine
checkpoint = torch.load("/home/medialab/workspace/YZQ/SpareNetNew/models/SpareNet.pth")
but train.py no training process,the code is not working properly
DEBUG: - Parameters in net_G: 82562191.
INFO: - Recovering from ./output/logs/checkpoints ...
INFO: - Recover complete. Current epoch = #150; best metrics = {'F-Score': 0.6606881591485739, 'ChamferDistance': 0.5150378787751227, 'EMD': 1.8626600753050297}.
INFO: - runner time: 0.000025
2.checkpoint = torch.load(cfg.CONST.weights)  Not modify this line of code，
2.1 python  test.py --gpu 0 --workdir ./output/ --model sparenet --weights ./output/checkpoints/ --test_mode default
The results are as follows
INFO: - Complete collecting files of the dataset. Total files: 1200
DEBUG: - update config NUM_CLASSES: 8.
INFO: - Finish building dataset.
Residualnet
generating 2D grid
DEBUG: - Parameters in net_G: 82562191.
INFO: - Recovering from ./output/checkpoints/ ...
cfffffffffffffffg ./output/checkpoints/
<class 'str'>
Traceback (most recent call last):
File "test.py", line 81, in
main()
File "test.py", line 75, in main
model = getattr(module, args.model + "Runner")(cfg, logger)
File "/home/medialab/workspace/YZQ/SpareNetNew/runners/sparenet_runner.py", line 19, in init
super().init(config, logger)
File "/home/medialab/workspace/YZQ/SpareNetNew/runners/base_runner.py", line 79, in init
self.models_load()
File "/home/medialab/workspace/YZQ/SpareNetNew/runners/base_runner.py", line 108, in models_load
self.init_epoch, self.best_metrics = um.model_load(self.config, self.models)
File "/home/medialab/workspace/YZQ/SpareNetNew/utils/misc.py", line 74, in model_load
checkpoint = torch.load(cfg.CONST.weights)
File "/home/medialab/anaconda3/envs/Sparenet/lib/python3.7/site-packages/torch/serialization.py", line 579, in load
with _open_file_like(f, 'rb') as opened_file:
File "/home/medialab/anaconda3/envs/Sparenet/lib/python3.7/site-packages/torch/serialization.py", line 230, in _open_file_like
return _open_file(name_or_buffer, mode)
File "/home/medialab/anaconda3/envs/Sparenet/lib/python3.7/site-packages/torch/serialization.py", line 211, in init
super(_open_file, self).init(open(name, mode))
IsADirectoryError: [Errno 21] Is a directory: './output/checkpoints/'
2.2 python  train.py --gpu 0 --workdir ./output/ --model sparenet --weights ./output/checkpoints/
The results are as follows
INFO: - Finish building dataset.
Residualnet
generating 2D grid
DEBUG: - Parameters in net_G: 82562191.
INFO: - Recovering from ./output/checkpoints/ ...
cfffffffffffffffg ./output/checkpoints/
<class 'str'>
Traceback (most recent call last):
File "train.py", line 74, in
main()
File "train.py", line 66, in main
model = getattr(module, args.model + "Runner")(cfg, logger)
File "/home/medialab/workspace/YZQ/SpareNetNew/runners/sparenet_runner.py", line 19, in init
super().init(config, logger)
File "/home/medialab/workspace/YZQ/SpareNetNew/runners/base_runner.py", line 79, in init
self.models_load()
File "/home/medialab/workspace/YZQ/SpareNetNew/runners/base_runner.py", line 108, in models_load
self.init_epoch, self.best_metrics = um.model_load(self.config, self.models)
File "/home/medialab/workspace/YZQ/SpareNetNew/utils/misc.py", line 74, in model_load
checkpoint = torch.load(cfg.CONST.weights)
File "/home/medialab/anaconda3/envs/Sparenet/lib/python3.7/site-packages/torch/serialization.py", line 579, in load
with _open_file_like(f, 'rb') as opened_file:
File "/home/medialab/anaconda3/envs/Sparenet/lib/python3.7/site-packages/torch/serialization.py", line 230, in _open_file_like
return _open_file(name_or_buffer, mode)
File "/home/medialab/anaconda3/envs/Sparenet/lib/python3.7/site-packages/torch/serialization.py", line 211, in init
super(_open_file, self).init(open(name, mode))
IsADirectoryError: [Errno 21] Is a directory: './output/checkpoints/'

I want to retrain. What should I do，thanks

Hi, as shown in the error, ‘ ./output/checkpoints/’ is a directory, not a file of the pre-trained model. If you don't want to use any pre-trained model,  the argument --weights doesn't need to be specified.
If you want to train from scratch, you can run:
python  train.py --gpu 0,1,2,3 --work_dir ./output/ --model sparenet


[Lesson05] RPi 4 system call not working

I have some trouble getting system calls to work on my raspberry pi 4. When I run the OS I get the following error:

Kernel process started. EL 1 Type: 4, ESR: 2000000, Address: 1d14
("Type: 4" means that it is "SYNC_INVALID_EL_1h")

I looked at the AArch64 Expection Model to learn more about exceptions, but it didn't really helped me. I also tried the solution in the other issue (#228), which also didn't work for me.
Can anyone explain me what this error exactly means?

Do the function pointers in your sys_call_table point to the correct place at runtime? I mean since sys_call_table is initialized statically, if you didn't change the linker script of modify sys_call_table at runtime, it would not be pointing to the sys_* functions because rpi4 loads the kernel image at 0x80000

Thanks for you quick response, I haven't changed the addresses of the sys_* functions. It is working now, after I changed it. Thank you!

This issue can also be resolved by loading the kernel code at address 0x80000 explicitly, by specifying
. = 0x80000;

as first line in SECTIONS in the linker.ld


Add regression tests for BLAKE3

Description
Add tests to verify 131072 BLAKE3 digests to detect compatibility regressions using input data sizes up to 65536 bytes.
Also compare 131072 BLAKE3 digests from two libraries to confirm they match

github.com/zeebo/blake3
lukchampine/blake3

The test file is a modified subset of circlehash64_test.go copied from fxamacker/circlehash.  I will add additional BLAKE3 test vectors in the future but this PR is good enough to unblock #242 for the input sizes handled by Atree.
Closes #246

[x] Targeted PR against main branch
[x] Linked to Github issue with discussion and accepted design OR link to spec that describes this work
[x] Code follows the standards mentioned here
[x] Updated relevant documentation
[x] Re-reviewed Files changed in the Github PR explorer
[x] Added appropriate labels

Codecov Report

Merging #248 (4581c80) into main (82a5e53) will increase coverage by 0.06%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #248      +/-   ##
==========================================
+ Coverage   68.90%   68.97%   +0.06%
==========================================
  Files          14       14
  Lines        7245     7245
==========================================
+ Hits         4992     4997       +5
+ Misses       1621     1617       -4
+ Partials      632      631       -1

Impacted Files
Coverage Δ

map.go
71.41% <0.00%> (+0.10%)
:arrow_up:

storage.go
79.64% <0.00%> (+0.35%)
:arrow_up:

Continue to review full report at Codecov.

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


Allow specifying a directory where cookiecutter.json resides

I would like to checkout github repository for using with cookiecutter, where cookiecutter.json does not reside at the top level.
e.g.
cookiecutter('https://github.com/oz123/myrepo.git')
....
IOError: [Errno 2] No such file or directory: u'/home/oti/.cookiecutters/myrepo/cookiecutter.json'

This happens because cookiecutter.json resides inside plugin-template.
A simple solution would be to allow another parameter to cookiecutter, e.g. instead of the following signature:
def cookiecutter(input_dir, checkout=None, no_input=False, extra_context=None):

Use:
def cookiecutter(input_dir, checkout=None, no_input=False, extra_context=None, context_file_dir=None):

This requires changing how context_file is set:
Instead of:
context_file = os.path.join(repo_dir, 'cookiecutter.json')

Context file is now determined like this:
if context_file_dir:
      context_file = os.path.join(repo_dir,context_file_dir, 'cookiecutter.json')
else:
      context_file = os.path.join(repo_dir, 'cookiecutter.json')

Hi @oz123! Thank you for submitting an issue to Cookiecutter.
IMHO this is a tough one. Implementation-wise it is totally possible. No doubt about that.
However I feel that the user shouldn't be the one to figure out where cookiecutter.json is located, because he doesn't necessarily needs to know that Cookiecutter is looking for it. From my experience it is always a balancing act between bloating a tool out and keeping its original concept of being a utility.
I am very open to a discussion though... :bow:

:-1:
I'm very much opposed to specifying the location of cookiecutter.json. Having it at the root of the repo means that it's trivial to identify cookiecutter templates. If someone does want to use a non-standard location for their cookiecutter.json, they can just do:
git clone gh:github.com/oz123/myrepo
cd myrepo
cookiecutter plugin-template

Furthermore, one could use components of cookiecutter's internal API to automate much of this in a script. There are functions that:

Clone repo
Change directory context
Runs cookiecutter against a local directory

FWIW, there are shops that write scripts that perfect exactly this action.


[Easy] Listing required fields on object types

Closes #437 and based/depends on #391
Because

By default, all object properties are optional. You can specify the required properties in the required list

We have to explicitly declare which fields are required as opposed to which are nullable.
Test Plan
Open up the rendered version of the open-api spec doc and see that there is a red asterisk next to the fields which are now explicitly required.
Before:

After:

Reading through the openapi documentation again, I believe for json objects nullable and required are different things. The former means a key-value can be set to null while the latter means the whole key value must be exist.
The way we have implemented the api everything is always required but also some fields can be nullable. So I like the change of adding required but we shouldn't remove nullable.


MC-1296 Deploy Reaper capable of interaction with encrypted mgmt-api

What this PR does:
This PR changes the reconciliation process of k8ssandra cluster and reaper objects so that it becomes possible for one a single reaper insance to interact with several k8ssandra clusters with their mgmt-api communication encrypted (each using a different certificate).
Which issue(s) this PR fixes:
Fixes
Checklist

[x] Changes manually tested
[x] Automated Tests added/updated
[ ] Documentation added/updated
[x] CHANGELOG.md updated (not required for documentation PRs)
[ ] CLA Signed:  DataStax CLA

This led me to notice the test I added did not actually ran with the CI ... I've added it and it now ran here. It seems to have passed. The PR adds a bunch of stuff, but it seems to be all present in the changed files.
So I'm not sure why this would fail ... when running from an IDE. I always run the e2e tests from shell, with:
e2e_test="TestOperator/CreateControlPlaneReaperAndDataCenter"
make single-up
make E2E_TEST="$e2e_test" e2e-test

Could you please try that way?

I think you need to create new secrets for the sake of security, not re-use existing client secrets.

This is not the correct way, as mgmt-api supports a single TLS cert (combination of tls.crt/ca.crt/tls.key files, not Java keystores). Thus, if Reaper doesn't use the cass-operator one, then Reaper will not be able to connect to mgmt-api.


How can I calculate the gradients of my outputs with respect to specific input values of my Tensor?

I am trying to implement a Physics induced neural network, but my partial differential equations (the heat equation) require a bit more complexity since I use multiple variables in my input tensor and need to calculate different derivatives for these variables to use in my equations.
My input tensors I called pde_samples and boundary_samples for the different equations all have shape torch.Size([22929, 3]) where the first column is t, the second x and the third y.
These are the sampling functions I wrote and will use later on.
#imports
import torch
import torch.nn as nn
import torchopt

from functorch import make_functional, grad, vmap

import pandas as pd
import numpy as np

X_BOUNDARY = 82
Y_BOUNDARY = 77
T_END = 22929

def pde_sampling(n = 1000):
    samples = pd.DataFrame(columns=['t', 'x', 'y'])

    # sample n points
    for i in range(n):
        sample = np.array([])

        # sample the boundary points
        x_sample = np.random.randint(1, X_BOUNDARY - 1)
        y_sample = np.random.randint(1, Y_BOUNDARY - 1)
        t_sample = np.random.randint(0, T_END)

        sample = np.append(sample, [t_sample, x_sample, y_sample])

        # add the sample to the samples array
        samples.loc[i] = sample

    return torch.tensor(samples.values, dtype=torch.float32)

def boundary_sampling(n = 1000):
    boundaries_samples = []

    # sample n points
    for boundary in ['left', 'right', 'bottom', 'top']:
        samples = pd.DataFrame(columns=['t', 'x', 'y'])
        for i in range(int(n/4)):
            sample = np.array([])

            # sample the boundary points
            x_sample = np.random.randint(0, X_BOUNDARY)
            y_sample = np.random.randint(0, Y_BOUNDARY)
            t_sample = np.random.randint(0, T_END)

            if boundary == 'left':
                x_sample = 0
                k = 0
            elif boundary == 'right':
                x_sample = X_BOUNDARY
                k = n/len(boundaries)
            elif boundary == 'bottom':
                y_sample = 0
                k = n/len(boundaries)*2
            elif boundary == 'top':
                y_sample = Y_BOUNDARY
                k = n/len(boundaries)*3
            sample = np.append(sample, [t_sample, x_sample, y_sample])

            # add the sample to the samples array
            samples.loc[i+k] = sample

        boundaries_samples.append(torch.tensor(samples.values, dtype=torch.float32))
    return boundaries_samples

My output tensor has shape torch.Size([22929, 1]) where the output value is temperature u.
This is the neural network I am using.
class NN(nn.Module):
    def __init__(
        self,
        input_size: int = 1,
        output_size: int = 1,
        dim_hidden: int = 1,
        act: nn.Module = nn.ReLU(),
    ) -> None:
        super().__init__()
        self.model = nn.Sequential(
            nn.Linear(input_size, dim_hidden),
            act,
            nn.Linear(dim_hidden, dim_hidden),
            act,
            nn.Linear(dim_hidden, output_size)
        )

    def forward(self, x: torch.Tensor) -> torch.Tensor:
        return self.model(x)

Here I make use of functorch to make the model functional as to be able to calculate the gradients.
# create the PINN model and make it functional using functorch utilities
model = NN(input_size=3, output_size=1, dim_hidden=64)
fmodel, params = make_functional(model)

def u(input: torch.Tensor, params: torch.Tensor) -> torch.Tensor:
    # only a single element is supported thus unsqueeze must be applied
    # for batching multiple inputs, `vmap` must be used as below
    input_ = input.unsqueeze(0)
    u_pred = fmodel(params, input_).squeeze(0)
    return u_pred

# use `vmap` primitive to allow efficient batching of the input
u_vmap = vmap(u, in_dims=(0, None))

# return function for computing higher order gradients with respect
# to input by simply composing `grad` calls and use again `vmap` for
# efficient batching of the input

# first order derivative with respect to t, the first column of input
dudt = vmap(grad(u, argnums=0), in_dims=(0, None))
# first order derivative with respect to x, the second column of input
dudx = vmap(grad(u, argnums=1), in_dims=(0, None))
dudxdx = vmap(grad(grad(u, argnums=1), argnums=1), in_dims=(0, None))
# first order derivative with respect to y, the third column of input
dudy = vmap(grad(u, argnums=2), in_dims=(0, None))
dudydy = vmap(grad(grad(u, argnums=2), argnums=2), in_dims=(0, None))

Here I then define the loss functions and train the model.
C = 1
def loss_pde(input: torch.Tensor, params: torch.Tensor) -> torch.Tensor:
    loss = nn.MSELoss()
    interior = dudt(input, params) - (C**2) * (dudxdx(input, params) + dudydy(input, params))

    return loss(interior, torch.zeros_like(interior))

def loss_boundary_x(input: torch.Tensor, params: torch.Tensor) -> torch.Tensor:
    loss = nn.MSELoss()
    boundary = dudx(input, params)
    return loss(boundary, torch.zeros_like(boundary))

def loss_boundary_y(input: torch.Tensor, params: torch.Tensor) -> torch.Tensor:
    loss = nn.MSELoss()
    boundary = dudy(input, params)
    return loss(boundary, torch.zeros_like(boundary))

# choose the configuration
batch_size = 100
num_iter = 1000  # maximum number of iterations
learning_rate = 0.01  # learning rate

# choose optimizer with functional API using functorch
optimizer = torchopt.FuncOptimizer(torchopt.adam(lr=learning_rate))

# train the model
losses = []
for i in range(num_iter):
    # sample the PDE and boundary points
    pde_samples = pde_sampling(n=batch_size)
    boundary_samples = boundary_sampling(n=batch_size)

    #compute the loss from PDE
    pde_loss = loss_pde(pde_samples, params)

    # compute the loss from boundary conditions
    boundary_loss_x0 = loss_boundary_x(boundary_samples[0], params)
    boundary_loss_x1 = loss_boundary_x(boundary_samples[1], params)
    boundary_loss_y0 = loss_boundary_y(boundary_samples[2], params)
    boundary_loss_y1 = loss_boundary_y(boundary_samples[3], params)
    boundary_loss = boundary_loss_x0 + boundary_loss_x1 + boundary_loss_y0 + boundary_loss_y1

    # update the parameters using the functional API
    loss = boundary_loss + pde_loss
    params = optimizer.step(loss, params)

    # store the loss
    losses.append(loss.item())
    if i % 100 == 0:
        print(f"Iteration {i} with loss {float(loss)}")

Resulting in the error
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
 in
     19
     20     #compute the loss from PDE
---> 21     pde_loss = loss_pde(pde_samples, params)
     22
     23     # compute the loss from boundary conditions

 in loss_pde(input, params)
      2 def loss_pde(input: torch.Tensor, params: torch.Tensor) -> torch.Tensor:
      3     loss = nn.MSELoss()
----> 4     interior = dudt(input, params) - (C**2) * (dudxdx(input, params) + dudydy(input, params))
      5
      6     return loss(interior, torch.zeros_like(interior))

/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/torch/_functorch/vmap.py in wrapped(*args, **kwargs)
    432
    433         # If chunk_size is not specified.
--> 434         return _flat_vmap(
    435             func, batch_size, flat_in_dims, flat_args, args_spec, out_dims, randomness, **kwargs
    436         )

/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/torch/_functorch/vmap.py in fn(*args, **kwargs)
     37     def fn(*args, **kwargs):
...
-> 1258                     raise RuntimeError('grad_and_value(f)(*args): Expected f(*args) '
   1259                                        'to return a scalar Tensor, got tensor with '
   1260                                        f'{output.dim()} dims. Maybe you wanted to '

RuntimeError: grad_and_value(f)(*args): Expected f(*args) to return a scalar Tensor, got tensor with 1 dims. Maybe you wanted to use the vjp or jacrev APIs instead?

I am not familiar with vjp or jacrev APIs and do not really know what is going wrong and how I can fix it. I tried switching to torch.autograd.grad but this seemed to not work that very well with the functional approach to differentiation.

have you solved it yet

The solution to this issue has been added in the latest version of the code, v0.1.0. See the function make_forward_fn_nd in the module basic_pinn/pinn.py for a solution to this problem. Notice that it only works for pure derivates (e.g., with respect to a single variable). One needs a more complex implementation for mixed higher-order derivatives (e.g., d2f/dxdt). But those are less common in physics.


Window closes immediately

Hello, All!
After running the software, the output window disappears instantly.
Can this be fixed?

It's a console application. All console applications work like that in Windows when you double click on them or otherwise invoke. This is meant to be used inside a console window (which then won't close) or a script.


Fix typo in Channel::close documentation

The method is called Channel::wait_close.

Thank you for the documentation fix!


Unable to log-out of credential provider

When running CredentialProvider for the first time, it will pop up a Microsoft log-in window (presumably via the "Trying authentication provider Browser-based federated authentication..." option.  When using my correct Azure DevOps account with Artifacts option enabled, all works well.
Somehow, I had to supply my login id/password again in that microsoft login window, but I mistakenly used the wrong account (which does not have Artifacts option).  I now continuously get 402 error from Nuget (Payment Required: user does not have license).  This is all correct up to this point.
My issue now, is how do I revoke that credential / log-in and reset CredentialProvider to ask me for login username/password again?  If I run Visual Studio under a different name as such:  "runas
/netonly /user:anotherUserName devenv.exe", it will then ask me to re-log in via Microsoft pop up window once CredentialProvider is run.
Any way to work around this via options?

Well, seems like I answered my own question.  By applying the -i option (isRetry), the popup window re-appeared requesting my login credentials.  Good to go!


Rename column disabled -> is_disabled

Codecov Report
Base: 98.88% // Head: 98.88% // No change to project coverage :thumbsup:

Coverage data is based on head (42ff9bd) compared to base (ae399d4).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #16   +/-   ##
=======================================
  Coverage   98.88%   98.88%
=======================================
  Files          21       21
  Lines         360      360
=======================================
  Hits          356      356
  Misses          4        4

Impacted Files
Coverage Δ

src/runtime_config/repositories/db/repo.py
100.00% <ø> (ø)

src/runtime_config/models.py
100.00% <100.00%> (ø)

src/runtime_config/repositories/db/entities.py
100.00% <100.00%> (ø)

src/runtime_config/web/entities.py
100.00% <100.00%> (ø)

src/runtime_config/web/views.py
100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


feature:  dark mode

Checklist

[X] I've searched through the plugins to make sure this feature isn't already available, or think it shouldn't require a plugin.
[X] I've searched through the current issues to make sure this feature hasn't been requested already.
[X] I agree to follow the Code of Conduct that this project adheres to.

Motivation
dark mode is very important for all websites
Suggested solution
Hello @michael @kshepard @palewire @grossbart @klaftertief ,
I want to add dark mode in leaflet.
I'd like to work on this issue. Could you please assign it to me?
Thank you,
Subrat
Alternatives considered
No response

Duplicate of #7577 and PR is also already existing #7612