more rationale for not using #!/bin/bash?

Hey @dylanaraps, I think is super useful, thanks for making it! I was wondering if you could add a bit on your rationale for using #!/usr/l/bin/env bash instead. This is generally my thoughts: https://stackoverflow.com/a/55927235, but I'm not a bash expert.

bash may not be in /bin.
The user may not have /bin/bash as the first match for bash in their $PATH.

These are the only two reasons really. It's more about portability than anything else.

https://en.wikipedia.org/wiki/Shebang_(Unix)

" /usr/bin/env  " can be used for " portability ",
but writing

 # Wrong:
 #!/bin/bash

It won't find recognition in most security guides.
Paths should  be written directly as is possible.
Because sometimes you can change the variables.

This has a drawback. " env " must also be in " /usr/bin/ " otherwise it may not work.
And if any path is not in "$PATH" then env will not find the program.

I give an example which I know.

$ locate python | grep ^/usr/bin
/usr/bin/python
/usr/bin/python2
/usr/bin/python2.7
...
$ ls -l /usr/bin/python
lrwxrwxrwx 1 root root 7 Dec 21  2018 /usr/bin/python -> python2*

$ ls -l /usr/bin/python2
lrwxrwxrwx 1 root root 9 Dec 21  2018 /usr/bin/python2 -> python2.7*

I want to say that I can have several versions of the same program and by changing the link, I can redirect to the appropriate version of the program or to another location. And it's probably safer.

Sure, there are times when a direct path is preferred. Keep in mind that what I write in this guide is not absolute and you may have good reasons for doing task a differently.
I've added a note to the README in this location.

This has a drawback. " env " must also be in " /usr/bin/ " otherwise it may not work.

This has become kind of a standard now, though. Systems like Termux and Haiku which don't have it there seem to have checks to emulate it.

Do you mean /usr/bin/env?
I thought that " #!/bin/bash " also kind of a standard.
The guide shows how to run script when the program is in a different place.
I'm guessing that someone knows little or has not come up with an idea run script
/my/path/to/bin/bash  name_of_script
or just
bash  name_of_script
which is used for convenienceand which use $PATH
or in file edit
#!/my/path/to/bin/bash
instead run script like this
./script
Or someone does not stick to the standard and came up with a brilliant idea
convince everyone to use
#!/usr/bin/env bash
which allow run
./script
without editing each new script from other linux distributions
or just without installing the program in a more correct place.
Only convincing people can take many years, and reinstalling the program is faster,
even if he has to reinstall the half repository with the new bash location.
Or it was just an example from other program with a similar problem.

Do you mean /usr/bin/env?
I thought that " #!/bin/bash " also kind of a standard.

It's often used, but systems such as FreeBSD and OpenBSD have it in /usr/local/bin instead.

Only convincing people (to use /usr/bin/env bash) can take many years.
Reinstalling the program is faster,
even if he has to reinstall the half repository with the new bash location.

You don't need to make everyone use it in order for it to work. You could say that about a lot of things; I mean, this whole project is for pure Bash tricks, when many use external programs instead.
Also, lots of people already use it; it's not a new concept, nor Bash-specific. It's also used with Python, Perl, Ruby, etc.

It's worse when someone other doesn't stick to the standards and we need to fix his scripts.

What?

I think you can use for your own needs
#!/usr/bin/env bash
but it may not start correctly program from other location if you have
two versions of the same program with the same name but in other place and all paths are in
$PATH.

If you put another Bash higher in the PATH you clearly want it to be launched instead, no? I don't get what you mean by this.
For example, the default Bash's version in macOS is 3.2. Thus, many who use it would install a more recent version to /usr/local/bin or something, so it would be used instead. But if you use #!/bin/bash, it will still launch the outdated version, potentially breaking your script.
I would say it's the other way around: it's fine to use #!/bin/bash personally, because you can guarantee that it's there and you want it specifically. But otherwise, users in general would probably prefer #!/usr/bin/env bash.
You don't seem to really care about portability, though. It's old, so I don't know if you've changed your mindset since then, but you forcibly require /bin/bash in one of your projects, making it fail even if launched through bash fu or editing the shebang as you suggested if Bash isn't located there.

I know only Linux, I don't know BSD systems.
Do you know if they (BSD) use /usr/bin/ path ?
For Linux I know only:
Standards:

Linux Standard Base (LSB) http://refspecs.linuxfoundation.org/lsb.shtml
Filesystem Hierarchy Standard (FHS) http://refspecs.linuxfoundation.org/fhs.shtml
Link to whole list Standards http://refspecs.linuxfoundation.org/
Freedesktop Specifications (FS) https://www.freedesktop.org/wiki/Specifications/

Exist also Unix standard (Linux and BSD)
But it's probably paid ( it is not free )
And I can not check.
However
FHS   http://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.html#usrbinMostUserCommands

To make such scripts portable among different systems, it is advantageous to standardize the interpreter locations. The shell interpreter is already fixed in /bin by this specification, but interpreters for Perl, Python, Tcl and expect may be installed in various places. The locations specified here may be implemented as symbolic links to the physical location of the interpreters.

It seems to me a much smarter solution, than
edit and making all scripts more portable. For example when you want install app from Linux to BSD.
And it also looks more KISS.

I know only Linux, I don't know BSD systems.
Do you know if they (BSD) use /usr/bin/ path ?

As far as I know, yes, but only for the base system, which Bash is not part of; all others go into /usr/local/bin.

However
FHS http://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.html#usrbinMostUserCommands

To make such scripts portable among different systems, it is advantageous to standardize the interpreter locations. The shell interpreter is already fixed in /bin by this specification, but interpreters for Perl, Python, Tcl and expect may be installed in various places. The locations specified here may be implemented as symbolic links to the physical location of the interpreters.

Are you sure that it isn't talking about sh, not Bash? I'm completely for #!/bin/sh.

It seems to me a much smarter solution, than
edit and making all scripts more portable. For example when you want install app from Linux to BSD.

