Zram doesn't work on WSL2

Version
Microsoft Windows [Version 10.0.22621.963]
WSL Version

[X] WSL 2
[ ] WSL 1

Kernel Version
Linux version 5.15.83
Distro Version
Ubuntu 22.04
Other Software
No response
Repro Steps
sudo apt install zram-config
wsl --shutdown
Start wsl distro
cat /proc/swaps
System has no zram device and is using swap on disk instead
Expected Behavior
Expected behavior is for zram devices to show up. I have tried recompiling the WSL2 kernel with CONFIG_ZRAM=m and CONFIG_ZRAM_WRITEBACK=y but it still doesn't alleviate the issue
Actual Behavior
Filename                                Type            Size            Used            Priority
/swapfile                               file            18874364        11386788        -2
On modprobe zram:
modprobe: FATAL: Module zram not found in directory /lib/modules/
Diagnostic Logs
No response

On modprobe zram:
modprobe: FATAL: Module zram not found in directory /lib/modules/

WSL 2 doesn't use kernel modules.

On modprobe zram:
modprobe: FATAL: Module zram not found in directory /lib/modules/

WSL 2 doesn't use kernel modules.

I have tried building it as is into the kernel with CONFIG_ZRAM=y, but zram still fails to load

zram does work on WSL but you need to build/install the module and have the same custom built kernel loaded. To have zram devices available on each WSL distro you'll need to copy the /lib/modules/ directory to each instance. While the kernel is being shared, modules are not. I didn't try to make a system distro with zram module, but it might work. This way kernel and modules are shared by each running WSL distro.
I'm using it with kernel  6.1.2-microsoft-standard-WSL2:
elsaco@RIPPER:~$ modinfo zram
filename:       /lib/modules/6.1.2-microsoft-standard-WSL2/kernel/drivers/block/zram/zram.ko
description:    Compressed RAM Block Device
author:         Nitin Gupta<EMAIL_ADDRESS>license:        Dual BSD/GPL
srcversion:     1A796665923AA9A9E04E286
depends:        zsmalloc
retpoline:      Y
intree:         Y
name:           zram
vermagic:       6.1.2-microsoft-standard-WSL2 SMP preempt mod_unload modversions
parm:           num_devices:Number of pre-created zram devices (uint)

Output of zram-config service:
elsaco@RIPPER:~$ systemctl status zram-config
● zram-config.service - Initializes zram swaping
     Loaded: loaded (/lib/systemd/system/zram-config.service; disabled; vendor preset: enabled)
     Active: active (exited) since Sun 2023-01-01 13:44:41 PST; 2s ago
    Process: 390 ExecStart=/usr/bin/init-zram-swapping (code=exited, status=0/SUCCESS)
   Main PID: 390 (code=exited, status=0/SUCCESS)

Jan 01 13:44:41 RIPPER systemd[1]: Starting Initializes zram swaping...
Jan 01 13:44:41 RIPPER init-zram-swapping[400]: Setting up swapspace version 1, size = 2.9 GiB<PHONE_NUMBER> bytes)
Jan 01 13:44:41 RIPPER init-zram-swapping[400]: no label, UUID=3026ade5-ca3d-4fba-a244-3e1a9ab3df88
Jan 01 13:44:41 RIPPER systemd[1]: Finished Initializes zram swaping.

and lsblk output, showing zram0 device:
elsaco@RIPPER:~$ lsblk
NAME  MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda     8:0    0 363.1M  1 disk
sdb     8:16   0     1T  0 disk /snap
                                /mnt/wslg/distro
                                /
zram0 251:0    0   2.9G  0 disk [SWAP]

zram does work on WSL but you need to build/install the module and have the same custom built kernel loaded. To have zram devices available on each WSL distro you'll need to copy the /lib/modules/ directory to each instance. While the kernel is being shared, modules are not. I didn't try to make a system distro with zram module, but it might work. This way kernel and modules are shared by each running WSL distro.
I'm using it with kernel 6.1.2-microsoft-standard-WSL2:
elsaco@RIPPER:~$ modinfo zram
filename:       /lib/modules/6.1.2-microsoft-standard-WSL2/kernel/drivers/block/zram/zram.ko
description:    Compressed RAM Block Device
author:         Nitin Gupta<EMAIL_ADDRESS>license:        Dual BSD/GPL
srcversion:     1A796665923AA9A9E04E286
depends:        zsmalloc
retpoline:      Y
intree:         Y
name:           zram
vermagic:       6.1.2-microsoft-standard-WSL2 SMP preempt mod_unload modversions
parm:           num_devices:Number of pre-created zram devices (uint)

Output of zram-config service:
elsaco@RIPPER:~$ systemctl status zram-config
● zram-config.service - Initializes zram swaping
     Loaded: loaded (/lib/systemd/system/zram-config.service; disabled; vendor preset: enabled)
     Active: active (exited) since Sun 2023-01-01 13:44:41 PST; 2s ago
    Process: 390 ExecStart=/usr/bin/init-zram-swapping (code=exited, status=0/SUCCESS)
   Main PID: 390 (code=exited, status=0/SUCCESS)

Jan 01 13:44:41 RIPPER systemd[1]: Starting Initializes zram swaping...
Jan 01 13:44:41 RIPPER init-zram-swapping[400]: Setting up swapspace version 1, size = 2.9 GiB<PHONE_NUMBER> bytes)
Jan 01 13:44:41 RIPPER init-zram-swapping[400]: no label, UUID=3026ade5-ca3d-4fba-a244-3e1a9ab3df88
Jan 01 13:44:41 RIPPER systemd[1]: Finished Initializes zram swaping.

and lsblk output, showing zram0 device:
elsaco@RIPPER:~$ lsblk
NAME  MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda     8:0    0 363.1M  1 disk
sdb     8:16   0     1T  0 disk /snap
                                /mnt/wslg/distro
                                /
zram0 251:0    0   2.9G  0 disk [SWAP]

Hi, thanks for your response! I am using the 5.15.83 kernel from Microsoft stable repo, and on doing make menuconfig, it seems only the zsmalloc module can be built, the zram module doesn't show up to enable and directly adding to the .config doesn't seem to build it either.
Can you send the sources for your 6.1.2 kernel? Or any guidance as to how I can compile and install this module? sudo make modules_install only copies over zsmalloc

zram does work on WSL but you need to build/install the module and have the same custom built kernel loaded. To have zram devices available on each WSL distro you'll need to copy the /lib/modules/ directory to each instance. While the kernel is being shared, modules are not. I didn't try to make a system distro with zram module, but it might work. This way kernel and modules are shared by each running WSL distro.
I'm using it with kernel 6.1.2-microsoft-standard-WSL2:
elsaco@RIPPER:~$ modinfo zram
filename:       /lib/modules/6.1.2-microsoft-standard-WSL2/kernel/drivers/block/zram/zram.ko
description:    Compressed RAM Block Device
author:         Nitin Gupta<EMAIL_ADDRESS>license:        Dual BSD/GPL
srcversion:     1A796665923AA9A9E04E286
depends:        zsmalloc
retpoline:      Y
intree:         Y
name:           zram
vermagic:       6.1.2-microsoft-standard-WSL2 SMP preempt mod_unload modversions
parm:           num_devices:Number of pre-created zram devices (uint)

Output of zram-config service:
elsaco@RIPPER:~$ systemctl status zram-config
● zram-config.service - Initializes zram swaping
     Loaded: loaded (/lib/systemd/system/zram-config.service; disabled; vendor preset: enabled)
     Active: active (exited) since Sun 2023-01-01 13:44:41 PST; 2s ago
    Process: 390 ExecStart=/usr/bin/init-zram-swapping (code=exited, status=0/SUCCESS)
   Main PID: 390 (code=exited, status=0/SUCCESS)

Jan 01 13:44:41 RIPPER systemd[1]: Starting Initializes zram swaping...
Jan 01 13:44:41 RIPPER init-zram-swapping[400]: Setting up swapspace version 1, size = 2.9 GiB<PHONE_NUMBER> bytes)
Jan 01 13:44:41 RIPPER init-zram-swapping[400]: no label, UUID=3026ade5-ca3d-4fba-a244-3e1a9ab3df88
Jan 01 13:44:41 RIPPER systemd[1]: Finished Initializes zram swaping.

and lsblk output, showing zram0 device:
elsaco@RIPPER:~$ lsblk
NAME  MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda     8:0    0 363.1M  1 disk
sdb     8:16   0     1T  0 disk /snap
                                /mnt/wslg/distro
                                /
zram0 251:0    0   2.9G  0 disk [SWAP]

Hi, thanks for your response! I am using the 5.15.83 kernel from Microsoft stable repo, and on doing make menuconfig, it seems only the zsmalloc module can be built, the zram module doesn't show up to enable and directly adding to the .config doesn't seem to build it either.
Can you send the sources for your 6.1.2 kernel? Or any guidance as to how I can compile and install this module? sudo   make modules_install only copies over zsmalloc

NVM, fixed it and now it works


New dynamic filters for explore and collections

Project organization

Closes
Related
Dependant on

Description

How to test

Checklist

[ ] Base branch of the PR is dev
[ ] Update docs if necessary

 Collection work - Update filters component

@EmmanuelDrouin I would love to have your feedback on that already, just focussing on the UX part and not the UI yet

@EmmanuelDrouin I would love to have your feedback on that already, just focussing on the UX part and not the UI yet

My UX feedback:
Filters on explore page

The "collections" section in the filters should be open by default when you land on the page (like other platforms)

The filter by "type" is missing (all, single edition, multiple editions)
We have a bug with the "currency selector" in the "price range", on click it opens the dropdown menu, but then the selector disappears

https://user-images.githubusercontent.com/15095289/215677284-0fec8436-4767-4a50-b4c9-4ae33334ecce.mov

Categories

Categories displayed have a weird naming with numbers displayed at the end

The number of traits available in a property is not displayed next to the property title (EG: category = 4)

I think as we are displaying these like any traits, we should use the same format and in this case display like on the Figma design:

Total count of traits inside each section
Total count of assets that have the same trait (on the trait itself)
Percentage  display bellow based on that data (x% have this trait)

Once a collection is selected, then the section "collections" section is renamed "Collection & properties"

The search to filter properties is missing
Design file > Collection selected

Filters on collection page

Missing "properties" section with search to filter properties
The properties section with the first property should be open by default when a user land on the page

Design file > filters on collection page

On the collection page, the pagination is not properly included in the assets grid section but instead applyed to the all page

Responsive
Todo with Ismail

The "collections" section in the filters should be open by default when you land on the page (like other platforms)
Done

The filter by "type" is missing (all, single edition, multiple editions)
Discussion opened on Figma, we discussed something different over our previous call

We have a bug with the "currency selector" in the "price range", on click it opens the dropdown menu, but then the selector disappears
Yes that needs "design" fix

Categories
Design related (not done yet) and not needed as a section (discussion on figma)

Once a collection is selected, then the section "collections" section is renamed "Collection & properties"
Done even tho the translation needs to be done properly

Missing "properties" section with search to filter properties
Done

The properties section with the first property should be open by default when a user land on the page
Done

On the collection page, the pagination is not properly included in the assets grid section but instead applyed to the all page
Fixed

Dedicated issue to finalize the UI work created > https://github.com/liteflow-labs/starter-kit/issues/155

closing to focus the review process exclusively on https://github.com/liteflow-labs/starter-kit/pull/158 that includes this already


internal security review

we're now close enough to feature complete that it's reasonable to start an internal code / security review! following from 0.8.0 changes should be substantially smaller and will managed through the standard pr / review process.
vendor/ directories should be considered out-of-scope as these (have|do|will) undergo the standard internal review process, and we're working to merge back changes until the vendored versions match upstream / are no longer required.
tasks / improvements (an incomplete list):

