Symfony Console & DI

I wanted to bring your attention to a problem I've been facing over and over and that we are currently trying to solve in Piwik: using dependency injection with Symfony console.
Basically the problem is that commands need to be instantiated to be registered in Symfony's console. Because of that, using DI in commands means all the dependency graph might be created just to boot up the console, cause several issues.
With your architecture (actions instead of commands), will you be facing the same problem? If not, how do you do it ;)?
For reference:

the Symfony ticket discussing this: https://github.com/symfony/symfony/issues/12063
a possible solution that is being discussed for Piwik: https://github.com/piwik/piwik/pull/7175

With Somos' current architecture we defer the loading of dependencies until a later point. The basic idea behind somos is that you have Actions and Responders. Each Action is a callable, or actually called using call() in the container and we have a single Symfony\Console\Command that does nothing else but in its execute call a callable that triggers the InvokeAction message in the Command Bus. The InvokeAction handler then uses the call() method of the container to execute the action and subsequently the responder and at that moment dependencies are loaded.

OK, so the commands configuration/descriptions are separate from the actual code (which isn't even a "cli command" since it's just an "action). Cool!
So basically it works like HTTP routing right, except for the CLI?

It is exactly that; the basic idea behind Somos is that there is no Controller, there is no Command; there is just an Action and a Responder. The Action can be shared between the web or cli since it doesn't contain any references to the console or requests and responses; the responders can differ depending on the method communication.
But the responders are only pass-throughs to the OutputInterface or Response object; it is this seggregation of responsibilities that is Somos' Unique Selling Point as far as I am concerned


Bump identity-apps version.

Purpose
$Subject
Related PR

https://github.com/wso2/identity-apps/pull/3756
https://github.com/wso2/identity-apps/pull/3759

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/4103512950

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/4103512950
Status: failure

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/4110363596

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/4110378654

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/4110378654
Status: cancelled

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/4110363596
Status: success


Docker proxy using ports after removal of containers.

Description
[root@localhost bweston]# docker ps -a
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
[root@localhost bweston]# netstat --tcp --udp --listening --program | grep 15672
tcp6       0      0 [::]:15672              [::]:*                  LISTEN      23076/docker-proxy
[root@localhost bweston]# systemctl stop docker
[root@localhost bweston]# netstat --tcp --udp --listening --program | grep 15672
[root@localhost bweston]# systemctl start docker
[root@localhost bweston]# netstat --tcp --udp --listening --program | grep 15672
tcp6       0      0 [::]:15672              [::]:*                  LISTEN      10205/docker-proxy
[root@localhost bweston]# docker ps -a
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES

# Creating a new container with the port gives me
# ERROR: driver failed programming external connectivity on endpoint rabbitmq_1 (9255fe0bee85c10f2508ca336469145d4121b78c8bd7594d6c5bc11814bb0eab): Bind for <IP_ADDRESS>:15672 failed: port is already allocated

Steps to reproduce the issue:

Create container with port exposed.
Remove container.
Create container with port exposed and you get an error.

Describe the results you received:
Unable to start a new container with port after old container removed.
Describe the results you expected:
Being able to start a new container with port after old container removed.
Additional information you deem important (e.g. issue happens only occasionally):
Output of docker version:
Docker version 1.12.1, build 23cf638

Output of docker info:
Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 226
Server Version: 1.12.1
Storage Driver: devicemapper
 Pool Name: docker-8:3-2621441-pool
 Pool Blocksize: 65.54 kB
 Base Device Size: 10.74 GB
 Backing Filesystem: xfs
 Data file: /dev/loop0
 Metadata file: /dev/loop1
 Data Space Used: 18.58 GB
 Data Space Total: 107.4 GB
 Data Space Available: 88.79 GB
 Metadata Space Used: 30.77 MB
 Metadata Space Total: 2.147 GB
 Metadata Space Available: 2.117 GB
 Thin Pool Minimum Free Space: 10.74 GB
 Udev Sync Supported: true
 Deferred Removal Enabled: false
 Deferred Deletion Enabled: false
 Deferred Deleted Device Count: 0
 Data loop file: /var/lib/docker/devicemapper/devicemapper/data
 WARNING: Usage of loopback devices is strongly discouraged for production use. Use `--storage-opt dm.thinpooldev` to specify a custom block storage device.
 Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
 Library Version: 1.02.109 (2015-09-22)
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge null host overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: seccomp
Kernel Version: 4.7.2-101.fc23.x86_64
Operating System: Fedora 23 (Workstation Edition)
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 11.53 GiB
Name: localhost.localdomain
ID: XRPK:74WN:CHAZ:RR3A:JS3J:Q7G5:EXHM:7OCD:IB5J:SMFF:YZ27:T52Q
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Username: bweston92
Registry: https://index.docker.io/v1/
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
Insecure Registries:
 <IP_ADDRESS>/8

Additional environment details (AWS, VirtualBox, physical, etc.):
Physical

@bweston92 Thanks for the report.
Can you please provide more information about the reproduction steps, how the container is started.
For example I am assuming the container has a restart policy, what is the restart policy ?

ping @bweston92

Same problem here.
Last Tuesday I had this errror. I removed all container and restarted the daemon and the problem was over.
But now it happens again. It effects two of the four running containers, which are all in the same network and connected to each other. It happens with ports 3000, 3001 and 3316.
I did following to "solve":

stop all running containers: docker stop
remove all containers: docker rm $(docker ps -aq)
remove network: docker network rm
stop daemon: sudo service docker stop
verify no ports are in use: netstat -an | egrep ":(3000|3001|3316)"
start daemon: sudo service docker start
verify no ports are in use: netstat -an | egrep ":(3000|3001|3316)"
create network: docker network create
build/start containers: docker run --restart=always ...

-p usage:
-p 3316:3306
-p <IP_ADDRESS>:3000:3000 -p <IP_ADDRESS>:3001:3001
Docker version:
Client:
 Version:      1.12.1
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   23cf638
 Built:        Thu Aug 18 05:22:43 2016
 OS/Arch:      linux/amd64

Server:
 Version:      1.12.1
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   23cf638
 Built:        Thu Aug 18 05:22:43 2016
 OS/Arch:      linux/amd64

uname -a:
Linux HP-Compaq-dc7900-Convertible-Minitower 3.13.0-96-generic #143-Ubuntu SMP Mon Aug 29 20:15:20 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

@ctammes do you have swarm mode enabled? @aboch could it be related to https://github.com/docker/docker/issues/26404 in that case?

@thaJeztah I do not think so, given in @bweston92 's docker info o/p swarm is inactive, and @ctammes is explicitly starting the containers with docker run.

@thaJeztah No, I don't have swarm mode.

Looking better at this, @bweston92's issue is a duplicate of #25981.
See https://github.com/docker/docker/issues/25981#issuecomment-254663996 for the details.

Thanks @aboch. yes. I agree. closing this. feel free to reopen it if this is not resolved after #25981 is closed.


Test issue checking new issue template

Description of defect

Dummy issue
Target(s) affected by this defect ?
n/a
Toolchain(s) (name and version) displaying this defect ?
n/a
What version of Mbed-os are you using (tag or sha) ?

n/a
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
n/a
How is this defect reproduced ?
n/a

Yey all worked correctly


Got an unexpected error while creating an app in react

PS D:\React js demo file> npx create-react-app my
Creating a new React app in D:\React js demo file\my.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
Aborting installation.
Unexpected error. Please report it as a bug:
Error: spawn UNKNOWN
at ChildProcess.spawn (node:internal/child_process:413:11)
at Object.spawn (node:child_process:713:9)
at spawn (C:\Users\harsh\AppData\Local\npm-cache_npx\c67e74de0542c87c\node_modules\cross-spawn\index.js:12:24)
at C:\Users\harsh\AppData\Local\npm-cache_npx\c67e74de0542c87c\node_modules\create-react-app\createReactApp.js:383:19
at new Promise ()
at install (C:\Users\harsh\AppData\Local\npm-cache_npx\c67e74de0542c87c\node_modules\create-react-app\createReactApp.js:334:10)
at C:\Users\harsh\AppData\Local\npm-cache_npx\c67e74de0542c87c\node_modules\create-react-app\createReactApp.js:461:16
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errno: -4094,
code: 'UNKNOWN',
syscall: 'spawn'
}
Deleting generated file... package.json
Deleting my/ from D:\React js demo file
Done.
PS D:\React js demo file>

do you know why you get errors and shet and I don't?
becos i use powerful ide with ai support with autocomplete and in depth graphical analyses
and basically that's why our code is clean as the piss of child
can i also ask why r u writing this from skratch?
u have mental problems just don't code
better yet check your iq level becos it's low

bro thank you for your nice reply
I am a beginner in javascript and react so got the error and I resolved it by myself
don't be rude if you can't help someone

could you please check and know me the reason?


Added documentation for Hybrid.ai Adapter

Added documentation for Hybrid.ai Adapter to dev-docs

released with 3.15


Exclude single-line comments from content parsing

In chatting with @kevin-bates, it was determined that we currently do not exclude commented-out code from content parsing. This PR seeks to fix that problem for single-line comments through the addition of the _get_line_without_comments function and a language-specific _comment_char variable corresponding to the character that represents the beginning of a single-line comment in that language.
Tests will also be updated to reflect this change by including commented-out environment variables in the content to be parsed.
Developer's Certificate of Origin 1.1
   By making a contribution to this project, I certify that:

   (a) The contribution was created in whole or in part by me and I
       have the right to submit it under the Apache License 2.0; or

   (b) The contribution is based upon previous work that, to the best
       of my knowledge, is covered under an appropriate open source
       license and I have the right under that license to submit that
       work with modifications, whether created in whole or in part
       by me, under the same open source license (unless I am
       permitted to submit under a different license), as indicated
       in the file; or

   (c) The contribution was provided directly to me by some other
       person who certified (a), (b) or (c) and I have not modified
       it.

   (d) I understand and agree that this project and the contribution
       are public and that a record of the contribution (including all
       personal information I submit with it, including my sign-off) is
       maintained indefinitely and may be redistributed consistent with
       this project or the open source license(s) involved.

Hmm - the failures are during the linting...
flake8 elyra
elyra/pipeline/tests/test_airflow_processor.py:17:1: H216: The unittest.mock module should be used rather than the third party mock package unless actually needed. If so, disable the H216 check in hacking config and ensure mock is declared in the project's requirements.
make: *** [Makefile:81: lint-server] Error 1

I want to say @akchinSTC dealt with this somewhere, but I'm not recalling.

Yes I vaguely remember hearing about that before too. I also just noticed I don’t have a blank line at the end of a few of the test resources, although it looks like that was how it was before so I’m not sure that’s it. But I’ll add those blank lines anyway

This looks good. Thank you. Just had the one comment about where to locate the attribute.

@kevin-bates I think you may have closed out the tab where you made the comment before submitting it. I'm guessing maybe put it in the parent class? 😄


wasteful re-compression

Hello,
I have just waited for several minutes as jobsub_submit was
re-compressing an already compressed code tarball.  It was specified
with the
--tar_file_name dropbox:///pnfs/mu2e/resilient/users/gandr/gridexport/tmp.9I7Gv1adwT/Code.tar.bz
option, and then I saw a large file named Code.tar.bz2473.tbz2 appear
in my working directory as I was waiting for the submission to
complete.
Maybe the compression step should be delegated to the user, and
jobsub_submit should not try to re-pack the user-provided file.  Just
upload it as is from its original location.
Andrei