I mean, you don't have to edit anything if you just use #!/usr/bin/env bash in the first place. The smartest solution to me seems to be officially standardizing /usr/bin/env, as it also solves the others it mentioned and more. It's not their fault if the authors didn't want to make their script portable; it's not like `env' is a new thing that they will have to adopt.

Are you sure that it isn't talking about sh, not Bash?
FHS mentions solution for all programs.
However as I mentioned, I don't know BSD systems, if you feel need, you can check and write us what have you seen.

Are you sure that it isn't talking about sh, not Bash?

FHS mentions solution for all programs.
However as I mentioned, I don't know BSD systems, if you feel need, you can check and write us what have you seen.

Again, I'm pretty sure that programs outside of the base installation (Bash isn't, but env is, of course) are in /usr/local/bin.

It doesn't matter for me, if it's not there, you can always create a symbolic link to the right program in system, as mentioned in the guide.

I am guessing that there are no problems with sh.
I have sh in /bin/sh
$ ls -l  /bin/sh
lrwxrwxrwx 1 root root 4 Dec 21  2018 /bin/sh -> bash*

For the sensor to discover the operating system, the /bin/sh script must be configured as a default shell.

https://www.ibm.com/support/knowledgecenter/SSPLFC_7.3.0/com.ibm.taddm.doc_7.3/SensorGuideRef/r_cmdb_sensor_freebsd.html
But I don't know if this is also a standard for all BSDs.

It doesn't matter for me, if it's not there, you can always create a symbolic link to the right program in system, as mentioned in the guide.

That is not a good solution; I'm assuming that the guide meant that for packagers.

I am guessing that there are no problems with sh.

No, there aren't, as I mentioned earlier. /bin/sh is available in pretty much every system but Windows.

I do not know what you want to achieve.
If you are unsure of the effectiveness of the links you can see this
http://sgeos.github.io/freebsd/bash/2016/02/20/bin-bash-on-freebsd.html
If you want to use in scripts /bin/sh ,
I can not help you, I don't use it and I don't understand why you can't use it.
I do not know any guide sh. Someone once paid me attention only to syntax
to make scripts more portable for sh
But I don't remember these rules.

...I think you'll find #!/usr/bin/env bash the most universal
way to find the bash binary on different, OS.
Some history may be helpful to understand the situation.
Bash is an extension from the Bourne shell which has fewer
string manipulations and similar features but has been around
quite a bit longer. It remains on OS that have it because it
continues to do the job for its intended purpose, bootstrap
and "UNIX Programming Environment" tasks. I've only seen
it installed as /bin/sh, today that is often a symlink to bash,
ash or whatever is the preferred bootstrap shell on systems
that don't provide Bourne (the license predates GNU).
The UNIX/BSD systems, etc, that don't use bash as default
(for their own good reason not related to this issue) but
have it available as a package, will typically install as
/usr/local/bin/bash or /usr/pkg/bin/bash, but /usr/bin/env bash
can be expected to work if bash is available.
It is worth noting, the rather complicated invocation paragraph
in the bash man page has more to do with supporting all of
the predecessors simultaneously, than any particularly
good way to read run control and local configuration files.
I discussed more details in a thread about identifying a
reliable shell invocation to bootstrap a python version
selector: https://github.com/pyenv/pyenv/issues/1347 https://github.com/pyenv/pyenv/pull/1359

Reopening this as it's a good discussion on the topic.

@georgalis

... most universal way to find ...

I don't want to write too much but some things need explanation and are not directly related to the topic.

Is that most believe in something does not mean that it is correct.
(I hope my English is good because this syntax ("it is right.") looks incorrect for me, so I used "correct")
Therefore, it should not be mentioned as a reason.
I believe that people need guidance. Because new people are still born or they come to something and they need knowledge for not to make mistakes.
We are all imperfect creatures. I mean by , that we never know when we will be wrong / we will break.
Our goal is continuous development and improvement of ourselves.

For now, I see only one your problem.

... I've supported many shells (bash, bourne, zsh, ksh, ash, etc) on different OS (Linux, BSD, Darwin) at different sites. I've also created a tool set of command line functions and aliases. Getting your shell all setup with tuned and bug free preferences can take forever and a week and it's the last thing you want to fix when you've got other work to do. ...
Maybe symbolic links don't cure all things, I can't check it.
But workarounds should be temporary and not permanent.
Especially if they are not perfect.
I understand the frustrations but most of us should strive for the perfect order if it is possible.
That is to the standard if it is possible to avoid problems, for example yours.
As a solution, I see the creation of a package that contains missing catalogs and symbolic links.
Until adaptation of most systems to a common standard.
We should report such problems to our system distribution developers if such a problem exists
This should solve your problem with manually configuring each system.
I know from experience that changes are not always possible. Because some developers do not care about other / foreign standards. But it's worth trying to ask.

Probably a similar scheme (packgage with missing dirs and links) was used in linux distributions which use repositories from various Linux distributions, but I have never had time to get to know them more, so I can't give guarantee.
Not related to the topic also.
There have been many problems with the su command recently in the Debian distribution.
I want to say that variables can be in several different places. (Environment Variables)
$ locate bashrc
/etc/bashrc
/home/user_name/.bashrc
...

And I know from own experience that also in programs, for example in the login manager.
Probably the most universal for all users is the file /etc/bashrc
https://wiki.gentoo.org/wiki//etc/portage/bashrc
This is an example that it can also be problematic when users  switch to something other and suddenly there is no needed variable, because it occurs only locally.
Therefore the most important environmental variables should be in one place.
However, I understand that some developers remove variables to prohibit the use of programs,
that is, each case should be considered individually.

The BSDs will not place it there. They have been around for a long time; why do you think they'll change it now?

Do you mean transferring the bash to /usr/bin?
The world is changing, maybe they will say it's worth it.
At least for now a better solution.
I will give a little different example.
When I build a package for the system, I use special variables where the package should be installed.
I am thinking of compiled packages, not scripts.
$ rpm -E %_bindir
/usr/bin

So I realize that every system distribution may want to install the program in its location.
And this should be respected.
However, standardization sometimes brings more benefits to everyone. But I do not press.
And something else. We rarely use variables to run the program.

we usually give the path to the program

$ strace -e open bash
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
open("/lib/libtinfo.so.5", O_RDONLY|O_CLOEXEC) = 3
open("/lib/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
open("/lib/i686/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/dev/tty", O_RDWR|O_NONBLOCK|O_LARGEFILE) = 3
open("/usr/share/locale/locale-archive", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
open("/proc/meminfo", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 3
open("/home/tele/Desktop/Praca/TEST/TEST3/bash", O_RDONLY|O_LARGEFILE) = 3
Succes
+++ exited with 0 +++

And when I noticed it, I know that it is problematic for developers, because they have to write an installation script that links all installed files.
But I have never looked for a solution because it is not my plot.
( If you noticed also  /TEST/TEST3/bash don't panic, I did it on purpose )
Returning to env.
https://en.wikipedia.org/wiki/Env
I guess env has more than one use / applications and I can't forbid anyone to use it.
I just wanted to point out the problems with using this.
The main problem are variables.
When we want to run a program, we should give the full path to the program or
use variables that cannot be changed by the program itself or by the ordinary user.
I don't understand one more thing.

... such as FreeBSD and OpenBSD have it in /usr/local/bin instead.

Where from FHS  http://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.html#usrlocalLocalHierarchy

The /usr/local hierarchy is for use by the system administrator when installing software locally. It needs to be safe from being overwritten when the system software is updated.

BSD systems use other FHS?

The BSDs will not place it there. They have been around for a long time; why do you think they'll change it now?

Do you mean transferring the bash to /usr/bin?
The world is changing, maybe they will say it's worth it.
At least for now. Until someone finds a better solution.

? Even if they do, most scripts currently use /bin/bash, not /usr/bin/bash.
And again, they won't. /usr/bin is strictly for the base installation, and no way are they going to add Bash to it. They are very strict about what goes into it and even removed Perl fairly recently.

Returning to env.
https://en.wikipedia.org/wiki/Env
I guess env has more than one use / applications and I can't forbid anyone to use it.
I just wanted to point out the problems with using this.
The main problem are variables.
When we want to run a program, we should give the full path to the program or
use variables that cannot be changed by the program itself or by the ordinary user.

What? When you want to use ls, do you always type out /usr/bin/ls? Also, programs and users are free to change any variable in its own environment. I don't get what's you're trying to say.

I don't understand one more thing.

... such as FreeBSD and OpenBSD have it in /usr/local/bin instead.

Where from FHS http://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.html#usrlocalLocalHierarchy

The /usr/local hierarchy is for use by the system administrator when installing software locally. It needs to be safe from being overwritten when the system software is updated.

BSD systems use other FHS?

FHS is a Linux standard, as far as I know; I mean, the URL is from linuxfoundation.org.

When you want to use ls, do you always type out /usr/bin/ls?
Now you see, I've written scripts all my life in a dangerous way, and I didn't realize it. :smile:
I suggest that someone wiser must find a better solution.
And for now you can choose what you want,

#!/usr/bin/env is perfect for software distributed across operating systems and for use by various users. It's supported everywhere (see the list of operating systems neofetch supports) and nowadays, it "just works".
#!/bin/bash is fine for personal scripts, scripts intended for a single operating system (where /bin/bash exists) or for security focused scripts which would much rather skip the $PATH checks or the user configured bash installation.
This isn't really up for debate at all. There are pros and cons to both and there are clear reasons for why you'd use one over the other. Utilizing both of these methods covers every use case I can think of and I don't see how an alternative could be more portable, simpler, easier to use or more robust.
At the end of the day, if you want 100% guaranteed POSIX portability and compatibility, write your scripts in POSIX sh, use #!/bin/sh and stick to the POSIX specifications when using core utilities.
In my eyes, this is a "solved" problem.

@Crestwave
Curiosity:  It is possible to avoid  variables from user settings in the $PATH / script.
The examples are not perfect.
For example, this is test script with echo $PATH
Script show my modified $PATH variable.
$ /bin/bash  test
/home/user/Desktop/Praca/TEST/TEST3:/bin:/usr/bin:/sbin:/usr/sbin:/usr/games:/usr/lib/qt4/bin:/usr/lib/qt5/bin:/home/user/bin:/usr/lib/qt5/bin

Bash with option login.
For me it works best.
$ /bin/bash -l test
/bin:/usr/bin:/sbin:/usr/sbin:/usr/games:/usr/lib/qt4/bin:/usr/lib/qt5/bin:/home/user/bin

Example with env
$ /usr/bin/env  bash test
We run false bash before run script.

Env with option invoke.
Missing a few paths and additionally is a dot at the end.
$ /usr/bin/env -i bash test
/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:.

FWIW, /bin/bash shebangs won't work on NixOS.

I read https://en.wikipedia.org/wiki/NixOS

... NixOS doesn't follow the Filesystem Hierarchy Standard. The only exceptions are a symlink /bin/sh to the version of bash  ...

So I'm guessing you can only use scripts compatible with sh.
I'm guessing if you want run script only compatible with
bash, ash, dash, ksh, pdksh, mksh, zsh or other ...
You can create a link in /bin/bash.
Or keep the correct version of bash in $PATH for use /usr/bin/env

/usr/bin/env is preferred.
They would also prefer to get rid of /bin/sh as well, but there's a long-running unresolved issue ( https://github.com/NixOS/nixpkgs/issues/1424, among others) with glibc depending on it.

@Crestwave's point is the most valid (and painful). We support a large set of scripts, and can't go above bash 3.2 features because MacOS.
AFAIK, Homebrew installs a newer version of bash into a directory which precedes /bin on the PATH, so the /usr/bin/env is an essential trick for people using modern bash on this technologically retarded system.

Good lord the comments in this thread.    Should make it an interview question...
tl;DR - Google et all can use env all they want, they're an exception in that they have full control over their environment.   To use them as an example of why we all should follow is ... stupid.
For the record:
$ file * |grep script | while read a b ; do head -1  ${a/:/}  ; done  | grep -v ELF | sort | uniq -c | sort -n |grep -a env
      1 #!/bin/env python
      1 #! /usr/bin/env python
      1 #!/usr/bin/env python2
      1 #!/usr/bin/env python2.7
      1 #!/usr/bin/env sh
      1 #!/usr/bin/env texlua
      2 #!/usr/bin/env lua
      2 #!/usr/bin/env node
      3 #!/usr/bin/env bash
      3 #!/usr/bin/env perl
      5 #!/usr/bin/env python
      6 #!/usr/bin/env /usr/bin/python

To say the use of env is universal, is equally stupid.  Fact that 6 of those are python should say where this FUD comes from.

Thank you.

Good lord the comments in this thread. Should make it an interview question...
tl;DR - Google et all can use env all they want, they're an exception in that they have full control over their environment. To use them as an example of why we all should follow is ... stupid.

This is a bit dramatic in the context of choices marked Right and Less Right, and prefaced with NOTE: There are times when one may have a good reason for using #!/bin/bash or another direct path to the binary.

For the record:
...

I'm not sure why you think the contents of /bin have any bearing on a portability recommendation. The overwhelming majority of all bash scripts ever written will not see the inside of /bin.

Neither of these is the point. Use whatever you want in your personal scripts. If you're writing for an audience, use /usr/bin/env. Nothing in here says to go change the shebang of every script on your system.
If PATH manipulation affecting which bash interprets readonly scripts is this far up your list of concerns, I assume you're already doing something like auditing these scripts and any subsequent scripts/binaries invoked to ensure all executables are invoked using the absolute paths of a verified readonly executable, or at least patching them to use fixed PATHs?

I'm not sure why you think the contents of /bin have any bearing on a portability recommendation.

Because there's' nothing "less right" about it.  Why are you implying otherwise?

Neither of these is the point. Use whatever you want in your personal scripts. If you're writing for an audience, use /usr/bin/env.

You have that backward and fail to understand why.

Nothing in here says to go change the shebang of every script on your system.

I agree, any competent admin won't.

If PATH manipulation affecting which bash interprets readonly scripts is this far up your list of concerns,

I don't know what that even means...  env uses the PATH... by design.


Bug Report: everytime i run Lime this happens how can i fix this?

Please check for duplicates, similar issues or closed issues with the same problem, as well performing simple troubleshooting steps (such as deleting the export folder if it's an issue with compiling, reinstalling Kade Engine) before submitting an issue.
If you are playing a downloaded version of the game, what operating system are you using?
Windows (x86), Windows (x86_64), Linux, or macOS? Specify below.
Windows 86_64
What version of the game are you using? Look in the bottom left corner of the main menu.
I tried with 1.6.2 ,1.7 and 1.5.2
Have you identified any steps to reproduce the bug? If so, please describe them below. Use images if possible.
I just started the game on debug

Please describe your issue. Provide extensive detail and images if possible.
I tried to run Lime test Windows but it crashes so i tried with Lime test Windows -debug and it Said  cannot find asset with ID song/assets/songs/tutorial/Voices.ogg
What do i do now?

It just so happens that for some reason; there is only mp3 files in the tutorial and offsettest folders. Try putting "Inst.ogg" and "Voices.ogg" in the files as well/instead, and you'd find it working. However, keep in mind even after fixing the missing song issue, there is still a bug where it says "Null Object Reference."
Hope this helps! :)

Those errors in the console have always been there and had no effect. The cause of this particular bug is an update not to Kade, but to one of the dependencies (which explains why the bug occurs on old versions of the game as well).
I've found the root cause of the issue and a workaround fix people can use until an actual fix is put in place.
See #2291.


Remove deprecated tol arguments from cg calls

Scipy 1.13 was the last version this is allowed, and it is removed in 1.14: https://docs.scipy.org/doc/scipy-1.13.0/reference/generated/scipy.sparse.linalg.cg.html

Actually I see you lower bounded scipy to be >=1.9, at which time they didn't have rtol. They only specified that ["atolshould be used for future compatibility"](https://docs.scipy.org/doc/scipy-1.9.0/reference/generated/scipy.sparse.linalg.cg.html) Perhaps I should removertol` instead?

