.Net 5.0 Application using NAudio libraries crashes after applying cumulative update 21H1 to Windows 10

My application started crashing after applying the Windows 10 "21H1" cumulative update.
As soon as I click the play button to play any WAV file the application freezes for 10 seconds and then abruptly ends - no error messages on the screen. Only the Event Log reveals the problem message:
MyApp.exe
<IP_ADDRESS>
607f5cf5
msvcrt.dll
7.0.19041.546
564f9f39
c0000005
00000000000744ce
3134
01d75d5bc38d4623
D:\Development\MyApp\MyApp.exe
C:\WINDOWS\System32\msvcrt.dll <====================== OFFENDING LIBRARY
cb662446-488f-4cb5-80f2-a815faeb3852
Has any of you experienced the same behavior after updating Windows 10 with the 21H1 cumulative update?
Thank you.

Can confirm this Error.
Excerpt from my eventlogs:
Name der fehlerhaften Anwendung: MyApp.exe, Version: <IP_ADDRESS>, Zeitstempel: 0x609308e7
Name des fehlerhaften Moduls: msvcrt.dll, Version: 7.0.19041.546, Zeitstempel: 0x564f9f39
Ausnahmecode: 0xc0000005
Fehleroffset: 0x0000000000074452
ID des fehlerhaften Prozesses: 0xf60
Startzeit der fehlerhaften Anwendung: 0x01d75decd878748b
Pfad der fehlerhaften Anwendung: C:\{projectfolder}\bin\Debug\net5.0-windows10.0.19041.0\MyApp.exe
Pfad des fehlerhaften Moduls: C:\Windows\System32\msvcrt.dll
Berichtskennung: c5b60de9-e231-4236-84da-5bbbcc60dedd

It also crashes in Windows 7.. Maybe it's in .NET 5.0.7 Update ?

The application was migrated into .NET 5.0 some time ago and it used to work fine. Since then I have applied the regular Visual Studio and Windows 10 updates. I suspect that it was CU 21H1 or one of the follow-up updates. Unfortunately I do not have another computer where I can test the application with - and without - the latest updates. I also noticed that "msvcrt.dll" has not been updated lately because in my computer it is dated: 2020-10-14.

Same here.
It is the NET 5.0.7 runtime causing the issue. Rolling back to 5.0.6 is the fix. BUT Microsoft is forcing the 5.0.7 update and I have to keep removing 5.0.7 and reinstalling 5.0.6

I've installed 5.0.0 and the issue was still there.

Same here. Started with CU 21HI.
Have spent a day trying various alternative ways of playing the wav file but to no avail.
Does not appear to be related to the callback or type of stream.
I am unable to catch an exception anywhere, Net v5.0 Wpf app just crashes.
The issue exists on my laptop and desktop and appears unrelated to the audio driver or hardware.

The issue causes memory to be read that does not belong to the process, so the Windows kernel kills the application with the error "Access Violation".

I've installed 5.0.0 and the issue was still there.

I don't see that here. 100% reproducible in all my tests across multiple machines. NET 5.0.6 works without issue, but with 5.0.7 it fails consistently.

I've installed 5.0.0 and the issue was still there.

I don't see that here. 100% reproducible in all my tests across multiple machines. NET 5.0.6 works without issue, but with 5.0.7 it fails consistently.

Have you switched the runtime and recompiled? I've definitely installed 5.0.0 and it did not work. Maybe it didn't really uninstall, I don't know.
But there is definitely an issue in the runtime and I hope Microsoft will fix this ASAP.

Can confirm the same issue in the past 2 days.  Sound now plays random samples in memory.   .NET 5.0 application.

Wow, thanks everyone for reporting this. I'm afraid I've been extremely busy on other projects recently, but I will try to chase up with Microsoft to understand what is going on here

I can concur I am getting the same problem with WaveOut, at first I thought this was a specific issue with the Mp3Frame/Decompression API's (due to my use case), however, as evident from this post it appears this is an issue with WaveOut itself.

Can anyone suggest a way to rollback my .NET Sdk version? I've tried uninstalling from the Control Panel and installing 5.0.5 from the website but 5.0.7 persists. To be completely honest I don't remember installing 5.0.7 so this must have happened with a VS update, in which case is it impossible to uninstall 5.0.7?

The only thing that worked for me was changing the runtime back to 3.x and recompiling my application.

The only thing that worked for me was changing the runtime back to 3.x and recompiling my application.

That is a solution I suppose, but I REALLY don't wanna move back to .Net Core 😬 (older C# version too which isn't convenient)
Luckily my apps aren't very popular so it's not a critical issue at this stage 🤗😁. I'm very intrigued to hear what Mark's prognosis is, I don't understand low level stuff but it does excite me!

I was going crazy ! I thought I had to do something with it !
Even when specifying <RuntimeFrameworkVersion> on my .csproj, nothing worked.
The only thing that works is a WPF app with  <TargetFramework>netcoreapp3.1</TargetFramework>.
Thing is, my app is using "Production ready" WinUI 3 that needs <TargetFramework>net5.0-windows10.0.18362</TargetFramework>. Hope this gets fixed, I really wanted to code !

Our WPF did not work with Publish. It doesn't crash, but audio still wouldn't play.
Had to switch audio library, but transition was easy enough as we already had a wrapper. Hopefully NAudio gets it fixed soon so we can revert it back in the future.

Have you tried building self-contained (with 5.0.6 runtime included) application for a temporary fix?
https://docs.microsoft.com/en-US/dotnet/core/deploying/#publish-self-contained

Tried with any .NET 5 version. Can reproduce it on any version.

Try it with the latest .NET 6 Preview 4 SDK and Runtime. Would like to hear if it works then too? If not then file issue at https://github.com/dotnet/runtime/ and link this one as well and tell them it started in .NET 5's version of the runtime.
Chances are this could possibly be a regression they failed to catch.

Yea me to, ill also note if I keep trying to get it to play it plays a weird screeching sound if successful

Yea me to, ill also note if I keep trying to get it to play it plays a weird screeching sound if successful
To me it really looks like a memory pointer issue.

Works fine on 5.0.6, .NET 6 previews and the 5.0.8 branch. With 5.0.7 it's broken. You can test it by downloading the zip files of these versions and invoke dotnet from these folders.

A PR was created in .NET to fix this issue. Also mentioned that making the NAudio interop classes sealed would also resolve the issue.

Works fine on 5.0.6, .NET 6 previews and the 5.0.8 branch. With 5.0.7 it's broken. You can test it by downloading the zip files of these versions and invoke dotnet from these folders.
The crash is basically in the driver for me in 5.0.7. But yea something in 5.0.8 branch already fixed it too

No, it can randomly work in newer dotnet runtimes:

The crash is caused by use-after-free bug. The crash will only happen if something else actually modified the freed memory in a specific window of time. It is certainly possible that the crash will come and go due to unrelated changes - that's the nature of use-after-free bugs.

Originally posted by @jkotas in https://github.com/dotnet/runtime/issues/54132#issuecomment-861809520

Works fine on 5.0.6, .NET 6 previews and the 5.0.8 branch. With 5.0.7 it's broken. You can test it by downloading the zip files of these versions and invoke dotnet from these folders.
The crash is basically in the driver for me in 5.0.7. But yea something in 5.0.8 branch already fixed it too

No, it can randomly work in newer dotnet runtimes:

The crash is caused by use-after-free bug. The crash will only happen if something else actually modified the freed memory in a specific window of time. It is certainly possible that the crash will come and go due to unrelated changes - that's the nature of use-after-free bugs.

Originally posted by @jkotas in dotnet/runtime#54132 (comment)

another fact: not random. But in general you are right, yes!

It looks like this is going to be fixed in https://github.com/dotnet/runtime/pull/54235#issue-670673128 once merged.
This still exposes technically incorrect code in the WaveOutBuffer, it would be correct to mark the class as sealed.

Not sure yet if this is relevant, on OS build 2004 WASAPI output I get:
Exception thrown at 0x00007FF8547A4B89 (KernelBase.dll) in CrewChiefV4.exe: WinRT originate error - 0x80004001 : 'Not implemented'.
onecore\com\combase\winrt\error\restrictederror.cpp(1016)\combase.dll!00007FF85663C363: (caller: 00007FF856646039) ReturnHr(5) tid(2e44) 8007007E The specified module could not be found.
I will investigate deeper when I've time.

https://github.com/dotnet/runtime/issues/54132#issuecomment-862721362
The .net fix will take long, it would be faster to mark the required classes sealed in naudio and publish a minor version in nuget to fix this issue with the current .net 5.0.7

dotnet/runtime#54132 (comment)
The .net fix will take long, it would be faster to mark the required classes sealed in naudio and publish a minor version in nuget to fix this issue with the current .net 5.0.7

Which classes need to be marked as sealed?

For this particular case, the WaveHeader type would need to be sealed. Generally, any class types used in interop as “layout class” types (as opposed to COM interop) should probably be sealed.

I left this comment on: https://github.com/dotnet/runtime/issues/54132
The sad thing here is that NAudio is widely used. It has 2.34 Million downloads on github and there is currently nothing that comes close to it's functionality that is maintained.
There was mention above that if NAudio made it's classes sealled then the problem would go away.
Is that an option that could be considered?
And got this reply from jkoritzinsky:
That option would have to be considered by the owners of NAudio, and based off the parallel issue over there, it seems it might be.
I'm hoping this will be looked at.

I noticed the comment about sealing the classes used for interop. It sounds like something that would be worth trying. Haven't had the chance to dig deep into this myself yet. Would be happy to accept a PR if anyone wants to give this a try with WaveHeader (which seems to be the main culprit)

I created a PR at https://github.com/naudio/NAudio/pull/798 and a small repro project at https://github.com/jackpoz/NetCore507Crash , testing before and after the PR and the "sealed" change fixed the crash.

@markheath do you have any plan on when next NAudio release will be so we can just update to latest nuget package ? Thanks

I've just pushed a new version of the NuGet package. Please let me know if it resolves your issue

I've just pushed a new version of the NuGet package. Please let me know if it resolves your issue

YES!  2.0.1 works for me. Thanks very much.

Awesome, many thanks to @jackpoz

I've just pushed a new version of the NuGet package. Please let me know if it resolves your issue

For me, it no longer crashes, but MP3 playback only runs for about a second before going silent.  The Waveout says the mp3 is playing in its current state.  Volume is maxed.  The upside is, it no longer crashes.  But Mp3 playback is not working for myself.

2.0.1 fixed it for me though I have only tested with wav files.
Thanks for your work.

I can confirm that WaveIn works again. Thanks !

How do I fix this if I'm using NAudio.Extras NuGet package?