[x] add lockfiles
[x] add fmt, clippy
[ ] add APDU fuzzing
[ ] add miri tests (if we can get these running over core)
[ ] add security / reporting policy
[ ] resolve dependabot warnings

huh, yeah they're on the internal one / have updated lockfiles since:

https://github.com/mobilecoinofficial/ledger-mob/security/advisories
https://github.com/mobilecoinofficial/ledger-mob/security/dependabot

#10 i think should fix the 5th checkbox?


Make pd.read_csv_glob(s3_dir) work with s3fs>=2023.9.0

This is a follow-up issue to investigate why our tests started to fail after the new s3fs release (#6535).
The s3fs version was pinned by #6536, but we still need to investigate and fix the root cause and remove the pin

https://github.com/fsspec/s3fs/issues/783


Review the logs from running command

Discussed in https://github.com/ObsidianPublisher/obsidian-github-publisher/discussions/116

Originally posted by andrey-jef March 16, 2023
Hi,
Is there any way to store and review the notifications from running command, like which files were changed, published, error?
Currently, I have to open web browser to check the github repo, to be sure that certain files were uploaded to repo
I also acknowledge that there is an option to display all notifications in Obsidian at the runtime of plugin, but the notifications disappear too fast, can't read in details.

Fixed in 5.3.4 (30e131b)


Crash after dismissing share mail extension

After tapping the share button and selecting the mail or sms share extensions, the app systematically crashes when dismissing the view controller

I figured the issue. when the mail share extension is dismissed viewWillAppear gets called in skPhotoBrowser calling reloadData() which caused the bug.
I moved reloadData() to viewDidLoad() method and it 's working fine now

@fenomenar9 thanks your issue, and confirm bugs.
I confirmed and I found that problem is pagingScrollView will nil when viewDidDisappear called.
I tried to test and will fix this bug.

@fenomenar9  I fixed it at here. thanks!

Thank you very much :+1:


checkout.js docs

Description
Could anybody know where I can find complete checkout.js documentation for checkout button.
As specified on https://developer.paypal.com/demo/checkout/#/pattern/validation
I can use validate or onClick method, but there are not any information on github docs about these methods and their contracts.
Thanks.

Agreed. Your documentation is really sub-par and after reading that demo code, it's still not really clear how you do form validation before sending the user to paypal.com to authorize the payment.

Closing this issue; if you have a specific question, please feel free to open a new issue and we'll be glad to help. For now the demo app should give an idea of how validate() can be used.


Allow configuring an element to not be tracked by --track-all

See original issue on GitLab
In GitLab by [Gitlab user @TheRealMichaelCatanzaro] on Apr 11, 2018, 21:47
This might seem weird, but here is the problem. In https://gitlab.gnome.org/GNOME/gnome-build-meta/merge_requests/18 [Gitlab user @abderrahimk] says that the recommended workflow for GNOME developers using BuildStream should now be:
bst track base/freedesktop-sdk-junction.bst
bst track --deps all --except base.bst core/your-module.bst
bst build core/your-module.bst

or, a bit simpler:
bst track base/freedesktop-sdk-junction.bst
bst build --track-all --track-except base.bst core/your-module.bst

But this is really too hard, now. We should try to keep things as simple as possible. Previously, we had a nice workflow where bst build core/your-module.bst was equivalent to jhbuild buildone, and bst build --track-all core/your-module.bst was equivalent to jhbuild build. Having to do track separately would be OK, but having to remember extra args like --deps all --except base.bst is altogether too hard. Similarly, in the one-line version, --track-except base.bst adds too much typing.
One solution would be to somehow configure the project such that base.bst is always skipped when using --track-all or track --deps all, such that the only way to track it would be to run bst track base.bst. Maybe there are other solutions. Thoughts?

In GitLab by [Gitlab user @tristanvb] on Apr 12, 2018, 05:03
I think the solution to this is to disable cross junction tracking by default, unless a specific option is given.
Besides this, I've been thinking of "tracking profiles" for a long time, I'd like to have the project specify some profiles which can be specified by name at track time.
This way one could easily do things like:

Try the high level stack against refreshed low level dependencies
Try a new set of testing apps against the version of middleware you're testing

But a first step would be to make cross junction tracking disabled by default I think.

In GitLab by [Gitlab user @tristanvb] on Apr 12, 2018, 13:06
mentioned in commit 8d0b421528be94a61b8afdc2488f67d511871219

In GitLab by [Gitlab user @tristanvb] on Apr 12, 2018, 13:39
mentioned in commit fece8cc81e8d8412e32c6667682a33e7d2f9dafe

In GitLab by [Gitlab user @tristanvb] on Apr 12, 2018, 13:58
closed via commit fece8cc81e8d8412e32c6667682a33e7d2f9dafe


Prompt-Travel is not working anymore after I updated the extension

Hello, and thanks for your work.
Prompt-Travel works no longer on my configuration after the last update.
SYSTEM INFORMATION: Linux 6.4.8-arch1-1 x86_64
Browser: Mozilla Firefox 116.0
Traceback:
`2023-08-07 00:09:04,427 - ControlNet - INFO - ControlNet v1.1.234
[ControlNet-Travel] extension Mikubill/sd-webui-controlnet found, ControlNet-Travel loaded :)
Error loading script: controlnet_travel.py
Traceback (most recent call last):
  File "/home/fz/.virtualenv/stablediffusion/modules/scripts.py", line 256, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "/home/fz/.virtualenv/stablediffusion/modules/script_loading.py", line 11, in load_module
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/home/fz/.virtualenv/stablediffusion/extensions/stable-diffusion-webui-prompt-travel/scripts/controlnet_travel.py", line 44, in <module>
    from scripts.prompt_travel import *
  File "/home/fz/.virtualenv/stablediffusion/extensions/stable-diffusion-webui-prompt-travel/scripts/prompt_travel.py", line 34, in <module>
    from modules.prompt_parser import DictWithShape
ImportError: cannot import name 'DictWithShape' from 'modules.prompt_parser' (/home/fz/.virtualenv/stablediffusion/modules/prompt_parser.py)

Error loading script: prompt_travel.py
Traceback (most recent call last):
  File "/home/fz/.virtualenv/stablediffusion/modules/scripts.py", line 256, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "/home/fz/.virtualenv/stablediffusion/modules/script_loading.py", line 11, in load_module
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/home/fz/.virtualenv/stablediffusion/extensions/stable-diffusion-webui-prompt-travel/scripts/prompt_travel.py", line 34, in <module>
    from modules.prompt_parser import DictWithShape
ImportError: cannot import name 'DictWithShape' from 'modules.prompt_parser' (/home/fz/.virtualenv/stablediffusion/modules/prompt_parser.py)`

Could you please give me any support?
Thank you in advance

Please check your sd-webui version, and notice the "Change Log - Compatibility" section of README.md
This repo tracks changes from other repos to stay compatible with.
If you update this repo, you should also update at leaset the sd-webui to the version that documented.

you are right, I was running an outdated version of sd--webui.
Thank you.
I did not realize it because, being it in a virtualenv, it is not managed by my system's package manager.
The strange thing is that if I gave git pull inside the directory I got Already up to date.
I had to remove all of the directories and files, replace them with the cloned new ones, then python -m pip install -r requirements.txt and python  launch.py.
Anyway, thank you so much, you solved the pronlem.
And thanks for your awesome work.


Feature to check whether a website is running or not

Checks whether a web domain is up or not using isitup.org. Needs to learn 'Is xyz.com up', 'xyz.com status'.

Thanks for the feedback! Applied the proposed changes :)

Thanks @swapagarwal  :)

Congratulations! 🎉
Good work on your first pull request. 😄


Game crashes when opening Gourmand tab.

Both upon opening my test world as well as a brand new world, my game crashes when I try to view the Gourmand tab.
Running on 64 bit Windows 10.0.22631.0 with 32693 MB RAM
Game Version: v1.19.8 (Stable)
2024-10-01 4:20:03 PM: Critical error occurred in the following mod<EMAIL_ADDRESS>Loaded Mods<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Vintagestory.GameContent.MealMeshCache.GetPieMesh(ItemStack pieStack, ModelTransform transform) in VSSurvivalMod\Systems\Cooking\MealMeshCache.cs:line 149
at Vintagestory.GameContent.MealMeshCache.GetOrCreatePieMeshRef(ItemStack pieStack) in VSSurvivalMod\Systems\Cooking\MealMeshCache.cs:line 139
at Vintagestory.GameContent.BlockPie.OnBeforeRender(ICoreClientAPI capi, ItemStack itemstack, EnumItemRenderTarget target, ItemRenderInfo& renderinfo) in VSSurvivalMod\Block\BlockPie.cs:line 207
at Vintagestory.Client.NoObf.InventoryItemRenderer.GetItemStackRenderInfo(ClientMain game, ItemSlot inSlot, EnumItemRenderTarget target, Single dt) in VintagestoryLib\Client\Render\InventoryItemRenderer.cs:line 315
at Vintagestory.Client.NoObf.InventoryItemRenderer.RenderItemstackToGui(ItemSlot inSlot, Double posX, Double posY, Double posZ, Single size, Int32 color, Single dt, Boolean shading, Boolean origRotate, Boolean showStackSize) in VintagestoryLib\Client\Render\InventoryItemRenderer.cs:line 194
at Vintagestory.Client.NoObf.RenderAPIGame.RenderItemstackToGui(ItemSlot inSlot, Double posX, Double posY, Double posZ, Single size, Int32 color, Boolean shading, Boolean rotate, Boolean showStacksize) in VintagestoryLib\Client\API\RenderAPIGame.cs:line 274
at Vintagestory.API.Client.SlideshowItemstackTextComponent.RenderInteractiveElements(Single deltaTime, Double renderX, Double renderY, Double renderZ) in VintagestoryApi\Client\UI\Elements\Impl\Interactive\Text\Richtext\SlideshowItemstackTextComponent.cs:line 183
at Vintagestory.API.Client.GuiElementRichtext.RenderInteractiveElements(Single deltaTime) in VintagestoryApi\Client\UI\Elements\Impl\Interactive\Text\GuiElementRichtext.cs:line 484
at Vintagestory.API.Client.GuiComposer.Render(Single deltaTime) in VintagestoryApi\Client\UI\GuiComposer.cs:line 716
at Gourmand.Gui.GuiDialogPatch.OnRenderGUI(GuiDialogCharacter __instance, Single deltaTime, Int32& ___curTab, Matrixf& ___mat, Vec4f& ___lighPos, ElementBounds& ___insetSlotBounds, Single& ___yaw, Boolean& ___rotateCharacter)
at Vintagestory.Client.NoObf.GuiDialogCharacter.OnRenderGUI_Patch1(GuiDialogCharacter this, Single deltaTime)
at Vintagestory.Client.NoObf.GuiManager.OnRenderFrameGUI(Single deltaTime) in VintagestoryLib\Client\Systems\Gui\GuiManager.cs:line 318
at Vintagestory.Client.NoObf.ClientEventManager.TriggerRenderStage(EnumRenderStage stage, Single dt) in VintagestoryLib\Client\Util\ClientEventManager.cs:line 186
at Vintagestory.Client.NoObf.ClientMain.TriggerRenderStage(EnumRenderStage stage, Single dt) in VintagestoryLib\Client\ClientMain.cs:line 809
at Vintagestory.Client.NoObf.ClientMain.RenderToDefaultFramebuffer(Single dt) in VintagestoryLib\Client\ClientMain.cs:line 1013
at Vintagestory.Client.ScreenManager.Render(Single dt) in VintagestoryLib\Client\ScreenManager.cs:line 676
at Vintagestory.Client.ScreenManager.OnNewFrame(Single dt) in VintagestoryLib\Client\ScreenManager.cs:line 651
at Vintagestory.Client.NoObf.ClientPlatformWindows.window_RenderFrame(FrameEventArgs e) in VintagestoryLib\Client\ClientPlatform\GameWindow.cs:line 88
at OpenTK.Windowing.Desktop.GameWindow.Run()
at Vintagestory.Client.ClientProgram.Start(ClientProgramArgs args, String[] rawArgs) in VintagestoryLib\Client\ClientProgram.cs:line 324
at Vintagestory.Client.ClientProgram.<>c__DisplayClass9_0.<.ctor>b__1() in VintagestoryLib\Client\ClientProgram.cs:line 128
at Vintagestory.ClientNative.CrashReporter.Start(ThreadStart start) in VintagestoryLib\Client\ClientPlatform\ClientNative\CrashReporter.cs:line 93
at Vintagestory.API.Client.GuiComposer.Render(Single deltaTime) in VintagestoryApi\Client\UI\GuiComposer.cs:line 716
at Gourmand.Gui.GuiDialogPatch.OnRenderGUI(GuiDialogCharacter __instance, Single deltaTime, Int32& ___curTab, Matrixf& ___mat, Vec4f& ___lighPos, ElementBounds& ___insetSlotBounds, Single& ___yaw, Boolean& ___rotateCharacter)
at Vintagestory.Client.NoObf.GuiDialogCharacter.OnRenderGUI_Patch1(GuiDialogCharacter this, Single deltaTime)
at Vintagestory.Client.NoObf.GuiManager.OnRenderFrameGUI(Single deltaTime) in VintagestoryLib\Client\Systems\Gui\GuiManager.cs:line 318
at Vintagestory.Client.NoObf.ClientEventManager.TriggerRenderStage(EnumRenderStage stage, Single dt) in VintagestoryLib\Client\Util\ClientEventManager.cs:line 186
at Vintagestory.Client.NoObf.ClientMain.TriggerRenderStage(EnumRenderStage stage, Single dt) in VintagestoryLib\Client\ClientMain.cs:line 809
at Vintagestory.Client.NoObf.ClientMain.RenderToDefaultFramebuffer(Single dt) in VintagestoryLib\Client\ClientMain.cs:line 1013
at Vintagestory.Client.ScreenManager.Render(Single dt) in VintagestoryLib\Client\ScreenManager.cs:line 676
at Vintagestory.Client.ScreenManager.OnNewFrame(Single dt) in VintagestoryLib\Client\ScreenManager.cs:line 651
at Vintagestory.Client.NoObf.ClientPlatformWindows.window_RenderFrame(FrameEventArgs e) in VintagestoryLib\Client\ClientPlatform\GameWindow.cs:line 88
at OpenTK.Windowing.Desktop.GameWindow.Run()
at Vintagestory.Client.ClientProgram.Start(ClientProgramArgs args, String[] rawArgs) in VintagestoryLib\Client\ClientProgram.cs:line 324
at Vintagestory.Client.ClientProgram.<>c__DisplayClass9_0.<.ctor>b__1() in VintagestoryLib\Client\ClientProgram.cs:line 128
at Vintagestory.ClientNative.CrashReporter.Start(ThreadStart start) in VintagestoryLib\Client\ClientPlatform\ClientNative\CrashReporter.cs:line 93