Maybe pinning scipy to > 1.12.0  is better.


feat: provide jbang-catalog to run playwright cli

current docs explains how when you have a maven project you can run the cli.
with this PR you can just use jbang.
if you don't have jbang installed already see jbang.dev/downloads or just run this first:
curl -Ls https://sh.jbang.dev | bash -s - app setup

then you can do:
jbang playwright@microsoft/playwright-java codegen -o Example.java

for now you can try it with the following which runs it from my branch:
jbang playwright@maxandersen/playwright-java/jbang codegen -o Example.java

I also opened https://github.com/microsoft/playwright/pull/7696 which adds small header to generated java code
that enables you to run the generated scripts directly. if that happens you can just do jbang Example.java
Thank you

I'm getting the following error while trying to run the command from the description:
$ jbang playwright@maxandersen/playwright-java/jbang codegen -o Example.java
[jbang] Resolving dependencies...
[jbang]     Resolving com.microsoft.playwright:playwright:RELEASE...[jbang] [ERROR] Could not resolve dependency com.microsoft.playwright:playwright:RELEASE

I wonder if it has something to do with multiple versions of playwright cached on my laptop.

I wonder if it has something to do with multiple versions of playwright cached on my laptop.

Yeah, looks so, deleting ~/.m2/repository/com/microsoft/playwright resolved the issue.

Interesting - haven't seen that error. It's a standard maven syntax so should work. Would have been great to have known what you had in your folder before deleting :)
We can also set the exact version in the catalog - but you'll then need to update it on release.

Let's keep it as is, if anyone else sees the same issue we can revisit it. Updating hard-coded version is worse IMO.


System.Net.Http required version hard coded?

Getting this error in the browser when I try to use BlazorWorker:
WASM-WORKER: BlazorWorker.WorkerCore.SimpleInstanceService.SimpleInstanceService: 'GOSL.Client, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null' is requesting missing assembly 'System.Net.Http, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
I am currently on .NET 5.0.3, is it possibly looking for 5.0.0 and not accepting anything higher?
Note, this is the first time I'm trying BlazorWorker, so it might be something else causing this!

To answer your question, no, there is no specific version referenced.
I need to see some code to know more, more specifically where you init you worker, for example
CreateBackgroundServiceAsync.
Did you use the built-in extension method for declaring the dependency like  in the example here?

Closing this due to lack of activity.


Wallet doesn't load properly

Hello, I'm trying to use EPS but with not much luck. I'm running bitcoin core 1.6.3 on a mac os x environment.
I've tried running it both from the latest git commit as from the latest release (using the server.py directly).
I placed my public master key in the config.cfg file and I had to increase the initial_import_count to 800 since this is a used wallet.
After that it took a while to index all addresses and it ran as expected. Except that when I open electrum 3.2.3 and connect to it, some information like the height at the "Coins" section and the total balance itself don't show up correctly.
All the coins show up with height -2 like this:

And well, the balance is just unconfirmed.

What other information can I provide that might help to diagnose what's happening here?

Thanks for the issue.
I doubt rescan will fix it but its worth a try.
Do you have pruning enabled?
Are there any error messages being printed out?
Could you look in the debug file to see if theres any useful information. If not then if you're comfortable with it, edit your debug log file to remove all your addresses and transaction IDs, then encrypt it and email it to me, it might reveal what's going on.

The rescan actually helped a bit. One of my wallets is completely synced, while the other one is more than half way synced. Weird, I know.
And no, I don't have pruning enabled and I'm not using bitcoin core for anything other than EPS at the moment. I did however specify 2 master public keys, that's why I'm reporting on 2 wallets at the same time.
What I also had to do is run both the release and the cloned version of the EPS. I first did a checkout and run the code from the latest commit. But then since the rescan-script.py file was nowhere to be found there I wend ahead and downloaded the v0.1.5 release version.

Interesting that it helped(!)
If it's only halfway sync'd then maybe increase initial_import_count more and then run the server again, and rescan again.
The master branch has a new way of installing which involves using pip, which is why the scripts don't work the same way.
What you've shown is only the stdout output. There's much more information in the debug log file which is called debug.log and is in the same directory as server.py (this is all assuming you're using the latest release rather than master)

Ok I just tried the latest release 0.1.6 and this situation persist, but only with a specific wallet. I have 3 loaded:

An old non-segwit account
A newer, ledger enabled p2sh-wrapped segwit wallet
A newer still, ledger enabled segwit native wallet

The only one giving me problems now is the second one. And the most puzzling thing about it all is that only recent transactions, not old ones.
I'm starting to think that this could be a problem on the wallet side, or with this specific wallet instance.

Were you able to look inside the debug log file? It records the process of building up the list of transactions, so there should be clues to why they appear with unconfirmed(?).

Yes, I found the log file. But it is full of private tx info and it has more 16K lines! Is there something specific that you think I should look for? I can only find INFO and DEBUG logs, no ERROR or WARNING entries.

Starting from the top of the file it will build up its own internal dict of all the transactions in your wallet. If you follow that line by line (hopefully its self-explainatory) then there might be a place where you see why some transactions didnt get added to the dict.

It is kinda a necrobump since it is an old post. but for newcomers, can confirm double scanning will resolve the issue of not showing the current balance. although I did it with electrum-personal-server-rescan not the mentioned py script


Test new CI feature

Related

#27

successful, see: https://travis-ci.com/CodeLionX/actordb/jobs/123440916


Create a project mascot or logo

Given that the new name we chose for the command line is rudof, which is inspired by rudolf, it seems quite obvious that we should add a mascot and logo for this project which can be inspired by Rudolf.
With a small search, I found some interesting articles about other the mascots for other projects, so why not adding our own mascot.
One nice thing about Rudolf is that the reindeer antlers could look like two small RDF graphs which are attached to the head and given that the idea of this project is about adding shapes to RDF graphs, that could even have a point.
I am not good at drawing logos or similar so by now, I let this issue open with the hope that someone could give it a try or suggest some open/free picture that we could use or adapt.
A simple Google search for possible pictures.
And in case someone is interested about the origins of Rudolf, this Gettysburg Times article describes how Robert L. May created the iconic Red Nosed Reindeer Rudolf around 1939.

During the Japan biohackathon 2024, Yasunori Yamamoto has created a first proposal:

Based on that, I attempted to add a smile, which resulted in another one:

Neither Yasunori nor me are designers, so we are open to help and suggestions...
Apart of the logos, I think it would be nice to add also a mascot...


Implement funtional tests

You can maybe use plenary.nvim to do this with the test runner we have there. I can give an example if you need :)

@tjdevries Thank you for your information.
I'm using vusted for testing. It's run on the actual neovim process.
If plenary.nvim has async test feature, I'm strongly interested!

It does have some stuff set up to do async testing, but it's with the async library for plenary -- I'm not sure if it would work with other ones. vusted looks very similar to plenary's module, so if you're happy with that, then I'd probably stick with it :)


Improve installation docs

I changed the installation instructions to not require git in all cases.
I also expanded the installation instructions a bit more and made some minor
cross-links.

as it turns out, not all machines or installations of python make a python3 command so that can be extra confusing. I may change it back to python.


doesn't refresh repositories

If I add a new public or private repository it doesn't show up in the search.
If I click

