A error occurs when building it

Hi~ A error occurs when building it as follow.

wyj@t2:/home/data/wyj/collision/ImplicitPIC/22-04-15-cp$ make
Scanning dependencies of target iPIC3Dlib
[  3%] Building CXX object CMakeFiles/iPIC3Dlib.dir/ConfigFile/src/ConfigFile.cpp.o
: error: macro names must be identifiers
: error: macro names must be identifiers
: error: macro names must be identifiers
make[2]: *** [CMakeFiles/iPIC3Dlib.dir/build.make:63: CMakeFiles/iPIC3Dlib.dir/ConfigFile/src/ConfigFile.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:125: CMakeFiles/iPIC3Dlib.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

Did you have any suggestion?

If not ccmake, the error will not occur.
But a new error appears when I run.

wyj@t2:/home/data/wyj/collision/ImplicitPIC/22-04-15-cp$ mpirun -np 8 iPIC3D testGEM3Dsmall.inp

Number of processes = 8
Number of threads = 1
Virtual Cartesian Processors Topology
Processors grid: 2x2x2
Periodicity X: 1
Periodicity Y: 0
Periodicity Z: 1
Simulation Parameters
Number of species    = 4
qom[0] = -64
qom[1] = 1
qom[2] = -64
qom[3] = 1
x-Length                 = 10
y-Length                 = 10
z-Length                 = 10
Number of cells (x)      = 20
Number of cells (y)      = 20
Number of cells (z)      = 20
Time step                = 0.15
Number of cycles         = 51
Results saved in  : data
Case type         : GEM
Simulation name   : testGEM3D
Poisson correction: no
Check Simulation Constraints
Accuracy Constraint:
u_th < dx/dt species 0.....OK
v_th < dy/dt species 0......OK
u_th < dx/dt species 1.....OK
v_th < dy/dt species 1......OK
u_th < dx/dt species 2.....OK
v_th < dy/dt species 2......OK
u_th < dx/dt species 3.....OK
v_th < dy/dt species 3......OK
Finite Grid Stability Constraint:
WARNING. u_thdt/dx (species 0) = 0.0135 < .1
WARNING. v_thdt/dy (species 0) = 0.0135 < .1
WARNING. u_thdt/dx (species 1) = 0.00378 < .1
WARNING. v_thdt/dy (species 1) = 0.00378 < .1
WARNING. u_thdt/dx (species 2) = 0.0135 < .1
WARNING. v_thdt/dy (species 2) = 0.0135 < .1
WARNING. u_thdt/dx (species 3) = 0.00378 < .1
WARNING. v_thdt/dy (species 3) = 0.00378 < .1
Initialize GEM Challenge with Perturbation
B0x                              = 0.0195
B0y                              = 0
B0z                              = 0
Delta (current sheet thickness) = 0.5
rho species 0 = 1 DRIFTING
rho species 1 = 1 DRIFTING
rho species 2 = 0.1 BACKGROUND
rho species 3 = 0.1 BACKGROUND
[t2:733077] *** Process received signal ***
[t2:733077] Signal: Segmentation fault (11)
[t2:733077] Signal code: Address not mapped (1)
[t2:733077] Failing at address: 0x5561c7df6d78
[t2:733077] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x430c0)[0x7f52320660c0]
[t2:733077] [ 1] [t2:733080] *** Process received signal ***
[t2:733080] Signal: Segmentation fault (11)
[t2:733080] Signal code: Address not mapped (1)
[t2:733080] Failing at address: 0x5622c8d522e8
[t2:733080] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x430c0)[0x7f497f1390c0]
[t2:733080] [ 1] libiPIC3Dlib.so(_Z7addFaceiiiPPPdPK12VCtopology3D+0x369)[0x7f497f53209e]
[t2:733080] [ 2] libiPIC3Dlib.so(_Z17NBDerivedHaloCommiiiPPPdPK12VCtopology3DP10EMfields3Dbbbb+0x40ae)[0x7f497f53175c]
[t2:733080] [ 3] libiPIC3Dlib.so(_Z17communicateInterpiiiPPPdPK12VCtopology3DP10EMfields3D+0x4b)[0x7f497f533494]
[t2:733080] [ 4] [t2:733084] *** Process received signal ***
[t2:733084] Signal: Segmentation fault (11)
[t2:733084] Signal code: Address not mapped (1)
[t2:733084] Failing at address: 0x558107b477f8
[t2:733084] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x430c0)[0x7f15b91a40c0]
[t2:733084] [ 1] libiPIC3Dlib.so(_Z7addFaceiiiPPPdPK12VCtopology3D+0x369)[0x7f15b959d09e]
[t2:733084] [ 2] libiPIC3Dlib.so(_Z17NBDerivedHaloCommiiiPPPdPK12VCtopology3DP10EMfields3Dbbbb+0x40ae)[0x7f15b959c75c]
[t2:733084] [ 3] libiPIC3Dlib.so(_Z17communicateInterpiiiPPPdPK12VCtopology3DP10EMfields3D+0x4b)[0x7f15b959e494]
[t2:733084] [ 4] libiPIC3Dlib.so(_ZN10EMfields3D19communicateGhostP2GEi+0x251)[0x7f15b95c1df3]
[t2:733084] [t2:733076] *** Process received signal ***
[t2:733076] Signal: Segmentation fault (11)
[t2:733076] Signal code: Address not mapped (1)
[t2:733076] Failing at address: 0x561999bb25b8
[t2:733076] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x430c0)[0x7f5c3bb840c0]
[t2:733076] [ 1] libiPIC3Dlib.so(_Z7addFaceiiiPPPdPK12VCtopology3D+0x369)[0x7f5c3bf7d09e]
[t2:733076] [ 2] libiPIC3Dlib.so(_Z17NBDerivedHaloCommiiiPPPdPK12VCtopology3DP10EMfields3Dbbbb+0x40ae)[0x7f5c3bf7c75c]
[t2:733076] [ 3] libiPIC3Dlib.so(_Z7addFaceiiiPPPdPK12VCtopology3D+0x369)[0x7f523245f09e]
[t2:733077] [ 2] libiPIC3Dlib.so(_Z17NBDerivedHaloCommiiiPPPdPK12VCtopology3DP10EMfields3Dbbbb+0x40ae)[0x7f523245e75c]
[t2:733077] [ 3] libiPIC3Dlib.so(_Z17communicateInterpiiiPPPdPK12VCtopology3DP10EMfields3D+0x4b)[0x7f5232460494]
[t2:733077] [ 4] libiPIC3Dlib.so(_ZN10EMfields3D19communicateGhostP2GEi+0x251)[0x7f5232483df3]
[t2:733077] [ 5] libiPIC3Dlib.so(_ZN10EMfields3D14sumMoments_AoSEPK15Particles3Dcomm+0x1625)[0x7f52324692e5]
[t2:733077] [ 6] libiPIC3Dlib.so(_ZN6iPic3D8c_Solver16CalculateMomentsEv+0x1ad)[0x7f52324c5bff]
[t2:733077] [ 7] iPIC3D(+0x13d6)[0x555737f513d6]
[t2:733077] [ 8] libiPIC3Dlib.so(_ZN10EMfields3D19communicateGhostP2GEi+0x251)[0x7f497f556df3]
[t2:733080] [ 5] libiPIC3Dlib.so(_ZN10EMfields3D14sumMoments_AoSEPK15Particles3Dcomm+0x1625)[0x7f497f53c2e5]
[t2:733080] [ 6] libiPIC3Dlib.so(_ZN6iPic3D8c_Solver16CalculateMomentsEv+0x1ad)[0x7f497f598bff]
[t2:733080] [ 7] iPIC3D(+0x13d6)[0x56004b4033d6]
[t2:733080] [ 8] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x7f497f11a0b3]
[t2:733080] [ 9] iPIC3D(+0x128e)[0x56004b40328e]
[t2:733080] *** End of error message ***
libiPIC3Dlib.so(_Z17communicateInterpiiiPPPdPK12VCtopology3DP10EMfields3D+0x4b)[0x7f5c3bf7e494]
[t2:733076] [ 4] libiPIC3Dlib.so(_ZN10EMfields3D19communicateGhostP2GEi+0x251)[0x7f5c3bfa1df3]
[t2:733076] [ 5] libiPIC3Dlib.so(_ZN10EMfields3D14sumMoments_AoSEPK15Particles3Dcomm+0x1625)[0x7f5c3bf872e5]
[t2:733076] [ 6] libiPIC3Dlib.so(_ZN6iPic3D8c_Solver16CalculateMomentsEv+0x1ad)[0x7f5c3bfe3bff]
[t2:733076] [ 7] iPIC3D(+0x13d6)[0x55a168aa53d6]
[t2:733076] [ 8] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x7f5c3bb650b3]
[t2:733076] [ 9] iPIC3D(+0x128e)[0x55a168aa528e]
[t2:733076] *** End of error message ***
[ 5] libiPIC3Dlib.so(_ZN10EMfields3D14sumMoments_AoSEPK15Particles3Dcomm+0x1625)[0x7f15b95a72e5]
[t2:733084] [ 6] libiPIC3Dlib.so(_ZN6iPic3D8c_Solver16CalculateMomentsEv+0x1ad)[0x7f15b9603bff]
[t2:733084] [ 7] iPIC3D(+0x13d6)[0x5649ab7fc3d6]
[t2:733084] [ 8] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x7f15b91850b3]
[t2:733084] [ 9] iPIC3D(+0x128e)[0x5649ab7fc28e]
[t2:733084] *** End of error message ***
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x7f52320470b3]
[t2:733077] [ 9] iPIC3D(+0x128e)[0x555737f5128e]
[t2:733077] *** End of error message ***
Primary job  terminated normally, but 1 process returned
a non-zero exit code. Per user-direction, the job has been aborted.

mpirun noticed that process rank 3 with PID 0 on node t2 exited on signal 11 (Segmentation fault).

If not ccmake, the error will not occur.
But a new error appears when I run.
If not ccmake, the error will not occur. But a new error appears when I run.