Thanks for the detailed report. I see that you used<EMAIL_ADDRESS>and<EMAIL_ADDRESS>I was previously testing with<EMAIL_ADDRESS>and<EMAIL_ADDRESS>because they happened to be what I downloaded a while ago.
Now that I tried with the newest versions like you did, I get the same crash on Linux.

I reproduced it in the debugger. It's crashing when it tries to show a pie with an ingredient of expandedfoods:soulstormbrew-slop. soulstormbrew-slop has the food category of NoNutrition. The game is trying to look up the pie texture, but there is no entry in the array for NoNutrition, so it throws the array index exception instead.

Gourmand is trying to make a pie out of everything that has inPiePropertiesByType.partType = "Filling". The EFRecipes mod recently set that on the soulstormbrew-slop.

I'll workaround this in Gourmand by excluding all pie fillings that have NoNutrition from the achievement, so that the Gourmand tab no longer tries to display them.
Can you test whether such a pie can be created in vanilla and whether it also crashes the game? I'm suspecting that ExpandedFoods introduced a new pie of death.

Lovely, ExpandedFoods also has a typo in its nutritionPropsWhenInMealByType definition. I spent 30 minutes trying to figure out why I couldn't find the nutritionPropsWhenInMeal attribute on soulstormbrew-slop. The @-(slop|refinedslop) should have been @*-(slop|refinedslop). However, that doesn't affect whether the pie crashes; it just makes it slightly more annoying for me to filter it out.
                nutritionPropsWhenInMealByType: {
                        "@-(slop|refinedslop)": {
                                health: -10,
                                foodcategory: "NoNutrition"
                        },
                        "*-basic": {
                                satiety: -100,
                                health: 10,
                                foodcategory: "NoNutrition"
                        },
                },


Speed-up parsing

It currently takes about 2 seconds to read a 1000-customer instance without explicit matrix:
In [73]: %timeit vrplib.read_instance(f"tmp/X-n1001-k43.txt")
2.14 s ± 44 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)

This is slow. I think it's mainly due to computing the Euclidean distances. For example, another 1000 customer instance with explicit matrix reads much faster:
In [76]: %timeit vrplib.read_instance(f"tmp/Loggi-n1001-k31.txt")
246 ms ± 8.88 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)

See https://www.dabblingbadger.com/blog/2020/2/27/implementing-euclidean-distance-matrix-calculations-from-scratch-in-python.


Integration with SpectorJS markers

Cool. Can you update the PR description with what this does and maybe include screenshots of it in action please?


Delete old files on opening, if they are corrupted

This is a feature request rather than a bug.
Since there is no way to recover from a corrupt database file, it would be nice to have a .deleteCorruptFile() option when attempting to open a database.   If the database file is not corrupt then the database is opened, otherwise the database file is deleted and a fresh database file is opened.
Chris

Moved to TODO list, closing.


LOCAL variables are ignored

@nrnhines reported issue with LOCAL variables that are ignored during code generation.
The workaround is to define them as ASSIGNED.

@iomaganaris : we said this will be straightforward, right?

I think that there were some more details that you would like to add on that but I am not sure. In the end, if I have understood and remember correctly we want those variables to be printed in the <modfile_name>_Instance structure so that all the different instances of the modfile are able to write them without any race condition?

The major issue between NEURON's nmodl p array and the mod2c p array is that they had to be
the same size in order for nrn_setup.cpp to copy the data from one to the other. That made it difficult to
increase the size on the mod2c side to handle automatic promotion of GLOBAL and LOCAL to RANGE.
Now that the <modfile_name>_Instance is name based it may be not so hard to to modify nrn_setup.cpp
to handle the effect of different sizes (ie. the copy from nrnbbcore_write to nrn_setup.cpp assumed
all the instances were laid end to end). I suppose the copy will not have to take place instance by
instance.

During the visit we discuss related item here: https://bbpteam.epfl.ch/project/issues/browse/HPCTM-1244


fixed invite link bug

Fixed a bug in the index page which caused invite link to fail

Hello @manishb356 , I have reviewed your code.
The part of the code that you have edited was supposed to get the URL, split it and obtain the invite code from the given URL. After obtaining the invite code, that invite code is appended to the current URL and the user is redirected to the current URL + invite code.
Instead of obtaining the invite code your code is directly appending the URL with invite code to the current URL.
Simply,
Expected: Current URL + invite code
Your Code: Current URL + Current URL + invite code

Thanks for the time you have invested for this project. I'm closing this pull request.


fail2ban: 0.10.2 -> <IP_ADDRESS>

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/fail2ban/versions.
These checks were done:

built on NixOS
ran ‘/nix/store/iwbizr0g8f6wb5243l5730sdgb3nbjqk-fail2ban-<IP_ADDRESS>/bin/fail2ban-python -h’ got 0 exit code
ran ‘/nix/store/iwbizr0g8f6wb5243l5730sdgb3nbjqk-fail2ban-<IP_ADDRESS>/bin/fail2ban-python --help’ got 0 exit code
ran ‘/nix/store/iwbizr0g8f6wb5243l5730sdgb3nbjqk-fail2ban-<IP_ADDRESS>/bin/.fail2ban-client-wrapped -h’ got 0 exit code
ran ‘/nix/store/iwbizr0g8f6wb5243l5730sdgb3nbjqk-fail2ban-<IP_ADDRESS>/bin/.fail2ban-client-wrapped --help’ got 0 exit code
ran ‘/nix/store/iwbizr0g8f6wb5243l5730sdgb3nbjqk-fail2ban-<IP_ADDRESS>/bin/fail2ban-client -h’ got 0 exit code
ran ‘/nix/store/iwbizr0g8f6wb5243l5730sdgb3nbjqk-fail2ban-<IP_ADDRESS>/bin/fail2ban-client --help’ got 0 exit code
ran ‘/nix/store/iwbizr0g8f6wb5243l5730sdgb3nbjqk-fail2ban-<IP_ADDRESS>/bin/.fail2ban-regex-wrapped -h’ got 0 exit code
ran ‘/nix/store/iwbizr0g8f6wb5243l5730sdgb3nbjqk-fail2ban-<IP_ADDRESS>/bin/.fail2ban-regex-wrapped --help’ got 0 exit code
ran ‘/nix/store/iwbizr0g8f6wb5243l5730sdgb3nbjqk-fail2ban-<IP_ADDRESS>/bin/fail2ban-regex -h’ got 0 exit code
ran ‘/nix/store/iwbizr0g8f6wb5243l5730sdgb3nbjqk-fail2ban-<IP_ADDRESS>/bin/fail2ban-regex --help’ got 0 exit code
ran ‘/nix/store/iwbizr0g8f6wb5243l5730sdgb3nbjqk-fail2ban-<IP_ADDRESS>/bin/.fail2ban-server-wrapped -h’ got 0 exit code
ran ‘/nix/store/iwbizr0g8f6wb5243l5730sdgb3nbjqk-fail2ban-<IP_ADDRESS>/bin/.fail2ban-server-wrapped --help’ got 0 exit code
ran ‘/nix/store/iwbizr0g8f6wb5243l5730sdgb3nbjqk-fail2ban-<IP_ADDRESS>/bin/fail2ban-server -h’ got 0 exit code
ran ‘/nix/store/iwbizr0g8f6wb5243l5730sdgb3nbjqk-fail2ban-<IP_ADDRESS>/bin/fail2ban-server --help’ got 0 exit code
found <IP_ADDRESS> with grep in /nix/store/iwbizr0g8f6wb5243l5730sdgb3nbjqk-fail2ban-<IP_ADDRESS>
directory tree listing: https://gist.github.com/3b1b92178d21ce7b05d59b7e88a6620c

cc @edolstra @lovek323 @fpletz for review