What jobsub_lite is doing is rewriting the tarfile with the permissions modified, to prevent people putting things into cvmfs that they cannot read.
See: https://github.com/fermitools/jobsub_lite/blob/master/lib/tarfiles.py#L83
The generated tarfile is compressed just to minimize the disk required.

Can it check that the provided file has proper permissions and complain and stop if not?   Let the user fix their problems instead of trying to do this for them, as it penalizes other users.
Andrei

From: Marc Mengel @.***>
Sent: Wednesday, February 28, 2024 5:30 PM
To: fermitools/jobsub_lite
Cc: Andrei Gaponenko; Author
Subject: Re: [fermitools/jobsub_lite] wasteful re-compression (Issue #543)
[EXTERNAL] – This message is from an external sender
What jobsub_lite is doing is rewriting the tarfile with the permissions modified, to prevent people putting things into cvmfs that they cannot read.
See: https://github.com/fermitools/jobsub_lite/blob/master/lib/tarfiles.py#L83https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_fermitools_jobsub-5Flite_blob_master_lib_tarfiles.py-23L83&d=DwMFaQ&c=gRgGjJ3BkIsb5y6s49QqsA&r=O47fc5vzDTR2V_gla4Ub0Q&m=eNHRb5RZB0WGq-pxz0CUxaQqUR4TfYC28VJFDwjFQNp9QFyKJw7FSMxMh83va0ag&s=78usikqAjfXIDn0pS29hd6u3SqV-9taGJQE_evqitlI&e=
The generated tarfile is compressed just to minimize the disk required.
—
Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_fermitools_jobsub-5Flite_issues_543-23issuecomment-2D1970089983&d=DwMFaQ&c=gRgGjJ3BkIsb5y6s49QqsA&r=O47fc5vzDTR2V_gla4Ub0Q&m=eNHRb5RZB0WGq-pxz0CUxaQqUR4TfYC28VJFDwjFQNp9QFyKJw7FSMxMh83va0ag&s=CTPr_PlME8hwE1HGbGk2HlUf36P0vRLjscUcwAfGIxA&e=, or unsubscribehttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AAXVCGU7CJASTGNJBZCUTCDYV64XZAVCNFSM6AAAAABD64YGM2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZQGA4DSOJYGM&d=DwMFaQ&c=gRgGjJ3BkIsb5y6s49QqsA&r=O47fc5vzDTR2V_gla4Ub0Q&m=eNHRb5RZB0WGq-pxz0CUxaQqUR4TfYC28VJFDwjFQNp9QFyKJw7FSMxMh83va0ag&s=aU5Dw6A8r_QtPT6BL2wX6gIwg8ubXnQFBxPxuCaTDpA&e=.
You are receiving this because you authored the thread.Message ID: @.***>

Can it check that the provided file has proper permissions and complain and stop if not? Let the user fix their problems instead of trying to do this for them, as it penalizes other users. Andrei

We tried that, but users complained they were

making tarfiles of areas whose permissions they did not have permission to modify (with tardir:) ,  or
using tarfiles provided by others,
and they  found that behavior unacceptable.

Also, decompressing and reading the whole tarfile to check the permissions on everything is not significantly faster than copying it and modifying it.
Just how big is this tarfile you're sending?

Also, why are you asking that a file already in /pnfs/mu2e/resilient be re-copied to a dropbox: location, when it is already in resilient?  Just leave the dropbox: off of the front and use it where it is...

I had to run a test job and knew of a code file I could use, it happened to be in resilient.  Let's not get sidetracked by this specific example, the issue is that jobsub_submt unconditionally performs moves that are not needed for well-formed inputs, and those moves inconvenience some users.  Code tarballs can be large, in the Mu2e case many hundred MB, so rewriting them is slow.   And this re-writing was probably the root reason for the TMPDIR issue (#545).   Without re-writing code tarballs the rest of the temp files would fit into /tmp without problems.  I think it will be best to streamline job submission by removing the tarball rewrite from jobsub_submit.   It can have an option like --redo-my-tarball-just-in-case, but this "extra help" functionality may be better placed into a separate script to prepare a job submission tarball.
Andrei

From: Marc Mengel @.***>
Sent: Thursday, February 29, 2024 9:25 AM
To: fermitools/jobsub_lite
Cc: Andrei Gaponenko; Author
Subject: Re: [fermitools/jobsub_lite] wasteful re-compression (Issue #543)
[EXTERNAL] – This message is from an external sender
Also, why are you asking that a file already in /pnfs/mu2e/resilient be re-copied to a dropbox: location, when it is already in resilient? Just leave the dropbox: off of the front and use it where it is...
—
Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_fermitools_jobsub-5Flite_issues_543-23issuecomment-2D1971377531&d=DwMFaQ&c=gRgGjJ3BkIsb5y6s49QqsA&r=O47fc5vzDTR2V_gla4Ub0Q&m=xZH8ySU4mBtdnsCO1j-5w-5pPoK8OEvno-GSK-AjefCx54bob0iEfjC_GKAPcHgj&s=E0kIKVEYoV9aIBM43UrpwyPFhGGt5mK7-3no35cLWhA&e=, or unsubscribehttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AAXVCGR5SIREZLETDFSTS7LYV5D5JAVCNFSM6AAAAABD64YGM2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZRGM3TONJTGE&d=DwMFaQ&c=gRgGjJ3BkIsb5y6s49QqsA&r=O47fc5vzDTR2V_gla4Ub0Q&m=xZH8ySU4mBtdnsCO1j-5w-5pPoK8OEvno-GSK-AjefCx54bob0iEfjC_GKAPcHgj&s=ksVuRwZtR7bdHlAu9K7oSirlAzYxmMjaS8M0IcykQ3k&e=.
You are receiving this because you authored the thread.Message ID: @.***>


⚠ Bofrost.at has degraded performance

In 94ab12c, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1056 ms

Resolved: Bofrost.at performance has improved in fb4c313 after 19 minutes.


DDrawCompat has issues with Dark Secrets of Africa

I am trying to run a game Dark Secrets of Africa (obtainable from myabandonware) and it seems to have problems running on certain machines. The issue is suspected to be caused by something relating to DirectX. The experiment was done with DDrawCompat and DxWnd. The results were this:
DDrawCompat (DDC) on Win10 - crashes
DDC on Win11 - runs
DDC on Win7 - crashes
DxWnd on Win11 - crashes in fullscreen but runs windowed
DxWnd on Win10 - crashes
DxWnd on Win7 - crashes
DxWnd on WinXP - crashes in fullscreen but runs windowed
Basically you have to look at DDC only, DxWnd was here for references only. DxWnd behaviour with the game is completely same as the Windows native DirectX if I disable DxWnd's DirectX component, showing the DirectX is the problem. Now only Windows XP and Windows 11 can run the game without any of DxWnd or DDC. But since I mainly use Windows 11 and Windows 7, the former can't play video and the latter can't run at all. The crashes happen with errors such as

"The instruction xxxxxxxx referenced instruction at yyyyyyy. The memory could not be read from".
"An privileged instruction was executed at aaaaaaaa".
"An illegal instruction was executed at bbbbbbbb".

Hopefully you can see the problem and fix it.

Please upload the debug logs for Win7 and Win10.

Here you go:
win7.log
win11.log

I meant the debug logs using the ReleaseWithDebugLogs build in the debug zip file.
The win 7 logs look like they were taken from a VM, and I'm not aware of any VMs having stable WDDM drivers, so you probably won't get DDrawCompat working there.

I got the log from Windows 11. Here:
DDrawCompat-game.log

And Windows 7:
DDrawCompat-game.log

The Win7 version is apparently crashing in a driver callback that isn't even hooked by DDC (except for the logging in the debug versions). I don't really want to investigate it further as in my experience WDDM drivers in VMs are just bad, and DDC isn't really intended for VMs anyway.
The Win11 version is setting 32 bit display mode instead of 16 bit for some reason, that appears to be the primary difference compared to mine and probably the main issue. Unless I'm missing something and there is a way to run the game with 32 bit colors? I'm also a bit confused because in your first post you wrote that Win11 runs fine with DDC.

The Win7 version is apparently crashing in a driver callback that isn't even hooked by DDC (except for the logging in the debug versions). I don't really want to investigate it further as in my experience WDDM drivers in VMs are just bad, and DDC isn't really intended for VMs anyway.

I think I will pass this, if there's difficulty there's not much advantage of doing it

The Win11 version is setting 32 bit display mode instead of 16 bit for some reason, that appears to be the primary difference compared to mine and probably the main issue.

With only DxWnd, a tweak "NO EXCLUSIVE COOP LEVEL" was able to run the game. I am pretty sure that's not the problem with DDC. Also if I hook both DxWnd and DDC together and use that tweak, it doesn't run, neither does forcing 16-bit color. Apparently from other feedbacks from SF, it seems they needed to set 16bpp color in DxWnd as well while I didn't have to. So how do I force 16bpp colors in DDC?

You shouldn't have to force it. The game doesn't even enumerate supported display modes so I'm pretty sure it's just hardcoded to use 16 bit (but I'll try to debug it and confirm).
I think something else (DxWnd?) is forcing it to 32 bit colors. And sure enough I found this in your logs:
0afc 21:10:57.690   Hooking function: DefWindowProcA (C:\Windows\SYSTEM32\ntdll.dll+0x97f80 [e9,db,ee,d9,98] -> H:\Emulators\DxWnd\v2_05_83_fx3_build\dxwnd.dll+0x96e60 [8b,44,24,10,8b,4c,24,0c])
Please make sure nothing else is hooking the game and get the debug logs with just DDrawCompat.

Okay I seem to have found the problem, DxWnd was getting loaded with Window hook. Without it the game works almost fine, almost.
A problem has now emerged that when I click somewhere on the map to move the character, it is supposed to go to that place. However with DDC, it just moves one step forward, and doesn't reach there where I clicked to go. This also happened with DxWnd when Vsync was on, which fixed the flashing cursor.

I guess it needs some kind of FPS limit. Simply turning Vsync on is not enough (besides it's on by default). At 60Hz, FlipInterval=2 (30 FPS) makes it better but still stops occasionally. FlipInterval=3 (20 FPS) seems smooth. I'll see what can be done for the next version...

I think the game has some weird timing issue. It's buggy even in a WinXP WM. I guess the only reason it ever worked correctly was because CPUs were much slower when it was released.
Inserting ~20ms delay in each page flip seems to fix the movement problem. Not sure why it's needed, since the game limits its own frame rate anyway by busy waiting on QueryPerformanceCounter apparently. But I gave up trying to debug it further.
Here's a test version with 20ms delay: ddraw.zip (diff.txt compared to v0.3.1)
I guess I'll need some odd config option in a future release to apply this "fix".

I think the game has some weird timing issue. It's buggy even in a WinXP WM. I guess the only reason it ever worked correctly was because CPUs were much slower when it was released.
Inserting ~20ms delay in each page flip seems to fix the movement problem. Not sure why it's needed, since the game limits its own frame rate anyway by busy waiting on QueryPerformanceCounter apparently. But I gave up trying to debug it further.
Here's a test version with 20ms delay: ddraw.zip (diff.txt compared to v0.3.1)
I guess I'll need some odd config option in a future release to apply this "fix".

Yes this one works fine. There is no issues here.

The FpsLimiter=flipend(15) setting seems to work ok for me in v0.4.0.


:wrench: small fixes

Adding wrenches to the TOC where they were missing and some other minor fixes

/cc @BillWagner

LGTM, when the builds finish, let's :shipit:

Open Publishing Build Service: The pull request content has been published and here are some changed files links of this time:

Docset 1 - core-docs
https://review.docs.microsoft.com/en-us/dotnet/articles/csharp/whats-new?branch=pr-en-us-1153

Status: Succeeded.
Open Publishing Report.


General issues and improvments

Exit to desktop does not work
Allow ESC to exit games
Allow mouse navigation
Filter menu items by platforms (No exit in Web or Android)
Add exit on main menu
Add credits page
Add options

Merging credit and options ?
Option : Full Screen

Redo the icons

[X] Exit to desktop does not work
[ ] Allow ESC to exit games
[X] Allow mouse navigation
[X] Filter menu items by platforms (No exit in Web or Android)
[X] Add exit on main menu
[ ] Add credits page
[ ] Add options

[ ] Merging credit and options ?
[ ] Option : Full Screen

[ ] Redo the icons


Inheritance support

As I see you use structured binding for getting a fields list, but I guess it doesn't work with inheritance. For example:
 struct Characteristics {
     rfl::Field<"name", std::string> name;
     rfl::Field<"surname", std::string> surname;
 };
 struct Bart : Characteristics {};

 const Bart bart = {"Bart", "Simpson"};
 auto& [f1, f2] = bart;

Is a correct code and should work with structured binding, but I can't compile it with the write_and_read function call:
rfl/internal/to_ptr_tuple.hpp(44): error C3448: the number of identifiers must match the number of array elements or members in a structured binding declaration
At the same time, this code doesn't work with structured binding from the box:
  struct Homer : Characteristics {
      rfl::Field<"work", std::string> company_name;
  };
  const Homer homer = {"Homer", "Simpson", "Station"};
  [[maybe_unused]] auto& [f1, f2, f3] = homer; // here is an error

Do you have any plans to fix it? Inheritane is not the best invention but it is useful.

Unfortunately, there is no easy way to fix this. However, you can use rfl::Flatten instead.
https://github.com/getml/reflect-cpp/blob/main/docs/flatten_structs.md
So you could rewrite your code as follows:
  struct Homer {
      rfl::Flatten<Characteristics> characteristics;
      rfl::Field<"work", std::string> company_name;
  };
  const Homer homer = {Characteristics{"Homer", "Simpson"}, "Station"};

This would result in the following JSON string and that JSON string could also be read into your struct:
{"name":"Homer","surname":"Simpson","work":"Station"}

The problem is with inheritance and structured bindings is that structured bindings only work if only one of the structs actually contain fields.
Every non-static data member of E must be a direct member of E or the same base class of E, and must be well-formed in the context of the structured binding when named as e.name. E may not have an anonymous union member. The number of identifiers must equal the number of non-static data members. (https://en.cppreference.com/w/cpp/language/structured_binding)
So, in theory, your first example might work, but it kind of defies the point of using inheritance in the context of our library. The second example could not work. You would have to use rfl::Flatten.
I do not think we can support inheritance until there is native support for reflection in C++ and we wouldn't have to use structured bindings as a workaround.
But I will leave the issue open in the event somebody can come up with something. But don't hold your breath.

@Pennywise007 maybe inheritance is useful, but it's not the best invention. Do not inherit an implementation, but do inherit (implement) an interface.
In this case, you will end up with:
  struct Homer{
    Characteristics characteristics;
    rfl::Field<"work", std::string> company_name;
  };
  const Homer homer = {{"Homer", "Simpson"}, "Station"};
  //or
  const Homer homer = {Characteristics{"Homer", "Simpson"}, "Station"};
  [[maybe_unused]] auto& [f1, f2] = homer;

So you have type safety here, and easiness of restructuring the properties, since they are wrapped with at least {}.

It can support these aggregate initializable classes (which have empty bases). Just use aggregate-hack to recognize inheritance, see here.


adapter-auto  Default to Node.js adapter when no adapter is detected

Describe the problem
When setting up a SvelteKit project, if no adapter is specified, the project fails to run. It requires manual adapter configuration, which is time-consuming.
Describe the proposed solution
Automatically default to the Node.js adapter if no adapter is detected in the SvelteKit project setup. This simplifies the setup process and allows developers to start quickly without worrying about explicit adapter configuration.
Alternatives considered
adapter-auto/adapters.js
// List of adapters to check for. `version` is used to pin the installed adapter version and should point
// to the latest version of the adapter that is compatible with adapter-auto's current peerDependency version of SvelteKit.
export const adapters = [
	{
		name: 'Vercel',
		test: () => !!process.env.VERCEL,
		module: '@sveltejs/adapter-vercel',
		version: '2'
	},
	{
		name: 'Cloudflare Pages',
		test: () => !!process.env.CF_PAGES,
		module: '@sveltejs/adapter-cloudflare',
		version: '2'
	},
	{
		name: 'Netlify',
		test: () => !!process.env.NETLIFY,
		module: '@sveltejs/adapter-netlify',
		version: '2'
	},
	{
		name: 'Azure Static Web Apps',
		test: () => process.env.GITHUB_ACTION_REPOSITORY === 'Azure/static-web-apps-deploy',
		module: 'svelte-adapter-azure-swa',
		version: '0.13'
	},
	{
		name: 'AWS via SST',
		test: () => !!process.env.SST,
		module: 'svelte-kit-sst',
		version: '2'
	},
	{
		name: 'Node.js',
		test: () => true,
		module: '@sveltejs/adapter-node',
		version: '2'
	}
];

Importance
would make my life easier
Additional Information
No response

Duplicate of #8197


Rebase with atomic reactor

@tkdchen, @MartinBasti, @chmeliik could you PTAL?
This will be used by IIB.

Instead of doing such rebase, how about abstract the code and make a shared library for the operator manifests?

Yup, that's the goal. This is just the solution until https://projects.engineering.redhat.com/browse/CLOUDBLD-619 is done.


Tag 1.999.0 still exists in the repository

Same issue as #140207, the tag 1.999.0 is being added to the repository again. Breaking automated tools like Renovate Bot thinking that there is a new version to update.

@JacksonKearl Is there a way a GitHub action could help identify who pushed the tag and delete the tag automatically?
/cc @joaomoreno

We can id the tag and ping the creator, we don't give our Actions git write access so can't go and delete the tag automatically.

Deleted tag, added action to ping the pusher upon pushing it back to the repo. Actions dont have write access so cannot delete it themselves.


Can't resolve lib.d.ts when typescript is installed into host package

Given the following package.json file:
{
  "dependencies": {},
  "devDependencies": {
    "typescript": "^1.4.0",
    "gulp-typescript": "^2.3.0"
  }
}

The typescript package does not get installed into the ./node_modules/gulp-typescript/node_modules folder and as such the reference to to lib.d.ts file fomr host.js does not find the file.

:+1:

:+1: happens to me as well...


Improve reaction picker

Its a fixed set of default emojis right now, which works fine (and also helps promote positive reactions vs e.g. 💩 ) but it would be nice to emulate (aka rip off) something like GitHub's approach here.

💯. That's what I had in mind with the mocks -- a '+' button that pops up a grid of possible emojis, with only reactions w/ a count showing on the surface

GitHub's approach here

They only offer a fixed site like Vanguard does currently, no?
Reactions are useful for sorting by most reacted, good for automating what counts as a "moment." (e.g., homepage shows top moments from past quarter/year based on reaction count).

Confirmed working.

Heart emoji looks like 💩 in both Arc (do they use Chromium? 🤔) and Chrome.

Looks like they're ordered by most clickers now, too. 👍

(And yes.)


fail on syntax error gracefully

@rultor release, tag is 0.0.32

@rultor release, tag is 0.0.32

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

@rultor release, tag is 0.0.32

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


Select the TLS ciphers in server-preferred order

Changes to Csocket need to go  https://github.com/jimloco/Csocket


Add ECLASS links for datatype mapping

Link to Now ECLASS has mapping https://eclass.eu/support/technical-specification/data-model/datatype-to-xsd-mapping again, put to Part 3a? available again
from: https://github.com/admin-shell-io/aas-specs/issues/313
However:

the mapping is not completely consistent: REAL* are mapped to double in ECLASS recommendation but to double or float (depending on needed precision) in AAS
RATIONAL in ECLASS is mapped to float but to string in AAS (because it is "1/3")

Add text:
Note: ECLASS also proposes a mapping of IEC 61360 data types to XSD data types: https://eclass.eu/support/technical-specification/data-model/datatype-to-xsd-mapping. There are some deviations to the mapping defined in this document:

* In this document REAL is mapped to either xs:double or xs:float whereas ECLASS proposes to map it to double, only.
* In this document STRING_TRANSLATABLE is mapped to MultiLanguageText whereas ECLASS proposes to map it to a langstring.
* In this document IRI is mapped not only to xs:anyURI as proposed by ECLASS but it can also be mapped to _ReferenceElement_.
* ECLASS does not define mappings for IRDI, HTML, FILE or BLOB


Integration not changing activities inside activity group + question on PIN-authentication

After latest update to v.0.6.0 I'm unable to change activities from drop-down control. All my activities are inside activity group so old switches are not working anymore.
Version info
HA 2024.3.0
Supervisor 2024.02.1
HACS 1.34.0
Python 3.12.2
To Reproduce
Steps to reproduce the behavior:

Go to device
Select another activity from drop-down list

Expected behavior
Remote Two should change to selected new activity
** Question**
After every restart of HA a new remote two device is found asking for PIN, is this expected behavior?
Screenshots

Now, are you saying that when you select a new activity from the dropdown, the above isn't happening?

No, it does not.
In the 0.3.x version we had switches to start and stop activities. In 0.6.0 selecting a activity from drop-down should to my understanding start that activity, this does not happen. So currently in 0.6.0 I have no way to control R2 from HA.
And logs are filled with lines:
2024-03-08 13:10:29.770675 +00:00	core	ERROR	Error encountered while processing the incoming HTTP request: AuthError("Authentication error")
Regarding the ignore reconfig, if I ignore the discovered integration and restart HA the integrations does not work since I get a message "Integration requires reconfiguration" with error "Failed to set up" and as mouseover "could not authenticate". So I need to reconfigure the integration ie need to give the pin-code again.  I have only one ignored unfolded-integration in my ignored-list.

And here's the authentication-issue (repeating loglines) from HA logs:
2024-03-08 15:22:20.719 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last):   File "/usr/local/lib/python3.12/site-packages/pyUnfoldedCircleRemote/remote.py", line 1264, in update_data     data = await self._remote.get_entity_data(self._id)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/usr/local/lib/python3.12/site-packages/pyUnfoldedCircleRemote/remote.py", line 1155, in get_entity_data     await self.raise_on_error(response)   File "/usr/local/lib/python3.12/site-packages/pyUnfoldedCircleRemote/remote.py", line 416, in raise_on_error     raise HTTPError(response.status, msg) pyUnfoldedCircleRemote.remote.HTTPError: ('401 Request: NOT_AUTHORIZED Reason: Authentication error', 401)

Ok, more testing and diagnosing done, I think we know now what happens.
If you have 0.3.0 installed and update to 0.6.0 you end up with two devices under the integration, one with 1 entity and one with 24 entities. Going to any of those will show the 24 entities, you also have integration finding remote after every reboot and drop-down starting of activities does not work due authentication issue.
If you remove the integration and re-install you end up in same situation with two devices and this is where the authentication-issues occur.
Instead, you need to remove the devices from integration, then reinstall the integration. Now you get asked about the host and pin, and after that both issues are resolved. No more faulty discoveries and also the drop-down start of activities work.
Maybe the update process could use some tuning?
As an issue this is now solved.

Thanks for the extra diagnosis and I'm glad you have it working! I definitely tested the upgrade path from .3.0 but I'll reinstall it and try again. Looks like I missed something.
Any chance you have the ID of the lone entity in the other device? Or just remember what type it was?

Unfortunately no ID since I cant see it anywhere anymore. The type was the same as the present one.
About the update, I did the update from HACS, you maybe did it differently?

It was a great thought, but not quite it.

Delete current integration and redownload 0.3.1 from HACS
Restart Home Assistant and add back Unfolded Circle Remote (13 Entities as expected)
Upgrade via HACS and restart HA
Verified a single device listed with 25 entities as expected

Oh well, back to the drawing board. Thanks for the extra help.

Closing stale issue. Please open a new one if any problems still exist.


Re-hydration issues with react-intl

Reported for the first time two months ago, the issue's still there:

I started investigating this hydration issue and was about to open an issue on react-intl, but I can't reproduce on Codesandbox. It looks like something in our setup or dependencies messes up with server-side Intl, making it use a non-breaking space instead of a regular space.

The issue doesn't originates in formatjs; the library relies on the existing Intl implementation, and it turns out there's a difference between node and browsers:
On node

encodeURIComponent(new Date(1,1,1).toLocaleTimeString())
'12%3A00%3A00%E2%80%AFAM'

In browser (Chrome)

encodeURIComponent(new Date(1,1,1).toLocaleTimeString())
'12%3A00%3A00%20AM'

So Node's implementation of Intl uses an insecable space (%E2%80%AF) whereas Chrome's outputs a simple space (%20). This breaking change was introduced in 18.13 and reverted in 18.15 (see https://github.com/nodejs/node/issues/46123), so an update should resolve this issue.


xCredSSP: Vanilla server registry issue fix (Fixes #17)

Added code to fix the issue when enabling credSSP on a fresh Server installation where registry keys are not present yet.

This change is

@wickedave,
Thanks for your contribution.
To ensure that the project team has proper rights to use your work, please complete the Contribution License Agreement at https://cla.microsoft.com.
It will cover your contributions to all Microsoft-managed open source projects.
Thanks,
Microsoft Pull Request Bot

@wickedave,
Thanks for your contribution.
To ensure that the project team has proper rights to use your work, please complete the Contribution License Agreement at https://cla.microsoft.com.
It will cover your contributions to all Microsoft-managed open source projects.
Thanks,
Microsoft Pull Request Bot

@wickedave, thanks for signing the contribution license agreement. We will now validate the agreement and then the pull request.
Thanks, Microsoft Pull Request Bot

@kwirkykat  - Waiting for possible merge. I'm not sure who is the maintainer and if he receives the notification from this pull request..

@wickedave, thanks for signing the contribution license agreement. We will now validate the agreement and then the pull request.
Thanks, Microsoft Pull Request Bot

Recommended changes are now implemented


Add CLI command for showing the node's peer_addrs to example code

It would be very useful for riteraft-ng's debugging


Outdated cask: protege

Outdated cask: protege.
Info:

version: 5.0.0.
appcast url: https://github.com/protegeproject/protege-distribution/releases.atom.

Please do not run find_outdated_appcasts unless you are a maintainer.


fix(platform): absolute paths must be valid file URLs on windows #270

PR Checklist
Please check if your PR fulfills the following requirements:

[x] The commit message follows our guidelines: https://github.com/analogjs/analog/blob/main/CONTRIBUTING.md#-commit-message-guidelines
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

Which package are you modifying?

[ ] vite-angular-plugin
[ ] astro-angular
[ ] create-analog
[ ] router
[x] platform
[ ] content

What is the current behavior?

Issue Number: #270
Current implementation causes paths like the following to be passed to nitro causing unhandled error:
"C:\\analog-personal-copy\\node_modules\\@analogjs\\platform\\src\\lib/runtime/api-middleware"

What is the new behavior?
In windows rootDir and __dirname are paths with double backslashes \\.
These are replaced with forward slash /.
Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information
closes #270

I still have failing test:
    ×  nx run analog-app:test
       failed to load config from C:\Users\andrewa\Documents\ProofOfConceptApps\Analog\analog-personal-copy\apps\analog-app\vite.config.ts

        >  NX   Cannot find module '@analogjs/platform'

          Require stack:
          - C:\Users\andrewa\Documents\ProofOfConceptApps\Analog\analog-personal-copy\apps\analog-app\vite.config.ts
          - C:\Users\andrewa\Documents\ProofOfConceptApps\Analog\analog-personal-copy\node_modules\vitest\node_modules\vite\dist\node\chunks\dep-0bae2027.js
          Pass --verbose to see the stacktrace.

Not sure what that's about as '@analogjs/platform' is in package.json and installed

@AdditionAddict run this before the tests
nx build platform

This probably needs to be setup for Nx but that's a separate issue

@brandonroberts thx, this sorted it. All tests passing

@allcontributors add @AdditionAddict for code

Can I nudge for an npm beta release? 😜

Done 😄


Issue generating documentation

I am trying to generate documentation from the source files. From what I understand all that I need to do is to call makedocs(). However, I get the following error when I invoke the above API.
          _

_       _ ()_     |  A fresh approach to technical computing
()     | () ()    |  Documentation: http://docs.julialang.org
_ _   | |  __ _   |  Type "?help" for help.
| | | | | | |/ ` |  |
| | || | | | (| |  |  Version 0.5.0-dev+2440 (2016-02-01 02:22 UTC)
/ |_'|||_'_|  |  Commit 2bb94d6 (8 days old master)
|__/                   |  x86_64-apple-darwin13.4.0
julia> using Lapidary
julia> makedocs()
ERROR: MethodError: cd has no method matching cd(::Lapidary.##19#20{ASCIIString,ASCIIString,ASCIIString,Bool,Array{Tuple{Lapidary.AbstractAction,Lapidary.AbstractAction,Lapidary.AbstractAction,Vararg{Lapidary.AbstractAction}},1}}, ::Void)
Closest candidates are:
cd(::Function)
cd(::Function, ::AbstractString)
in eval(Core.#eval, Module, Any) at /Applications/Julia-0.5.0-dev-2bb94d6f99.app/Contents/Resources/julia/lib/julia/sys.dylib:-1
julia>
Am I missing something here ?

The makedocs function is designed to be run from a file (the docs/build.jl file) rather than the REPL at the moment. Base.source_dir returns nothing when run from the REPL which is the problem here. One possible solution would be to use pwd when source_dir === nothing.

I created a docs/build.jl file and ran  julia docs/build.jl. It created the build folder, css and a js file. But there is no .md file created. I was trying this for MySQL package. Here's a sample of the code comments in one of the files ...
"""
Initializes the MYSQL object. Must be called before mysql_real_connect.
Memory allocated by mysql_init can be freed with mysql_close.
"""
function mysql_init(mysqlptr::Ptr{Void})
return ccall((:mysql_init, mysql_lib),
Ptr{Void},
(Ptr{Cuchar}, ),
mysqlptr)
end

Have you followed the same structure as this repo's docs folder? Do you have a docs/src folder containing .md files that are used as templates? For example:
A docs/src/functions.md files containing
These are the docs for the MySQL package.

    {docs}
    mysql_init

...

should generate a docs/build/functions.md file containing something like
These are the docs for the MySQL package

 # **Function**

Initializes the MYSQL object. Must be called before mysql_real_connect.
Memory allocated by mysql_init can be freed with mysql_close.

...

Your build.jl file must also import MySQL for this to work, so something like
using Lapidary, MySQL

makedocs()

If mysql_init is not exported then you need to qualify it in the {docs} block with MySQL.mysql_init.
Hopefully that helps. Is there a public branch containing what you've tried so far? That might be easier for me to work out what the problem is if you've already done the steps above.

Got it. I had missed the docs/src/functions.md. Thanks.


Area PipelineCaching: reading from cache with trigger: tags: or equivalent?

Required Information
Entering this information will route you directly to the right team and expedite traction.
Question, Bug, or Feature?
I think that I'm getting cache misses because scopes are more restrictive than I want.  Is there a way I can write a cache in one git-tagged commit, and read it from a subsequent, different git-tagged commit?
Enter Task Name: CacheBeta
Environment

Server - Azure Pipelines

account<EMAIL_ADDRESS>team project name: unison-build
build definition name: aryairani.unison
build number: 13, 14

Agent - Hosted

Ubuntu 1604; macOS High Sierra

Issue Description
My task builds 3.5gb of dependencies that I would like to cache between builds.  I have the pipeline set to trigger and create a new Github Release whenever a new tag of the form release/* is pushed:
trigger:
  tags:
    include:
    - release/*

and I have the cache keyed to the build settings:
- task: CacheBeta@0
# https://docs.microsoft.com/en-us/azure/devops/pipelines/caching/
  inputs:
    path: $(Build.SourcesDirectory)/.stack-root
    key: |
      $(Agent.OS)
      $(Build.SourcesDirectory)/stack.yaml
      $(Build.SourcesDirectory)/parser-typechecker/unison-parser-typechecker.cabal
      $(Build.SourcesDirectory)/yaks/haskeline/haskeline.cabal
      $(Build.SourcesDirectory)/yaks/easytest/easytest.cabal

So when I pushed my next tag and got a cache miss, I was disappointed to realize (or at least believe) that my previously cached content was scoped to the release tag (refs/tags/release/azure11):
Total Content: 3,616.5 MB
Information, Creating a pipeline cache artifact with the following fingerprint: `Linux|YnTkbcx6XSG5w8QKnjsxURlWjg91XNCoHe0OQfxlha0=|YoewAmsrDBw/pljm4YjHwNqV/T8XgY/OG+QN8UiCySI=|jiOTJL7zJgxLuyzdsCC7iJED5GYWOYGqicTS7n/7f8Y=|xG6NWZKsMyMlH4PpmBhXoIjpgZ6ulcLhTyXEnh44h00=`
Information, Cache item created.
Information, Saved under the following scope: 2;075e5862-c0ba-4c75-ac29-34f9d3ccc1f3;refs/tags/release/azure11;aryairani/unison
Saved item.

and thus as I understand it, I couldn't help but get a cache miss when I pushed the next tag (refs/tags/release/azure12), buildId=15, even though the key fingerprint matches, as intended:
Information, Getting a pipeline cache artifact with one of the following fingerprints:
Information, Fingerprint: `Linux|YnTkbcx6XSG5w8QKnjsxURlWjg91XNCoHe0OQfxlha0=|YoewAmsrDBw/pljm4YjHwNqV/T8XgY/OG+QN8UiCySI=|jiOTJL7zJgxLuyzdsCC7iJED5GYWOYGqicTS7n/7f8Y=|xG6NWZKsMyMlH4PpmBhXoIjpgZ6ulcLhTyXEnh44h00=`
Information, There is a cache miss.

Is there a way I can trigger only for release/ tags, but have a cache that follows me from one tag to the next?

@owenhuyn

Unfortunately there's no way around that right now. We would need to somewhat redesign this going forward to make this scenario work but right now, the design is most restrictive to prevent cache contamination from malicious users.
@willsmythe , we will probably want to put this under a feature request.

I've discussed this scenario with my team and we're exploring options to make this work for you @aryairani. Thanks for reporting this and @willsmythe and I will get back to you on this.

👍

@aryairani - what does your pipeline (which triggers on release/* tags) do, and how does it differ from your normal CI pipeline? Does it essentially rebuild the commit (already built in your CI pipeline) and then produce artifacts which then get published/released somewhere?

@willsmythe Yes, exactly.

Hi @aryairani - we discussed this offline and have decided to not pursue this at the moment. But we have added a read only scope for master branch, for all the CI/PR/Fork scenarios.
Thanks.

I may have misunderstood your earlier question.  Our CI pipeline is in Travis.  We don’t run every build in Azure, but yes the goal of our Azure pipeline is to publish releases.  Moreover, the release/tag branches have different build optimizations set that we don’t want to wait for in everyday development.
Currently the only clear, free mechanism we have for publishing binaries through Azure is to attach the binaries to Github releases, which it doesn’t make sense to do on every commit.

@fadnavistanmay Any update on this? Facing the same issue and could not use caching because of the above restriction.


Use Microsoft.CodeAnalysis.Common

Apparently just swapping Microsoft.CodeAnalysis with Microsoft.CodeAnalysis.Common still builds just fine as long as we remove a dangling unused namespace.
Fixes #10

This change is

Thanks for contributing this!


Updating repo to adhere to Vonage repo-standards

Includes:

Updated README.md to include branding change image
Updated README.md to define additional support options
Added CODE_OF_CONDUCT.md
Added CONTRIBUTING.md

@marinaserranomontes This should be good to go now. Updated packages and resolved issues with build process.


Is there a way to construct the LeapFrame and get predict omitting some columns?

Hi,
I'm trying a NaiveBayes model on Spark and serializing it and using it on Mleap successfully, however I'm running into an issue where if I build the input leapFrame without every training column I get an exception saying indexOf the missing column is invalid
SEVERE: Exception while executing runnable my.class@24d873c2
java.lang.IllegalArgumentException: invalid field: point_label
	at ml.combust.mleap.core.types.StructType.indexOf(StructType.scala:194)

Not only definining them, but I need to provide a valid value since they were using an indexer
While when working with spark I could omit these training columns (ie: point_label) and spark would work just around them.
Is there a way to have Mleap ignore the missing columns?

If I pass an invalid value I get
java.util.NoSuchElementException: Unseen label: . To handle unseen labels, set handleInvalid to keep

@dvaldivia The solution to this problem is to not include the string indexer used to generate training labels in the output MLeap pipeline.
In addition, you could consider adding a reverse string indexer to the end of the pipeline so you can interpret your results better.


Run commands/queries  in background

I did make hangfire (fire and forget job), but nothing happened. For command/events execution needs context ?
Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at OpenCqrs.Dependencies.Resolver.ResolveT
at OpenCqrs.Dependencies.HandlerResolver.ResolveHandlerTHandler
at OpenCqrs.Queries.QueryProcessor.ProcessAsync[TQuery,TResult](TQuery query)

Sorry for the delay, do you have a repo I can see?

No, I can't show repo. It's private repo.
But I can create demo for you (with hangfire) if needed.

It would be good, I need a way to replicate it.

@lucabriguglia I will prepare some example for you .

Hi guys I'm closing this issue as there's not been any activity for a while.


[Hotfix] Update dockerfile to use node 14

Purpose
Fix CI/CD pipelines
Summary of Changes

Created ember-base-14 image, available in quay: https://quay.io/repository/centerforopenscience/ember-base-14
Tested resulting EOW image via docker run --rm --env 'CI=true' ember-osf-web yarn test:ember with these changes in a cloud shell

Side Effects
Ember tests only go so far, should be verified on staging before production deploy

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 72.27%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
5734

Relevant Lines:
7713

💛  - Coveralls


Issue when select no tax in transaction page

Describe the bug
When create invoice in transaction and select not tax then validation show message and not create invoice
Screenshots

https://www.berrycast.com/conversations/870b13c0-237b-51f1-bbb3-f57059cd876b


Activity Layer Context Menu Fix

Closes #1145 by removing the setTimeout previously used by LayerActivity's onContextMenu handler (originally intended to make sure we waited for the svelte selected activity/span id store to update) and instead immediately computing selected directive/span and passing that into the event. The setTimeout was causing the contextMenu object to mutate a second time outside of the normal context menu event loop which in turn caused LayerActivity to report that a new context menu event had occurred.

How was it getting passed the isRightClick() check?

How was it getting passed the isRightClick() check?

The delay in dispatching the context menu event meant that the same event that triggered the context menu gets dispatched again


Injecting views as secured proxies cause strange side effects

When adding @Secured to views, they are injected as proxies into the view provider. This causes strange side effects in the UI.

This also applies to @PreAuthorize views, which essentially renders the PreAuthorizeViewInstanceAccessControl useless.

I had this issue with my views that had @PreAuthorize on them and had to change them to @Secured to work as if I used PreAuthorize I get a class cast exception in PreInvocationAuthorizationAdviceVoter:
java.lang.ClassCastException: [[My View Class]] cannot be cast to org.aopalliance.intercept.MethodInvocation
	at org.springframework.security.access.prepost.PreInvocationAuthorizationAdviceVoter.vote(PreInvocationAuthorizationAdviceVoter.java:25) ~[spring-security-core-4.0.3.RELEASE.jar:4.0.3.RELEASE]
	at org.springframework.security.access.vote.AffirmativeBased.decide(AffirmativeBased.java:62) ~[spring-security-core-4.0.3.RELEASE.jar:4.0.3.RELEASE]
	at org.vaadin.spring.security.navigation.PreAuthorizeViewInstanceAccessControl.isAccessGranted(PreAuthorizeViewInstanceAccessControl.java:89) ~[vaadin-spring-ext-security-0.0.7-SNAPSHOT.jar:na]
	at com.vaadin.spring.navigator.SpringViewProvider.isAccessGrantedToViewInstance(SpringViewProvider.java:349) ~[vaadin-spring-1.0.0.jar:1.0.0]
	at com.vaadin.spring.navigator.SpringViewProvider.getViewFromApplicationContextAndCheckAccess(SpringViewProvider.java:313) ~[vaadin-spring-1.0.0.jar:1.0.0]
	at com.vaadin.spring.navigator.SpringViewProvider.getViewFromApplicationContext(SpringViewProvider.java:296) ~[vaadin-spring-1.0.0.jar:1.0.0]
	at com.vaadin.spring.navigator.SpringViewProvider.getView(SpringViewProvider.java:274) ~[vaadin-spring-1.0.0.jar:1.0.0]

I changed it back to Secured and it seems to work fine even though it is proxied

The problem is that the proxied views work sometimes and sometimes not. If you refresh a page with a proxied view in it, you will sometimes get an error complaining that the proxy class is not in the widgetset. This kind of behavior cannot be accepted in a real application.

Looks like CGLIB proxies work.

Yeah, mine are CGLIB as I extends a base view class. Don't seem to have any
issues unless I use @PreAuthorize
On Fri, Feb 19, 2016 at 12:10 AM Petter Holmström<EMAIL_ADDRESS>wrote:

Looks like CGLIB proxies work.
—
Reply to this email directly or view it on GitHub
https://github.com/peholmst/vaadin4spring/issues/270#issuecomment-186111592
.


Deploy to production

This deploy contains the following PRs:

Add a border between artwork metadata and partner stub when it's not for sale (#932 by @yuki24)
Do not attempt to switch a ruby version (#937 by @yuki24)
@eessex: Add view helpers and client-side article view. (#935 by @craigspaeth)
@joeyAghion: Split tests across 4 containers (#931 by @craigspaeth)
@mzikherman: Fix Dangerfile PR link and add PR authors' names (fixes #922) (#930 by @joeyAghion)

  Generated by :no_entry_sign: Danger

Congrats on the first deploy @yuki24 !!

@craigspaeth Thanks!

Ah I forgot to merge! Merging...


Sharing tooldir between several users

Just wondering if it's possible to share the same directory among several users, while each user maintains their own isolated installation (potentially different releases)?

Hi @callosciurus,
We have some documentation for doing something like that here: https://bcbio-nextgen.readthedocs.org/en/latest/contents/installation.html#local-private-bcbio-installation
as a way to keep just the code different but re-use the same tools and data. On a couple of the Harvard clusters we have one master install with the tools and the data and then just the code is different between us while we work on it. Eventually things get out of sync and someone updates the main install and we go on from there.
Practically, this might end up being more trouble than its worth, the results should remain similar between different versions of bcbio-nextgen, and you'll quickly get into situations where an old code base isn't compatible with newer tools and vice versa.
In the past when folks have asked about this, it was over concern of not getting the exact same results from version to version. We think of reproducibility as the major results being reproducible and by that standard there shouldn't be much changing from version to version.
Hope that helps, let me know if that isn't a satisfying enough answer.

Hi,
I will close this. Feel free to come again if you have further question, hopefully Rory's advice worked for you!

This was very helpful. We ended up using separate installations, since that's easier to maintain as @roryk suggested. Thanks!


Add Kubernetes 1.24 jobs

What type of PR is this?
/kind feature
What this PR does / why we need it:
Add Kubernetes 1.24 jobs.
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
xref #2010
Does this PR introduce a user-facing change?:
NONE

/assign @kron4eg

/test pull-kubeone-e2e-aws-conformance-1.24
/test pull-kubeone-e2e-aws-conformance-1.24-v1beta1
/test pull-kubeone-e2e-aws-upgrade-1.23-1.24

/approve
/lgtm


spacemacs no-window mode displays messy codes

Which operating system does the issue occur on?
ArchLinux 5.3.7-arch1-1-ARCH
If on linux, are you using X11 or Wayland?
X11, both nvidia-xrun mode and normal x11 with intel driver.

These characters are usually used for box drawing. If Alacritty wouldn't be able to handle them, they'd render as missing glyphs, but for you it looks like the shell is printing placeholders intentionally.
Have you tried this setup in other terminal emulators?

Konsole seems to yield the same as Alacritty.
Spacemacs should output "Spacemacs" at these points using box making characters.

Possibly an issue of spacemacs?

Yes, that's not unlikely. Though I'm not sure if spacemacs makes any attempt to work in no-window mode.


Assertion index >= -sizes[i] && index < sizes[i] && "index out of bounds" failed.

During the skeletonization process, The subgraph process stops at 11% with the following error:

Probably running out of GPU memory. In the config file try reducing:
max_number_components

Should be fine now. Thanks.


[GUI] Add view module details support for right panel

To be done after Module attribute is implemented in the model package in v1.2.

Closed by #68.


Inconsistent UI hiding behavior when you tap to hide as opposed to letting it hide itself

[REQUIRED] Use case description
This is on Justplayer using AndroidX Media 1.0.1 on Android 11 Stock.

When allowing the UI to hide itself, most of the UI (the video overlay) goes away, but the progress line at the bottom, the nav buttons and the taskbar remain, and then they all finally hide. This is not preferred and just makes the UI hiding process last even longer by giving it 2 steps. The entire UI should vanish in 1 step, leaving only the video.

https://user-images.githubusercontent.com/49374058/235105695-d4a08a8c-0978-4af1-9a64-97dc76c1960a.mp4

When you tap to hide the UI, the entire UI vanishes, It happens in 1 step. This is the preferred behavior and should always be how the UI is hidden.

https://user-images.githubusercontent.com/49374058/235105609-8f21b610-dd35-4513-b2f8-03ba8febdf27.mp4
Proposed solution
The entire UI should hide itself in 1 step when tapped or when allowed to hide itself. This makes the UI hide behavior more consistent. Please make the UI hide itself in 1 step when allowing the UI to hide itself. Allowing the UI to hide itself is what most people will do anyway when watching fullscreen video, so making that process happen in 1 step is important and saves the viewer from having to see the UI for more than they should have to.
Alternatives considered
N/A

Thanks for your report.
I think your opinion is valid. I would also say this to someone who says they like the current behavior more.
I actually don't think I'm going to argue about this lengthy, because it is opinionated.
As far as I remember,  the current behavior is coming from a UX engineer, not from a video engineer on the team. So there may well be arguments for this line being hidden late.  As far as I can see this is intentional.
I think if we would change this, then we would add this as an option rather than changing the current behavior. Users could then opt-in to this new behaviour. If someone wants to do a high-quality pull request that does this we would certainly look into this given the old behaviour is preserved to ensure other users are not surprised when they upgrade and the look of their app changes.

As far as I remember, the current behavior is coming from a UX engineer, not from a video engineer on the team. So there may well be arguments for this line being hidden late. As far as I can see this is intentional.

Please show this to the UX team because I think they have overlooked this behavior. The player should not hide itself more slowly than if it were tapped away. The UI should hide itself completely whether it is tapped or allowed to hide, especially considering that most users are likely to let the UI hide itself without tapping. The behavior is totally inconsistent and I don't think any UX engineer would be ok with inconsistency in their UI.

The small progress bar hides in both cases at the moment when the status bar hides. It doesn't look to me as this is an oversight but someone had to intentionally make it to behave like this.
We keep this issue open as an enhancement but I don't think we are going to do this any time soon.

The small progress bar hides in both cases at the moment when the status bar hides. It doesn't look to me as this is an oversight but someone had to intentionally make it to behave like this.

I'm sorry but that is not the issue here. The issue is that when you allow the UI to hide itself, the UI (oddly) hides in 2 steps instead of 1 step. The 1st step as you can see in the first video I uploaded, is that the video overlay hides except for the small progress bar at the bottom, and the 2nd step is that the small progress bar, navigation bar and status bar hides themselves. Therefore, the small progress bar hiding when the status bar hides is NOT the issue. The issue is that ALL of the elements on top of the video (player overlay, navigation buttons and status bar) do not hide themselves in 1 step when the player is allowed to hide itself, as opposed to tapping the UI, you get my desired result: having all the elements on top of the video hide in 1 step.
As you can see, I still have navigation buttons enabled, which I prefer, instead of using gestures. Could that be the reason why the UI doesn't fully hide itself in 1 step when left along to hide itself? Perhaps the UX team is only looking at the UI with gestures enabled rather than navigation buttons?

navigation bar and status bar hides themselves

Just to clarify - 3rd party apps are fully in control when and how these bars appear or disappear.

Just to clarify - 3rd party apps are fully in control when and how these bars appear or disappear.

Does that mean you partially fix with issue with your app?


Returned Pointer yields FormatException: Bad UTF-8 encoding?

This is probably related to dart:ffi but specifically using utf8.dart
I am using Android Studio and testing with AVD using an extremely basic C++ library built with CMake to test the ability to integrate Flutter/Dart with C/C++ libraries.
Flutter 1.15.4-pre.83 • channel master • https://github.com/flutter/flutter.git
Framework • revision ec9813a500 (2 days ago) • 2020-02-16 19:15:52 -0800
Engine • revision d60f298d9e
Tools • Dart 2.8.0 (build 2.8.0-dev.9.0 edd64e6d5c)
Here is the extern C function inlined for brevity: char* Test3(char* s) { return s; }
In my flutter plugin to the example application the relevant snippets are as follows:
// the function type is the same for dart and native in this case
    typedef test3_ffi = Pointer<Utf8> Function(Pointer<Utf8>);

// the symbol lookup resolves without issue
    final test3_ffi f3 =
        testLib
            .lookup<NativeFunction<test3_ffi>>("Test3")
            .asFunction<test3_ffi>();

// sanity check on to/from OK
    Pointer<Utf8> p = Utf8.toUtf8("Hi");
    print(Utf8.fromUtf8(p));

// function call into library OK
    Pointer<Utf8> mp = f3(p);

// Expected 2. Actual 16 ...
    int len = Utf8.strlen(mp);
    print('$len');

// throws FormatException
    String res = Utf8.fromUtf8(mp);
    print(res);

My previous tests with void function and primitive types such as int and double work perfectly fine but echoing a pointer to string appears to be missing something. The implementation of fromUtf8 relies upon the Utf8.strlen which does not return the correct length for the returned pointer. The pointer addresses differ as expected for a copied address but only p is usable after the function call.
Did I miss something stupid, is there a better way to convert/decode, is this just a bug, or all of the above?

OK so a complete rebuild seems to have resolved my issue. I'm not actually sure why but an outdated symbol table must have been cached somewhere causing the errant behavior with the pointer. Wish I had restarted the IDE before posting this ...


doc: document variables referencing schemas in code

Let's merge this before #172.

Codecov Report

Merging #174 (faddd1e) into master (e3224b1) will increase coverage by 0.00%.
Report is 1 commits behind head on master.
The diff coverage is 100.00%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files

Files
Coverage Δ

src/compile.js
99.29% <100.00%> (+<0.01%)
:arrow_up:


Add data from Vindbrukskollen

https://community.openstreetmap.org/t/verktyg-for-att-berakna-visa-och-atgarda-saker-i-osm-utifran-oppna-data/107713/92
https://community.openstreetmap.org/t/verktyg-for-att-berakna-visa-och-atgarda-saker-i-osm-utifran-oppna-data/107713/95

Mostly implemented, but missing deviations for site relations (following the tagging scheme here). That'd require handling of relationship members in relations, which isn't present yet.


Android release apk build failed with exception: execution failed for task ":processDebugManifest"

From @ashutoshagg on October 10, 2016 9:34
Execution failed for task ':processDebugManifest'.

Manifest merger failed : Attribute activity#com.facebook.FacebookActivity@theme value=(@android:st
yle/Theme.Translucent.NoTitleBar) from AndroidManifest.xml:26:184-243
is also present at [com.facebook.android:facebook-android-sdk:4.16.1] AndroidManifest.xml:32
:13-63 value=(@style/com_facebook_activity_theme).
Suggestion: add 'tools:replace="android:theme"' to  element at AndroidManifest.xml
:26:9-246 to override.

I have tried to add tools:replace="android:theme" in AndroidManifest.xml but still facing this error.
Copied from original issue: driftyco/ionic#8604

I have a similar issue due with ionic build android command, it seems to be related to the ionic native image picker plugin which generates 2 identical activity in the androidManifest.xml :
`Error: /Users/marwanmazloum/Desktop/Developpement/Cordon/mobileApp/platforms/android/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/Users/marwanmazloum/Desktop/Developpement/Cordon/mobileApp/platforms/android/AndroidManifest.xml:36:9-163 Error:
Element activity#com.synconset.MultiImageChooserActivity at AndroidManifest.xml:36:9-163 duplicated with element declared at AndroidManifest.xml:12:9-160
/Users/marwanmazloum/Desktop/Developpement/Cordon/mobileApp/platforms/android/AndroidManifest.xml Error:
Validation failed, exiting
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':processDebugManifest'.

Manifest merger failed with multiple errors, see logs

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.`

or am I wrong ?


Investigate usage of SwiftUI Preferences

Problem
Currently, we rely on custom built mechanics to pass data up the SwiftUI View hierarchy (e.g. for Validation and for data collected in Signup and Overview views).
Solution
SwiftUI has a dedicated mechanism to pass data up the view hierarchy using Preferences.
We should investigate how we could simplify the current infrastructure by using SwiftUI Preferences. This includes the following actions points:

One could replace the ValidationEngines type and introduce a mechanism for ValidationEngines to pass up a submit validation hook (e.g. a view having a submit/save/done button could collect these closures/or validation engine from it's subviews).
DataEntry views could pass up their input values using preferences. Though not sure if they are considered a "preference"(?).

Additional context
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct and Contributing Guidelines

Validation logic was moved out into SpeziValidation. See #35. PreferenceKeys were considered as a core mechanisms to move state around the view hierarchy.


Fix #1911: Enable -XfatalWarnings where we can

I did not change the examples in order to not collide with another upcoming change.

Review by @sjrd

LGTM

Refer to this link for build results (access rights to CI server needed):
https://scala-webapps.epfl.ch/jenkins/job/scalajs-pr/2186/
https://scala-webapps.epfl.ch/jenkins/job/scalajs-matrix-build/2844/
Test FAILed.

Refer to this link for build results (access rights to CI server needed):
https://scala-webapps.epfl.ch/jenkins/job/scalajs-pr/2187/
https://scala-webapps.epfl.ch/jenkins/job/scalajs-matrix-build/2845/
Test FAILed.

Refer to this link for build results (access rights to CI server needed):
https://scala-webapps.epfl.ch/jenkins/job/scalajs-pr/2184/
https://scala-webapps.epfl.ch/jenkins/job/scalajs-matrix-build/2842/
Test FAILed.

Updated

LGTM

Refer to this link for build results (access rights to CI server needed):
https://scala-webapps.epfl.ch/jenkins/job/scalajs-pr/2189/
https://scala-webapps.epfl.ch/jenkins/job/scalajs-matrix-build/2847/
Test FAILed.

Refer to this link for build results (access rights to CI server needed):
https://scala-webapps.epfl.ch/jenkins/job/scalajs-pr/2188/
https://scala-webapps.epfl.ch/jenkins/job/scalajs-matrix-build/2846/
Test FAILed.

Updated so upstream stuff can continue. I'll investigate the patmat issues separately.

Refer to this link for build results (access rights to CI server needed):
https://scala-webapps.epfl.ch/jenkins/job/scalajs-pr/2191/
https://scala-webapps.epfl.ch/jenkins/job/scalajs-matrix-build/2850/
Test PASSed.

Is this supposed to be good to merge?

Yes, if it LGTY, you can merge.

LGTM


Keyboard support

Hi,
I'm the project maintainer of sidewinderd (https://github.com/tolga9009/sidewinderd) and watched this project for a while. It looks like we're trying to solve very similar problems and I wanted to ask, if there is interest in adding keyboard support.
Gaming mice and keyboards share alot of code (macros, profiles, LEDs) and this project seems to have everything important included.
Please let me know, whether there is interest, or not.
Cheers,
Tolga

we don't have any plans for keyboards right now, simply because it's unclear what keyboards should do (or rather how a generic API to configure keyboards should look like). mice is a slightly better-defined problem, we roughly know now what we expect a generic API to look like, what features we'll expose, etc. keyboards are just a pandora's box because they don't quite have that same common denominator.

I agree, some keyboards have some unique extra features, like display. But most gaming keyboards have macros, profiles in common - every gaming keyboard has a bunch of them.
I think the current API (minus resolution / DPI) would be enough to expose basic functionality. Advanced stuff still can be done in additional user space programs or extensions / forks.
But it's okay, if there are no plans to add keyboards. Just wanted to know, thanks!

I'm closing this for now, will reopen something when we have plans for keyboards. Right now we're struggling to even find enough time for mice...


Fix deprecated API calls

[WARNING] /Users/simon/Development/jdbc/jdbc/src/main/java/jdbc.java:[206,14] setUnicodeStream(int,java.io.InputStream,int) in java.sql.PreparedStatement has been deprecated
[WARNING] /Users/simon/Development/jdbc/jdbc/src/main/java/jdbc.java:[256,20] getBigDecimal(int,int) in java.sql.CallableStatement has been deprecated
[WARNING] /Users/simon/Development/jdbc/jdbc/src/main/java/jdbc.java:[437,21] getUnicodeStream(java.lang.String) in java.sql.ResultSet has been deprecated
[WARNING] /Users/simon/Development/jdbc/jdbc/src/main/java/jdbc.java:[435,20] getBigDecimal(java.lang.String,int) in java.sql.ResultSet has been deprecated
[WARNING] /Users/simon/Development/jdbc/jdbc/src/main/java/jdbc.java:[420,21] getUnicodeStream(int) in java.sql.ResultSet has been deprecated
[WARNING] /Users/simon/Development/jdbc/jdbc/src/main/java/jdbc.java:[418,20] getBigDecimal(int,int) in java.sql.ResultSet has been deprecated
[WARNING] /Users/simon/Development/jdbc/jdbc/src/main/java/jdbc.java: /Users/simon/Development/jdbc/jdbc/src/main/java/jdbc.java uses or overrides a deprecated API that is marked for removal.
[WARNING] /Users/simon/Development/jdbc/jdbc/src/main/java/jdbc.java: Recompile with -Xlint:removal for details.
[WARNING] /Users/simon/Development/jdbc/jdbc/src/main/java/jdbc.java: /Users/simon/Development/jdbc/jdbc/src/main/java/jdbc.java uses unchecked or unsafe operations.
[WARNING] /Users/simon/Development/jdbc/jdbc/src/main/java/jdbc.java: Recompile with -Xlint:unchecked for details.

additional
[WARNING] /Users/simon/Development/jdbc/jdbc/src/main/java/jdbc.java:[192,73] Boolean(boolean) in java.lang.Boolean has been deprecated and marked for removal
[WARNING] /Users/simon/Development/jdbc/jdbc/src/main/java/jdbc.java:[193,67] Byte(byte) in java.lang.Byte has been deprecated and marked for removal
[WARNING] /Users/simon/Development/jdbc/jdbc/src/main/java/jdbc.java:[194,69] Short(short) in java.lang.Short has been deprecated and marked for removal
[WARNING] /Users/simon/Development/jdbc/jdbc/src/main/java/jdbc.java:[195,65] Integer(int) in java.lang.Integer has been deprecated and marked for removal
[WARNING] /Users/simon/Development/jdbc/jdbc/src/main/java/jdbc.java:[196,67] Long(long) in java.lang.Long has been deprecated and marked for removal
[WARNING] /Users/simon/Development/jdbc/jdbc/src/main/java/jdbc.java:[197,69] Float(float) in java.lang.Float has been deprecated and marked for removal
[WARNING] /Users/simon/Development/jdbc/jdbc/src/main/java/jdbc.java:[198,71] Double(double) in java.lang.Double has been deprecated and marked for removal
[WARNING] /Users/simon/Development/jdbc/jdbc/src/main/java/jdbc.java: /Users/simon/Development/jdbc/jdbc/src/main/java/jdbc.java uses unchecked or unsafe operations.

Remaining
[WARNING] /private/tmp/jdbc/jdbc/src/main/java/jdbc.java: /private/tmp/jdbc/jdbc/src/main/java/jdbc.java uses unchecked or unsafe operations.
[WARNING] /private/tmp/jdbc/jdbc/src/main/java/jdbc.java: Recompile with -Xlint:unchecked for details


feat(docs): proposal template drafting

Description
Thanks for contributing to the project!
Please fill out this template to help us review your changes.
Related Issue(s)
List the issue numbers related to this pull request.

e.g., Closes #1, Resolves #1  Fixes #1

Description of Changes
Provide a clear and concise description of what the pull request changes.
Breaking Changes
Describe any breaking changes and the impact.
Screenshots
If applicable, add screenshots to help explain your changes.
Related Pull Requests
If applicable, list any related pull requests.

e.g., #1, #1

Please confirm the following checks

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

@stevenj @nathanbogale
I'd like to suggest using x-order extension properties to handle UI element ordering.
This approach provides explicit ordering control while maintaining schema clarity.
Instead of relying on object property order, we can add x-order arrays at levels where ordering is critical:
{
  "properties": {
    "setup": {
      "properties": {
        "title": { ... },
        "proposer": { ... }
      },
      "x-order": ["title", "proposer"]
    }
  },
  "x-order": ["setup", "summary", "horizons", "details", "milestones", "pitch", "agreements"]
}

Benefits:

Explicit ordering control without schema restructuring
Follows JSON Schema extension conventions
Can be added only where needed
Easy to implement in Flutter with fallback behavior

Some additional details about implementing the x-order approach:

Root Level Ordering

{
  "x-order": ["setup", "summary", "horizons", "details", "milestones", "pitch", "agreements"],
  "properties": { ... }
}

Section Level Ordering

{
  "setup": {
    "x-order": ["title", "proposer"],
    "properties": {
      "title": { ... },
      "proposer": { ... }
    }
  }
}

Nested Section Ordering

{
  "proposer": {
    "x-order": ["applicant", "type", "coproposers"],
    "properties": {
      "applicant": { ... },
      "type": { ... },
      "coproposers": { ... }
    }
  }
}

Complex Section Example

{
  "summary": {
    "x-order": [
      "budget",
      "time",
      "translation",
      "problem",
      "solution",
      "supportingLinks",
      "dependencies",
      "open_source"
    ],
    "properties": {
      "budget": {
        "x-order": ["requestedFunds"],
        "properties": { ... }
      },
      "time": {
        "x-order": ["duration"],
        "properties": { ... }
      }
    }
  }
}

Array Items Ordering (for repeatable sections)

{
  "dependencies": {
    "details": {
      "items": {
        "x-order": ["name", "type", "description", "mitigationPlan"],
        "properties": { ... }
      }
    }
  }
}

Conditional Sections

{
  "translation": {
    "x-order": ["isTranslated", "originalLanguage", "translationNotes"],
    "properties": { ... },
    "dependencies": {
      "originalLanguage": ["isTranslated"],
      "translationNotes": ["isTranslated"]
    }
  }
}


Unknown software exception (0xe0434352)

Environment
Windows build number: [run "ver" at a command prompt] Microsoft Windows [Version 10.0.17763.1039]
PowerToys version: 0.18.1
PowerToy module for which you are reporting the bug (if applicable):

Steps to reproduce

Launching the app triggers the following error:
The exception unknown software exception (0xe0434352) occurred in the application at location 0x00007FFEB81D9159
The error happens during application launches via the PowerLaunch shortcut in the Windows menu. The error occurs after an update to Version v0.18.1.
Expected behavior

Expect the app to startup normally.
Actual behavior

Application is triggering an error message. Clicking through the application still opens though cannot be sure if the app is performing normally on all fronts.
Screenshots

Hi @PitbullRaven
thank you for reporting the issue.
Can you check the Event Viewer under Windows Logs -> Applications to see if there is any error reporting more information about this crash?
Thank you.

I replicated the error after clearing my events and then exported the two events that appear directly after launch and error.
PowerLauncher.txt

I see you are using Windows 10 17763 (aka 1809), PowerLauncher requires 1903.

The error happens during application launches via the PowerLaunch shortcut in the Windows menu.

Can you help me understand if the error happened starting PowerToys or running PowerLauncher.exe directly?

It's going to take a while before the PC gets updated as it is on a semi-annual channel. However, the error happens when starting PowerToys from the Windows start menu. Though I noticed it because the error happened directly after upgrading. Hadn't happened in any of the previous versions before that.

OK thank you.

Fixed in 0.19.0, please visit https://github.com/microsoft/PowerToys/releases/ for the latest release


Should all bool error flags be converted to Result<(), ~str> ?

There are places in the SDL2 api that return boolean to signal an error.  See e.g.
Render::copy.
The only reasons I can imagine to continue doing so in the Rust API are:

"Efficiency" (under the hypothetical belief that returning a boolean and checking it in the caller is more efficient than returning Ok(()) and checking that result in the caller via the result API methods,
To ease conversion from sample SDL2 code into Rust client code using rust-sdl2

I don't find either argument particularly compelling.
The main reason to use Result<(), _> instead of bool is because the must_use lint will fire and force one to do some form of error checking (even if it is only calling the ok() method or using try!).
But before going through the exercise of converting the methods that return a boolean error flag to use Result<(), ~str> instead, I thought I should check and see whether there was another reason to use this protocol that I have overlooked.

@porglezomp Are you working on this anymore? Did you make a pull request for what you found?

I'm not working on this anymore. I was unable to find any spots in the old code.

I'll close this then :)


PDF Images not displaying correctly in Firefox

I have uploaded a PDF onto my website (link below). The PDF shows fine in Chrome and Explorer, but the images are displaying blurred in Firefox. It's not just this document but every PDF file on the website.
http://www.pci-instruments.com/files/datasheet/50.pdf

Are you sure that it's fixed? Firefox 53, still having issue


error creating vxlan interface: operation not supported.

I am able to successfully create an overlay network across multiple hosts.
However when u try to start any contains in that network i get the following error
Error response from daemon: 500 Internal Server Error: subnet sandbox join failed for "<IP_ADDRESS>/24": error creating vxlan interface: operation not supported.
Any help would be much appreciated.
Some more info about environment below
docker info Containers: 5  Running: 3  Paused: 0  Stopped: 2 Images: 4 Server Version: 1.10.3 Storage Driver: overlay  Backing Filesystem: extfs Execution Driver: native-0.2 Logging Driver: json-file Plugins:   Volume: local  Network: overlay bridge null host Kernel Version: 4.4.9-v7+ Operating System: Raspbian GNU/Linux 8 (jessie) OSType: linux Architecture: armv7l CPUs: 4 Total Memory: 925.5 MiB Name: JasPi1 ID: BDPC:SYMO:F4GB:VJ7Z:4U3Y:H7YE:DJBA:HGMW:LWBA:SKNF:M4ZB:MKOO Debug mode (server): true  File Descriptors: 41  Goroutines: 73  System Time: 2016-05-10T22:30:51.508003106Z  EventsListeners: 1  Init SHA1: 0db326fc09273474242804e87e11e1d9930fb95b  Init Path: /usr/lib/docker/dockerinit  Docker Root Dir: /var/lib/docker WARNING: No swap limit support WARNING: No cpu cfs quota support WARNING: No cpu cfs period support WARNING: No cpuset support Labels:  processor=arm Cluster store: consul://<IP_ADDRESS>:8500 Cluster advertise: <IP_ADDRESS>:2375
Linux JasPi1 4.4.9-v7+ #884 SMP Fri May 6 17:28:59 BST 2016 armv7l GNU/Linux

Related: https://github.com/docker/machine/issues/2753

@jonnyshaw89 It has been detected that this issue has not received any activity in over 6 months. Can you please let us know if it is still relevant:

For a bug: do you still experience the issue with the latest version?
For a feature request: was your request appropriately answered in a later version?

Thank you!
This issue will be automatically closed in 1 week unless it is commented on.
For more information please refer to https://github.com/docker/libnetwork/issues/1926

I can remember seeing this since months.

I just now encountered this problem: starting container failed: subnet sandbox join failed for "<IP_ADDRESS>/24": error creating vxlan interface: operation not supported
I try to run a stack in swarm mode. I just started testing on our remote server and run the stack - the containers try to start but can't.
I believe it could have something to do with me changing the docker files (/var/lib/docker) to other directory in /home.

I made adjustments to the above structure:

the symlink is right under /var/lib/ (/var/lib/docker -> /home/docker/docker)
the contents of /home/docker/docker/ untouched - removed everything else
adjustment made with docker stopped, after start error still exists

Well, I found a similar issue docker machine #2753.
Could this be a kernel issue? uname -r output:
3.14.32-xxxx-grs-ipv6-64

Hello,
I have a similar issue, I don't find any solution, could somebody help me?
https://forums.docker.com/t/debian-9-error-creating-vxlan-interface-operation-not-supported/39995/2

@A34 check that you have the kernel module available and loaded

I also encountered the problem when using swarm uname -r reports
4.4.82-2.ph1
I have root access on the machine , but its not managed by me, so can you give me a hint what I have to tell the server-guys they need to change to fix this?

Not sure if this is something that has been solved or if this is just not possible on a RasPi, but I'm also getting the same issue.
network sandbox join failed: subnet sandbox join failed for "<IP_ADDRESS>/24": error creating vxlan interface: operation not supported
pi@pivault:~ $ uname -r
5.4.72-v7l+

pi@pivault:~ $ docker info
Client:
 Context:    default
 Debug Mode: false
 Plugins:
  app: Docker App (Docker Inc., v0.9.1-beta3)
  buildx: Build with BuildKit (Docker Inc., v0.5.1-docker)

Server:
 Containers: 1
  Running: 1
  Paused: 0
  Stopped: 0
 Images: 13
 Server Version: 20.10.3
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: active
  NodeID: a5h7qeaw6grxe7umq38q2jt61
  Is Manager: true
  ClusterID: nb6xwrmcmo25aje6ptqxpglwi
  Managers: 1
  Nodes: 1
  Default Address Pool: <IP_ADDRESS>/8
  SubnetSize: 24
  Data Path Port: 4789
  Orchestration:
   Task History Retention Limit: 5
  Raft:
   Snapshot Interval: 10000
   Number of Old Snapshots to Retain: 0
   Heartbeat Tick: 1
   Election Tick: 10
  Dispatcher:
   Heartbeat Period: 5 seconds
  CA Configuration:
   Expiry Duration: 3 months
   Force Rotate: 0
  Autolock Managers: false
  Root Rotation In Progress: false
  Node Address: <IP_ADDRESS>
  Manager Addresses:
   <IP_ADDRESS>:2377
 Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 269548fa27e0089a8b8278fc4fc781d7f65a939b
 runc version: ff819c7e9184c13b7c2607fe6c30ae19403a7aff
 init version: de40ad0
 Security Options:
  seccomp
   Profile: default
 Kernel Version: 5.4.72-v7l+
 Operating System: Raspbian GNU/Linux 10 (buster)
 OSType: linux
 Architecture: armv7l
 CPUs: 4
 Total Memory: 3.738GiB
 Name: pivault
 ID: 4ITK:MCKI:AER6:RVFP:KVPV:T4WX:5UNW:4MTF:OK2G:YZTJ:GSM4:KDHH
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  <IP_ADDRESS>/8
 Live Restore Enabled: false

WARNING: No memory limit support
WARNING: No swap limit support
WARNING: No kernel memory TCP limit support
WARNING: No oom kill disable support
WARNING: No blkio weight support
WARNING: No blkio weight_device support

If you are on a Raspberry Pi running Ubuntu Server 21.10 (or perhaps other versions) you may be missing the required libraries. You can install them with:
sudo apt install linux-modules-extra-raspi

sudo apt install linux-modules-extra-raspi

I'm on Debian 11 (Bullseye) (arm64) and this package not available in the Debian Repo. Is there a alternative version of the package in the debian repo?

On OpenWRT, I had to install kmod-vxlan and kmod-ipsec to resolve the network issue.

If you are on a Raspberry Pi running Ubuntu Server 21.10 (or perhaps other versions) you may be missing the required libraries. You can install them with:
sudo apt install linux-modules-extra-raspi

Thanks, I needed this for Ubuntu 22.04!
$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.2 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.2 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
...

Se você estiver em um Raspberry Pi executando o Ubuntu Server 21.10 (ou talvez outras versões), poderá estar faltando as bibliotecas necessárias. Você pode instalá-los com:
sudo apt install linux-modules-extra-raspi

você é um deus, my hero :heart:


minimal macOS version in pip wheel

I just wonder what was the reason to provide pip wheels for macOS starting from 10.9 version? It was introduced here 282fd4e6315cf0a7a5acc035dee30028bc346c72
https://github.com/Microsoft/LightGBM/blob/dc57e974c8332803cfcbcf150b9abdb6e04312a5/.travis/test.sh#L77

@guolinke Got it! Thank you!


Implement ones using trailing_zeros

The iter_ones_all_zeros benchmark improved a lot, the results for iter_ones_all_ones are too noisy on my machine to tell. Will update when I have better numbers.
Fixes #17.

I ported the benchmarks to criterion, hoping to get less noisy results. I still don't trust them, but here they are:
iter ones: all zeros/default
                        time:   [10.350 us 10.395 us 10.440 us]
                        change: [-57.692% -57.491% -57.299%] (p = 0.00 < 0.05)
                        Performance has improved.
Found 2 outliers among 100 measurements (2.00%)
  2 (2.00%) high mild

iter ones: all ones/default
                        time:   [433.47 us 433.99 us 434.56 us]
                        change: [+19.300% +21.654% +23.611%] (p = 0.00 < 0.05)
                        Performance has regressed.
Found 8 outliers among 100 measurements (8.00%)
  3 (3.00%) high mild
  5 (5.00%) high severe

iter ones: random/default
                        time:   [447.96 us 448.54 us 449.20 us]
                        change: [-83.733% -83.682% -83.634%] (p = 0.00 < 0.05)
                        Performance has improved.
Found 12 outliers among 100 measurements (12.00%)
  9 (9.00%) high mild
  3 (3.00%) high severe

The actual noise is at least 2%. The last benchmark is newly introduced and uses (uniformly) random bits. For the "all ones" benchmark, the slice-based implementation is best:
iter ones: all ones/slice directly
                        time:   [367.65 us 368.20 us 368.80 us]
                        change: [-1.6927% -1.4273% -1.1618%] (p = 0.00 < 0.05)
                        Performance has improved.
Found 11 outliers among 100 measurements (11.00%)
  8 (8.00%) high mild
  3 (3.00%) high severe

(Note that the change in performance is bogus, the code was not changed.)

Looks good to me. Sorry for the long wait, I'm not sure if there was a reason for not including this

Looks good to me. Sorry for the long wait, I'm not sure if there was a reason for not including this

I rebased it on master.

I rebased it on master.

Looks good to me.
What you think @jrraymond? If you say go I can maybe look at releasing

Looks good to me.
What you think @jrraymond? If you say go I can maybe look at releasing

lgtm as well. I don't mind releasing this morning.
I dumped the asm because I was curious to see if trailing zeroes does produce better asm and it does:
<old::Ones as core::iter::traits::iterator::Iterator>::next:
        mov     ecx, dword ptr [rdi + 32]
        mov     rsi, qword ptr [rdi]
        xor     eax, eax
.LBB8_1:
        mov     rdx, rsi
        mov     esi, ecx
        shr     ecx
        test    sil, 1
        jne     .LBB8_5
        lea     rsi, [rdx + 1]
        test    ecx, ecx
        jne     .LBB8_1
        mov     rsi, qword ptr [rdi + 24]
        test    rsi, rsi
        je      .LBB8_6
        mov     rdx, qword ptr [rdi + 16]
        add     rsi, -1
        mov     ecx, dword ptr [rdx]
        add     rdx, 4
        mov     qword ptr [rdi + 16], rdx
        mov     qword ptr [rdi + 24], rsi
        mov     rsi, qword ptr [rdi + 8]
        add     rsi, 1
        mov     qword ptr [rdi + 8], rsi
        shl     rsi, 5
        jmp     .LBB8_1
.LBB8_5:
        mov     dword ptr [rdi + 32], ecx
        lea     rax, [rdx + 1]
        mov     qword ptr [rdi], rax
        mov     eax, 1
.LBB8_6:
        ret

<new::Ones as core::iter::traits::iterator::Iterator>::next:
        mov     r8d, dword ptr [rdi + 24]
        test    r8d, r8d
        je      .LBB7_3
        mov     rdx, qword ptr [rdi]
        jmp     .LBB7_2
.LBB7_3:
        mov     rsi, qword ptr [rdi + 16]
        add     rsi, -1
        xor     eax, eax
.LBB7_4:
        cmp     rsi, -1
        je      .LBB7_5
        mov     rdx, qword ptr [rdi]
        mov     rcx, qword ptr [rdi + 8]
        mov     r8d, dword ptr [rcx]
        mov     dword ptr [rdi + 24], r8d
        add     rcx, 4
        mov     qword ptr [rdi + 8], rcx
        mov     qword ptr [rdi + 16], rsi
        add     rdx, 1
        mov     qword ptr [rdi], rdx
        add     rsi, -1
        test    r8d, r8d
        je      .LBB7_4
.LBB7_2:
        bsf     eax, r8d  // bit scan forward \o/
        lea     esi, [r8 - 1]
        and     esi, r8d
        mov     dword ptr [rdi + 24], esi
        shl     rdx, 5
        or      rdx, rax
        mov     eax, 1
        ret
.LBB7_5:
        ret

lgtm as well. I don't mind releasing this morning.
I dumped the asm because I was curious to see if trailing zeroes does produce better asm and it does:
<old::Ones as core::iter::traits::iterator::Iterator>::next:
        mov     ecx, dword ptr [rdi + 32]
        mov     rsi, qword ptr [rdi]
        xor     eax, eax
.LBB8_1:
        mov     rdx, rsi
        mov     esi, ecx
        shr     ecx
        test    sil, 1
        jne     .LBB8_5
        lea     rsi, [rdx + 1]
        test    ecx, ecx
        jne     .LBB8_1
        mov     rsi, qword ptr [rdi + 24]
        test    rsi, rsi
        je      .LBB8_6
        mov     rdx, qword ptr [rdi + 16]
        add     rsi, -1
        mov     ecx, dword ptr [rdx]
        add     rdx, 4
        mov     qword ptr [rdi + 16], rdx
        mov     qword ptr [rdi + 24], rsi
        mov     rsi, qword ptr [rdi + 8]
        add     rsi, 1
        mov     qword ptr [rdi + 8], rsi
        shl     rsi, 5
        jmp     .LBB8_1
.LBB8_5:
        mov     dword ptr [rdi + 32], ecx
        lea     rax, [rdx + 1]
        mov     qword ptr [rdi], rax
        mov     eax, 1
.LBB8_6:
        ret

<new::Ones as core::iter::traits::iterator::Iterator>::next:
        mov     r8d, dword ptr [rdi + 24]
        test    r8d, r8d
        je      .LBB7_3
        mov     rdx, qword ptr [rdi]
        jmp     .LBB7_2
.LBB7_3:
        mov     rsi, qword ptr [rdi + 16]
        add     rsi, -1
        xor     eax, eax
.LBB7_4:
        cmp     rsi, -1
        je      .LBB7_5
        mov     rdx, qword ptr [rdi]
        mov     rcx, qword ptr [rdi + 8]
        mov     r8d, dword ptr [rcx]
        mov     dword ptr [rdi + 24], r8d
        add     rcx, 4
        mov     qword ptr [rdi + 8], rcx
        mov     qword ptr [rdi + 16], rsi
        add     rdx, 1
        mov     qword ptr [rdi], rdx
        add     rsi, -1
        test    r8d, r8d
        je      .LBB7_4
.LBB7_2:
        bsf     eax, r8d  // bit scan forward \o/
        lea     esi, [r8 - 1]
        and     esi, r8d
        mov     dword ptr [rdi + 24], esi
        shl     rdx, 5
        or      rdx, rax
        mov     eax, 1
        ret
.LBB7_5:
        ret