If not ccmake, the error will not occur.
But a new error appears when I run.
wyj@t2:/home/data/wyj/collision/ImplicitPIC/22-04-15-cp$ mpirun -np 8 testGEM3Dsmall.inp
mpirun was unable to find the specified executable file, and therefore
did not launch the job.  This error was first reported for process
rank 0; it may have occurred for other processes as well.
NOTE: A common cause for this error is misspelling a mpirun command
line parameter option (remember that mpirun interprets the first
unrecognized command line token as the executable).
Node:       t2
Executable: testGEM3Dsmall.inp
8 total processes failed to start
wyj@t2:/home/data/wyj/collision/ImplicitPIC/22-04-15-cp$ mpirun -np 8 iPIC3D testGEM3Dsmall.inp
Number of processes = 8
Number of threads = 1
Virtual Cartesian Processors Topology
Processors grid: 2x2x2
Periodicity X: 1
Periodicity Y: 0
Periodicity Z: 1
Simulation Parameters
Number of species    = 4
qom[0] = -64
qom[1] = 1
qom[2] = -64
qom[3] = 1
x-Length                 = 10
y-Length                 = 10
z-Length                 = 10
Number of cells (x)      = 20
Number of cells (y)      = 20
Number of cells (z)      = 20
Time step                = 0.15
Number of cycles         = 51
Results saved in  : data
Case type         : GEM
Simulation name   : testGEM3D
Poisson correction: no
Check Simulation Constraints
Accuracy Constraint:
u_th < dx/dt species 0.....OK
v_th < dy/dt species 0......OK
u_th < dx/dt species 1.....OK
v_th < dy/dt species 1......OK
u_th < dx/dt species 2.....OK
v_th < dy/dt species 2......OK
u_th < dx/dt species 3.....OK
v_th < dy/dt species 3......OK
Finite Grid Stability Constraint:
WARNING. u_thdt/dx (species 0) = 0.0135 < .1
WARNING. v_thdt/dy (species 0) = 0.0135 < .1
WARNING. u_thdt/dx (species 1) = 0.00378 < .1
WARNING. v_thdt/dy (species 1) = 0.00378 < .1
WARNING. u_thdt/dx (species 2) = 0.0135 < .1
WARNING. v_thdt/dy (species 2) = 0.0135 < .1
WARNING. u_thdt/dx (species 3) = 0.00378 < .1
WARNING. v_thdt/dy (species 3) = 0.00378 < .1
Initialize GEM Challenge with Perturbation
B0x                              = 0.0195
B0y                              = 0
B0z                              = 0
Delta (current sheet thickness) = 0.5
rho species 0 = 1 DRIFTING
rho species 1 = 1 DRIFTING
rho species 2 = 0.1 BACKGROUND
rho species 3 = 0.1 BACKGROUND
[t2:733077] *** Process received signal ***
[t2:733077] Signal: Segmentation fault (11)
[t2:733077] Signal code: Address not mapped (1)
[t2:733077] Failing at address: 0x5561c7df6d78
[t2:733077] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x430c0)[0x7f52320660c0]
[t2:733077] [ 1] [t2:733080] *** Process received signal ***
[t2:733080] Signal: Segmentation fault (11)
[t2:733080] Signal code: Address not mapped (1)
[t2:733080] Failing at address: 0x5622c8d522e8
[t2:733080] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x430c0)[0x7f497f1390c0]
[t2:733080] [ 1] libiPIC3Dlib.so(_Z7addFaceiiiPPPdPK12VCtopology3D+0x369)[0x7f497f53209e]
[t2:733080] [ 2] libiPIC3Dlib.so(_Z17NBDerivedHaloCommiiiPPPdPK12VCtopology3DP10EMfields3Dbbbb+0x40ae)[0x7f497f53175c]
[t2:733080] [ 3] libiPIC3Dlib.so(_Z17communicateInterpiiiPPPdPK12VCtopology3DP10EMfields3D+0x4b)[0x7f497f533494]
[t2:733080] [ 4] [t2:733084] *** Process received signal ***
[t2:733084] Signal: Segmentation fault (11)
[t2:733084] Signal code: Address not mapped (1)
[t2:733084] Failing at address: 0x558107b477f8
[t2:733084] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x430c0)[0x7f15b91a40c0]
[t2:733084] [ 1] libiPIC3Dlib.so(_Z7addFaceiiiPPPdPK12VCtopology3D+0x369)[0x7f15b959d09e]
[t2:733084] [ 2] libiPIC3Dlib.so(_Z17NBDerivedHaloCommiiiPPPdPK12VCtopology3DP10EMfields3Dbbbb+0x40ae)[0x7f15b959c75c]
[t2:733084] [ 3] libiPIC3Dlib.so(_Z17communicateInterpiiiPPPdPK12VCtopology3DP10EMfields3D+0x4b)[0x7f15b959e494]
[t2:733084] [ 4] libiPIC3Dlib.so(_ZN10EMfields3D19communicateGhostP2GEi+0x251)[0x7f15b95c1df3]
[t2:733084] [t2:733076] *** Process received signal ***
[t2:733076] Signal: Segmentation fault (11)
[t2:733076] Signal code: Address not mapped (1)
[t2:733076] Failing at address: 0x561999bb25b8
[t2:733076] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x430c0)[0x7f5c3bb840c0]
[t2:733076] [ 1] libiPIC3Dlib.so(_Z7addFaceiiiPPPdPK12VCtopology3D+0x369)[0x7f5c3bf7d09e]
[t2:733076] [ 2] libiPIC3Dlib.so(_Z17NBDerivedHaloCommiiiPPPdPK12VCtopology3DP10EMfields3Dbbbb+0x40ae)[0x7f5c3bf7c75c]
[t2:733076] [ 3] libiPIC3Dlib.so(_Z7addFaceiiiPPPdPK12VCtopology3D+0x369)[0x7f523245f09e]
[t2:733077] [ 2] libiPIC3Dlib.so(_Z17NBDerivedHaloCommiiiPPPdPK12VCtopology3DP10EMfields3Dbbbb+0x40ae)[0x7f523245e75c]
[t2:733077] [ 3] libiPIC3Dlib.so(_Z17communicateInterpiiiPPPdPK12VCtopology3DP10EMfields3D+0x4b)[0x7f5232460494]
[t2:733077] [ 4] libiPIC3Dlib.so(_ZN10EMfields3D19communicateGhostP2GEi+0x251)[0x7f5232483df3]
[t2:733077] [ 5] libiPIC3Dlib.so(_ZN10EMfields3D14sumMoments_AoSEPK15Particles3Dcomm+0x1625)[0x7f52324692e5]
[t2:733077] [ 6] libiPIC3Dlib.so(_ZN6iPic3D8c_Solver16CalculateMomentsEv+0x1ad)[0x7f52324c5bff]
[t2:733077] [ 7] iPIC3D(+0x13d6)[0x555737f513d6]
[t2:733077] [ 8] libiPIC3Dlib.so(_ZN10EMfields3D19communicateGhostP2GEi+0x251)[0x7f497f556df3]
[t2:733080] [ 5] libiPIC3Dlib.so(_ZN10EMfields3D14sumMoments_AoSEPK15Particles3Dcomm+0x1625)[0x7f497f53c2e5]
[t2:733080] [ 6] libiPIC3Dlib.so(_ZN6iPic3D8c_Solver16CalculateMomentsEv+0x1ad)[0x7f497f598bff]
[t2:733080] [ 7] iPIC3D(+0x13d6)[0x56004b4033d6]
[t2:733080] [ 8] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x7f497f11a0b3]
[t2:733080] [ 9] iPIC3D(+0x128e)[0x56004b40328e]
[t2:733080] *** End of error message ***
libiPIC3Dlib.so(_Z17communicateInterpiiiPPPdPK12VCtopology3DP10EMfields3D+0x4b)[0x7f5c3bf7e494]
[t2:733076] [ 4] libiPIC3Dlib.so(_ZN10EMfields3D19communicateGhostP2GEi+0x251)[0x7f5c3bfa1df3]
[t2:733076] [ 5] libiPIC3Dlib.so(_ZN10EMfields3D14sumMoments_AoSEPK15Particles3Dcomm+0x1625)[0x7f5c3bf872e5]
[t2:733076] [ 6] libiPIC3Dlib.so(_ZN6iPic3D8c_Solver16CalculateMomentsEv+0x1ad)[0x7f5c3bfe3bff]
[t2:733076] [ 7] iPIC3D(+0x13d6)[0x55a168aa53d6]
[t2:733076] [ 8] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x7f5c3bb650b3]
[t2:733076] [ 9] iPIC3D(+0x128e)[0x55a168aa528e]
[t2:733076] *** End of error message ***
[ 5] libiPIC3Dlib.so(_ZN10EMfields3D14sumMoments_AoSEPK15Particles3Dcomm+0x1625)[0x7f15b95a72e5]
[t2:733084] [ 6] libiPIC3Dlib.so(_ZN6iPic3D8c_Solver16CalculateMomentsEv+0x1ad)[0x7f15b9603bff]
[t2:733084] [ 7] iPIC3D(+0x13d6)[0x5649ab7fc3d6]
[t2:733084] [ 8] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x7f15b91850b3]
[t2:733084] [ 9] iPIC3D(+0x128e)[0x5649ab7fc28e]
[t2:733084] *** End of error message ***
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x7f52320470b3]
[t2:733077] [ 9] iPIC3D(+0x128e)[0x555737f5128e]
[t2:733077] *** End of error message ***
Primary job  terminated normally, but 1 process returned
a non-zero exit code. Per user-direction, the job has been aborted.

mpirun noticed that process rank 3 with PID 0 on node t2 exited on signal 11 (Segmentation fault).

If not ccmake, the error will not occur.
But a new error appears when I run
error.txt
.


Laravel 5.7 , Argument 2 passed to Symfony\Component\HttpFoundation\RedirectResponse::__construct() must be of the type integer, array given, called in

Laravel Version: 5.7
PHP Version: 7.1.9
Error
Argument 2 passed to Symfony\Component\HttpFoundation\RedirectResponse::__construct() must be of the type integer, array given, called in
After searching on internet, I found the solution that works for some people is to add a line in  App/Http/Middleware/TrustedProxies from an array, to a constant:
protected $headers = Request::HEADER_X_FORWARDED_ALL;
However it did not work for me.

How did you solve this issue?

@Dinesh-Iksula or @codepandit Did you solve this?

@Dinesh-Iksula or @codepandit Did you solve this?

My issue was solved after composer update after trying above-mentioned solution.


[skip ci]add docs and yml for advanced rackhd/files build

https://rackhd.atlassian.net/browse/RAC-4356
This PR:

Remove build: ../on-imagebuilder in *.yml files, prevent users to rebuild time costly rackhd/files when unecessary.
Add *-dev.yml contains build: ../on-imagebuilder for users to rebuild rackhd/files when ecessary.
Enhance the docs to tell when should rebuild rackhd/files  and how.
@panpan0000 @keedya @amymullins