Success on x86_64-darwin (full log)
Attempted: fail2ban
Partial log (click to expand)
Successfully installed fail2ban-0.10.3.fix1
/private/tmp/nix-build-fail2ban-<IP_ADDRESS>.drv-0/source
post-installation fixup
strip is /nix/store/0fzpxnsanc02i4jsb1yhchjp4p62b2n3-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/rf7hrw2dnwqrf2pbwb797whdbirdnspd-fail2ban-<IP_ADDRESS>/lib  /nix/store/rf7hrw2dnwqrf2pbwb797whdbirdnspd-fail2ban-<IP_ADDRESS>/bin
patching script interpreter paths in /nix/store/rf7hrw2dnwqrf2pbwb797whdbirdnspd-fail2ban-<IP_ADDRESS>
wrapping `/nix/store/rf7hrw2dnwqrf2pbwb797whdbirdnspd-fail2ban-<IP_ADDRESS>/bin/fail2ban-client'...
wrapping `/nix/store/rf7hrw2dnwqrf2pbwb797whdbirdnspd-fail2ban-<IP_ADDRESS>/bin/fail2ban-regex'...
wrapping `/nix/store/rf7hrw2dnwqrf2pbwb797whdbirdnspd-fail2ban-<IP_ADDRESS>/bin/fail2ban-server'...
wrapping `/nix/store/rf7hrw2dnwqrf2pbwb797whdbirdnspd-fail2ban-<IP_ADDRESS>/bin/fail2ban-testcases'...

Success on aarch64-linux (full log)
Attempted: fail2ban
Partial log (click to expand)
shrinking /nix/store/48zjdj7sr2x5k52dl7158qrc7bfckk62-fail2ban-<IP_ADDRESS>/bin/fail2ban-python
strip is /nix/store/3zq400fri5dv7d30lpxlqm2v9y1iis6j-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/48zjdj7sr2x5k52dl7158qrc7bfckk62-fail2ban-<IP_ADDRESS>/lib  /nix/store/48zjdj7sr2x5k52dl7158qrc7bfckk62-fail2ban-<IP_ADDRESS>/bin
patching script interpreter paths in /nix/store/48zjdj7sr2x5k52dl7158qrc7bfckk62-fail2ban-<IP_ADDRESS>
checking for references to /build in /nix/store/48zjdj7sr2x5k52dl7158qrc7bfckk62-fail2ban-<IP_ADDRESS>...
wrapping `/nix/store/48zjdj7sr2x5k52dl7158qrc7bfckk62-fail2ban-<IP_ADDRESS>/bin/fail2ban-client'...
wrapping `/nix/store/48zjdj7sr2x5k52dl7158qrc7bfckk62-fail2ban-<IP_ADDRESS>/bin/fail2ban-regex'...
wrapping `/nix/store/48zjdj7sr2x5k52dl7158qrc7bfckk62-fail2ban-<IP_ADDRESS>/bin/fail2ban-server'...
wrapping `/nix/store/48zjdj7sr2x5k52dl7158qrc7bfckk62-fail2ban-<IP_ADDRESS>/bin/fail2ban-testcases'...
/nix/store/48zjdj7sr2x5k52dl7158qrc7bfckk62-fail2ban-<IP_ADDRESS>

Success on x86_64-linux (full log)
Attempted: fail2ban
Partial log (click to expand)
shrinking RPATHs of ELF executables and libraries in /nix/store/iwbizr0g8f6wb5243l5730sdgb3nbjqk-fail2ban-<IP_ADDRESS>
shrinking /nix/store/iwbizr0g8f6wb5243l5730sdgb3nbjqk-fail2ban-<IP_ADDRESS>/bin/fail2ban-python
strip is /nix/store/fzcs0fn6bb04m82frhlb78nc03ny3w55-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/iwbizr0g8f6wb5243l5730sdgb3nbjqk-fail2ban-<IP_ADDRESS>/lib  /nix/store/iwbizr0g8f6wb5243l5730sdgb3nbjqk-fail2ban-<IP_ADDRESS>/bin
patching script interpreter paths in /nix/store/iwbizr0g8f6wb5243l5730sdgb3nbjqk-fail2ban-<IP_ADDRESS>
checking for references to /tmp/nix-build-fail2ban-<IP_ADDRESS>.drv-0 in /nix/store/iwbizr0g8f6wb5243l5730sdgb3nbjqk-fail2ban-<IP_ADDRESS>...
wrapping `/nix/store/iwbizr0g8f6wb5243l5730sdgb3nbjqk-fail2ban-<IP_ADDRESS>/bin/fail2ban-server'...
wrapping `/nix/store/iwbizr0g8f6wb5243l5730sdgb3nbjqk-fail2ban-<IP_ADDRESS>/bin/fail2ban-regex'...
wrapping `/nix/store/iwbizr0g8f6wb5243l5730sdgb3nbjqk-fail2ban-<IP_ADDRESS>/bin/fail2ban-testcases'...
wrapping `/nix/store/iwbizr0g8f6wb5243l5730sdgb3nbjqk-fail2ban-<IP_ADDRESS>/bin/fail2ban-client'...


Switch 'primary' to 'secondary'

Text incorrectly referred to read-only replica in 'primary' location for the 'secondary' location.

@jasonbrome : Thanks for your contribution! The author, @anosov1960, has been notified to review your proposed change.

@MashaMSFT please review

Hi @jasonbrome , thank you for your contribution! You are correct, and the line should read secondary. Thanks again! #sign-off

@MashaMSFT: I'm sorry - only the author of this article, @anosov1960, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.


Relocate Test_Scenarios

There are several parts to this.   And we should discuss before anyone actually attempts this.

Move generic3g/tests/scenarios to gridcomps/cap3g/tests
Change references to SimpleLeaf and SimpleParent gridcomps to instead use ConfigurableGridComp.
Change Test_Scenarios to use cap3g - simplify setup.

Thinking about this further.    We need to distinguish between tests of Generic vs tests of History/ExtData.   Of necessity, the latter will exercise the former, but tests of the former are focused on different aspects.
Closing this ticket.


After installing tensorflow-rocm whl v 0.0.1

Describe the problem
I tried to install tensorflow. So i installed the whl.. but its version 0.0.1. After I install this whl how do i efectivly install tensorflow ? Thank you for your time.
Source code / logs
pip3 install tensorflow-rocm
Collecting tensorflow-rocm
Using cached https://files.pythonhosted.org/packages/d6/b5/f14d48711d276f2391c944ecda0bc94bc44c0c168ac0a0208bb730886fe8/tensorflow_rocm-0.0.1-py3-none-any.whl
Installing collected packages: tensorflow-rocm
Successfully installed tensorflow-rocm-0.0.1

@alexja14 You probably want to disable your pip cache with --no-cache-dir. For example:
pip3 --no-cache-dir install tensorflow-rocm

The latest released version if 1.10.1:
https://pypi.org/project/tensorflow-rocm/#history

@alexja14 I believe the answer above should get your issue resolved. I'm closing this ticket hereby. Please feel free to re-open it, or create new tickets should you find other issues. Thanks.

It seems there could be some issue in your Python installation. Could you try with:
pip3 --no-cache-dir -vvv install tensorflow-rocm

to see what's causing the error that version 1.10.1 is not picked up?

Skipping link https://files.pythonhosted.org/packages/7b/60/ba3b183169a0ecb9359b7d99d1e60e257cb2d964284bc022fb9153c1afcc/tensorflow_rocm-1.10.1-cp27-cp27mu-manylinux1_x86_64.whl#sha256=9bb91f875e076d9ac88bccf2364f4840be7a934883a2644db282f064aa16339e (from https://pypi.org/simple/tensorflow-rocm/); it is not compatible with this Python
I got : python3 -V
Python 3.6.6

/cc @parallelo for awareness
@alexja14 in your log was tensorflow_rocm-1.10.1-cp35-cp35m-manylinux1_x86_64.whl checked? it'd be great if you could post the entire log here.
if true, this could be a genuine issue that PIP package generate for Python 3.5 is not compatible with Python 3.6. please help re-open this ticket and we'll need to address it.


Implement hamburger menu for mobile navigation

Framework/code-stack
React
Scope
Core application
Description
In the current implementation, the navigation links present in the navbar are not  accessible in the mobile view. Specifically, when viewing the website on mobile devices, the navigation links become hidden , hindering user navigation and experience.
Expected Behavior:
In the mobile view, users should be able to access the navigation links conveniently, typically through a collapsible hamburger menu icon that expands to reveal the links when clicked or tapped.
Screenshots

Additional Context
No response

I can take up this issue @sadanandpai

Can i also  on this issue if its not completed @sadanandpai .

Hi @rutupatel53, if you are interested, you can take on this task. I will try to take up some other issue.

Thank you @Akhil017  .if you haven't started yet working on this issue than i want to do it if you don't mind.


Move Valid RegExs from CC Widget to CC Add-In

[x] Review RegEx used in Coordinate Conversion Distance and Direction Widget
Reconfigure each notation's regular expression in the add-in to mirror what's in the widget

[x] DD
[x] DMS
[x] DDM
[x] GARS
[x] MGRS
[x] USNG
[x] UTM

Use test json files from the widget in unit tests in add-in

[x] DD
[x] DMS
[x] DDM
[x] GARS
[x] MGRS
[x] USNG
[x] UTM

If needed, refactor code to accommodate for new entries added to add-in regular expressions

@kgonzago can you give an update on where we are with this task?

@topowright combining regex's now. somewhat tedious process.

The use of regex group names in the add-in is tightly coupled with the the logic of parsing coordinates for each notation. This is the same situation for the widget utilizing indexes instead. I recommend we leave them as is for now and work towards a common .net and JS libraries for regexs.
@topowright @lfunkhouser @dfoll @ACueva Whare are your thoughts?

After talking with @csmoore, the approach going forward is to compile the CC library dll as a nuget package. The CC nuget package will then be uploaded to the MS nuget repository. Any subsequent changes will be reflected in a newly created CC nuget that will be available in the MS nuget repository. Any developer that wants to enhance any of our add-ins will be required to download via nuget the CC dll. Here is infomation on nuget.

@kgonzago I am interested in understanding in how we will track this work. Are we able to use this issue as the issue to track the workings on getting the library into Nuget?
If so does this link identify that process:
https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package-using-visual-studio
If that is the process to get our library into Nuget do we need to do anything else before moving forward? It sounds pretty clear on what the approach is, but I am confused on the steps that we will have to take in order to finish this effort.

Yes that link you provided is the process for packaging the CC dll. Here are the high-level steps whenever a change is made to CC:

Create nuget package in VS
Upload to nuget repository (this can be tied into a build event)
Internal and externals devs will need to download the latest package using nuget package manager in VS

As for our build process, we can use the nuget api to download, unzip, and copy the dll in the appropriate directory for our add-ins to reference. Currently, the symbol editor has a directory called dependency that houses this dll. We can follow that same convention with the D&D and Viz add-ins.

[ ] Add coordinate conversion  library as a referance

After talking with @csmoore, nuget approach would not work in a classified environment. Pivoted to the approach of adding CC as a project reference. This approach is used for Military Tools add-ins.

Add CC project reference to there add-ins:

[ ] MSE
[ ] D&D
[ ] VIz

Starting to build MSE with Jenkins

We found an issue with the Jenkins build that calls for a change in the CC library which @kgonzago has figured out and is working on. This took some time, but we now are moving forward.

MSE Pro add-in, Viz Pro and ArcMap add-in are complete. Tackling D&D Pro and ArcMap add-in now.

Add-ins (Pro and ArcMap) for MSE, Viz, and D&D have been updated to use the Coordinate Conversion library.

@topowright I removed the list for Jenkins build since that can be moved into a separate issue.

@ACueva @dfoll testing can commence once the build is updated.

FYI @topowright
Update Jenkins Build to pull CC Library for these Add-ins

[ ] Distance and Direction
[ ] Visibility
[ ] Military Symbol Editor (in progress)

Currently finishing up MSE