Make sure that you're also referencing NAudio 2.0.1


Longest Common Subsequence | DP

Add comment to get assigned to your desired language.
Follow Submission directory Structure for PR merge.
Submission Title
Longest Common Subsequence
Submission Type
Algorithm
Submission Description
Given two strings, find the longest common subsequence between them
Submission Directory
Algorithms => DP => Longest_Common_Subsequence =>  Filename.extension
Language

[ ]  C++
[ ]  C
[ ]  Python
[ ] Java
[ ] C#
[ ] JavaScript

@swathi-vennela Which language you want to choose?

Hi @krishrahul98, could you assign me for C and Java..?

@swathi-vennela Which language you want to choose?

@krishrahul98  I can't work on this, this is just my attempt in encouraging people to contribute to dp..

@swathi-vennela Which language you want to choose?

@krishrahul98 Thank you, but I can't work on this, this is just my attempt in encouraging people to contribute to dp..

Oh that's great

Hi @krishrahul98, could you assign me for C and Java..?

@vieee Assigned for C and Java

For Python !✋🏻

For Python !✋🏻

@sawyer1997 Assigned for Python

please assign me for c++

please assign me for c++

@verma-shivani Assigned for C++

Can I take the Javascript part?

Can I take the Javascript part?

@redgardner Yes, Sure. You are assigned for Javascript.

I would like to code in c++. Please assign me this issue.

I would like to code in c++. Please assign me this issue.

@sourabhjain9887 ok sure. Implement Memoization approach for this one because C++ is already assigned to someone.

For Python !✋🏻

@sawyer1997 Assigned for Python

Please consider reviewing the code, and merging the same.

For Python !✋🏻

@sawyer1997 Assigned for Python

Please consider reviewing the code, and merging the same.

@sawyer1997 Done


Triad Lines disappear randomly

An engineering user has reported to me that the triad lines disappear seemingly randomly. I have not been able to reproduce. I will meet with engineering folks on Thursday to hopefully discuss and gather more details.

VisIt uses the _LineWidth enum in avt/Plotter/LineAttributes, (which is 0-origin) for most state objects that have a need for a line width attribute.
The file has conversion methods between the _LineWidth and int (LW_0 converted to 1, LW_1 converted to 2, etc).
I honestly cannot recall the full reasoning behind all this complexity, unless it had something to do with wanting to constrain the number of allowed values since the QvisLineWidthWidget constructs pixmaps for each allowed width.
Perhaps if the Axes3D state object's triadLineWidth was of type lineWidth  instead of float, then VisIt would translate it properly.
I don't know what changed in 3.4 that would have caused this to be a new issue, nor if it is within VisIt or VTK.
Axes3D didn't change.
Perhaps the triadLineWidth should be changed to type lineWidth ?

Is there a reproducer for this on the OCF?
It may be the case that getting rid of the visit configuration files may solve this issue.

It may be the case that getting rid of the visit configuration files may solve this issue.

If so, that should be easily testable perhaps by manually creating the relevant parts of a config file and confirming both the bug and the fix.
If that confirms reproducibility as well as a work-around, I would declare the issue resolved...except maybe checking whether its still possible for a user to create a config file with the bad value in it from a current version of VisIt.

I may have been the one who originally reported this. I am able to reproduce with Visit 3.4.0 on RZ even with the -noconfig argument. I've tied and gotten the same result with Exodus, Mili, and VTK databases. In my test case, I added a bounding box to a legend (causing it to disappear behind(?) the bounding box a la #19124), and then the triad lines also disappeared. I am using Visit over X11 to a Windows 10 machine. Opentext Exceed is the X Server. I've attached a printout of glxinfo.
glxinfo_grier1_rztrona_01122024.txt
I tried the same thing running in RZVNC and interestingly, the legend background did work i.e. the legend is still visible behind the solid color bounding box. But the triad lines still disappeared.

#19614 has data that reproduces this.

Simple steps to repro:

$ bin/visit -o testdata/silo_hdf5_test_data/curv3d.silo
Add Pseudocolor plot of d
Pull up annotation attributes
Check "Set triad manually"
Change line width to something else and then back to 1
Click apply and triad lines are gone.


home page

the deployed app and locally running app are not redirecting to the landing page

the nav and footer are being duplicated on the landing page


Headers Error

I'm getting an error I can't seem to resolve related to the header argument when I pass it a dict.
I'm on mobile at the moment, will post a representative example of the error later tonight. But may be able to resolve the issue myself if you can provide a working example with a header argument.

I think I've established that the json argument isn't being processed correctly. I'm passing a dictionary within a dictionary as the json argument, and, in the below example, only 'Remove' is sent.
postPayload = {'Remove': {'Missing': 'NotSent'}}

#this doesn't work
responses = ManyRequests(n_workers=5, n_connections=5)(
            method='POST',
            url=allUrls[5:15],
            json = postPayload,
            cookies = [custom_cookies]*10)

#WARNING:root:FAILED Request {'method': 'POST', 'url': ...
#'json': 'Remove', ...
#Permanently failed. Last error: Bad response status code: 400. Should be in (200,)

Solved this. If you send the json input as a list, this issue doesn't occur. Like the below.
responses = ManyRequests(n_workers=5, n_connections=5)(                 method='POST',                 url=allUrls[5:15],                 json = [postPayload]*10,                 cookies = [custom_cookies]*10)

Yes - glad you sorted it. I think it's getting confused as the dictionary is technically an iterable - this is how it determines whether it should duplicate the item or not: https://github.com/joshlk/many_requests/blob/main/many_requests/easy_async.py#L39


transpose error when running example of saliency

I am running keras with theano backend, versions:
pip show keras
Name: Keras
Version: 1.2.0
Summary: Deep Learning for Python
Home-page: https://github.com/fchollet/keras
Author: Francois Chollet
Author-email<EMAIL_ADDRESS>License: MIT
Location: /mnt/gelu/anaconda2/envs/theano/lib/python2.7/site-packages
Requires: theano, pyyaml, six
Name: Theano
Version: 0.8.2
Summary: Optimizing compiler for evaluating mathematical expressions on CPUs and GPUs.
Home-page: http://deeplearning.net/software/theano/
Author: LISA laboratory, University of Montreal
Author-email<EMAIL_ADDRESS>License: BSD
Location: /mnt/gelu/anaconda2/envs/theano/lib/python2.7/site-packages
Requires: six, numpy, scipy
When trying to reproduce the code in https://raghakot.github.io/keras-vis/visualizations/attention/
I get the following error:
Working on filters: [292]
Traceback (most recent call last):
File "", line 1, in
File "/mnt/gelu/fastai/fish/kerasvis.py", line 7, in
from vis.visualization import visualize_saliency
File "/mnt/gelu/anaconda2/envs/theano/lib/python2.7/site-packages/vis/visualization.py", line 156, in visualize_saliency
grads = utils.deprocess_image(grads[0])
File "/mnt/gelu/anaconda2/envs/theano/lib/python2.7/site-packages/vis/utils/utils.py", line 66, in deprocess_image
img = img.transpose((1, 2, 0))
ValueError: axes don't match array

I have the same issue, did you find any solution for that ?

I really need to add tests. All the rapid refactoring is messing stuff up.

Fixed in latest commit. I also added tests to make sure i dont break stuff again.


DM-47199: idfprod Sasquatch

@afausti This is successfully synced, thanks for your help! I've left comments in for what I've changed from the idfint config. If this looks good to you, I'll remove the commented-out config before merging.


Feat: Eliminate ServiceLoader in JoinerSupport

Is your feature request related to a problem? Please describe.
As described in #664, my code needs to specify the class loader that the ServiceLoader should use. I was able to do this for ScoreDirectorFactoryFactory in #690 because a class loader was already configurable and passed into the right place -- I just had to use it.
JoinerSupport also uses ServiceLoader, but it is not configurable. @triceo commented here that the use of ServiceLoader is purely historical and that it would be nice to remove it. This issue is to perform that removal.
Describe the solution you'd like
The simplest approach would be to change JoinerSupport::getJoinerService to just directly instantiate DefaultJoinerService without going through ServiceLoader.
A more thorough removal would update Joiners to directly instantiate DefaultJoinerService (as a member variable) and use it, eliminating JoinerSupport entirely.
Both of these approaches leave the JoinerService interface, but if we really want to close the door on having different JoinerServices in the future, we could get rid of the interface and just have the single implementation.
If one of these approaches is ok, I'll create a PR for it.
Describe alternatives you've considered
Another possibility would be to allow a class loader to be set on JoinerSupport. This would leave the ServiceLoader mechanism in place but allow it to work in cases where the default class loader does not work. To do this we could add a new static method setClassLoader, and users would need to know to call it before getJoinerService could be called.
This is perhaps a simpler solution than removing the ServiceLoader, but it feels like a hack. In particular, if the timing of the call to setClassLoader is not early enough, the class loader won't actually be used but this may not be obvious to the user resulting in very confusing bugs. We could add a warning (or even exception) if setClassLoader is called after INSTANCE is set. But if the use of ServiceLoader here is purely historical, then it would be nice to just eliminate it entirely.
Additional context
N/A

Ok, thank you for taking this on! Waiting until April will be well worth it!


loss function

when i use CrossEntropyLoss(),it has aproblem:RuntimeError: 1only batches of spatial targets supported (non-empty 3D tensors) but got targets of size: : [16, 513, 513, 4]

target should be 3 dimension.


merge main into dev

We need to merge main into dev, but I can't do it locally and push the change to dev. I am just creating this PR as a reminder for @beguene to look into this tomorrow morning.
cc/ @beguene

Thanks @fbwoolf  I will check it out.

@fbwoolf This is fixed now. I just merged main to dev.


add youtube video player

implementation can scale to add other hosted providers like Facebook / Tiktok, or use an outside library like React Player
https://github.com/cookpete/react-player

Thank you! Can you provide a screenshot of the final result?

I really like the react-player idea, is this something you would like to pursue @postonsundays ?


clarification regarding question (pcre matching)

Regarding https://github.com/certificationy/php-pack/blob/master/data/questions.yml#L697
The question doesn't (explicitly) state that it is about matching the string as a whole. The answer flagged correct is the only one that does that ... however if it is just about matching the string (i.e. partially) then
php > var_dump(preg_match('/^[hp1-5]*\-.*/i', 'PhP5-rocks'));
int(1)
php > var_dump(preg_match('/[hp1-5]*\-.?/', 'PhP5-rocks'));
int(1)
php > var_dump(preg_match('/[hp][1-5]*\-.*/', 'PhP5-rocks'));
int(0)
php > var_dump(preg_match('/[PhP]{3}[1-5]{2,3}\-.*$/', 'PhP5-rocks'));
int(0)
php > var_dump(preg_match('/[a-z1-5\-]*/', 'PhP5-rocks'));
int(1)