BTW:  @changev
do you need to change docker-compose.yml to remove line ```    build: "../on-imagebuilder"

👍


Should return non-zero error code on failure

unix tools should return a non-zero error code on failure. For example, when trying to read a non-existent key, scout should return non-zero.
This allows you to do:
if value=$(scout read 'invalidKey' -I file.plist); then
   # key exists and value is something useful
else
   # key did not exist and value is empty
fi

The Pull request #77 should have resolved this. Could you validate @scriptingosx?


Update clojure to 1.9.0

Current images seem to be built with clojure 1.8.0.  Could we get that updated to 1.9.0?

@dannc You probably knew this, but just in case (and for anyone else reading who wasn't aware): The version of Clojure we install in the image is just a convenience so you don't have to download it every time. You can still use any version of Clojure you want with these images.
However, I'll be pushing a commit to update the pre-installed version to 1.9.0 shortly. Thanks for flagging!

Here's the pull request to update the official images.

Thanks @cap10morgan!  I was aware that the install of clojure in the image was as a convenience.  I was having issues still after updating the image myself to add clojure 1.9.0 but it turned out it was because my project was depending on a base project that still had a clojure 1.8.0.
Anyway, appreciate you creating an updated version and the PR to get it into dockerhub .


Add a change log

It would be very cool to be able to easily understand what was changed and how to migrate to a new versions, especially for major releases.
http://keepachangelog.com/

Added to latest version.


Fix open in portal for children of slots

Sample tree for the sake of discussion:

There's an inconsistency with 'deploymentSlots' vs 'slots' in the portal and we have to special case something. However, rather than special-case the fourth node in the tree, I'm now special-casing the third node. This ensures that openInPortal works for any child of a slot, which fixes openInPortal for the fifth node in the tree. Fixes #362

You can mark testcases as P2 or P3. But if it isn't likely to regress and isn't high pri, that's fine.

Yeah IMO the "likelihood to regress" vs "priority" doesn't make the cut for this one


42 add sweep upgrade

adds a sweep upgrade and centers it with the mouse. on click&drag the mouse will have a magenta square appear over it which will collect bits as long as they are in range.

also only works if the Bit Sweeper is purchased.

upgrade costs 15 codecashdollars

Big 👍👍👍 for the screenshots in the PR description.


Add editor iframe to homepage

Similar to what we have done for v1 site: https://github.com/casbin/casbin-website/pull/268 , but should be in a more beautiful way

@hsluoyz I would like to work on this issue

plz aasign this issue to me


SourceKitLSPTests: convert to native path spellings

Explicitly convert paths from POSIX spelling to native spelling in a number of cases.  These changes help improve the test coverage on Windows.

@swift-ci please test

@swift-ci please test


Update apt key id

The APT key fingerprint contained in this puppet module does not appear to match the sensu repo's.
This PR updates the $repo_key_id parameter in puppet-uchiwa, fixing the inconsistency.

Thanks!


Fix tests broken after adding feature flag

Resolves:
BI-7502

Closing PR to rename branch, then create a new PR.


Adding WordPress Package Link Generator

Adds WordPress plugin/theme link generation to the package name via WordPress Packagist.
Example:
| Prod Packages                                                      | Operation | Base | Target | Link |
|--------------------------------------------------------------------|-----------|------|--------|------|
| [wpackagist-plugin/jetpack](https://wordpress.org/plugins/jetpack) | Upgraded  | 13.1 | 13.9   |      |

Hi @srtfisher, thanks for your contribution! I refactored it a bit to keep the compatibility with PHP 5.3 but I noticed there is a simpler way to achieve similar goals. I'm also afraid that packages hosted elsewhere but for some reason starting with the wpackagist-plugin marker will be forced to use the same URL generator, even if hosted on github or somewhere else.
Since your solution only provides the release URL, we might as well default to the package's homepage field instead as demonstrated in #37 - feel free to check it out and let me know if that works for you.


Add Docker & Home Assistant support

Thank you for your work to date. I started on a Home Assistant integration but found it too complicated. I have containerised the great work you have done and provided some instructions on how to utilise the server from the container in Home Assistant.

Also added some changes to catch errors when calling the Battery service. Same needs to happen for locking too.

Thanks for your work! I'll add more logging and error catching in next days.
The error with communication (that you mentioned in README) occurs also without anything locking BT adapter - more interesting, it seems to happen after some uptime. I have only yeehack server on my RPi and it stops working after 1 to 2 days, but if I'm not using it, it'll work again. Very strange, so I'll add more logs and will try to debug that.


Hide main from Text.Blaze.Html5

Thanks for the patch!

Hey, can you release a new version with this patch?

It would be great if you could release a new version to Hackage that contains this fix. Please! :pray:

Uploaded!  Sorry for the delay :)

@elliottt I couldn't see a new version in hackage. Did you forget to upload?

Should be available as <IP_ADDRESS> now. Sorry about that!


jax2tf example crashes

Hi,
I was trying to get the jax2tf notebook working https://github.com/deepmind/dm-haiku/blob/main/docs/notebooks/jax2tf.ipynb
but it crashes when calculating the gradients with the following error.
SystemError                               Traceback (most recent call last)
[<ipython-input-19-8bf9ef037a2a>](https://localhost:8080/#) in <module>()
     19
     20 for step, (images, labels) in enumerate(ds_train.take(6001)):
---> 21   loss = train_step(images, labels)
     22   if step % 1000 == 0:
     23     print(f"Step {step}: {loss.numpy()}")

1 frames
[<ipython-input-19-8bf9ef037a2a>](https://localhost:8080/#) in train_step(images, labels)
     14     loss += 1e-4 * sum(map(tf.nn.l2_loss, params))
     15
---> 16   grads = tape.gradient(loss, params)
     17   opt.apply(grads, params)
     18   return loss

SystemError: <built-in function len> returned a result with an error set

Any ideas what might be causing it?

Thanks for the report, this looks like a bug in jax2tf or TensorFlow. I've created a reproducer without Haiku and submitted a bug to the JAX team, let's track it there: google/jax#10586.

Thanks for highlighting, this will be fixed in the next release of JAX (needs google/jax@eb2dbaa23051fd5f52097362f4e5e569b2d6dd1e) and Haiku (needs 89be8fa4a678e59a0178b5d5234b72d2e986f3a5).


Torque sensor

Torque sensors messages have to be modified:

Specs: rightnow it doesn´t report enough information. For example, axes amount, precision or security factor.
Torque: Units? the torque has to be reported in Nm
@ibaiape we will work together on this.

Thanks for raising this issue @izamalloa. @ahcorde, you've compiled the driver so your input is probably very helpful here.


After adding MTA attribute for NUnit Castle.Transactions.Tests passed

One down! Many more to go!

@fir3pho3nixx You probably forgot to add file TestAssemblyInfo.cs, but when I added [assembly: Apartment(ApartmentState.STA)] attribute, Castle.Transaction.Tests passed.

Correct! Let me add it. Not having CI on this is doing me. Can I raise an issue for adding appveyor?

Still cannot raise issues on this project, so I noted them down in the PR.


Allow encoded XDR of signed payment to be viewed before submitting

Would you me amenable to a PR allowing the signed transaction XDR to be viewed before submitting it? This would allow you to use the account viewer even if multi-sig is enabled (letting you copy it so you can send it to another signer).
I'm thinking possibly of some expandable section or a dialog containing the XDR that opens when you press a link.

Closes #66

Closed in https://github.com/stellar/account-viewer/pull/66


Static Page: /data/genome_stats/? or /community/genome_info/?

Need to Discuss:  URL location on dev for https://soybase.org/genome_assemblies.php
@StevenCannon-USDA and @maxglycine
I was thinking either /data/genome_stats/ or /community/genome_info

Addressed in https://github.com/soybase/jekyll-soybase/pull/24
See /resources/genome_info/ and /resources/genome_info/

That was interesting.  Inserting the yml in the page as apposed to putting it into _data.  But as a policy, I think it would be better to tell workers that all data is in _data.  Also if the list gets really long it might detract from the actual liquid code in the page.

Yeah, I'm of two minds about it. I started by putting all of the data for that page into _data/genome-info-tables/, and then moved the four little "details" tables into the front matter section -- partly just to experiment with that approach. On the one hand, putting all data into _data would be a nice simple rule; on the other hand, putting some small, page-specific data into the front matter would reduce the amount of clutter in _data. At this point, I don't feel strongly one way or the other. I'm with you on this point though: "if the list gets really long it might detract from the actual liquid code in the page." For that reason, I did put the two larger data files into _data/genome-info-tables -- actual as tsv tabular data, which is tidier in this case than yml.

Done


API Changes

This library has become somewhat popular. I expect at least one other user is actively using this project. For them/those users, we need to publish upcoming API changes.
They are not fully fleshed out yet, however, at least these two things may be affected:

When we implemented heuristics, the template parameter on watch for delay_ms may be removed.
To fully support rename events, either the event.where will be changed to a tuple or another field will be added to the event object.

This will happen before the 1.0 release.

We have a changelog.


face tracking stopped working suddenly

i was playing vrc for about 3 hours and my face tracking was working fine, but suddenly my face won't move at all. not even controller gestures work on most my ft avis.
VRCFaceTracking.txt-7_11_2024-6_36 PM.txt

ive tried uninstalling and resetting everything including osc and recalibrating my eye tracking etc.

Please seek support in the Discord, the link for which you can find here: https://docs.vrcft.io/
See the FAQ and support threads too.


KIP-709: Implement request/response for offsetFetch batching

This implements the request and response portion of KIP-709: https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=173084258. The Admin APIs will be implemented in https://github.com/apache/kafka/pull/10964.
It updates the OffsetFetch request and response to support fetching offsets for multiple consumer groups at a time. If the broker does not support the new OffsetFetch version, clients can revert to the previous behaviour and use a request for each coordinator.

@rajinisivaram Thank you for the reviews, I believe I have addressed all your comments. In the latest commit, I have also fixed some of the failing tests, as well as added additional integration tests for the request + response testing. Please take a look whenever you get a chance - thank you!

@kkonstantine This is the PR I am trying to get in time for 3.0, if you will allow for extensions.

@rajinisivaram Thank you for the reviews, I have updated the PR addressing all your comments. Whenever you get a chance, the PR is ready for review - thank you!

@skaundinya15 Thanks for the updates. Left comments about indexing of groups (starts from 0) in the tests with the change to collection in the last commit. Apart from that LGTM if tests pass.
Just pushed changes for this to fix the failing tests - thanks for pointing it out

@skaundinya15 Thanks for the PR. Test failures (KafkaMetadataLogTest.testDeleteSnapshots, RaftClusterTest.testCreateClusterAndCreateAndManyTopicsWithManyPartitions, QueryableStateIntegrationTest.shouldBeAbleToQueryFilterState) not related. Merging to trunk and 3.0.


RawArray needs a slicing operation

Operating system or device - Godot version:
Godot v2.1.beta
Issue description (what happened, and what was expected):
RawArray supports adding chunks onto the end but missed an operation to obtain a copied slice of a larger RawArray to a new (smaller) RawArray.  Of course this could be done in a loop but things like that may be a bit inefficient doing in script, especially for larger RawArray's.  C++ optimized assembly FTW.
Proposed prototype (-1 means end of the array):
RawArray RawArray.slice(start,end=-1)
Copies a slice of the original RawArray and returns a new RawArray containing the subsection, from start to end (or -1 to slice to the end).
# example to use proposed RawArray.slice
func skipN(origRaw,N):
    # returns new RawArray with first N bytes of original RawArray skipped
   return origRaw.slice(N)

If adding a bind isn't too tricky a process I could try to add this to a fork and go through the PR process.
It would be nice if there was way to make these slices without copying but I see peril in doing so.

@gau-veldt I think it was named ByteArray on the C++ side (or it is part of DVector)

I need more information about where I should be looking in the sources to add this method to RawArray since I can't even find the implementations of the currently defined methods E.g.: RawArray.append()

RawArray is called ByteArray in C++ (source).  (this is problematic and it'll be normalized in 3.0 when we break compatibility).
ByteArray is just DVector<uint8_t> (source). Other *Array types are also DVectors.
If you want to add a function you need to add it to DVector. Which means it can be available (if bound) to any of the *Array types.
Those are bound in core/variant_call.cpp here and here (you need to add it in both places, as they do different things).

That should be enough to start.

Actually I think it's already there since I've seen ByteArray.subarray in the code which is basically what a .slice() method would be doing.  The only problem is subarray() returns the same array (at different pointers) this is likely not safe to use as-is for gdscript since the following code would cause trouble:
a1=RawArray([1,2,3,5,6,7,8,9,10])
a2=RawArray.slice(2,4)   # [3,5,6]
a2.insert(1,[4])  # a2 wants to be [3,4,5,6]
a1 has now been modified
and probably contains (1,2,3,4,5,6,8,9,10)

Oh... subarray only lives in the java ByteArray :( guess this is a bust... looks complicated to make a slice method in c++ due to all the locking and copy on write semantics going on the DVector class

okay I do have to make my owqn subarray method on DVector since the subarray I spotted in the code was acutally from the java portion,

Hopefully this won't be too ugly an implementation:
    DVector<T> subarray(int p_from, int p_to) {

            if (p_from<0 || p_from>=size()) {
                    T& aux=*((T*)0); //nullreturn
                    ERR_FAIL_COND_V(p_from<0 || p_from>=size(),aux)
            }
            if (p_to<0 || p_to>=size()) {
                    T& aux=*((T*)0); //nullreturn
                    ERR_FAIL_COND_V(p_to<0 || p_to>=size(),aux)
            }

            DVector<T> slice;
            int span=1 + p_to - p_from;
            slice.resize(span);
            Read r = read();
            Write w = slice.write();
            for (int i=0; i<span; ++i) {
                    w[i] = r[p_from+i];
            }

            return slice;
    }

If this is OK I can then attempt to do the bind for RawArray.

It's in my github fork guess I need to do a PR and reference this issue.  PR is #5765

The PR includes documentation of the new method as well as handling of -1 to mean 'last element'.

I think the merging of #5879 closes this one.


Added tons of JavaDoc, fixed getDataChampion(), renamed 2 methods & added a new constructor

New: Added detailed JavaDoc for static data methods, status methods,
featured game methods and current game methods
Fix: Removed parameter "dataById" from "getDataChampion" methods (this
isn't supported for getDataChampion, only for getDataChampionList!)

Updated with the following additional changes:

New: Added constructor RiotApi(Region region) to set region without key
Change: Renamed getChallengerLeagues to getChallengerLeague and getMasterLeagues to getMasterLeague (for clarity, because they return a single League)
Improved: Added/Updated JavaDocs for all league-related methods
Fix: Fixed some JavaDocs refering to wrong objects

Out of curiosity, what would be the point of a RiotApi object without a key? You wouldn't be able to make API calls.

Good question. Question goes back to you though, since there already is a parameter-less RiotApi() constructor.
I just felt like this version of constructor was missing, when I saw the 3 existing constructors.

Hm, true. I guess that's just there if for some reason someone wants to do:
RiotApi api = new RiotApi();
api.setRegion(Region.NA);
api.setKey("API-Key");
for whatever reason.
I guess adding a constructor with just a region would add to this flexibility.
I think my original idea when adding those constructors was to just give more people control on how they wanted to write their code.

Random example to make the new constructor seem not totally useless. I don't think anyone will ever do this :laughing:
RiotApi api = new RiotApi(Region.EUW);
String endpoint = api.getEndpoint();
manuallyDoStuffWithEndpoint(endpoint);


Release/0.3.1

Opening new PR, since github doesn't allow me reopen it with force-pushed branch #51

This has been published! Thanks @chuwy


Module 2: create-stack error

I am having trouble in Module 2a Step 1, deploying the Templates.
Following this command:
aws cloudformation create-stack --stack-name MythicalMysfitsCoreStack --capabilities CAPABILITY_NAMED_IAM --template-body file://~/environment/aws-modern-application-workshop/module-2/cfn/core.yml
My stack fails to create. Looking into the details on my Cloud Formation Console, the first error is as follows:
MythicalMysfitsServiceCodeBuildServiceRole already exists
Then it triggers a rollback of the entire stack. I've tried deleting the stack and attempting to create it again, always with the same issue. I suspect I am not fully deleting it from the cloud. However, this does not explain the initial failure.

Try deleting the role manually:
aws iam delete-role --role-name Test-Role
Note that (according to https://docs.aws.amazon.com/cli/latest/reference/iam/delete-role.html):
Before you can delete a role, you must remove the role from any instance profile (remove-role-from-instance-profile), detach any managed policies (detach-role-policy) and delete any inline policies that are attached to the role (delete-role-policy).

hello @Polkendotts this issue still persists for me !!


content-api: remove content types

This PR fixes #89. I also have added a script so that we can easily update the mysql dump in this repository yarn dump:sql. Since the old dump was created with PHPMyAdmin and the new script uses mysqldump there is a big diff between both files.

Note: My bash script replaced all occurrences of ),( with ),\n( - even those which are in the database. Since there are only 2-3 articles where this happened and this .sql is only for developing I haven't fixed it (but I can do it easily, when neccesary).


Change iconset to Popicons

Swap all existing icons in the extension to ones from open source iconset Popicons.
There is possible a react import, see here:
https://github.com/uxthings/popicons
Current designs with new icons can be viewed here (currently file is a bit messy, but that shouldn't affect this issue)
Note: In the designs I use a default viewbox 24x24 for icons, and if they are rescaled, they are rescaled from that viewbox
There a few custom icons that are not in the set, and are included here:

These are some icons currently implemented that can stay (because there's no popicons version):

chevrons
"Connnected Sites" (alby with checkmark)

@MayaSatishRao go ahead

@stackingsaunter i ran the project successfully. And I don't know how to proceed further?

Also, which package is currently used for icons?

@stackingsaunter which wallet should I connect?

@MayaSatishRao hey, I don't know what you mean exactly. You can connect any way you want. It shouldn't matter in relation to the issue.
Currently we're using https://bitcoinicons.com/

Hey @MayaSatishRao , are you still working on this issue? If not, then @stackingsaunter, I would like to try tackling this good first issue.

@amitamrutiya2210 Feel free to submit a PR!


Don't underline links

Hello,
is it possible to make a link not underlined? I don't want to modify the component itself, so I'm looking for another solution.
Best regards
Benny

Use the linkAttributes attribute like this: rtLabel.linkAttributes = @{@"text-decoration":@"none"};


Implement Module#>=

ref: https://github.com/goby-lang/goby/pull/512
I don't have any idea to unify the implementation with Module#> 🙇

@kachick LGTM, but can you implement #>=, #<, #<= in the same PR?

btw plz take a look at slack

Thank you!


Update Composer dependencies (2024-06-27-00-10)

Visual regression test passed!
View the visual regression test report


set config values

Hi, I try to set crumbs_include_home and crumbs_show_hidden, but I can not get it working I tried inmy app.yml:
Innoweb\Breadcrumbs\Extensions\SiteTreeExtension:
crumbs_include_home:
- true
crumbs_show_hidden:
- false
Innoweb\Breadcrumbs\Extensions\SiteTreeExtension:
crumbs_include_home: true
crumbs_show_hidden: false

The following config should work:
Innoweb\Breadcrumbs\Extensions\SiteTreeExtension:
  crumbs_include_home: true
  crumbs_show_hidden: false

Just make sure you have the two spaces before the config values to make it correct yaml.
Can you please test this and let me know how you go?

Hej, thanks for quick relpy.
I tried it that way. 2 spaces before the variable 1 is between the colon and the value.
In thy config file I hve several other configuration parameters which work

The two spaces need to be at the start of the line (indentation). After the colon one is enough. I can't see in your comment what the formating is in your file.
Have a look at the examples on https://docs.silverstripe.org/en/4/developer_guides/configuration/configuration/ and check out the generic yaml syntax. In Silverstripe indentation in yaml uses two spaces.


Package shared libraries in appscale-common

https://ocd.appscale.com:8080/job/Daily Build/3046/

This branch is important for preventing namespace conflicts. For example, I would like to introduce a appscale.admin.constants module, but I don't want there to be any ambiguity between that constants module and the common constants module.
I will add a merge commit if/when this is approved.

https://ocd.appscale.com:8080/job/Daily Build/3079/

https://ocd.appscale.com:8080/job/Tools-test/1742/
https://ocd.appscale.com:8080/job/Blobstore/2015/


Lens hint to use (<>) to append folds

I've personally been using this rule for a while, having it helps discover this neat feature which is explained in a recent post by Gabriella Gonzalez

If you say that is valid, I'll believe you. Looks like symbol soup to me!

I'll try to explain the symbol soup:
a = [Left 0, Right 1, Left 2, Right 3]

> a ^.. traverse
[Left 0,Right 1,Left 2,Right 3]

> a ^.. traverse . _Right
[1,3]

b = traverse
c = _Right
d = _Left

> a ^.. b . c
[1,3]

> a ^.. b . d
[0,2]

> a ^.. b . c <> a ^.. b . d
[1,3,0,2]

> a ^.. b . (c <> d)
[0,1,2,3]

Also in the process of explaining it, I found that my rule has a bug 😬.. Personally I'll still use it because often when I use it I don't always care on the order of enumerated result.
So either we can revert it or add a note that it may change order of results.. Sorry for a premature PR..

I've pushed a revert. I think this is one where we definitely want perfect equivalence because:

Changing the order of a set is super subtle - it's easy to not spot until it makes it to production.
Lens uses tend to be quite fastidious about laws and properties.
If we want to encourage people to use these lens hints, it's best for them to have no downsides, which is the case of all the others.

Yeah sounds like the right thing to do.. I've learned a subtlety and will be cautious with tricky rules next time :)


Fixes for TechReborn

It crashes with:
Caused by: java.lang.NoSuchMethodError: 'net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings.create()'
        at TRANSFORMER/techreborn@5.11.9/techreborn.init.TRBlockSettings.ore(TRBlockSettings.java:160) ~[TechReborn-5.11.9_mapped_moj_1.21.jar%23390!/:?] {re:classloading}

However, it also requires Fabric Rendering Data Attachment (v1) but you can easily extract it from the original fabric-api (it will work fine):

Are you using Connector 1.21? I haven't tested TR yet but I can port the missing module if necessary

Are you using Connector 1.21?

yes


wgs converted to eov coordinates are not correct

Hi,
I try to create WGS84 to EOV converter. First I wanted to create an app that generate WGS grid coordinates to EOV coordinates.
EOV: http://spatialreference.org/ref/epsg/hd72-eov/
My code is here:
https://github.com/KAMI911/wgslas2eovlas/blob/master/gridcreator.py
I used python-pyproj                               1.8.9-1.1build2 packaged into Ubuntu/Linux Mint on 64 bit.
After I created file with EOV coordinates I tried to convert them back (and failed) to WGS with this tool:
http://pf-prg.hu/trafo/trafo-4.php?mod=0
Do you have idea what did i wrong? Or is this a bug in the software?
The output files are here:
http://ooo.itc.hu/wgseov/
Thank you in advance!

@KAMI911 Did you figure out the problem?

@micahcochran: I was able to figure out the problem. Thank you for your question.


products should be loaded in a better sort order, probably newest-first (currently oldest-first)

done
now we have a sorting option available, defaults to "BEST_SELLING"


feat: update i/o super tiles

Description

Remove CodeStream super tile component
Make Guided install tile full width
Update copy for Guided install tile

Closes https://github.com/newrelic/docs-website/issues/5365


Capital letter variables on workspace

From<EMAIL_ADDRESS>on 2011-10-21T12:18:49Z
What steps will reproduce the problem?

Any variable where its name starts with Capital letter. What is the expected output? What do you see instead? Workspace should not be case sensitive. What version of the product are you using? On what operating system? The version I am using is 1.0.3 and I am running on Windows 7.

Please provide any additional information below
. Some examples:
test -> WORKS
Test -> NO GOOD
tEST -> WORKS
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=810

From pierre.raybaut on 2011-10-21T11:05:05Z
Please upgrade your Spyder installation up to v2.0.12.
Since v1.0, a lot of options have been added to help you sort the variables shown in the Variable Explorer (the new name of the Workspace).
Status: Done


Workaround for running on SLURM

At present, fastembed throws a cryptic error about CPU affinity when running on a SLURM cluster, which I tracked down to onnxruntime. This means it is impossible to use fastembed while running on SLURM. Updating versions of everything to their latest does not help.
onnxruntime would usually get the number of threads from OMP_NUM_THREADS (I think), but that isn't set on SLURM which handles the number of threads differently.
This addition tries to figure out if we're running under SLURM, and if so sets the session options accordingly using SLURM environment variables instead. I've been assured that SURM in general disables hyperthreading, so the number of CPUs on node should be the same as the number of threads available. One thing I'm not 100% sure about is if setting intra_op_num_threads and inter_op_num_threads to the maximum allowable number is a good idea. I got decent throughput on a node with 12 CPUs, so I think it is fine.
Tested working with latest versions of onnxruntime (1.17.3) and fastembed (0.2.6) with python 3.10.10 on slurm 23.02.07

I believe setting these flags still causes ONNX Runtime to scream on some OS. Would appreciate if you can suggest an alternative path for setting these?

Sorry, I committed a slightly outdated file, onnxruntime requires the number of threads to be an integer, and os.getenv returns a string. I wrapped them in int() which should work
The other thing was that os.getenv returns None when a variable is unset. I'm sure I remember it returning an empty string, but maybe that was a long time ago. Logic is fixed now and should pass I think


Update setup.py

Fixing the key for package_data when including py.typed. Also removing python 3.6 since we dropped support awhile ago.

API change check
API changes are not detected in this pull request.


Adding a 'Scroll to top Button'

Adding a 'Scroll to Top' button will improve navigation by allowing users to quickly return to the top of long pages. This will enhance the overall user experience by making it more convenient and efficient to browse the content

please assign this issue to me for resolution or Similar one

Hi @ANSHIKA-26 I would like to add a "Scroll to Top Button" to our website. This button will appear when users scroll down and allow them to quickly return to the top of the page, enhancing navigation and user experience. Please let me know if this feature aligns with our goals.

https://github.com/ANSHIKA-26/WordWise/pull/594
done already


Using std::span for schema required and examples

Supports the following syntax for adding examples and required keys to JSON schema:
template <>
struct glz::meta<Thing>
{
   static constexpr std::array<std::string_view, 2> required = { "thing", "i" };
   static constexpr std::array<std::string_view, 1> examples = { R"({"thing":{},"i":42})" };


Can't unlock current eldrich content(not enough obtainable warp) [B19]

I can't get enough warp in the current thaumcraft beta to unlock eldrich. This poses the issue of no survival beta tests and may need to be fixed.

NVM, forgot the research table


Improve token auth

My reason:
Current implement make token expire after 24 hours, it's impossible to use with CI or automatic deploy.
I think we can let user choose token expire time or never expire with reset feature.
Use (JTW may better than origin code, any idea? @juanpicado

Yeah, sound great, but I have some thoughts here.

I guess that will add a new dependency? Am I wrong?
Does make sense put the auth plugin as an external dependency? (eg: https://github.com/verdaccio/verdaccio-plugin-auth-htpasswd) In some point has to disappear from the source code. I've been thinking on that for a while
How would looks like the yaml configuration file?
I think will help to avoid #139

Something was wrong, current implement have issue_token method but never called, just encrypt user name and password, send it to client, so it will not expire, but this may not the best way.

Right, origin dependency 'jju' will be replaced by 'jsonwebtoken'
That's possible solution, i'll look about plugin
I'm not sure

if publish as plugin, may possible configure it in yaml file and use a 'lift time' token everywhere
if rewrite auth middleware, user can generate or reset this special token from web ui and use it on CI, but login token still expired after some days for safe

Yeah, that token just encrypted user name and password, may be safe, but may make user fell uncomfortable

Yeah, I saw Auth is kinda mess.

Cool.
a) The secret key currently is stored within .sinopia-db.json and I'm not 100% sure if the token can be stored in the config file.
b) I like the UI that npm use to invalidate tokens, currently there is no way to invalidate the token.
I'm still thinking about it.

Maybe we can ship it as plugin with verdaccio, call it like verdaccio-auth3 or whatever, but not enable as default before major upgrade?
If user have not enabled this plugin, just disable the 'special token' feature in web ui (special token mean the token which will not expire, maybe a string like current secret key)

Is there anything new with that?

Ok so after some debugging sessions, I see that the token is not invalidate by time, it's just an encrypted user:password, so that means that it will behave the same way as the NPM original registry, which invalid the token when the user that issued that token is changing the password.

@idangozlan We are working on this, token for webui will expire after 24h in next minor release, npm token will not change before next major release, but it will release as a standalone plugin

This is the current status:

website login uses jsonwebtoken to generate tokens. Which is based by default on HS256 algorithm. (https://github.com/verdaccio/verdaccio/commit/d6e04be39ff9b177e33423bce87d0185392e29de)
The API cipher tokens with the algorithm AES192 (A small detail I just realised here https://github.com/verdaccio/verdaccio/pull/672/files#diff-557d175cf492b68eef32fae822415c02R45 that I pointed out we use JWT for tokens, which is wrong, we still use AES192 for API tokens)

My plan is move is generate all token based on jsonwebtoken and get rid of AES192 . Reasons:

Easy to expire tokens by demand.
Variety of algorithms to be used
It's built-in asyncronous (I might use generators here to get soome boots)
Consistence with tokens generated in the WebUI

We have to offer always backward compability, thus, AES192 should remains by default, but also, should offer such deprecation process while users move to new tokens based on jwt. The downside here is soon or later all user will have to upgrade their tokens.
Since we do not have any sort configuration specified for security I suggest the following based on what I've seen in the source code.
security:
   token:
      web: 24h # by default
      api: never # by defaukt
   algorithm: HS256 # by default

Couple of problems still are on the table:

In order to invalidate tokens, as npmjs does,  it allows the user change the password, this is not done yet in our side (https://github.com/verdaccio/verdaccio/issues/401).
It is also necesary hihglight create tokens might be really handy for many users https://github.com/verdaccio/verdaccio/issues/541
Invalidate tokens
Secret is being store in the storage and there is no way to provide custom secret key

I'm not an expert in cryptography, so, if you feel strong in this area do not desistate to contribut this discussion.

@Meeeeow and @tvb how can you create a password hash?
And does this already work the the beta docker?

@johan-smits it does not work on beta, it will be part of next major upgrade.

@juanpicado thnx for the reply.
A question what is the best practice for deploying with a CD (like Travis/Jenkins) and have protection enabled?

cc: @sergiohgz knows more about it 👍

@johan-smits I don't understand what you mean with protection enabled, please explain it or we can talk in Discord :wink:

@sergiohgz with protection enabled I ment authentication enabled.
We have fixed the issue by using: npm/npm-registry-client before the publish to "login" and retrieve a token.

@johan-smits Actually what I have is a token generated from login a user against my Verdaccio instance and saving that as environment variable across our Jenkins cluster. Your solution seems to be so great, but it don't match in my company architecture, I will try at home :wink:

Just some ideas...
I think that an Open ID connect core / jwt standard compliant infrastructure could help here to solve that properly, using a standard as docker does whould really help here. The npm registry is not in line with any standard. Applying concepts as used within Docker, see links below, could simplify that and increase interoperability significantly.
Further readings

Gitlab Docker Registry Authentication Concept
https://github.com/docker/distribution/blob/master/docs/spec/auth/token.md
https://github.com/npm/registry/blob/master/docs/user/authentication.md
https://tools.ietf.org/html/rfc7519
https://github.com/panva/node-openid-client
https://github.com/panva/node-oidc-provider

@juanpicado where is documentation about what type of expiresIn configruation file can handle? Where is documentation of what "security" section in this yaml file stands for?

@cojack there is no deep documentation yet, only https://github.com/verdaccio/verdaccio/pull/896#issue-206236761


Improve address error handling

Improve the address::Error using ideas from @sanket1729 here: https://github.com/rust-bitcoin/rust-secp256k1/issues/633
This PR is now a proof of concept for a new way of providing error types to users of the library. Specifically

Functions return specific error types that are either structs or enums where every variant is used
Modules provide a general error type that includes a variant for each of the specific error types and From impls so users of the lib can call multiple functions from a module and use ? if they do not wish to handle then specific errors.

The address module is a good module to use to test this new idea out because it is in flux anyway and is complicated enough to need multiple errors. Note also that existence of the new PayloadError should make upcoming work to hide the Payload type easier.
Notes
Since this PR introduces a new convention for error code please be picky about the small things, describe in the individual commit logs (eg, using error submodule, the import/export style).

Oh, yeah, that's a good point. I think that Error should have a new Parse variant that holds this, so that users can unify the types.

Motivated me to write this: https://github.com/rust-bitcoin/rust-secp256k1/issues/633

Suddenly, we will have an error type for each API and that can blow up. But I still think that this is the correct thing to do.

It won't actually be that much more code vs consolidating, since every error variant has to go somewhere. It'll result in more match self { and } lines mostly.
If we also implement From::from more agressively it will also add log(n) times as many From impls but that's fine, they're short.

I would think in this case the user should be defining a new error type or just using anyhow::Result. Actually now I write this only libs create error types anyway

This is definitely not true. People writing applications use real error types in their utility functons, and being forced to convert to anyhow is super annoying when rust-bitcoin already has a general enough error type to cover your use-case, the authors just didn't implement From so you can't actually use it without contortions.

Righto, I haven't fully internalised the reasoning but I'll run with it for a bit and see if it sinks in. I'll just make a macro for the from impls.

I've attempted to make the rendered HTML clearer to read. Please do nitpicky review so I can use this format for good from now.

stale


help me

Describe the bug
this error happened to me when running source prepared https://cdn.discordapp.com/attachments/1256949083789070359/1256959064097816587/Capture.PNG?ex=6682a9da&is=6681585a&hm=dcc5d8ad702ce901b00ead4c8ec95fe360669b8ad74334dbaf1910e693ad0519&

try re-downloading and recompiling

Try:

Using an older Python version (recommended: 3.11.4)
Delete the PySilon folder (the one containing the venv), it will be created again next time

Thank you for help, i appreciate it

should I close this issue?

i guess its solved so yea?


Subscription not firing on some resources (User, Login) when created with MedplumClient methods

I've been creating Users with the MedplumClient and came across an issue with Subscriptions not firing when a User resource is created.
When a User resource is created using startGoogleLogin (and possibly startNewUser), the resource is created WITHOUT a meta.project value.  It does have a project.reference value.  The getSubscriptions method in subscriptions.ts (packages/server/src/workers/subscription.ts: Line 275) is only checking for subscriptions if there is a value in meta.project field.  If no value, then no subscriptions retrieved.  If User resources is "edited" in Admin app, then a meta.project value is added to the User resource, and a subscription is triggered.
I believe this is a bug, but not certain if should be resolved in the auth/google routine  or in the subscription routine.  A quick scan of the code, suggests the project: projectId ? { reference: 'Project/' + projectId } is only used in the auth/google method, but I think it may also be used in the oauth Login routine.
My temporary solution is to modify (packages/server/src/auth/google.ts) and add: meta: projectId ? { project: projectId} : undefined, as Line 111
If additional information is needed I'm happy to provide.

Hi @bnapora - thank you for filing this.
Yes, this is unfortunately a known issue / design issue.

My temporary solution is to modify (packages/server/src/auth/google.ts) and add: meta: projectId ? { project: projectId} : undefined, as Line 111

tl;dr - I think this is a good solution, and we should make this part of the official auth/google API.

Long version:
First, for context, a User resource can be "server scoped" (sometimes called "global scoped") or "project scoped".

Server scoped / Global scoped

The same User resource can be shared across multiple projects
There is a global unique constraint on User.email at the database layer
This is the default for new users via the "Register" flow
The motivation is to enable easy SSO with multiple ProjectMembership
Signing into the app with a server-scoped User and multiple ProjectMembership leads to the "Choose Profile" UI

Project scoped

The User resource includes User.project (and indirectly User.meta.project)
The User is fully contained within the project
There is a unique constraint on (User.email, User.project)
This is the default for new "Patient" users and new "Practioner" users if and only if the Practitioner has "externalId"
The motivation behind project scoped users is to create a fully isolated white-labeled experience
Project scoped users are not intended to ever sign into the Medplum admin app

Now, with regards to subscriptions.
In general, subscriptions are project scoped, and therefore can only subscribe to resources within the same project.
Which leads to your issue.
Similar to your solution, one of the things that we have contemplated doing is ensuring that "project" is an input to all APIs that create a new user.  That way, you as the app author can always ensure that the resulting User is always project scoped.
Another option is to enable "Server scoped subscriptions".  Basically a super-admin subscription that receives events across all projects.  Despite the inherent risks, that is a sometimes necessary capability.

@codyebberson  Thanks for prompt reply.
Meta.projectId in auth/google API - should I submit a PR for this modification, or is it something you'd prefer to add through other updates?
User Scope (Server vs Project) - Your description of a "project" scoped user is what we are attempting to accomplish  (isolated white-label experience, no access to Medplum admin app.)  A couple primary considerations:

We were planning to require Google Auth (since it is also used for authorization of GCP DICOM Store assets once user is logged in.)
We also are trying to create a new Project for each new User/Practitioner.

We created a Bot that triggers on User CREATE, and then creates the Practitioner, Project and ProjectMembership resources.  The Bot successfully creates the resources, however GoogleAuth fails. I think I now understand it is because of the default "unique constraint" you described above:

There is a unique constraint on (User.email, User.project)
This is the default for new "Patient" users and new "Practioner" users if and only if the Practitioner has "externalId"

In our use case the Practitioner only has an "externalId", we don't know the ProjectId, until they authenticate, but the current GoogleAuth  fails because no ProjectID provided.  Is it possible to adjust the unique constraint to be just the GoogleAuth "User.email"?  (Presumeably, the GoogleAuth routine would then supply all ProjectMemberships for that user?)

(My other solution was to make a User part of a "management project" that is consistent, so that we can look up the memberships, and then supply the Users specific projectID to the auth workflow.)

Subscriptions - in this use case the User Subscription is to facilitate a custom Project/Practitioner creation workflow.  This seems to fall on the edge of the standard project scoped User creation process.  My vote would be to enable "Server scoped subscriptions" to enable initial "generic" User creation using external auth (eg Google Auth).  It's likely that other Resource creation use cases where multiple projects are in play would benefit from Server scoped subscriptions.


Reformat source code with black

Codecov Report

Merging #162 (a8756f8) into master (f66ac42) will not change coverage.
The diff coverage is 57.30%.


远程 debuger   改为安全方便的流操作

远程 debuger   改为安全方便的流操作

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.罗何 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.


Fixes #3374 - Curses and Net drivers don't generate click events unless mouse has not moved

Fixes

Fixes #3374

Proposed Changes/Todos

[x] Add debug spew to further diagnose
[ ] ???

Pull Request checklist:

[ ] I've named my PR in the form of "Fixes #issue. Terse description."
[ ] My code follows the style guidelines of Terminal.Gui - if you use Visual Studio, hit CTRL-K-D to automatically reformat your files before committing.
[ ] My code follows the Terminal.Gui library design guidelines
[ ] I ran dotnet test before commit
[ ] I have made corresponding changes to the API documentation (using /// style comments)
[ ] My changes generate no new warnings
[ ] I have checked my code and corrected any poor grammar or misspellings
[ ] I conducted basic QA to assure all features are working

@BDisp - I suspect you have more knowledge of this than I. Do you have any suggestions on how to address this?

The clicked event is only generated if the mouse location is the same on the buttonPressed and buttonReleased. This is the normal behavior of the clicked event. If you press the mouse button and move the mouse keeping the button pressed, when you release the button the location isn't the same and thus the clicked event isn't processed.

The clicked event is only generated if the mouse location is the same on the buttonPressed and buttonReleased. This is the normal behavior of the clicked event. If you press the mouse button and move the mouse keeping the button pressed, when you release the button the location isn't the same and thus the clicked event isn't processed.
This allows a user cancel a click event if the button was pressed and then regret do it and move the mouse to another place and release it avoiding a clicked event.

I'm not sure I love the logic you've described. It means that the user has to hold the mouse perfectly still to cause a clicked event.
However, we can debate that another day.
Please try the steps I outlined in #3374 - You'll see that even though the mouse is perfectly still, pressing the button and releasing it does not cause either driver to receive a clicked event.

Please try the steps I outlined in #3374 - You'll see that even though the mouse is perfectly still, pressing the button and releasing it does not cause either driver to receive a clicked event.

The bug is in this line. The point isn't assigned if it isn't null. In that line point must always be equal to pos.
https://github.com/gui-cs/Terminal.Gui/blob/43e4a836645036b6aa8acc148d9e714d1bf47e09/Terminal.Gui/ConsoleDrivers/EscSeqUtils/EscSeqUtils.cs#L778
To fix change to:
point = pos;

I'm not sure I love the logic you've described. It means that the user has to hold the mouse perfectly still to cause a clicked event.
However, we can debate that another day.

I hope you consider this because many app use that behavior and prevents many times when accidently press a button and avoiding the clicked after moving the mouse. If a user want to catch all the clicks he can use the ButtonPressed event.

I'm not sure I love the logic you've described. It means that the user has to hold the mouse perfectly still to cause a clicked event.
However, we can debate that another day.

I hope you consider this because many app use that behavior and prevents many times when accidently press a button and avoiding the clicked after moving the mouse. If a user want to catch all the clicks he can use the ButtonPressed event.

Lets discuss this here:

#3372

Stale. Closing.


Cuda Executions showed better results than Tensorrt of Onnx model of FlanT5-large

System Info
1. Name: optimum  Version: 1.9.1.dev0
2. Name: torch  Version: 2.0.1+cu118
3. Name: transformers Version: 4.29.2
4. Name: protobuf Version: 4.23.1

System
Ubuntu 20.04.5 LTS \n \l
GPU 0: NVIDIA GeForce GTX 1080 Ti

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Mon_Sep_13_19:13:29_PDT_2021
Cuda compilation tools, release 11.5, V11.5.50
Build cuda_11.5.r11.5/compiler.30411180_0
Python 3.9.16
ii  cudnn-local-repo-ubuntu2004-<IP_ADDRESS>                        1.0-1                                      amd64        cudnn-local repository configuration files
ii  libcudnn8                                                   <IP_ADDRESS>-1+cuda11.5                        amd64        cuDNN runtime libraries
ii  libcudnn8-dev                                               <IP_ADDRESS>-1+cuda11.5                        amd64        cuDNN development libraries and headers
ii  libcudnn8-samples                                           <IP_ADDRESS>-1+cuda11.5                        amd64        cuDNN samples

Who can help?
@JingyaHuang, @echarlaix
Information

[X] The official example scripts
[ ] My own modified scripts

Tasks

[ ] An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
[X] My own task or dataset (give details below)

Reproduction
I used https://github.com/AparnaAgrawal02/Flan-T5-inference-optimisation/blob/main/onnx_tensorrt_optimum.ipynb code to compare onnx model of Flant5 in cuda and Tensorrt execution.
output MAX len → 5
For FlanT5 large: onnx - Cuda
seq_len:  8 time:  0.0640825286056056
seq_len: 32 time:  0.06121446869590066
seq_len: 128 time: 0.0765363568007344
seq_len: 512 time: 0.12337033435551807
seq_len: 1024 time: 0.22687000939340302
ONNX + Tensorrt
output MAX len → 5
For FlanT5 large: onnx - tensorRt
seq_len:  8 time:   0.06368
seq_len: 32 time:  0.07280
seq_len: 128 time: 0.1131
seq_len: 512 time:  0.2668
seq_len: 1024 time: 0.4750
But tensorrt should work better right?
more detailed results : https://understood-casquette-cdf.notion.site/results-94e3e9f59e9d4fa8926ee13755bc2c88?pvs=4
Expected behavior
Tensorrt should work better than CUDA

Hi @AparnaAgrawal02, have you tried doing warmup first for the model using TRT Provider?

Hi @fxmarty
code i used :
`from transformers import AutoTokenizer, pipeline
from optimum.onnxruntime import ORTModelForSeq2SeqLM
import numpy as np
import onnx
model_name = "google/flan-t5-large"
model = ORTModelForSeq2SeqLM.from_pretrained(model_name,export =True, provider="TensorrtExecutionProvider")
export_dir='/home/meeami/aparna/onnx_model/'
model.save_pretrained(export_dir)
tokenizer = AutoTokenizer.from_pretrained(model_name)
text = "He never went out without a book under his arm, and he often came back with two."
#result = onnx_translation(text,max_length=520)
[{'translation_text': "Il n'est jamais sorti sans un livre sous son bras, et il est souvent revenu avec deux."}]
print(model.providers)
import tqdm
import time
seq_len = [ 512,1048]
for i in range(4):
start = time.time()
for j in tqdm.tqdm(range(100)):
start1  = time.time()
input_text =  "house "* seq_len[i]
input = tokenizer(input_text, return_tensors='pt').input_ids.cuda()
    outputs =model.generate(input, max_length=5)

    result = tokenizer.decode(outputs[0], skip_special_tokens=True)
    end1= time.time()
    print(end1-start1)