Finished working on MSE and moving on to Distance and Direction. @ACueva is working on Visibility.

@BobBooth @ACueva @dfoll MSE can now be tested from the build location on the server.

Distance and Direction has been finished and can be tested for Dark Theme and Reg Ex expressions

Updating title of issue.The DD widget RegExs were used because they were more up to date than CC widget RegExs. JSON files were used from the widget to test  CC library.

This issue was moved to Esri/military-tools-desktop-addins#43


Add body tag to example html

Thank you for this excellent work! The example does not compile and run, and gives the following error:
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.41s
2024-06-04T08:06:09.593807Z ERROR ❌ error
error from build pipeline

Caused by:
    0: HTML build pipeline failed (1 errors), showing first
    1: failed to finalize asset pipeline
    2: Document has neither a <link data-trunk rel="rust"/> nor a <body>. Either one must be present.

Adding the body tag to index.html fixes the build error.

Thanks for the contrib @fredclausen! I've noticed that Trunk has introduced this breaking change recently.


pccclient run error when follow Readme

i follow Readme and test PCC
$ ./app/pccserver recv 1234
$ ./app/pccclient send <IP_ADDRESS> 1234 Vivace

but pccclient soonly run error and stop. the message is shown below
Reset to Vivace Sender
Using Utility Function: Vivace
connect
finished connect
SendRate(Mb/s)  RTT(ms) CTotal  Loss    RecvACK RecvNAK
1       401.236 0.204015        37021   109
pccclient: pcc_vivace_sender.cpp:306: QuicBandwidth PccVivaceSender::ComputeRateChange(const std::vector<UtilityInfo>&): Assertion `!delta_sending_rate.IsZero()' failed.
Aborted (core dumped)

how can i slove this bug? Thanks if you would like to give some advice.

Hi,
How did you solve it?
I get the same error all the time:
pccclient: pcc_vivace_sender.cpp:306: QuicBandwidth PccVivaceSender::ComputeRateChange(const std::vector&): Assertion `!delta_sending_rate.IsZero()' failed.
Aborted (core dumped)

i guess the problem is that in local network, the rtt is extremely low, so pcc cannot calculate rate correctly.
i solve the problem by creating a virutal network between the sender and receiver. i use mahimahi to create the network, and set the delay to be 10ms or higher. mahimahi can be installed in ubuntu by running sudo apt install mahimahi
another method is to test sender and receiver on two individual PC under the same  LAN, it also works.

Any information on how mahimahi can be used to create the network where sender and receiver can run?


Centering and zooming map; rotating map.

Mapsui Version: 4.0.0
Mapsui Platform: Android/iOS
When the map appears I expect it to be centered and zoomed in and it doesn't happen.
                    <mapsui:MapView x:Name="mapView"
                        Grid.Row="0" Grid.Column="0"
                        IsMyLocationButtonVisible="True"
                        IsNorthingButtonVisible="True"
                        IsZoomButtonVisible="True"
                        RotationLock="False" />

        public static IUrlPersistentCache DefaultCache { get; set; }

        public Maps()
        {
            InitializeComponent();
        }

        protected override async void OnAppearing()
        {
            base.OnAppearing();

            mapView.Map = CreateMap();

            Mapsui.Widgets.ScaleBar.ScaleBarWidget scale = new Mapsui.Widgets.ScaleBar.ScaleBarWidget(mapView.Map)
            {
                TextAlignment = Alignment.Center,
                HorizontalAlignment = HorizontalAlignment.Center,
                VerticalAlignment = VerticalAlignment.Top
            };
            mapView.Map.Widgets.Add(scale);

            mapView.Map.Layers.Add(await CreateXYZAsync());

            int zoom = 16;
            Position position = new Position(42, 12.);
            MPoint point = position.ToMapsui();
            mapView.Map.Navigator.CenterOn(point.X, point.Y);
            IReadOnlyList<double> resolutions = mapView.Map.Navigator.Resolutions;
            mapView.Map.Navigator.ZoomTo(resolutions[zoom - 1]);
        }

        public Map CreateMap()
        {
            var map = new Map {
                CRS = "EPSG:3857"
            };

            return map;
        }

        public static Task<ILayer> CreateXYZAsync()
        {
            HttpTileSource tileSourceXYZ = new HttpTileSource(
                new GlobalSphericalMercator(),
                urlFormatter: "https://tile.openstreetmap.org/{z}/{x}/{y}.png",
                serverNodes: null,
                name: "layerXYZ",
                attribution: new BruTile.Attribution("attributions"),
                tileFetcher: GetPageDataAsync);
            TileLayer tileLayerXYZ = new TileLayer(tileSourceXYZ)
            {
                Name = "layerXYZ"
            };
            return Task.FromResult<ILayer>(tileLayerXYZ);
        }

        public static async Task<byte[]> GetPageDataAsync(Uri uri)
        {
            using (HttpClient client = new HttpClient())
            {
                ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(delegate { return true; });
                if (uri.AbsoluteUri.StartsWith("https"))
                    ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

                HttpResponseMessage response = null;
                Task.Run(() =>
                {
                    client.DefaultRequestHeaders.TryAddWithoutValidation("User-Agent", "MyApp");
                    response = client.GetAsync(uri).Result;
                }).Wait();

                if (response.IsSuccessStatusCode)
                {
                    HttpContent content = response.Content;
                    Stream contentStream = await content.ReadAsStreamAsync();
                    MemoryStream memoryStream = new MemoryStream();
                    contentStream.CopyTo(memoryStream);
                    return memoryStream.ToArray();
                }
                else
                {
                    // TO DO
                    return null;
                }
            }
        }

The hard part of initializing the map is that is depends on initialization of the parent components. Navigating too early will have no effect. The Map.Home method was added for this purpose. It is called after the parent is initialized component is initialized.
map.Home = n =>
{
   n.CenterOnAndZoomTo(.....);
};

The rotation is a different issue.

Thanks for the explanation and solution.
Do you think rotation may be a bug?

Could you create a separate issue or discussion about the rotation and close this one if this solves the problem with

The hard part of initializing the map is that is depends on initialization of the parent components. Navigating too early will have no effect. The Map.Home method was added for this purpose. It is called after the parent is initialized component is initialized.

map.Home = n =>

{

   n.CenterOnAndZoomTo(.....);

};

The rotation is a different issue.

Thanks for the reply.
My need is a bit different. I wanted to use zoom ratio to rescale the pin icon

CenterOnAndZoomTo doesn't work. More, pins icon are smaller when you zoom!
Any chance to have a solution?

Do you have some images or code to show?


Error: "Error: no URL specified!"

Input:
curl \
  -X POST \
  -H "Accept: application/vnd.github+json" \
  -H "Authorization: token <TOKEN>" \
  "https://api.github.com/orgs/ORG/repos" \
  -d '{"name":"Hello-World","description":"This is your first repository","homepage":"https://github.com","private":false,"has_issues":true,"has_projects":true,"has_wiki":true}'

Expected output:

This was the same issue I ran into, thank you for keeping this open. I think a more specific error message would be beneficial as well.


Add optional commandline hyperparameter arguments

Added optional arguments to adjust hyperparameters when running the SOA bot via run_bot.py (used by Singularity /Docker to run bots).

How does the argument passing work if you didn't add arguments to run() in run_bot.py?

I believe they're passed into asyncio.run() on lines 353-358 of run_bot.py (lines after changes made).

How does the argument passing work if you didn't add arguments to run() in run_bot.py?

I believe they're passed into asyncio.run() on lines 353-358 of run_bot.py (lines after changes made).

Sorry! I had the function name wrong. I meant launch. The function signature doesn't have any new parameters.

A couple of things:

Please avoid squashing during a PR. It makes review more difficult.
Your rebase went wrong somewhere. I'm not sure what the problem is just from seeing it.
You need to resolve some merge conflicts.
Passing parameters into launch this way doesn't help and just makes it more confusing. The problem is that the signature for launch needs to be modified the same way it was modified to add the aggressiveness parameter. You need to add all the new parameters as well.


Scroll position is restored when not needed

I found a bug in scroll position restoration in found library.
The scroll position is stored in Session storage:
@@scroll|/vg = [0,666.5]

where /vg is the page path.
If a user opens a page, then goes to the URL bar and enters another page URL, then goes to the URL bar again and enters the initial page URL — the page loads and the scroll is at where the user left it initially, not at the top of the page, because Session storage still has that entry. And the entry has no random-generated hash or anything.

That's a good catch. The issue here is that the initial location doesn't get supplemented with a randomly-generated key, as we didn't want to trigger an immediate navigation action on page load.
Not quite sure how to deal with this one.
That said, this isn't specific to Found. The same thing will happen on e.g. most sites that use anything like this logic for determining page key, including Gatsby sites. You can see this behavior on e.g. https://reactjs.org.
cc @KyleAMathews @jquense – older versions of React Router actually would immediately redirect to a version of the page with a random key set on load, but I think users tended to not like that behavior much. Not sure what the best way to deal with it is. I don't think there's a way to deal with it inside this library, though, but it is a weird bug.

