added power preview settings

Summary of the Pull Request

added  page and functionality fo

References

PR Checklist

[x] Applies to #1482
[x] CLA signed. If not, go over here and sign the CLA
[] Tests added/passed
[x] Requires documentation to be updated
[x] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #1482

Validation Steps Performed

Verified updates the settings JSON file.
Verified that the changes in the UI were propagated to the module to configuration updates.

@laviusmotileng-ms
I tried to run the code, but I may have the wrong configuration (wrong .Net Core version?) on my machine and when I select the File Explorer Preview panel I get this exception:

Call stack (doesn't help much)
 	KernelBase.dll!00007ffaec63faff()	Unknown
 	combase.dll!00007ffaee60845b()	Unknown
 	Windows.UI.Xaml.dll!00007ffacaac2ec0()	Unknown
 	Windows.UI.Xaml.dll!00007ffacaac30b9()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca7c9c3f()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca5326ad()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca62990a()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca494238()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca494024()	Unknown
 	user32.dll!00007ffaed735c0d()	Unknown
 	user32.dll!00007ffaed7357dc()	Unknown
 	user32.dll!00007ffaed741f73()	Unknown
 	ntdll.dll!00007ffaef61fe34()	Unknown
 	win32u.dll!00007ffaed0d1184()	Unknown
 	user32.dll!00007ffaed735279()	Unknown
 	user32.dll!00007ffaed734f88()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca5f501c()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca55a9de()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca55a3fa()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca8bd730()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca8bc278()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca8bd4d9()	Unknown
 	Windows.UI.Xaml.dll!00007ffacaa283e2()	Unknown
 	Windows.UI.Xaml.dll!00007ffacac80dc8()	Unknown
 	Windows.UI.Xaml.dll!00007ffacac801a4()	Unknown
 	Windows.UI.dll!00007ffacf349980()	Unknown
 	Windows.UI.dll!00007ffacf349718()	Unknown
 	Windows.UI.dll!00007ffacf35500a()	Unknown
 	Windows.UI.dll!00007ffacf354aef()	Unknown
 	Windows.UI.dll!00007ffacf35504e()	Unknown
 	ninput.dll!00007ffae7d70ffa()	Unknown
 	ninput.dll!00007ffae7d6df77()	Unknown
 	ninput.dll!00007ffae7d8ba57()	Unknown
 	ninput.dll!00007ffae7d8ba22()	Unknown
 	ninput.dll!00007ffae7d8b1e6()	Unknown
 	ninput.dll!00007ffae7d8b2bb()	Unknown
 	ninput.dll!00007ffae7d89bd8()	Unknown
 	ninput.dll!00007ffae7d6e95b()	Unknown
 	ninput.dll!00007ffae7d6e29d()	Unknown
 	ninput.dll!00007ffae7d6c824()	Unknown
 	Windows.UI.dll!00007ffacf3558e8()	Unknown
 	Windows.UI.Xaml.dll!00007ffacac7e7c6()	Unknown
 	Windows.UI.Xaml.dll!00007ffacac7e93c()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca8bd3f8()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca8bc652()	Unknown
 	Windows.UI.Xaml.dll!00007ffacac844c0()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca807f2a()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca5d5190()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca5d4f53()	Unknown
 	Windows.UI.Xaml.dll!00007ffacaab41c8()	Unknown
 	Windows.UI.Xaml.dll!00007ffacaa8eb13()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca899ac3()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca89a3b3()	Unknown
 	InputHost.dll!00007ffaceefc30f()	Unknown
 	InputHost.dll!00007ffaceef705f()	Unknown
 	InputHost.dll!00007ffaceef68bc()	Unknown
 	InputHost.dll!00007ffaceefb73d()	Unknown
 	InputHost.dll!00007ffaceefa813()	Unknown
 	InputHost.dll!00007ffaceef9faa()	Unknown
 	InputHost.dll!00007ffacef02a81()	Unknown
 	InputHost.dll!00007ffacef0f060()	Unknown
 	InputHost.dll!00007ffacef0d239()	Unknown
 	InputHost.dll!00007ffacef0e1d6()	Unknown
 	InputHost.dll!00007ffacef0e814()	Unknown
 	InputHost.dll!00007ffacef11c78()	Unknown
 	InputHost.dll!00007ffacef11bb2()	Unknown
 	user32.dll!00007ffaed735c0d()	Unknown
 	user32.dll!00007ffaed735602()	Unknown
 	00007ffa10f8869e()	Unknown
 	WindowsBase.dll!00007ffa6ebba25c()	Unknown
 	WindowsBase.dll!00007ffa6ebb7801()	Unknown
 	WindowsBase.dll!00007ffa6ebb77ae()	Unknown
 	PresentationFramework.dll!00007ffa6f3ce84c()	Unknown
 	PresentationFramework.dll!00007ffa6f3cce61()	Unknown
 	PresentationFramework.dll!00007ffa6f3c9e3c()	Unknown
 	00007ffa10a916fa()	Unknown
 	coreclr.dll!00007ffa705b6b63()	Unknown
 	coreclr.dll!00007ffa7054cb62()	Unknown
 	coreclr.dll!00007ffa70553b29()	Unknown
 	coreclr.dll!00007ffa70553fb7()	Unknown
 	coreclr.dll!00007ffa70554761()	Unknown
 	coreclr.dll!00007ffa704721c1()	Unknown
 	hostpolicy.dll!00007ffa75374e2d()	Unknown
 	hostpolicy.dll!00007ffa75382e27()	Unknown
 	hostpolicy.dll!00007ffa75382a36()	Unknown
 	hostpolicy.dll!00007ffa75384262()	Unknown
 	hostfxr.dll!00007ffa757b0653()	Unknown
 	hostfxr.dll!00007ffa757b37c8()	Unknown
 	hostfxr.dll!00007ffa757b27cd()	Unknown
 	hostfxr.dll!00007ffa757b027c()	Unknown
 	hostfxr.dll!00007ffa757abd0c()	Unknown
	Microsoft.PowerToys.Settings.UI.Runner.exe!00007ff67e0f189f()	Unknown
 	Microsoft.PowerToys.Settings.UI.Runner.exe!00007ff67e0f1c38()	Unknown
 	Microsoft.PowerToys.Settings.UI.Runner.exe!00007ff67e0f3ae8()	Unknown
 	kernel32.dll!00007ffaed647bd4()	Unknown
 	ntdll.dll!00007ffaef5eced1()	Unknown

@laviusmotileng-ms
I tried to run the code, but I may have the wrong configuration (wrong .Net Core version?) on my machine and when I select the File Explorer Preview panel I get this exception:

Call stack (doesn't help much)
 	KernelBase.dll!00007ffaec63faff()	Unknown
 	combase.dll!00007ffaee60845b()	Unknown
 	Windows.UI.Xaml.dll!00007ffacaac2ec0()	Unknown
 	Windows.UI.Xaml.dll!00007ffacaac30b9()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca7c9c3f()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca5326ad()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca62990a()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca494238()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca494024()	Unknown
 	user32.dll!00007ffaed735c0d()	Unknown
 	user32.dll!00007ffaed7357dc()	Unknown
 	user32.dll!00007ffaed741f73()	Unknown
 	ntdll.dll!00007ffaef61fe34()	Unknown
 	win32u.dll!00007ffaed0d1184()	Unknown
 	user32.dll!00007ffaed735279()	Unknown
 	user32.dll!00007ffaed734f88()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca5f501c()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca55a9de()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca55a3fa()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca8bd730()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca8bc278()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca8bd4d9()	Unknown
 	Windows.UI.Xaml.dll!00007ffacaa283e2()	Unknown
 	Windows.UI.Xaml.dll!00007ffacac80dc8()	Unknown
 	Windows.UI.Xaml.dll!00007ffacac801a4()	Unknown
 	Windows.UI.dll!00007ffacf349980()	Unknown
 	Windows.UI.dll!00007ffacf349718()	Unknown
 	Windows.UI.dll!00007ffacf35500a()	Unknown
 	Windows.UI.dll!00007ffacf354aef()	Unknown
 	Windows.UI.dll!00007ffacf35504e()	Unknown
 	ninput.dll!00007ffae7d70ffa()	Unknown
 	ninput.dll!00007ffae7d6df77()	Unknown
 	ninput.dll!00007ffae7d8ba57()	Unknown
 	ninput.dll!00007ffae7d8ba22()	Unknown
 	ninput.dll!00007ffae7d8b1e6()	Unknown
 	ninput.dll!00007ffae7d8b2bb()	Unknown
 	ninput.dll!00007ffae7d89bd8()	Unknown
 	ninput.dll!00007ffae7d6e95b()	Unknown
 	ninput.dll!00007ffae7d6e29d()	Unknown
 	ninput.dll!00007ffae7d6c824()	Unknown
 	Windows.UI.dll!00007ffacf3558e8()	Unknown
 	Windows.UI.Xaml.dll!00007ffacac7e7c6()	Unknown
 	Windows.UI.Xaml.dll!00007ffacac7e93c()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca8bd3f8()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca8bc652()	Unknown
 	Windows.UI.Xaml.dll!00007ffacac844c0()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca807f2a()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca5d5190()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca5d4f53()	Unknown
 	Windows.UI.Xaml.dll!00007ffacaab41c8()	Unknown
 	Windows.UI.Xaml.dll!00007ffacaa8eb13()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca899ac3()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca89a3b3()	Unknown
 	InputHost.dll!00007ffaceefc30f()	Unknown
 	InputHost.dll!00007ffaceef705f()	Unknown
 	InputHost.dll!00007ffaceef68bc()	Unknown
 	InputHost.dll!00007ffaceefb73d()	Unknown
 	InputHost.dll!00007ffaceefa813()	Unknown
 	InputHost.dll!00007ffaceef9faa()	Unknown
 	InputHost.dll!00007ffacef02a81()	Unknown
 	InputHost.dll!00007ffacef0f060()	Unknown
 	InputHost.dll!00007ffacef0d239()	Unknown
 	InputHost.dll!00007ffacef0e1d6()	Unknown
 	InputHost.dll!00007ffacef0e814()	Unknown
 	InputHost.dll!00007ffacef11c78()	Unknown
 	InputHost.dll!00007ffacef11bb2()	Unknown
 	user32.dll!00007ffaed735c0d()	Unknown
 	user32.dll!00007ffaed735602()	Unknown
 	00007ffa10f8869e()	Unknown
 	WindowsBase.dll!00007ffa6ebba25c()	Unknown
 	WindowsBase.dll!00007ffa6ebb7801()	Unknown
 	WindowsBase.dll!00007ffa6ebb77ae()	Unknown
 	PresentationFramework.dll!00007ffa6f3ce84c()	Unknown
 	PresentationFramework.dll!00007ffa6f3cce61()	Unknown
 	PresentationFramework.dll!00007ffa6f3c9e3c()	Unknown
 	00007ffa10a916fa()	Unknown
 	coreclr.dll!00007ffa705b6b63()	Unknown
 	coreclr.dll!00007ffa7054cb62()	Unknown
 	coreclr.dll!00007ffa70553b29()	Unknown
 	coreclr.dll!00007ffa70553fb7()	Unknown
 	coreclr.dll!00007ffa70554761()	Unknown
 	coreclr.dll!00007ffa704721c1()	Unknown
 	hostpolicy.dll!00007ffa75374e2d()	Unknown
 	hostpolicy.dll!00007ffa75382e27()	Unknown
 	hostpolicy.dll!00007ffa75382a36()	Unknown
 	hostpolicy.dll!00007ffa75384262()	Unknown
 	hostfxr.dll!00007ffa757b0653()	Unknown
 	hostfxr.dll!00007ffa757b37c8()	Unknown
 	hostfxr.dll!00007ffa757b27cd()	Unknown
 	hostfxr.dll!00007ffa757b027c()	Unknown
 	hostfxr.dll!00007ffa757abd0c()	Unknown
	Microsoft.PowerToys.Settings.UI.Runner.exe!00007ff67e0f189f()	Unknown
 	Microsoft.PowerToys.Settings.UI.Runner.exe!00007ff67e0f1c38()	Unknown
 	Microsoft.PowerToys.Settings.UI.Runner.exe!00007ff67e0f3ae8()	Unknown
 	kernel32.dll!00007ffaed647bd4()	Unknown
 	ntdll.dll!00007ffaef5eced1()	Unknown

thanks I will look at it now.

@laviusmotileng-ms
I tried to run the code, but I may have the wrong configuration (wrong .Net Core version?) on my machine and when I select the File Explorer Preview panel I get this exception:

Call stack (doesn't help much)

Hi Enrico, i just pulled the changes afresh and re-ran the code and it works on my machine. Can you try applying the following VS configurations and let me know it it helps: https://www.privfile.com/download.php?fid=5e7cee1e47b4f-Mzg1

@laviusmotileng-ms
I tried to run the code, but I may have the wrong configuration (wrong .Net Core version?) on my machine and when I select the File Explorer Preview panel I get this exception:

Call stack (doesn't help much)

Hi Enrico, i just pulled the changes afresh and re-ran the code and it works on my machine. Can you try applying the following VS configurations and let me know it it helps: https://www.privfile.com/download.php?fid=5e7cee1e47b4f-Mzg1

Trying installing .Net Core 3.1 too.

@laviusmotileng-ms
I tried to run the code, but I may have the wrong configuration (wrong .Net Core version?) on my machine and when I select the File Explorer Preview panel I get this exception:

Call stack (doesn't help much)
 	KernelBase.dll!00007ffaec63faff()	Unknown
 	combase.dll!00007ffaee60845b()	Unknown
 	Windows.UI.Xaml.dll!00007ffacaac2ec0()	Unknown
 	Windows.UI.Xaml.dll!00007ffacaac30b9()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca7c9c3f()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca5326ad()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca62990a()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca494238()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca494024()	Unknown
 	user32.dll!00007ffaed735c0d()	Unknown
 	user32.dll!00007ffaed7357dc()	Unknown
 	user32.dll!00007ffaed741f73()	Unknown
 	ntdll.dll!00007ffaef61fe34()	Unknown
 	win32u.dll!00007ffaed0d1184()	Unknown
 	user32.dll!00007ffaed735279()	Unknown
 	user32.dll!00007ffaed734f88()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca5f501c()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca55a9de()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca55a3fa()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca8bd730()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca8bc278()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca8bd4d9()	Unknown
 	Windows.UI.Xaml.dll!00007ffacaa283e2()	Unknown
 	Windows.UI.Xaml.dll!00007ffacac80dc8()	Unknown
 	Windows.UI.Xaml.dll!00007ffacac801a4()	Unknown
 	Windows.UI.dll!00007ffacf349980()	Unknown
 	Windows.UI.dll!00007ffacf349718()	Unknown
 	Windows.UI.dll!00007ffacf35500a()	Unknown
 	Windows.UI.dll!00007ffacf354aef()	Unknown
 	Windows.UI.dll!00007ffacf35504e()	Unknown
 	ninput.dll!00007ffae7d70ffa()	Unknown
 	ninput.dll!00007ffae7d6df77()	Unknown
 	ninput.dll!00007ffae7d8ba57()	Unknown
 	ninput.dll!00007ffae7d8ba22()	Unknown
 	ninput.dll!00007ffae7d8b1e6()	Unknown
 	ninput.dll!00007ffae7d8b2bb()	Unknown
 	ninput.dll!00007ffae7d89bd8()	Unknown
 	ninput.dll!00007ffae7d6e95b()	Unknown
 	ninput.dll!00007ffae7d6e29d()	Unknown
 	ninput.dll!00007ffae7d6c824()	Unknown
 	Windows.UI.dll!00007ffacf3558e8()	Unknown
 	Windows.UI.Xaml.dll!00007ffacac7e7c6()	Unknown
 	Windows.UI.Xaml.dll!00007ffacac7e93c()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca8bd3f8()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca8bc652()	Unknown
 	Windows.UI.Xaml.dll!00007ffacac844c0()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca807f2a()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca5d5190()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca5d4f53()	Unknown
 	Windows.UI.Xaml.dll!00007ffacaab41c8()	Unknown
 	Windows.UI.Xaml.dll!00007ffacaa8eb13()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca899ac3()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca89a3b3()	Unknown
 	InputHost.dll!00007ffaceefc30f()	Unknown
 	InputHost.dll!00007ffaceef705f()	Unknown
 	InputHost.dll!00007ffaceef68bc()	Unknown
 	InputHost.dll!00007ffaceefb73d()	Unknown
 	InputHost.dll!00007ffaceefa813()	Unknown
 	InputHost.dll!00007ffaceef9faa()	Unknown
 	InputHost.dll!00007ffacef02a81()	Unknown
 	InputHost.dll!00007ffacef0f060()	Unknown
 	InputHost.dll!00007ffacef0d239()	Unknown
 	InputHost.dll!00007ffacef0e1d6()	Unknown
 	InputHost.dll!00007ffacef0e814()	Unknown
 	InputHost.dll!00007ffacef11c78()	Unknown
 	InputHost.dll!00007ffacef11bb2()	Unknown
 	user32.dll!00007ffaed735c0d()	Unknown
 	user32.dll!00007ffaed735602()	Unknown
 	00007ffa10f8869e()	Unknown
 	WindowsBase.dll!00007ffa6ebba25c()	Unknown
 	WindowsBase.dll!00007ffa6ebb7801()	Unknown
 	WindowsBase.dll!00007ffa6ebb77ae()	Unknown
 	PresentationFramework.dll!00007ffa6f3ce84c()	Unknown
 	PresentationFramework.dll!00007ffa6f3cce61()	Unknown
 	PresentationFramework.dll!00007ffa6f3c9e3c()	Unknown
 	00007ffa10a916fa()	Unknown
 	coreclr.dll!00007ffa705b6b63()	Unknown
 	coreclr.dll!00007ffa7054cb62()	Unknown
 	coreclr.dll!00007ffa70553b29()	Unknown
 	coreclr.dll!00007ffa70553fb7()	Unknown
 	coreclr.dll!00007ffa70554761()	Unknown
 	coreclr.dll!00007ffa704721c1()	Unknown
 	hostpolicy.dll!00007ffa75374e2d()	Unknown
 	hostpolicy.dll!00007ffa75382e27()	Unknown
 	hostpolicy.dll!00007ffa75382a36()	Unknown
 	hostpolicy.dll!00007ffa75384262()	Unknown
 	hostfxr.dll!00007ffa757b0653()	Unknown
 	hostfxr.dll!00007ffa757b37c8()	Unknown
 	hostfxr.dll!00007ffa757b27cd()	Unknown
 	hostfxr.dll!00007ffa757b027c()	Unknown
 	hostfxr.dll!00007ffa757abd0c()	Unknown
	Microsoft.PowerToys.Settings.UI.Runner.exe!00007ff67e0f189f()	Unknown
 	Microsoft.PowerToys.Settings.UI.Runner.exe!00007ff67e0f1c38()	Unknown
 	Microsoft.PowerToys.Settings.UI.Runner.exe!00007ff67e0f3ae8()	Unknown
 	kernel32.dll!00007ffaed647bd4()	Unknown
 	ntdll.dll!00007ffaef5eced1()	Unknown

thanks I will look at it now.

Can you verify if the following file exists: C:\Users<your user name>\AppData\Local\Microsoft\PowerToys\File Explorer Preview\settings.json

@laviusmotileng-ms
I tried to run the code, but I may have the wrong configuration (wrong .Net Core version?) on my machine and when I select the File Explorer Preview panel I get this exception:

Call stack (doesn't help much)
 	KernelBase.dll!00007ffaec63faff()	Unknown
 	combase.dll!00007ffaee60845b()	Unknown
 	Windows.UI.Xaml.dll!00007ffacaac2ec0()	Unknown
 	Windows.UI.Xaml.dll!00007ffacaac30b9()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca7c9c3f()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca5326ad()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca62990a()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca494238()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca494024()	Unknown
 	user32.dll!00007ffaed735c0d()	Unknown
 	user32.dll!00007ffaed7357dc()	Unknown
 	user32.dll!00007ffaed741f73()	Unknown
 	ntdll.dll!00007ffaef61fe34()	Unknown
 	win32u.dll!00007ffaed0d1184()	Unknown
 	user32.dll!00007ffaed735279()	Unknown
 	user32.dll!00007ffaed734f88()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca5f501c()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca55a9de()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca55a3fa()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca8bd730()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca8bc278()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca8bd4d9()	Unknown
 	Windows.UI.Xaml.dll!00007ffacaa283e2()	Unknown
 	Windows.UI.Xaml.dll!00007ffacac80dc8()	Unknown
 	Windows.UI.Xaml.dll!00007ffacac801a4()	Unknown
 	Windows.UI.dll!00007ffacf349980()	Unknown
 	Windows.UI.dll!00007ffacf349718()	Unknown
 	Windows.UI.dll!00007ffacf35500a()	Unknown
 	Windows.UI.dll!00007ffacf354aef()	Unknown
 	Windows.UI.dll!00007ffacf35504e()	Unknown
 	ninput.dll!00007ffae7d70ffa()	Unknown
 	ninput.dll!00007ffae7d6df77()	Unknown
 	ninput.dll!00007ffae7d8ba57()	Unknown
 	ninput.dll!00007ffae7d8ba22()	Unknown
 	ninput.dll!00007ffae7d8b1e6()	Unknown
 	ninput.dll!00007ffae7d8b2bb()	Unknown
 	ninput.dll!00007ffae7d89bd8()	Unknown
 	ninput.dll!00007ffae7d6e95b()	Unknown
 	ninput.dll!00007ffae7d6e29d()	Unknown
 	ninput.dll!00007ffae7d6c824()	Unknown
 	Windows.UI.dll!00007ffacf3558e8()	Unknown
 	Windows.UI.Xaml.dll!00007ffacac7e7c6()	Unknown
 	Windows.UI.Xaml.dll!00007ffacac7e93c()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca8bd3f8()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca8bc652()	Unknown
 	Windows.UI.Xaml.dll!00007ffacac844c0()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca807f2a()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca5d5190()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca5d4f53()	Unknown
 	Windows.UI.Xaml.dll!00007ffacaab41c8()	Unknown
 	Windows.UI.Xaml.dll!00007ffacaa8eb13()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca899ac3()	Unknown
 	Windows.UI.Xaml.dll!00007ffaca89a3b3()	Unknown
 	InputHost.dll!00007ffaceefc30f()	Unknown
 	InputHost.dll!00007ffaceef705f()	Unknown
 	InputHost.dll!00007ffaceef68bc()	Unknown
 	InputHost.dll!00007ffaceefb73d()	Unknown
 	InputHost.dll!00007ffaceefa813()	Unknown
 	InputHost.dll!00007ffaceef9faa()	Unknown
 	InputHost.dll!00007ffacef02a81()	Unknown
 	InputHost.dll!00007ffacef0f060()	Unknown
 	InputHost.dll!00007ffacef0d239()	Unknown
 	InputHost.dll!00007ffacef0e1d6()	Unknown
 	InputHost.dll!00007ffacef0e814()	Unknown
 	InputHost.dll!00007ffacef11c78()	Unknown
 	InputHost.dll!00007ffacef11bb2()	Unknown
 	user32.dll!00007ffaed735c0d()	Unknown
 	user32.dll!00007ffaed735602()	Unknown
 	00007ffa10f8869e()	Unknown
 	WindowsBase.dll!00007ffa6ebba25c()	Unknown
 	WindowsBase.dll!00007ffa6ebb7801()	Unknown
 	WindowsBase.dll!00007ffa6ebb77ae()	Unknown
 	PresentationFramework.dll!00007ffa6f3ce84c()	Unknown
 	PresentationFramework.dll!00007ffa6f3cce61()	Unknown
 	PresentationFramework.dll!00007ffa6f3c9e3c()	Unknown
 	00007ffa10a916fa()	Unknown
 	coreclr.dll!00007ffa705b6b63()	Unknown
 	coreclr.dll!00007ffa7054cb62()	Unknown
 	coreclr.dll!00007ffa70553b29()	Unknown
 	coreclr.dll!00007ffa70553fb7()	Unknown
 	coreclr.dll!00007ffa70554761()	Unknown
 	coreclr.dll!00007ffa704721c1()	Unknown
 	hostpolicy.dll!00007ffa75374e2d()	Unknown
 	hostpolicy.dll!00007ffa75382e27()	Unknown
 	hostpolicy.dll!00007ffa75382a36()	Unknown
 	hostpolicy.dll!00007ffa75384262()	Unknown
 	hostfxr.dll!00007ffa757b0653()	Unknown
 	hostfxr.dll!00007ffa757b37c8()	Unknown
 	hostfxr.dll!00007ffa757b27cd()	Unknown
 	hostfxr.dll!00007ffa757b027c()	Unknown
 	hostfxr.dll!00007ffa757abd0c()	Unknown
	Microsoft.PowerToys.Settings.UI.Runner.exe!00007ff67e0f189f()	Unknown
 	Microsoft.PowerToys.Settings.UI.Runner.exe!00007ff67e0f1c38()	Unknown
 	Microsoft.PowerToys.Settings.UI.Runner.exe!00007ff67e0f3ae8()	Unknown
 	kernel32.dll!00007ffaed647bd4()	Unknown
 	ntdll.dll!00007ffaef5eced1()	Unknown

thanks I will look at it now.

Can you verify if the following file exists: C:\Users\AppData\Local\Microsoft\PowerToys\File Explorer Preview\settings.json

I fixed it here: https://github.com/microsoft/PowerToys/pull/1702/commits/6604c2d43f9c1e52af03a2c0b85f6d6f52702e9d

everyone, to be crisp, the decision was to just not have the new vs old toggle switch for UX, not have a breaking change.  Incase something doesn't land, we still have the old UX to fall back on then.


[Bug Fix] Fix cachable behaviour

🚀 🚀 Pull Request
Checklist:

[ ]  My code follows the style guidelines of this project and the Contributing document
[ ]  I have commented my code, particularly in hard-to-understand areas
[ ]  I have kept the coverage-rate up
[ ]  I have performed a self-review of my own code and resolved any problems
[ ]  I have checked to ensure there aren't any other open Pull Requests for the same change
[ ]  I have described and made corresponding changes to the relevant documentation
[ ]  New and existing unit tests pass locally with my changes

Changes

Merged in #1353


How to validate bech32 signed message?

Hello,
I've been trying to validate a signed bech32 message (from Electrum, BIP-0137) but I keep running into walls, since my knowledge related to ECDSA, addresses and signatures is pretty limited.
I was able to extract PublicKey using the code below, but it doesn't match address  and signature, err := btcec.ParseSignature(signatureEncoded, btcec.S256()) errors out with malformed signature: no header magic. I have a feeling that it's because the signature isn't provided in the proper format, not sure how to get there though.
If anyone could help me out that would be greatly appreciated. I tried to find a Slack/Mattermost/Gitter channel but haven't found any otherwise I would've asked there.
package main

import (
	"encoding/base64"
	"fmt"

	"github.com/btcsuite/btcd/btcec"
	"github.com/btcsuite/btcd/chaincfg/chainhash"
)

const (
	message           = "Hello"
	address           = "bc1qsdjne3y6ljndzvg9z9qrhje8k7p2m5yas704hn"
	electrumSignature = "H0wOFGpArXjGOdT57eb902p9SsZ4ELAtMLL8hATpeQerCdheTSHf6qP8y+x83nhV30MEXsa9Gji8+Z9OZKdSs2E="
)

func main() {
	signatureEncoded, err := base64.StdEncoding.DecodeString(electrumSignature)
	if err != nil {
		fmt.Println(err)
		return
	}

	pubKey, _, err := btcec.RecoverCompact(btcec.S256(), signatureEncoded, []byte(message))
	if err != nil {
		fmt.Println(err)
		return
	}

	signature, err := btcec.ParseSignature(signatureEncoded, btcec.S256())
	if err != nil {
		fmt.Println(err)
		return
	}

	// Verify the signature for the message using the public key.
	messageHash := chainhash.DoubleHashB([]byte(message))
	verified := signature.Verify(messageHash, pubKey)
	fmt.Println("Signature Verified?", verified)
}

A couple of observations. When you recover the pubkey, you are inputing the actual message, not the hash of the message
For bitcoin signed messages you have to append the message with a certain magic: https://bitcoin.stackexchange.com/questions/77324/how-are-bitcoin-signed-messages-generated/77325#77325
btcec.ParseSignature doesn't parse CompactSignatures, and I don't think the btcsuite offers a function to do so. You can extract that logic from RecoverCompact
your script doesn't check if the pubKey corresponds to the address you provided
Electrum checks for both legacy P2PKH but also for P2WPKH-P2SH/P2WPKH https://github.com/btclib-org/btclib/blob/master/btclib/bms.py#L60 . If either of them corresponds to the address you provided it deems the signature to be verified.

Small script that I hacked together that should not be used in any production environment, but is used to explain the points above:
package main

import (
	"encoding/base64"
	"errors"
	"fmt"
	"math/big"

	"github.com/btcsuite/btcd/btcec"
	"github.com/btcsuite/btcd/chaincfg"
	"github.com/btcsuite/btcd/chaincfg/chainhash"
	"github.com/btcsuite/btcutil"
)

const (
	message           = "Hello"
	address           = "bc1qsdjne3y6ljndzvg9z9qrhje8k7p2m5yas704hn"
	electrumSignature = "H0wOFGpArXjGOdT57eb902p9SsZ4ELAtMLL8hATpeQerCdheTSHf6qP8y+x83nhV30MEXsa9Gji8+Z9OZKdSs2E="
)

func main() {
	addr, err := btcutil.DecodeAddress(address, &chaincfg.MainNetParams)
	if err != nil {
		panic(err)
	}
	//TODO: use compactLen. This works now because the message isn't long
	magicMessage := "\x18Bitcoin Signed Message:\n" + string(len(message)) + message

	messageHash := chainhash.DoubleHashB([]byte(magicMessage))

	signatureEncoded, err := base64.StdEncoding.DecodeString(electrumSignature)
	if err != nil {
		panic(err)
	}

	pubKey, comp, err := btcec.RecoverCompact(btcec.S256(), signatureEncoded, messageHash)
	if err != nil {
		panic(err)

	}
	fmt.Println("Pubkey is compressed?", comp)
	// TODO: switch if not compressed or better if the recovery flag in the signature tells us to do so
	// TODO: add P2WPKH-P2SH checking
	pubkeyHash := btcutil.Hash160(pubKey.SerializeCompressed())
	p2wkhAddr, err := btcutil.NewAddressWitnessPubKeyHash(pubkeyHash, &chaincfg.MainNetParams)
	if err != nil {
		panic(err)
	}

	signature, err := parseCompact(signatureEncoded, btcec.S256())
	if err != nil {
		panic(err)

	}

	verified := signature.Verify(messageHash, pubKey)
	fmt.Println("Signature Verified?", verified)

	// TODO: check for P2PKH/P2WPKH-P2SH/P2WPKH
	fmt.Println("Addresses are the same?", addr.String() == p2wkhAddr.String())
}

func parseCompact(signature []byte, curve *btcec.KoblitzCurve) (*btcec.Signature, error) {
	bitlen := (curve.BitSize + 7) / 8
	if len(signature) != 1+bitlen*2 {
		return nil, errors.New("invalid compact signature size")
	}

	sig := &btcec.Signature{
		R: new(big.Int).SetBytes(signature[1 : bitlen+1]),
		S: new(big.Int).SetBytes(signature[bitlen+1:]),
	}
	return sig, nil
}

Ah yes, that makes so much more sense @Joukehofman. Most of the things you've in your snippet I have seen, was just unable to connect it all together. Thank you so much for this initial snippet.


Run tests against Python 3.12

https://blog.python.org/2023/10/python-3120-final-now-available.html

Thanks!


Update surface

add surface intensity measurements
change the mesh smoothing filter to Taubin

Codecov Report

Merging #16 (94fff3d) into main (ea8b293) will increase coverage by 4.01%.
The diff coverage is 99.32%.

@@            Coverage Diff             @@
##             main      #16      +/-   ##
==========================================
+ Coverage   83.93%   87.94%   +4.01%
==========================================
  Files          18       24       +6
  Lines         417      564     +147
==========================================
+ Hits          350      496     +146
- Misses         67       68       +1

Impacted Files
Coverage Δ

src/morphometrics/utils/image_utils.py
93.33% <93.33%> (ø)

src/morphometrics/measure/_tests/test_intensity.py
100.00% <100.00%> (ø)

src/morphometrics/measure/intensity.py
100.00% <100.00%> (ø)

src/morphometrics/utils/_tests/test_image_utils.py
100.00% <100.00%> (ø)

src/morphometrics/utils/_tests/test_math_utils.py
100.00% <100.00%> (ø)

src/morphometrics/utils/math_utils.py
100.00% <100.00%> (ø)

src/morphometrics/utils/surface_utils.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


Say goodbye to hash/keys

@fidelisrafael the tests has been executed successfully using nifty_services-sinatra_example

I'm not happy with this method symbolize_keys inside Util module. Do you have any suggestions ?

Thats awesome man! I'm thinking in something like this:
# if user is using some library as active support, lets it handle this
unless Hash.method_defined?(:symbolize_keys)
  class Hash
   def symbolize_keys
      Hash[self.map {|k, v| [k.to_sym, v] }]
    end
  end
end

So, we don't even need to change references in code, and things like: my_array_of_hash.map(&:symbolize_keys) still work as expected

Great!!

@fidelisrafael can you review it ? Changes has been applied.

@fidelisrafael fixed

@lucasgomide thanks again for your help man, here we go!


model_fields is "not a field" when using @dataclass(slots=True)

Initial Checks

[X] I confirm that I'm using Pydantic V2

Description
I was testing the slots feature of pydantic.dataclasses.dataclass and stumble upon this error:
Traceback (most recent call last):
  File "/home/diego/test.py", line 5, in <module>
    @dataclass(slots=True)
     ^^^^^^^^^^^^^^^^^^^^^
  File "/home/diego/python3.12/site-packages/pydantic/dataclasses.py", line 225, in create_dataclass
    cls = dataclasses.dataclass(  # type: ignore[call-overload]
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dataclasses.py", line 1268, in dataclass
    return wrap(cls)
           ^^^^^^^^^
  File "/usr/local/lib/python3.12/dataclasses.py", line 1258, in wrap
    return _process_class(cls, init, repr, eq, order, unsafe_hash,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dataclasses.py", line 1148, in _process_class
    cls = _add_slots(cls, frozen, weakref_slot)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dataclasses.py", line 1226, in _add_slots
    cls = type(cls)(cls.__name__, cls.__bases__, cls_dict)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/diego/venv/lib/python3.12/site-packages/pydantic/_internal/_model_construction.py", line 93, in __new__
    private_attributes = inspect_namespace(
                         ^^^^^^^^^^^^^^^^^^
  File "/home/diego/venv/lib/python3.12/site-packages/pydantic/_internal/_model_construction.py", line 406, in inspect_namespace
    raise PydanticUserError(
pydantic.errors.PydanticUserError: A non-annotated attribute was detected: `model_fields = {'test': FieldInfo(annotation=str, required=True)}`. All model fields require a type annotation; if `model_fields` is not meant to be a field, you may be able to resolve this error by annotating it as a `ClassVar` or updating `model_config['ignored_types']`.

As the documentation says:

Keep in mind that pydantic.dataclasses.dataclass is not a replacement for pydantic.BaseModel.

So my thought is that I can work with dataclass decorator together with BaseModel heritage but Pydantic keeps throwing me this error like models_fields was a field that is not meant to be a field. I don't event know if that makes sense.
I also try to add model_config = ConfigDict(extra='forbid') or even @dataclass(slots=True, config=ConfigDict(extra='forbid') and both outputs the same error.
I don't know if this behavior is intended - and also don't know if dataclass and BaseModel should work together - but if it is intended, its not clear in the docs.
Example Code
from pydantic.dataclasses import dataclass
from pydantic import BaseModel

@dataclass(slots=True)
class TestClass(BaseModel):
    test: str

Python, Pydantic & OS Version
pydantic version: 2.7.1
        pydantic-core version: 2.18.2
          pydantic-core build: profile=release pgo=true
                 install path: /home/diego/venv/lib/python3.12/site-packages/pydantic
               python version: 3.12.3 (main, May  6 2024, 23:14:22) [GCC 11.3.0]
                     platform: Linux-<IP_ADDRESS>-microsoft-standard-WSL2-x86_64-with-glibc2.35
             related packages: typing_extensions-4.9.0
                       commit: unknown

Hi @senese,
Using v2.8.0, you get a more helpful error:
from pydantic.dataclasses import dataclass
from pydantic import BaseModel

@dataclass(slots=True)
class TestClass(BaseModel):
    test: str

"""
pydantic.errors.PydanticUserError: Cannot create a Pydantic dataclass from TestClass as it is already a Pydantic model
"""

Marking this as resolved - mixing pydantic dataclasses and models in this way isn't supported.

Thank you, @sydney-runkle. Althought this raised me a couple of doubts:

You said "in this way". Do you have any example where mixing pydantic dataclasses and BaseModels is a good use case? The documentation is not very clear on this subject.
With BaseModels is there some way I can use dataclasses's slots feature?

You said "in this way". Do you have any example where mixing pydantic dataclasses and BaseModels is a good use case? The documentation is not very clear on this subject.

To clarify - we don't support both decorating a class as a dataclass and inheriting from BaseModel . It should be the case that one or the other meets your needs, with BaseModel having more robust settings / configuration.

With BaseModels is there some way I can use dataclasses's slots feature?

You can just define __slots__ on your subclass of BaseModel, but you might have to include these values as well:
https://github.com/pydantic/pydantic/blob/b3ce47f38a906d0b957e0870a651da394b8461bc/pydantic/main.py#L177C5-L177C100


Link to html page is not working anymore

Thanks for letting me know. My DNS records were misconfigured. It should be working again now.


Handle extra behavior in BaseModel.copy

feat: Accept extra kwarg in BaseModel.copy
Add change into history
Add tests for BaseModel.copy(..., extra=...)

Change Summary
Add behavior to BaseModel.copy to handle extra keys like the contructor does. A new keyword argument (extra) drives
logic similar to the BaseConfig.extra attribute.
Related issue number
fix #3732
Checklist

[x] Unit tests for the changes exist
[ ] Tests pass on CI and coverage remains at 100%
[x] Documentation reflects the changes where applicable
[x] changes/<pull request or issue id>-<github username>.md file added describing change
(see changes/README.md for details.
You can skip this check if the change does not need a change file.)
[x] My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

Sorry, I'm afraid I'm going to close this.

This change is too big for V1.10 and also too late since we have the beta released
This code will all change completely for V2, but also the plan in V2 is to remove copy() and instead implement __copy__

Thanks for your contribution and sorry not to be able to accept this PR.

No worries, that all makes sense. I can just implement the same in a
subclass if I need it.
On Tue, Aug 30, 2022, 06:34 Samuel Colvin @.***> wrote:

Closed #4449 https://github.com/pydantic/pydantic/pull/4449.
—
Reply to this email directly, view it on GitHub
https://github.com/pydantic/pydantic/pull/4449#event-7286239543, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AALROMM5FRKHNYJ3UHD34VLV3XPU3ANCNFSM577R6FSA
.
You are receiving this because you authored the thread.Message ID:
@.***>

:+1: makes sense.


how to configure cache by namespace per page (ssr mode)?

If use apollo InMemoryCache, service created common data storage.
Example:
Page1 has apollo query1, page2 - query2.
Go to page1, page contains data query1
Go to page2, page contains data query1 and query2
This is my vue apollo ssr initialize
import "isomorphic-fetch";
import Vue from "vue";
import ApolloSSR from "vue-apollo/ssr";

if (process.server) {
  Vue.use(ApolloSSR);
}

const cacheKey = route => {
  let keyResult = `apollo-page-${route.name}`;
  for (let [key, value] of Object.entries(route.params)) {
    keyResult += `-${key}:${value}`;
  }
  return keyResult;
};

export default {
  async sendSSRData({ app, ssr, error }) {
    if (process.server) {
      try {
        ssr.bodyAdd = `<script>window.__APOLLO_STATE__=${JSON.stringify(
          ApolloSSR.getStates(app.$apolloProvider, {
            exportNamespace: cacheKey(app.$route)
          })
        )}</script>`;
      } catch (err) {
        error(err);
      }
    }
  }
};

Is it possible to configure cache adapter for page namespace key?
// Custom starting link.
// If you want to replace the default HttpLink, set `defaultHttpLink` to false
link,
cache: new InMemoryCache()
...

Or is there some other solution?

@Akryum Think this is a good case to have some hooks that could handle this.  Something more granular that the global wrapper i pred here https://github.com/Akryum/vue-apollo/pull/718/files

If you are doing SSR, you should have a new Vue app and new Apollo clients created for each page request.


Capture logs when simulator tests in flutter/packages fail

Provide better debug info to fix: https://github.com/flutter/flutter/issues/153578
So it looks like the packages recipe already supports this:

recipes src
Example packages build (when step 43 failed, step 44 uploaded everything in the directory pointed at by the env var $FLUTTER_LOGS_DIR, which was nothing)

From here, I think we should teach the flutter/packages repo's test runner (src) to catch errors and, if the env var FLUTTER_LOGS_DIR is set, copy the relevant logs there before exiting.

FYI @jmagman & @cbracken

https://github.com/flutter/flutter/blob/master/packages/flutter_tools/lib/src/ios/simulators.dart#L602-L614
We should see if this still gets written to disk:
  String get logFilePath {
    final String? logPath = globals.platform.environment['IOS_SIMULATOR_LOG_FILE_PATH'];
    return logPath != null
      ? logPath.replaceAll('%{id}', id)
      : globals.fs.path.join(
          globals.fsUtils.homeDirPath!,
          'Library',
          'Logs',
          'CoreSimulator',
          id,
          'system.log',
        );
  }

There's nothing useful in that system.log file.  I just purposely crashed an app on my simulator without attaching to Xcode and it showed up in ~/Library/Logs/DiagnosticReports/<AppName>-2024-11-04-205807.ips. I've requested those logs before: https://github.com/flutter/flutter/issues/85654#issuecomment-871746531
Maybe we can upload anything in there if the simulator test fails?
If anyone ever reproduces this locally, before the simulator is deleted run xcrun simctl diagnose and it will take a sysdiagnose and collect all the logs and crashes for the running simulator.  Unfortunately it requires command line interaction
Press ENTER to continue

If anyone ever reproduces this locally, before the simulator is deleted run xcrun simctl diagnose and it will take a sysdiagnose and collect all the logs and crashes for the running simulator. Unfortunately it requires command line interaction
Press ENTER to continue

We could script that, right?

Anyway, I'm focused on https://github.com/flutter/flutter/issues/157963 right now, but once I finish that I can work on uploading these logs. Don't let that stop anyone else who wants to work on this though, getting these logs is a priority, it's just ensuring our SALT configurations are restored is a higher one right now.

it's just ensuring our SALT configurations are restored is a higher one right now.

Totally agree 🙂


Failed to compile

Great Work!
Could you tell me the system env for you to compile and run?
My system setting is :

ubuntu 20.04
ros noetic & ros foxy

I meet the problem
ERROR [nmea 5/7] RUN rosdep update &&     apt-get update &&     rosdep install --from-paths ./src -y -r --ignore-src &&     rm -rf /var/lib/apt/lists/* &&     apt clean

But I parse the line to the terminal the command works well

Thank you for reporting - some information below for reference:

Could you tell me the system env for you to compile and run?

I use Ubuntu 22.04 Jammy and ROS 2 Humble on my development machine.

Is it possible to run the demo without docker?

I no longer have instructions for setting up all of the supporting services locally as there are so many. Practically speaking to run the demo you will need to build the Docker images.
There are also so many Compose override files for setting up the services that the instructions assume you will use the CLI (gnc) tool to build and run them. There is more information on installing and using the CLI in the guide.


Help

Describe your problem here.
How do I make the whole script only activate on a specific difficulty?
Are you modding a build from source or with Lua?
Lua
What is your build target?
Mac
Did you edit anything in this build? If so, mention or summarize your changes.
no

easy for lua epic simple code
function onCreate(elapsed)
if difficulty == 4 then
Function here
end

elapsed is only part of onUpdate

easy for lua epic simple code
for the number 1 = easy 2 = normal 3 = hard and so on for customs function onCreate(elapsed) if difficulty == (difficulty number) then Function here end

actually 0 = easy
1 = normal
and 2 = hard
according to the wiki I believe

easy for lua epic simple code
for the number 1 = easy 2 = normal 3 = hard and so on for customs function onCreate(elapsed) if difficulty == (difficulty number) then Function here end

actually 0 = easy 1 = normal and 2 = hard according to the wiki I believe

ok but what about custom difficulties

It goes in order of the week's difficulties
Default is 0 easy 1 normal 2 hard
If your difficulties are Hard, Very Hard and Impossible then it's
0-Hard
1-Very Hard
2- Impossible

It goes in order of the week's difficulties Default is 0 easy 1 normal 2 hard If your difficulties are Hard, Very Hard and Impossible then it's 0-Hard 1-Very Hard 2- Impossible

mine is more like four-note and five-note

It was example, the game doesn't care about the name


Clarification request on arbitrary properties/"{arbitrary}" id shorts

The SMT specification of the Digital Nameplate specifies some arbitrary properties with the idShort "{arbitrary}" (e.g. for GuidelineSpecificProperties, or AssetSpecificProperties). My interpretation of these is that these can act as generic placeholders for (in this case) any property type. Unfortunately I was not able to find any clues in the specification to back my interpretation.
Are there any further rules for these arbitrary types? Can you please clarify/elaborate on arbitrary or point me to additional resources?

This question has been forwarded to SMT "Digital Nameplate" group.

Indeed the {arbitrary} indicates that the user may add properties that are not further defined in the Submodel template. For this the template gives a number of examples, e.g. additional properties for "explosion safety". Therefore, the value type of the properties can be selected as needed (String, Decimal, ...). However, if your question is if any type of SubmodelElement can be used (e.g. File, Range or Blob) then it is safe to assume that only the SubmodelElement property should be used.

Please, also look at "How to create a submodel template": https://industrialdigitaltwin.org/wp-content/uploads/2022/12/I40-IDTA-WS-Process-How-to-write-a-SMT-FINAL-.pdf
Updates will be posted in https://industrialdigitaltwin.org/content-hub/downloads.
This issue will be closed. Feel free to re-open it if you have additional questions.


Capturing User ID Code

The Capturing User ID code works if you place it as a code Snippet on a page.  However, if you try to insert this into the master page, it is a bit more challenging.  You will receive an error that the file should be saved as an aspx.
this worked for me - -change the first two lines:
<!--SPM:<SharePoint:ScriptLink ID="ScriptLink1" name="SP.js" runat="server" localizable="false" loadafterui="true" />-->
<!--SPM:<SharePoint:ScriptLink ID="ScriptLink2" name="SP.UserProfiles.js" runat="server" localizable="false" loadafterui="true" />-->
.
After saving my html file, I checked the .master and the code was there.  And I was getting results on Application Insights.

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

ID: a1d5591a-bdb0-7eed-9697-4f2c7f3cc807
Version Independent ID: 301d5ed0-863e-7a46-0d93-023f27e29f89
Content: Monitor a SharePoint site with Application Insights
Content Source: articles/application-insights/app-insights-sharepoint.md
Service: application-insights
GitHub Login: @mrbullwinkle
Microsoft Alias: mbullwin

@jgriff500  Sorry for the delay and thank you for the feedback. Unfortunately, at this time we have been unable to review your issue in a timely manner. I'm going to close this issue for now but if this is this a concern please reach out and we can reopen the issue.
#please-close


Filter form upload options by file type

The form uploader says files should be XML or XLS forms, but the form input accepts any file types:

Would it be helpful to add an accepts attribute to filter files in the client's file picker?  E.g.

Tested with success!

Tested with success!


KDE Plasma: Desktop env crash when moving the window

Lapce Version
lapce 0.3.1-1
System information

Describe the bug

The windows always spawn in the top left of the monitor
When i try to move it, the desktop env crash and i need to reboot

Additional information
I am a noob in share infos in linux, my transition from windows 10 is slow xd
In backgroud i have only:

discord
firefox
Okular

occurs on linux mint lts jammy jellyfish 21.2 as well. using super key and arrow keys let me resize the program into one of the corners but any size adjustment spawns lapce off the screen to the left

has only started occuring from latest update

lapce 0.3.1-1
flatpak?

discord

get webcord instead, foss frontend

lapce 0.3.1-1

flatpak?
Nop

this should be fixed on master

this should be fixed on master

can you link the pr that fixed?

https://github.com/lapce/lapce/issues/2651
it was a bug fixed in winit
it was updated with floem https://github.com/lapce/lapce/commit/048c5103e27f62a5605f841d2915af14cd183565

#2651 it was a bug fixed in winit it was updated with floem 048c510

can a new flatpak drop asap cause lapce is unusable

for now you can enable kde borders in settings

for now you can enable kde borders in settings

whens next patch?

https://github.com/lapce/lapce/issues/2832
is this a duplicate?

no it is about an offset of border position when resizing it
it is duplicate of https://github.com/lapce/lapce/issues/2651 and https://github.com/lapce/lapce/issues/2758

no it is about an offset of border position when resizing it it is duplicate of #2651 and #2758

any idea when #2832 will be fixed?

I'm not sure if it is related, but moving lapce on KDE X11 from primary to secondary monitor causes the window to disappear completely. It does not crash anything, but the window is just gone, while the app is still running in showing the taskbar entry.

@valentimarco could you confirm if the issue is fixed for you with latest release?

@valentimarco could you confirm if the issue is fixed for you with latest release?

I need to update it, i will try

I confirm that works with 0.4.0


Not showing in Lovelace integrations

SmartThinQ LG Sensors installed through HACS as per instructions, Hassio restarted but integration not showing in lovelace
im running Hassio 0.116.4
i have tried all the versions available in HACS
any ideas?

Clean browser cache.

what a legend! nice one, thanks,
always seems to be the simplest things
thanks again


Create DB migration system

Until we're getting closer to 1.0 the DB will be too volatile to do this, but at some point before we're "stable" we need a better migration plan than "delete you library and start over".

DB version constant (one in python, one in the DB) and then a "migration" function which just has a huge list of if (oldVersion < 2 && newVersion >=2)... and runs migrations?
The function gets pretty big, but this generally works pretty well and is simple and easy to read.


Need to tag a new release

The current tagged version breaks Gallium in METADATA. Master works fine.
julia> using JuliaParser
INFO: Recompiling stale cache file /Users/viral/.julia/lib/v0.5/Compat.ji for module Compat.
INFO: Recompiling stale cache file /Users/viral/.julia/lib/v0.5/AbstractTrees.ji for module AbstractTrees.
ERROR: LoadError: LoadError: syntax: invalid operator ".!"
 in include_from_node1(::String) at ./loading.jl:426 (repeats 2 times)
 in eval(::Module, ::Any) at ./boot.jl:234
 in require(::Symbol) at ./loading.jl:357
while loading /Users/viral/.julia/v0.5/JuliaParser/src/lexer.jl, in expression starting on line 46
while loading /Users/viral/.julia/v0.5/JuliaParser/src/JuliaParser.jl, in expression starting on line 9

cc @tkelman @ranjanan
Is the current master ok to tag as a new release?

will it break people who are using tagged versions of Gallium?

Tagged Gallium is currently broken. That's how I ran into this.

+1 to tagging a new release. At least it doesn't break on using Gallium.

I will tag a new release, unless I hear otherwise from someone.


Enhancement: Raise minimum PHP version to PHP 7.1

This PR

[x] raises the minimum PHP version from PHP 5.5 to PHP 7.1
[x] updates phpunit/phpunit
[ ] ...

💁♂ For reference, see http://tinyletter.com/mwopzend/letters/zend-framework-community-news-for-the-week-of-2017-04-20.

@localheinz
Develop branch!

Ha, thank you, @froschdesign! Will take a look later!

@froschdesign @weierophinney
What do you think, should we also use

strict types
scalar type hints
return type declarations

?

@localheinz

strict types
scalar type hints
return type declarations

Void return types
Nullable types
"iterable" pseudo-type
…

All features which simplify the code and make the interfaces more clear.

Btw. HHVM makes no sense if we allow failures on Travis.


Create a custom Error class to have a better way to handle errors on …

…the front end

Look's good to me, we can create a new version and publish it on NPM


⚠ ClamAV has degraded performance

In 3b274d7, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 73 ms

Resolved: ClamAV performance has improved in 90e7b07.


Error extracting images

Hello,
I am working with a database .PDFs containing research articles in a niche set of academic areas. I am hoping to extract all of the Figures and captions. In may instances the default settings can do this, but I have found a few instances where the images extracted are incorrectly colored and/or bold-face Figure titles are not being registered as letterings.
One way I could envision working around this is to extract the Images with the found bounding box plus some extra pixel range on the left, right, and bottom. Is there a way to expand the Image class bounding boxes and extract the info in the new bounding boxes?
Alternatively, if you could help me understand how to change the settings used in both image and letterings extraction, that would be very helpful.
Best,
mushroom-matthew

I've started exploring the various output classes of the minecart workflow. I can now see that each of the following, Documents, Pages, Images, Letterings, etc have functions for adjusting bboxes and finding colors. I will explore these more.
That being said, I would still like to know how to adjust sensitivity to words and how to work with various colorspaces as I have encountered the following error.
PDFNotImplementedError: Colorspace 'PDFObjRef:8>' is not supported

You can use the iter_in_bbox method to inspect all the elements inside a bounding box. So you could, e.g., look at an image, expand the bounding box and then iterate on all letterings inside the bounding box.
There is no sensitivity to adjust here -- minecart extracts text as it was created in the PDF, and unfortunately some PDFs break up text into characters or sub-word strings that you have to manually stitch together.
In terms of the image colors and the error above, it looks like you are using the as_pil method. Unfortunately, that's a relatively unfinished part of the library. You could try using img.obj.get_data() and seeing if that will work for you. Otherwise, you can try commenting out lines 274-368 in content.py to see if that fixes the problem for you.

Thanks for the advice! It helped me start to navigate the classes within this software.
Both of my issues are solved. I thought I'd share my fix for showing images regardless of the PDFObject's Colorspace (specifically if it has 'PDFObjRef:8>').
import io
import PIL

byteArray = image.obj.get_data()
image = PIL.Image.open(io.BytesIO(byteArray))
image.show()

Thanks for sharing! I'll leave this up in case anyone wants to properly improve this part of the library

Felipe -- I am glad that my tip may be helpful in the long run. If this library issue remains, I may take a crack at improving its implementation.
Along those lines, I was wondering if you have explored any other PDF readers or OCR which may be able to better handle some of the other filters, including /CCITTFaxDecode. From a dev standpoint, is the use of other packages frowned upon or do outside developers such as myself have freedom to test various package deployments?

Definitely not tied to pdfminer! The premise of this library is exposing a nice interface to work with pdfs, so if we can preserve the outer API while changing the internals, I don't really care one way or another. (I imagine that may be challenging though!)
I have not played with any other readers since I wrote this, and haven't had a need to use OCR. OCR would probably be a nice complement though!

In my efforts to "simply" extract the images and captions from my library of ~450 PDFs, I started running into a bunch of problems. While I have some success with the files that were digitally-borne, those that were scanned, for example, were not handled well. In fact, that was just one class of PDFs that weren't handle where 333 of the 450 documents were dropped for one reason or another. I collected and counted all of the reasons as follows:
"AttributeError: 'PDFGraphicState' object has no attribute 'fill_color'": 15' '"AttributeError: 'PDFGraphicState' object has no attribute 'stroke_color'": 31
"KeyError: 'Cs6'": 1
"KeyError: 'DeviceN'": 1
'OSError: cannot identify image file <_io.BytesIO object at <SOMEKEY>>': 102
 "TypeError: a bytes-like object is required, not 'str'": 4,
"pdfminer.pdffont.PDFUnicodeNotDefined: ('Adobe-Identity', 11)": 1,
"pdfminer.pdffont.PDFUnicodeNotDefined: ('Adobe-Identity', 144)": 1,
"pdfminer.pdffont.PDFUnicodeNotDefined: ('Adobe-Identity', 1849)": 1,
"pdfminer.pdffont.PDFUnicodeNotDefined: ('Adobe-Identity', 59952)": 1,
'pdfminer.pdffont.PDFUnicodeNotDefined: (None, 1)': 3,
'pdfminer.pdffont.PDFUnicodeNotDefined: (None, 129)': 7,
'pdfminer.pdffont.PDFUnicodeNotDefined: (None, 13)': 1,
'pdfminer.pdffont.PDFUnicodeNotDefined: (None, 132)': 3,
 'pdfminer.pdffont.PDFUnicodeNotDefined: (None, 160)': 6,
'pdfminer.pdffont.PDFUnicodeNotDefined: (None, 173)': 1,
'pdfminer.pdffont.PDFUnicodeNotDefined: (None, 176)': 4,
'pdfminer.pdffont.PDFUnicodeNotDefined: (None, 2)': 11,
 'pdfminer.pdffont.PDFUnicodeNotDefined: (None, 211)': 1,
'pdfminer.pdffont.PDFUnicodeNotDefined: (None, 213)': 1,
'pdfminer.pdffont.PDFUnicodeNotDefined: (None, 223)': 1,
'pdfminer.pdffont.PDFUnicodeNotDefined: (None, 24)': 1,
 'pdfminer.pdffont.PDFUnicodeNotDefined: (None, 25)': 1,
'pdfminer.pdffont.PDFUnicodeNotDefined: (None, 26)': 1,
'pdfminer.pdffont.PDFUnicodeNotDefined: (None, 3)': 3,
'pdfminer.pdffont.PDFUnicodeNotDefined: (None, 30)': 1,
'pdfminer.pdffont.PDFUnicodeNotDefined: (None, 31)': 1,
 'pdfminer.pdffont.PDFUnicodeNotDefined: (None, 4)': 2,
'pdfminer.pdffont.PDFUnicodeNotDefined: (None, 63)': 1,
 'pdfminer.pdffont.PDFUnicodeNotDefined: (None, 8)': 1,
 'pdfminer.pdffont.PDFUnicodeNotDefined: (None, 88)': 1,
'pdfminer.pdftypes.PDFNotImplementedError: Unsupported filter: /CCITTFaxDecode': 113,
'pdfminer.pdftypes.PDFNotImplementedError: Unsupported filter: /JBIG2Decode': 5,
'pdfminer.pdftypes.PDFNotImplementedError: Unsupported filter: /JPXDecode': 1,
'pdfminer.pdftypes.PDFNotImplementedError: Unsupported predictor: 2': 3
Several of these errors arose from being unable to recognize the various fonts that were embedded in the files. Others weren't able to handle scanned images. It's probably a pretty big task to update the library for all of these cases. It should be helpful, however, to know the potential errors one may face when attempting this task.

for 'PDFGraphicState' object has no attribute 'fill_color'
I have changed some code in pdfinterp.py file in pdfminer module.
class PDFGraphicState:-
i have added 2 lines in the initialisation as well as "copy" attribute

I was able to extract the color using this code snippet
`import minecart
colors = set()
with open("{pathtoyourPDFhere}.pdf", "rb") as file:
document = minecart.Document(file)
page = document.get_page(0)
for shape in page.shapes:
if shape.fill:
colors.add(shape.fill.color.as_rgb())
for color in colors: print (color)`
But as this gives us rgb colors which are not same the colors which are printed i.e DeviceCMYK
I have tried ghostscript, imagemagik and other libs but all of them provide a class which does not have to_cmyk() method.
I am looking for contributors whoc can help me address this issue, let me know if anyone is interested


Prevent duplicate translations from being created when clicking “+ {language}” multiple times

Hi there. Thanks for sharing this plugin, it has been a great addition to our Sanity setup.
I have encountered an issue where a user can accidentally create duplicate translations of the same document from the “Translations” menu by clicking the same “+ {language}” button multiple times before the translated document has been created.
This can be reproduced in the following steps:

Create a base Sanity project with a single document type, e.g. page
Install the plugin, and configure Sanity to translate the document as per the plugin instructions.
Create a document in one language
Create a document translation via the “+ {language}” button in the “Translations” menu, and then click the same button again immediately after.
For each click until the first translated document is returned, a duplicate document will be created.

See video for demonstration.
https://github.com/sanity-io/document-internationalization/assets/42866396/9fc87a26-435b-4341-8731-7bea5e0fb309
It would be helpful to have a solution where when adding a translation, the “+ {language}” button is disabled after the first click until the translated document is created.

Noticed the same issue on my project! ☝

Same issue here. Sure the developers know about this issue and can avoid it, but still sometimes this gets forgotten and we cannot expect our customers to be aware of this.

Same issue here

+1, would love a fix or workaround for this

Got a fix up for this! ☝


AMWG Set 8 is unresponsive to season argument (?)

This is not urgent, but AMWG set8 appears to be unresponsive to the season argument.  Not sure what the correct behavior should be, but maybe at least a warning should be issued?

Works with NCEP obs data and cam35_data.


[WIP] Type and Provider Refactor

Not ready for prime time, but a start?
Attempt at refactoring everything so it's XML/CSV based instead of JSON for Windows 2008 support.  Also converting web bindings and virtual directories into native types.
I'm having issues with web bindings as the unique identifier is ip:port:hostheader. The problem is if you munge to use that as the title when you change one of those it just creates a new binding instead of changing the existing one.  I was trying to find a way to get the 'is' and 'should' for the property outside of the sync method, but at this point I need some outside perspective on things, so please comment away / contribute.
There's also some goofiness in app_pool with recycle logging that needs to be addressed.

Hi. I'm going to close this PR. We deprecated the module and the new version is available here: https://forge.puppet.com/puppetlabs/iis


Event for app being backgrounded on mobile?

On desktop, the DOM window blur event fires when a window loses focus. No luck on Android. Is there an alternative way to determine when the app is backgrounded?

I will emulate these events in a future version of the app. The code is ready but it will be queued up in the next release cycle.


Running Redis commands in Jedis

Expected behavior
Running redis command in jedis . such as input a string "get key" or "set key val" and I don't want to split command into tokens .
Actual behavior
I'm not sure is there any way to support this one ?
Steps to reproduce:
Please create a reproducible case of your problem. Make sure
that case repeats consistently and it's not random
1.
2.
3.
Redis / Jedis Configuration
Jedis version:
Redis version:
Java version:

You can't do this as of today. The closest that you can do is the Protocol.sendCommand function (https://github.com/xetorthio/jedis/blob/master/src/main/java/redis/clients/jedis/Protocol.java#L83) but that still requires that you specify a Protocol parameter.


ci: add schedule daily snapshot build

Description of the PR
Snapshot build logic is already there, i just add schedule to trigger every day at 0:00
Fixes: #941
PR Checklist

[ ] All commits have a Developer Certificate of Origin (DCO) -- they are generated using -s flag to git commit.
[ ] All new changes are covered by tests
[ ] If GraphQL schema is changed, make generate has been run
[ ] If collectsub protobuf has been changed, make proto has been run
[ ] All CI checks are passing (tests and formatting)
[ ] All dependent PRs have already been merged

The snapshot build in the current release workflow is meant to test the build-ability as code get merged into main. It doesn't releaser any form of artifacts at the moment. We'll need to come up with a strategy to name the nightly release and how to trigger it in the context of the current goreleaser config.

The snapshot build in the current release workflow is meant to test the build-ability as code get merged into main. It doesn't release any form of artifacts at the moment. We'll need to come up with a strategy to name the nightly release and how to trigger it in the context of the current goreleaser config.

this one https://github.com/guacsec/guac/blob/8282449c65a3d0a79016a3ce9fb8434916f2662b/.goreleaser.yaml#L203 does not release image?

The snapshot build in the current release workflow is meant to test the build-ability as code get merged into main. It doesn't release any form of artifacts at the moment. We'll need to come up with a strategy to name the nightly release and how to trigger it in the context of the current goreleaser config.

this one
https://github.com/guacsec/guac/blob/8282449c65a3d0a79016a3ce9fb8434916f2662b/.goreleaser.yaml#L203
does not release image?

@tuananh It doesn't - the flag merely defines the snapshot tag.
At the moment, goreleaser is run by the release workflow at https://github.com/guacsec/guac/blob/main/.github/workflows/release.yaml#L56-L78. The type of build it runs (snapshot/release) is based on the event that triggered the workflow.
I'd like to move all the goreleaser commands into the Makefile and have the release workflow consume it. Similar to how we build the local-organic-guac image for local testing - https://github.com/guacsec/guac/blob/main/Makefile#L105-L121
This would allow people to test the builds more easily and consolidate all goreleaser commands into one place.
With that, a nightly build would be a make target with specific goreleaser inputs defined for a specific github event triggers representing the nightly build - e.g. push of a 'nightly' tag - and the build should replace the nightly build artifacts (bins/container image) produced from the previous night.


Help fix Gerry Noij's first MP blog

Gerry,
Welcomed to MicroProfile repo! :)
This is your very own issue, thank you for considering the project and the Contributors worthy of your attention!
Blog via Gerry's twitter

I have updated my blog to make a clearer distinction between the MicroProfile Platform specification and component specifications.
Introduction to Eclipse MicroProfile

@Silfen66 fastest turnaround, amazing Gerry! :)
Are you interested in crossposting that very valuable blog to the MP blog? If yes:
Blog guidelines
Looking forward to formally welcoming you as the newest MP WordPress contributor!!!!

@Silfen66, Reading through your blog post...  Have a few comments...

I think you went overboard with your use of "platform" and "specification".  For me, it doesn't read as smoothly as it did before...  For example,

The Eclipse MicroProfile Platform specification is an open-source community specification for optimizing Enterprise Java for a microservices architecture.
Should read more like this (which I think you pretty much had before)...
The Eclipse MicroProfile Project is an open-source community for optimizing Enterprise Java for a microservices architecture.
And, now that I continue reading, the use of Specification seems to be overkill in several areas.  And, to be honest, the overuse of the word "specification" will be confusing when people start comparing it to the Jakarta EE Specification process.
And, I'm finding that doing a full review of the article via this github issue is quite difficult.  Any chance you have the article in another github repo or something that would easier commenting?  Google doc?  Something?
Thanks,
Kevin

@kwsutter thank YOU for jumping into the blog and seeing the issues I saw last night upon reading the blog.
A quick fix is to drop the blog into [MP
If Gerry imports blog into MP drive to enable adjustments, you could help with the review easily. That is how we work on content review. The word document is public and anyone has access to edit.
For me, blog has great potential yet specification is too heavy and condusing. thank you for prioritizing this.

I have updated the document posted by @aeiras with the contents of the blog. I appreciate the help with making it better.
I never expected this blog to be picked up by the MicroProfile community and the amount of retweets and likes are way beyond what I expected. Thank you!

@Silfen66 you walkTHEtalk and writethetalk!  Aach MicroProfiler walks it with you, no glamour nor BS. Now you are a MicroProfiler contributor, simply by showing up and owning your weight/voice!  JustFUN Gerry :)
I see the word doc populated, it is wonderful! I will add a few MicroProfilers  from yesterday's call with the hopes some can take a bit of time to review the blog before crosposting it into Wordpress MP blog.
Thank you owning it Gerry!

@Silfen66 Gerry, I have reviewed your blog and found it perfect to read.  Congrats!

Thanks Peggy for the edit review of Gerry’s blog.
Blog needs the adjustment in the technical sense too- work in progress 💪🏼⭐

MicroProfilers,
@Silfen66 have added via the word link his blog. we just need to adjust the wording btw components and specification accross the blog. Code looks good. :)
https://docs.google.com/document/d/1V_9s7lXmCErgUOAo3sGqsZaxU9dydJmx4YjfLQ2zOf4/edit
Today, I took the liberty to add @kwsutter and @jclingan directly to the minutes. I am mindful that we are 24/7 busy yet the comment adding you is to trigger attention to latest update. :) detest taking others' time for granted. fyi and cheers

hey Gerry, i see this issue still open, did you get enough feedback? @@Silfen66

Hi Amelia (@aeiras),
I didn't get any more feedback. So the blog is still the same as in the google doc.
PS I changed my github account. It is now @Misano9699  :)

Thats great then, the grammar was excellent!
Thanks for the follow up Gerry. :) Is it ok for us to close ticket?

Yes, that's ok!


Support data URLs in the HTTP request factory

@sbrunner, I added data:url support to the image layer (and others based on the same http request mechanism).
I tested this with some png data:url and it passed:

the static image gets decoded and printed;
it is composed by the print into the background raster layer.

What do you think?

It shouldn't use a handler as it's done here?
https://github.com/mapfish/mapfish-print/pull/1359/files?diff=unified&w=1
It should be tested throw an example...

@sbrunner, the ImageLayer and associated factories are using URIs. An Handle only works with URLs.
https://github.com/mapfish/mapfish-print/blob/master/core/src/main/java/org/mapfish/print/map/image/ImageLayer.java#L94-L95
How do you handle it?

I'm curious to know why it's an URI, but it's another story...

@sbrunner, the code is now making use of the Handler. Does it look better now?

Yes :-), and the changes in DataUrlConnection.java  can be canceled :-)

Yes :-), and the changes in DataUrlConnection.java can be canceled :-)

Indeed @sbrunner, I forgot about it. It is done now.

@sbrunner, I changed the base to 3.20 so the build should soon pass.
OK for you to merge this in the 3.20 branch and then backport it to master?

@sbrunner, as discussed, I rebased this branch on top of master.


HELP,Please

Hello,
1.I was wondering if I could use the entities identified by my own model as input and then use your tool to identify the entity relationships?
2.If so, could you please tell me the format of the input file?

thanks a lot.
But my identification result is only the entity name and entity type, if converted to the format of Pubtator, then how to fill in the data in the entity information

Hi, the input of RENET2 is normally generated from two parts: (1) article text; (2) entity information, including the entity name, type (gene or disease), entity ID, and entity positions in the text.
For the entity ID, you can use the same ID schema with RENET2, i.e. diseases are marked with MESH ID, genes are marked with NCBI gene ID, or using your own ID schema (marking your entity with ID like gene_1, gene_2.., , disease_1, disease_2, etc).
thanks.

Ok,thank you very much,its really be helpful!
Have a good day ! Sir

I am sorry to disturb you again. And One More Thing,
Why is the relationship coefficient of the same pair of genetic diseases in the same article different when I annotate all the identified entities to the input file and when I annotate only part of the entities

Yes, it will have a different score predicted when having different annotations for text. For each prediction, RENET2 relies on the annotation for a target gene and disease pairs as well as all other gene and disease annotations in text. RENET2 has a different encoding for its neural network to utilize all annotations information in the text, including target annotations and other entities. We recommend including all genes and disease annotation in text for RENET2 to get accurate results.
Hope this answer your question.
thanks.

Closing it due to inactivity, please reopen it if you have more queries.


Implement similarity_search_by_vector in Chroma

It would be nice to have the similarity search by vector in Chroma. I will try to make (my first) PR for this.

thanks! agree it would be nice

This has been fixed by #1568.


Improved README.md Usage Instructions

Is your feature request related to a problem? Please describe.

The README.md file does not mention if PowerShell should be run as an Administrator or not
The Launch Command: section does not mention PowerShell at all
The minimum required PowerShell version is not detailed

Describe the solution you'd like
A clear and concise usage section in the README.md file.
Describe alternatives you've considered
N/A
Additional context
N/A

Commited to Test
297cf678fbc89d070f92fd32b912f2ad3c8a4c9d


Update for fakeServer.create

I have created a PR which adds the possibility to setup a fakerServer instance by passing an object literal. I'm adding the text for the below update in case someone want to pickup the ball since it might take me some time to get Statis running since I have 0 experience with closure.

Sinon.fakeServer.create
var server = sinon.fakeServer.create(/** config = {} **/));

Creates a new server. This function also calls sinon.useFakeXMLHttpRequest().
Create also accepts a optional config object which can be used to configure the fake server. See options for configuration parameters.
Sinon.fakeServer.configure
server.configure({
  autoRespondAfter: 5,
  fakeHTTPMethods: true
})

Updates the fake server instance configuration from an object. See options for configuration parameters.
... The rest of the methods
options
Since these options are properties on the server object they can be set directly:
server.autoRespond = true

As well as by passing an object literal to fakeServer.create and .configure.
boolean autoRespond
If set, will automatically respond to every request after a timeout. The default timeout is 10ms but you can control it through the autoRespondAfter property. Note that this feature is intended to help during mockup development, and is not suitable for use in tests. For synchronous immediate responses, use respondImmediately instead.
int autoRespondAfter (ms)
Causes the server to automatically respond to incoming requests after a timeout.
boolean respondImmediately
If set, the server will respond to every request immediately and synchronously. This is ideal for faking the server from within a test without having to call server.respond() after each request made in that test. As this is synchronous and immediate, this is not suitable for simulating actual network latency in tests or mockups. To simulate network latency with automatic responses, see server.autoRespond and server.autoRespondAfter.
boolean fakeHTTPMethods
If set to true, server will find _method parameter in POST body and recognize that as the actual method. Supports a pattern common to Ruby on Rails applications. For custom HTTP method faking, override server.getHTTPMethod(request).

https://github.com/sinonjs/sinon-docs/commit/6ca64043acb0a02343f03b22a951a3b207ec8ee8


Daemon crashes after flameshot copy

Hi there :wave:
Seems like the systemd daemon is crashed with following output after copying an image (can't reproduce easily btw):
Feb 26 14:06:44 innixos greenclip[11712]: Just "Qt Selection Owner for flameshot"
Feb 26 14:06:44 innixos greenclip[11712]: Just "Qt Selection Owner for flameshot"
Feb 26 14:06:44 innixos greenclip[11712]: Just "Qt Selection Owner for flameshot"
Feb 26 22:11:09 innixos greenclip[11712]: JustX Error of failed request:  BadWindow (invalid Window parameter)
Feb 26 22:11:09 innixos greenclip[11712]:   Major opcode of failed request:  20 (X_GetProperty)
Feb 26 22:11:09 innixos greenclip[11712]:   Resource id in failed request:  0x8800001
Feb 26 22:11:09 innixos greenclip[11712]:   Serial number of failed request:  2743041
Feb 26 22:11:09 innixos greenclip[11712]:   Current serial number in output stream:  2743041
Feb 26 22:11:09 innixos systemd[11645]: greenclip.service: Main process exited, code=exited, status=1/FAILURE

Thanks for this awesome tool btw. Long time happy user :smile:

Sadly I can't reproduce.
I am using also flameshot, but never experienced the crash.
Does it happen all the time ?
What is your system ?

Thanks for the quick reaction. Tried a bit hard, but can't reproduce. Checking the logs I saw it happened once again (some time ago) with same complaint. It might not be caused by flameshot:
Jan 14 10:08:07 innixos greenclip[1393]: Just "Chromium clipboard"
Jan 14 10:08:07 innixos greenclip[1393]: Just "Chromium clipboard"
Jan 14 10:33:08 innixos greenclip[1393]: Just "Chromium clipbX Error of failed request:  BadWindow (invalid Window parameter)
Jan 14 10:33:08 innixos greenclip[1393]:   Major opcode of failed request:  20 (X_GetProperty)
Jan 14 10:33:08 innixos greenclip[1393]:   Resource id in failed request:  0x1600001
Jan 14 10:33:08 innixos greenclip[1393]:   Serial number of failed request:  1157929
Jan 14 10:33:08 innixos greenclip[1393]:   Current serial number in output stream:  1157929
Jan 14 10:33:08 innixos systemd[1320]: greenclip.service: Main process exited, code=exited, status=1/FAILURE
Jan 14 10:33:08 innixos systemd[1320]: greenclip.service: Failed with result 'exit-code'.

I am using NixOS with awesomewm. Maybe there is some WM restart event which confuses it.
Closing since it looks like happening random and seldom. I'll resurrect this issue if I can catch something reliably.


[Solidity Assembly Yul support] verbatim coverage

Problem
The Hedera network supports smart contracts as part of EVM equivalence.
Occasionally items have shown up that surfaced inequivalence at the language or opcode layer.
Solidity supports inline assembly usage of the Yul language.
However, it may not be clear what coverage the Hedera Smart Contract Service 2.0 has for them
Solution

Add solidity contract example that utilize verbatim options for assembly using Yul

Add a contract under contracts/yul/verbatim and tests under respective directories

Ref: https://docs.soliditylang.org/en/latest/yul.html#evm-dialect
Alternatives
No response

these codes are not EVM opcodes but only available for the Yul compiler only. Closing as not supported.


allow git fetch to fail silently

This should hopefully resolve #32, as described by @ArtiomTr

Thank you for your contribution!

@all-contributors please add @atuttle for code


zen-browser: add version 1.0.0-a.34

Adds Zen Browser, an open-source, privacy-focused web browser with a focus on speed and user experience.

[x] I have read the Contributing Guide.

/verify

/verify

/verify

/verify

/verify

/verify

Zen Browser has moved to Beta
https://github.com/zen-browser/desktop/releases/download/1.0.2-b.5/zen.installer.exe#/dl.7z


Conditioned ISAB implementation results in mode collapse when used with GAST

This appears to be an issue with the current default dimensionality of the hidden layer in the MLP. From short experiments, deeper MLPs seem to address the issue. Also, using tanh instead of relu/gelu appears to be superior at first glance.

This depends on the MLP size. For flexibility, the MLP is no longer included in the block, and should be added externally.


Recommend adding a directory create step

On this page: https://github.com/microsoft/bobsql/tree/master/demos/sqlserver2022/IQP
For restoring the sample databases, recommend a step to create a c:\sql_sample_databases step to save time for the student. You do have in there to alter paths as necessary, but it's quicker if they just create the dir.

Fixed in each of the IQP scenarios


panic when copy_slice

from: https://github.com/infinyon/fluvio/issues/1592
RUST_BACKTRACE=1 ./target/release/fluvio consume longevity -B -d > /tmp/d1.out
The application panicked (crashed).
Message:  assertion failed: self.remaining() >= dst.len()
Location: /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/bytes-1.1.0/src/buf/buf_impl.rs:253

  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   1: color_eyre::config::PanicHook::into_panic_hook::{{closure}}::hcb31997c6f995703
      at <unknown source file>:<unknown line>
   2: std::panicking::rust_panic_with_hook::h67c812a4fe9d4c91
      at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panicking.rs:626
   3: std::panicking::begin_panic_handler::{{closure}}::h33f9c1b96af300d7
      at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panicking.rs:517
   4: std::sys_common::backtrace::__rust_end_short_backtrace::h51bae64be5921f0e
      at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/sys_common/backtrace.rs:141
   5: rust_begin_unwind<unknown>
      at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panicking.rs:515
   6: core::panicking::panic_fmt::h12a3a3c256485fca
      at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/core/src/panicking.rs:92
   7: core::panicking::panic::h344f23ad26057b48
      at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/core/src/panicking.rs:50
   8: bytes::buf::buf_impl::Buf::get_i64::h71d286442e1ddbd7
      at <unknown source file>:<unknown line>
   9: <i64 as fluvio_protocol_core::decoder::Decoder>::decode::hb8018972c75cb9f2
      at <unknown source file>:<unknown line>
  10: <fluvio_dataplane_protocol::batch::BatchHeader as fluvio_protocol_core::decoder::Decoder>::decode::hcabfaf1daab91d3b
      at <unknown source file>:<unknown line>
  11: <fluvio_dataplane_protocol::batch::Batch<R> as fluvio_protocol_core::decoder::Decoder>::decode::h64ac5029891ac067
      at <unknown source file>:<unknown line>
  12: <fluvio_dataplane_protocol::record::RecordSet as fluvio_protocol_core::decoder::Decoder>::decode::h421e68ce138a0def
      at <unknown source file>:<unknown line>
  13: <fluvio_dataplane_protocol::fetch::response::FetchablePartitionResponse<R> as fluvio_protocol_core::decoder::Decoder>::decode::h8b45f10688f8e88e
      at <unknown source file>:<unknown line>
  14: fluvio_protocol_core::decoder::Decoder::decode_from::h89f04399ddce2a41
      at <unknown source file>:<unknown line>
  15: <fluvio_socket::multiplexing::AsyncRespons

The panic in bytes looks correct. It looks like this impl Decoder for i64 is checking for only 4 bytes, whereas the type is 8 bytes: https://github.com/infinyon/fluvio/blob/0f23af7c383283672c14998fb6fe5c230d56539f/crates/fluvio-protocol-core/src/decoder.rs#L258

hah.  that's fix the problems event thought not understand how it could leads to panic.    thanks!


Failure to build SASS

Recently Ive been experiencing problems building the SASS, this is what I get in the output.
*** Rebuilding (/Users/aaron.stezycki/Dropbox/02_Dev/Style Guide changed)
find: scss: No such file or directory
My directories, settings, and all other files haven't changed yet now it fails to build correctly. Is there something I've done wrong? and has anyone else experienced this ?

I have the same issue. It started after updating Cactus for mac to use version 3.
It looks like the command to process the scss files has changed.

Same here, won't build SASS/SCSS or CoffeeScript files.

Same here on Mac build 1.1.22 (440).

Is this project still active? I know its not 'actively' being worked on... but atleast bug fixes and OS updates should still be maintained? I think its poor from the development team to allow this to happen. At least let us know that the project is no longer running and to find a similar application such as Hammer for Mac?

Hi there,
Are you using the Mac app or the CLI tool?
Cheers,

@krallin I'm having the issue in the Mac app, so I installed the CLI tool and can run both cactus serve and cactus deploy without issue.

Also having the same issue with the Mac app.
"find: scss: No such file or directory"
I have tried re-installing the gem without success. Command line works fine.

@krallin Its definitely the mac app, I don't use the CLI tool at all, not much of a Terminal guy, prefer the lazy GUI option. ... It seems it just doesn't wanna build scss files at all. Im running Yosemite 10.10.5 at work, and El Capitan at home. I can't seem to build at all on El Capitan, however at work on Yosemite I can manage it with using Cactus 1.1.15.

In the Mac app, you need to open plugins/default.py and uncomment the SCSS run command in the preBuild function.
def preBuild(site):
    pass

    # For scss/sass you need to install sassc: brew install sassc
    run('find %s -name "*.scss" -not -name "_*" -exec bash -c "sassc \'{}.scss\' > \'{}.css\'" \;' % pipes.quote(site.static_path))

    # For coffee script you need to install coffee script: npm install -g coffee-script
    # run('find %s -name "*.coffee" -exec coffee -c {} \;' % pipes.quote(site.static_path))

Uncommenting the SCSS run command compiles the scss correctly, but the file name is '.scss.css'. Using the mac app v1.1.22 (440)

I think these problems can solve just rewrite plugins/default.py ↓
run('find %s -name "*.scss" -not -name "_*" -exec bash -c "sassc \'{}.scss\' > \'{}.css\'" \;' % pipes.quote(site.static_path))

Who can do this?

Use the following (as already mentioned) for scss:
run('find %s -name "*.scss" -not -name "_*" -exec scss -C --update {} \;' % pipes.quote(site.static_path))

and this one for sass:
run('find %s -name "*.sass" -not -name "_*" -exec scss -C --update {} \;' % pipes.quote(site.static_path))

I'm still getting this problem in both the GUI and the CLI after updating from Yosemite to El Capitan.

find: scss: No such file or directory

My default.py has the following:

def preBuild(site):
run('find %s -name ".scss" -not -name "_" -exec scss -C --update {} ;' % pipes.quote(site.static_path))

Anyone figure this out?

While I was able to build the site from the CLI only, in Yosemite, I switched a simple project and started a new one on Middleman and just plan to leave Cactus behind.  As a Rails developer, Middleman fits better for me anyway - although if I was working with designers having the Django template language would be nice and will be missed.

@edchao try (re-)installing scss using the terminal:
sudo gem install sass

works for me with both GUI and CLI.

Boom. Thanks @pani-c worked for me!

nice! thanks @pani-c worked for me too.

Odd, I'm still having this issue and I've reinstalled sass globally. Anyone else encounter this and have a fix?
*** Rebuilding (/Users/Robert/Sites/olli-lp changed)
find /Users/Robert/Sites/olli-lp/static -name ".scss" -not -name "_" -exec bash -c "sassc '{}' > '{}.css'" ;
bash: sassc: command not found

I stumbled across these two comments in the plugins folder
    # For scss/sass you need to install sassc: brew install sassy
    run('find %s -name "*.scss" -not -name "_*" -exec bash -c "sassc \'{}\' > \'{}.css\'" \;' % pipes.quote(site.static_path))

    # For coffee script you need to install coffee script: npm install -g coffee-script
    # run('find %s -name "*.coffee" -exec coffee -c {} \;' % pipes.quote(site.static_path))

Ran both and solved my problem. Hooray!


auto deploy for meshery operator

Signed-off-by: kumarabd<EMAIL_ADDRESS>Description
This PR fixes #
Notes for Reviewers
Signed commits

[ ] Yes, I signed my commits.

@vineethvanga18  The prompt component doesn't seem to work. Will you check this?

Was this issue fixed in this PR?

Will the component versions show based on changes in this PR?

Was this issue fixed in this PR?

Yes this is fixed in this PR.

Will the component versions show based on changes in this PR?

Yes this is in the upcoming PR.