... two more answers are correct.
So IMHO either the question should explicitly state that it is about matching the whole string or otherwise two extra answers should be flagged correct, hence changing it to a multiple choice question.

still relevant ?

As the link provided returns a 404, no.
Sorry @stesie, let us know if you have still an issue with it :)

@mickaelandrieu well you just moved the question to a different file, question & answers unchanged, hence the problem actually remains.
Updated link, this time with commit hash instead of master: https://github.com/certificationy/php-pack/blob/c17e1e02320c2e24bf0f8ffc889578eb9e91f24a/data/strings-patterns.yml#L139


template add ts any type ui bug

Vue - Official extension or vue-tsc version
2.0.28
VSCode version
1.91.1
Vue version
3.4.33
TypeScript version
5.5.3
System Info
System:
    OS: Windows 11 10.0.22631
    CPU: (16) x64 13th Gen Intel(R) Core(TM) i5-13490F
    Memory: 12.96 GB / 31.84 GB
  Binaries:
    Node: 20.15.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.22 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 10.7.0 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.5.0 - C:\Program Files\nodejs\pnpm.CMD
  Browsers:
    Edge: Chromium (119.0.2151.58)
    Internet Explorer: 11.0.22621.3527

Steps to reproduce
when i add  'as any' in template, the ui color is wrong, include end tag, end “”

What is expected?
ui fix
What is actually happening?
every time
Link to minimal reproduction
No response
Any additional comments?
No response

Same issue. This is not the only problem.
The code lost its highlighting after the as type assertion.

And when I added brackets around it, the highlighting returned to normal.

However, the end tag still appears abnormal.

Duplicate of #520


qownnotes: 19.12.15 -> 20.2.2

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/qownnotes/versions.
meta.description for qownnotes is: '"Plain-text file notepad and todo-list manager with markdown support and ownCloud / Nextcloud integration"'.
meta.homepage for qownnotes is: '"https://www.qownnotes.org/"

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 20.2.2 with grep in /nix/store/iq45n1vzf3l49f0sxqcvc32qah7flw35-qownnotes-20.2.2

directory tree listing: https://gist.github.com/a711de5b664b707933fd31bc1afec5e6

du listing: https://gist.github.com/8c0fab773518b6ac506aef03aeeb2301

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

4 total rebuild path(s)
1 package rebuild(s)
1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
1 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)
First fifty rebuilds by attrpath
qownnotes

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/iq45n1vzf3l49f0sxqcvc32qah7flw35-qownnotes-20.2.2 \
  --option binary-caches 'https://cache.nixos.org/ https://r-ryantm.cachix.org/' \
  --option trusted-public-keys '
  r-ryantm.cachix.org-1:gkUbLkouDAyvBdpBX0JOdIiD2/DP1ldF3Z3Y6Gqcc4c=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

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

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/iq45n1vzf3l49f0sxqcvc32qah7flw35-qownnotes-20.2.2
ls -la /nix/store/iq45n1vzf3l49f0sxqcvc32qah7flw35-qownnotes-20.2.2/bin

cc @dtzWill for testing.

@r-ryantm current is 20.5.11 please update PR.


Python Server: experiment test requires file identifier

Environment:
Netron version: https://github.com/lutzroeder/netron/commit/e03d63730c9a35087618d58ff15e689eba253f04
Python version: 3.9.16
Operating System: MacOS 14.3
Description:
I am facing an issue while running the _test_onnx function in test/backend.py. The JSON graph is constructed and passed to the _ContentProvider as expected. However, when the _HTTPServerThread is started to display the graph, the Netron welcome page is loaded instead of the intended graph visualization.
The difference I noticed between the version on which I was working (from December 2022) and the current one on main, is that in this loop there was the element [Log] <meta name="file" content="/data/model.netron"> which isn't present anymore.

@ParGG can you explain why you are using this experimental test instead of saving to a .onnx file and serving the file.

Hey @lutzroeder, I need programmatic control over certain types of graphs for our purposes. Therefore, the Python interface is very useful.

@ParGG can you provide more context. For example, why would it not work to use:
onnx.save(model, 'example.onnx')
netron.start('example.onnx', browse=False)


Enable zend.assertions in composer.json

Enables zend.assertions on the fly when running phpunit via composer
script so it must not be enabled in the local php installation for
development.

thanks @bcremer
a simple and smart improvement

@marcelthole You may need to enable the assert also for the infection run to get rid of this escaped mutant:


Feature request: ToC as side bar

Would be really cool to have an option to render the ToC on the right hand side of the main area similar to this:
https://rise-lang.org/doc/language-reference/rise-types/
Right now, the ToC box is quite small and headers are often broken into several lines - which makes the ToC box a bit harder to read. Furthermore, the ToC shrinks the space for code boxes and the "Copy to Clipboard" button isn't visible. Finally, having a ToC box anchored on the top right would also enhance the overall reading/navigation experience.

Hi @jothepro ! Any news on this (amazing) feature and maybe a planned release date?

The feature has already been released with v2.1.0
I'll close this issue to avoid confusion.

Great work. Love it :)


WASM: memory validation

Add more validation to the memory descriptor and opcodes to be compliant with the spec.

This change is

:shipit:


[SPARK-5939][MLLib] make FPGrowth example app take parameters

Add parameter parsing in FPGrowth example app in Scala and Java
And a sample data file is added in data/mllib folder

Test build #27814 has started for   PR 4714 at commit 3bb74f6.

This patch merges cleanly.

Test build #27814 has finished for   PR 4714 at commit 3bb74f6.