@taion Yeah, I recall that in react-router@3 every location had its own random-generated key and I didn't like the idea of having it.
For the current situation, I was thinking about clearing all @@scroll| keys from Session storage on page load:
window.onload = function onPageLoad() {
  forEach((key) => {
    if (key.indexOf('@@scroll|') === 0) {
      sessionStorage.removeItem(key)
    }
  }
}

function forEach(func) {
  let i = 0
  while (i < sessionStorage.length) {
    const key = sessionStorage.key(i)
    func(key)
    i++
  }
}

That's not quite the same, though. To emulate native browser scroll behavior, you do want to preserve scroll position if someone reloads the page.

@taion Aaah, I see.

And to be clear, we do still attach keys on navigation to locations after the first. But we don't do this for the first location because it would require triggering a history action to get it stamped on.

Whats wrong with storing a random key on each location entry?
That makes perfect sense to me - a key to identify each one so that even if the URL is the same, there is something to distinguish 2 separate location entries that should not share the same scroll position.
Hard to see how this library could work properly if the locations provided to it are not unique.

Farce adds unique keys to all locations that it generates.
However, for the initial page load, I'm not aware of a way to update the location state. Old versions of history used to deal with this by immediately calling replaceState, but that led to weird bugs.

What kind of bugs did it cause?

I honestly can't remember any more. It was enough that they took it out in history v4, though.


Compile error with Arduino ESP32 release 2.0.8

Hi,
with the new Arduino ESP32 release 2.0.8 this library does not longer compiles due to using __FlashStringHelper
For reference see
https://github.com/espressif/arduino-esp32/issues/8108
https://github.com/espressif/arduino-esp32/pull/7941
Any way to get arround this bug (feature)?

Any way to get arround this bug (feature)?

Yes: https://github.com/espressif/arduino-esp32/pull/8111

Hi,
I have the same problem:
https://forum.arduino.cc/t/macro-f-error/1118126/8
The implementation of the F() macro was changed in ESP32 core version 2.0.8.
It is now

#define F(string_literal) (string_literal)
instead of casting to const __FlashStrinHelper *.
This breaks use cases like

const __FlashStringHelper *MFRC522::GetStatusCodeName(MFRC522::StatusCode code  ///< One of the StatusCode enums.
                                        ) {
    switch (code) {
        case STATUS_OK:             return F("Success.");
        case STATUS_ERROR:          return F("Error in communication.");
        ...
        default:                    return F("Unknown error");
    }
} // End GetStatusCodeName()

Until the solution, downgrade to ESP32 core 2.0.7.

Until the problem is solved in this library you can use my fork
https://github.com/tueddy/rfid.git
Or change "__FlashStringHelper " to "char" and remove "F()", see changes here: https://github.com/miguelbalboa/rfid/compare/master...tueddy:rfid:master

Had same problem.  Change F(“X”) in “return” statements in MFRC522.cpp to “((__FlashStringHelper *) “X”)” and all works fine with ESP32 2.0.8.

Problem is fixed with Arduino 2.0.9 (PlatformIO Package 6.3.0)


Latest zkSolc version is not working with the verification package

Hi guys, I was working and deploying a new contracts and I found an error trying to verify the contracts using the latest version of zkSolc

If I just go back to the 1.3.14 version everything works.

Hello @ogarciarevett ,
Check this out: https://zksync2-testnet-explorer.zksync.dev/contract_verification/43899
An error is received on the BE side during verification, where the new version is still unknown. We notice this issue and it will be resolved asap.

Hi! Same error but bow with the latest version v1.3.17


chore: react-native 0.76

📜 Description

💡 Motivation and Context

📢 Changelog

JS

iOS

Android

🤔 How Has This Been Tested?

📸 Screenshots (if appropriate):

📝 Checklist

[ ] CI successfully passed
[ ] I added new mocks and corresponding unit-tests if library API was changed

Opened an issue in RN: https://github.com/facebook/react-native/issues/47307
Currently merge is blocked by this issue


Fixed 450_YOLOv9-Wholebody-with-Wheelchair

I fixed the following problems.

Filename of download script has blank space. So, I fixed it. https://github.com/PINTO0309/PINTO_model_zoo/commit/ccf1bb989247ac41a8c5389e4fef8ca34c84d4c0
Some scripts had incorrect model URLs. So, I fixed it. https://github.com/PINTO0309/PINTO_model_zoo/commit/6a7e780d08e51f2465921379240126232ca5cc2c

Thanks!


Remove Deprecations for PHP 8.1 / ditch PHP 5.6 and 7.0

Removes the deprecation notices raised by PHP 8.1.
And ditch very end of life PHP versions 5.6 and 7.0 to support the missing return types that raised the deprecation notices in PHP 8.1.
Also fixes a small bug inside Azure::checkResponse() that was found by the static code analysis.
See #154

Some news on this PR ?

BTW: I wrote a comment in getResourceOwnerDetailsUrl that only returns an empty string. I wonder, if that method should return an URL instead? But I am not that deep inside the library to decide, if this is really a bug or was implemented on purpose.

Might as well bump firebase/php-jwt to ^6.0 while at it.

I had a quick look into https://github.com/firebase/php-jwt/releases/tag/v6.0.0 and at least the first breaking change affects the usage in this package, which makes further code changes necessary:

The second argument of JWT::decode now must be Firebase\JWT\Key or array<string, Firebase\JWT\Key>

So I think a switch to firebase/php-jwt 6.0 and the changes and tests needed for that should get their own PR.
@hajekj What do you think? From my perspective, this PR here is a simple one that could be easily accepted, then bumping php-jwt to its current version can be done afterwards.


Add TabRepo artifacts to HuggingFace

Add TabRepo artifacts to HuggingFace for faster downloads and improved visibility.

I took a look and it seems that it would be best to call directly snapshot_download which download the files in parallel and should be quite efficient.
One thing though is that we have right now the files on s3 that are listed in the context and this would have to be removed. The way I was thinking to have a similar behavior (be able to download only a subset of tasks) is to just whitelist the names of the files, basically calling snapshot_download while setting allow_patterns to the list of datasets that are wanted.
Would this option work for you?

@geoalgo Sounds reasonable. If you want you can start with a toy subset of the data for proof of concept (such as 3 of the smallest datasets). We can then iterate from there.
Regarding partial downloads, whitelisting sounds good, but will have to see how it works in practice.

Thanks for your answers, I would be keen to be sure that this solution works for you before its implemented otherwise its wasted effort :-)

@geoalgo Sounds reasonable. If you want you can start with a toy subset of the data for proof of concept (such as 3 of the smallest datasets). We can then iterate from there. And probably we can host the full artifact via AutoGluon's huggingface account after we confirm it works on the toy example.

I do not think we need a proof of concept as the HF hub is quite robust and it is as easy to host 3 datasets or all of them. The main thing I need is for you to add me to AG organization so that I can write files there, alternatively I can create a space just for this dataset.

Based on the wording: "If provided, only files matching at least one pattern are downloaded."
Could we send a list of patterns that are the full file path so it is identical to the current logic?

I can give it a try to have exactly the same logic but it seems to me that what we want is to download everything except for the datasets predictions which are heavy are have to be filtered. A download call could look like this for instance:
from huggingface_hub import snapshot_download

def download_datasets(datasets: List[str]):
    allow_patterns = [dataset for dataset in datasets] + ["baselines.parquet", "configs.parquet"]
    snapshot_download(
        repo_id="autogluon/tabrepo",
        repo_type="dataset",
        allow_patterns=allow_patterns,
        local_dir="local_path",
    )

This would download only the predictions whose datasets are in the desired context.

Thanks for the response! All of this looks good.
Do you foresee any downsides with us creating a new space such as tabrepo vs using the autogluon space? Unsure what the limitations are. If you want to go forward with the autogluon space, I can look to grant you write permissions.

Using Autogluon would be perhaps cleaner given that the repository is located into AG github space but I do not mind. I would also have to check if I can create a space for tabrepo (I already created one for synetune not sure if I can easily create many, I will try and let you know!


Fix typo in namespace variable 'core'

#3143
Proposed changes:

...

Status (please check what you already did):

[x ] made PR ready for code review
[ ] added some tests for the functionality
[ ] updated the documentation
[ ] updated the changelog

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

Thanks for submitting this PR, we'll give it a review as soon as the travis builds pass


Floating point division bug

Hello,
We've found a bug that seems to be caused by the compiler, and it's only related to floating point divisions, and only when the values to be divided are part of the parameters passed to a function. Please run the following test (using the idf application template) to reproduce it. Thanks!
#include <stdio.h>

void do_first_test(void)
{
    printf("starting first test\n");
    printf("divide two consts: %f / %f = %f <-- this is the proper result\n", 100000000.0, 1.0, 100000000.0 / 1.0);
}

void do_second_test(void)
{
    float x, y, z;
    printf("\nstarting second test\n");
    x = 100000000.0;
    y = 1.0;
    z = x / y;
    printf("if the division terms are stored in variables inside the function, the result is %f\n", z);
}

void do_bug(float x, float y) {
    float z;

    printf("\nshowing the bug here!!!\n\n");
    printf("the variables are x = %f, y = %f\n", x, y);
    printf("lets be sure, is x == 100000000.0 ? %d, is y == 1.0 ? %d (1 means yes)\n", x == 100000000.0, y == 1.0);

    z = x / y;
    printf("obtained division result = %f\n", z);
    printf("result from performing the division straight from variables = %f\n", x / y);
    printf("expected : %f\n", 100000000.0 / 1.0);

    printf("\nthat was it, now just to be sure, lets do some other tests\n");
    printf("now the dividend is a const. Result is = %f\n", 100000000.0 / y);
    printf("now the divisor is a const. Result is = %f\n", x / 1.0);
}

void extra_bug_demo(float x, float y)
{
    printf("%f/%f = %f\n", x, y, x / y);
}

void app_main()
{
    printf("\n\n\nDivision bug demo:\n\n");
    do_first_test();
    do_second_test();
    do_bug(100000000.0, 1.0);
    printf("\nthis is another example of the bug: ");
    extra_bug_demo(80000000.0, 1000000.0);
    printf("but with other values, it doesn't fail: ");
    extra_bug_demo(100.0, 1.0);
}

Any idea what might be going on? Thanks!
Cheers,
Daniel

Howdy ... would it be possible to post the textual output of the reported problem.  While I know we can download the code, compile it, run it and then examine the results ... I can't help but feel it would be easier for many of us to see the output and see the results that are causing concern without going through those compilation steps.  We might get others who aren't as familiar with compilation techniques to see the story and go "aha!!".

Hi Daniel,
The bug in the floating point division instruction sequ

Hi Daniel,
There is a bug in the current version of the toolchain, introduced in this commit:
https://github.com/espressif/crosstool-NG/commit/8d95cadb60062eb6c2db82a8ac67eaa802dfb4fa
You may build the toolchain from source from https://github.com/jcmvbkbc/crosstool-NG, branch xtensa-1.22.x. Once we verify that all libraries work okay with new toolchain, we'll update precompiled toolchains and repository links.

@igrr thanks for the quick reply. We'll try with the rebuilt tool-chain, and report results asap.
Cheers,
Daniel

Hi @danicampora ,
Did the updated toolchain fix this problem?
Angus

Yes, it did :-)
Sent from my iPhone

On Dec 22, 2016, at 3:47 AM, Angus Gratton<EMAIL_ADDRESS>wrote:
Hi @danicampora ,
Did the updated toolchain fix this problem?
Angus
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Yay!

Reopening — I still need to rebuild the toolchain for Windows and update download links.

Toolchain links have been updated.

I know the issue is closed, but I am really wondering how floating point division is done on the ESP32.  Are there undocumented assembly opcodes for it or is it using some library?

@cnlohr This is the implementation of fp division, sqrt, and reciprocals :
https://github.com/espressif/crosstool-NG/blob/HEAD/local-patches/gcc/5.2.0/0003-xtensa-add-HW-FPU-sequences-for-DIV-SQRT-RECIP-RSQRT.patch

Oh my... Just making sure.  This all comes with the normal IDF, right? Also, I am perplexed by the code, considering it makes use of the div0.s, rsqrt0.s, const.s, mkdadj.s and nexp01.s instructions, which as far as I can tell is... undocumented?  Did you guys add them specifically to the ESP32, or are they part of a as yet proprietary xtensa processor specification?
No, really, there are two google results for "mkdadj.s" and the same for "rsqrt0.s"

Yes, this comes with xtensa-esp32-elf toolchain you install as part of ESP-IDF setup.
These instructions are not specific to the ESP32, they are part of Xtensa single precision FPU option. The reason you don't get Google results for them is that the leaked "isa_rm.pdf" you can find on the Internet is fairly outdated. The more up-to-date ISA reference has not been released by Cadence for public use.

Aww maaaaan.  How am I gonna do crazy things with DSP that shouldn't be possible without the ISA?  Exhaustive opcode exploration, here I come.
I knew something was wrong when I shoved some of these instructions in and got opcodes that didn't show up /anywhere/.
fa42b0        	nexp01.s	f4, f2

Thanks for the info, though!  Will try to get everything working with what you've provided.

Hi All,
I have the same bug - with newer toolchain...
this code line crash the MCU....
AC_average_float = (float) AC_total_int / AC_loop_cycles_int;
What can i do ???


Always calling install / support offline mode

Feature request.
Looks like wdio-selenium-standalone-service always calls selenium-standalone install, but if you already have the drivers downloaded, and don't have Internet, start is all you need.
It is related (and looks like other part of work) is https://github.com/vvo/selenium-standalone/issues/265

I think this work should be done in the selenium-standalone package.


merge from template-arlac77-github

package.json

chore(deps): add ^2.2.20 remove ^2.2.19 (devDependencies.browser-ava)

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

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 86.721%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
275

Relevant Lines:
313

💛  - Coveralls


Unit tests: Change structure to add specs to run in runtime

Closes #3
Some changes to unit test structure:

New file create-index.ts that create src/index.ts file with import statements. This file is included by karma-shim.ts. This file always exists because is created/overrided "on the fly" every time that you run the unit tests

Change the scss-lint discontinued package to sass-lint.