the button does not seem clickable (it behaves like a static image, i.e., doesn't pop in when click and pop out after click). Button animation aside, even if I click the button it doesn't refresh the repositories. Only way to refresh repositories is to uninstall/reinstall Chrome extension.
I am using:

Google Chrome version 53.0.2783.2 (64-bit)
Ubuntu 16.04

Thanks for reporting us that @nickjer. I didn't use the refresh button since a while, I'll give it a try to see if we have a regression.

I can confirm that around the time this issue was reported, there was a workaround involving removing & adding back the extension.
But, that workaround seems to have stopped working too.
@redox could you please, provide an update on this, if any.

I can confirm that around the time this issue was reported, there was a workaround involving removing & adding back the extension.
But, that workaround seems to have stopped working too.
@redox could you please, provide an update on this, if any.

Didn't take the time to work on it so far. I'll give it a try in the next few days.


Resource Type
Virtual Machine
Api Version
2021-03-01
Issue Type
Inaccurate property type(s)
Other Notes
No response
Bicep Repro
No response
Confirm

[X] I have read the troubleshooting guide and looked for duplicates.

Closing because of lack of information. Please provide more information on a Bicep repro and further info on the error message to repoen.


Supportability

Great documentation on the usage of the included tools. But a supportability statement of the tools themselves (troubleshooting while using them) would be good, somewhat akin to the statement provided with all Sysinternals tools.

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

ID: 162fe2fe-9216-f4c5-9f91-3df8776bb99e
Version Independent ID: 013dbf6b-0790-9c11-24f4-dbf24d64401e
Content: Download Debugging Tools for Windows - WinDbg
Content Source: windows-driver-docs-pr/debugger/debugger-download-tools.md
Product: windows-hardware
GitHub Login: @DOMARS
Microsoft Alias: domars

Thanks for the kind words and the suggestion, @tusharchandwani
@DOMARS I know you're slammed with pre-release content, but can you please triage the request from @tusharchandwani for a supportability statement in a future milestone? Thanks!

Can you share an example about what you'd expect? I'm not seeing what you're referring to on any SysInternals pages.

https://docs.microsoft.com/en-us/sysinternals/license-faq

Q: Is there technical support available for the Sysinternals tools?
A: No. All Sysinternals tools are offered 'as is' with no official Microsoft support.
https://docs.microsoft.com/en-us/sysinternals/license-terms#support-services

@aluhrs13 - Can you determine if there is information that would be appropriate to provide?

@tusharchandwani - For debugger product input like this, the best route is to follow this link to file product feedback.
http://aka.ms/dexex
This system allows customers to file and up vote product issues. The link automatically sets the product category to Debugging Tools for Windows. I also passed this request on to the debugger product team.
Thanks again for reaching out to the Windows Driver Developer Documentation team.


youki exec should not clean up on error

Fix #1810

Codecov Report

Merging #1818 (28e5940) into main (1e894a0) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

:exclamation: Current head 28e5940 differs from pull request most recent head 58c2504. Consider uploading reports for the commit 58c2504 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1818      +/-   ##
==========================================
- Coverage   68.64%   68.64%   -0.01%
==========================================
  Files         121      121
  Lines       13325    13328       +3
==========================================
+ Hits         9147     9149       +2
- Misses       4178     4179       +1

Hey @yihuaf , what are your thoughts on moving the if-check inside match, instead of using it as a match guard ? There is no particular benefit to doing one instead of other, but I feel that it might more sense to move it inside like :
Ok(pid)=>...
Err(outer)=>{
     if matches!(....){
          // cleanup, if that errors , return outer.context(inner)
     }
     Err(outer)
}

I don't know if this will be better, so giving lgtm, because looks good :+1:

May I ask you to write the integration test for this case?

Yes I was thinking about the same.

@yihuaf 👍


about training code

Hi, @sadeepj ,
Thanks for releasing TF/Keras version for crfasrnn. However it seems the training code for the model is not provided, when will it be released?
Thanks!

@amiltonwong We originally trained this with Caffe. However, given the model definition provided with this code, it should be easy to train new models using the standard Keras API (see https://keras.io/getting-started/sequential-model-guide/#training for example).
All the training parameters are found in the paper: http://www.robots.ox.ac.uk/~szheng/papers/CRFasRNN.pdf.
I'll try to release Keras training code as well in the future. If someone else does it before me, a pull request would be greatly appreciated.

Hi sadeepj
I'd like to second that "thank you" for making a crf for python/keras.
I am trying to train a model so I can import my own weights but I am not entirely sure of the architecture used to build the  crfrnn_keras_model.h5
Should I use the entire structure of the crfrnn_model.py? or just up to the Deconvolution?

@sadeepj Hi sadeepj, thx at first. It seems that there are 3 trainable parameters of CRF-RNN: compatibility _matrix, spatial_ker_weights and bilateral_ker_weighs. And I want to know how does theta_alpha, theta_beta and theta_gamma is confirmed? Could you give me some tips? ^ ^

@XhqGlorry11
You're correct - those are the three trainable parameters in CRF-RNN. The theta_alpha, theta_beta, and theta_gamma values can be decided by cross validation. But you don't have to work hard to optimize those hyperparameters. You'll be fine as long as they are in the correct order.

@amiltonwong We originally trained this with Caffe. However, given the model definition provided with this code, it should be easy to train new models using the standard Keras API (see https://keras.io/getting-started/sequential-model-guide/#training for example).
All the training parameters are found in the paper: http://www.robots.ox.ac.uk/~szheng/papers/CRFasRNN.pdf.
I'll try to release Keras training code as well in the future. If someone else does it before me, a pull request would be greatly appreciated.

Do you have this training code available now?


Introduce Batch Normalization and Bypass Layers, split dnn_layer.h into layers folder

Hi Anton,
I left several review comments.
For the new benchmark you added, something in CMakeLists.txt and .cc file should be modified. You can refer to the other benchmark source code for a clue.
As for the new split source file for each layer, you should modify the Macro definition according to the google code style, besides that, you didn't add an include statement to indicate where the parent class is declared and defined, which I doubt this could work. Perhaps it is because you didn't remove the old code.
Thank you very much for your work. Really appreciate!

Sorry about all that, I didn't realize you had changed the benchmarks. I also wasn't really satisfied with the way I split the layers but I thought it had to be that way because of templates needing to be in the same file. Looks like I didn't try hard enough!
I addressed everything you commented on, let me know if anything else needs to be fixed.

No worries! You have done a great job on that! Really appreciate! :)
Sometimes it is really difficult for a person to find the mistake in the code. And this is also why code review is so very much important.
I found something else needs further modification. In your bypass layer benchmark, 1) you didn't modify the CMakeLists.txt and source code. 2) you need to change the file name as well
Thank you very much for your work!

Should be all set!


ts.TypeLiteralNode gives incomplete set of members

TypeScript Version: 3.2.2
Search Terms:
ts.TypeLiteralNode
members
... more ...
Description:
We are trying to use typescript compiler for getting the variable's type and for the purpose we utilize following code:
getApparentType(node : ts.Node) : {type : ts.Type, typeNode : ts.TypeNode} {
        let type : ts.Type = this.checker.getTypeAtLocation(node);
        let typeNode = this.checker.typeToTypeNode(type);

        if(ts.isTypeLiteralNode(typeNode))
        {
            var memberCount = typeNode.members.length;
            var name : string;
            typeNode.members.forEach(member => {
                name +=  member.name;
                name += " , ";
            });
        }
        return {type, typeNode}
    }

The above code, especially the code  typeNode.members.length returns the required members count as expected in most cases.
There is a specific case where a local variable is assigned to the value returned from a function. This function internally creates a object (emulsion in this case) and adds about 27 properties and 20 functions on this object and finally returns this anonymous object.
So essentially, the type of the local variable (emulsionTest in this case) to which the return type of the function (object created ) is assigned should be a object type with 47 members in it.
But the typeNode.members.length returns only 9 as count which implies that there are only 9 members associated to this locally created object which is not right.
Additionally, the first 7 elements of members match the first 7 properties/functions attached to the anonymous object getting returned from the function ( till notifications in this case); the 8th element of the members array has a strange name with following text ... 39 more.. and the 10th element shows the last property/function attached to the anonymous object ( isIE in this case) getting returned from the function.
The sample file for the above scenario is attached with this message (testFile_TypeLiteralExample.txt)
Also a screenshot of the  ... 39 more..  behavior is attached while in debug mode using VS Code.
Expected behavior:
All the 47 members should be displayed; typeNode.members.length should return the actual count (which in this case should be 47) and all the 47 members should be itterable .

testFile_TypeLiteralExample.txt

You wanna pass the NoTruncation flag into the type builder.


Allow to retrigger suspension of expired instance

Description
Changes proposed in this pull request:

...
...
...

Related issue(s)

/hold

fixes: https://github.tools.sap/kyma/backlog/issues/3038

/unhold


Extract configuration information from status page

On any bigger server, the information about scraped targets are buried
behind a long list configuration and rule information. In order to make
them more easily accessible, this change extracts all seldomly changing
configuration information into its own page.
@fabxc @juliusv @brian-brazil
Comments please. If others agree (or at least don't disagree), I'll split the PrometheusStatus and update the tests.

:+1:

:+1:

:+1:

Merging the two discussion threads.

do your dashboards not allow you to find down instances easily

We do have alerts in place if a large percentage of any kind of job is down. The target list gives me an easy (only?) overview of why a scrape is failing.

I expect to use rules (once it's properly fleshed out), config, storage and flags more often than targets.

This doesn't match my current usage or of the people showing me there Prometheus configuration. I know how the config looks like, I just wrote it, I want to see what Prometheus made out of it.

The way I'd like to see things is that we'd have a list of jobs on the Status page, which then link down to the targets for that job. Similarly for rule groups.

This matches my thinking from the other thread:

single status page
 links to the prometheus configuration (extra pages for rules and flags?)
a list of jobs with the status summary (e.g. 100 / 100 UP) with links to the detail page
probably information about prometheus start time, last reload time and server version

"you are using it wrong" isn't a valid argument here. If there's a certain way in which people use the UI, we should make it as convenient as possible.

We use that argument in plenty of other places as we try to guide users down the right path, I don't see why it wouldn't apply here. We need to find a way to allow for a large number of use cases to sanely use the UI, while being careful to avoid too much clutter.

The target list gives me an easy (only?) overview of why a scrape failed.

It is the only way, and I can't imagine that significantly changing (though a recent failures of some form on the status page might be an idea). Having to know exactly why on the Prometheus end should be uncommon from experience, as usually as it's the application's fault so "it's down" is sufficient.

I know how the config looks like, I just wrote it, I want to see what Prometheus made out of it.

I think that's where the contention is. You're thinking of the case where you just wrote a config, and want to see if it worked.
Similarly to when writing code, that's not going to be the case the majority of the time. More often either it's later on and you want to check how it was written, or you want to check that its actually picked up your change, or it's someone else who has never seen the config, or there's templating going on so what's written in source control is not what's in the config.

This matches my thinking from the last proposal in the other thread:

Something along those lines is what I'm thinking.
I'd like it to both be a good landing page to jump off get more detail, and somewhere we can quickly look at to see if the Prometheus is obviously unhealthy (think of all the OOM/storage related queries we get already for example, there's a handful of flags and metrics it'd be good to have readily apparent).

Having to know exactly why on the Prometheus end should be uncommon from experience, as usually as it's the application's fault so "it's down" is sufficient.

It's of high interest from experience. Knowing whether the error was caused by not being able to reach/resolve the target, from a scrape timeout or an invalid scrape result determines the next step to debug the issue.

I think that's where the contention is. You're thinking of the case where you just wrote a config, and want to see if it worked.

No, that was just one example. I have never used the garbled html representation for any of your examples. The thing I can get only from the status page is the list of targets prometheus resolved via service discovery and the scrape error messages.
Anyway, I think we reached a reasonable compromise with having a good summary page under /status and moving all the long details from config, rules and target lists out in sub pages.

I'd suggest a tab "Targets", a tab "Rules", and a tab "Status" with everything else.
From our chat with users we know that some have a HUGE amount of rules and want those better on their own page (as it takes too long to retrieve).

Closing this in lieu of https://github.com/prometheus/prometheus/pull/1631


Single line editor?

Is there a way to restrict the editor to a single-line input? Much like input vs. textarea.

You can probably fake it by registering a key command enter which does nothing (and will override the existing mobiledoc-kit enter handling).
const enterKeyCommand = {
  str: 'enter',
  run(editor) {
    // submit the form
  }
};
editor.registerKeyCommand(enterKeyCommand);

You'd also have to write a parser plugin to deal with pasted content. Document on both techniques is available here: https://github.com/bustlelabs/mobiledoc-kit


[TF1.10][TRT5.0] TFTRT is still using libnvinfer.so.4 not 5, importing tensorflow.contrib.tensorrt failed

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): NO
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): CentOS 7.0
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: NO
TensorFlow installed from (source or binary): pip
TensorFlow version (use command below): 1.10
Python version: 2.7
Bazel version (if compiling from source): NO
GCC/Compiler version (if compiling from source): NO
CUDA/cuDNN version: CUDA9.0 cuDNN 7.0.5
GPU model and memory: TitanXP
Exact command to reproduce: 'import tensorflow.contrib.tensorrt as trt'

Describe the problem
New TensorRT version 5.0 is released from Nvidia official site. I downloaded it and try to import it inside tensorflow, which is called "TFTRT".
But below error popped out:
/home/web_server/dlpy72/dlpy/lib/python2.7/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
  from ._conv import register_converters as _register_converters
**** Failed to initialize TensorRT. This is either because the TensorRT installation path is not in LD_LIBRARY_PATH, or because you do not have it installed. If not installed, please go to https://developer.nvidia.com/tensorrt to download and install TensorRT ****
Traceback (most recent call last):
  File "run_uff.py", line 4, in <module>
    from tensorflow.contrib.tensorrt import tensorrt as trt
  File "/home/web_server/dlpy72/dlpy/lib/python2.7/site-packages/tensorflow/contrib/tensorrt/__init__.py", line 34, in <module>
    raise e
tensorflow.python.framework.errors_impl.NotFoundError: libnvinfer.so.4: cannot open shared object file: No such file or directory

Seems the tensorflow is not updated for new TensorRT. Hope @samikama can take a look into this issue.
Thanks,

@oscarriddle,
TF 1.10 is released long before TRT5.0 is released so it is not possible to have a prebuild pip TF package linking TRT5.0.  If you want, you can rebuild TF and use TRT5.0.

But the version TensorFlow-1.12.0 still gives the same error, what's wrong? The offical documents shows that the TensorRT-5.1.5 is compatible for the TensorFlow 1.12.0. It's weird.
Compatibility
‣ TensorRT 5.1.5 has been tested with the following:
‣ cuDNN 7.5.0
‣ TensorFlow 1.12.0
‣ PyTorch 1.0
‣ ONNX 1.4.1

import tensorflow.contrib.tensorrt as trt
**** Failed to initialize TensorRT. This is either because the TensorRT installation path is not in LD_LIBRARY_PATH, or because you do not have it installed. If not installed, please go to https://developer.nvidia.com/tensorrt to download and install TensorRT ****
Traceback (most recent call last):
File "", line 1, in
File "/media/huaxin/tcl1/asr/yujiangling/lib/python3.6/site-packages/tensorflow/contrib/tensorrt/init.py", line 34, in
raise e
File "/media/huaxin/tcl1/asr/yujiangling/lib/python3.6/site-packages/tensorflow/contrib/tensorrt/init.py", line 25, in
from tensorflow.contrib.tensorrt.python import *
File "/media/huaxin/tcl1/asr/yujiangling/lib/python3.6/site-packages/tensorflow/contrib/tensorrt/python/init.py", line 22, in
from tensorflow.contrib.tensorrt.python.ops import trt_engine_op
File "/media/huaxin/tcl1/asr/yujiangling/lib/python3.6/site-packages/tensorflow/contrib/tensorrt/python/ops/trt_engine_op.py", line 32, in
resource_loader.get_path_to_datafile("_trt_engine_op.so"))
File "/media/huaxin/tcl1/asr/yujiangling/lib/python3.6/site-packages/tensorflow/contrib/util/loader.py", line 56, in load_op_library
ret = load_library.load_op_library(path)
File "/media/huaxin/tcl1/asr/yujiangling/lib/python3.6/site-packages/tensorflow/python/framework/load_library.py", line 60, in load_op_library
lib_handle = py_tf.TF_LoadLibrary(library_filename)
tensorflow.python.framework.errors_impl.NotFoundError: libnvinfer.so.4: cannot open shared object file: No such file or directory