This patch passes all tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
  case class Params(

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

Test build #27821 has started for   PR 4714 at commit 8c478b3.

This patch merges cleanly.

Test build #27821 has finished for   PR 4714 at commit 8c478b3.

This patch passes all tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
  case class Params(

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

LGTM. Merged into master and branch-1.3. Thanks!


Form / Settings

Should we consolidate "settings" projects to Form

Should we move Form under Table View..

From #1063
@lfarah

/Form & Settings section?
I don't think so. Forms are a smaller group that only happen to use TableViews, but they are more "advanced".

Take the Hardware section as an example.
Hardware
Bluetooth
Camera
Force Touch
iBeacon
Location

Force Touch is a hardware
Camera is a hardware
Form is not a TableView. It is way more than that:

What do you think?

Same for @vsouza

I'm ok with fothis m and settings
Thx


TASK: Create an invoice fulfillment workflow diagram

Summary
Create a diagram and documentation for the invoice fulfillment pipeline.
To Do

[ ] {Description of change 1}
[ ] {Description of change 2}

Definition of Done

[ ] A link to a diagram of the invoice fulfillment pipeline can be found in the README.md
[ ] Someone unfamiliar with the invoice fulfillment process can describe the key steps involved by referencing the diagram and documentation

First draft of the mermaid diagram:
flowchart TB
    subgraph Email
        V1(Vendor 1)
        V2(Vendor 2)
        VN(Vendor n)
        I1(Invoice 1)
        I2(Invoice 2)
        I3(Invoice 3)
        IN(Invoice n)
        StaffFMD(FMD Staff)
        StaffHVAC(HVAC Staff)
        V1 --creates--> I1
        V2 --creates--> I2
        V2 --creates--> I3
        VN --creates--> IN
        I1 --emailed to--> StaffFMD
        I2 --emailed to--> StaffFMD
        I3 --emailed to--> StaffHVAC
        IN --emailed to--> StaffHVAC
    end
    subgraph Integrify
        ProcessFMD(FMD Invoice Submission)
        ProcessHVAC(HVAC Invoice Submission)
        ReviewFMD([FMD Review Process])
        ReviewAP([AP Review Process])
        Approve1{FMD
Approved?}
        ExistPO{Funds Still
Available?}
        Analyst1(Fiscal Analyst 1)
        Analyst2(Fiscal Analyst 2)
        NewPO[/New Purchase Order Needed/]
        CurrentPO[/Use Existing Purchase Order/]
        StaffFMD --creates--> ProcessFMD
        StaffHVAC --creates --> ProcessHVAC
        ProcessFMD --> ReviewFMD
        ProcessHVAC --> ReviewFMD
        ReviewFMD --> Approve1
        Approve1 --yes--> ReviewAP
        ReviewAP --> ExistPO
        ExistPO --yes-->CurrentPO
        ExistPO --no--> NewPO
        NewPO --> Analyst1
        CurrentPO --> Analyst2
    end
    subgraph CitiBuy
        Req(Requisition)
        ProcessBOP([BOP Approval Process])
        PO(Purchase Order Release)
        Invoice(Invoice Record)
        Receipted{Invoice
Receipted?}
        Receiving([Agency Creates Receipt])
        Paid([BAPS Processes Payment])
        Analyst2 --uses existing--> PO
        Analyst1 --creates--> Req
        Req --initiates--> ProcessBOP
        ProcessBOP --creates new--> PO
        PO --adds--> Invoice
        Invoice --> Receipted
        Receipted --yes--> Paid
        Receipted --no--> Receiving
        Receiving --> Paid
    end


Add evaluation while training in examples/fpn/train_multi.py

Why?
To monitor the training progress using the evaluation metric instead of the loss.
(Also I think this kind of complete example is useful as a reference)
Usage
mprun -n 4 python train_multi.py --val-interval 0  # no evaluation (default)
mprun -n 4 python train_multi.py --val-interval 10000  # evaluation in every 10000 iterations

Comments
I removed sliceable TransformDataset because I didn't see any benefits from that compared to the normal one.
Maybe I'm missing something, so please correct me in that case.

Thanks.
Evaluators will be added to the script soon after we support multi-node evaluators https://github.com/chainer/chainercv/pull/868 .
We didn’t add evaluators first because they are slow.

I see. Is the new evaluator faster than the current implementation? Or it’s just more accurate because it averages the metric over all validation data?

I see. Is the new evaluator faster than the current implementation? Or it’s just more accurate because it averages the metric over all validation data?

The new evaluator is accurate. It calculates the metric using all data. (not averaging metrics of split subsets)

So you mean it doesn’t change anything in terms of speed?

So you mean it doesn’t change anything in terms of speed?

I didn't compare them. But the speed should be same or a little bit worse (the amount of communication will increase).

That’s good to know thanks.
I was just wondering about its speed because @yuyu2172 mentioned about it.
On Fri, May 17, 2019 at 12:58 Toru Ogawa<EMAIL_ADDRESS>wrote:

So you mean it doesn’t change anything in terms of speed?
I didn't compare them. But the speed should be same or a little bit worse
(the amount of communication will increase).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/chainer/chainercv/pull/873?email_source=notifications&email_token=ABA4LEY3Q5DGFZKVXFXJJPTPV2MVHA5CNFSM4HNP3H5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVURWQQ#issuecomment-493427522,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABA4LE4TX2PWH4TM7LHZLBDPV2MVHANCNFSM4HNP3H5A
.

--
Kentaro Wada / 和田 健太郎
https://wkentaro.com http://wkentaro.com

I was just wondering about its speed because @yuyu2172 mentioned about it.

We didn’t add evaluators first because they are slow.

I think he was talking about single-node evaluator. It is accurate but slow. Our new multi-node evaluator is as accurate as it and much faster (not comparing with the existing multi-node evaluator).

I see. I agree that single-node and single-batch evaluator is very slow.


v-ref & v-if problem on child access

Hi,
I'm having some issue using "v-ref" and "v-if", simply put: if I have a "v-if" directive on a node, childs node (whit "v-repeat" and "v-ref") are not accessible to parent view. If I remove the "v-if" directive everything works fine.
My html is something like this (I can prepare a fiddle if needed):

[..].$.subMenuButtons is never accessible if the v-if directive is on DOM.
I understand that the list is not instantiated at all if the "v-if" condition is falsy. But even when the condition became truthy the reference is not set on the parent.
Is this an intended behaviour?
Many Thanks

v-ref is for Vue1 at this point, FYI.


[Feature] Enhance the serverless ability of EventMesh

Search before asking

[X] I had searched in the issues and found no similar issues.

Feature Request
EventMesh currently has Eventing capabilities in the serverless field, but it should also improve and supplement the automatic expansion and contraction capabilities of eventmesh's own services and access services. This service is the coordinator responsible for automatically scaling services connected to EventMesh, supporting automatic scaling from 0 to n and scaling down from n to 0 based on event traffic or other user conditions.
Implement the auto scaling service for eventmesh, which can support different auto scaling strategies by default, or knaive and keda can be selected as plugin services for automatic expansion and contraction of the service.
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

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

Hi @xwm1992 I have previous contribution experience in EventMesh and would love to work on this issue under GSOC24. Can you please guide?

Hi @xwm1992, I have been closely following the project's development and would also like to have the opportunity to work on issues for GSOC 24' under your guidance. Would you please guide me through the further steps?

Everyone can contact the community with any ideas you have, and the tutor will help you to refine the detailed design of this subject.


compilation waring problem when submitting level3

summary and description
Hi. When I submit the files for level 3, it shows a compilation warnings.
Like: ../other/compile.sh: line 178: 15641 Killed                  javac -d . *.java
May I ask is this means something is out of memory? Thank you very much.

I think commonly this means its either out of memory or infinite looping.

IIRC when there is a stack overflow, it be specific:


Model identity between the reconnaissance and attack Phases

Dear Spylab,
Thanks again for maintaining this!
I have another clarification question about the rules:
During the reconnaissance phase we freely interact with the models.
Would we be able to uniquely identify the model identity in the attack phase, to use specific knowledge about this model gained in the reconnaissance phase?
Also, I wanted to suggest that you might want to scale the scoring for each model by the number of attacks that succeeded against it. In that way, breaking a strong defense would give one more points (and it would make using more tokens or more messages beneficial for against stronger defneses).
Happy new year,
Niv.

Would we be able to uniquely identify the model identity in the attack phase, to use specific knowledge about this model gained in the reconnaissance phase?

(Assuming by "model" it is "defense")
Yeah, definitely. Our current implementation assumes the defense IDs will be identical; in any case it will be indicated somehow.

I wanted to suggest that you might want to scale the scoring for each model by the number of attacks that succeeded against it.

This is our current draft (not final, especially wrt what exactly is counted in P_{D, i} and how many {i} we have):

Does this conform to what you suggested? We want to have "breaking a strong defense would give one more points",
but also a leaderboard (so attackers know which defenses give more points), but this means we also need incentives for attackers to actually provide information for the leaderboard.

Hi. It appears to be different from the existing published draft, which includes a deduction for each message and tokens. Now the deduction seems to be based solely on the chat number?
Anyway, I like to propose a different idea for scoring. Each defense safeguards a secret worth 1 point. This point is distributed among all successful attackers, depending on how effectively they performed:
$Effort(K, I)$ is the number of chats required by team $K$ to 'breach' defense $I$, and $\infty$ if the team did not reveal the secret.
$$DefenseScore\big(I) = \sum\limits_{\LARGE{J} \atop \text{all teams}}\frac{1}{Effort(J, I)}$$
$$AttckScore\big(K, I) = \frac{1}{Effort(K, I)} \cdot \frac{1}{DefenseScore\big(I \big)}$$
$Effort(K, I)$ It can be easily modified to include factors such as input tokens/messages sent, etc., and to adopt a non-linear approach.  The total score for a team attack is the aggregate of its scores across all defenses.
Specifically, an impenetrable defense scores 0 points. Additionally, if an attacker is the sole individual to breach a defense that is considered extremely difficult, they will receive a full point.

https://ctf.spylab.ai/static/rules.pdf contains our current thinking on the scoring of the Attack phase.

Hi. It appears to be different from the existing published draft, which includes a deduction for each message and tokens. Now the deduction seems to be based solely on the chat number?

The message and token deductions were intended as "tiebreakers" (to fuzzily rank the teams who break the same defenses) in the case there was "one opportunity for the attacker to chat and discover the secret". We thought for a bit and figured that:

even with reconnaissance, it's going to be tough for the attackers to succeed on the first try;
having one chance at breaking any given (defense, secret) in the Evaluation phase is very unforgiving in case the attacker just messes something up. This is opposite of standard security settings, where the attacker may have some time and opportunity constraints, but we still never deem something secure if the security testing involved the attacker having only one attempt.

Hence, we now have multiple chat opportunities for the attacker, and the number of chats itself presents itself as a nice tiebreaker/deduction... So we decided to remove the other ones to make the scoring simpler.
In case there are many defenses, we might still simplify by reducing T to 1.

Anyway, I like to propose a different idea for scoring. Each defense safeguards a secret worth 1 point. This point is distributed among all successful attackers, depending on how effectively they performed:

We'll consider this, and we did discuss similar CTF-like scoring rules, but currently we prefer simply reducing the defense's value by ~1% each time any attacker breaks it, instead of tracking the attack and defense scores in such an interdependent way.

Thanks for the answer @dpaleka!
And thanks for the suggestion @regoar. I like that this suggestion scales well without knowing in advance the number of participating teams, or how hard the defenses would turn out to be.

Thinking about it again, I would like to ask another question on this topic @dpaleka:
If the attack scores is proportional to the number of sessions, would there not be any penalty for extremely long sessions?
In such a case, an attacker could use a single session to attempt many different attack strategy; or am I missing something?
Thanks!
Niv.


Display more columns in Atlas table view

bg-atlas API shows more info when calling show_atlases but this info is generated on the fly by the function, and not accessible directly elsewhere (so maybe that should be refactored before tackling this). That info should also be displayed and kept up-to-date in the Atlas viewer's table view.

Duplicate of #21


findAll returns zero results from H2

Magnum findAll returns zero results from H2 - when it should return a result of 1.
The following project - https://github.com/objektwerks/magnum - can be used via - sbt clean test - to reproduce this issue. Read the test console output for details. The project code will provide additional details.

We have good coverage of H2 including findAll: https://github.com/AugustNagro/magnum/blob/master/magnum/src/test/scala/H2Tests.scala
I think the problem in your JMH test is that you need a
@Setup
def setup(): Unit = ???

Method that populates the database rows. The rows inserted from
  @Benchmark
  def addTodo(): Todo =

Will not be visible from the other benchmarks; the in-memory H2 instance is fresh.
Please share the results when done, I'd like to see them. I expect Magnum to perform well, given its low abstraction & code size.

In addition to the Github documentation, I referenced H2Tests extensively to build my project. So I was quite surprised to see findAll fail in my simple StoreTest. :)
Did you run - sbt clean test and read the test console output?
The issue is with findAll failing to return a Vector of length == 1.
...
At this time, my issue is not with sbt:jmh and Performance.
I have a Quill project ( https://github.com/objektwerks/quill ) that mimics my Magnum project; and for both projects - running sbt:jmh fails with this issue: https://github.com/sbt/sbt-jmh/issues/192
As I recall, sbt:jmh used to work with Java 8. :) It works just fine in my non-jdbc projects.
The Quill project StoreTest, though, passes; where the Magnum StoreTest fails.

The problem in StoreTest is that the runscript is dropping table Todo every time a new connection is made.
You can change url to url = "jdbc:h2:mem:test;DB_CLOSE_DELAY=-1", and then initialize the db once:
  Using.Manager(use =>
    val con = use(ds.getConnection)
    val stmt = use(con.createStatement)
    val sql = Files.readString(Path.of("ddl.sql"))
    println("executing \n" + sql)
    stmt.execute(sql)
  ).get

Quill maintains the single connection, whereas Magnum creates a new connection every connect/transact call.
Note that you should be calling transact at a higher scope and then share the connection.
So for example, call transact in StoreTest, make each Store method require the implicit:
  def count(): Long =
    transact(ds, withRepeatableRead):
      repo.count

Becomes
  def count(using DbTx): Long = repo.count

This will then match Quill's behavior. You should also replace transact with connect, because I don't think Quill is running with transactions.

Brilliant! I refactored accordingly, and everything works as expected. Thanks! And apologies for failing to understand the finer points of Magnum. :)
Currently, I use transact for writes and connect for reads.

Closed.

Glad it's working now.

Currently, I use transact for writes and connect for reads.

Why? If you have this running in parallel:
myWrite()
myRead
myWrite2()

You will easily have dirty reads: https://www.postgresql.org/docs/current/transaction-iso.html
To use transactions safely you would use DbTx and DbCon: https://github.com/AugustNagro/magnum#type-safe-transaction--connection-management

After my initial euphoria wore off a bit, I noticed having Magnum code in Performance and StoreTest ( user code ) was not ideal. So I added Delegate ( a level of indirection ) to Store, allowing me to remove all Magnum code from my user code.

There's no reason to use transactions for methods that only execute one sql statement. The whole point of transactions is that they roll-back if your code throws an exception. But that won't be possible using your Store class.

Question: What is ScalikeJdbc ** doing that Magnum and Quill aren't doing?

Did you try the fix suggested in https://github.com/AugustNagro/magnum/issues/17#issuecomment-1711139093 ?