New generic class ComponentTest that encapsulate TestBed configs and params that repeat in every test. This is to minimize DRY, and centralize test details.

Generate extra coverage file cobertura.xml to Jenkins report

Added mocks.ts file to mocking Ionic2 dependencies stack. This is needed to formControl of ReactiveForm, even using CUSTOM_ELEMENTS_SCHEMA. To verify this, create a new empty project with sidemenu scaffold.

Obs: This is fixes the problem defined on issue #3

Hi @mfdeveloper and thank you for this PR!

New file create-index.ts that create src/index.ts file with import statements. This file is included by karma-shim.ts. This file always exists because is created/overrided "on the fly" every time that you run the unit tests

This feature already exists, but is implemented in a different way. Note: in commit https://github.com/marcoturi/ionic2-boilerplate/commit/ab97c5efc144aff9522b6c944a1010f8f8cc6eab i added this feature to npm run test too (previously it was working only with npm run test:watch). I prefer to not write any automatic file in src, as it implies the dev to know another thing. If you don't like the replace method (i understand it :)) you can use a different file and import it like you did in this PR.

Change the scss-lint discontinued package to sass-lint.

I'm not an expert on sass/scss. The reason why I'm using scss-lint instead of sass-lint it's because the scss.-lint.yml is more supported and has more supported rules, that you will lose if you convert it by using tools like this. Looking to https://github.com/brigade/scss-lint and https://github.com/sasstools/sass-lint I feel the first one more reliable. If you have any link/resource that shows why sass-lint > scss-lint could be better, I will be happy to read it and update the project.

New generic class ComponentTest that encapsulate TestBed configs and params that repeat in every test. This is to minimize DRY, and centralize test details.
Added mocks.ts file to mocking Ionic2 dependencies stack. This is needed to formControl of ReactiveForm, even using CUSTOM_ELEMENTS_SCHEMA. To verify this, create a new empty project with sidemenu scaffold.

This is a real nice idea! And i will be glad to add this to the optional libraries if you will put it on npm. But i think it's out of the scope of this project to include it yet. Also please consider to add a second parameter to the init method to mock providers as it is not usable with the current implementation IMHO.

Generate extra coverage file cobertura.xml to Jenkins report

As you already know coverage is disabled right now. However even if it wasn't, as for the previous point, i can't merge it because it's out of the scope of the boilerplate (i can't support all CI systems, specially the ones I don't know). But if you want you can edit the Readme and add instructions in the tip section about how to use Jenkins instead on Gitlab, and I will be glad to merge them.
Again thank you for this PR, and feel free to sand other PR in the future.


Cleanup editor group context keys

This pull request includes changes to clean up the editor group context keys.

Also, I need to make sure it's correctly handled when the active group changes which is not the case currently. I wonder if we can solve this from the EditorPart. It could listen on active group change and then set the global contextkeys to the scoped ones. Not sure its possible in a nice way...

Also, I need to make sure it's correctly handled when the active group changes which is not the case currently. I wonder if we can solve this from the EditorPart. It could listen on active group change and then set the global contextkeys to the scoped ones. Not sure its possible in a nice way... Otherwise, the editor group view just needs to rerun observeActiveEditor when it becomes active.

Yeah you need to keep track of active group changes and then go over all context keys that have been bound and ask for the scoped context key value to update the global one.
Btw EditorPart is per window and each window can have an active editor group. But only EditorParts has the true single active editor group, so maybe this actually needs to be managed by EditorParts so that we are not updating the global context key from multiple windows.

That is why bind is not on the service, so others don't use it, but it's hard to fully restrict it to the outside. The next step (other PR ideally) will be to have a method on the service which allows others to register a context key handler. This will then be managed correctly across all groups.


Stringifying the binding name before setting in the error string

This is to ensure that the client can parse it correctly

Force merging so that this can be cherry picked to master. This is a server side change and all the server test cases have passed successfully.


Multiple Phishing Domains

In the README, you say that additional domains can be added by configuring Apache. I know how to serve static content from virtual hosts, but it would be great to phish from multiple domains simultaneously. I don't know if evilginx2 supports this and I know new certificates would be necessary for each added domain
Possible Solution
domains.sh script (like replace_rid.sh) that updates certs with new domains and removes old ones. Reworking of evilginx to support more than one domain at a time

You're right. I don't think evilginx 2 supports it so I'll have to update the README.md file. I didn't code evilginx2 so this isn't really a place to request features to be added to it. Multiple domain support would require I redo how it's DNS server operates and I don't have the time for that right now.


What else is needed for a 1.2.0 release?

[ ] Release notes (should include important notices about some of the changes, for example the need to reimport schemes/concepts)
[ ] Go through code and look for parts which can be changed/unified
[ ] Change documentation URLs from dev to master https://github.com/gbv/jskos-server/blob/c3b13ac0a2d2dc596e040ab5289e6327ecfa0b5b/views/base.ejs#L64-L68

What else?

publish as package at npm (?)
do you want more extensive code review?

publish as package at npm (?)

What exactly should be published to npm? I mean it doesn't make sense to install it as dependency for another package, and I don't think it makes sense to globally install it as an executable.

do you want more extensive code review?

That would probably be good. I guess this would mean that we don't commit directly to dev either, but rather work in feature branches and merge each branch separately after code review.
I'll go through the code in the next few days, looking for parts that should still be adjusted. Maybe afterwards you can take a look as well.