Merge ttf2inc

Description
Merge bagl & nbgl tools and data related to font generation.
Breaking changes
Fonts & Characters structures and contents have been modified.
Additional comments
This PR need to be merged with the coresponding one in bolos-ng repository: https://git.donjon.ledger.fr/gitea/ledger-core/bolos-ng/pulls/1967

Codecov Report
Patch and project coverage have no change.

Comparison is base (19aa220) 85.86% compared to head (5419f6b) 85.86%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #335   +/-   ##
=======================================
  Coverage   85.86%   85.86%
=======================================
  Files           8        8
  Lines         389      389
=======================================
  Hits          334      334
  Misses         55       55

Flag
Coverage Δ

unittests
85.86% <ø> (ø)

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

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


Much cleanup for configuration docs

Clean up a lot of copy.

Reduce usage of internal Sphinx concepts like "toctree"
Make language clearer
Fix a few factual inaccuracies
Remove noisey/placeholder/introduction to a paragraph sort of text,
this just distracts readers.

Make confval domain role to allow for creation of config value field
lists that are linkable and can be referenced. Also include
type/default fields
Reduce redundancy in heading
Intersphinx to Sphinx docs
Use new role to intersphinx to Sphinx confvals
Add copy on using logo/etc. These are common questions for us for
those not familiar with Sphinx. Link to appropriate docs.
Drop all of conf.py boilerplate

An example of the output:


clusterscanreports resource not visible in the drop down list of resources

Backend determined that UI is missing a resource from the dropdown list for CIS Scans.
From rancher/rancher/30395:
Incorrect verb "read" versus "get" in clusterscan resource RBAC prevents correctly granting clusterscan permissions
Steps to reproduce (also you can refer to the steps mentioned here):

Create a Rancher v2.6.8 instance with a single all role custom cluster.
Create a user foo
Create a custom Global role CIS, that grants get and list on cisbenchmarkversions.management.cattle.io and cisconfigs.management.cattle.io. Edit user foo and grant the custom CIS role.
Create a custom Cluster role Clusterscans, that grants get and list on clusterscans.cis.cattle.io, and grant the user foo this role on the custom cluster.
As the admin user run a CIS Scan on the custom cluster (after installing CIS Benchmark Chart).
as admin, run a CIS benchmark scan with the '1.6 permissive scan.' profile applied
log in as the user you created
view CIS benchmark scan page
click on the name of the scan

Result:

Logged in as the admin user observe once the CIS scan is complete that you can click the scan name to view the report details, and that viewing the scan in the API the links: report: field is populated.
Logged in as the user foo observe that whilst the CIS Scan resource is listed, you cannot view the report details in the UI, and whilst you an access the v3/clusterScans/<cluster_id>:<report_id>/report API endpoint successfully, the links: report field in the v3/clusterScans/<cluster_id>:<report_id> endpoint is not populated (which is the reason the report details are not populated in the UI.

Relevant backend discovery from @rayandas:

I was debugging why the clusterscanreports resource is not visible on the UI.
Things are already written in rancher/cis-operator under cis.cattle.io api group. https://github.com/rancher/cis-operator/blob/master/pkg/generated/controllers/cis.cattle.io/v1/clusterscanreport.go.
It's just not visible on the drop down list on the UI while creating cluster role. If we add clusterscanreports resource by editing kubectl edit clusterrole <name> then it’s working fine. I think it's an UI issue.

The resource clusterscanreports is not visible on the dropdown list in cluster roles. Refer to the below snapshot:

If we add the clusterscanreports resource manually in the cluster role by using kubectl, then the reports are visible and downloadable from user foo. So it seems like clusterscanreports is working and it's just not visible in the drop down list.
Originally posted by @rayandas in https://github.com/rancher/rancher/issues/30395#issuecomment-1259456188

This is a very easy one-line change. I've made the change in https://github.com/rancher/dashboard/pull/7259

retest failed, passing this ticket back to dev.
as an admin i cannot see clusterscanreports as a resource option when creating a clusterRoleTemplate
tested on rancher 2.7head ce9a7ae

@AndrewHoffmanQA Can you go to the global settings and check the value of ui-dashboard-index? It should be https://releases.rancher.com/dashboard/latest/index.html
I think the reason the change isn't showing is that this is right after the 2.7.0 release, so that setting is still configured for 2.7.0 by default, but this change won't show up in the 2.7.0 version of the UI because this change is scoped for 2.7.1.

I pulled the latest version of 2.7head and retest now passes. moving to done column!

note: this bug scope was just around adding clusterRoleTemplate to the UI. the functional testing of the bug is being tracked on this ticket. https://github.com/rancher/rancher/issues/30395#issuecomment-1259456188_


feat: Adds extra services to zeebe broker

What?
This PR allows users to expose any ports they need
Why?
There can  be instances when one needs to export additional ports.  In my case it was due to installing an exporter.

@Zelldon Can you please give me feedback on this feature? If you like it I will update the readme and anything else you may ask for

@Zelldon just a reminder about this

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Also squashed the commits :)

Thanks @michelefa1988 :+1:

@Zelldon  Is the new version automated since I still see 0.0.22 as the latest :)
OR maybe I am too fast :)

:) I have to trigger it first give me a minute

@michelefa1988 https://github.com/camunda/camunda-platform-helm/releases/tag/ccsm-helm-0.0.23


[Feature request] support for 14.2

I have iPhone XS on iOS 14.2 and can give VNC/SSH access to it.

I have an iPhone 12 Pro Max on 14.2. I can give my bluetoothd file if it's needed.

bluetoothd14.2(18B92).zip

Here’s the one from my iPad on iPadOS 15.0 Beta 8 if that helps. I also have several devices on different versions of iOS 13. Lmk if I should send those also.bluetoothd15.0b8(19A5340a).zip

Thanks for the binary, works would be done soon.
By the way, for me without the tweak it was treated as unknown bluetooth earbuds and the peer's voice goes through it while my voice going through the phone's microphone. So I'm not very sure if this tweak helps with the problem of having no voice during the call. Just fyi that don't be so disappointed if it doesn't work as intended.

Alright. Either way, thanks so much for all of the work you are putting into this! If you don't mind me asking, what would stop you from downloading an IPSW for each version and extracting bluetoothd from each version? Maybe I'm wrong but I thought IPSWs weren't even encrypted anymore.

