default directory is wrong

@rultor release, tag is 0.1.5

@rultor release, tag is 0.1.5

@yegor256 OK, I will release it now. Please check the progress here

@rultor release, tag is 0.1.5

@yegor256 Oops, I failed. You can see the full log here (spent 2hr)
Latexmk: Examining 'minimal.fls'
Latexmk: Examining 'minimal.log'
Latexmk: Log file says output to 'minimal.pdf'
Latexmk: All targets (minimal.pdf) are up-to-date
latexmk -pdf "ultimate.tex"
Rc files read:
  .latexmkrc
Latexmk: This is Latexmk, John Collins, 17 Mar. 2022. Version 4.77, version: 4.77.
Latexmk: applying rule 'pdflatex'...
Rule 'pdflatex': File changes, etc:
   Changed files, or newly in use since previous run(s):
  ultimate.tex
Rule 'pdflatex': The following rules & subrules became out-of-date:
  pdflatex
------------
Run number 1 of rule 'pdflatex'
------------
------------
Running 'pdflatex  -recorder  --shell-escape "ultimate.tex"'
------------
This is pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022) (preloaded format=pdflatex)
 \write18 enabled.
entering extended mode
(./ultimate.tex
LaTeX2e <2022-06-01> patch level 5
L3 programming layer <2022-08-30>
(/usr/local/texlive/2022/texmf-dist/tex/latex/base/article.cls
Document Class: article 2021/10/04 v1.4n Standard LaTeX document class
(/usr/local/texlive/2022/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2022/texmf-dist/tex/latex/crumbs/crumbs.sty
(/usr/local/texlive/2022/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/local/texlive/2022/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/local/texlive/2022/texmf-dist/tex/generic/xkeyval/xkvutils.tex
(/usr/local/texlive/2022/texmf-dist/tex/generic/xkeyval/keyval.tex))))
(/usr/local/texlive/2022/texmf-dist/tex/latex/etoolbox/etoolbox.sty)
(/usr/local/texlive/2022/texmf-dist/tex/generic/catchfile/catchfile.sty
(/usr/local/texlive/2022/texmf-dist/tex/generic/infwarerr/infwarerr.sty)
(/usr/local/texlive/2022/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty)
(/usr/local/texlive/2022/texmf-dist/tex/generic/etexcmds/etexcmds.sty
(/usr/local/texlive/2022/texmf-dist/tex/generic/iftex/iftex.sty)))
Since "dry" mode is ON we don't renew "section" and "subsection" commands)
(/usr/local/texlive/2022/texmf-dist/tex/latex/clicks/clicks.sty)
(../ppt-slides.sty

LaTeX Warning: You have requested package `../ppt-slides',
               but the package provides `ppt-slides'.

(/usr/local/texlive/2022/texmf-dist/tex/latex/pgfopts/pgfopts.sty
(/usr/local/texlive/2022/texmf-dist/tex/latex/pgf/utilities/pgfkeys.sty
(/usr/local/texlive/2022/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex
(/usr/local/texlive/2022/texmf-dist/tex/generic/pgf/utilities/pgfkeysfiltered.c
ode.tex))))

! LaTeX Error: File `..ppt-templates/ppt-9x6.tex' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: tex)

Enter file name: 8db9f1f353be7881373829900ad13cd61e9d1fa32f4efb43b714d6afe86d1585
'pid' file is absent on the server after the end of operation; it seems that we didn't manage to start Docker container correctly

@rultor release, tag is 0.1.5

@rultor release, tag is 0.1.5

@yegor256 OK, I will release it now. Please check the progress here

@rultor release, tag is 0.1.5

@yegor256 Oops, I failed. You can see the full log here (spent 1min)
  adding: ppt-slides/ppt-schemes/ (stored 0%)
  adding: ppt-slides/ppt-schemes/ppt-dark.tex (deflated 44%)
  adding: ppt-slides/ppt-schemes/ppt-light-mono.tex (deflated 47%)
  adding: ppt-slides/ppt-schemes/ppt-dark-mono.tex (deflated 47%)
  adding: ppt-slides/ppt-schemes/ppt-light.tex (deflated 45%)
  adding: ppt-slides/ppt-slides.tex (deflated 64%)
  adding: ppt-slides/DEPENDS.txt (deflated 41%)
+ cp ppt-slides.zip ../ppt-slides-ctan.zip
+ unzip -l ppt-slides.zip
Archive:  ppt-slides.zip
  Length      Date    Time    Name
---------  ---------- -----   ----
        0  2022-09-19 10:22   ppt-slides/
        0  2022-09-19 10:22   ppt-slides/ppt-templates/
     3923  2022-09-19 10:22   ppt-slides/ppt-templates/ppt-9x6.tex
     1576  2022-09-19 10:22   ppt-slides/README.md
    94352  2022-09-19 10:22   ppt-slides/socrates.jpg
     5856  2022-09-19 10:22   ppt-slides/ppt-slides.sty
   229579  2022-09-19 10:22   ppt-slides/ppt-slides.pdf
        0  2022-09-19 10:22   ppt-slides/ppt-schemes/
     1420  2022-09-19 10:22   ppt-slides/ppt-schemes/ppt-dark.tex
     1420  2022-09-19 10:22   ppt-slides/ppt-schemes/ppt-light-mono.tex
     1420  2022-09-19 10:22   ppt-slides/ppt-schemes/ppt-dark-mono.tex
     1420  2022-09-19 10:22   ppt-slides/ppt-schemes/ppt-light.tex
     8372  2022-09-19 10:22   ppt-slides/ppt-slides.tex
      174  2022-09-19 10:22   ppt-slides/DEPENDS.txt
---------                     -------
   349512                     14 files
+ cd ..
+ echo y
+ l3build upload --halt-on-error
ctan-upload | announcement: ??
Enter announcement  three <return> or ctrl-D to stop
> > ctan-upload | author: Yegor Bugayenko
ctan-upload | bugtracker: https://github.com/yegor256/ppt-slides/issues
ctan-upload | ctanPath: /macros/latex/contrib/ppt-slides
ctan-upload | description: This LaTeX package helps you create slide decks as good-looking as with PowerPoint™, but more precise, uniform, and visually strict. Check this series of lectures fully designed with the use of this package.
ctan-upload | development: ??
ctan-upload | email<EMAIL_ADDRESS>ctan-upload | home: ??
ctan-upload | license: mit
ctan-upload | note: Bug fixes
ctan-upload | pkg: ppt-slides
ctan-upload | repository: https://github.com/yegor256/ppt-slides
ctan-upload | summary: Good-looking slide decks à la PowerPoint (PPT)
ctan-upload | support: ??
ctan-upload | topic: presentation
ctan-upload | update: true
ctan-upload | uploader: Yegor Bugayenko
ctan-upload | version: 0.1.5
Contacting CTAN for validation:
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
 45  318k    0     0   45  143k      0   352k --:--:-- --:--:-- --:--:--  351k
100  318k    0     0  100  318k      0   208k  0:00:01  0:00:01 --:--:--  207k
100  318k    0     2  100  318k      1   196k  0:00:01  0:00:01 --:--:--  196k
Validation successful.

Do you want to upload to CTAN? [y/n]
> ...xlive/2022/texmf-dist/scripts/l3build/l3build-upload.lua:213: bad argument #1 to 'lower' (string expected, got nil)
container d0eefdd6b7c6bc1e0857ddcfd08f50bf41d73b171880c874e709fe24cef486b9 is dead
Mon 19 Sep 2022 12:22:47 PM CEST

@rultor release, tag is 0.1.5

@rultor release, tag is 0.1.5

@yegor256 OK, I will release it now. Please check the progress here

@rultor release, tag is 0.1.5

@yegor256 Done! FYI, the full log is here (took me 1min)


Can't launch star-citizen

Hi, I'm trying to get star-citizen working with the help of this flake.
Here's the the relevant part of my config adding star-citizen.
However when launching star-citzen, I get the following error:
Error: File not found - /home/sntx/.games/star-citizen/drive_c/Program
Error: File not found - Files/Roberts
Error: File not found - Space
Error: File not found - Industries/RSI
Error: File not found - Launcher/RSI
Error: File not found - Launcher.exe
fsync: up and running.
wine: Using setpriority to control niceness in the [-10,10] range
002c:fixme:winediag:LdrInitializeThunk wine-staging 8.0 is a testing version containing experimental patches.
002c:fixme:winediag:LdrInitializeThunk Please mention your exact version when filing bug reports on winehq.org.
wine: could not load kernel32.dll, status c0000135
fsync: up and running.
wine: Using setpriority to control niceness in the [-10,10] range
wine: could not load kernel32.dll, status c0000135
gamemodeauto:
gamemodeauto:
fsync: up and running.
wine: Using setpriority to control niceness in the [-10,10] range
002c:fixme:winediag:LdrInitializeThunk wine-staging 8.0 is a testing version containing experimental patches.
002c:fixme:winediag:LdrInitializeThunk Please mention your exact version when filing bug reports on winehq.org.
wine: failed to open "/home/sntx/.games/star-citizen/drive_c/Program Files/Roberts Space Industries/RSI Launcher/RSI Launcher.exe": c0000135
gamemodeauto:

Please tell me if you have any suggestions on how to circumvent the problem.

@LovingMelody

wine: failed to open "/home/sntx/.games/star-citizen/drive_c/Program Files/Roberts Space Industries/RSI Launcher/RSI Launcher.exe": c0000135

The game did not fully install before you re-ran the application you may need to delete your Prefix and reinstall. Make sure you do not have any lingering processes from wine running @Sntx626

I'm having a similar issue, though not sure if it's fully related:
In both our cases, it appears that wine is trying to read "$RSI_LAUNCHER" as a set of arguments, rather than a single path. I've tried all sorts of extras to force it to wrap the string correctly, but everything results in a variation of the above. E.g. I've had

Unrelated issue, but a PR will be done for it soon, currently out of town and am not really able to test of my changes work

If anyone is able, please test the PR I won't be able to test it on my PC until the 31st. You will need to remove your previous wine prefix if you are receiving the error wine: failed to open .../drive_c/Program Files/Roberts Space Industries/RSI Launcher/RSI Launcher.exe": c0000135

I can't find anything on how to use a specific PR as a flake input (sorry, relatively new to Nix), so I tried using the commit directly by passing nix-gaming.url = "github:fufexan/nix-gaming/908a96de215d34dc1926f1274e5e54e7c6706771". However, this seems to pull in the commit from your fork, which is 14 commits behind the currently cached master branch here. This was causing all of proton-ge to be compiled from scratch, which was taking years, so I made a fork with only your changes to pkgs/star-citizen/default.nix so I could still use the cached proton-ge.
Creating a fresh wine prefix, I get the following:
------------------------------------------------------
Creating WINEPREFIX "/home/joe/Games/star-citizen" with WINEARCH=win64
------------------------------------------------------
wine: created the configuration directory '/home/joe/Games/star-citizen'
wine: WINEARCH set to win64 but '/home/joe/Games/star-citizen' is a 32-bit installation.
------------------------------------------------------
WINEPREFIX INFO:
Drive C: total 12
drwxr-xr-x 3 joe users 4096 Oct 23 21:54 .
drwxr-xr-x 4 joe users 4096 Oct 23 21:54 ..
drwxr-xr-x 3 joe users 4096 Oct 23 21:54 windows

Registry info:
/home/joe/Games/star-citizen/system.reg:#arch=win32
/home/joe/Games/star-citizen/userdef.reg:#arch=win32
/home/joe/Games/star-citizen/user.reg:#arch=win32
------------------------------------------------------
------------------------------------------------------
warning: wine cmd.exe /c echo '%AppData%' returned empty string, error message "wine: WINEARCH set to win64 but '/home/joe/Games/star-citizen' is a 32-bit installation."
------------------------------------------------------
wine: WINEARCH set to win64 but '/home/joe/Games/star-citizen' is a 32-bit installation.
wine: WINEARCH set to win64 but '/home/joe/Games/star-citizen' is a 32-bit installation.
gamemodeauto:
wine: WINEARCH set to win64 but '/home/joe/Games/star-citizen' is a 32-bit installation.
gamemodeauto:

Wine seems pretty insistent on creating a 32 bit prefix, despite it acknowledging WINEPREFIX=win64 being set. I get no graphical output other than a couple of elevated permissions prompts (I assume for gamemode). The base directories under "$WINEPREFIX/drive_c/Program Files/Roberts Space Industries/StarCitizen/"{LIVE,PTU} are created but RSI-Setup-${version}.exe doesn't seem to run. Running the script again just yields the following:
wine: WINEARCH set to win64 but '/home/joe/Games/star-citizen' is a 32-bit installation.
gamemodeauto:
wine: WINEARCH set to win64 but '/home/joe/Games/star-citizen' is a 32-bit installation.
gamemodeauto:

However, the Error: File not found problem does seem to have gone.
It could be possible that something in those 14 commits behind that your fork is running would make a difference, but I'd need to spend some time compiling an older proton-ge. I can do that tomorrow evening if you think it would be worthwhile?

I did confirm at least that the launcher installs and opens just the laptop isn't actually capable of running the game. You can give it a try.

wine: failed to open "/home/sntx/.games/star-citizen/drive_c/Program Files/Roberts Space Industries/RSI Launcher/RSI Launcher.exe": c0000135

The game did not fully install before you re-ran the application you may need to delete your Prefix and reinstall. Make sure you do not have any lingering processes from wine running @Sntx626

Thank you very much for your detailed replies!
I've now reinstalled the launcher and it starts normally.
Howerver upon starting the install I get the following error:

12:38:30.919 > "Error while attempting to create director
ies with command: \"C:\\Program Files\\Roberts Space Industries\\RSI L
auncher\\resources\\installer-support.exe\" --create-installation-dire
ctory \"C:\\Program Files\\Roberts Space Industries\\StarCitizen\" --c
reate-installation-directory \"C:\\Program Files\\Roberts Space Indust
ries\\StarCitizen\\LIVE\", Error: User did not grant permission."
12:38:30.920 > "Starting download of base pack (SC LIVE 3
.21.0-live.8779972) in C:\\Program Files\\Roberts Space Industries\\St
arCitizen"
12:38:30.921 > "Initial download start"
0460:fixme:thread:NtSetInformationThread ThreadPowerThrottling stub!
12:38:31.933 > "Verification header found for initial dow
nload: Filename: Data_Kickstart_20200806_2.p4k FileSize:<PHONE_NUMBER>2"
12:38:31.935 > "Error installing at C:\\Program Files\\Ro
berts Space Industries\\StarCitizen\\LIVE: Error: ERR_INTERNAL: Create
File failed. Path not found.\r\n"
12:38:31.944 > {
 "event": "INSTALLER@INSTALL_FAILED",
 "data": {
  "error": {
   "name": "InstallerError",
   "message": "ERR_INTERNAL: CreateFile failed. Path not found.\r\n"
  }
 }
}

All files within that directory are owned by my user/group.
(The launcher was just installed to that path)
I've confirmed that no lingering Wine, Proton or star-citizen processes remain between tests.
I tried erasing the contents of ~/.games/star-citizen an reinstalling, that just reproduces the error though.
Could my drive layout be the problem?
I'm running NixOS on tmpfs with impermanence, with my root partition being defined here (config) and my persistent partition being defined here (config) as BTRFS. The Star Citizen directory is being bind-mounted to my root partition from my persistent partition here (config).

Update: The Problem could be solved by manually creating the directories with mkdir ~/.games/star-citizen/drive_c/Program Files/Roberts Space Industries/StarCitizen/LIVE.

We're at a point where our issues seem to have completely diverged, so I'll open a new issue and carry on there.

I'll keep this issue open until the installation has completed.

Star Citizen now runs flawlessly with the flake!
Thank you very much, I hope this Issue helps others with the same problem.


Ensure tarball artifact uses current version

Using git describe doesn't really work out, as some jobs now think
we're dealing with older versions and fail.
The idea behind using git describe was that we'd get crate-<version>
for free if there is a tag on the commit.
The problem is that for all other commits it is relative to the previous
tag on the branch.
E.g. for the following
commit3
commit2
commit1
5.4.0

We'd have 5.4.0-3-<commit3>
Currently this is even worse, because 5.4.0 was tagged on the 5.4
branch, so we've 5.3.0-... on master.
Solution:
Use a custom profile for releases that uses
crate-${project.version}, and include time and commit abbrev for all
normal builds. (Time to ensure alphabetically ordering in
https://cdn.crate.io/downloads/releases/nightly/ has the latest at the
end)

@matriv I had to make some more changes to fix the JarHell because the exclude directive in the assembly no longer matched. Please check again

:+1 LGTM, thank you!


added :) to core desription

test

Great first Pull Request! I've closed this without merging to master. The branching structure we follow is having a separate PR for each environment:

push -> feature branch
separate PR to -> develop branch
separate PR to -> master branch


Coordinator storage engine

Coordinator now has a fake storage engine
Simulates the rocksdb / mmfiles behaviour where necessary
Add flags field for ExecutionNode serialization to avoid calculating cost estimates

Long-Term plan is to get rid of most places where we do if (isCoordinator) {...} else {...}

http://jenkins01.arangodb.biz:8080/view/PR/job/arangodb-matrix-pr-linux/507/

geilomat


s.Update race

We have a race condition in server Update() call that is easy to reproduce when running e2e tests.

We have those calls to prevent any unwanted state with other parties playing around with containers storage. Ideally, we could have a knob in ocid to have it started standalone and not worry about external state changing (most k8s setup) would do this, and a non-standalone mode where we could reload state at each server op. @mrunalp @nalind wdyt?

@runcom If we fix the race, we may not need those 2 modes and could keep the code simpler.

@sameo yeah, I discussed that with @mrunalp as well, so either locking or a new mode works for me


[ci] Azure Pipelines performs a new merge per job

Our CI pipeline currently performs a checkout action at the beginning of each job.[^1] This is a problem because the checkout step also performs a merge with the HEAD of master (this is the default behavior to reduce merge skew). Because some of our jobs take a long time, additional commits can be merged into master after an earlier job has run but before later jobs have started. This can lead to skew within a single pipeline run since the later jobs will be merging into a newer version of master than earlier jobs.
[^1]: This is currently implicit in azure-pipelines.yml. As mentioned in Azure's documentation, not specifying a checkout step is equivalent to checkout: self, which is what is currently in the repository.

To remove this behavior, we can check out the repository and merge exactly once at the beginning of the pipeline run. This merged version of the repository is uploaded as a pipeline artifact that subsequent jobs can download instead of running the checkout job again.
A couple cases to consider:
What happens on master?
This works the same way on master as it does on any other PR. A snapshot of the repository is recorded the moment the pipeline starts, and this is used for the entire pipeline run.
What happens when "Retry failed jobs" is used?
Artifacts are preserved across retries, so as long as the initial checkout succeeded, subsequent retries will continue to use the same checkout. This will lead to more consistency between retries since later retries will not merge into a newer version of master. If the user wants to rebase, they will need to do so explicitly.
What happens on a force push?
A force push triggers a full re-run of the pipeline, so the checkout step is re-run and merged into the HEAD of master at that time.

Closed in #13971


[BUG] Can't empty collection with DeleteMany()

Version
5.0.3 on .NET CORE 3.1
Describe the bug
I'm trying to empty my collection (all data should be removed). When trying to call the DeleteMany() it fails. I get an error (see stacktrace).
Code to Reproduce
using (var database = new LiteDatabase($"FileName=data.db"))
{
    var collection = database.GetCollection<Photo>();
    collection.DeleteMany(_ => true);
}

Expected behavior
Collection should be made empty
Screenshots/Stacktrace
LiteDB.LiteException: Expression '@p0' are not supported as predicate expression.
   at LiteDB.Engine.QueryOptimization.<SplitWherePredicateInTerms>g__add|7_0(BsonExpression predicate)
   at LiteDB.Engine.QueryOptimization.SplitWherePredicateInTerms()
   at LiteDB.Engine.QueryOptimization.ProcessQuery()
   at LiteDB.Engine.QueryExecutor.<>c__DisplayClass10_0.<<ExecuteQuery>g__RunQuery|0>d.MoveNext()
   at LiteDB.BsonDataReader..ctor(IEnumerable`1 values, String collection)
   at LiteDB.Engine.QueryExecutor.ExecuteQuery(Boolean executionPlan)
   at LiteDB.Engine.QueryExecutor.ExecuteQuery()
   at LiteDB.Engine.LiteEngine.Query(String collection, Query query)
   at LiteDB.Engine.LiteEngine.<>c__DisplayClass4_0.<<DeleteMany>g__getIds|1>d.MoveNext()
   at LiteDB.Engine.LiteEngine.<>c__DisplayClass3_0.<Delete>b__0(TransactionService transaction)
   at LiteDB.Engine.LiteEngine.AutoTransaction[T](Func`2 fn)
   at LiteDB.Engine.LiteEngine.Delete(String collection, IEnumerable`1 ids)
   at LiteDB.Engine.LiteEngine.<>c__DisplayClass4_0.<DeleteMany>b__0(TransactionService transaction)
   at LiteDB.Engine.LiteEngine.AutoTransaction[T](Func`2 fn)
   at LiteDB.Engine.LiteEngine.DeleteMany(String collection, BsonExpression predicate)
   at LiteDB.LiteCollection`1.DeleteMany(BsonExpression predicate)
   at LiteDB.LiteCollection`1.DeleteMany(Expression`1 predicate)

Additional context
I also tried it with the following code without any success:
using (var database = Context.CreateDatabaseContext())
{
   var collection = database.GetCollection<Movie>();
   collection.DeleteMany(Query.All().Select);
}

Looks a lot like #1478, @JensSchadron mentions it should work in the last comment.

Hi @mregni,
This has been fixed in commit ed9382cd5a839169bbe636cd0166e45100a7c717, but it isn't available yet in v5.0.3.

@JensSchadron, Thanks for the tip!
I think you made a typo there, I presume you mean collection.DeleteMany("1=1");

@mregni My bad, you're right about the typo :sweat_smile:
I'll correct it in my previous response

Hi @mregni, just wanted to inform you that v5.0.4 has been released (which includes the fix for your issue)


Fix for WACK failing Prelaunch test

Fix for WACK failing Prelaunch test.
As discussed in #540 #595 #608 #612 #668 and #743.
After applying the changes in this PR the WACK will succeed.

Why are you suppressing an exception? What exactly happens there in calling await InitializeFrameAsync() that might throw an exception on prelaunch? Adding a comment to the suppression might help people who look at it.

I wish I knew. I tried debugging it for a whole day but I was unable to figure out why aa exception is generated as I was only able to provoke it with the WACK tool but not with using the App in Release or Debug mode. My guess is that the WACK does something strange here, so I thought that supressing the exception was the best hack. However, if you have a better idea about what is going on let's try and handle it more gracefully?

I don't have any idea too. While this works, I wish we could include an explanation. Currently I don't have much time to investigate. Let's see what @JerryNixon has to say.

Yes, I really would like to know too.

I really appreciate you taking the time to look into this :+1:

Just to make sure that we've covered everything, there is an app prelaunch option in debug. We've been through that and it doesn't trigger this? I'm sorry I couldn't confirm it myself.

Correct. I was unable to provoke any exceptions using the Prelaunch debug option. Tried all permutations of suspend/resume together with Prelaunch too.

I'll talk to the WACK team about this and see what I can find out.

Jerry. I spend hafl a day with Windows Debugger and the dump that was generated as the WACK failed. Maybe the following will something to someone. It didn't to me:
0:005> !mrt100sos.pe -ccw 0x000001dc ffb11c60
Exception object: 000001dcdf421f80
Exception type: System.ArgumentException
Message: Argument_AddingDuplicate. For more information, visit http://go.microsoft.com/fwlink/?LinkId=623485
InnerException:
StackTrace (generated):
IP Function
00007ffeeec3030e MyApp_7ffeee340000!$62_System::Collections::Generic::Dictionary$2<$0_MyApp::Models::Pages,System::__Canon>.Insert+0x29e
00007ffeeec30570 MyApp_7ffeee340000!$62_System::Collections::Generic::Dictionary$2<$0_MyApp::Models::Pages,System::__Canon>.Add+0x10
00007ffeeee6f639 MyApp_7ffeee340000!$0_MyApp::App.InitializeNavigation+0x29
00007ffeeee6f844 MyApp_7ffeee340000!$0_MyApp::App.OnInitializeAsync+0x64
00007ffeeee31289 MyApp_7ffeee340000!$61_Template10::Common::BootStrapper::d__77.MoveNext+0x119
0000000000000001
00007fff0ad35fc1 SharedLibrary!System::Runtime::ExceptionServices::ExceptionDispatchInfo.Throw+0x21
00007fff0ad36238 SharedLibrary!$13_System::Runtime::CompilerServices::TaskAwaiter.ThrowForNonSuccess+0x58
00007fff0ad361d3 SharedLibrary!$13_System::Runtime::CompilerServices::TaskAwaiter.HandleNonSuccessAndDebuggerNotification+0x43
00007fff0ad36187 SharedLibrary!$13_System::Runtime::CompilerServices::TaskAwaiter.ValidateEnd+0x17
00007fff0ae7d81b SharedLibrary!$13_System::Runtime::CompilerServices::ConfiguredTaskAwaitable::ConfiguredTaskAwaiter.GetResult+0xb
00007ffeeee31f92 MyApp_7ffeee340000!$61_Template10::Common::BootStrapper::d__53.MoveNext+0x172

You forgot
DebugWrite($"Calling. Prelaunch {(OriginalActivatedArgs as LaunchActivatedEventArgs)?.PrelaunchActivated ?? false}", caller: nameof(OnSuspendingAsync));
await OnSuspendingAsync(s, e, (OriginalActivatedArgs as LaunchActivatedEventArgs)?.PrelaunchActivated ?? false);

But I didn't. I am closing this, but I am basically implementing it.

((OriginalActivatedArgs as LaunchActivatedEventArgs)?.PrelaunchActivated ?? false) could be saved as a variable and used at both places, but you already know that.

I have library from NuGet 1.1.11 and it still has this  error during WACK tests


python3Packages.PyChromecast: 7.5.1 -> 7.7.1

Motivation for this change
Update to latest upstream release 7.7.1.

Requires also an update for paste to 3.5.0.
pythonImportsCheck was added
Atrributes were updated

Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 107964 1

15 packages built:

catt
gnomecast
mkchromecast
python37Packages.PyChromecast
python37Packages.paste
python37Packages.poster3
python37Packages.sqlobject
python38Packages.PyChromecast
python38Packages.paste
python38Packages.poster3
python38Packages.sqlobject
python39Packages.PyChromecast
python39Packages.paste
python39Packages.poster3
python39Packages.sqlobject


Add IE support for cookie deletion.

What do these changes do?
Adds support for IE cookie expiration.
Are there changes in behavior for the user?
Not unless they are deleting cookies, otherwise they will actually delete on IE!
Related issue number
None.
Checklist

[x] I think the code is well written
[ ] Unit tests for the changes exist
[ ] Documentation reflects the changes

IE<=11 ( !!! ) doesn't support the MaxAge property for cookies so del_cookie() also needs to set the Expires cookie header to support IE. Uses the UTC epoch for a standard expire time.

Obviously need to update the cookie tests along with this pull request, I'll add those as well.

Looks good. Please update tests.

Fixed by #994


Please invite me to the GitHub Community Organization

Please invite me to the GitHub Community Organisation.

Name: Ishan (@ishandeveloper(

Discord Username(if exists): ishandeveloper#6442

Additional Context: I read a few tweets from Eddie on twitter and of course those amazing Swag unboxing videos!

I loved the way how everyone here is so welcoming to others, when I joined discord a lot of people there greeted me and overall how so interesting discussions take place in the community is commendable. Would love to be a part of it.
:nerd_face:

Invitation sent for the GitHub Organisation. Welcome to the community 🎉
Don't forget after accepting to make it public so it appears on your GitHub profile for everyone else to see, you can do this by finding your name in the GitHub organisation list and change the dropdown to public https://github.com/orgs/EddieJaoudeCommunity/people
Tips for practising:
Customise your GitHub profile, here is a live stream on it https://www.youtube.com/watch?v=cT6GXCuS0Zo
Practice repo, instructions on how to add your name to the README in the README https://github.com/EddieJaoudeCommunity/hacktoberfest-practice
Remember contributing to open source is not just about code, its about collaboration, communication and adding value
I hope that helps

Invitation sent for the GitHub Organisation. Welcome to the community 🎉
Don't forget after accepting to make it public so it appears on your GitHub profile for everyone else to see, you can do this by finding your name in the GitHub organisation list and change the dropdown to public https://github.com/orgs/EddieJaoudeCommunity/people
Tips for practising:
Customise your GitHub profile, here is a live stream on it https://www.youtube.com/watch?v=cT6GXCuS0Zo
Practice repo, instructions on how to add your name to the README in the README https://github.com/EddieJaoudeCommunity/hacktoberfest-practice
Remember contributing to open source is not just about code, its about collaboration, communication and adding value
I hope that helps


Colors are not reflected when JRound theme is used.

Describe the bug
Colors are not reflected when JRound theme is used.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
DPS for you and your PT members will be displayed in black

Expected behavior
I would like the colors to reflect the colors that were on v3.6.0.

Fixed in v3.7.1 https://github.com/dsrkafuu/skyline-overlay/commit/2e7781eec301f4eb7d112de2c5e64bb5b2f183e6


Can't display anything in adafruit 16x32

I bought 32x16 led matrix panel from Adafruit (https://www.adafruit.com/product/420).
I'm using NodeMCU to run the leds,
But when I run examples:

pattern_test.ino only two parallel lines comes, red , then green, then white, then line shifts
pixeltime.ino led lights up in single row

In code:
display.begin(8);
display.setScanPattern(LINE);
display.setMuxPattern(BINARY);

** It's working fine with old P10_matrix with scan pattern 8 (I changed it manually in P10_matrix.h)
What should I check?

It's working now, Something was causing NodeMCU to reset.


pip won't update when you don't set ape-version-pin [APE-1179]

it gets cached as 3.8-pip- always because the input is missing.

one annoying "solution" is to set a default ape-version.. this would require us to have to update it every new release.

one more complex solution is to find out what the latest version is without installing it and use that as part of the caching key before installing pip

curl -s https://pypi.org/pypi/eth-ape/json | jq -r '.info.version'

tells us, nice


Disambiguating Functions/Methods from imports based on Type

Currently, when you do an import such as:
import * from whiley.lang.*
You cannot then call e.g. toString() directly.  This is because there are several toString methods (e.g. Any.toString() versus Char.toString()), and an ambiguity has arisen.  It should be possible to resolve this, however.  This can be done from within NameResolution by recording the different options, and then searching them in Type Resolution.  However, this probably requires a new implementation of TypeResolution which doesn't operate on the Wyil.

Fixed


Install R packages in a separate step of actions

Both fetch_data and mapping_and_testing actions install R packages within the correspondent Rmd file. This makes the output of the fetch data/dwc mapping steps in the actions very verbose and so annoying to check.
Solution: install R packages in a separate R file and run it as a separate step of both actions.

Solved by #63


PHP 8 - "There is no active transaction" when transaction is autocommitted

As of PHP 8, PDO::commit() and rollBack() will throw a There is no active transaction PDOException if the transaction had been autocommitted, as MySQL will do whenever a schema change is made. Previously they would fail silently.
The change was made in this commit: https://github.com/php/php-src/commit/990bb34891c83d12c5129fd781893704f948f2f4
What steps will reproduce the problem?

Connect to a MySQL database
Call Yii::$app->db->beginTransaction()
Make a schema change, such as add a new column to a table (the transaction will be autocommitted in the process)
Call Yii::$app->db->commit()

What is the expected result?
PHP would move along to the next line of code, regardless of whether the app is running on PHP 5, 7, or 8.
(Note: it could be argued that an exception should in fact be thrown here in Yii 3, but I think it’s best to avoid a BC break in Yii 2.)
What do you get instead?
A PDOException is thrown with the message There is no active transaction when running PHP 8.
Additional info

Q
A

Yii version
<IP_ADDRESS>

PHP version
8.0.0RC3

Operating system
Ubuntu 20.04.1 LTS

@samdark - could this be pushed to 1.1.x as well?

@twisted1919 it could. Someone just needs to prepare a pull request. I don't currently have time for it. Busy with Yii 3.

@samdark - i've opened https://github.com/yiisoft/yii/issues/4339 to have it there as well

Had the same issue with PHP 8 in general, but when calling $db->setAttribute(PDO::ATTR_AUTOCOMMIT, 0); before the beginTransaction() it works.

Had the same issue with PHP 8 in general, but when calling $db->setAttribute(PDO::ATTR_AUTOCOMMIT, 0); before the beginTransaction() it works.

i had the same bug

i had the same bug


textarea keydown don't bubble up in the webview

This is easy to demonstrate. Just use the workbench.action.toggleScreencastMode and start typing text in excalidraw. As soon as you start entering text, every vscode shortcuts are disabled :/
This could be the root cause of #41

Closing this since the problem comes from excalidraw.


imgpkg push help string references --lock option that doesn't exist.

What steps did you take:
Run:
imgpkg push --help

This generates:
      --lock-output string                          Location to output the generated lockfile. Option only available when using --bundle or --lock flags

There is however no --lock option listed and trying to supply the option results in an error.
$ imgpkg push --file . --image localhost:5001/xxx:latest --lock --lock-output /tmp/x.lock
imgpkg: Error: unknown flag: --lock

What happened:
Shows incorrect message. Luckily did not catch on fire.
What did you expect:
That help string would be accurate.
Anything else you would like to add:
Nope.
Environment:

ytt version (use ytt --version):
ytt version 0.40.1

Vote on this request
This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.
👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"
We are also happy to receive and review Pull Requests if you want to help working on this issue.

Whoops, wrong repo. Can someone move this to the correct repo.\


5.1.0 Preview 1

Is there any way to use this plugin yet?
When switching a project to use Preview 1 with the MicrosoftOpenXR Plugin in-use, I'm unable to and thrown off by the following messages.
N:\...\Plugins\MicrosoftOpenXR\Source\NuGetModule\NuGetModule.Build.cs(67,26): error CS7036: There is no argument given that corresponds to the required formal parameter 'Logger' of 'Utils.RunLocalProcessAndPrintfOutput(ProcessStartInfo, ILogger)'
N:\...\Plugins\MicrosoftOpenXR\Source\NuGetModule\NuGetModule.Build.cs(218,26): error CS7036: There is no argument given that corresponds to the required formal parameter 'Logger' of 'Utils.RunLocalProcessAndPrintfOutput(ProcessStartInfo, ILogger)'

I am porting our plugins to 5.1 now, this particular function has changed to RunLocalProcessAndReturnStdOut
You can find a port here:
https://github.com/JeffreyFisher/Microsoft-OpenXR-Unreal/tree/jfisher
However, 5.1 preview 1 does have a crash in the Engine when launching non-shipping builds on HoloLens that I am investigating.

FYI, this can be resolved by passing in Log.Logger as the missing parameter:
var ExitCode = Utils.RunLocalProcessAndPrintfOutput(StartInfo, Log.Logger);


Display critical error if Opencast does not provide a video duration

The duration return by the backend can be "null". This is not handled by the frontend at all, resulting in an erroneous state.
Now, the critical error page is shown to inform the user that editing is impossible.
Resolves #253 and provides an alternative to #255, as determining the duration in the frontend does not seem to work properly.

A critical error for a missing duration seems excessive. What exactly do we need this duration for so desperately?

The cutting view relies on the duration to determine where the user is setting cut marks in the cutting view, since the backend asks for absolute timestamps.
It may be fine to just display an error in the cutting view, since this should not effect other views like metadata.

@Arnei did you find out why Opencast does not report durations at times?

@Arnei did you find out why Opencast does not report durations at times?

I'll have to admit that I do not remember if we ever found out or not.

Maybe that is good indicator for why we shouldn't allow duration to be of type null. The editor expects there to be a duration. it is not equipped to work without a duration. So it needs to be provided a duration. if it isn't, it breaks (and now hopefully displays an error message). It does not make much sense to me to add | null to every parameter passed by Opencast and add a huge amount of null checks to the code if the code isn't supposed to work with a null value in the first place.

Fair, and I strongly agree with not putting null checks everywhere. But I think the fault lies in the structure here. I think the error should not be "thrown" there but rather in line 200 (state.duration = action.payload.duration). Here, the right hand side is any. Here, it should be checked whether the value is actually a non-null number. If so, assign it to state.duration (which has the type number without null). If not, throw an error. But already letting a null value INTO state.duration and only catching it later in a component seems suboptimal to me. Also, who says that that Video component is the first to receive that null duration? Maybe in the future, it just so happens that another component receives it and already breaks.
I have too little knowledge of the redux structure and stuff, but maybe actually throwing an error in that line and using error boundaries is a better solution?
To be clear: I don't want to waltz in here, into a project I haven't written code for, and tell yall how to run your business :D Just some information and opinions. Do with that what you will ^_^

Do agree that the error should be thrown asap in the line you suggested. Unfortunately that's non-trivial (or at least way more difficult than throwing the error Video.tsx), so I didn't do that.


Fix typo in :patch keyword for mapping HTTP request methods

The com.grzm.awyeah.http-client/method-string has a key typo. It currently contains :path "PATCH" where it should be :patch "PATCH". This is causing all AWS API requests that are a PATCH operation (in my case, SecurityHub > BatchUpdateFindings) to fail with a NullPointerException, because a nil method is being passed to the underlying Java method.
https://github.com/griffinbank/awyeah-api/blob/0ead32ccc3504f5e654ebb98f718d5719c8cd8fe/src/com/grzm/awyeah/http_client.clj#L67
I've forked awyeah-api to our own org and verified that if I change the keyword to :patch, I get successful API responses instead of exceptions. If this could be fixed and a new tag released in the main branch that would be ace, because then we don't have to maintain our own version in-sync with yours :)
I'm seeing the following in a full Clojure REPL (${ACCOUNT_ID} replaced with the correct one of course):
(require '[com.grzm.awyeah.client.api :as aws])
(aws/invoke
  (aws/client {:api :securityhub})
  {:op :BatchUpdateFindings,
   :request {:FindingIdentifiers [{:Id "arn:aws:inspector2:eu-west-2:${ACCOUNT_ID}:finding/e7fcfd57f44eac3fcf45419912f99b14",
                                   :ProductArn "arn:aws:securityhub:eu-west-2::product/aws/inspector"}],
             :Note {:Text "Status changed from NEW to NOTIFIED", :UpdatedBy "DanM testing"},
             :Workflow {:Status "NOTIFIED"}}})

{:cognitect.anomalies/category :cognitect.anomalies/fault, :cognitect.anomalies/message nil, :com.grzm.awyeah.http-client/throwable #error {
 :cause nil
 :via
 [{:type java.lang.NullPointerException
   :message nil
   :at [java.util.Objects requireNonNull "Objects.java" 233]}]
 :trace
 [[java.util.Objects requireNonNull "Objects.java" 233]
  [jdk.internal.net.http.HttpRequestBuilderImpl method "HttpRequestBuilderImpl.java" 197]
  [com.grzm.awyeah.http_client$map__GT_http_request invokeStatic "http_client.clj" 113]
  [com.grzm.awyeah.http_client$map__GT_http_request invoke "http_client.clj" 97]
  [com.grzm.awyeah.http_client.Client$fn__2803 invoke "http_client.clj" 157]
  [com.grzm.awyeah.http_client.Client _submit "http_client.clj" 156]
  [com.grzm.awyeah.http_client.client$submit invokeStatic "client.clj" 11]
  [com.grzm.awyeah.http_client.client$submit invoke "client.clj" 10]
  [com.grzm.awyeah.http_client$submit invokeStatic "http_client.clj" 59]
  [com.grzm.awyeah.http_client$submit invoke "http_client.clj" 28]
  [com.grzm.awyeah.http.awyeah$create$reify__2834 _submit "awyeah.clj" 13]
  [com.grzm.awyeah.http$submit invokeStatic "http.clj" 49]
  [com.grzm.awyeah.http$submit invoke "http.clj" 45]
  [com.grzm.awyeah.client.impl$send_request$fn__2350$state_machine__11445__auto____2377$fn__2379$fn__2393 invoke "impl.clj" 81]
  [com.grzm.awyeah.client.impl$send_request$fn__2350$state_machine__11445__auto____2377$fn__2379 invoke "impl.clj" 72]
  [com.grzm.awyeah.client.impl$send_request$fn__2350$state_machine__11445__auto____2377 invoke "impl.clj" 60]
  [clojure.core.async.impl.ioc_macros$run_state_machine invokeStatic "ioc_macros.clj" 978]
  [clojure.core.async.impl.ioc_macros$run_state_machine invoke "ioc_macros.clj" 977]
  [clojure.core.async.impl.ioc_macros$run_state_machine_wrapped invokeStatic "ioc_macros.clj" 982]
  [clojure.core.async.impl.ioc_macros$run_state_machine_wrapped invoke "ioc_macros.clj" 980]
  [com.grzm.awyeah.client.impl$send_request$fn__2350 invoke "impl.clj" 60]
  [clojure.lang.AFn run "AFn.java" 22]
  [java.util.concurrent.ThreadPoolExecutor runWorker "ThreadPoolExecutor.java" 1144]
  [java.util.concurrent.ThreadPoolExecutor$Worker run "ThreadPoolExecutor.java" 642]
  [clojure.core.async.impl.concurrent$counted_thread_factory$reify__6839$fn__6840 invoke "concurrent.clj" 29]
  [clojure.lang.AFn run "AFn.java" 22]
  [java.lang.Thread run "Thread.java" 1623]]}}

It's much less understandable in a babashka REPL, because there's no awyeah-api namespaces listed in the stracktrace, but the same error occurs.
Thanks!

Fixed in https://github.com/grzm/awyeah-api/commit/465cacdbe0abd7692987b166c3b7d2134bc62aff
Thanks for the detailed report!


Remove superseded strings from en

Similar to #3462
This PR intends to remove unused strings from en, to make it easier for other translators to translate into new languages based on the en file.

What's the methodology? Is there an automated command to do this?

Sorry to jump in here, when I submitted my previous PRs to remove obsolete strings from message catalogs I just edited the files manually. However, I don't know what methodology @auroursa used of course.
There is a way to do it automatically using the --clean command:
https://lingui.dev/ref/cli

@surfdude29 Thank you for letting me know. Indeed I cleaned it up manually, and it seems much simpler to do it via clean command.

Maybe we can run the clean command together with extract automatically each time. This way we can automate this process.

Sorry to jump in here, when I submitted my previous PRs to remove obsolete strings from message catalogs I just edited the files manually. However, I don't know what methodology @auroursa used of course.
There is a way to do it automatically using the --clean command:
https://lingui.dev/ref/cli

Maybe we can run the clean command together with extract automatically each time. This way we can automate this process.

Maybe we can run the clean command together with extract automatically each time. This way we can automate this process.

I think this would be a good idea, but my preference would be to do this only for the English message catalog. My reasoning is that sometimes there's only a very minor change to a string (e.g. adding or removing punctuation) and thus the already-agreed upon translation can easily be reused from the same file either in full or in part by simply making the minor change required.
If obsolete translations were removed automatically from all languages, it would mean that translators would have to refer back to the previous version of the file in order to reuse a translation that had been removed, which would be a bit annoying.
However, maybe I'm making a mountain out of a molehill and it wouldn't be that big a deal.
I'd be interested to hear other translators' views on this, as removing obsolete strings automatically would of course save translators from doing this themselves (as most seem to do) and thus save time and effort in that regard.

It's a good idea to automatically delete outdated strings in English only. It's better to leave the cleanup of other languages to the respective translators.
During the actual translation process, I've indeed encountered situations where changes in capitalization or punctuation generated new strings. In such cases, the outdated strings can still serve as a reference.
I know that running the extract command easily creates new language translations, making the automatic cleanup of outdated English strings somewhat redundant. But hey, when someone wants to contribute a new translation, they only need to copy the English file and make changes. This means they don't need a complete build environment, which could lower the barrier for contributing translation PRs.

But hey, when someone wants to contribute a new translation, they only need to copy the English file and make changes. This means they don't need a complete build environment, which could lower the barrier for contributing translation PRs.

This is exactly what I suggest to users who offer to contribute a new translation, e.g. when a user offered to contribute a Javanese translation. That way, all the user needs in order to contribute is a text editor.


Default table sort and fixes

Default table sort and fixes

Sorting by pricePerSlot, if they have no value the items will be sorted to last position;
Sorting by armor class, if they are equal we'll look to effectiveDurability, blindnessProtection and maxDurability;
Sorting by ergonomics, if they are equal we'll look to ergoCost;
Refactoring some sort functions
Added default sortBy on spending on trader page when selected spending table
Added default sortBy to some items pages
Refactoring
Added column ids in quest table;
Fixed some typos
Barters are now sort by default by instaProfit;
When sorting by savings items with unknown value will be always last
In crafts sorting cost items column will sort using total craft cost;
Added column ids to different tables
Added ability to set initial sort on a DataTable column;
Storage key is now generated from column ids, if present

.deploy


Fixed #117 and one more bug in ChainedHashTable

Description

Fix #117 . This bug occurs when hash table has collisions. Then the hashTable node contain a list with some values. And the method CopyTo try to fill an array by the end using values from list in this node.
I added check for existing the next element in the list in the hashTable node.

I divided a unit test for ChainedHashTable on some tests. And added additinal tests.

When i added unit tests i had found a new bug.
When a user create two or greater ChainedHashTable objects then these objects have the same LinkedList array for storing values i.e. adding new value to one hash table this value add to another hash tables.
I add creating a new array for every ChainedHashTable objects in constructor.

Refactoring LGTM, we just need to add a few more assertions to the unit tests.

I have added assertions for these unit tests.


Tests fail on case-sensitive systems if path has upper-case characters

n@emeritus:~/Documents/stackable/trino-storage$ mvn test
[snip]
java.io.UncheckedIOException: Failed to open stream for file:/home/n/documents/stackable/trino-storage/target/test-classes/example-data/numbers-2.csv
        at org.ebyhr.trino.storage.StorageClient.getInputStream(StorageClient.java:115)
        at org.ebyhr.trino.storage.StorageClient.lambda$getTable$0(StorageClient.java:84)
        at org.ebyhr.trino.storage.operator.CsvPlugin.getFields(CsvPlugin.java:41)
        at org.ebyhr.trino.storage.StorageClient.getTable(StorageClient.java:84)
        at org.ebyhr.trino.storage.StorageMetadata.getStorageTableMetadata(StorageMetadata.java:165)
        at org.ebyhr.trino.storage.StorageMetadata.getTableMetadata(StorageMetadata.java:88)
[snip]
n@emeritus:~/Documents/stackable/trino-storage$ cat /home/n/documents/stackable/trino-storage/target/test-classes/example-data/numbers-2.csv
cat: /home/n/documents/stackable/trino-storage/target/test-classes/example-data/numbers-2.csv: No such file or directory
n@emeritus:~/Documents/stackable/trino-storage$ cat /home/n/Documents/stackable/trino-storage/target/test-classes/example-data/numbers-2.csv
ten, 10
eleven, 11
twelve, 12

This seems to come down to that SchemaTableName force-lowercases the table name: https://github.com/trinodb/trino/blob/7530cd5a8a171742ef83159e3fc90f6913d4435a/core/trino-spi/src/main/java/io/trino/spi/connector/SchemaTableName.java#L37

Trino doesn't support case-sensitive table names, and using paths as table names is a hack. One of the way to address this was the introduction of table functions. I'm not sure if we'll support running all tests because of Trino limitations, and we might remove table support at some point in favor of table functions.

It actually looks like it almost works, the problem "only" comes in once getTableMetadata converts the StorageTableHandle into a SchemaTableName in https://github.com/snowlift/trino-storage/blob/8b697ba61486cd0cbcebdf17ce0d1a5a25a89e16/src/main/java/org/ebyhr/trino/storage/StorageMetadata.java#L86.
If we encode it in something case-preserving (like base16) then we can decode it before reading without affecting the public API: https://gist.github.com/nightkr/e05679be6b63c2b9b59876274af010d7

(I'm not saying that's a reasonable way to do it, but it's definitely possible, heh.)

We could delay constructing SchemaTableName and pass the original name to getStorageTableMetadata(). It's a private method. Would you like to open a PR?

That's true, I overfixated on the ConnectorTableMetadata eventually returning it. Sure.


[SPARK-39187][SQL] Remove SparkIllegalStateException

What changes were proposed in this pull request?
Remove SparkIllegalStateException and replace it by IllegalStateException where it was used.
Why are the changes needed?
To improve code maintenance and be consistent to other places where IllegalStateException is used in illegal states (for instance, see https://github.com/apache/spark/pull/36524). After the PR https://github.com/apache/spark/pull/36500, the exception is substituted by SparkException w/ the INTERNAL_ERROR error class.
Does this PR introduce any user-facing change?
No. Users shouldn't face to the exception in regular cases.
How was this patch tested?
By running the affected test suites:
$ build/sbt "sql/test:testOnly *QueryExecutionErrorsSuite*"
$ build/sbt "test:testOnly *ArrowUtilsSuite"

Merging to master. Thank you, @HyukjinKwon and @cloud-fan for review.


When using DateSlider, after sliding the value: Date 'value' only takes datetime types

/users/huang/anaconda3/lib/python3.7/site-packages/param/__init__.py _validate L1830
    ValueError: Date 'value' only takes datetime types.

import datetime
import panel as pn
pn.extension()
t_slider = pn.widgets.DateSlider(
    name='Time', start=datetime.datetime(2016, 7, 3),
    end=datetime.datetime(2016, 7, 8), value=datetime.datetime(2016, 7, 3))

t_slider

t_slider.value

Not sure how to recreate this issue, example code worked.

Yeah, this was probably fixed by changes in param.


Fix webpack usage to generate a sourcemap correctly

Webpack was not properly used so the generated source maps were for the js files generated by tsc, not the original ts file. With this change, the correct source map information can be displayed on browser's dev tools.

This change is ready for review. Please check it out!

Note: Generating .js files for GitHub pages via GitHub actions will come in the future. For now, let me allow including the generated code to make it easy...


kernel-config: fix compressed firmware loading

Since https://github.com/NixOS/nixpkgs/pull/302300 is merged, hardware.firmware are now compressed with zstd. On my oneplus-enchilada, this is causing the WLAN interface disappearing. This PR fixes that by copying the changes of kernel config from NixOS/nixpkgs#302300

Thank you!
Sorry it took a while to look at and merge.


Some drawings cannot be rendered

Error appears with message:
Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.

This is from a URL file which contains a <mxfile> element, maybe the data (element content) needs to be extracted from the response and passed along?
The samples contain a file which is returned in this format and works without issue, it could be a deflate/inflate versioning issue?

Resolved by extracting the diagram compressed content from returned data


Update the documentation with default credentials to be used to access Registry after installation

It will be helpful to have the default credentials to access the registry immediately after installation, mentioned in the installation log or included in the user document.

@faizmagic / @vbabuEM - is this possible? if not, can we close this ticket? Pls confirm.


Improve Velux support

Description:
Added Velux Solar Roller Blind.
Fixed Velux Integra Window stop & position commands.
Related issue (if applicable): fixes #
Pull request with documentation for home-assistant.io (if applicable): home-assistant/home-assistant.io#<home-assistant.io PR number goes here>
Example entry for configuration.yaml (if applicable):

Checklist:

[x] The code change is tested and works locally.
[x ] Local tests pass with tox. Your PR cannot be merged unless tests pass
[x] There is no commented out code in this PR.
[x] I have followed the development checklist

If user exposed functionality or configuration variables are added/changed:

[x] Documentation added/updated in home-assistant.io

If the code communicates with devices, web services, or third-party tools:

[x] The manifest file has all fields filled out correctly. Update and include derived files by running python3 -m script.hassfest.
[x] New or updated dependencies have been added to requirements_all.txt by running python3 -m script.gen_requirements_all.
[x] Untested files have been added to .coveragerc.

If the code does not interact with devices:

[x] Tests have been added to verify that the new code works.

Hi @butako,
It seems you haven't yet signed a CLA. Please do so here.
Once you do that we will be able to review and accept this pull request.
Thanks!

Hi @philklei, mind taking a look at this PR please?


feat(connector-fabric): endorsing peers request arg #1122

Makes it possible to set the endorsing peers on a transaction
when submitted through the Fabric connector.
For example these values can be passed in to the new parameter
and it will set the endorsers up accordingly prior to submitting
the transaction to the ledger:

org1.example.com
Org1MSP
org2.example.com
Org2MSP

(You only need either the org domain or the msp ID, no need
to specify both of them for it to work).
For a working example, see this test case:
packages/cactus-plugin-ledger-connector-fabric/src/test/typescript/integration/fabric-v2-2-x/run-transaction-endpoint-v1.test.ts
Depends on #1123
Depends on #1130
Fixes #1122
Signed-off-by: Peter Somogyvari<EMAIL_ADDRESS>

Codecov Report

Merging #1133 (01a4d64) into main (6d1de27) will increase coverage by 0.07%.
The diff coverage is 82.10%.

@@            Coverage Diff             @@
##             main    #1133      +/-   ##
==========================================
+ Coverage   73.14%   73.21%   +0.07%
==========================================
  Files         246      247       +1
  Lines        8617     8678      +61
  Branches      996     1010      +14
==========================================
+ Hits         6303     6354      +51
- Misses       1783     1788       +5
- Partials      531      536       +5

Impacted Files
Coverage Δ

...pescript/generated/openapi/typescript-axios/api.ts
86.13% <ø> (ø)

...abric/src/main/typescript/common/create-gateway.ts
78.37% <78.37%> (ø)

.../main/typescript/plugin-ledger-connector-fabric.ts
83.25% <79.54%> (+0.44%)
:arrow_up:

...rc/main/typescript/fabric/fabric-test-ledger-v1.ts
83.59% <100.00%> (+0.17%)
:arrow_up:

Continue to review full report at Codecov.

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


Documentation for using Honeycomb with the OTel collector

Getting started documentation for Honeycomb including example config and support contact info.

Closing this PR because changes are reflected in https://github.com/aws-otel/aws-otel.github.io/pull/43.


How can remove some lines before build

Bug Report or Feature Request (mark with an x)
- [ ] bug report -> please search issues before submitting
- [x] feature request

Versions.
@angular/cli: 1.1.3
node: 7.10.0

How can remove some lines before build
I'm putting logs in my code for debugging and logging. These logs are putted in every file, every function. I can simple build my app by ng build or ng build --prod. Problem is if I remove all logs from my app dist folder size can be decrease. I don't want to remove logs for debug environment, but I wan't to remove all logs file before build it.
I search about this problem, but I i did't get any proper solution.
How can I achieve this.

Check this https://github.com/angular/angular-cli/issues/2244

Maybe Angular itself will support it one day. See Igor's review for https://github.com/angular/angular/pull/17399.

Whilst researching this issue I found the drop_console option in uglify js. I don't know how well it work, but it could be a super easy way to implement this.
https://github.com/mishoo/UglifyJS2/blob/v2.x/README.md
I guess it would need to be passed into the webpack production config here:
https://github.com/angular/angular-cli/blob/67646796d977bd476c3f618dd64a6c2b6c4ddcae/packages/%40angular/cli/models/webpack-configs/production.ts#L89


linked blog.html

Pull Request Checklist

[X] I have added screenshots and videos to show before and after the working of my code.
[X] I have ensured that the screen size is set to 100% while making the video.
[X] I have synced the latest fork with my local repository and resolved any conflicts.
[X] I have mentioned the issue number which I created before making this PR .(format to mention issue number is : fixes #(issue number) )
[X] I understand that if any the above conditions are not met , my PR will not be MERGED .

issue number: #1702

@ANSHIKA-26 pls check my pr


Added Google Colabortory reference

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Hi @shaktibarath, thank you for the PR!
However, we do not accept PRs that only add links. I'm going to close this PR, but feel free to open a new one with more content.
Happy coding!


Batch decisions

/domain @Betterment/test_track_core
There are a couple other things in here - there are dead templates related to long dead routes I removed because I saw them. Also, a test was relying on created_at return sequence of assignments in the visitor. The performance tradeoff should be tiny to make those deterministic, even without an index on created_at, because a visitor has a very small number of assignments to return.

<< domainlgtm


Consider: Switching custom Task for IO

In general, there's a lot of weirdness in the Task implementation. And although it does the job, it also keeps throwing me curve balls that might be avoidable by using something more standard.
For this issue, I'm not suggesting we parameterise on the effect monad. Just use IO concretely initially.

Tyrian now uses Cats Effect 3, will be in the next release.


[QUESTION/FEATURE] Nova Import tool

Prerequisites

[ ] Able to reproduce the behaviour outside of your code, the problem is isolated to Laravel Excel.
[X] Checked that your issue isn't already filed.
[X] Checked if no PR was submitted that fixes this problem.

Description
There is progress being made for a Nova Import Tool. This issue is opened to serve as a point to ask questions.
PR: https://github.com/Maatwebsite/Laravel-Nova-Excel/pull/70
Twitter: https://twitter.com/patrickbrouwers/status/1143467691577171968

So I required the 2.0-dev version of the package with composer require maatwebsite/laravel-nova-excel:^2.0.x-dev
Now, how would one include the import tool so it can be used?

I believe only the following steps are required:

Add the Maatwebsite\LaravelNovaExcel\Tools\ Import  to your tools
Add the BelongsToImport to your model
Add the ImportExcel action to your resource actions
Run migrations

Finally had the time again to work further on the project, but I think we're missing a step as right after changing my tools() inside my NovaServiceProvider.php to the following I'm getting an error as show below:

    /**
     * Get the tools that should be listed in the Nova sidebar.
     *
     * @return array
     */
    public function tools()
    {
        return [
            \Maatwebsite\LaravelNovaExcel\Tools\Import::class
        ];
    }

My fault, registering it wrong...

@patrickbrouwers is it possible to override which resource/model it uses?
We've got the following relations
List -> Data
And we want to run the action from the List resource, which only has a name field, create the needed Data models and link them to the list -> is this possible? Or should I copy the code in the package and extend on it?

Don't think I have accounted for something like that.

as far as I can see in the code, you're not - still thinking about a way I can make it work -> maybe override the controller or something but I don't know how... -> maybe add some hooks/callbacks, just thinking out loud

I wouldn't mind being able to configure the resource you want to import to on the action. Feel free to PR something like that.

I would first have to use a different of way of getting the source code then, maybe as a submodule, so I can change code - any tips?

https://laravel-news.com/developing-laravel-packages-with-local-composer-dependencies

I'm getting a beautiful error:

nvm... the issue is with how I setup my docker instance

I've got it partially working already, I can now call the action from my Lists resource and it fills the Data resource - still struggling to find a good way to hook into this so one can set attributes on the created models, for example to hook them up - also trying to find a way to supply extra information which can be used to create the List it self at the same time
Any idea's @patrickbrouwers ?

Big question @patrickbrouwers -> How does the ImportExcel action actually run? I don't see a handle function being specified

It doesn't technically run the action (handle method), I only use the action to determine if I should show the button or not. Then it just goes via a controller call: https://github.com/Maatwebsite/Laravel-Nova-Excel/blob/2.0/src/Http/Controllers/UploadsImportsController.php#L47

I noticed - sorry for not mentioning it - I'm almost done, currently writing the after import hook - how can one get the models it created during the import after line https://github.com/Maatwebsite/Laravel-Nova-Excel/blob/2.0/src/Http/Controllers/UploadsImportsController.php#L47

Or do I need to use a different method on the importer for that? Maybe the toCollection?

Got that working too -> I added a hasMany relation on the Import model which connects with the resources->model:
    /**
     * @return HasMany
     */
    public function models()
    {
        $model = Nova::modelInstanceForKey($this->resource);

        return $this->hasMany(get_class($model));
    }

Got it fully working now! Don't know if it's meant this way, but I can import from one resource, fill another and then link it up together

I'll make a PR later on so you can see what I changed

My changes can be seen here: https://github.com/ThaDaVos/Laravel-Nova-Excel/commit/76a5176faf5eec98c81e5288f22a89d10291557c

@patrickbrouwers here's the promised Pull-Request: https://github.com/Maatwebsite/Laravel-Nova-Excel/pull/88

@patrickbrouwers I made some additional fixes regarding null values in excel sheets

Hey thanks for the PR, I currently don't have a lot of time to look at it. Also releasing 2.0 will most likely also still take a while. Feel free to keep using your own fork, and if you have anymore improvements feel free to add them to the PR! :)

Hi! any news on this?

No sorry

Thank you! I'm new to laravel and laravel nova, and I'm using this package to export my tables. Works really great :)
Do you have a work around or a recommendation to make imports? this really seems a good way to go but as an alternative, do you know any other package that makes import from the data exported from this one?

There are a few packages that have used the Laravel Excel base package like this one: https://packagist.org/packages/anaseqal/nova-import You can have a look at packagist: https://packagist.org/?query=laravel nova import I haven't tried or used any of them, so I'm not sure which one is good and works.


Add concurrency check when updating flags config value

How are you running Flagsmith

[ ] Self Hosted with Docker
[ ] Self Hosted with Kubernetes
[X] SaaS at flagsmith.com
[ ] Some other way (add details in description below)

Describe the bug
When two people have the config drawer open for any given feature flag which includes config, if one user makes a change to the config value and then the second user makes a change (without refreshing the screen), the config value is updated with the second users change and the first change is lost.
Steps To Reproduce

User 1 open right drawer with a feature flag and config
Another user open same config value
User 1 makes a change
User 2 makes a different change
User 1 change is lost

Expected behavior
Add an optomistic concurrency check (timestamp or concurrency key), and reject the 2nd change until the screen is reloaded and the user has the changes made between them loading the screen and wanting to save - they can then make the changes again to the latest data.
Screenshots
No response

This should be pretty easy to do in the FE by just checking the flag state id before saving the flag?

I'm not too clear on what you mean here @dabeeeenster, the ids would be the same?

User A updates a flag whilst user B is looking at the flag. We are versioning all this stuff, so we now have the original value v1 and new value v2 provided by User A.
When User B attempts to persist their change, we could have the FE check the latest version of the flag they are looking at. If they receive v1, they know they are not going to clobber any changes by other users. If they get v2, they know that someone else modified the value while they were looking at it. We can then surface an error/warning.

One possible UX to implement this is similar to VS Code does when a file has been externally modified:


chore: prepare pubspec for hosted package access

Can you also add the release workflow so this package is automatically uploaded to the forgejo server


Formly optional objects, multischemas, and arrays shouldn't mess with their children's required-ness

Description
Following the discussion in #2752, it was decided that an optional outer component should make its contents also optional. This leads to a large number of problems involving "valid" forms that are missing required entries.
Minimal Reproduction
https://stackblitz.com/edit/formly-required-marked-optional?file=src%2Fassets%2Fjson-schema%2Fmultischema.json
Possible alternative
For optional objects, add a checkbox for whether to include it, and add or remove the rest of the object's contents based on that.
For optional multischemas, add a 'none' option to the selector. If selected, the multischema should draw no child components and should have a value of undefined.
For arrays, have the zero-length array's value be [] instead of null. That change alone allows you to entirely ignore whether it's required.
Your Environment

Angular version: 10.2.5
Formly version: 5.10.21

Additional context
This design pattern also had a hand in #2893, #2891, #2866, and #2831.

that part needs more time I think :thinking:, we need to revert it (or at least not enabled by default) until we cover those cases

I came up with two solutions:
1- to entirely disable optional objects, one could just set defaultValue:
export class ObjectTypeComponent extends FieldType {
  defaultOptions = {
    defaultValue: {},
  };
}

2- add a reset button to clear the value which is shown whenever the object is set:


Initial algebra

This is not a complete version of the algebra, only a few combinators enough to implement the introductory synthesizer example of reactive banana: https://wiki.haskell.org/FRP_explanation_using_reactive-banana. Have a look, let's discuss the approach, e.g. tagless final vs. free monad.

done differently


Write an agreed approach of how to do individual branch migration

Definition of Done - Write an agreed approach of how to do individual branch migration and get it approved by product owner (Nicholas O.) and the customer (Cath C.)

Comments from #268:
The Jira ticket for this is https://nhsd-jira.digital.nhs.uk/browse/DPNDA-274 which was created on 26 May 2021
Due to the timescales for CDS 6-3, the CR can no longer be used for testing.
We will use Radiotherapy CR1736 Jira ticket is updated to reflect this).
Updates - Following 2nd Aug'21 Show & Tell, it was agreed to close #268 and create new tickets for the EPIC (Ability to migrate the data). New tickets #287, #293, #288, #289, #290, #291, and #292 are raised in relation to this EPIC.

22/12/21 - who needs to write this?

Cath and I will write this and send it to Gouri when it has been written.

Draft written and sent to Cath for comment / approval.

Meeting arranged for 24/1/22 to discuss.

Meeting held 24/1/22 - new version to be sent to Cath for sign off.

31/1/22 - document with Cath for sign off.

15/2/22 - Cath is working through the set of documents. To be discussed with Angie when all have been reviewed to ensure consistency.

10/3/22 - all documents reviewed and signed off by Cath. They are stored in: Migration Documentation.
Ticket moved to backlog as further versions may be required as the migration to Mauro progresses.

10/3/22 - all documents reviewed and signed off by Cath. They are stored in: Migration Documentation.
Ticket moved to backlog as further versions may be required as the migration to Mauro progresses.

Will need reviewing for the 2023 project.


Fix duplicate XLM when override is added

Preview is available here:http://stellar-demo-wallet-client-pr341.previews.kube001.services.stellar-ops.com/


Bug 1171168 - Fix string coercion in AVM1's TextField text and htmlText setters

/botio reftest

Review status: all files reviewed, all discussions resolved.
Reviewed files:

src/avm1/runtime.ts @ r1

Comments from the review on Reviewable.io

Reviewable.io sadly doesn't show all changes in this PR. I opened an issue about that.

Looks good.

Review status: :shipit: all files reviewed, all discussions resolved, all commit checks successful.


Import cdap version 2.25.0

This has a bunch of files that aren't in the cookbook, normally. It looks like something went wrong.


question about layout keyboard

Hi, i saw your library is very beautiful and useful, but i have a question:
Almost of user tend to design chatscreen with his own style. Then the most part of sticker keyboard is switch from native keyboard -> sticker keyboard.
For example, im using GiftedChat and want to embed stickerKeyboard inside, but i only have 'AccessoryView' to render stickerKeyboard. Can u provide me some way to do it? Thanks

Ok we will add KeyView on next Update, ASAP


Address Security Vulnerability

A security vulnerability was discovered by Github:
https://github.com/rubyforgood/diaper/network/alerts
It looks like webpacker needs to be updated.

Hi @armahillo would you mind providing some more detail please? @chaserx and I checked the gemfile lock with Rubygems.org and they're the same version. Would you be able to provide more clarity please?

@Nirvikalpa108 Absolutely!
If you click on the link in that first post, it'll list out the Gems that have known vulnerabilities. The way we've addressed this in the past is by doing a bundle update foo where foo is the gem that has a vulnerability.
It looks like 2 of the security alerts are for Javascript packages, maintained by yarn. I'm not 100% sure how to update those, I would presume it's something like yarn update or something similar.
When this is merged to master, the security alert should go away. When that happens, this can be closed.
Let me know if you need further clarification! :)

Thanks @armahillo. I'm sorry if this is a silly question, but would you mind explaining where I would be able to see the security alert myself so that once I update the Javascript packages, I can check I have been successful? The Github link in the first post takes me to a 404.
Thank you so much in advance 😃

I think only owners can see the dependency alerts.

@armahillo Can I get access so I can see the first post about the alerts. Thank you!

@armahillo Can I get access so I can see the first post about the alerts. Thank you!

You don't need access to this repo to see the alerts. You can see your own version with the following steps:

Fork this repo into your account. For example: after I forked, my version of the repo is now available at https://github.com/boscomonkey/diaper

In your case - https://github.com/trevordocherty/diaper

Enable Vulnerability Alerts under https://github.com/boscomonkey/diaper/settings

In your case - https://github.com/trevordocherty/diaper/settings

Alerts will now be available under https://github.com/boscomonkey/diaper/network/alerts - you may have to wait a little bit for the analysis to complete

In your case - https://github.com/trevordocherty/diaper/network/alerts

Your Vulnerability Alerts page will look something like this:

Another low severity alert:


If you stop Prisma, the Rust process will continue to work, and you will not be able to start more than a certain number of Rust processes.

Discussed in https://github.com/prisma/prisma/discussions/19389

Originally posted by KohnoseLami May 23, 2023
I initially developed on Windows and it worked fine on Windows, but when I deployed it to Linux, the following error occurred:
- event compiled client and server successfully in 531 ms (269 modules)
- wait compiling /api/ip (client and server)...
<w> [webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: Unable to snapshot resolve dependencies
<w> [webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: Unable to snapshot resolve dependencies
- event compiled successfully in 89 ms (73 modules)
thread '<unnamed>' panicked at 'OS can't spawn worker thread: Resource temporarily unavailable (os error 11)', /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/scheduler/multi_thread/worker.rs:365:13
stack backtrace:
   0:     0x7f3f19bc654c - <unknown>
   1:     0x7f3f194bf3ae - <unknown>
   2:     0x7f3f19b9b694 - <unknown>
   3:     0x7f3f19bc7c4f - <unknown>
   4:     0x7f3f19bc784f - <unknown>
   5:     0x7f3f19bc88eb - <unknown>
   6:     0x7f3f19bc83a4 - <unknown>
   7:     0x7f3f19bc830c - <unknown>
   8:     0x7f3f19bc82e1 - <unknown>
   9:     0x7f3f193971f2 - <unknown>
  10:     0x7f3f19782d48 - <unknown>
  11:     0x7f3f1942812a - <unknown>
  12:     0x7f3f197978b0 - <unknown>
  13:     0x7f3f19393987 - <unknown>
  14:     0x7f3f194373dc - <unknown>
- error src/pages/api/ip.ts (9:22) @ prisma
- error Error [TypeError]: Cannot read properties of undefined (reading 'user')
    at handler (webpack-internal:///(api)/./src/pages/api/ip.ts:9:77)
    at /home/XXX/XXX/XXX/bot/node_modules/next/dist/server/api-utils/node.js:463:16
    at /home/XXX/XXX/XXX/bot/node_modules/next/dist/server/lib/trace/tracer.js:113:36
    at NoopContextManager.with (/home/XXX/XXX/XXX/bot/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:7057)
    at ContextAPI.with (/home/XXX/XXX/XXX/bot/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:516)
    at NoopTracer.startActiveSpan (/home/XXX/XXX/XXX/bot/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:18086)
    at ProxyTracer.startActiveSpan (/home/XXX/XXX/XXX/bot/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:18847)
    at /home/XXX/XXX/XXX/bot/node_modules/next/dist/server/lib/trace/tracer.js:102:107
    at NoopContextManager.with (/home/XXX/XXX/XXX/bot/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:7057)
    at ContextAPI.with (/home/XXX/XXX/XXX/bot/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:516)
    at NextTracerImpl.trace (/home/XXX/XXX/XXX/bot/node_modules/next/dist/server/lib/trace/tracer.js:102:32)
    at apiResolver (/home/XXX/XXX/XXX/bot/node_modules/next/dist/server/api-utils/node.js:461:63)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async DevServer.runApi (/home/XXX/XXX/XXX/bot/node_modules/next/dist/server/next-server.js:663:9)
    at async Object.fn (/home/XXX/XXX/XXX/bot/node_modules/next/dist/server/next-server.js:1129:35)
    at async Router.execute (/home/XXX/XXX/XXX/bot/node_modules/next/dist/server/router.js:315:32)
    at async DevServer.runImpl (/home/XXX/XXX/XXX/bot/node_modules/next/dist/server/base-server.js:602:29)
    at async DevServer.run (/home/XXX/XXX/XXX/bot/node_modules/next/dist/server/dev/next-dev-server.js:922:20)
    at async DevServer.handleRequestImpl (/home/XXX/XXX/XXX/bot/node_modules/next/dist/server/base-server.js:533:20) {
  digest: undefined
}
   7 | ) {
   8 |   res.setHeader('Test', 'Test')
>  9 |   const users = await prisma.user.findMany();
     |                      ^
  10 |   console.log(users);
  11 |   return res.status(200).json({ users: users });
  12 |   //res.status(200).json({ ip: requestIp.getClientIp(req) ?? '' });
  15:     0x7f471b394c43 - _ZN6v8impl12_GLOBAL__N_123FunctionCallbackWrapper6InvokeERKN2v820FunctionCallbackInfoINS2_5ValueEEE
  16:     0x7f471b81af2d - _ZN2v88internal12_GLOBAL__N_119HandleApiCallHelperILb1EEENS0_11MaybeHandleINS0_6ObjectEEEPNS0_7IsolateENS0_6HandleINS0_10HeapObjectEEESA_NS8_INS0_20FunctionTemplateInfoEEENS8_IS4_EENS0_16BuiltinArgumentsE
  17:     0x7f471b81b1d3 - _ZN2v88internal21Builtin_HandleApiCallEiPmPNS0_7IsolateE
  18:     0x7f471b631439 - Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit
fatal runtime error: failed to initiate panic, error 5
- error Error: socket hang up
    at connResetException (node:internal/errors:718:14)
    at Socket.socketOnEnd (node:_http_client:520:23)
    at Socket.emit (node:events:525:35)
    at endReadableNT (node:internal/streams/readable:1359:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  code: 'ECONNRESET'
}
- wait compiling /_error (client and server)...
- event compiled client and server successfully in 54 ms (281 modules)

We use "XXX" to hide it because the path name contains authentication information.
The path name consists only of alphanumeric characters and does not contain any Japanese characters.
Also, using only Prisma without Next.js causes no problems
Also, using Next.js alone without Prisma won't cause any problems
We tested with MySQL and SQLite, and both have similar issues.
Postscript:
As we moved from discussion to issue, we looked for additional validation and causes
Whenever I get these errors, it happens when I start two or more Next.js applications
I thought it was a problem that only occurred in combination with Next.js, but as I went along with the additions, I realized that even if I terminated the main process, the Rust process would continue to fire up behind the scenes.
My system probably has a low thread or process limit and won't start
But there were times when even a single application didn't launch. When I ran the "ps x" command at that time, the following Prisma engines were always running, and I could avoid this error by stopping them all with "pkill -f ”prisma""and starting them again.
100928 ?        Sl     0:00 /home/xs905136/.cache/prisma-python/binaries/4.15.0/8fbc245156db7124f997f4cecdd8d1219e360944/node_modules/prisma/query-engine-rhel-openssl-1.0.x -p 56787 --enable-raw-queries

This problem occurs both in the ported Python version of Prisma and in the Node.js version of Prisma.
And I use the forever package for resident applications, whether Python or Node.js.
If the process is stopped by this Rust error, perhaps because it doesn't work well with the forever package, the forever package will try to restart and the server itself will get stuck.

@KohnoseLami Could you try setting your generator like:
generator client {
  provider   = "prisma-client-js"
  engineType = "binary"
}

To see if that issue only happens with the default "library engine".
See https://www.prisma.io/docs/concepts/components/prisma-engines/query-engine#configuring-the-query-engine

I think the project from @KohnoseLami is already using the binary as this seems to be a Prisma Client Python project - is that correct?

100928 ?        Sl     0:00 /home/xs905136/.cache/prisma-python/binaries/4.15.0/8fbc245156db7124f997f4cecdd8d1219e360944/node_modules/prisma/query-engine-rhel-openssl-1.0.x -p 56787 --enable-raw-queries

I am sorry that I could not answer your question for a long time.
I was not able to answer about Rust in detail.
Probably yes
As far as the process is concerned, it works by binary.
And what we found additionally is that there is an upper limit to which you can start prisma.
Starting Next.js creates multiple instances, making it more error-prone.
A similar error occurs if you start more than one Prisma-only resident process.
Probably a continuation of this problem.
https://github.com/prisma/prisma/issues/20006
My Linux has a slightly lower per-user process limit because it is shared by multiple people.
$ ulimit -u
2000

$ ps aux | wc -l
340

But just because it's set low doesn't mean it's close to the upper limit.
The limit is not met, but an error occurs.
thread 'tokio-runtime-worker' panicked at 'timer has gone away', /root/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-timer-3.0.2/src/native/delay.rs:112:21
stack backtrace:
   0:     0x5587d414015c - <unknown>
   1:     0x5587d39890fe - <unknown>
   2:     0x5587d4113554 - <unknown>
   3:     0x5587d41418bf - <unknown>
   4:     0x5587d41414bf - <unknown>
   5:     0x5587d414254d - <unknown>
   6:     0x5587d39b35fa - <unknown>
   7:     0x5587d39b35ce - <unknown>
   8:     0x5587d382a170 - <unknown>
   9:     0x5587d4094212 - <unknown>
  10:     0x5587d40c503b - <unknown>
  11:     0x5587d40fed03 - <unknown>
  12:     0x5587d40fcfdd - <unknown>
  13:     0x5587d4100e52 - <unknown>
  14:     0x5587d3885fb4 - <unknown>
  15:     0x5587d38be58d - <unknown>
  16:     0x5587d415a44c - <unknown>
  17:     0x5587d4164b8e - <unknown>
  18:     0x5587d41591b4 - <unknown>
  19:     0x5587d4158c32 - <unknown>
  20:     0x5587d415e1cc - <unknown>
  21:     0x5587d41436b5 - <unknown>
  22:     0x7f0819711ea5 - start_thread
  23:     0x7f0818f34b0d - clone
  24:                0x0 - <unknown>

Are there any engines that don't use Rust?

Hey @KohnoseLami, given that you're using the Python client, have you opened an issue there https://github.com/RobertCraigie/prisma-client-py ?

Hey @KohnoseLami, as asked by Weakky, please open an issue in https://github.com/RobertCraigie/prisma-client-py, as they maintain the Python Prisma Client. Thanks!


How can I use use highlight.js in TS without all the languages?

I read in the README about importing import * as hljs from 'highlight.js/lib/highlight.js'; instead of the index but this does not have types. Anyone know how I can get types for the file instead of the module?

The readme answers this and has an example also:
https://github.com/highlightjs/highlight.js#commonjs
Require whichever languages you need individially, then register them.  Just look at the index.js file to see how it's done.

@yyyc514 that is exactly what I stated in my question.
I know that you have an example on the README but I cannot make it work without hacks in Typescript, since the projects has not typings for the highlight.js/lib/highlight.js file and just has for highlight.js or index.js` file which forces all the languages.

Sorry for any confusion.

since the projects has not typings for the highlight.js/lib/highlight.js file and just has for highlight.js or index.js

I think you're asking a Typescript specific question.  I'm having trouble understanding.  Where is it that we have (or provide) types for the library?
So I'm not sure why you have types for one thing but not others.  Someone more familiar with TS might have to jump in here or you might have to make some suggestions on how we might go about even fixing this - since right now I haven no idea.

This is definitely a TS specific question, maybe I could have pointed to the source of the types.
They are here https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/highlight.js/index.d.ts and were contributed by @nikeee, @sourrust and @joshuakgoldberg, maybe they have some suggestion regarding this?

Feels like perhaps this issue should be filed/asked against the DefinitelyTyped repo, perhaps?  We don't provide typescript types with our npm distro.

Hi! Agreed. This feels like two questions:

Can we improve the typings of highlight.js in DefinitelyTyped?
How do you declare these types in TypeScript?

FWIW, https://www.typescriptlang.org/docs/handbook/modules.html#ambient-modules (or if that's not clear, https://stackoverflow.com/questions/44058101/typescript-declare-third-party-modules) might be helpful for both.

Thanks for the help here I opened an issue in DefinitelyTypedto follow with the discussion.

Facing some issues with this library as the current documentation (CommonJS section), states that we should import the core file instead of the default import.

Therefore it is likely to be more efficient to import only the library and the languages you need:
import hljs from 'highlight.js/lib/core';
import javascript from 'highlight.js/lib/languages/javascript';
hljs.registerLanguage('javascript', javascript);

However, trying to do on my Angular 9 app.component.ts file, I get this error:
Cannot find module 'highlight.js/lib/core'.

Please see the stable documentation:
https://github.com/highlightjs/highlight.js/tree/9-18-stable
OR use the v10 beta:
<EMAIL_ADDRESS>

@yyyc514 I didn't know there was a different npm package for the v10 but glad to see your quick response 👍

Yeah, there is an open PR to change the readme.  I just published the beta to it's new location today and we're still trying to sort out the proper transition.

@nikeee, @sourrust and @JoshuaKGoldberg
Could any of you help?  I'd like to move the types into our repository (so we keep them up-to-date as the library changes, but I'm having a heck of a time figuring out how to do this or f it's even possible).  Could any of you look at:
https://github.com/highlightjs/highlight.js/issues/2603


Some downloads fail with ZipException

After starting the nist-data-mirror Docker container (docker run -it --rm -p 80:80 sspringett/nvdmirror), several file downloads fail with the following error message:
2019-10-18 19:50:12,011 INFO success: initialize_htdocs entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
java.util.zip.ZipException: Not in GZIP format
	at java.util.zip.GZIPInputStream.readHeader(GZIPInputStream.java:165)
	at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:79)
	at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:91)
	at us.springett.nistdatamirror.NistDataMirror.uncompress(NistDataMirror.java:225)
	at us.springett.nistdatamirror.NistDataMirror.doDownload(NistDataMirror.java:214)
	at us.springett.nistdatamirror.NistDataMirror.mirror(NistDataMirror.java:128)
	at us.springett.nistdatamirror.NistDataMirror.main(NistDataMirror.java:70)

See also https://github.com/stevespringett/nist-data-mirror/pull/43#issuecomment-543907497 .

It seems that this has been fixed with one of the latest master branch builds.


User and Admin login from different tables using passport js local strategy

I have two different login tables, one for User and another for Admin. Can you please suggest what changes needed to do that logging possible from two different tables and also need to keep separate  session.

I have corrected this. Stackoverflow  reference link is here http://stackoverflow.com/questions/20052617/use-multiple-local-strategies-in-passportjs
and also modified the deserializeUser method like this;
passport.deserializeUser(function (id, done) {
Admin.findById(id, function (err, user) {
if (err)
done(err);
if (user) {
done(null, user);
} else {
User.findById(id, function (err, user) {
if (err)
done(err);
done(null, user);
});
}
});
})


It takes 5 seconds to add a new class to TFVC (IDEA)

Hi!
Adding a new class to TFVC takes up to 5 seconds. It does not feel great. I attached log.txt. What can be wrong?
This progress bar appears for every VCS action.

Hi @bubblef,
It looks like you are using the 14.0.3 version of our command line client. The plugin calls out to that to perform the TFVC actions. Some performance improvements have been made in more recent versions of it. Would you mind trying to use the latest 14.111.1 version found at the link below and see if that helps improve the timing at all? If not, please let me know so I can further investigate.
https://github.com/Microsoft/team-explorer-everywhere/releases
Thanks!
-Leah

Hi Leah,
I've tried it with the 14.111.1 version, but unfortunately it doesn't help.

Ok then I will log this as a bug on our end. Thanks for trying the update though. We have performance improvements planned for the command line client but hearing about experiences like this helps us prioritize the work better.
Thanks again,
-Leah

Hi Leah,
It's reproducing on MacOS and on Windows as well.

Ok I made some changes to the plugin that caused me to see performance improvements on my Mac. Could you test this out and let me know if you see any difference please? (Make sure you are still using the 14.111.1 or higher version of the CLC or it won't work)
Thanks,
-Leah
plugin.idea-1.115.3.zip

Hi Leah,
Sorry for the delay.
The plugin's performance is better with the 1.115.3 version. It takes 2-3 seconds to add a new file.

Good to hear @bubblef. I'll close this issue then but if you see anymore performance problems please feel free to reopen this.


Remove wrong #7113 entry from changelog

There are two entries for #7113 in the changelog for 0.72.0. This one
might be the result of a wrongly resolved merge conflict or similar:
c897642f9214fb7fa02d9040d1e513ae2c685acb

Thanks!


WebsocketTransportClient is not a constructor

Expected Behavior
instantiate a new WebsocketClientTransport class with constructor args of ClientOptions
Actual Behavior
WebsocketClientTransport registers a type error
Steps to Reproduce
packages:

attempt to instantiate new WebsocketClientTransport class

Hi @mattydono
Could you please provide a reproduction example?
I wasn't able to reproduce this through a simple example/test. Please see: https://github.com/viglucci/rsocket-js-websocket-example

So the only notable difference is that I'm using RxRequestersFactory:

Thanks for that additional info.
Can you answer this question:

Based on your screenshot, I suspect you are trying to use RSocket-js in a client-side application. Are you using Webpack, Vite, or another bundler?

RSocket used to provide an alternative implementation of Buffer, however this is no longer the case in v1.X.
This article may help: https://viglucci.io/articles/how-to-polyfill-buffer-with-webpack-5
You can also reference the WebPack example: https://github.com/rsocket/rsocket-js/blob/8f862ad6c6c72e54728966d352b5959f1534af25/packages/rsocket-examples/src/webpack/simple/client/webpack.config.js#L22

I'm using vite

Concerning vite, you may also wish to reference this previous issue: https://github.com/rsocket/rsocket-js/issues/195#issuecomment-987510972

Hey @mattydono were you able to find a solution here? If so I would like to close out this issue.

Closing this out as haven't heard back from Author.


Do any of your repositories work with Dashboard 2?

Dear HotNipi -
I was wondering if any of your current repositories work with Dashboard 2, but especially the ui-level repository.  My sincere thanks,
RipRock

No. But I made couple of gauge prototypes you can find here https://discourse.nodered.org/t/dashboard-2-0-is-now-generally-available/84913/57?u=hotnipi

Thanks!
I will give these a shot!  It is also nice to see a link to the discord where active questions are being entertained.
Scott

Dr. F. Scott Anderson Tel:<PHONE_NUMBER>
Southwest Research Institute Ofc:<PHONE_NUMBER>
1050 Walnut St, Suite 300  Cell:<PHONE_NUMBER>
Boulder, CO 80302  Fax:<PHONE_NUMBER>
http://www.boulder.swri.edu/

All opinions herein stated are mine, not those of SwRI or NASA.  Trust me.

On Feb 3, 2024, at 11:26 PM, hotNipi @.***> wrote:
No. But I made couple of gauge prototypes you can find here https://discourse.nodered.org/t/dashboard-2-0-is-now-generally-available/84913/57?u=hotnipi
—
Reply to this email directly, view it on GitHub https://github.com/hotNipi/node-red-contrib-ui-level/issues/48#issuecomment-1925597760, or unsubscribe https://github.com/notifications/unsubscribe-auth/AX73YUEALFEBJNG6M76BOFLYR4S2JAVCNFSM6AAAAABCYMB2TSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRVGU4TONZWGA.
You are receiving this because you authored the thread.

@hotNipi, any ETA on when there will be a level widget for dashboard 2.x?


Tune ADR decoder parameters

Fine-tune the seq2seq decoder parameters (like beam-width) for the ADR task. This also includes error-analysis from the validation & test sets so we have a deep understanding of the performance of the model.
Please refer to this document from the CMU-LTI: https://github.com/neubig/nmt-tips

thanks for the sharing the CMU-LTI tips

@toonday this is an example issue, you can find it on the project under next TODOs. Just a followup on the kind of small scale "project mgt" we're currently doing.


add SNaP to dash_apps

There are a couple new callback exceptions due to changes in Dash (I think), but it still works okay.


[FEA] Test redefined window operation

Is your feature request related to a problem? Please describe.
This stems from https://github.com/apache/spark/commit/e43255051c where Spark now will not give an output but throw a parse exception when windows are redefined.
Describe the solution you'd like
Make sure we match CPU behavior

This change was completely in Sparks SQL parser. I personally don't see a lot of value in writing a test for code that is not in our project. We mostly just need to make sure that we avoid doing this in any tests going forward. I know we are not doing it in any current tests because the tests are not failing in this way on spark 3.1

This change was completely in Sparks SQL parser. I personally don't see a lot of value in writing a test for code that is not in our project. We mostly just need to make sure that we avoid doing this in any tests going forward. I know we are not doing it in any current tests because the tests are not failing in this way on spark 3.1


Write method for autoplot.NanoStringGeomxSet

[ ] write s3 method autoplot.NanoStringGeomxSet  as a wrapper function to all plots to be included in GeomxTools
[ ] Test if existing plot types are applicable to GeomxSet, otherwise, overwrite these such that calling autoplot dispatches to autoplot.NanoStringGeomxSet instead of autoplot.NanoStringRcSet

List of identified plots (this list will be updated as we identify useful plots to include). This can be included in a switch statement.
Inputs:
function(object, type = c("spaceplot", "SNRheatmap", etc. ),  # other parameters that you will need)
Exploratory plots. (these plotting functions can be different .R files in the package.)

[ ] spaceplot
[ ] detection heatmap (SNR heatmap)

QC Plots:

[ ] To be determined

modularize
autoplot.R wrapper function to call other plotting functions:
one R file per plot

modularize
autoplot.R wrapper function to call other plotting functions:
one R file per plot


Reduce the memory requirement of Mesh refinement, especially for high-order meshes

Refining a high-order Mesh uses a lot more memory than expected. This seems to be due to the use of a fully assembled matrix to interpolate the node coordinates.

This probably goes to me. In addition, assembling the RefinementMatrix is very slow.


set volume not correct

spotify volume {number}
spotify number 100 = 100
spotify number 10 = 9

I am aware of this, unfortunately not something we can fix on our end. It's due to Spotify's AppleScript API. See discussion here:
https://github.com/hnarayanan/shpotify/issues/58