Suggested release notes:
- Added write endpoints for concept schemes and concepts. (#93)
- Deprecated old import script, added new scripts for import and reset. (#101)
  - See [documentation](https://github.com/gbv/jskos-server#data-import).
  - Also removed global `jskos-import` command.
- Added more filters to /voc:
  - by languages
  - by license (#115)
  - by subject
  - + basic sorting (#118)
- New endpoints `/voc/search` and `/voc/suggest`. (#121)
- Filter mappings by annotations. (#84)
- Adjust how concept hierarchies are handled. (#61)
- `/status`: Disabled endpoints are now set to `null`. (#119)
- Configuration files are checked via JSON Schema and startup is prevented if the file is invalid. (#96)
- Config: `verbosity` is now set to "warn" by default.
- `creator` and `contributor` fields are now handled via a middleware. (#122)
  - See [this comment](https://github.com/gbv/jskos-server/issues/122#issuecomment-723029967) for more details.
- Many minor fixes and improvements.

**Important notes:**
- The calls for importing data and removing data have changed! If you have any automations for this, make sure to adjust them to the new import/reset scripts.
- In order for scheme search to work, all schemes have to be reimported and indexes have to be created.

Apart from the one small adjustment above, 1.2.0 is ready from my point of view. What do you think, @nichtich?

What exactly should be published to npm?

The use case was setting up an example in coli-conc-examples to illustrate installation of jskos-server and importing some data. Should better be done with a shell script, no?

The use case was setting up an example in coli-conc-examples to illustrate installation of jskos-server and importing some data. Should better be done with a shell script, no?

For an example on how to install and set up jskos-server, I would suggest doing it the way you would normally do it - via shell, either through Git or Docker.

Release is out! https://github.com/gbv/jskos-server/releases/tag/v1.2.0


[FALSE-POSITIVE] for domain used for URL shortening and redirecting

Domains or links
euw1.nyl.as
More Information
This domain is a URL shortening service, that can be used with our APIs.  I have linked to our developer docs about this domain.  https://developer.nylas.com/docs/dev-guide/platform/what-is-nyl/
The link also has a a means to contact us in the event the service is abused and we remove all reported abuse cases for example it being used for phishing.
Have you requested removal from other sources?
Please include all relevant links to your existing removals / whitelistings.
I have requested it be removed from
alphaMountain.ai
cluster25
CyRadar
Lionic
Webroot
Avira
CRDF
Kaspersky
MalwareURL
VIPRE
PREBYTES
You can see that the domain is listed clean from other security vendors from here as of the time of submission.
Additional context
No other context, just as mentioned we do remove any links/redirects that violate the TOS, or is abusive.
Send a Pull Request for faster removal
Users who understand github and creating Pull Requests can assist us with faster removals by sending a PR to mitchellkrogza/phishing repository, on the falsepositive.list file

https://github.com/mitchellkrogza/phishing/blob/main/falsepositive.list
Please include the same above information to help speed up the whitelisting process.

I have also created PR as well if that helps; https://github.com/mitchellkrogza/phishing/pull/355

@tareeqa where does this euw1.nyl.as spoof link missdirect to??
@tareeqa Your anti "trust" center is behind a well known MITM reverse=proxy that is ear dropping on users... https://trust.nylas.com/public-trust-center?__cf_chl_rt_tk=nCjCP1CwFmHgb4mMAEwfzS1yYdKG7owNrCN18YO57Is-1711016048-<IP_ADDRESS>-1514 That is not generating trust.

Hi @spirillen to address your first question,

where does this euw1.nyl.as spoof link missdirect to??

This is difficult to answer because there isn't one specific place the URL directs to.  A unique URL is generated when using our API and very specifically when the customer is sending email using our API needing link tracking.  Its done on a per email basis, and a URL is generated for each link. Again this is dependent on the customer to enable this feature if they wish to use it.  Its outlined in our docs here; https://developer.nylas.com/docs/api/v2/#post-/send
The service is similar to say tinyurl, but built into our APIs.
Regarding your second comment;

Your anti "trust" center is behind a well known MITM reverse=proxy that is ear dropping on users... https://trust.nylas.com/public-trust-center?__cf_chl_rt_tk=nCjCP1CwFmHgb4mMAEwfzS1yYdKG7owNrCN18YO57Is-1711016048-<IP_ADDRESS>-1514 That is not generating trust.

I am assuming the "MITM reverse=proxy" in question is cloudflare?  I am unsure what the relevancy is here to the domain being listed as a phishing domain but numerous organizations use cloudflare for their WAF needs to secure their web applications.  The trust center is a product/solution that is a hosted platform to help manage all the compliance frameworks we as an organization adhere to, and we have no control over how that vendor chooses to protect their site.  Likewise their competitors also use cloudflare. Again I am not sure what the relevancy of the usage of cloudflare is to our domain euw1.nyl.as as being listed as a phishing domain in the database.


AppBar uses LayoutBuilder

Remove the embarrassing 'actualSize' AppBar property by using LayoutBuilder to channel the app bar's (actual) size to its build method.

LGTM.
Is there a test that verifies that this didn't change anything?

My first test of the new test framework will be AppBar!


[Bug]: Textures not loading

Is there an existing issue for this?

[X] I have searched the existing issues

Minecraft Version
1.20.1
Forge Version
1.20.1-forge--47.1.96
Mod Version
<IP_ADDRESS>
Description
The block textures for every block in the mod except for the antiblocks and the rgb bucket are missing. They were present on world creation, then went missing after second launch and have not returned. In multiplayer, other players can see the blocks with texture.
Steps to reproduce
Launch game repeatedly
A link to the the debug.log, preferably on https://gist.github.com
No response
Additional info
Part of personal modpack, over 100 other mods, so it could possibly be a conflict with another mod. I don't know if there's a list of known conflicts, though, and when the textures were present on first launch the rest of the mods in the pack were present as well.

Ok, tried to reproduce with just RGBBlocks, wasn't able to, but I have idea what the issue could be. But even if I'm correct I don't know what would cause that.
Could you check if the RGB Antiblock still has it's texture?
And please upload the debug.log, hopefully that contains some information about what causes that issue.

The antiblock does still have its texture. I found the debug log and uploaded it as well.
debug.log

Ok, it is what I was thinking, the log sadly doesn't help afaict.
If you could check (in a separate world), if the issue persists if you remove all other mods, that would at least tell me if it's a incompatibility with another mod.

It does seem that when I only loaded RBG Blocks, the textures were all there. That said, they were all there the first couple of times I loaded my world with all my other mods present.

Would it be possible to give me an export of the pack (curseforge format or similar), so I can do some testing myself in an effort to figure out, where the incompatibility is?
Otherwise your best bet might just be binary search.

Are you not using a launcher like curseforge for managing those?

No, I'm not... I'm using the original minecraft launcher

I see, no problem. But I'm gonna be honest, I don't feel like downloading all those mods manually to find the incompatibility.
Therefore, I'm gonna have to ask you to just run a binary search or something (while keeping RGBBlocks always active).


Bug fixes for OpenSimplex2S Noise 2D (GLSL) and Value Cubic Noise 3D (GLSL and HLSL)

Dear developers of FastNoiseLite Libruary.
I am working on custom plugin for Godot Game Engine that will allow usage of FastNoiseLite libruary on GPU device to provide noise data at runtime without visible delays and freezes.
I runned some tests in Godot and Shadertoy and found a few bugs in _fnlSingleOpenSimplex2S2D (In GLSL version only) and _fnlSingleValueCubic3D (In GLSL and HLSL versions) functions.
OpenSimplex2S Noise 2D (GLSL) before bug fix:

After bug fix:

Value Cubic Noise 3D  (GLSL) before bug fix:

After bug fix (equal to output of C++ and https://auburn.github.io/FastNoiseLite/ versions):

According to my current tests - other Noises (and functions) in GLSL are 99.9% equal to Noises created by C++ version of FastNoiseLite provided by Godot:

If I found more bugs during plugin development I will try to inform you about them and seek for posible solutions...
Thank you for your attention and sorry for my bad English. Good luck in future development.
P.S. : Code I created for Shadertoy(https://www.shadertoy.com/)  for testing and demonstration:
FastNoiseLite-ShadertoyTest.txt

Thanks, fixes look good 👍

Thank you, too.


Countdown instead of up

Any chance you could implement a countdown here? Maybe have it set to green at start, and slowly change to red as it approaches to 0? Or Just red and green? Or just the countdown in general - that's all I care about.

I would love if you set a countdown timer from the menu by holding the green button to open - it sould be even better if the menu was available from the touchbar.
Here, you could include a radio button to switch from using a countdown timer to the one you currently have. It would be handy if there were preset times you could create (30mins, 1 hour, e.t.c.). Or, you could have a slider (like the one Spotify uses to slide to a specific time in increments of 5mins.

This feature was what I was actually looking for.

Yes please!


isLength throws RangeError when used within a class' property setter method

Node Version: v6.2.1

I'm receiving a RangeError: Maximum call stack size exceeded when I use isLength within a class' setter method:
set username (newUsername) {
    if (validator.isAlphanumeric(String(newUsername))) {
      if (validator.isLength(String(newUsername), {min: 5, max: 24})) {
        this.username = newUsername
      } else {
        throw new TypeError('username must be at least 5 characters long')
      }
    } else {
      throw new TypeError('username can only be alphanumeric')
    }

    return true
  }

Error log:
var surrogatePairs = str.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g) || [];
                           ^

RangeError: Maximum call stack size exceeded
    at RegExp.[Symbol.match] (native)
    at String.match (native)
    ...

Increasing the stack size doesn't work.
It works fine for the constructor and without using a class:
const validator = require('validator')

const user = 'meDumii'
const email =<EMAIL_ADDRESS>
if (validator.isAlphanumeric(user)) {
  if (validator.isLength(user, { min: 2, max: 24 })) {
    console.log(user + ' passed username validation')
  }
}

if (validator.isEmail(email)) {
  console.log(email + ' passed email validation')
}

changing this.username to this._username works, I don't know why but it works.

You're calling the setter from within the setter, hence the stack overflow:
set username (newUsername) {
   this.username = newUsername;
}

I see, thank you for making it clear 'mate. Cheers!


versionType validation was not visible

The validation that versionType must be populated was not visible for https://cveprocess.apache.org/cve5/CVE-2022-45910
unclear if the validation didn't run, missed this problem, or didn't show the error.

Had a bit of a look, it seems this validation is missing from ./default/cve5/cve5.schema.json. It is present in https://github.com/CVEProject/cve-schema/blob/master/schema/v5.0/CVE_JSON_5.0_schema.json#L281-L293 .
These schema's are similar enough that they seem to have the same origin, but I'm confused about exactly how.

Added a temporary fix, added a default of 'custom'


languages sorted in player settings menu

Contains
Brief description of what the PR does like "Fixes #12345"
How to test
Brief description of how to test / confirm this PR before merging
Outstanding before merging
If anything. You can use neat checkboxes! Feel free to delete if not needed

[ ] Need to consider use case x
[ ] Still have to adjust the wiki doc
[ ] Will need translation work

Can one of the admins please verify this patch?

@GooeyHub: add to whitelist
Thanks! :-)

Hooray Jenkins reported success with all tests good!


Caffe2 not found by Python on MacOS 10.12!

After install caffe2,I ran the test as below:
$ python -c 'from caffe2.python import core' 2>/dev/null && echo "Success" || echo "Failure"
$ Failure

I check there exist /usr/local/caffe2 /usr/local/caffe and /usr/local/lib/libCaffe2_CPU/GPU.dylib
I use python 2.7.12 where installed in /usr/local/bin/
I also have exported all the vars below:
export PYTHONPATH=/usr/local:$PYTHONPATH
export PYTHONPATH=$PYTHONPATH:~/caffe2/build
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

I import caffe2 in python it gives error as below:
Python 2.7.12 (default, Oct 11 2016, 05:24:00)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.38)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from caffe2.python import core, workspace
WARNING:root:This caffe2 python run does not have GPU support. Will run in CPU only mode.
WARNING:root:Debug message: dlopen(/usr/local/caffe2/python/caffe2_pybind11_state_gpu.so, 10): Symbol not found: ___addtf3
  Referenced from: /usr/local/opt/gcc/lib/gcc/6/libquadmath.0.dylib
  Expected in: /usr/lib/libSystem.B.dylib
 in /usr/local/opt/gcc/lib/gcc/6/libquadmath.0.dylib
CRITICAL:root:Cannot load caffe2.python. Error: dlopen(/usr/local/caffe2/python/caffe2_pybind11_state.so, 10): Symbol not found: ___addtf3
  Referenced from: /usr/local/opt/gcc/lib/gcc/6/libquadmath.0.dylib
  Expected in: /usr/lib/libSystem.B.dylib
 in /usr/local/opt/gcc/lib/gcc/6/libquadmath.0.dylib

You can run with command: python -c 'from caffe2.python import core' and see error message.
Before, I used python 2.7.13 but i can't use caffe2.
I changed python version, I used caffe2 with python 2.7.10

I updated the Mac installation instructions yesterday where if you use Anaconda for the Python dependencies and follow the Python binding steps you can get Caffe2 running.  You may be able to fix your current install by updating your bindings manually, but it a reinstall with Anaconda could be easier.
@ViNgoVan do you have specifics on how you forced the change to use 2.7.10? I assume that you mean the native Mac Python versus brew's Python.

@aaronmarkham yes, i removed brew's python and set PYTHONPATH again.

@ViNgoVan  I removed the brew's python too, and left the system's python alone. install pip for sys's python, set PYTHONPATH = /Library/Python/2.7/site-packages but it gaves the error:
Python 2.7.10 (default, Feb  6 2017, 23:53:20)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from caffe2.python import core
/Library/Python/2.7/site-packages/google/protobuf/__init__.py:37: UserWarning: Module readline was already imported from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/readline.so, but /Library/Python/2.7/site-packages is being added to sys.path
  __import__('pkg_resources').declare_namespace(__name__)
WARNING:root:This caffe2 python run does not have GPU support. Will run in CPU only mode.
WARNING:root:Debug message: dlopen(/usr/local/caffe2/python/caffe2_pybind11_state_gpu.so, 10): Library not loaded: @rpath/CUDA.framework/Versions/A/CUDA
  Referenced from: /usr/local/caffe2/python/caffe2_pybind11_state_gpu.so
  Reason: image not found
CRITICAL:root:Cannot load caffe2.python. Error: dlopen(/usr/local/caffe2/python/caffe2_pybind11_state.so, 10): Library not loaded: @rpath/CUDA.framework/Versions/A/CUDA
  Referenced from: /usr/local/caffe2/python/caffe2_pybind11_state.so
  Reason: image not found

@aaronmarkham does it have to be 2.7.10?

@ViNgoVan  I fix the dylib link problem.   I use otool -L found caffe2_pybind11_state_gpu.so depends on CUDA.framework, but the path is in with @rpath cause linker not find the lib。 I use install_name_tool to change the lib @rpath to absolute path where CUDA.framework is .

I was having the same problem, after making the caffe2.
Try going to /usr/local/caffe2 and run the python -c 'from caffe2.python import core' 2>/dev/null && echo "Success" || echo "Failure" command. If it works, go to cd ~/anaconda2/lib/python2.7/site-packages/ and create a symbolic link to this folder ln -s /usr/local/caffe2 ./caffe2.
I hope it helps.

@walter211 No, it doesn't have to be Python 2.7.10.
Closing this since it seems like the linking problem was resolved.

@aaronmarkham I have the same problem,And my python version is 2.7.14;
➜  ~ python
Python 2.7.14 |Anaconda custom (64-bit)| (default, Oct  5 2017, 02:28:52)
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from caffe2.python import core
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/caffe2/python/core.py", line 29, in <module>
    from caffe2.proto import caffe2_pb2
  File "/usr/local/caffe2/proto/caffe2_pb2.py", line 153, in <module>
    options=None, file=DESCRIPTOR),
TypeError: __init__() got an unexpected keyword argument 'file'
>>>

The same error "TypeError: init() got an unexpected keyword argument 'file'  "
>>> import caffe2.python.core
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/root/anaconda3/lib/python2.7/site-packages/caffe2/python/core.py", line 14, in <module>
    from caffe2.proto import caffe2_pb2
  File "/root/anaconda3/lib/python2.7/site-packages/caffe2/proto/caffe2_pb2.py", line 143, in <module>
    options=None, file=DESCRIPTOR),
TypeError: __init__() got an unexpected keyword argument 'file'
>>>

Env：
CentOS7.4, only CPU, use latest commit(directly git clone) and compile and build and install it using conda tool. And use https://github.com/caffe2/caffe2/tree/master/conda to build.

Hi @aaronmarkham , I have successfully installed the latest Caffe2, but see this error:
$cd caffe2/build/
$python
Python 3.6.0 |Anaconda custom (64-bit)| (default, Dec 23 2016, 13:19:00)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from caffe2.python import core
WARNING:root:This caffe2 python run does not have GPU support. Will run in CPU only mode.
WARNING:root:Debug message: No module named 'caffe2.python.caffe2_pybind11_state_gpu'
CRITICAL:root:Cannot load caffe2.python. Error: dlopen(/Users/xiangbinli/caffe2/build/caffe2/python/caffe2_pybind11_state.so, 10): Symbol not found: _PyCObject_Type
  Referenced from: /Users/xiangbinli/caffe2/build/caffe2/python/caffe2_pybind11_state.so
  Expected in: flat namespace
 in /Users/xiangbinli/caffe2/build/caffe2/python/caffe2_pybind11_state.so

My environment is:
Python 3.6.0
conda 4.4.8
MacOS High Sierra.
I have no idea how to resolve it, and please help me! Thanks a lot!

I use docker on my MacOS，The docker image is ubuntu16.04; It works fine