I don't want to write my SSD again and again w/ such useless data I think, and it takes time to download as well.
Could be laziness in a word ;)

Oh lol yea that makes sense. If you'd like I could try to download a bunch of IPSWs but I'm not positive exactly what I'm looking for in the bluetoothd file.

Oh lol yea that makes sense. If you'd like I could try to download a bunch of IPSWs but I'm not positive exactly what I'm looking for in the bluetoothd file.

Wow don't even waste your time downloading it for just a binary file! But you're welcomed to if you really want.

Here’s the one from my iPad on iPadOS 15.0 Beta 8 if that helps. I also have several devices on different versions of iOS 13. Lmk if I should send those also.bluetoothd15.0b8(19A5340a).zip

Is the first generation supported by iOS 13? If not it could be a tough thing.

Here’s the one from my iPad on iPadOS 15.0 Beta 8 if that helps. I also have several devices on different versions of iOS 13. Lmk if I should send those also.bluetoothd15.0b8(19A5340a).zip

Is the first generation supported by iOS 13? If not it could be a tough thing.

I'm pretty sure it is supported but I'm not positive. I'll check later tonight or tomorrow with my first gen AirPods Pro and my old phone on 13.6

iOS 13.2 came out 2 days before the AirPods Pro came out so I'm sure 13.2 and up will work fine but I couldn't say for 13.1.3 and lower.

Actually I have a device with iOS 13.? that has been discharged for a long time, I may give a try with that later.

I just compiled and installed on my 12 Pro Max on iOS 14.2 but swiping to increase/decrease the volume still doesn't work.

Here is a bluetoothd crash log.

Your bluetoothd crashed right after swiping?

No I think it crashed right after the respring.

How was the other stuff? Like accessibility.

I tried enabling noise cancellation with one AirPod in and that doesn't seem to work so I don't think there's any difference. The popup shows up when I open the case but that always happened even with the original version of the tweak.

Oh I see one-AirPod noise cancellation doesn't work on my device too. Only transportation-mode adjustments does.
So by that it means the accessibility settings showed up, and the problem is mainly on the side of software volume changing and I am going to deal with it.

The AirPods section of accessibility shows up for me even without the tweak installed. Once I install it I don't notice any difference besides the pop up working.

The AirPods section of accessibility shows up for me even without the tweak installed. Once I install it I don't notice any difference besides the pop up working.

Are you sure it's working for the pro-2 device? If you've connected different airpods before you might be seeing that.. I have my pro 1st gen which shows accessibility for that and then when I used this tweak it shows a second menu for the new one so there's 2 of them separately. You might be changing the accessibility settings for a different set of airpods.
FYI @LNSSPsd enabling one-pod cancelling is actually working for me on 14.8 (with tweak)

The AirPods section of accessibility shows up for me even without the tweak installed. Once I install it I don't notice any difference besides the pop up working.

Have a try on the latest one, please.

The AirPods section of accessibility shows up for me even without the tweak installed. Once I install it I don't notice any difference besides the pop up working.

@Symplicityy Have a try on the latest one, please.

My bad I was out. Volume control works now! Unfortunately it doesn't seem like calls are working :(


<IP_ADDRESS>.5.0

This PR updates the partner version to <IP_ADDRESS>.5.0 for release.

Closing; cleaning this version out so that it can be regenerated automatically.


Require Audio Easing support on RialtoMSEAudioSink for Netflix (comments added around the fade-volume prop )

Summary: Require Audio Easing support on RialtoMSEAudioSink for Netflix - comments added around fade volume prop
Type: Fix
Test Plan: UT/ CT
Jira: RIALTO-593

Job for AI/job/AI_BUILDS/job/AI-Trigger-PR-Builds started: https://pv-jen015.uk2.scp.bskyb.com/job/AI/job/AI_BUILDS/job/AI-Trigger-PR-Builds/51/

Sanity tests for ['BCM 7216OTT Refboard VA'] added.
https://jenkinsrdkm.cmf.code.rdkcentral.com/job/test-components-flow/65145/

Sanity tests for ['RPI4 IPSTB'] added.
https://jenkinsrdkm.cmf.code.rdkcentral.com/job/test-components-flow/65148/


Cannot find module "localforage"