print("For Flan-T5 large: onnx:")
end = time.time()
print("seq_len: ", seq_len[i], "time: ", (end - start)/100)`

can you let me know how to use TRT Provider?

Hi, you can refer to: https://huggingface.co/docs/optimum/main/en/onnxruntime/usage_guides/gpu#tensorrt-engine-build-and-warmup. We don't actively support TRT execution provider for now, but welcome PRs that would improve its support.


Control mod_tiles settings with ansible variables

Currently, we have to manually edit apache2/tileserver.vhost.j2 template file to customize mod_tiles settings. This is a bad practice as in app because it forces the user to modify the playbook by hand rather than by simply setting ansible variables.
We should therefore update the role to allow mod_tiles parameters to be set via ansible variables.
A list of available settings will be provided in order to allow a better handling of the role.

We can now control main mod_tiles settings since https://github.com/imajing/ansible-role-openstreetmap/commit/8e335d1d971042d55a619099a8ef5854a70ab694
The list of available settings has been set into example/vars.yml
Given those facts, I'm closing this issue


fix systemd service install path

This partially reverts https://github.com/hyprwm/hypridle/commit/dad6ac14df38bd8d449677e8f998970af211b8b0
What @fufexan  suggested with ${CMAKE_INSTALL_LIBDIR}/systemd/user doesn't seem to work consistently, reverting to "lib/systemd/user" for now is 100% a better idea. It's also what https://github.com/hyprwm/xdg-desktop-portal-hyprland/blob/master/CMakeLists.txt uses, which is why I was initially also doing that instead of LIBDIR

:P


Update Makefile - lazy set for PKGS variable

Using lazy set we can run targets that don't $PKGS without requiring glide.
Lazy set is expended when variable is used, not when declared.

LGTM after merge conflicts are resolved :+1:

rebased


Kangaroo Add v1.98.1

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?

[x] Does your manifest conform to the 1.2 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

Close with reason: Duplicate of a newer PR with correct version;


Add other screen scaling modes

We currently always scale the screen in such a way that the aspect ratio is maintained, adding letterboxing if required. This might not always be what people want!

The Nez 2D framework is pretty much the gold standard for this - should probably do something like what they have. At the very least, we need an option to just disable scaling altogether and display more/less of the world if the window is bigger/smaller

One tricky thing here - if we want to have an option where there's no scaling and the backbuffer resizes to to match the window (i.e. you can see more of the world if the window is bigger), do we just ignore window_size?

Added in the 0.2 branch! I still need to add a way of switching them at runtime, but this covers all the breaking changes.


cadvisor: support pre-scrape relabelings

As per the CRD, this PR allows us to relabel metrics before scraping which gives us access to various useful labels such as node names.

Thanks so much for adding this feature, I've been looking for this functionality!


[wip] Proposal/fetchpypi generalized fetching from pypi

Motivation for this change
add a more general tool to fetch packages from pypi using fetchurl
step1 is adding the pypi.io base mirror and testing the first helper on a few packages
the next steps are adding wheel fetching and updating more packages
followup to #22256 22256
Things done

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

[ ] NixOS
[ ] macOS
[ ] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Fits CONTRIBUTING.md.

current failures are because setuptools/wheel are not implied build dependencies of pip, i beleive i should split the pr

see also https://github.com/NixOS/nixpkgs/pull/16005 by @FRidh, which introduce a buildPyPIPackage

@Mic92 thanks for the reference, i believe the 2 pull requests are orthogonal - my functions could be used as part of the functions made by @FRidh tho

I intend to merge https://github.com/NixOS/nixpkgs/pull/22345/commits/695ff0dc09b304f2e0575081c52189893c2f38bc

Though maybe more urls have to be added as @garbas wrote.

i haven't gotten around updating, i#ll try to take a look after work

@FRidh i belive this is obsolete now?

i belive this is obsolete now?

Yes, I think it is. Thanks for the proposal though!


build failed

Hello,
This project seems perfect for our usage (Robots powered by NUC with two realsense r200 camera and ROS).
But I can't manage to build this package, I get the following error:
src/vpx-image-transport/src/streamer/webm-tools.patch:103: new blank line at EOF. + vpx-image-transport/src/streamer/CMakeFiles/webm-tools.dir/build.make:98: recipe for target 'vpx-image-transport/src/streamer/third_party/webm-tools/src/webm-tools-stamp/webm-tools-patch' failed make[2]: *** [vpx-image-transport/src/streamer/third_party/webm-tools/src/webm-tools-stamp/webm-tools-patch] Error 1

The patch webm-tools-patch seems outdated, anybody knows how to fix this in a stable way?
@tingshao and @minggangw ?

It seems the patch failed due to webm-tools updated. I will update the CMakeList.txt to stick to the working version of webm-tools.

Hi,
Still cannot build successfully
ws/src/vpx-image-transport/src/vpx_publisher.cpp: In member function ‘void vpx_image_transport::VPXPublisher::configCallback(vpx_image_transport::VPXPublisher::Config&, uint32_t)’: ws/src/vpx-image-transport/src/vpx_publisher.cpp:42:8: error: ‘struct vpx_streamer::EncoderConfig’ has no member named ‘target_bitrate’    conf.target_bitrate = config.target_bitrate;         ^ vpx-image-transport/CMakeFiles/vpx_image_transport.dir/build.make:62: recipe for target 'vpx-image-transport/CMakeFiles/vpx_image_transport.dir/src/vpx_publisher.cpp.o' failed make[2]: *** [vpx-image-transport/CMakeFiles/vpx_image_transport.dir/src/vpx_publisher.cpp.o] Error 1 CMakeFiles/Makefile2:14498: recipe for target 'vpx-image-transport/CMakeFiles/vpx_image_transport.dir/all' failed make[1]: *** [vpx-image-transport/CMakeFiles/vpx_image_transport.dir/all] Error 2

I think there is still a version issue @tingshao

@doisyg a new PR may fixed your issue, please try it:
https://github.com/01org/vpx-image-transport/pull/17

Working! Thanks a lot


Yii Cookbook Fixes

The example for using Yii with the third party includes error on the last script
// legacy code
$id = (int)$_GET['id'];

// new code
require 'path/to/yii_init.php';
$post = \app\models\Post::find()->where['id' => $id];
echo Html::encode($post->title);

just fix the line $post = \app\models\Post::find()->where['id' => $id]; to $post = \app\models\Post::find()->where(['id' => $id]);

Thanks! Yii2 Cookbook is in a separate repository - https://github.com/samdark/yii2-cookbook.

Sorry, @arogachev didn't know about the separate repo, will add there next time.
Also you should add the ->all() or ->one() on the end of the statement $post = \app\models\Post::find()->where(['id' => $id]); , because  the very next line calls the
echo Html::encode($post->title);
which throws error

Unknown Property – yii\base\UnknownPropertyException
Getting unknown property: yii\db\ActiveQuery::name

@buttflattery Good catch! Updated the PR with this fix. Thanks!


Cast error on init

I've tested the library on a project of mine and I had the following error:
The following _CastError was thrown building FutureBuilder<CameraMacOSArguments?>(dirty, dependencies: [MediaQuery], state: _FutureBuilderState<CameraMacOSArguments?>#6a26b):
Null check operator used on a null value

The relevant error-causing widget was:
  FutureBuilder<CameraMacOSArguments?> FutureBuilder:file:///Users/guiguito/dev/flutter/.pub-cache/hosted/pub.dartlang.org/camera_macos-0.0.5/lib/camera_macos.dart:56:12
When the exception was thrown, this was the stack:
#0      CameraMacOSViewState.build.<anonymous closure> (package:camera_macos/camera_macos.dart:96:67)
#1      _FutureBuilderState.build (package:flutter/src/widgets/async.dart:616:55)
#2      StatefulElement.build (package:flutter/src/widgets/framework.dart:4992:27)
#3      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4878:15)
#4      StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5050:11)
#5      Element.rebuild (package:flutter/src/widgets/framework.dart:4604:5)
#6      StatefulElement.update (package:flutter/src/widgets/framework.dart:5082:5)
#7      Element.updateChild (package:flutter/src/widgets/framework.dart:3570:15)

I tried in a project from scratch with the code from your example and I get the same error. Any idea?
I took care of added the relevant keys in the plist l (NSCameraUsageDescription and NSMicrophoneUsageDescription) as well as the *.entitlements files.
I'm using macOS 13.0 ventura.
The webcam is working well anywhere else.

I found the root cause. It works on a standard macOS laptop webcam.
But it does not work on a USB plugged webcam.
The call to the initialize method returns : {error: {message: Could not find a suitable camera on this device, details: null, code: CAMERA_INITIALIZATION_ERROR}}
Is it somthing fixable?

Hi @guiguito, sorry for the late response.
Currently there's no official support for external camera devices, meaning that the package it wasn't coded with those in mind.
I'll update the README to specify it.
I need to test this missing feature with the relative equipment, once I'll get a hold on that, I could test why it isn't working.

I've managed to recover an old hd camera that can act as a webcam.
I can record videos, though I'm working on the audio part.
I've also reworked the initialization method, so that you can choose a particular device to inizialize the CameraMacOSView widget with.
You can track the progress on the external_camera_support branch. (Link)

Hi @guiguito , I've just published the 0.0.6 version of the package with new features and support for external devices.
Hope it serves you well.
I'll close this issue for now.


Rename a blob/container with snapshot will failed make a copy of the blob/container added

Storage Explorer Version: 1.8.1
Build Number: 20190510.6
Platform/OS: Windows 10 Server 2016
Architecture: ia32
Regression From:  N/A
Bug Description
Rename a blob/container with snapshot will failed with error message say not allowed, but it will create a copy of the blob/container with the expected name.
Steps to Reproduce

Create a snapshot on a blob/container
Try to rename the blob/container

Expected Experience
Rename blob/container failed with error message, and no copy blob/container added
Actual Experience
Rename a blob/container failed with error message say not allowed, but it will create a copy of the blob/container with the expected name.

Renaming blob isn't a native operation by the blob service. It's a copy+delete operation on the client side. Delete is not permitted if a blob has a snapshot. But copy is allowed.  This is why you have a new copy. If we would fix this issue, we probably need to update our error message, but it might be tricky to do.  We'll investigate more.

This won't repro anymore. Rename is no longer available in Storage Explorer for blob containers. We now offer "Clone with New Name". That operation preserves the original container, so there will be no delete that fails.


Wrong icon color when switching from base16-gruvbox-dark-hard to another

I'm using the color schemes from base16-nvim and as you can see in the first screenshot, the Lua icon is usually blue when using a catppuccin variant, however when switching from base16-gruvbox-dark-hard to catppuccin, it turns green. Any reason for this?

Hi,
Can you please try to disable the cache in opts and redo the switching?

Hello, I tried disabling the cache in opts but the issue persists. And if it makes any difference, I also deleted the cache file located in ~/.cache/nvim before retrying the color scheme switching.

Oh, sorry, I think I misunderstood the issue. Is the issue when you switch themes directly inside Neovim (like with a theme switcher or something similar), or is it when you update the colorscheme you use in your config file?

Cause I think the issue comes from the colorscheme itself:

There is no blue !
You can ignore a file by doing like so:
require('tiny-devicons-auto-colors').setup({
    ignore = {
        "lua",
    }
}

Or you can try to add a blue shade when passing the colors table.

Sorry I explained the issue very poorly.
But yup! it's when switching color schemes directly from inside Neovim.
For instance. If I start Neovim with base16-catppuccin-frappe set as my theme, the lua icon's color correctly appears as the blue declared in the theme palette,  #8caaee.

Now, if you switch the theme to base16-gruvbox-dark-hard by executing :colorscheme base16-gruvbox-dark-hard from inside Neovim, the lua icon color will update as it should to #83a598, which happens to be that theme's version of blue as far as I know. Everything works as it should up to this point.

So what happens when you switch the theme right back to base16-catppuccin-frappe? Well you end up with a lua icon color that looks nothing like the blue from the first time using base16-catppuccin-frappe, it instead looks a yellowish green, #a6d189.

Well that ain't right! You can also see that if you switch the theme to base16-gruvbox-dark-hard once again, the icon isn't the color from the first time you switched to base16-gruvbox-dark-hard, but also a yellowish green color! #b8bb26

This is all from one Neovim session btw, so no restarts between any of the theme switches during bug reproduction.
It's almost as if the plugin is comparing #83a598 from gruvbox instead of the original lua icon color to the next theme's color palette.

Thank you a lot for all this info.
I've thrown together a patch so that you can now switch themes without this bug.
In the next few days, I'll do another pass to optimize further.

Thank you a lot for all these infos.
I've thrown together a patch so that you can now switch themes without this bug. In the next few days, I'll do another pass to optimize further.

Seems like the patch fixed the original bug but may have introduced a regression.
This time, if you start Neovim with base16-gruvbox-dark-hard set as your default theme (in config file) and then switch to base16-catppuccin-frappe (by using :colorscheme base16-catppuccin-frappe), the lua icon color isn't #8caaee (as it is when the frappe is set to the default) but #51576d instead.

The same issue occurs when you set your default theme to base16-catppuccin-latte and switch to base16-gruvbox-dark-hard, as you can see in the two screenshots below.

I cannot reproduce this issue, did you enabled autoreload in your config?

I cannot reproduce this issue, did you enabled autoreload in your config?

I do have autoreload enabled.
One thing that did fix it initially was disabling event = VeryLazy, which is what is listed as default in the installation guide for Lazy.nvim.
However, disabling this event means that when you delete both cache files and then open Neovim again, the plugin will complain about missing cache, after which a cache file will be regenerated. This cache file will contain the wrong default colors (at least for lua, haven't checked for other file types but I assume they're also wrong).


Unable to change/set the attributes of individual links for a graph

When trying to change/set any attributes other than source and target the links do not change the other attributes. Following the issue to the source I think it came from the _buildLinkProps function in components/Graph/helper.js  which doesn't have the entirety of attributes for links passed in.
Only particular attributes in _buildLinkProps are set by a shared config, for example var stroke = config.link.color; and var strokeWidth = config.link.strokeWidth;.
Below is my code for setting up all of my links.
links: [
              { source: 'a', target: 'b', stroke: '#449999', strokeWidth: 5},
              { source: 'b', target: 'c', stroke: '#440099' },
              { source: 'c', target: 'a', stroke: '#449900' },
      ],

Hey @SDobrik thanks for reaching out!
First, let me ask you, are you able to replicate this issue by playing around with the rd3g configurations here?
And could you provide your full implementation so that I can have an overall perspective of your usage of rd3g?


Where are theme settings stored?

When I make changes using this plugin, where does it store them?  After I customize the Minimal theme on one computer, I want to move those customizations to my other computers. What file(s) do I need to copy over to the other computers so they will have the same customizations?
Thanks,
Phil

You closed my issue without providing any response.  Could you please answer my question?

All plugins store their settings in data.json in the relevant folder of the plugin within .obsidian — this is not specific to Minimal Theme Settings
Please use the appropriate channels for help — you can use the Obsidian forum or Discord.


Hyphens / Dashes in XSD elements are converted to underscores in AVSC

Hi @GeethanadhP
We noticed that all the Hyphens / Dashes in XSD elements are converted to underscores in AVSC.
Is this because Avro / Avsc doesn't support hyphens in the field names or any other specific reason ?

thats the only reason, most of the changes are based on support in avro & hive

Expected.
Since it is getting converted as underscores what is happening is in XML the element has hyphen and in avsc it is having underscore. So the Spark SQL is not able to recognize the element and hence adding "null" value to those elements even though there are proper valid values in those elements.

it has nothing to do with spark, xml to avro conversion should take care of that, are you sure you are getting null?, can you ping your sample xml/avsc here?

Ya xml to avro conversion will take care but as per our requirements we are not converting the xml to avro. Only the xsd is converted to avsc. That's the issue here :(

For schema evolution we are using avsc instead of xsd. But we are using XML as-is. I know it doesn't make sense. But it's the standard pattern they are following here unfortunately

As this is nothing to do with your tool I will close this issue. Thanks for your inputs anyways


HDFS-17671 Suppress callstack when adding a datanode to deadnodes

Description of PR
HDFS-17671 Suppress callstack when adding a datanode to deadnodes. These are non-fatal errors and showing callstack in the log confuses users.
How was this patch tested?
mvn package
For code changes:

[ ] Does the title or this PR starts with the corresponding JIRA issue id (e.g. 'HADOOP-17799. Your PR title ...')?
[ ] Object storage: have the integration tests been executed and the endpoint declared according to the connector-specific documentation?
[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[ ] If applicable, have you updated the LICENSE, LICENSE-binary, NOTICE-binary files?

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
0m 18s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  0s

codespell was not available.

+0 :ok:
detsecrets
0m  0s

detect-secrets was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

-1 :x:
test4tests
0m  0s

The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ trunk Compile Tests _

+1 :green_heart:
mvninstall
32m  6s

trunk passed

+1 :green_heart:
compile
0m 33s

trunk passed with JDK Ubuntu-11.0.25+9-post-Ubuntu-1ubuntu120.04

+1 :green_heart:
compile
0m 27s

trunk passed with JDK Private Build-1.8.0_432-8u432-ga~us1-0ubuntu2~20.04-ga

+1 :green_heart:
checkstyle
0m 22s

trunk passed

+1 :green_heart:
mvnsite
0m 33s

trunk passed

+1 :green_heart:
javadoc
0m 34s

trunk passed with JDK Ubuntu-11.0.25+9-post-Ubuntu-1ubuntu120.04

+1 :green_heart:
javadoc
0m 27s

trunk passed with JDK Private Build-1.8.0_432-8u432-ga~us1-0ubuntu2~20.04-ga

+1 :green_heart:
spotbugs
1m 25s

trunk passed

+1 :green_heart:
shadedclient
20m 44s

branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
0m 25s

the patch passed

+1 :green_heart:
compile
0m 28s

the patch passed with JDK Ubuntu-11.0.25+9-post-Ubuntu-1ubuntu120.04

+1 :green_heart:
javac
0m 28s

the patch passed

+1 :green_heart:
compile
0m 25s

the patch passed with JDK Private Build-1.8.0_432-8u432-ga~us1-0ubuntu2~20.04-ga

+1 :green_heart:
javac
0m 25s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

+1 :green_heart:
checkstyle
0m 12s

the patch passed

+1 :green_heart:
mvnsite
0m 29s

the patch passed

+1 :green_heart:
javadoc
0m 22s

the patch passed with JDK Ubuntu-11.0.25+9-post-Ubuntu-1ubuntu120.04

+1 :green_heart:
javadoc
0m 24s

the patch passed with JDK Private Build-1.8.0_432-8u432-ga~us1-0ubuntu2~20.04-ga

+1 :green_heart:
spotbugs
1m 26s

the patch passed

+1 :green_heart:
shadedclient
20m 34s

patch has no errors when building and testing our client artifacts.

_ Other Tests _

+1 :green_heart:
unit
1m 54s

hadoop-hdfs-client in the patch passed.

+1 :green_heart:
asflicense
0m 26s

The patch does not generate ASF License warnings.

84m 46s

Subsystem
Report/Notes

Docker
ClientAPI=1.47 ServerAPI=1.47 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7180/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/7180

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets

uname
Linux f04df75bed93 5.15.0-124-generic #134-Ubuntu SMP Fri Sep 27 20:20:17 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / ac9f8a530bc8e183afe584f22f823bbb4d72b67a

Default Java
Private Build-1.8.0_432-8u432-ga~us1-0ubuntu2~20.04-ga

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.25+9-post-Ubuntu-1ubuntu120.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_432-8u432-ga~us1-0ubuntu2~20.04-ga

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7180/1/testReport/

Max. process+thread count
560 (vs. ulimit of 5500)

modules
C: hadoop-hdfs-project/hadoop-hdfs-client U: hadoop-hdfs-project/hadoop-hdfs-client

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7180/1/console

versions
git=2.25.1 maven=3.6.3 spotbugs=4.2.2

Powered by
Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
6m 55s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  0s

codespell was not available.

+0 :ok:
detsecrets
0m  0s

detect-secrets was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

-1 :x:
test4tests
0m  0s

The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ trunk Compile Tests _

+1 :green_heart:
mvninstall
32m 45s

trunk passed

+1 :green_heart:
compile
0m 34s

trunk passed with JDK Ubuntu-11.0.25+9-post-Ubuntu-1ubuntu120.04

+1 :green_heart:
compile
0m 32s

trunk passed with JDK Private Build-1.8.0_432-8u432-ga~us1-0ubuntu2~20.04-ga

+1 :green_heart:
checkstyle
0m 22s

trunk passed

+1 :green_heart:
mvnsite
0m 35s

trunk passed

+1 :green_heart:
javadoc
0m 35s

trunk passed with JDK Ubuntu-11.0.25+9-post-Ubuntu-1ubuntu120.04

+1 :green_heart:
javadoc
0m 27s

trunk passed with JDK Private Build-1.8.0_432-8u432-ga~us1-0ubuntu2~20.04-ga

+1 :green_heart:
spotbugs
1m 25s

trunk passed

+1 :green_heart:
shadedclient
20m 59s

branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
0m 25s

the patch passed

+1 :green_heart:
compile
0m 29s

the patch passed with JDK Ubuntu-11.0.25+9-post-Ubuntu-1ubuntu120.04

+1 :green_heart:
javac
0m 29s

the patch passed

+1 :green_heart:
compile
0m 27s

the patch passed with JDK Private Build-1.8.0_432-8u432-ga~us1-0ubuntu2~20.04-ga

+1 :green_heart:
javac
0m 27s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

+1 :green_heart:
checkstyle
0m 13s

the patch passed

+1 :green_heart:
mvnsite
0m 25s

the patch passed

+1 :green_heart:
javadoc
0m 23s

the patch passed with JDK Ubuntu-11.0.25+9-post-Ubuntu-1ubuntu120.04

+1 :green_heart:
javadoc
0m 24s

the patch passed with JDK Private Build-1.8.0_432-8u432-ga~us1-0ubuntu2~20.04-ga

+1 :green_heart:
spotbugs
1m 24s

the patch passed

+1 :green_heart:
shadedclient
20m 53s

patch has no errors when building and testing our client artifacts.

_ Other Tests _

+1 :green_heart:
unit
1m 54s

hadoop-hdfs-client in the patch passed.

+1 :green_heart:
asflicense
0m 25s

The patch does not generate ASF License warnings.

92m 45s

Subsystem
Report/Notes

Docker
ClientAPI=1.47 ServerAPI=1.47 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7180/2/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/7180

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets

uname
Linux f08200ce674a 5.15.0-124-generic #134-Ubuntu SMP Fri Sep 27 20:20:17 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / ac9f8a530bc8e183afe584f22f823bbb4d72b67a

Default Java
Private Build-1.8.0_432-8u432-ga~us1-0ubuntu2~20.04-ga

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.25+9-post-Ubuntu-1ubuntu120.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_432-8u432-ga~us1-0ubuntu2~20.04-ga

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7180/2/testReport/

Max. process+thread count
554 (vs. ulimit of 5500)

modules
C: hadoop-hdfs-project/hadoop-hdfs-client U: hadoop-hdfs-project/hadoop-hdfs-client

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7180/2/console

versions
git=2.25.1 maven=3.6.3 spotbugs=4.2.2

Powered by
Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.