In Store and Delegate, I use transact/DbTx and connect/DbCon, for add/update and list, respectively.
Note, ScalikeJdbc has DB localTx and DB readOnly, while Quill has transaction and query. Other Jdbc libraries function similarly.
On an insert or update, I want a transaction/rollback capability for 1 or more sql statements. On a database select, I don't want a transaction - just a read only capability. I assumed I had those capabilities with transact/DbTx and connect/DbCon, respectively.
With all other Scala Jdbc libraries, I can readily converge Store and Delegate. Magnum, as you explain above, requires me to separate transact/connect from ```DbTx/DbCon`` in an effort to keep Magnum code out of my user code.
I don't know how else to explain it. :) Naturally, remote communications has it challenges. ;) Thanks for your help!
...
I did try to your setup suggestion with Performance, but to no avail. I suspect a class loader issue; but who knows. ;)

Using jmh 0.4.7 and JDK 22, my benchmark run works!
OpenJDK Runtime Environment Zulu22.28+91-CA (build 22+36), **Scala 3.4.1-RC2**, Apple M1
1. addTodo - 4.455
2. listTodos - 1.901
3. updateTodo - 3.648
Total time: 604 s (10:04), 10 warmups, 10 iterations, average time in microseconds, completed **2024.3.21**


Extended usage documentation

As this code is a part of ongoing research it is required to be clear and well documented.
Currently there are a few more scripts that were added recently. These need to be properly addressed in the README.

Added in https://github.com/Kaszanas/SC2DatasetPreparator/pull/39


fix: Updated dependencies to remove vulnerabilities

Fixes #78
Changes

Updated axios library from 1.6.0 to 1.7.4 which fixes CVE-2024-39338
Ran npm audit fix to resolve peer dependencies with vulnerabilities as well

@riyadhalnur Please look into this :smiley:

Thank you! Merged 🚀


Support metered connections

VS Code, as any Windows application, should respect system-wide settings of metered connections.
It's bad experience for people who are on the go and connected via mobile internet.
Proposed behavior:

VS Code doesn't attempt to update itself or extensions when on metered connection.
When user manually clicks to update, it should display popup dialog with confirmation to start update.
(optionally) Expose API to extensions.

Related:
https://github.com/microsoft/vscode/issues/75195
https://github.com/microsoft/vscode/issues/8540

Tagging everyone who previously asked for this feature, so they can lend their 👍 to the issue description above.
#8540: @Weetbix @osnoser1 @jens1o @SetTrend @muhd-ali @doom777 @Vanilagy
#47685: @SetTrend
#60741: @Jawz84
#62615: @fatherjack
#75195: @AlexJPawlak @mittalyashu
#84424: @Tracy-P

This currently happened to me, after I opened vscode it took over 300MB on the metered connection from a 1GB data program.

We need this!
Vs Code recently downloaded updates while I was on Roaming data and cost me a lot!

Soon two year anniversary since this moved to Backlog. Even though I am on a generous plan, I would very much like VSCode to respect the OS settings.

Hi there, same issue here and thought that VS Code already have that due to its synergy with windows. Seems I was mistaken.

This needs to change. I agree.

Now half way through 2024 and still nothing

This doesn't even sound hard to implement. I'm surprised there's a ticket for it in 2024. Maybe the developers of this software live in a country that every connection is high speed and unlimited that they don't care for the rest of the world?
I would like to keep the settings of automatic update the same on vs code (of also different devices), because I use multiple wifi connections at home, train, cafe, office, etc. I'm not going to set it to "automatic" every time I arrive at the office or at home and set it to "manual" before leaving. These sessions can be from a few minutes to a couple of hours.
The software should simply honor the metered status of the internet connection.

@darvi-sh There is a general bias of developers to write their software assuming perfect internet and fast computers - because that's what they typically have during development. It takes conscious effort from the developers to remind themselves that this is not a fact of life for everybody.


Pre-Merge PR Checks for Diagnostics Plugin

What this PR does / why we need it

This does the same thing as the e2e test on main... except this checks to make sure that PRs submitted against the diagnostics plugin will pass the tests before getting merged into main. If the test fails, merging will be blocked until the issue is addressed.
The e2e-test.sh was broken out into:

setup-e2e-test.sh which handles setting things for the e2e test
reworked the e2e-test.sh which now only performs the checks/tests without setup so we can run against latest TF

Details for the Release Notes (PLEASE PROVIDE)

Pre-Merge PR Checks for Diagnostics Plugin

Which issue(s) this PR fixes

NA
Describe testing done for PR

NA
Special notes for your reviewer

NA

This is ready for review... the PR check is passing here:
https://github.com/vmware-tanzu/community-edition/runs/4142852334?check_suite_focus=true


Document followUserLocation (Boolean)

Right now it's not documented under https://github.com/lelandrichardson/react-native-maps/blob/master/docs/mapview.md.  In order to disable following on iOS, this is needed (had to dig up the React Native docs that have it, to then realize it's also a prop in this lib).

Is this a bug?  If you pass false, then it will still follow location despite this code https://github.com/lelandrichardson/react-native-maps/blob/124039be1808a67e842d6bafa71d01b94431930d/ios/AirMaps/AIRMapManager.m#L314-L323.  So we have to enable it to true, in order it to get disabled?

It also needs patched too, see this comment on StackOverflow (it was broken in RN v0.19 and the files AIRMAP.h and others need patched too).
http://stackoverflow.com/a/35233142

Also, I think the iOS emulator automatically adjusts/centers MapView if you are running simulation of a car driving.  I have tested with bike and walking simulations (with geolocation on Simulator), and it seems that it only occurs for driving.  In other words, if you do bike/run in Simulator, it does not follow the user and re-center the map, however on driving mode it does.

related https://github.com/lelandrichardson/react-native-maps/issues/53

Closing since this is a duplicate of #53.


Support for external HolyBro GPS module.

Confirm support for the external GPS with separate external GPS
Add driver to support the I2C_0 compass, and the M8N GPS module
Additional context
Holybro Pixhawk 4 Neo-M8N GPS
Holybro now offers a new GPS which works with the Pixhawk 4. It has a UBLOX M8N module on it, as well as an IST8310 compass and tri-colored LED indicator, along with the Safety switch making the connection more convenient and simple.

PixHawk4 GPS has - 1. UBLOX M8N module (GPS) over UART 2. IST8310 compass over I2C.
Current Zephyr code doesn't have drivers for both these modules.
I have referred Nuttx code to get drivers for similar devices.


PHP Fatal Error when retrieving certain pages.

Guzzle version(s) affected: 7.8.0
PHP version: 8.1.17
cURL version: 7.68.0
Description
When trying to retrieve an Instagram profile page, it returns a "429 Too Many Requests" response that causes a PHP Fatal error, as shown below.  I realize scraping Instagram is not recommended, but using here to demonstrate the issue I found.
mod_fcgid: stderr: PHP Fatal error:  Uncaught GuzzleHttp\Exception\ClientException: Client error: GET https://www.instagram.com/facebook/ resulted in a 429 Too Many Requests response in /home/user/.php/composer/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113
How to reproduce
Attempt to get an Instagram Profile, such as https://www.instagram.com/facebook/.
Full PHP code on the page that calls Guzzle:
$url1 = 'https://www.instagram.com/facebook/';
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', $url1);
echo $response->getStatusCode(); // 200
echo $response->getHeaderLine('content-type'); // 'application/json; charset=utf8'
Full Stack Trace
mod_fcgid: stderr: PHP Fatal error:  Uncaught GuzzleHttp\Exception\ClientException: Client error: GET https://www.instagram.com/facebook/ resulted in a 429 Too Many Requests response in /home/user/.php/composer/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113
mod_fcgid: stderr: Stack trace:
mod_fcgid: stderr: #0 /home/user/.php/composer/vendor/guzzlehttp/guzzle/src/Middleware.php(72): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response), NULL, Array, NULL)
mod_fcgid: stderr: #1 /home/user/.php/composer/vendor/guzzlehttp/promises/src/Promise.php(209): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Response))
mod_fcgid: stderr: #2 /home/user/.php/composer/vendor/guzzlehttp/promises/src/Promise.php(158): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), NULL)
mod_fcgid: stderr: #3 /home/user/.php/composer/vendor/guzzlehttp/promises/src/TaskQueue.php(52): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}()
mod_fcgid: stderr: #4 /home/user/.php/composer/vendor/guzzlehttp/promises/src/Promise.php(251): GuzzleHttp\Promise\TaskQueue->run(true)
mod_fcgid: stderr: #5 /home/user/.php/composer/vendor/guzzlehttp/promises/src/Promise.php(227): GuzzleHttp\Promise\Promise->invokeWaitFn()
mod_fcgid: stderr: #6 /home/user/.php/composer/vendor/guzzlehttp/promises/src/Promise.php(272): GuzzleHttp\Promise\Promise->waitIfPending()
mod_fcgid: stderr: #7 /home/user/.php/composer/vendor/guzzlehttp/promises/src/Promise.php(229): GuzzleHttp\Promise\Promise->invokeWaitList()
mod_fcgid: stderr: #8 /home/user/.php/composer/vendor/guzzlehttp/promises/src/Promise.php(69): GuzzleHttp\Promise\Promise->waitIfPending()
mod_fcgid: stderr: #9 /home/user/.php/composer/vendor/guzzlehttp/guzzle/src/Client.php(189): GuzzleHttp\Promise\Promise->wait()
mod_fcgid: stderr: #10 /home/user/mysitename.com/guzzletest.php(8): GuzzleHttp\Client->request('GET', 'https://www.ins...')
mod_fcgid: stderr: #11 {main}
mod_fcgid: stderr:   thrown in /home/user/.php/composer/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php on line 113

Guzzle is behaving correctly here. I don't know what the purpose of the issue was?

Ah, ok, thanks.  I'll check the documentation to see what all responses will cause Guzzle to throw a fatal PHP error and see how to work around them.  Thanks!

The fatal error is occurring simply because there is an uncaught exception, as per usual PHP behaviour.

Thank you Graham... I did indeed find what I was looking for in the documentation (http_errors => false).  I know I know... RTFM.


Bundle Error

So my build succeeded but my metro bundler throws this error:

I do not know why this happens. But my last step was to include the react-native-linear-gradient package as told in their docs.
React Native version:
info
React Native Environment Info:
System:
OS: macOS 10.14.2
CPU: (4) x64 Intel(R) Core(TM) i5-4260U CPU @ 1.40GHz
Memory: 275.65 MB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 11.6.0 - /usr/local/bin/node
Yarn: 1.5.1 - /usr/local/bin/yarn
npm: 6.5.0 - /usr/local/bin/npm
SDKs:
iOS SDK:
Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
IDEs:
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
react: ^16.8.6 => 16.8.6
react-native: ^0.59.7 => 0.59.7
npmGlobalPackages:
create-react-native-app: 2.0.2
react-native-cli: 2.0.1

Hello there 👋 this issue doesn't have a repro (which means, a react-native init-ed project with the minimal changes that leads to creating the same issue you are reporting). Unfortunately, I have no way of helping you in a meaningful way – there is no easy way for me to recreate the situation and check that the issue reported is still there when changing the code.
Also, you seem to suggest that maybe something went wrong when you added the linear-gradient - and metro is saying that it can't file a podgenerated file. Maybe something went wrong when you installed the library?
Because of this, we are going to close this issue - but if a repro is shared, we are happy to reopen it 🤗


Get error "Uncaught Invariant Violation: .........."!

I use it with "Flow Router (SSR)".
Get error
Uncaught Invariant Violation: addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component's `render` method, or you have multiple copies of React loaded (details:

Hi, I'm on holiday at the moment. Won't be able to look at this until Wednesday.

Thanks for your reply.
Waiting ...

same here...

Sorry, been a bit overwhelmed lately and haven't had time to address issues.
I don't use FlowRouter myself, so it's hard to say whether that is the problem. I think it might be because there are multiple react versions running (I had that issue which was easy to solve with webpack). How are you guys adding react to your project, and which form UI package  are you using (semantic or material ui)?

Hey, no problem.
I am using Mantra and have added react (v 0.14.7) and material-ui (v 0.14.4) by npm. The UI Package I am using is material. Don't know if this is a FlowRouter issue.
Here is my npm ls | grep 'react':
├──<EMAIL_ADDRESS>grep 'react'
├─┬<EMAIL_ADDRESS>│ ├─┬<EMAIL_ADDRESS>│ ├─┬<EMAIL_ADDRESS>│ │ ├─┬<EMAIL_ADDRESS>│ └─┬<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>│ ├─┬<EMAIL_ADDRESS>│ │ ├──<EMAIL_ADDRESS>│ └─┬<EMAIL_ADDRESS>│   └──<EMAIL_ADDRESS>├─┬<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├─┬<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├─┬<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├─┬<EMAIL_ADDRESS>├─┬<EMAIL_ADDRESS>Looks ok to me. Maybe you have an idea?
Thanks a lot for your work!

Yep, I'm pretty sure it's because you are loading react from npm and this package uses Meteor's react package, so it's causing two version of react to be loaded.
I'll publish this package to npm so that you can add it from there instead, which should take care of the issue. Will do it within a couple of hours, I'll post back when it's up.


Rename PreparedOperation.createObservable()

It should clearly show intent: observable that will be created will listen only 1 result
See #74
@nikitin-da what do you think?

Hm, createObservableStream for 1 result? Is not quite clear for me  :( May be createResultObservable?

Not required :)


[Fastlane.Swift] Runner hanging on failure

New Regression Checklist

[x] Updated fastlane to the latest version
[x] I read the Contribution Guidelines
[x] I read docs.fastlane.tools
[x] I searched for existing GitHub issues

Regression Information

Breaking version: [e.g. 2.149.0]
Last working version: [e.g. 2.148.1]

Regression Description

This behaviour happens for any lane (scan, etc..) which do not have an error_callback, and sometimes also the lanes that have an error_callback but only for certain kind of errors (i.e. sh with a command not found error).
Code Samples:
class Fastfile: LaneFile {
    func testLane() {
        sh(command: "echoo") { error in
            sh(command: "echo OK")
        }
    }
}

class Fastfile: LaneFile {
    func testLane() {
        sh(command: "ls stuff")
    }
}

@minuscorp 👋 Hey! Do you mind taking a look at this whenever you get some time? 😊

There seems to be 2 cases where the new logic fails:

Any lane without an error_callback specified will hang if it fails
For lanes that have an error_callback specified, it will still hang for certain kind of errors (i.e. command not found)

My guess is that the logic for handling failure is the faulty part, and in the case of an error_callback specified, the server socket won't actually return an error but a readyForNext. That would explain why it works sometimes for lanes with an error_callback.

Yeah, the Swift part goes ahead with the execution if it receives a ready_for_next from the Ruby Socket, so the Ruby part for some reason is not getting the correct status code from the execution of each of this parts. As we left the Ruby part unchanged with the last PR, could you get a latter version of fastlane and test if this happens in the same way? (with no closures ofc). Until the weekend I'm quite out of time 😅

Thinking of it, I'm quite sure why is happening, but I'll need more time to fix it 🗡

@minuscorp I was running it on the last version of Fastlane, I've put the breaking version as 2.149.0 because it was not happening before then, but my findings are based from master 👍
Let me know if there's anything I can do to help apart from testing, I've already created a PR (https://github.com/fastlane/fastlane/pull/16675) for increasing the default socket timeout which we are reaching more easily now with the new App Store Connect API 😢
It'd be great if you could take a look, I also did some refactoring/code styling! 👌

Let me first solve the issue, then we can jump into that!

Hey @jhandguy! I've been looking into the releases, and it seems that no public release has been done regarding Fastlane.swift but one with argument parsing from Ruby to Swift interface (which does not interfere in this issue). Can we confirm that my PR is not released yet @joshdholtz?
Thank you both for the work!

Hi @minuscorp, yes your PR was released, I can confirm I was getting your changes when updating to 2.149.0 (that’s why I created this issue at the first place). I also saw your PR wasn’t added to the release notes though that’s weird 🤔

You saw another PR I worked with in that week 😅

Oh you're right @minuscorp, my bad, it was introduced in 2.150.0.rc1 not 2.149.1, I'll update the description!
None the less since the new App Store API and everybody needing to update to 2.150.rc3 now, I'd still count it as released (maybe unwillingly?) 🤔

Thanks, for the awesome work BTW, it's great to see Fastlane Swift moving forward! 💪

Fixed in 2.150.0! 🎉


Text accessibility - Resizing

Issues:

#98
#128
#151
#176
#253

We should tackle the above issues with a better approach to text in the App. See comments on #128 Rules for Text Resizing for a possible approach. Ideally we should create component(s) that encompass this logic so that we do not have to keep revisiting this.

Closing as the linked issues have now been fixed.


Move to DiaSymReader 2.0

The inclusion of System.Private.Uri as a package reference was done to solve component governance issues. This came specificaly from including nestandard1.6 in our dependency graph via Microsoft.DiaSymReader. There is now a netstandard2.0 version of that package that we can move to and, should, let us remove the System.Private.Uri references.
A similar change is going through roslyn now that will eventually let us remove this entirely. In the meantime though it's fine to have an explicit reference here.

@DustinCampbell, @dotnet/razor-compiler


CNAB bundle name must be lowercase?

Description
In the CNAB Identifying Metadata section it states that name MUST contain only characters from the Unicode graphic characters. and The Unicode graphic character set allowed for name includes letters, numbers, punctuation, symbols, and spaces; it does not include newlines or tabs.
However, I observed that docker-app is enforcing a requirement for the CNAB bundle name to be lowercase.
Steps to reproduce the issue:
Using the following docker-app definition:
version: 0.1.0
name: Ubuntu
description: Ubuntu 18.04 Container
---
version: '3.2'
services:
  ubuntu:
    image: ubuntu:18.04
    restart: always
    tty: true
---

Run docker-app render on the above file.
Describe the results you received:
When I attempted to render the above definition, I received this error:
Error: image name "Ubuntu:0.1.0-invoc" is invalid, please check name and version fields: invalid reference format: repository name must be lowercase
Describe the results you expected:
docker-app would render a docker-compose file.
Additional information you deem important (e.g. issue happens only occasionally):
Perhaps there is a good reason docker-app enforces this rule, but I'd like to understand why (so I can document it).
Output of docker version:
Docker version 19.03.2-ce, build 6a30dfca03

Output of docker app version:
docker-app version v0.8.0, build 7eea32b7

Output of docker info:
Client:
 Debug Mode: false

Server:
 Containers: 2
  Running: 2
  Paused: 0
  Stopped: 0
 Images: 11
 Server Version: 19.03.2-ce
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: fd103cb716352c7e19768e4fed057f71d68902a0.m
 runc version: 425e105d5a03fabd737a126ad93d62a9eeede87f-dirty
 init version: fec3683-dirty (expected: fec3683b971d9)
 Kernel Version: 5.0.21-lmp-standard
 Operating System: Linux-microPlatform 3.0-50
 OSType: linux
 Architecture: x86_64
 CPUs: 4
 Total Memory: 15.51GiB
 Name: intel-corei7-64
 ID: 7TRC:OKJZ:REIM:ROKL:RZH6:OJL5:DDHE:ML4B:G2CR:CEUD:T6VL:ATXV
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  <IP_ADDRESS>/8
 Live Restore Enabled: false

@EmbeddedAndroid thanks for reporting this.
Docker App is not enforcing this but docker is, a docker image name cannot have uppercase letters.
When you run render we create the invocation image and run render inside it. We take the name of the image from the metadata (Ubuntu in your case), hence the error.
We'll take a look at this and figure out what we want to do in this case, the most straightforward thing to do would be to take the name of the application and make it compatible with docker.

@rumpl Thanks for the explanation, now it makes sense to me.
I will document this behavior for our users so they don't stumble over this for now. Thanks for the great work on docker-apps!
P.S. We've added support to deliver docker-apps via theupdateframe on embedded devices. If you curious, we did some live demos on youtube here: https://www.youtube.com/watch?v=2k73RVpbjjw

Awesome, thanks for sharing this! Would you be interested in a ~1h session with us so that we can show you what's coming in the future? Would love to have some feedback too.

Awesome, thanks for sharing this! Would you be interested in a ~1h session with us so that we can show you what's coming in the future? Would love to have some feedback too.

No problem at all!
I would be very interested in having a session, would i be able to invite a few engineers my from team as well? Drop my an email at<EMAIL_ADDRESS>and we can go from there!


Make $txt['like_post_users_who_liked'] more localization friendly

Found another one: in LikePosts.english.php the phrases are splited and it's difficult/impossible to translate in other languages. Why not use the jolly phrases (%1 ) like in the other language files?
Eg:
like_post_users_who_liked: users who liked this post
So on the forum it will be: 10 users who liked this post
but in italian I have to translate it like: " A 10 utenti piace questo post"
and if I'am not wrong there are other splited phrases.

https://www.elkarte.net/community/index.php?topic=5144.msg36508#msg36508

While you are looking at this file please check the other phrases, there are a few splitted and it's difficult and not intuitive to translate. Thank you

@radu81 I missed that one, and since the patch is already in testing I'd prefer not to "open it" again (there is already some tricky problem as it is lol).
Would you mind indicate which other texts should be revised?

sorry for the delay, I'll take a look tonight


gcc: error: unrecognized command line option '-fstack-clash-protection'

bigchaindb-driver version: Could not install because of this issue, NA
bigchaindb server version (bigchaindb -v): V 1.4
Python version: 3.4.6
Operating System: SUSE Linux Enterprise Server 12 (x86_64), VERSION="12-SP3"

Description
I want to install the bigchaindb driver using the command- pip3 install -U bigchaindb-driver in order to run the command pip install -e .. This is one of the steps to do the benchmark tests for bigchaindb https://github.com/bigchaindb/benchmark, which I received from @ttmc on gitter. During the installation of bigchaindb driver I keep on getting the following error-
gcc: error: unrecognized command line option '-fstack-clash-protection'
error: command 'gcc' failed with exit status 1
I am curently running GCC version 4.9, recently upgraded from 4.8. I came to know that this problem can only be solved with GCC version 4.9 or higher so I upgraded the version but could not solve the problem.
What I Did
git clone https://github.com/bigchaindb/benchmark.git
cd benchmark
pip install -e .
bigchaindb-benchmark -h
bigchaindb-benchmark send

Before step 3 I used the following command-
sudo pip3 install -U bigchaindb-driver
In this step I started getting the above mentioned error.

The bigchaindb-benchmark tool is open source, so anyone can run it, but it has mostly been a tool for our own internal use (so far), so it doesn't have very detailed instructions yet. In particular, it doesn't say (but maybe it should):

Use Ubuntu 18.04
Use BigchainDB Server 2.0.0b5, i.e. pip3 install bigchaindb==2.0.0b5
Use Python 3.6+

I don't know if that will be enough for you to get it working. We plan to write more about benchmarking next week.

Thank you @ttmc for your suggestions. These recommendations are hard for me to follow:

Using Ubuntu not an option for me, as it is being done at customer end who uses SUSE Linux.
I was avoiding using V2 for now as I don't want to use Tendermint because of some connectivity issues. Eventually will be moving to V2 in some time.
I updated version of Python today, it was the latest version available on SUSE.

I would be really grateful to you if you could help me in my situation with lots of restrictions(sorry).
I thank you in advance and look forward to your reply and also the official benchmarking.

It should be possible to get everything working on SUSE Linux, but I'm afraid you'll be on your own to get all the necessary dependencies installed. The trickiest one is the Python cryptography package. Maybe check out their documentation to see if they have any advice for SUSE Linux users.
https://cryptography.io/en/latest/
Version 2.x of BigchainDB Server is significantly different from the 1.x series, hence the change in the major version number. There are breaking changes. Transactions that were valid with 1.x (v1 transactions) are not valid with 2.x (v2 transactions).
BigchainDB Server only works with Python 3.6+. It should complain if you try to install it with Python 3.5 or lower.

Thank you @ttmc for your reply. I will try to install all the packages including cryptography package on SUSE and upgrade the Python Version.
As you adviced will also upgrade the BichainDb version( Though I want to have benchmark results for both versions, I will try it) and contact you again in case I require assistance.


upgrading to version 5.x how to update package

We've done aother upgrade of the CC following the instructions: Upgrading from v5.x to latest version
It does not mention anywhere to create new package, just sync and restart. However nothing has changed on the teams admin side and it still doesnt work with new Teams.. Please advise how to process this update, and probably include that in your instructions.. Do I have to create a new package?

Hi @allthetrouts ,
Thanks for raising the query. if the steps mentioned in the migration guide are followed correctly then try to open teams on desktop client and access the application.
No need to update the manifest file and re-upload them to teams admin center as the app id's, app domain are not going to change.

The steps were followed correctly, there arent very many of them. I can assure you its not updating. Having been deploying and updating this app for over a year it never works like the documentation. Looking at yet another full redeploy.

@allthetrouts ,

What was the version before migrating?
Please share the screenshot of author app.


selfhost/lexer+parser: Add support for parsing typecasts

A new token for the as keyword is added, and the parser is adjusted
to recognize it during the check for postfix operators. A new UnaryOperator
Typecast is added to represent the result of parsing.

Hello!
One or more of the commit messages in this PR do not match the Jakt code submission policy, please check the lint_commits CI job for more details on which commits were flagged and why.
Please do not close this PR and open another, instead modify your commit message(s) with git commit --amend and force push those changes to update this PR.


sql: Added new tables and columns in pg_catalog

PR: https://github.com/cockroachdb/cockroach/pull/60758
From release notes:

Added missing tables and columns at pg_catalog. [#60758][#60758] {% comment %}doc{% endcomment %}

Fixed by https://github.com/cockroachdb/docs/pull/8909.


program that runs a bundled version of chromium can not stop

Here is my code.
const puppeteer = require('puppeteer');

(async() => {

const browser = await puppeteer.launch({executablePath:'chrome.exe'});
const page = await browser.newPage();
await page.setViewport({width:1024,height:768});
await page.goto('https://www.google.com' ,{waitUntil: 'networkidle'});
await page.screenshot({path: 'jd.png',fullPage:true});

browser.close();
})();

The path of "chrome.exe" has been added to system environment variables. When I run it use the command "node test.js", it gives no output and just blocked . What's the problem?

Puppeteer currently only works with very recent Chromium versions. It might work with a Canary version of Chrome. I'd expect to get this behavior if you try to run with a version of Chrome that is too old for Puppeteer.

Let's check the version and add a user-friendly message explaining the failure. Marking as M1 bug.


Hosts a path should be preserved

In relation to issue #15 this PR uses relative paths and preserves the provided url path if it existed.

@polmiro thank you! Please update ChangeLog.md in another PR ;)


[suggestion] Add or customize sap.ui.core.ValueState

Hello openui5 team,
This is a suggestion/question from my side.
Currently, we have 4 states for sap.ui.core.ValueState (None, Warning, Error, Success).
Is there any way we can add or customize value state?
For example, we can add a state "In Progress" with text color as blue, and value state text message "The task is in process".
Or customize the 'Warning' state to text color blue.
I tried to google search, then look at the source code, but it seems that there's no easy way to custom like this custom control creating tutorial.
Hence, could you suggest me somehow to customize the value sate, but follow the sapui5 standard as much as possible?
I get lots of request from customers regarding this customization in my sapui5 projects.
Thank you!
Victor.

I cannot suggest anything here. The question is forwarded to dev team for evaluation and check with UX via<PHONE_NUMBER>

Hi @strawherotk
the enum sap.ui.core.ValueState (None, Warning, Error, Success) is used in different ways across the framework. Therefore, I would not recommend you to modify this enum (also not supported).
If you just want to change a text color, you could make use of a custom theme
(https://openui5.hana.ondemand.com/#/topic/497c27a8ee26426faacd2b8a1751794a).
If that's not sufficient for your scenario, you would have to create your own control, which is able to handle your custom value states.

Hi @strawherotk ,
FYI, a new ValueState with name 'Information' was introduced with:
7371695ce3800e61dab88be68f547a9a3924e9c6
66d788ecf0a90fdb56153ffb4805ca5e55ce0c6e

Hi @clemai,
That's great.
Thanks for the update.
A little pity that the new value state 'information' is the same color with warning state.
I think it would be better to have Blue color instead. :)
Anyway great work!

@strawherotk The "Information" value state is Blue in the current sap_belize* theme.

Source: https://openui5nightly.hana.ondemand.com/#/sample/sap.m.sample.InputValueState/preview

Hi boghyon,
It look great :)
Thanks for the updates.


A GUI for configuring launch-files

Add roslaunch_editor – a GUI for configuring launch files. It can work in "clover" mode (through shell node) or in "standalone" mode (requiring a special backend node).
Also adjusted arguments for more novice-friendly configuration.

TODO:

impossible to perform sudo command for restarting

Another thing of note: is it ROS-like to put executable Python scripts in src? I believe I saw a Python script in bin, but most packages just dump them in script. It's more of a nitpick, since roslaunch/rosrun will find your script anyway.


Update landing page for instructions to use the showcase from desktop

Current:
Explore how you can use BC Wallet to prove things about yourself, in a way that's safe and secure.

New:
Explore how you can use BC Wallet to prove things about yourself, in a way that's safe and secure.

Note: Please view this showcase website on a different device than you use, or will use, for BC Wallet.

Text updated.


Faster modular reduction for Falcon signature verification

The Falcon signature verification algorithm relies heavily on modular arithmetic with respect to the prime $12289$. The current implementation rpo_falcon512::mod_12289 is very inefficient since it uses u64_div underneath. A more optimized implementation should, in addition to using non-determinism, take into account the fact that $12289$ is less than $2^{32} - 1$.

One other thing to consider: would it make sense to add a native instruction which can do a modular reduction in a single VM cycle. The instruction could work like this:
Inputs:  [v, p, ...]
Outputs: [r, p, ...]

Where:

$v$ is the value to be reduced - could be any field element.
$p$ is the modulus which must be a u32 value.
$r = v % p$.

It probably doesn't make sense to add it solely for the purposes of Falcon signature, but if it could be used to speed up other things (e.g., ECDSA signature verification), then it might be worth it.
Also, I'm not sure how complex the constraints for this instruction would be - so, maybe not viable to begin with.


Fetching shielded balance via SDK nor extension working

Hey,

Whenever I attempt to query a shielded balance for a viewing key via the SDK, I get just a lot of POST request to my rpc endpoint. This just continue to go on. While I don't mind to wait whether it will actually result in something, this will definitely not be feasible for a multiple user front-end.
The extension way gives a:
Error: No results have been found on Vault-error.
Again, this is probably due to the current shielded-sync approach and you guys are likely working at it. But wanted to express this as to see whether it's a me-problem or a common one amongst us all.
ZEN

Close this asap if it's already a known issue. Don't wanna let the issues tab become bloated like the main namada-repository 😅.

Extension without balances is pretty useless, if i can't see own balance then i can't use shielded transactions. Don't work for me as well

This is my PR to reduce time fetching MASP. Now i still working on it https://github.com/anoma/namada-interface/pull/667

Hello. To give you more context about the issue. The problem is that atm we have to query each block to produce shielded context which takes a long time. For SE, as of now, it means querying 160 000 blocks. If you use interface(namada.me) this won't work as we timeout query function after some time(there was a reason for that which is not really that important to this conversation :)).
What is more:

if you did not do any shileding/unshielding this means querying 160 000 each time as context is only saved when it detects some change in relation to viewing keys that you provided. This also means that once you add another shielded account you have to query everything from the beginning
if you made shielding transfer at block 100 000, and once you fetched shielded context, this means that every next shielded context fetch will start from block 100 000
currently published extension uses Namada SDK in version 0.31.8 which is outdated and some of the functionalities might not work with the SE

Upsides:

we have a 0.32.0 bump PR which removes the timeout for query_balance
there was a recent change to the Namada SDK which allows you to pass a block index that is a starting index of the shielded context fetch, which allows to write some improvements, like storing index of last fetched block in frontend or whatnot

Hello. To give you more context about the issue. The problem is that atm we have to query each block to produce shielded context which takes a long time. For SE, as of now, it means querying 160 000 blocks. If you use interface(namada.me) this won't work as we timeout query function after some time(there was a reason for that which is not really that important to this conversation :)).
What is more:

if you did not do any shileding/unshielding this means querying 160 000 blocks each time as context is only saved when it detects some change in relation to viewing keys that you provided. This also means that once you add another shielded account you have to query everything from the beginning
if you made shielding transfer at block 100 000, and once you fetched shielded context, this means that every next shielded context fetch will start from block 100 000
currently published extension uses Namada SDK in version 0.31.8 which is outdated and some of the functionalities might not work with the SE

Upsides:

we have a 0.32.0 bump PR which removes the timeout for query_balance
there was a recent change to the Namada SDK which allows you to pass a block index that is a starting index of the shielded context fetch, which allows to write some improvements, like storing index of last fetched block in frontend or whatnot

Hey thanks for this update and thorough description! I'll check this out at the end of this week and see what I can do to get something working with the current state of the SDK!

@zenodeapp Hello! Just FYI - I'm closing this issue as we're revamping shielded balances right now. Thanks!


Angular CLI does not work due to app module structure

Need to revert the app module to previous  organization

Fixed


Java operators

Sir These are the Arithmetic Operators which are used for Java.

Please describe your PR.


Broken Smooth Lighting

When using BetterBeds without other rendering mods such as Sodium this mod breaks the smooth lighting of beds. This was tested in Vanilla and the issue was not reproducible and the same for Sodium where without this mod it works but once you add BetterBeds the smooth lighting for the bed render doesn't work properly. It looks like this is because it does not use the same value for both parts block entity making it look broken.

In the above image the light level of the right block was twelve and the left block was eleven. (Block light only, sky light was zero) When tested in vanilla it appears the BlockEntityRender prefers to use the higher of the two light level values. Meaning this could be fixed by checking which bed section has the higher light level and then passing the value into the render. Below is what the same image looks like without BetterBeds.

This is because in the models they wrote "ambientocclusion": false so if you want smooth Lightning you have to remove this line (I'm gonna make separates packs and a pr so if the pr don't get merge you can at least use the RPs to override the mod)

Here's the RPs.
I don't have the time to make the PR so i will do it tommorow
Connected Beds (with smooth lightning).zip
Fancy Beds (with smooth lightning).zip
Better Beds (with smooth lightning).zip
e

i've done #6 to add this in mod

Fixed in 1.3.0 (thanks Julien)


Method for prerendering splats to improve performance

A key insight is that rendering a gaussian and then stretching it is essentially the same as stretching and then rendering.
This means you can prerender textures of normalized gaussians with a reasonable selection of possible falloff values and for each splat assign the texture it uses (since falloff per splat doesn't change each frame).
That means each frame is just calculating the directional harmonics per splat, running the bounds calculations for the facing rectangle, and blending the colors with mask textures; which should be extremely fast.

That’s absolutely not the bottleneck. Calculating “the gaussian” part is just one dot product and one exponent, which is way cheaper than sampling the texture.
The slow parts of the rendering right now are: 1) sorting could be made faster, 2) raw amount of alpha blending when tons of splats overlap, and tiny gaussians being suboptimal for the GPU — this can be addressed by writing a compute shader tiled raaterizer, and 3) there’s no culling of gaussians at all, something that could be implemented.
All in all, there are quite obvious ways how to speed this up, “just” they need to get done. But replacing gaussian falloff with a texture lookup is not one of those ways :)


Automated cherry pick of #3340: Add method AllocateIfNotExist to interface GroupCounter in
#2792: Support InternalTrafficPolicy in AntreaProxy

Cherry pick of #3340 #2792 on release-1.5.
#3340: Add method AllocateIfNotExist to interface GroupCounter in
#2792: Support InternalTrafficPolicy in AntreaProxy
For details on the cherry pick process, see the cherry pick requests page.

Codecov Report

Merging #3865 (edad7e4) into release-1.5 (d331eb2) will decrease coverage by 19.52%.
The diff coverage is 46.83%.

@@               Coverage Diff                @@
##           release-1.5    #3865       +/-   ##
================================================
- Coverage        61.03%   41.51%   -19.53%
================================================
  Files              333      200      -133
  Lines            28536    24176     -4360
================================================
- Hits             17417    10036     -7381
- Misses            9217    13109     +3892
+ Partials          1902     1031      -871

Flag
Coverage Δ

kind-e2e-tests
?

unit-tests
41.51% <46.83%> (+0.05%)
:arrow_up:

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


time labels on hexbin plots?

I'm trying to get time labels on a hexbin plot.   The hexbin plot works when the x axis is a datenum, but not when it's a datetime:
https://nbviewer.jupyter.org/gist/rsignell-usgs/244815b10bf33e531085f881975033ab
Is there a workaround, say by plotting with datenum, and then labeling with datetime values?

Over on pyviz gitter, @philippjfr said:

Looks like it's not handled correctly since hextiles make the most sense when both axes share the same units

I would imagine there would be a workaround that involves making the plot with datenum units, and then explicitly assigning time labels to each tic derived from the datetime equivalent, but I don't know how to do that.

Thanks. I'll see if I can figure it out. Also worth noting that matplotlib hexbins handle dates on either axis just fine. Having time on one axis and some other parameter on another axis makes quite a bit of sense to me!

I started working on a fix, but other priorities got in the way. The fix is needed in the hex_bining operation in holoviews/plotting/bokeh/hex_tile.py. As @rsignell-usgs suggests we'll have to convert the values into bokeh integer datetime format to compute a scaling factor and then convert the ranges back to datetimes.


eval files/modules/packages, not just strings

SES.confine takes a string and evaluates it as a program, returning the last expression of the program. This is the primitive we need to build larger environments. This ticket is about what shape those larger environments should take. Programmers don't work with strings containing code (how do you get an editor to syntax-highlight it, for starters): they work with files containing code, or modules, or names that point to modules. Programs import modules, not strings. Users run "apps", not programs or strings. We'll eventually need to define an environment that starts with a programmer and a source tree, goes through some bundling/packaging/deployment phase, and ends with a whole bunch of nested evals (on somebody else's computer) that put the right code in the right places.
I'd like to collect ideas and examples of related systems which we can draw from, and build up a collection of sample apps that we can implement in different schemes to see how they compare.
Two things come to mind from my own background. The first is the Jetpack security model which I developed for Firefox (but which never really got deployed). https://github.com/warner/JetpackComponents/blob/master/components.md has a writeup. This scheme used CommonJS-style require(name) statements to import code from other modules. A magic module name represented full platform power: in Jetpack you would get access to the browser's entire authority by including require("chrome") in your module. A bundling script searched for all require() statements and built a graph of them: most modules were to be found elsewhere in the source tree, but magic names would be mapped to special objects at load time. The graph was written into a manifest, including the hashes of each module, as a table saying "when module X says require(Y), give it Z". This manifest, and all the source files, were bundled into the installable addon archive (a ZIP file), and the runtime loader enforced the manifest restrictions.
The idea was that the loader could also check for signatures from the official addon gallery reviewers, who could examine each module for safety and whether they did their declared job (or could be tricked into doing something else). Using require("chrome") would trigger more careful review. In that system, the top-most node of the module graph was the weakest, and contained the most important application logic, and would be unique to the addon. The bottom-most nodes (many of which would be shipped with the SDK as a stdlib) had the most power, and would be shared between many different addons. The overall goal was to encourage code reuse and limit excess authority.
The other piece is http://www.lothar.com/blog/58-The-Spellserver/ , which investigates a purely-client-defined server model (in which the client is confined by signed prefixes that define the endowments which their new code can access). In that world, the server receives hashes that represent code, and maybe the code itself if it wasn't already cached. It isn't captured by my writeup, but the source form (which authors edit) would have some kind of CommonJS require(PETNAME) syntax, which would be rewritten as require(HASH) before delivery to the servers (so any lookup is nailed down before the application leaves the programmer's environment). The rule would be that any require() statement could be replaced by simple interpolation of the file that hashes to HASH, which means require() does not grant any authority (unlike my Jetpack model). In the Spellserver, all authority is delivered as arguments to the function at runtime, rather than being available as ambient endowments or explicitly requested imports. I have a scheme to do rights-amplification, by allowing two prefixes to both be used by a child program. In this approach, the first program in the chain run gets the most power, but it also defines which keys must sign the next program down (rather than having some central reviewers or bundled manifest to enforce which program gets the authority). So the power graph is somewhat inverted when compared to the Jetpack approach.
I think https://github.com/tc39/tc39-module-keys is going to be relevant too.
@erights and I started to prototype a module loader a few weeks ago, but we got a bit stuck trying to figure out how to represent the loader policy: some datastructure which explains what happens when module X asks to import name Y. The loader itself was a recursively-injected endowment into each evaluation step: when we evaluate X, we inject a require() or import() or something which curries the portion of the policy table that talks about module X. The code was a bit fiddly (as most recursive things are), but we're sure it's possible.
Another thing to keep in mind is debuggability and sourcemaps. At present, each SES.confine() is a barrier beyond which stack traces and line numbers get thrown away. It might be interesting to feed a sourcemap into confine() (or into some wrapper/membrane around it) that knows how to translate exception information into a form usable by the next layer up. Whatever module loader we come up with should integrate into this scheme, so perhaps the when X imports Y it gets Z table should be extended to also include .. and uses sourcemap Q on each row.

Tracking Compartment module system development at https://github.com/Agoric/SES-shim/issues/257. A small part of the puzzle.

Tracking the remaining elements of the puzzle on #336 and archiving this excellent conversation. I’ve added work items to that task description that should answer the requirements described here, and would like to continue this conversation on that draft stack.


[v0.1.0] Data Inspector Page

[ ] Views:

[ ] Restructure components in Create Page so Data Inspector Page can reuse.
[ ] Create UI for Data Inspector Page with tabs.

[x] Models:

[x] Replace "name" with "origin" and "alias" in IndicatorModel.
[x] Define path for storing object (pandas - pyarrow Parquet) in Flask, both dev and prod.
[x] Define models in Flask for SQLite with ORM (SQLAlchemy).

[ ] Controllers:

[x] Create API endpoints for observation's CSV and research's JSON.
[ ] Connect Electron with Flask and SQLite.

irrelevant with current adjustment