Runtime Error
Cannot find module "localforage"
Stack
Error: Cannot find module "localforage"
at v (http://localhost:8100/build/polyfills.js:3:4864)
at Object. (http://localhost:8100/build/main.js:134842:7)
at webpack_require (http://localhost:8100/build/main.js:20:30)
at Object. (http://localhost:8100/build/main.js:41165:67)
at webpack_require (http://localhost:8100/build/main.js:20:30)
at Object. (http://localhost:8100/build/main.js:119973:73)
at webpack_require (http://localhost:8100/build/main.js:20:30)
at Object. (http://localhost:8100/build/main.js:143426:70)
at webpack_require (http://localhost:8100/build/main.js:20:30)
at http://localhost:8100/build/main.js:66:18
at http://localhost:8100/build/main.js:69:10

Thanks for the issue! I'm going to close this as it doesn't seem like it's an issue with the conference app itself. Please visit our forum or slack channel for questions about the framework. :smile:
If this is an issue with the conference app, please create a new issue with answers to the pre-populated questions:

Thanks so much!

Anyone landing here should check https://github.com/ionic-team/ionic-storage/issues/128
Basically the issue may be either an npm version, an incorrect upgrading/updating of ionic and/or node_modules and/or the packages-lock.json file.


Build interface between Python bindings and Pyk

Working out the best way to integrate the new LLVM backend Python bindings with Pyk is not a simple design decision; there are several factors that need to be considered when designing the feature. @tothtamas28 and I have spent some time working out our preferred solution; this issue documents the decisions we made, and tracks the individual feature issues that the change will comprise.
Summary
The LLVM backend Python bindings are conceptually split into two parts, which we refer to as Type 1 and Type 2 from this point:

Type 1 bindings can be built statically as part of the LLVM backend source tree. The features here are independent of a particular K definition (for example, parsing and constructing a KORE AST).
Type 2 bindings depend on code generated as part of the llvm-kompile pipeline; we can't construct this entirely at kompile time, and so we build a static library that later gets turned into a Python module.

Type 2 bindings (under the current infrastructure) completely subsume the Type 1 bindings (i.e. any code in Type 1 is also contained in Type 2).
The design problem we face is trying to allow Pyk to use both types of binding when it is appropriate to do so:

Having access to the Type 1 bindings is useful to get access to fast C++ AST and parsing interfaces (e.g. implementing a script like llvm-krun in Python) when a definition is not available.
The Type 2 bindings are necessary to do any kind of execution given a C++ AST.

Options
We arrived at two main options to implement the Pyk / bindings interface:

Drop Type 1 bindings entirely. Pyk code that wanted to use the Type 1 features would then be responsible for compiling an empty K module to get access to a "dummy" set of Type 2 bindings; the subsumption means that the Type 1 features would then be available.

The primary benefit here is that we'd be able to somewhat simplify the build and packaging process for the bindings, by assuming that a Type 2 binding must always be available.
We opted against this strategy because it feels like a hack, and would have a performance impact for code using Type 1 features.
For example, code that wanted to take advantage of the faster KORE parser in the LLVM backend would have to invoke kompile first, which would be somewhat self-defeating.

Split Type 1 and 2; package as part of K. Pyk has a dependency on K, and so we'd be able to have K install the bindings package to a consistent location. Pyk can then set PYTHONPATH appropriately to pick the Type 1 bindings module up as an import.

Python code that requires the Type 2 features can then use (for example) a try / import to load the definition-specific module at run time.
This is our preferred option to implement, but requires that we can split the python bindings into two separate libraries that don't overlap.

Implementation

#556
#544
K already builds and installs the bindings to ./k-distribution/target/release/k/lib/python/. Pyk should be able to get them from here.

We have worked out this interface, and binding code can be added neatly without any further hassle in the build system. It is now just a question of implementing the bindings, and percolating changes over to Pyk.


Switch to tuple() to encode BPE dict keys

See the issue occurring when literal , characters need to be tokenised (https://github.com/alisonjf/gpt3-tokenizer/issues/1).

See the issue occurring when literal , characters need to be tokenised (#1).

Hey! I've bumped into this infinite loop before but I didn't have the time to investigate and fix it. Thanks a lot for your contribution!


False positive unused dependency

Repro
Probably because buffer is built into Node, however node types aren't installed, this is a browser package ponyfill

Indeed, Knip is using module.isBuiltin. You can use ignoreDependencies for exceptions like this.

Sure, but I wonder if detecting presence of @types/node could be a helpful heuristic here?

That might work, but sounds like unnecessary complexity, error-prone, for an uncommon situation.

"Uncommon" is a relative term. Quick search over github for buffer in package.json files shows 45 thousand hits, and that's not the only package that would get a false positive like this, and we can't see private repos, obviously.
I guess rather than looking at @types/node, if there's explicitly an import of a package that's listed in package.json, it either shouldn't be flagged at all, or go into some kind of "Ambiguous" category? Ignoring is possible, of course.

With "uncommon" I meant Node.js built-in modules that are also available as a module in the npm registry under the same name (but this claim is not backed by any numbers).
It's ambiguous indeed, not sure what's the best way to go about this yet. The generic solution to do the same for all built-ins also listed is debatable, since I think Knip should report modules like "path":
❯ last-publish path
The last publish date of path is 9/13/2015

An array of built-ins that are also commonly used packages could work, but looks like even buffer is "fixing itself":
❯ last-publish buffer
The last publish date of buffer is 11/23/2020

Going to close this one. Knip could fix it, but tbh I like the fact that it raises it as an issue, makes you think (e.g. in Node.js you may not want the package but the built-in), and if necessary can be configured as an exception (in ignoreDependencies). Over time, this problem will fade anyway.


type encoding

A type encoding is a map from a collection of types to distinct values from an enumerable type.
i.e.
E : <T1, \dots, T_r> -> {v1, \dots, v_r}

Alternative considerations:

[x] std::tuple of std::pairs<T, std::integral_constant<E, e>>;
[ ] integral constant
[ ] variable template
[ ] https://cplusplus.github.io/reflection-ts/draft.pdf


Implement raw mouse motion for Windows

This PR implement's @Ralith's original Motion API for Windows.
The event names will be be out of date if/when #192 lands, but it should be an easy change.

I'm wondering if RIDEV_INPUTSINK is a good idea. IIUC wayland doesn't allow this behavior, so we won't be able to reproduce this on all platforms.

After reading the documentation more closely, adding that flag is most likely a mistake; the code is transcribed from a C++ example I found.

@tomaka, I knocked that flag out and things appear to still work when the window is focused. Good catch!

Looks good now, thanks


feat(history-queries): hide filters length in predictive

Pull request template

Describe the purpose of the change, the specific changes done in detail, and the issue you have fixed.
Motivation and context

[ ] Dependencies. If any, specify:
[ ] Open issue. If applicable, link:

Type of change

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

What is the destination branch of this PR?

[ ] Main
[ ] Other. Specify:

How has this been tested?

Tests performed according to testing guidelines:
Checklist:

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

Check PR 358 preview 👀   https://x.test.empathy.co/preview/358/index.html


Typing all possible combinations of arguments a function can expect

I'm trying to use Flow to statically type the usage of react-navigation in my app.  It has a method navigate(routeName, params?) in particular, where I'm trying to use types to make sure individual routes are being passed the correct params.
Fortunately, using rest parameters on a tuple seems to work.  Here's what's been working for me initially:
type ProfileParams = { foo: string }

type Route =
  | ['Home']
  | ['Profile', ProfileParams]

type Navigate = (...Route) => void
const navigate: Navigate = (routeName, params?) => {}

navigate('Home')
navigate('Profile', { foo: 'hello' })
// $FlowExpectedError
navigate('Profile', { foo: 3 })

// No errors!

Unfortunately, this breaks with certain more complex param shapes:
// Don't work
type ProfileParams = { foo: string | null }
type ProfileParams = { foo: string | boolean }
type ProfileParams = { foo?: string }

// Works
type ProfileParams = { foo: 'hello' | 'world' }

Through a lot of trial and error I've found these can all work if they're explicitly annotated with types when passed in as parameters:
navigate('Profile', ({ foo: 'hello' }: ProfileParams))
// Fixes all the above "Don't work" cases

So not really a high priority issue as the workaround is fairly straightforward.  But just thought I'd document in case anyone else is running into a similar issue.  And of course it would be ideal for this type of usage to be supported without the need for extra annotations.  Or if there's a better way to achieve what I'm aiming for, please let me know.

Does something like this solve your problem?

The navigate function I'm specifying in my example is built in to the library, so I can't change its signature to be like that unfortunately.  But agreed that would have made it easier to type check with Flow.

@jamesisaac you can write your own navigate that's just an adapter for the 3rd party lib.

@madbence One of the main selling points of Flow is that you can write your own type definitions for 3rd party libs.  I don't see it as a very elegant solution to be writing my own adapter libs all over the place just to make things a nicer format for Flow... just leads to a noisier codebase, more to maintain, another API different from all the docs, etc.
The workaround I included in the initial post is pretty short and does get around this anyway.  So I'm mainly just highlighting the apparent issue in Flow where it detects types incorrectly without excess annotations.


Please either move to spaces instead of tabs or add at least vim modelines telling to not use spaces instead of tabs

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/26650902-please-either-move-to-spaces-instead-of-tabs-or-add-at-least-vim-modelines-telling-to-not-use-spaces-instead-of-tabs?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github).

Spaces are a lot more consistent, and less confusing/messy to apply and work with.
:+1:

http://sprunge.us/OcQa

starts from 12:00:23

but you can skip to 14:46:55

I have this in vim:
set ts=4
set sw=4
set sts=4

I don't think I can change my global config just because of one project while Vim has modelines that the file can use to inform what should be done witw it.

http://vim.wikia.com/wiki/Modeline_magic

Based on IRC, didn't we decide that 4 spaces instead of one tab is acceptable?

it wasn't really a decision, just a preference of those whom were present at the time.

This is done already


Can I make it run on GKE (no RBAC) ?

Thanks so much for this. Fits our stack perfectly and it works exactly as I always wanted.
The problem is GKE and no RBAC. Can I get around not having RBAC enabled in GKE?

@kilianc it should be easy to use when RBAC is disabled:

update the deployment.yml to not reference a service account: serviceAccountName: rebase-robot needs to be removed
remove rbac.yml
kubectl apply -f k8s

that being said I have not used the rebase bot without RBAC. Let me know if you run into any issues!

it works perfectly just removing the right bits, kubectl pretty much tells you what to do

Thanks for the feedback, @kilianc


Better performance than the reported.

Hi,
I am reproducing the fine-tune results following your instruction.
I work on your default code and my setting is as below. I work on ebmnlp and pico task without fine-tuning

DATASET='ebmnlp',      TASK='pico', with_finetuning='' #'_finetune'  # or '' for not fine tuning, dataset_size=38124,

However, I found my results are much better than the reported number in your paper. In scibert paper, the micro F1 is 68.30 (Frozen) and 72.28 (fine-tune), but in my experiment, the F1 is 75.48 (frozen).

"test_accuracy": 0.8668599033816425,
"test_accuracy3": 0.9632463768115942,
"test_F1_O": 0.9153885841369629,
"test_F1_I-OUT": 0.673623263835907,
"test_F1_I-PAR": 0.7656552195549011,
"test_F1_I-INT": 0.6646913886070251,
"test_avg_f1": 0.754839614033699,
"test_loss": 4.438140077646389

I am really confused.
Thanks

Thanks to @kyleclo , this question has been solved.
This is because I use the wrong metrics. The correct one should be (test_F1_I-OUT+test_F1_I-PAR+test_F1_I-INT)/3 = 0.7013232907.
I am curious why it is still higher than the reported number, which is 68.30


Add InstanceVariableNode to the AST parser

While working on #5445 I found that I needed to work with instance variable nodes in the syntax tree. But this class doesn't exist, so I committed some LoD violations to get what I needed.
I figure an InstanceVariableNode is nice to have when we're introspecting ruby code.

Before submitting the PR make sure the following are checked:

[x] Wrote good commit messages.
[x] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[x] Added tests.
[x] Added an entry to the Changelog if the new code introduces user-observable changes. See changelog entry format.
[x] The PR relates to only one subject with a clear title
and description in grammatically correct, complete sentences.
[x] Run rake default or rake parallel. It executes all tests and RuboCop for itself, and generates the documentation.

I don't think it makes sense to have this any more.


[BUG] preserve empty line between SQL blocks

Describe the bug
linesBetweenQueries: preserve but empty lines are removed.

To Reproduce
  "sqltools.format": {
    "linesBetweenQueries": "preserve"
  }

CREATE TABLE `bar` (
  `id` int NOT NULL,
  `name` varchar(200) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

CREATE TABLE `foo` (
  `id` int NOT NULL,
  `name` varchar(200) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

CREATE TABLE `qaz` (
  `id` int NOT NULL,
  `name` varchar(200) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

Expected behavior
Empty line preserved when linesBetweenQueries: preserve
Actual behavior
Empty line removed when linesBetweenQueries: preserve
CREATE TABLE `bar` (
  `id` int NOT NULL,
  `name` varchar(200) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci;
CREATE TABLE `foo` (
  `id` int NOT NULL,
  `name` varchar(200) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci;

CREATE TABLE `qaz` (
  `id` int NOT NULL,
  `name` varchar(200) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci;

Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

SQLTools Version 0.23.0
VSCode Version: 1.59.1
OS: Linux
Driver:

[ ] PostgreSQL/Redshift
[x] MySQL/MariaDB
[ ] MSSQL/Azure
[ ] SQLite
[ ] Other? Which...

Database version: mysql 8.0.29

Additional context
DBeaver > select > Generate SQL > DDL

https://github.com/mtxr/vscode-sqltools/issues/507

Does https://github.com/mtxr/vscode-sqltools/discussions/887#discussioncomment-3009193 help you?

I'm finding the same. Trying to keep the line count preserved has very unpredictable behaviour, but always ends up in all blank lines being removed after a few saves.


Minor UI changes

As per discussion with Natalie Baron, a few updates that improve
how content designers perceive the CPM

Thank you @chao-xian, I have removed the header.
@cbaines also mentioned that the details page will look better without the header
Thanks both.


Crash when many collision happen

What happened?
Crash when many collision happen
What do you expect?
Works fine like version 1.18.0
How can we reproduce this?
No response
What steps should take to fix this?
No response
Do have an example of where the bug occurs?
No response
Relevant log output
════════ Exception caught by scheduler library ═════════════════════════════════
The following _TypeError was thrown during a scheduler callback:
type 'Null' is not a subtype of type 'Component' in type cast

When the exception was thrown, this was the stack:
#0      _CompactIterator.current (dart:collection-patch/compact_hash.dart:728:29)
#1      _OrderedSetIterator.current (package:ordered_set/ordered_set.dart:191:36)
#2      Iterable.forEach (dart:core/iterable.dart:347:35)
#3      Component.updateTree (package:flame/src/components/core/component.dart:527:16)
#4      FlameGame.updateTree (package:flame/src/game/flame_game.dart:163:17)
#5      HasTimeScale.updateTree (package:flame/src/components/mixins/has_time_scale.dart:35:11)
#6      FlameGame.update (package:flame/src/game/flame_game.dart:152:7)
#7      HasQuadTreeCollisionDetection.update (package:flame/src/collisions/broadphase/quadtree/has_quadtree_collision_detection.dart:84:11)
#8      HasTimeScale.update (package:flame/src/components/mixins/has_time_scale.dart:30:11)
#9      BonfireGame.update (package:bonfire/base/bonfire_game.dart:188:11)
#10     GameRenderBox.gameLoopCallback (package:flame/src/game/game_render_box.dart:121:10)
#11     GameLoop._tick (package:flame/src/game/game_loop.dart:46:13)
#12     Ticker._tick (package:flutter/src/scheduler/ticker.dart:261:12)
#13     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1397:15)
#14     SchedulerBinding.handleBeginFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:1240:11)
#15     _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:633:13)
#16     SchedulerBinding.handleBeginFrame (package:flutter/src/scheduler/binding.dart:1238:17)
#17     SchedulerBinding._handleBeginFrame (package:flutter/src/scheduler/binding.dart:1155:5)
#18     _invoke1 (dart:ui/hooks.dart:328:13)
#19     PlatformDispatcher._beginFrame (dart:ui/platform_dispatcher.dart:397:5)
#20     _beginFrame (dart:ui/hooks.dart:272:31)

This exception was thrown in the context of a scheduler callback. When the scheduler callback was _registered_ (as opposed to when the exception was thrown), this was the stack:
#2      SchedulerBinding.scheduleFrameCallback (package:flutter/src/scheduler/binding.dart:611:49)
#3      Ticker.scheduleTick (package:flutter/src/scheduler/ticker.dart:277:46)
#4      Ticker.start (package:flutter/src/scheduler/ticker.dart:183:7)
#5      GameLoop.start (package:flame/src/game/game_loop.dart:54:15)
#6      GameRenderBox._attachGame (package:flame/src/game/game_render_box.dart:97:16)
#7      GameRenderBox.attach (package:flame/src/game/game_render_box.dart:88:5)
#8      RenderObject.adoptChild (package:flutter/src/rendering/object.dart:1841:13)
#9      ContainerRenderObjectMixin.insert (package:flutter/src/rendering/object.dart:4324:5)
#10     MultiChildRenderObjectElement.insertRenderObjectChild (package:flutter/src/widgets/framework.dart:6974:18)
#11     RenderObjectElement.attachRenderObject (package:flutter/src/widgets/framework.dart:6732:35)
#12     RenderObjectElement.mount (package:flutter/src/widgets/framework.dart:6597:5)
#13     Element.inflateWidget (package:flutter/src/widgets/framework.dart:4468:16)
#14     MultiChildRenderObjectElement.inflateWidget (package:flutter/src/widgets/framework.dart:7035:36)
#15     MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:7047:32)
#16     Element.inflateWidget (package:flutter/src/widgets/framework.dart:4468:16)
#17     Element.updateChild (package:flutter/src/widgets/framework.dart:3957:20)
#18     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5642:16)
#19     StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5780:11)
#20     Element.rebuild (package:flutter/src/widgets/framework.dart:5333:7)
#21     BuildScope._tryRebuild (package:flutter/src/widgets/framework.dart:2693:15)
#22     BuildScope._flushDirtyElements (package:flutter/src/widgets/framework.dart:2752:11)
#23     BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:3048:18)
#24     _LayoutBuilderElement._rebuildWithConstraints (package:flutter/src/widgets/layout_builder.dart:231:12)
#25     RenderObject.invokeLayoutCallback.<anonymous closure> (package:flutter/src/rendering/object.dart:2719:59)
#26     PipelineOwner._enableMutationsToDirtySubtrees (package:flutter/src/rendering/object.dart:1098:15)
#27     RenderObject.invokeLayoutCallback (package:flutter/src/rendering/object.dart:2719:14)
#28     RenderConstrainedLayoutBuilder.rebuildIfNecessary (package:flutter/src/widgets/layout_builder.dart:278:5)
#29     _RenderLayoutBuilder.performLayout (package:flutter/src/widgets/layout_builder.dart:369:5)
#30     RenderObject.layout (package:flutter/src/rendering/object.dart:2608:7)
#31     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:21)
#32     RenderObject.layout (package:flutter/src/rendering/object.dart:2608:7)
#33     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:21)
#34     RenderObject.layout (package:flutter/src/rendering/object.dart:2608:7)
#35     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:21)
#36     RenderObject.layout (package:flutter/src/rendering/object.dart:2608:7)
#37     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:21)
#38     RenderObject.layout (package:flutter/src/rendering/object.dart:2608:7)
#39     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:21)
#40     RenderObject.layout (package:flutter/src/rendering/object.dart:2608:7)
#41     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:21)
#42     _RenderCustomClip.performLayout (package:flutter/src/rendering/proxy_box.dart:1448:11)
#43     RenderObject.layout (package:flutter/src/rendering/object.dart:2608:7)
#44     _RenderLayoutBuilder.performLayout (package:flutter/src/widgets/layout_builder.dart:371:14)
#45     RenderObject.layout (package:flutter/src/rendering/object.dart:2608:7)
#46     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:21)
#47     RenderObject.layout (package:flutter/src/rendering/object.dart:2608:7)
#48     ChildLayoutHelper.layoutChild (package:flutter/src/rendering/layout_helper.dart:61:11)
#49     RenderStack._computeSize (package:flutter/src/rendering/stack.dart:595:43)
#50     RenderStack.performLayout (package:flutter/src/rendering/stack.dart:622:12)
#51     RenderObject.layout (package:flutter/src/rendering/object.dart:2608:7)
#52     ChildLayoutHelper.layoutChild (package:flutter/src/rendering/layout_helper.dart:61:11)
#53     RenderStack._computeSize (package:flutter/src/rendering/stack.dart:595:43)
#54     RenderStack.performLayout (package:flutter/src/rendering/stack.dart:622:12)
#55     RenderObject.layout (package:flutter/src/rendering/object.dart:2608:7)
#56     MultiChildLayoutDelegate.layoutChild (package:flutter/src/rendering/custom_layout.dart:173:12)
#57     _ScaffoldLayout.performLayout (package:flutter/src/material/scaffold.dart:1092:7)
#58     MultiChildLayoutDelegate._callPerformLayout (package:flutter/src/rendering/custom_layout.dart:237:7)
#59     RenderCustomMultiChildLayoutBox.performLayout (package:flutter/src/rendering/custom_layout.dart:404:14)
#60     RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:2446:7)
#61     PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:1052:18)
#62     PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:1065:15)
#63     RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:602:23)
#64     WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:1164:13)
#65     RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:468:5)
#66     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1397:15)
#67     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1318:9)
#68     SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1176:5)
#69     _invoke (dart:ui/hooks.dart:312:13)
#70     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:419:5)
#71     _drawFrame (dart:ui/hooks.dart:283:31)
(elided 2 frames from class _FrameCallbackEntry)
════════════════════════════════════════════════════════════════════════════════

Execute in a terminal and put output into the code block below
[✓] Flutter (Channel stable, 3.24.0, on Zorin OS 17.1 6.5.0-25-generic, locale pt_BR.UTF-8)
    • Flutter version 3.24.0 on channel stable at /home/rafael/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 80c2e84975 (3 months ago), 2024-07-30 23:06:49 +0700
    • Engine revision b8800d88be
    • Dart version 3.5.0
    • DevTools version 2.37.2

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /home/rafael/Android/Sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /home/rafael/android-studio/jbr/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = /var/lib/flatpak/exports/bin/com.google.Chrome

[✓] Linux toolchain - develop for Linux desktop
    • Ubuntu clang version 14.0.0-1ubuntu1.1
    • cmake version 3.22.1
    • ninja version 1.10.1
    • pkg-config version 0.29.2

[✓] Android Studio (version 2023.1)
    • Android Studio at /home/rafael/android-studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)

[✓] VS Code (version 1.93.0)
    • VS Code at /usr/share/code
    • Flutter extension version 3.98.0

[✓] Connected device (2 available)
    • Linux (desktop) • linux  • linux-x64      • Zorin OS 17.1 6.5.0-25-generic
    • Chrome (web)    • chrome • web-javascript • Google Chrome 130.0.6723.58

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Affected platforms
All
Other information
No response
Are you interested in working on a PR for this?

[ ] I want to work on this

It's definitely related to the latest ordered_set update, you should be able to do a dependency_override and point at 6.0.1 as a workaround.
@luanpotter seems like we introduced a bug in this PR: https://github.com/bluefireteam/ordered_set/pull/46

Thanks for this information @spydon !
Will create a simple example with flame to try reproduce this and will post here.

Can you try if it works like it should with the newest release of ordered_set?
dependency_overrides:
  ordered_set: ^6.1.1

Hi @spydon !
There is something strange yet. Something crash but show nothing in the debug console.
I was trying reproduce it in the pure Flame project but nothing yet.
I'm investigating.

@RafaelBarbosatec that's odd, thanks for investigating!

I tried running with the performance test game (https://examples.flame-engine.org/#/Sample_Games_Rogue_Shooter) where there are lots of collisions, but I can't see any problems there.

Yes, there is any situation that cause this problem. I just not find out yet. The problem exist, because the other versions works fine.


Changes in style.css

please add scrrenshot of the changes and also resolve branch conflicts

also please resolve branch conflict

Okay I will resolve it
On Tue, Oct 4, 2022, 00:29 Avinash Singh @.***> wrote:

also please resolve branch conflict
—
Reply to this email directly, view it on GitHub
https://github.com/avinash201199/To-Do-List/pull/120#issuecomment-1265894997,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARVBVDZQQ7KMEXJ63EMBXCLWBMUJFANCNFSM6AAAAAAQ3ZUPBQ
.
You are receiving this because you authored the thread.Message ID:
@.***>

@avinash201199  the conflicts are resolved, you can check it.

delete ther repo and then fork again to do your changes

@avinash201199  I have resolved the conflicts, check it now


[Bug]: Missing functionality(openssl) to encrypt and store encrypted passwords

Name and Version
rapidfort/nginx-official
Which runtime are you using to reproduce this issue?

[ ] Kubernetes
[X] Docker Compose
[X] Docker

Is this issue reproducible on the original source image?
Reproducible
Could you please identify the category? Details in TROUBLE_SHOOTING.md
Coverage missing
What steps will reproduce the bug?

Open terminal inside container.
Create a file to store username and password and concatenate first name into it echo -n "harman:" > .htpasswd
Use openssl to generate encrypted password openssl passwd -apr1 >> /etc/nginx/.htpasswd . This command is not working.

Are you using any custom parameters or values?
No response
What is the expected behavior?
#openssl passwd -apr1 >> /etc/nginx/.htpasswd
Password:
Verifying - Password:

After this, encrypted password is stored in .htpasswd file.
What do you see instead?
# openssl passwd -apr1 >> /etc/nginx/.htpasswd
/bin/sh: 1: openssl: not found

Additional information
No response

Hi @Harman717, openssl is an optional package which is also considered a vulnerability. Hence, this is not a bug.
Ref: https://security-tracker.debian.org/tracker/CVE-2022-2097


⚠ Account - Ascentia has degraded performance

In 0281e4c, Account - Ascentia (https://account.ascentia.fr/) experienced degraded performance:

HTTP code: 522
Response time: 15316 ms

Resolved: Account - Ascentia performance has improved in 4361181.


The Coord selector crashes when right clicking and when looking at the tooltip.

http://pastebin.com/BeDbj00V

How did you create this item? It seems to be missing its NBT data.

I crafted it and then shift+right clicked on a block below me(It was a telepad block but I tried it with dirt and other things). Then it crashed. Then I put it in my AE system and whenever I mouse over it it crashes.