Post form validation

The create new post form need to be validated for empty fields.
FIles to update:

admin/add_post.php
admin/edit_post.php

You can check registration.php for reference.

Hey, Can I work on this?
@chaitak-gorai

Yes, @itisaby go ahead.
Do the necessary changes and create a PR.
I am assigning this issue to you.

Sorry @kristonela it has already been assigned to @itisaby.
Though you can check for other issues.
Thank You!


fix #857

Rename global variable "regression" in cocotb module for avoiding name conflict with the cocotb.regression module

Could you add a test for this?

Sorry to be picky but probbly would be much better if the test would look like this ;-)
import cocotb
import cocotb.regression
import cocotb.triggers

@cocotb.coroutine
def test_adder(dut, val_a, val_b):
    dut.a = val_a
    dut.b = val_b
    yield cocotb.triggers.Timer(10, 'ns')
    assert dut.z == val_a + val_b

test_factory = cocotb.regression.TestFactory(test_adder)
test_factory.add_option('val_a', range(16))
test_factory.add_option('val_b', range(16))
test_factory.generate_tests()

As in your issue.


Update request for new publishing options

Hello Team,
There are new options within the Properties section of a SaaS offer that aren't documented here:

Apps
Microsoft Clouds for Industry

Does selecting Apps make you available from a storefront within the Office suite apps?
What requirements are in place for certifying for Microsoft Clouds for Industry? It's a selection here that references outside requirements and it would be good to know where to go to learn more.

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

ID: 09ce6f4b-aa29-9f97-52a5-b16152aff5b2
Version Independent ID: ad2e858f-5a57-3f10-6270-6a29ea4db855
Content: Configure your SaaS offer properties in Azure Marketplace
Content Source: articles/marketplace/create-new-saas-offer-properties.md
Service: marketplace
Sub-service: partnercenter-marketplace-publisher
GitHub Login: @mingshen-ms
Microsoft Alias: mingshen

Thanks for bringing this to our attention. We will investigate it further and update you shortly.


CB-11937 - Travis CI build failing

Experiment in progress to get the build working again.

Looks like Travis is trying to "expand" any variables like $(TARGET_BUILD_DIR) when I am running a command that includes it, instead of just passing it through.

Test 7 - I think I may have found the culprit. Because it's a workspace, sometimes CordovaLib doesn't get processed first, and CDVWKWebViewEngineLib wasn't depending on CordovaLib, so it was missing the header. I added the dependency

Yay, that worked! Squashing and integrating.

Ugh, now it fails, but the failure is not apparent in the logs.

Now I get a new error, yay:
$ npm install -g n
/Users/travis/.nvm/versions/node/v6.9.1/bin/n -> /Users/travis/.nvm/versions/node/v6.9.1/lib/node_modules/n/bin/n
/Users/travis/.nvm/versions/node/v6.9.1/lib
└──<EMAIL_ADDRESS>0.45s$ n stable
mkdir: /usr/local/n/versions/node: Permission denied
mkdir: /usr/local/n/versions/io: Permission denied
     install : node-v7.4.0
       mkdir : /usr/local/n/versions/node/7.4.0
mkdir: /usr/local/n/versions/node/7.4.0: Permission denied
  Error: sudo required
The command "n stable" failed and exited with 1 during .

Fixed in #28


Assertion failure custom function

Implemented the ability to set custom function to be called in case of assertion failure.
This functionality is similar to custom allocation functions.

Hi @domalb, thanks for contributing! This is great stuff and is something that's definitely needed.
Your implementation is in keeping with the style of the project and will have minimal impact on existing users, so that's cool.
This is something I've been planning to do for a while, and I've got a commit of my favourite assertion macro implementation (copied from other personal projects) in a WIP branch here (not committed yet as it's part of a larger change to add some better unit tests of code that fails asserts): https://github.com/hymerman/recastnavigation/commit/e6980dddb286f191c38f13e4c313c7f6ac822634
@jakobbotsch and @grahamboree do you think it's worth merging this now or should I have a go at tidying up my one and merging? I'm biased towards code I write so I won't make the call ;)

@hymerman would you prefer that I update the pull request from now to prepare for your future commit and reduce api changes ?

an assertion failure response halt/continue
a message with variadic arguments for formatting

I think we should accept this as it is. Your changes @hymerman seem a bit more pervasive and not as much in line with standard Recast coding style (C-style, like it or not - but it's good to be consistent).

Sounds good @hymerman?

Thanks for the prod - forgot about this!
Ok, I've had a think and reckon we should just take this for now. Thanks @domalb :)
I'd love to get a tidied up version of mine in for a larger release though, as it's had a lot of thought go into it and does just drop in, and it's actually just free functions and macros so does still architecturally fit Recast style. It's just a case of finding free time, whatever that is...

Thanks for the contribution!


server cannot read null object link

Hello there,
I am testing the object link feature and found this issue.
When a client sends an object link of MAX ID: MAX ID, that is, 65535:65535 to the server,
the server errs with
[2016-11-10 18:53:38,569 WARN ClientServlet] Invalid request or response
java.lang.IllegalArgumentException: The validated expression is false
        at org.eclipse.leshan.util.Validate.isTrue(Validate.java:182) ~[leshan-server-demo-0.1.11-M15-SNAPSHOT-jar-with-dependencies.jar:?]
        at org.eclipse.leshan.core.node.ObjectLink.<init>(ObjectLink.java:46) ~[leshan-server-demo-0.1.11-M15-SNAPSHOT-jar-with-dependencies.jar:?]
        at org.eclipse.leshan.tlv.TlvDecoder.decodeObjlnk(TlvDecoder.java:196) ~[leshan-server-demo-0.1.11-M15-SNAPSHOT-jar-with-dependencies.jar:?]

I doubt this is because TlvDecoder.decodeObjlnk() does not properly treat unsigned integer and converts 65535 into -1, which cannot pass the test at ObjectLink().
Hope that helps.
Thank you.

Fixed in master (see commit 8a4c9c7a63ebae24331c067c1c9e43b9220b36bc)


deCONZ Gateway Page is not loaded correctly on Safari 13.0.2 (156<IP_ADDRESS>.1)

Hello,
I am using deconz plugin (updated version on the opening date of issue) with Ingress support on my Tinker Board. When I am trying to reach gateway page it is not loaded correctly on Safari. I can see background is loaded but page does not show anything after that.
Here is console output
[Error] Failed to load resource: the server responded with a status of 401 (Unauthorized) (settings-gateway2.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (developer.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (underscore-min.map, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (backbone-min.map, line 0)
Page loads correctly when I reach very same page via Google Chrome. I am using SSL (valid certificate from Let's encrypt) and I can provide any other info if you need.
Thanks,

got same issue again, i think this is reincarnation of #943
ingress auth token somehow doesn't passes correctly to gateway2.js and a lot of js resources it loads.

got this error in system log every time while opening gateway settings in deconz
WARNING (MainThread) [supervisor.api.ingress] No valid ingress session None

Gateway page doesn’t load in any iOS browser. Not in Chrome and not in Safari. Homeassistant App has same issue.

Chrome on iOS = Safari. Apple does not allow other browser engines. So those applications on iOS devices all use Safari as the engine (including Chrome on iOS).

That problem seems to be reproducible after re-installing deconz addon.

Still an issue.

Still an issue.

Still an issue


Cannot find Moment JS Scripts after install via Nuget Package on Visual Studio 2017

Description of the Issue and Steps to Reproduce:

Create a new Project  "Web Application ASP.NET Core 2"
Open Nuget Package Console and run
Install-Package Moment.js
try to find Moment Script File on ASP.NET Core 2 Project after successfully installation

Result:
No package or file found  on  "Content/Scripts"  or wwwroot/Content/Scripts  or any location
Environment:
Chrome  (Not matter)  Windows 10 x64, Node  v6.9.5

Same problem here...

I've had a look at this and it works with 'full-cream' .Net projects but simply doesn't work with .net core projects. The moment.nuspec and generated .nupkg are fine. As mentioned by @waseemahmad31 the scripts end up in the user's packages folder and would need to be copied (i.e. not a great solution).

According to this issue you have to use the <contentFiles> tag in the .nuspec

I'm not sure what else we can do here.

Seeing the same problem in VS2019 and .NET Core 3.1 with a ASP.NET Core project.


VSCode crashes silently on startup

Type: Bug
I noticed that VSCode would silently crash on startup sometimes. I repeatededly restarted it and found that it was crashing every other time I started it.
I then ran the bisect extension service to see if it was one of the extensions I had loaded. It identified a vscode-ruby, so I disabled that extension but the problem continued.
I continued testing, and eventually disabled all extensions. VSCode will now start correctly nearly every time, but it continues to crash silently on startup every 4-5 times I restart it.
It does appear to be related to the extension loading code, as it appears to be trying to load extensions when it closes.
I reinstalled a clean version of VSCode but the pattern persists.
VS Code version: Code 1.74.3 (97dec172d3256f8ca4bfb2143f3f76b503ca0534, 2023-01-09T17:05:47.808Z)
OS version: Darwin arm64 22.2.0
Modes:
Sandboxed: No

System Info

Item
Value

CPUs
Apple M1 Pro (10 x 24)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_renderer: enabled_onvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: disabled_off

Load (avg)
8, 4, 3

Memory (System)
16.00GB (0.50GB free)

Process Argv
--crash-reporter-id 815fabd2-ae72-4b24-aac7-3dde8919bfb5

Screen Reader
no

VM
0%

Extensions: none
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vstes627:30244334
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vsclangdc:30486549
c4g48928:30535728
dsvsc012cf:30540253
azure-dev_surveyone:30548225
pyindex848cf:30577861
nodejswelcome1cf:30587006
3biah626:30602489
f6dab269:30613381
fim-prod:30623723

A little more testing and I find that this only seems to occur if I use Alfred 4 to launch VSCode.
When I launch it from the command line, every other time I launch it, it seems to stall for ~1 second then continues to start. These stalls seem to correspond to whatever is causing the app to crash when launching via Alfred.

Can you please follow the steps in https://github.com/Microsoft/vscode/wiki/Native-Crash-Issues to get at more details around the crash and attach the result here? Thanks!

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


failed to import mechanicalsoup as ms

When I download the requirements it downloads beautifulsoup4 instead of mechanicalsoup 0.9.
I'm guessing the import needs to be renamed to account for the update of mechanicalsoup to beautifulsoup.
p.s i tried swapping the names in the import modules and it didn't work, so it's not that straightforward.
so basically the script doesn't load for me at all until this is fixed.

WTF!!

Am I doing something wrong? I'm using Kali


Adding an optional VM's UI type for the virtualbox driver

With this option one can specify the VirtualBox UI Type: "gui"/"sdl"/"separate" instead of the default "headless"
NOTE: running X11 server is required if UI Type is not "headless"

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "add-virtualbox-ui-type" git@github.com:malex984/machine.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -f

Ammending updates the existing PR. You DO NOT need to open a new one.

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "add-virtualbox-ui-type" git@github.com:malex984/machine.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -f

Ammending updates the existing PR. You DO NOT need to open a new one.

Hi @malex984, thanks for the PR.  What's the motivation?  We are strongly inclined to be prescriptive about using headless VMs here.

Hi @nathanleclaire, our main purpose is to test containerized GUI applications (e.g. a-la https://blog.jessfraz.com/post/docker-containers-on-the-desktop/) on minimal linux systems (only VirtualBox Guest Additions are necessary on the guest system while X11 Server may run in a container). Such a testing should be possible on OSX and Linux desktop systems.
Previously we did that with vagrant but docker-machine should be able to do that as well after a few minor improvements.
Since even in the headless mode there is a VM Display Preview available from inside VirtualBox Manager it seems that headless mode simply disables a separate VM Display Window...
On the other hand having that Display Window provides user with a BOOT loader interactive menu, boot/provision output log as well as an extra interactive console and an option to have GUI applications running within such a VM.
Do you see any problems with such a usage of Docker Machine on desktop systems?

It is a bit different than the usual prescriptive workflow but since it's optional and the default doesn't change it doesn't seem likely to be problematic.
Do you have any little sample app I could try it out?

Yes, this is an optional thing which changes nothing for people that do not use it.
The following will starts X11 server and xclock in the created VirtualBox Display Window for me under Linux:
dm create -d virtualbox --virtualbox-ui-type gui VBGUI
eval $(dm env VBGUI) # or `dm ssh VBGUI`

docker run -d --privileged alpine:3.4 /bin/sh -c \
'apk update && apk add xorg-server xf86-video-vesa xf86-input-evdev xf86-input-mouse xf86-input-keyboard udev && echo "exec xclock">>~/.xinitrc && apk add xclock  --update-cache --repository "http://dl-cdn.alpinelinux.org/alpine/edge/testing" && startx'

where dm is my custom built docker-machine supporting --virtualbox-ui-type.
ps: unfortunately it seems that mouse support has been disabled :-( i suspect VirtualBox Guest Additions, Linux Kernel or missing kernel modules...

Hi! Is something else wrong with this PR?

@malex984 Nah I think it's OK, just got lost in the shuffle.
LGTM

thanks!


Hi matthieu,

As requested after our e-mail contact
Hereby the logfile, Thanx !
[OXRTK] 2022-02-18 15:18:29 +0100: OpenXR Toolkit - Beta-2 (v0.9.7)
[OXRTK] 2022-02-18 15:18:29 +0100: dllHome is "C:\Program Files\OpenXR-Toolkit"
[OXRTK] 2022-02-18 15:18:29 +0100: OpenXR-Toolkit layer is active
[OXRTK] 2022-02-18 15:18:29 +0100: Runtime supports extension: XR_KHR_win32_convert_performance_counter_time
[OXRTK] 2022-02-18 15:18:29 +0100: Runtime supports extension: XR_KHR_D3D11_enable
[OXRTK] 2022-02-18 15:18:29 +0100: Runtime supports extension: XR_KHR_D3D12_enable
[OXRTK] 2022-02-18 15:18:29 +0100: Runtime supports extension: XR_KHR_composition_layer_depth
[OXRTK] 2022-02-18 15:18:29 +0100: Runtime supports extension: XR_KHR_composition_layer_color_scale_bias
[OXRTK] 2022-02-18 15:18:29 +0100: Runtime supports extension: XR_MSFT_unbounded_reference_space
[OXRTK] 2022-02-18 15:18:29 +0100: Runtime supports extension: XR_MSFT_spatial_anchor
[OXRTK] 2022-02-18 15:18:29 +0100: Runtime supports extension: XR_MSFT_perception_anchor_interop
[OXRTK] 2022-02-18 15:18:29 +0100: Runtime supports extension: XR_EXT_win32_appcontainer_compatible
[OXRTK] 2022-02-18 15:18:29 +0100: Runtime supports extension: XR_EXT_conformance_automation
[OXRTK] 2022-02-18 15:18:29 +0100: Runtime supports extension: XR_MSFT_composition_layer_reprojection
[OXRTK] 2022-02-18 15:18:29 +0100: Runtime supports extension: XR_MSFT_spatial_graph_bridge
[OXRTK] 2022-02-18 15:18:29 +0100: Runtime supports extension: XR_MSFT_spatial_anchor_persistence
[OXRTK] 2022-02-18 15:18:29 +0100: Runtime supports extension: XR_EXT_eye_gaze_interaction
[OXRTK] 2022-02-18 15:18:29 +0100: Runtime supports extension: XR_MSFT_hand_interaction
[OXRTK] 2022-02-18 15:18:29 +0100: Runtime supports extension: XR_EXT_hand_tracking
[OXRTK] 2022-02-18 15:18:29 +0100: Runtime supports extension: XR_MSFT_hand_tracking_mesh
[OXRTK] 2022-02-18 15:18:29 +0100: Runtime supports extension: XR_MSFT_controller_model
[OXRTK] 2022-02-18 15:18:29 +0100: Runtime supports extension: XR_KHR_visibility_mask
[OXRTK] 2022-02-18 15:18:29 +0100: Runtime supports extension: XR_EXT_samsung_odyssey_controller
[OXRTK] 2022-02-18 15:18:29 +0100: Runtime supports extension: XR_EXT_hp_mixed_reality_controller
[OXRTK] 2022-02-18 15:18:29 +0100: Using OpenXR runtime Windows Mixed Reality Runtime 110.2202.10002
[OXRTK] 2022-02-18 15:18:29 +0100: Ignoring XR_MSFT_hand_interaction for Windows Mixed Reality Runtime 110.2202.10002
[OXRTK] 2022-02-18 15:21:15 +0100: OpenXR Toolkit - Beta-2 (v0.9.7)
[OXRTK] 2022-02-18 15:21:15 +0100: dllHome is "C:\Program Files\OpenXR-Toolkit"
[OXRTK] 2022-02-18 15:21:15 +0100: OpenXR-Toolkit layer is active
[OXRTK] 2022-02-18 15:21:15 +0100: Runtime supports extension: XR_KHR_win32_convert_performance_counter_time
[OXRTK] 2022-02-18 15:21:15 +0100: Runtime supports extension: XR_KHR_D3D11_enable
[OXRTK] 2022-02-18 15:21:15 +0100: Runtime supports extension: XR_KHR_D3D12_enable
[OXRTK] 2022-02-18 15:21:15 +0100: Runtime supports extension: XR_KHR_composition_layer_depth
[OXRTK] 2022-02-18 15:21:15 +0100: Runtime supports extension: XR_KHR_composition_layer_color_scale_bias
[OXRTK] 2022-02-18 15:21:15 +0100: Runtime supports extension: XR_MSFT_unbounded_reference_space
[OXRTK] 2022-02-18 15:21:15 +0100: Runtime supports extension: XR_MSFT_spatial_anchor
[OXRTK] 2022-02-18 15:21:15 +0100: Runtime supports extension: XR_MSFT_perception_anchor_interop
[OXRTK] 2022-02-18 15:21:15 +0100: Runtime supports extension: XR_EXT_win32_appcontainer_compatible
[OXRTK] 2022-02-18 15:21:15 +0100: Runtime supports extension: XR_EXT_conformance_automation
[OXRTK] 2022-02-18 15:21:15 +0100: Runtime supports extension: XR_MSFT_composition_layer_reprojection
[OXRTK] 2022-02-18 15:21:15 +0100: Runtime supports extension: XR_MSFT_spatial_graph_bridge
[OXRTK] 2022-02-18 15:21:15 +0100: Runtime supports extension: XR_MSFT_spatial_anchor_persistence
[OXRTK] 2022-02-18 15:21:15 +0100: Runtime supports extension: XR_EXT_eye_gaze_interaction
[OXRTK] 2022-02-18 15:21:15 +0100: Runtime supports extension: XR_MSFT_hand_interaction
[OXRTK] 2022-02-18 15:21:15 +0100: Runtime supports extension: XR_EXT_hand_tracking
[OXRTK] 2022-02-18 15:21:15 +0100: Runtime supports extension: XR_MSFT_hand_tracking_mesh
[OXRTK] 2022-02-18 15:21:15 +0100: Runtime supports extension: XR_MSFT_controller_model
[OXRTK] 2022-02-18 15:21:15 +0100: Runtime supports extension: XR_KHR_visibility_mask
[OXRTK] 2022-02-18 15:21:15 +0100: Runtime supports extension: XR_EXT_samsung_odyssey_controller
[OXRTK] 2022-02-18 15:21:15 +0100: Runtime supports extension: XR_EXT_hp_mixed_reality_controller
[OXRTK] 2022-02-18 15:21:15 +0100: Using OpenXR runtime Windows Mixed Reality Runtime 110.2202.10002
[OXRTK] 2022-02-18 15:21:15 +0100: Ignoring XR_MSFT_hand_interaction for Windows Mixed Reality Runtime 110.2202.10002
[OXRTK] 2022-02-18 15:21:16 +0100: OpenXR Toolkit - Beta-2 (v0.9.7)
[OXRTK] 2022-02-18 15:21:16 +0100: dllHome is "C:\Program Files\OpenXR-Toolkit"
[OXRTK] 2022-02-18 15:21:16 +0100: OpenXR-Toolkit layer is active
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_KHR_win32_convert_performance_counter_time
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_KHR_D3D11_enable
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_KHR_D3D12_enable
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_KHR_composition_layer_depth
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_KHR_composition_layer_color_scale_bias
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_MSFT_unbounded_reference_space
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_MSFT_spatial_anchor
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_MSFT_perception_anchor_interop
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_EXT_win32_appcontainer_compatible
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_EXT_conformance_automation
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_MSFT_composition_layer_reprojection
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_MSFT_spatial_graph_bridge
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_MSFT_spatial_anchor_persistence
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_EXT_eye_gaze_interaction
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_MSFT_hand_interaction
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_EXT_hand_tracking
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_MSFT_hand_tracking_mesh
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_MSFT_controller_model
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_KHR_visibility_mask
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_EXT_samsung_odyssey_controller
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_EXT_hp_mixed_reality_controller
[OXRTK] 2022-02-18 15:21:16 +0100: Using OpenXR runtime Windows Mixed Reality Runtime 110.2202.10002
[OXRTK] 2022-02-18 15:21:16 +0100: Ignoring XR_MSFT_hand_interaction for Windows Mixed Reality Runtime 110.2202.10002
[OXRTK] 2022-02-18 15:21:16 +0100: OpenXR Toolkit - Beta-2 (v0.9.7)
[OXRTK] 2022-02-18 15:21:16 +0100: dllHome is "C:\Program Files\OpenXR-Toolkit"
[OXRTK] 2022-02-18 15:21:16 +0100: OpenXR-Toolkit layer is active
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_KHR_win32_convert_performance_counter_time
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_KHR_D3D11_enable
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_KHR_D3D12_enable
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_KHR_composition_layer_depth
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_KHR_composition_layer_color_scale_bias
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_MSFT_unbounded_reference_space
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_MSFT_spatial_anchor
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_MSFT_perception_anchor_interop
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_EXT_win32_appcontainer_compatible
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_EXT_conformance_automation
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_MSFT_composition_layer_reprojection
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_MSFT_spatial_graph_bridge
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_MSFT_spatial_anchor_persistence
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_EXT_eye_gaze_interaction
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_MSFT_hand_interaction
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_EXT_hand_tracking
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_MSFT_hand_tracking_mesh
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_MSFT_controller_model
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_KHR_visibility_mask
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_EXT_samsung_odyssey_controller
[OXRTK] 2022-02-18 15:21:16 +0100: Runtime supports extension: XR_EXT_hp_mixed_reality_controller
[OXRTK] 2022-02-18 15:21:16 +0100: Using OpenXR runtime Windows Mixed Reality Runtime 110.2202.10002
[OXRTK] 2022-02-18 15:21:16 +0100: Ignoring XR_MSFT_hand_interaction for Windows Mixed Reality Runtime 110.2202.10002
[OXRTK] 2022-02-18 15:26:34 +0100: OpenXR Toolkit - Beta-2 (v0.9.7)
[OXRTK] 2022-02-18 15:26:34 +0100: dllHome is "C:\Program Files\OpenXR-Toolkit"
[OXRTK] 2022-02-18 15:26:34 +0100: OpenXR-Toolkit layer is active
[OXRTK] 2022-02-18 15:26:34 +0100: Runtime supports extension: XR_KHR_win32_convert_performance_counter_time
[OXRTK] 2022-02-18 15:26:34 +0100: Runtime supports extension: XR_KHR_D3D11_enable
[OXRTK] 2022-02-18 15:26:34 +0100: Runtime supports extension: XR_KHR_D3D12_enable
[OXRTK] 2022-02-18 15:26:34 +0100: Runtime supports extension: XR_KHR_composition_layer_depth
[OXRTK] 2022-02-18 15:26:34 +0100: Runtime supports extension: XR_KHR_composition_layer_color_scale_bias
[OXRTK] 2022-02-18 15:26:34 +0100: Runtime supports extension: XR_MSFT_unbounded_reference_space
[OXRTK] 2022-02-18 15:26:34 +0100: Runtime supports extension: XR_MSFT_spatial_anchor
[OXRTK] 2022-02-18 15:26:34 +0100: Runtime supports extension: XR_MSFT_perception_anchor_interop
[OXRTK] 2022-02-18 15:26:34 +0100: Runtime supports extension: XR_EXT_win32_appcontainer_compatible
[OXRTK] 2022-02-18 15:26:34 +0100: Runtime supports extension: XR_EXT_conformance_automation
[OXRTK] 2022-02-18 15:26:34 +0100: Runtime supports extension: XR_MSFT_composition_layer_reprojection
[OXRTK] 2022-02-18 15:26:34 +0100: Runtime supports extension: XR_MSFT_spatial_graph_bridge
[OXRTK] 2022-02-18 15:26:34 +0100: Runtime supports extension: XR_MSFT_spatial_anchor_persistence
[OXRTK] 2022-02-18 15:26:34 +0100: Runtime supports extension: XR_EXT_eye_gaze_interaction
[OXRTK] 2022-02-18 15:26:34 +0100: Runtime supports extension: XR_MSFT_hand_interaction
[OXRTK] 2022-02-18 15:26:34 +0100: Runtime supports extension: XR_EXT_hand_tracking
[OXRTK] 2022-02-18 15:26:34 +0100: Runtime supports extension: XR_MSFT_hand_tracking_mesh
[OXRTK] 2022-02-18 15:26:34 +0100: Runtime supports extension: XR_MSFT_controller_model
[OXRTK] 2022-02-18 15:26:34 +0100: Runtime supports extension: XR_KHR_visibility_mask
[OXRTK] 2022-02-18 15:26:34 +0100: Runtime supports extension: XR_EXT_samsung_odyssey_controller
[OXRTK] 2022-02-18 15:26:34 +0100: Runtime supports extension: XR_EXT_hp_mixed_reality_controller
[OXRTK] 2022-02-18 15:26:34 +0100: Using OpenXR runtime Windows Mixed Reality Runtime 110.2202.10002
[OXRTK] 2022-02-18 15:26:34 +0100: Ignoring XR_MSFT_hand_interaction for Windows Mixed Reality Runtime 110.2202.10002
[OXRTK] 2022-02-18 15:26:34 +0100: Using Direct3D 11 on adapter: AMD Radeon RX 6900 XT
[OXRTK] 2022-02-18 15:26:34 +0100: Using OpenXR resolution (no upscaling): 3152x3084
[OXRTK] 2022-02-18 15:26:34 +0100: Creating swapchain with dimensions=3152x3084, arraySize=1, mipCount=1, sampleCount=1, format=29, usage=0x21
[OXRTK] 2022-02-18 15:26:34 +0100: Swapchain image descriptor:
[OXRTK] 2022-02-18 15:26:34 +0100:   w=3152 h=3084 arraySize=1 format=27
[OXRTK] 2022-02-18 15:26:34 +0100:   mipCount=1 sampleCount=1
[OXRTK] 2022-02-18 15:26:34 +0100:   usage=0x0 bindFlags=0x28 cpuFlags=0x0 misc=0x0000000000000802
[OXRTK] 2022-02-18 15:26:34 +0100: Creating swapchain with dimensions=3152x3084, arraySize=1, mipCount=1, sampleCount=1, format=29, usage=0x21
[OXRTK] 2022-02-18 15:26:34 +0100: Swapchain image descriptor:
[OXRTK] 2022-02-18 15:26:34 +0100:   w=3152 h=3084 arraySize=1 format=27
[OXRTK] 2022-02-18 15:26:34 +0100:   mipCount=1 sampleCount=1
[OXRTK] 2022-02-18 15:26:34 +0100:   usage=0x0 bindFlags=0x28 cpuFlags=0x0 misc=0xFFFFFFFF00000802
Describe the bug
A clear and concise description of what the bug is. If possible, please attach (upload, do not copy/paste) the log file that can be found at %LocalAppData%\OpenXR-Toolkit\logs.
Environment

Application/Game and its version
Make and model of VR device
Version of the OpenXR runtime
Make and model of GPU

To Reproduce
Steps to reproduce the behavior:

Run '....' game
Enable option '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem. Use the Companion app to enable screenshots, then use Ctrl+F12 to capture. The file is placed in %LocalAppData%\OpenXR-Toolkit\screenshots.

Dup of #182. Please do not file multiple issues for the same question or problem.


Type hash distribution during discovery (rep2011)

Part of https://github.com/ros2/ros2/issues/1159
Depends on ros2/rosidl#722
Depends on https://github.com/ros2/rmw_dds_common/pull/70
Depends on https://github.com/ros2/rosidl_typesupport_fastrtps/pull/95
Distribute type hashes from introspection API using the USER_DATA Qos policy

Gist: https://gist.githubusercontent.com/emersonknapp/597121a37b82d9418b14472de760c8f0/raw/b0412d81c2ae2368cb592c810496d6f92650ad68/ros2.repos
BUILD args:
TEST args:
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/11623

Linux
Linux-aarch64
Windows

Linux
Linux-aarch64
Windows

CI is in https://github.com/ros2/rmw_dds_common/pull/70#issuecomment-1483326412


Allow imagenet encoder to have different output and attention map

This PR allows the ImageNet network to have a different layer on its output and a different layer for convolutional maps.

@jindrahelcl ping


Failing builds

Our builds are getting a bit out of date. The big playwright image build was failing for quite some time, but I did not consider it a priority, but now even the Puppeteer image build failed. Let's fix it.

looks like the os is not posix compliant (playwright)
https://github.com/apify/apify-actor-docker/runs/3525958059?check_suite_focus=true#step:9:27

puppeteer fails because it tries to configure it with [too] newer versions: https://github.com/apify/apify-actor-docker/runs/3525957951?check_suite_focus=true#step:9:50

hmm

Actually it's a docker thing: https://github.com/cypress-io/cypress/issues/4925

  [pid=2947][err] [2947:2970:0906/150516.687409:ERROR:gpu_process_host.cc(961)] GPU process exited unexpectedly: exit_code=132

Does GitHub Actions run with GPU?

Looks like #64 fixed the playwright issues

@mnmkng Can you try building against puppeteer 10.2.0?

It's running 🤝 You can always run it yourself like this. Just dont use the beta or latest tag.

Just dont use the beta or latest tag.

👍🏼 Will remember now. For playwright I reused the values from your build.

I think we can close this now?

Yeah, thanks for the quick fix. Please bump the playwright and puppeteer versions to latest Chrome in apify dev deps before closing. That's where they're taken from when the build is auto triggered on SDK release.

https://github.com/apify/apify-js/commit/f9cbf8fa72bb4af7871d1219b39dd15d18b28d60
Will close this once the beta is released.

Looks like the pw-webkit ones are now failing:
https://github.com/apify/apify-actor-docker/runs/3531918312?check_suite_focus=true

  ==================== Browser output: ====================
  <launching> /home/myuser/pw-browsers/MiniBrowser --inspector-pipe --headless --user-data-dir=/tmp/2xs54QHz9bZG2QtYvUNVY about:blank
  <launched> pid=43
  [pid=43][err] /home/myuser/pw-browsers/webkit-1530/minibrowser-gtk/bin/MiniBrowser: error while loading shared libraries: libevdev.so.2: cannot open shared object file: No such file or directory
  [pid=43] <process did exit: exitCode=127, signal=null>
  [pid=43] starting temporary directories cleanup
  =========================== logs ===========================
  <launching> /home/myuser/pw-browsers/MiniBrowser --inspector-pipe --headless --user-data-dir=/tmp/2xs54QHz9bZG2QtYvUNVY about:blank
  <launched> pid=43
  [pid=43][err] /home/myuser/pw-browsers/webkit-1530/minibrowser-gtk/bin/MiniBrowser: error while loading shared libraries: libevdev.so.2: cannot open shared object file: No such file or directory
  [pid=43] <process did exit: exitCode=127, signal=null>
  [pid=43] starting temporary directories cleanup
  ============================================================

What's MiniBrowser?

What's MiniBrowser?

No idea 🤷♂ Playwright uses custom builds of browsers so maybe MiniBrowser is some custom build of WebKit.

How's this looking? I still get a lot of notifications about the failed builds.

Installed libevdev2 and it launches successfully. The must have added this as a new dependency.

Always same error:
2021-09-16T17:06:01.220Z Step 14/18 : RUN npm --quiet set progress=false   && npm install --only=prod --no-optional   && echo "Installed NPM packages:"   && (npm list || true)   && echo "Node.js version:"   && node --version   && echo "NPM version:"   && npm --version
2021-09-16T17:06:01.312Z  ---> Running in a205b690ae09
2021-09-16T17:06:04.854Z npm WARN deprecated<EMAIL_ADDRESS>This is a stub types definition. socket.io-parser provides its own type definitions, so you do not need this installed.
2021-09-16T17:06:04.855Z
2021-09-16T17:06:11.598Z ><EMAIL_ADDRESS>install /home/myuser/app/node_modules/better-sqlite3-with-prebuilds
2021-09-16T17:06:11.599Z > prebuild-install || npm run build-release
2021-09-16T17:06:11.836Z prebuild-install
2021-09-16T17:06:11.836Z WARN install No prebuilt binaries found (target=14.17.6 runtime=node arch=x64 libc= platform=linux)
2021-09-16T17:06:11.837Z
2021-09-16T17:06:12.072Z ><EMAIL_ADDRESS>build-release /home/myuser/app/node_modules/better-sqlite3-with-prebuilds
2021-09-16T17:06:12.073Z > node-gyp rebuild --release
2021-09-16T17:06:12.207Z gyp
2021-09-16T17:06:12.208Z  ERR! find Python
2021-09-16T17:06:12.209Z gyp
2021-09-16T17:06:12.210Z ERR!
2021-09-16T17:06:12.210Z find Python
2021-09-16T17:06:12.211Z  Python is not set from command line or npm configuration
2021-09-16T17:06:12.212Z gyp ERR!
2021-09-16T17:06:12.213Z find Python checking if "python" can be used
2021-09-16T17:06:12.211Z gyp ERR! find Python
2021-09-16T17:06:12.212Z  Python is not set from environment variable PYTHON
2021-09-16T17:06:12.213Z gyp
2021-09-16T17:06:12.214Z find Python
2021-09-16T17:06:12.214Z ERR!
2021-09-16T17:06:12.215Z  - "python" is not in PATH or produced an error
2021-09-16T17:06:12.216Z gyp ERR!
2021-09-16T17:06:12.216Z find Python checking if "python2" can be used
2021-09-16T17:06:12.215Z
2021-09-16T17:06:12.216Z gyp
2021-09-16T17:06:12.217Z  ERR! find Python - "python2" is not in PATH or produced an error
2021-09-16T17:06:12.217Z
2021-09-16T17:06:12.218Z gyp
2021-09-16T17:06:12.218Z ERR! find Python checking if "python3" can be used
2021-09-16T17:06:12.219Z gyp
2021-09-16T17:06:12.219Z ERR! find Python
2021-09-16T17:06:12.220Z  - "python3" is not in PATH or produced an error
2021-09-16T17:06:12.220Z
2021-09-16T17:06:12.220Z gyp ERR! find Python
2021-09-16T17:06:12.221Z gyp ERR!
2021-09-16T17:06:12.221Z find Python **********************************************************
2021-09-16T17:06:12.222Z gyp ERR!
2021-09-16T17:06:12.221Z
2021-09-16T17:06:12.222Z  find Python You need to install the latest version of Python.
2021-09-16T17:06:12.222Z
2021-09-16T17:06:12.223Z gyp
2021-09-16T17:06:12.223Z  ERR!
2021-09-16T17:06:12.224Z
2021-09-16T17:06:12.224Z find Python Node-gyp should be able to find and use Python. If not,
2021-09-16T17:06:12.225Z
2021-09-16T17:06:12.225Z gyp
2021-09-16T17:06:12.226Z ERR!
2021-09-16T17:06:12.227Z find Python you can try one of the following options:
2021-09-16T17:06:12.227Z gyp
2021-09-16T17:06:12.226Z
2021-09-16T17:06:12.228Z gyp
2021-09-16T17:06:12.229Z
2021-09-16T17:06:12.229Z ERR! find Python   (accepted by both node-gyp and npm)
2021-09-16T17:06:12.227Z ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
2021-09-16T17:06:12.228Z
2021-09-16T17:06:12.231Z ERR! find Python - Set the environment variable PYTHON
2021-09-16T17:06:12.231Z gyp ERR!
2021-09-16T17:06:12.230Z gyp
2021-09-16T17:06:12.232Z  find Python - Set the npm configuration variable python:
2021-09-16T17:06:12.233Z gyp ERR! find Python
2021-09-16T17:06:12.233Z    npm config set python "/path/to/pythonexecutable"
2021-09-16T17:06:12.234Z gyp ERR!
2021-09-16T17:06:12.234Z
2021-09-16T17:06:12.235Z find Python For more information consult the documentation at:
2021-09-16T17:06:12.236Z ERR!
2021-09-16T17:06:12.235Z
2021-09-16T17:06:12.236Z gyp
2021-09-16T17:06:12.237Z
2021-09-16T17:06:12.237Z find Python
2021-09-16T17:06:12.237Z  https://github.com/nodejs/node-gyp#installation
2021-09-16T17:06:12.238Z gyp
2021-09-16T17:06:12.239Z
2021-09-16T17:06:12.239Z ERR! find Python
2021-09-16T17:06:12.239Z  **********************************************************
2021-09-16T17:06:12.240Z gyp ERR! find Python
2021-09-16T17:06:12.240Z
2021-09-16T17:06:12.241Z gyp ERR!
2021-09-16T17:06:12.242Z
2021-09-16T17:06:12.244Z
2021-09-16T17:06:12.241Z  configure error
2021-09-16T17:06:12.244Z gyp ERR! stack Error: Could not find any Python installation to use
2021-09-16T17:06:12.245Z gyp ERR! stack     at PythonFinder.fail (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:307:47)
2021-09-16T17:06:12.245Z gyp ERR! stack     at PythonFinder.runChecks (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:136:21)
2021-09-16T17:06:12.246Z
2021-09-16T17:06:12.246Z gyp ERR! stack     at PythonFinder.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:179:16)
2021-09-16T17:06:12.247Z
2021-09-16T17:06:12.248Z gyp
2021-09-16T17:06:12.248Z ERR!
2021-09-16T17:06:12.249Z      at PythonFinder.execFileCallback (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:271:16)
2021-09-16T17:06:12.249Z gyp ERR! stack     at exithandler (child_process.js:397:5)
2021-09-16T17:06:12.250Z gyp
2021-09-16T17:06:12.248Z stack
2021-09-16T17:06:12.250Z ERR! stack     at ChildProcess.errorhandler (child_process.js:409:5)
2021-09-16T17:06:12.251Z gyp ERR! stack     at ChildProcess.emit (events.js:400:28)
2021-09-16T17:06:12.253Z gyp
2021-09-16T17:06:12.254Z gyp
2021-09-16T17:06:12.255Z ERR!
2021-09-16T17:06:12.252Z
2021-09-16T17:06:12.252Z gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
2021-09-16T17:06:12.254Z ERR! stack     at onErrorNT (internal/child_process.js:467:16)
2021-09-16T17:06:12.255Z  stack     at processTicksAndRejections (internal/process/task_queues.js:82:21)
2021-09-16T17:06:12.255Z
2021-09-16T17:06:12.257Z gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
2021-09-16T17:06:12.258Z
2021-09-16T17:06:12.258Z gyp ERR! cwd /home/myuser/app/node_modules/better-sqlite3-with-prebuilds
2021-09-16T17:06:12.256Z gyp ERR! System Linux 4.14.243-185.433.amzn2.x86_64
2021-09-16T17:06:12.257Z
2021-09-16T17:06:12.259Z
2021-09-16T17:06:12.259Z gyp ERR! node -v v14.17.6
2021-09-16T17:06:12.260Z
2021-09-16T17:06:12.261Z
2021-09-16T17:06:12.261Z gyp ERR! not ok
2021-09-16T17:06:12.262Z npm ERR!
2021-09-16T17:06:12.263Z code ELIFECYCLE
2021-09-16T17:06:12.260Z gyp ERR! node-gyp -v v5.1.0
2021-09-16T17:06:12.261Z
2021-09-16T17:06:12.264Z npm ERR!
2021-09-16T17:06:12.264Z
2021-09-16T17:06:12.265Z
2021-09-16T17:06:12.266Z npm ERR<EMAIL_ADDRESS>build-release: `node-gyp rebuild --release`
2021-09-16T17:06:12.266Z npm ERR!
2021-09-16T17:06:12.263Z
2021-09-16T17:06:12.265Z errno 1
2021-09-16T17:06:12.266Z  Exit status 1
2021-09-16T17:06:12.267Z npm
2021-09-16T17:06:12.267Z  ERR!
2021-09-16T17:06:12.268Z
2021-09-16T17:06:12.269Z npm
2021-09-16T17:06:12.268Z npm ERR! Failed at the<EMAIL_ADDRESS>build-release script.
2021-09-16T17:06:12.269Z  ERR! This is probably not a problem with npm. There is likely additional logging output above.
2021-09-16T17:06:12.270Z
2021-09-16T17:06:12.269Z
2021-09-16T17:06:12.270Z npm WARN Local package.json exists, but node_modules missing, did you mean to install?
2021-09-16T17:06:12.271Z
2021-09-16T17:06:12.271Z npm
2021-09-16T17:06:12.272Z ERR!  Exit status 1
2021-09-16T17:06:12.458Z
2021-09-16T17:06:12.458Z npm ERR!
2021-09-16T17:06:12.459Z npm ERR!
2021-09-16T17:06:12.460Z  Failed at the<EMAIL_ADDRESS>install script.
2021-09-16T17:06:12.461Z npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2021-09-16T17:06:12.461Z
2021-09-16T17:06:12.482Z
2021-09-16T17:06:12.482Z npm ERR!
2021-09-16T17:06:12.484Z  ERR!     /home/myuser/.npm/_logs/2021-09-16T17_06_12_475Z-debug.log

Could you please check it?

Ouch, I was shipping new version of better-sqlite3-with-prebuilds and apparently some of the workflows got stuck. Looks like there is no longer a way to use ubuntu 16 with GH actions (which was needed to deal with some other issues):
Can't find any online and idle self-hosted runner in the current repository, account/organization that matches the required labels: 'ubuntu-16.04'
Waiting for a self-hosted runner to pickup this job...

Will try ubuntu 18 and get back to you in a minute.

@rubydev please try again now (you might wanna wipe node_modules and the lockfile too)

@B4nan Thanks! Now it is OK.

Closing, as the issue was originally about docker image builds and those are also working fine now.


Start getting error "Logseq is syncing internal status, please wait for several seconds" and Can not close/exite Logseq,..

Search first

[X] I searched and no similar issues were found

What Happened?
Right after I start using Excalidraw plugin regulary this issue began to happen if i create Excalidraw file during my Logseq session.
When i click a close/exit Logseq i am getting this message/error.
No matter what page is open simple Page, Journal page or Whiteboard.
Untill I manually click Re-Index graph i am getting this error and can not exit Logseq.
I am not quite sure 100% if it is Logseqs error or Plugins issue, but i am getting it from time to time after installing Excalidraw Plugin...
Thank you!
Reproduce the Bug

Open Logseq
Create /Excalidraw: Create New Drawing -> draw some lines/text/rectangles
Save and Exit Drawing
Then try to exit Logseq

Screenshots

Environment Information
Windows 10, Logseq app 0.9.8 , plugin Excalidraw 1.3.0
Additional Context
No response
Are you willing to submit a PR? If you know how to fix the bug.

[ ] I'm willing to submit a PR (Thank you!)

Than you for your feedback. I have already reported this issue to the logseq team. https://github.com/logseq/logseq/issues/9612

Still happening here. If I force-close the drawing is lost.
I don't know if it's possible, to implement in a similar way, but I think the drawio plugin did this right.


No gethash(char[]) function in SHA3

Hello, thanks for this library! I didnt see a getHash(unsigned char buffer[HashBytes]) function in SHA3, wasn't sure why. Can you please let me know? Thanks!

Hi,
all hash algorithms in my library have a fixed size, e.g. SHA1 produces 160 bits => 20 bytes.
The only exception is SHA3/Keccak which offers several hash lengths (224, 256, 384, 512) which can be chosen at runtime.
That means it's impossible to have a compile-time constant HashBytes - and therefore no getHash(unsigned char buffer[HashBytes]).


Forge versions in future ?

Will ever be again some version for forge or you are no longer focusing to forge ?

See the 1.13 branch.
On Wed, May 29, 2019, 1:23 PM T0biasCZe<EMAIL_ADDRESS>wrote:

Will ever be again some version for forge or you are no longer focusing to
forge ?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/killjoy1221/TabbyChat-2/issues/103?email_source=notifications&email_token=AA2AQKWHDIMEX5NHX5HEC5TPX23YVA5CNFSM4HQO6EO2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GWRMF7Q,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA2AQKQJ2IYAUQ3W57VMOJDPX23YVANCNFSM4HQO6EOQ
.

ok and will be 1.12.2 forge version ?


Update sprockets

Please update the sprockets to version 3.

I concur, can't use with brand new Rails 4.2.3 project.

@rafaelgonzalez  Try v1.0.7

1.0.7 also depends on sprockets < 3.0.0, so the issue still stands.
bundle update solves the issue with both 1.0.6 and 1.0.7 because it forces sprockets to be < 3.0.0. So I'll use sprockets < 3.0.0 in the mean time!

yeah.. there we a couple attempts to update sprockets processors to be 3.0.0 compliant in different forks. But no pull request so far. At some point I'll need to look into sprockets 3.0.0 docs and make needed changes.

:+1:

I've added support for sprockets v3. See pull request #56

I tried polymer-rails with master branch version, created a hello component but still the manifest file is showing blank. I included the component name correctly //= require hello/hello

Can you create simple project with example of this and put link to repository?

:+1: OK

https://github.com/piyushchauhan2011/polymer-rails-bug @bjarosze

Hey @piyushchauhan2011 read polymer doc carefully ;) hello is not a valid name for polymer element. Try hello-man :smile:

Haha so silly of me @alchapone, I think then we can close this issue awesome work. I just checked works perfectly fine :+1:

@piyushchauhan2011 Great! )


Fix a typo

Hi, @luben . Could you review this PR fixing a typo?

Codecov Report

Merging #96 into master will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #96   +/-   ##
=========================================
  Coverage     60.45%   60.45%
  Complexity      135      135
=========================================
  Files            10       10
  Lines           751      751
  Branches        118      118
=========================================
  Hits            454      454
  Misses          184      184
  Partials        113      113

Thanks! Merged.

Thanks!


Chapter 3 Revisions

[ ] references to section 3.3 can be links like so https://www.opencasestudies.org/OCS_Guide/use-of-open-case-studies.html#case-study-recommendations (check if this is the section intended)
[x] 3.1 pre reqs can be subheadings with ### or whatever number  of hashtags is one more than the 3.1 header
[x] this header is duplicated: Experience Level Descriptions
[x] 3.3 table format got messed up - could use spaces between material and table - can use
[x] 3.4 example uses can use subheadings with markdown  (using ### for different sections like Intermediate Undergraduate Data Science Course)
[ ] Let's maybe add a header for the session info and do it in a way that is consistent with the other chapters.

I assigned this to all of us so whoever gets to it first works... we can keep track of what needs to be done here with the checkboxes. Also feel free to add more items or modify them. I didn't check the content as deeply for this chapter.

A couple of questions:

There are a couple of avocados saying to reference interactive case studies. Is there a specific thing we want to demonstrate here?
I'm not sure if the "Teaching a Full Case Study" section is a previous placeholder? It seems that it's incomplete

This is done now


fix: add error message to log

Adds error message to error log.
@jakubkoci this is what you get when you don't include the error message specifically. I think we need to fix this in rn-indy-sdk. I'll try to look at it in the near future. For now this fix helps

CI is failing because of error with indy-sdk publishing:

For anyone receiving an error like the following. We are aware of the issue and are working toward a resolution. I'll update the community when the issue has been resolved. Thank you for your patience.

Codecov Report

Merging #342 (2e0ae35) into main (93893b7) will not change coverage.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##             main     #342   +/-   ##
=======================================
  Coverage   88.37%   88.37%
=======================================
  Files         225      225
  Lines        4093     4093
  Branches      480      480
=======================================
  Hits         3617     3617
  Misses        476      476

Impacted Files
Coverage Δ

src/transport/HttpOutboundTransporter.ts
83.33% <0.00%> (ø)

Continue to review full report at Codecov.

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

Vau 😮  So it means that it prints empty error object like {} but if you call error.message it prints out an error message? 🤔 🤯

Vau 😮 So it means that it prints empty error object like {} but if you call error.message it prints out an error message? 🤔 🤯

Exactly. It doesn't happen however in Node.JS


Example for reading from IoT Hub?

Is there any possibility to have sample for reading from IoT / Event Hub? Both of them are suitable cases for Structured Streaming on Databricks.

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

ID: 7fa17b96-900b-e157-153d-54635d864a76
Version Independent ID: 66df9360-02ad-8c7f-9f97-d24efbfef8af
Content: Structured Streaming with .NET for Apache Spark tutorial
Content Source: docs/spark/tutorials/streaming.md
Product: dotnet-spark
GitHub Login: @mamccrea
Microsoft Alias: mamccrea

@CamSoper is this something that you're familiar with, or might have an existing doc to point to?

Here are some resources:
Connect your Apache Spark application with Azure Event Hubs
https://github.com/dotnet/spark/issues/325#issuecomment-552536623
We'll work on adding this scenario to our docs.

Thanks.. Am working on the same as you'll be able to see from comments. Probably can contribute to create sample too. Need some help on that question.
If it's not too much to ask, can you please help to resolve error am getting there?
Best,
Sanket Tarun Shah | +91 98793 56075

From: Mary McCready<EMAIL_ADDRESS>Sent: Wednesday, May 13, 2020 10:41:46 PM
To: dotnet/docs<EMAIL_ADDRESS>Cc: Sanket Shah<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [dotnet/docs] Example for reading from IoT Hub? (#18378)
Here are some resources:
Connect your Apache Spark application with Azure Event Hubshttps://docs.microsoft.com/azure/event-hubs/event-hubs-kafka-spark-tutorial
dotnet/spark#325 (comment)https://github.com/dotnet/spark/issues/325#issuecomment-552536623
We'll work on adding this scenario to our docs.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/dotnet/docs/issues/18378#issuecomment-628126753, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABZHVBPNCCTZ7I2V7L2B6Z3RRLIFFANCNFSM4M7D54YQ.

Hi @sanket-t-shah - It appears your question was resolved in the other thread, so I will proceed to close this issue. Please reopen the issue if you have any additional questions.

I resolved issue on my own as didn't got any support. That's the strangest thing to have from Microsoft.


Starting anew with a pristine wiki

When you try out the wiki during development you often end up polluting it.
Instructions for starting afresh are given, i.e. stopping the server and
removing the data directory.

Hmm. I'm hesitant to write rm -r anything into instructions without knowing the unix skill level of the reader. The point here seems to be that it is easy to experiment. Maybe there is a way to helpfully explain this without going into dangerous command line commands. I appreciate the help.
The "farm" capability also makes it easy to experiment. I set my localhost up that way and add <IP_ADDRESS> foo.localhost lines to /etc/hosts when I want a new experimental place.
See also https://github.com/WardCunningham/ddd for an example of where I write a script to generate pages from another source.


refactor: create IEncoder for transaction/event mocking

This refactors the encoders added in #916 to extend upon IBuilder. A new IEncoder has been created, with a base Encoder to extend from.
Note: some small modifications were made to IBuilder and Builder to facilitate this.

Great job! 👏🏻 I agree with @fmrsabino comments. Otherwise, it looks good to me.


Add pagination to DataFrameModel

See https://sateeshkumarb.wordpress.com/2012/04/01/paginated-display-of-table-data-in-pyqt/

:white_check_mark: Build dtocean-qt 0.10.dev0.build15 completed (commit https://github.com/DTOcean/dtocean-qt/commit/73afbf77c1 by @H0R5E)


Duration-0 potion effects still apply for the remainder of the tick

this lets you get free Absorption, letting you overcast without cost

If this is still cheesable I'll change it to req one second or more


Docker:  RADARR_B_PROFILE env variable not functional

Describe the bug
Setting the RADARR_B_PROFILE environment variable does not parse the profile correctly
Version
Current Docker version as of 4/8
Config
RADARR_B_PROFILE = UHD
Debug logs
{
"propertyName": "ProfileId",
"errorMessage": "Profile does not exist",
"attemptedValue": 1,
"formattedMessageArguments": [],
"formattedMessagePlaceholderValues": {
"propertyName": "Profile Id",
"propertyValue": 1
}
Additional context
Add any other context about the problem here.

Issue on my end


feat: add depositFor method to sett and settv1 contract for upgrades

Also adds two methods to badger system governance_queue_transaction() and governance_execute_transaction(). The former queues a tx and persists it to timelock/{TXHASH}.json. The latter takes a tx filename and executes it.
Includes tests and upgrade script.

Nice take on the timelock functions, that'll be super useful going forward


[Notion] Support multiple workspaces

Extension
https://www.raycast.com/notion/notion
Description
I use notion for work and personal affairs.
Couldn't find a way to use the extension with a different workspace.
Tried forking the extension, and it kinda works, but couldn't figure out how to create custom quicklinks for the command
Who will benefit from this feature?
Anybody who uses Notion with more than one workspace.
Anything else?
No response

See #269
In regards to custom quicklinks, you need to change the extension or author name. This way, the deeplink that is created will be different from the original extension's deeplink.


UnhandledPromiseRejectionWarning: Unhandled  promise rejection

When i use axios i got error:
[2017-01-08 17:30:09]  Transforming files
transformed 364/394 (92%)(node:1948) UnhandledPromiseRejectionWarning: Unhandled
promise rejection (rejection id: 306): UnableToResolveError: Unable to resolve
module http from F:\ReactNative\test\node_modules\apisauce\node_modules\axios\li
b\adapters\http.js: Module does not exist in the module map or in these director
ies:
F:\ReactNative\test\node_modules\apisauce\node_modules
,   F:\ReactNative\test\node_modules
This might be related to https://github.com/facebook/react-native/issues/4968
To resolve try the following:

Clear watchman watches: watchman watch-del-all.
Delete the node_modules folder: rm -rf node_modules && npm install.
Reset packager cache: rm -fr $TMPDIR/react-* or npm start -- --reset-cac he.
(node:1948) DeprecationWarning: Unhandled promise rejections are deprecated. In
the future, promise rejections that are not handled will terminate the Node.js p
rocess with a non-zero exit code.

i doing all the resolves in the introductions and its didnt help...
the error came when i add to my code:
import {create} from 'apisauce';
tnx a lot

I'm also getting this.

I'm also getting this.

I am also getting this error

I solved the problem.
i downgrade my react-native version to 0.35.0 and the problem was solved.

@kfir91 Thanks for the suggestion, it worked for me as well.


mention_count: Fixed @ mention_count badge position correctly.

This commit fixes @ mention_count badge position.
Fixes: #5278

Thanks for the revision! Please squash the second commit into the first, and add the code comment I requested in https://github.com/zulip/zulip-mobile/pull/5301#discussion_r829529064.

Sure @chrisbobbe!, I'll do it and let you know. Thanks 😊

Thanks @chrisbobbe!, I've little bit doubt in this case!, You mean to say that, add code comment in the commit msg or somewhere else such as in CountOverlay component just before the size of icon we are defining?. Thanks 😊

[…] in CountOverlay component just before the size of icon we are defining?

Right, just above the overlaySize={18.75} line. The goal is that people reading the code can easily find the answer to the question, "Why this number?"

Thanks @chrisbobbe!, I've done the final revision. Please have a look. Thanks 😊

Thanks! Sorry I've let this hang for a bit. Just two small commit-message nits, then I think this will be ready to merge.
For the summary line, mention_count doesn't sound quite right for the relevant subsystem. I looked to see if it was a variable name in the codebase, and I didn't find a match. For UI changes, often a good choice is the relevant screen. This change is being made on HomeScreen, so I'd use HomeScreen:  for the prefix instead of mention_count: .
Then, in the commit-message body, let's mention that we're trying to match the appearance of react-navigation's badge that appears in the bottom tab bar on the "Conversations" tab.

Thanks @chrisbobbe!,
I've made the revision as you asked me to do. Please have a look at that. I think, we are probably ready to merge this. Thanks 😊

Thanks, @thisisnitish! Merged.


Fix:issues#15716, compute the actual height of the text style background

Fix issue#15716

Thanks @Frank-Chan, see my comments about a suggested change.

@ahocevar Modified and submitted, please review

@Frank-Chan Look at the failing rendering tests. Seems the test fixes your issue, but breaks things in cases where the font changes within a single line. The best thing would be to add a rendering test for your case first, and then work on a solution that fixes your case without breaking the existing ones.

Looks like from the code before your pull request, the only change needed is
--- a/src/ol/render/canvas.js
+++ b/src/ol/render/canvas.js
@@ -381,6 +381,7 @@ export function getTextDimensions(baseStyle, chunks) {
       lineWidths.push(lineWidth);
       lineWidth = 0;
       height += lineHeight;
+      lineHeight = 0;
       continue;
     }
     const font = chunks[i + 1] || baseStyle.font;

And for a rendering test, you could use the following as main.js:
import Feature from '../../../../src/ol/Feature.js';
import Fill from '../../../../src/ol/style/Fill.js';
import Map from '../../../../src/ol/Map.js';
import Point from '../../../../src/ol/geom/Point.js';
import Stroke from '../../../../src/ol/style/Stroke.js';
import Style from '../../../../src/ol/style/Style.js';
import Text from '../../../../src/ol/style/Text.js';
import VectorLayer from '../../../../src/ol/layer/Vector.js';
import VectorSource from '../../../../src/ol/source/Vector.js';
import View from '../../../../src/ol/View.js';

const vectorSource = new VectorSource({
  features: [new Feature(new Point([0, 0]))],
});

const labelStyle = new Style({
  text: new Text({
    font: '13px Ubuntu,sans-serif',
    fill: new Fill({
      color: '#000',
    }),
    stroke: new Stroke({
      color: '#fff',
      width: 4,
    }),
    padding: [0, 0, 0, 0],
    overflow: false,
  }),
});

new Map({
  pixelRatio: 1,
  layers: [
    new VectorLayer({
      source: vectorSource,
      style: function (feature) {
        const textStyle = labelStyle.getText();
        textStyle.setFont('13px Ubuntu,sans-serif');
        textStyle.setBackgroundFill(
          new Fill({
            color: 'blue',
          }),
        );
        textStyle.setBackgroundStroke(
          new Stroke({
            color: 'red',
            width: 2,
          }),
        );
        textStyle.setStroke(
          new Stroke({
            color: '#b4ebaf',
            width: 4,
          }),
        );
        textStyle.setText([
          '30',
          'bold 23px/23px serif',
          '\n',
          '',
          ' Montana',
          '900 11px/11px serif',
          '\n',
          '',
          '6.858 people/mi²',
          'italic 11px/11px Ubuntu,sans-serif',
        ]);
        return labelStyle;
      },
    }),
  ],
  target: 'map',
  view: new View({
    center: [0, 0],
    resolution: 1,
  }),
});

render({tolerance: 0.01});

@Frank-Chan Look at the failing rendering tests. Seems the test fixes your issue, but breaks things in cases where the font changes within a single line. The best thing would be to add a rendering test for your case first, and then work on a solution that fixes your case without breaking the existing ones.

Yes，I hadn't thought about the single line before. I've been chaned now.
Thanks for your suggestion!

I just added a rendering test, and updated an existing one that actually showed the issue which is now fixed.

Thanks, @Frank-Chan


Update tests to use default_startup_delay from config

Depends on #450

default_startup_delay set to 30 in the config
Tests that use this value now take it from the config
Previously value was only used by shutdown_now test which now has its own key
event_delay in shutdown_now and disabled_rules tests is now configurable
Hardcoded event_delay values have no impact on tests and do not need to be configurable

@Alex-Izquierdo @mkanoor pls review. I have added configurable values for shutdown_now and disabled_rules tests. I also updated the process shutdown test to use a hardcoded value of 0.05, which matches the hardcoded value used in the operators tests. Tests with hardcoded values do not rely on the accuracy of these values for the tests to pass, it is just to prevent an event storm hence they do not need to be configurable.


Latest ffmpeg update break program

❯ cmusCoverViewer
cmusCoverViewer: error while loading shared libraries: libavformat.so.59: cannot open shared object file: No such file or directory

sorry, i recompile and it work again, uh im such a noob.


Comments in JavaScript files need a refactor

Follow the guidelines in assets-frontend/issues/596 for comments in all JavaScript files

The markup removed
A reference to the styles files for the component
An explanation of what attributes you need to make the tabs work correctly

We need to standardise the comments in JS files so that that can be parsed by the comp-lib engine and displayed along side their respective style markup examples.

@rpowis is this meant to be in https://github.com/hmrc/component-library-template/ ?

@feedmypixel haha. yes


Converted the AppModal to a AppPage.

Introducing PageComponent.
Moved components to be rendered into own function.
getInfo function with better default case.
Remove black background from page header.
Implement breadcrumbs for app and tasks.
Removed controls while displaying task details.
Darken the navbar background.
Breadcrumbs with darker background.
Adding hasHealth method to app model.
Rebased version of #1135
@mlunoe


vitest hangs with stubbed process

Describe the bug
Vitest hangs ( npx vitest run) if a test stubs the global process.
After updating vitest from 0.34 to 1.4.0
The culprit is the stubbed process, if removed everything works as expected.
Reproduction
vi.stubGlobal('process', { server: false, client: true });

describe('reproducer', () => {
  it('should not hang', () => {
    expect(undefined).toBeUndefined();
  });
});

System Info
System:
    OS: Linux 5.15 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
    CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11850H @ 2.50GHz
    Memory: 106.68 GB / 125.50 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 18.18.2 - ~/.nvm/versions/node/v18.18.2/bin/node
    npm: 9.8.1 - ~/.nvm/versions/node/v18.18.2/bin/npm
  Browsers:
    Chromium: 122.0.6261.128
  npmPackages:
    @vitest/coverage-istanbul: 0.30.1 => 0.30.1
    vitest: 1.3.1 => 1.3.1

Used Package Manager
npm
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

I don't know how far we can allow manipulating globals, but for this specific case of process, the minimal reproduction seems to be process.memoryUsage:
https://stackblitz.com/edit/vitest-dev-vitest-khv9rc?file=test%2Fbasic.test.ts
process.memoryUsage = undefined;

I'm guessing that memoryUsage is used by tinypools and it's throwing inside this try/catch, so no result is coming back:
https://github.com/tinylibs/tinypool/blob/6ca7bb480a9d0c54dac04eaab5e6523d300f1791/src/entry/worker.ts#L126-L135
For your case, I understand it turns out to be a regression, but maybe you could also do:
vi.stubGlobal('process', { ...process, server: false, client: true });

Or stubGlobal is mostly equivalently just process.server = false etc... so you could simply mutate the global by yourselves.

We could store reference of memoryUsage in Tinypool before Vitest's entrypoint is imported. We do similarly in birpc for couple of public APIs: https://github.com/antfu/birpc/blob/72510536cedb301953e0550d884667804d7268d0/src/index.ts#L145-L147

https://github.com/tinylibs/tinypool/pull/83 fixes this issue. However there are still some process APIs that need to be saved on Vitest's side if pool: 'forks' is used.


Composer gets stuck at the blank screen when opening up my existing Bot

Describe the bug
Till yesterday, I was using one of my bots and even did a little showcase during my talk at the Microsoft Reactor. Today, when I tried to open it up, it gave me this

Upon Looking at the Developer Tools, I got this.

Version
1.0.1
Browser

[x] Electron distribution
[ ] Chrome
[ ] Safari
[ ] Firefox
[ ] Edge

OS

[ ] macOS
[x] Windows
[ ] Ubuntu

To Reproduce
Steps to reproduce the behavior:

Just launch Composer and you will see this.
Press Ctrl + Shift + I and got to know that there's some JSON issue which does not get loaded.

Expected behavior
It should open it up correctly.

Just to add that I just downloaded the nightly build as well and I get the similar response.

@arafattehsin are the able to send the bot assets to us?

Thanks @cwhitten I managed to fix it by removing one of the line from my .dialog file. Happy to close this ticket right now and will keep an eye if anything happens again, I will take a screenshot of it. The line that was removed from the dialog was at the end, right below this:

}


Of course, the example below shows an example of solving a transient forced response for the .rotor_example() Rotor object using Runge-Kutta 4th order. The x returned variable is the state space presentation of the system varying in time.

    Of course, the example below shows an example of solving a transient forced response for the `.rotor_example()` Rotor object using Runge-Kutta 4th order. The `x` returned variable is the state space presentation of the system varying in time.

I remind you as well that Ross has thes the .solve_transient() native method that can also be used. But in this case you would not explicitly use the state space formulation.
import ross as rs
import numpy.linalg as la
import numpy as np

def RK4(A, x0, t, Minv, f_mag, freq, dof_forced):

    x = np.zeros((len(A), len(t)))
    x[:,0] = x0[:]

    for i, ti in enumerate(t[:-1]):

        F = np.zeros((len(A), 3))

        dt = t[i+1] - ti

        F[len(A)//2+dof_forced, :] = np.array([f_mag * np.sin(2*np.pi * freq * ti),
                                            f_mag * np.sin(2*np.pi * freq * (t[i+1]+ti)/2),
                                            f_mag * np.sin(2*np.pi * freq * t[i+1])])

        aux1 = np.zeros((len(A), 1))
        aux1[:, 0] = Minv @ F[:, 0]
        aux2 = np.zeros((len(A), 1))
        aux2[:, 0] = Minv @ F[:, 1]
        aux3 = np.zeros((len(A), 1))
        aux3[:, 0] = Minv @ F[:, 2]

        k1 = A @ x[:,i].reshape((x.shape[0], 1)) + aux1
        x1 = x[:,i].reshape((x.shape[0], 1)) + k1 * dt / 2
        k2 = A @ x1 + aux2
        x2 = x[:,i].reshape((x.shape[0], 1)) + k2 * dt / 2
        k3 = A @ x2 + aux2
        x3 = x[:,i].reshape((x.shape[0], 1)) + k3 * dt
        k4 = A @ x3 + aux3

        x[:, i+1] = x[:,i] + dt / 6 * (k1 + 2 * k2 + 2 * k3 + k4)[:, 0]

    return x

rotor = rs.rotor_example()

sp = 10 # rotation speed
freq = 100 # excitation frequency

A = rotor.A(sp)
M = rotor.M()

Z = np.zeros(M.shape)
I = np.eye(len(M))

Minv = np.vstack([np.hstack([I, Z]),
                  np.hstack([Z, la.inv(M)])])

dt = 5e-5
tf = 5
t = np.arange(0, tf, dt)

dof_forced = 0 #degree of freedom to apply the force
force_mag = 10 # force magnitude in Newtons
x0 = np.zeros(len(A)) # Initial conditions

x = RK4(A=A, x0=x0, t=t, Minv=Minv, f_mag=force_mag,
        freq=freq, dof_forced=dof_forced)

Originally posted by @atbrandao in https://github.com/ross-rotordynamics/ross/issues/841#issuecomment-1035322409

hi@atbrandao
I have a problem, when I want to plot the frequency response, I encounter a mismatch error(ValueError: x and y must have same first dimension, but have shapes (1100,) and (56,)) please help me

Hi @MAATALLAHDJEMAI.
Take a look at the shape of the response. I believe it is (56, 100000) because calculation was carried out with the state-space matrix (A), so from 28 dof you have 28 displacements + 28 velocities.
So to plot results for the first node x coordinate using plotly for example you would need to do something like:
import plotly.graph_objects as go

fig = go.Figure()
fig.add_scatter(
    x=t,
    y=x[0, :]
)


GroupedBatchSampler related bug in vision/references/detection/train.py

I strongly suspect that there is a bug in the detection trainer code that uses GroupedBatchSampler to group images by aspect ratio.
if args.distributed:
    train_sampler = torch.utils.data.distributed.DistributedSampler(dataset)
    test_sampler = torch.utils.data.distributed.DistributedSampler(dataset_test)
else:
    train_sampler = torch.utils.data.RandomSampler(dataset)
    test_sampler = torch.utils.data.SequentialSampler(dataset_test)

if args.aspect_ratio_group_factor >= 0:
    group_ids = create_aspect_ratio_groups(dataset, k=args.aspect_ratio_group_factor)
    train_batch_sampler = GroupedBatchSampler(train_sampler, group_ids, args.batch_size)

https://github.com/pytorch/vision/blob/cffac640d703196ea9a369166fa8ae587cb5e64d/references/detection/train.py#L80
Due to the random shuffle done by DistributedSampler and RandomSampler, there is an inconsistency between train_sampler and group_ids. Specifically: group_ids is with respect to the original dataset order (as dictated by dataset), but GroupedBatchSampler will index into group_ids using the indices output by train_sampler, eg:
def __iter__(self):
    buffer_per_group = defaultdict(list)
    samples_per_group = defaultdict(list)

    num_batches = 0
    for idx in self.sampler:
        group_id = self.group_ids[idx]

https://github.com/pytorch/vision/blob/cffac640d703196ea9a369166fa8ae587cb5e64d/references/detection/group_by_aspect_ratio.py#L53
The impact is: GroupedBatchSampler will use retrieve the wrong aspect ratios when attempting to batch images with the same aspect ratio together, resulting in batches that are sub-optimally aspect-ratio balanced.
If my understanding is correct, then: to fix this, we'd need to change the train.py to ensure that the train_sampler and group_ids are consistent.
I haven't yet had the time to write a small, contained test case that demonstrates the bug, but just in case I'll create this issue while it's on my mind.

Nevermind, this is correct, I misunderstood things. Sorry about that!


clear up what is difference between params, and algo_input

In general, I'm struggling to understand the separation of params, and algo_input
I don't like that some algorithms don't have an algo_input. Why can't the params be part of the algorithm?
run_algorithm(params,algo_input)

Hi @jaygambetta I believe I can explain some of this. The algo_input is usually inside the params as json and that was the previous behavior in all situations. However it was asked that I add the ability to also let the user pass an algo_input object. In this case the algo_input object will be used instead of any json input inside params. I believe @pistoia or @woodsp-ibm would be able to give you more details.

but why can't we combine this in one object
algorithm.input
algorithm.params

OK @jaygambetta . Let me think about it a little and I will talk to @pistoia @chunfuchen and @woodsp-ibm  too.

no problem thanks for considering it.

The algo_input is the 'data' for the algorithm, where the params is the configuration dictionary declaratively selecting which algorithm and components along with their respective parameters. algo_input would often be computed such as an Operator instance or training/test/classlabels for AI. The config and data are passed in separately.
Now params, instead of being a Python diction, can be in json form. In json form the algo_input would have been serialized to json and stored in the same json file as a convenient standalone entity for say exchanging the experiment or saving it for some future runs. Currently this is run through the same method where params can be this standalone json form and internally then the algo_input is re-created from the serialized form in the json so that what gets passed to the algorithm is consistent.

That's fine but I think it is confusing when some algorithms can run with no algo_input. I think that an algo_input should be required and params be a configuration of the algorithm.

exactly so we should ask what is algo_input and what is parameters and as a minimum, we should always require an algo_input and not params and params should be configurations. We currently have it the other way.

Params are the configuration parameters for the algorithm and its components, such as name which optimizer to use, and it step size, depth of var form etc. The algo_input is the problem data for the algorithm e.g the Hamiltonian (Operator) the VQE, classification data for the AI algo for training/prediction. The only place where this is not the case, as I explained, is Grover where, for the moment, it is passed directly to the Oracle within the params. This was possible as the data was limited to simple 3-SAT problems for the present, but as I explained, for what we have with Grover to be more consistent and solve other search problems that this would need to be revisited.

I think the confusing thing here is that both params and 'algo_inputare inputs torun_algorithm`.  I also do not understand why they cannot be combined into a single instance.  The partitioning of what goes in which dict is also not so clear.
However, looking through the tutorials, I am wondering about the use of run_algorithm itself.  It seems by a very non-pythonic, i.e. matlab like, way of doing things.  All the examples specify and algorithm, and then set the parameters for that algorithm.  So why are the algorithms themselves not classes that can be setup.  For example, something like:

alg = VQE()
alg.optimizer = ...
alg.params = ...
alg.backend=...
alg.run()

alg.result()

run_algorithm has two parameters. One is a configuration dictionary for that algorithm of settings to select which algo to run, and control parameters to tune how the algorithm runs such as depth, which var form etc. The other the is data that the algorithm will act upon. The documentation in this regard might be improved to help but I do not see how combining them as two fields in a single instance will help if the meaning of what should go in those fields (ie what were the parameters to run_algorithm) is less than clear.
run_algorithm was designed to be run declaratively so it can be run from json, with schema validation enforced. This was a key requirement.  It allows an experiment to be saved as json (the inputs to run_algorithm) and re-run from that json in the future or exchanged with others to run. The method also supports passing the config part of that json as a Python dictionary and having the problem data supplied directly rather than it being serialized to the json. When you have programmatically created an Operator as input data for the algorithm it allows it to be used directly rather than being serialized to json and immediately thereafter in run algorithm deserialized back to an Operator for the algorithm to consume as they do not deal with json.
The python style you show is nore of less what run_algorithm uses internally. That level of API can be used and we have more advanced notebooks that show this. In general the expectation was that reqular users would use the run_algorithm. Developers adding to Aqua would be expected to know the internals more and may wish to use this when developing new algos or components.

Closing old discussion


Fix longitudes that wrap around the IDL when converting from EPSG:3857 to EPSG:4326

This adds a bit of logic to the toEPSG4326() function in src/ol/proj/epsg3857.js (for transforming coordinates from EPSG:3857 to EPSG:4326), so that longitudes cannot be less than -180 or greater than +180. This issue occurs in various circumstances (described in #3899), including when drawing shapes after the map has been panned across the international date line.
See #3899

Looking into the failing tests now...

Thank you @mike-000 for taking the time to look at this and provide feedback!
The "drawing across dateline" consideration is not something that occurred to me - and @chander just made the same point in #3899 where this started. That makes sense.
In your opinion, would this change to toEPSG4326() be sensible in a limited use-case where we are don't expect shapes to cross the date line? I made a proof-of-concept Gist that overrides the toEPSG4326() function without patching the OL library code itself: https://gist.github.com/mstenta/3d7e6a02c37bbf9dd246116712c6bd8b
In my case, I'm developing an application for farmers, which involves drawing polygons around field boundaries, so (I hope) they will never cross the date line. Or do you think this would cause other problems I'm not foreseeing?
Thanks again for your feedback!

@mstenta I think you need to consider the whole geometry, not just the current coordinate for adjusting the coordinate. In OpenLayers, you could do that with code like this:
/**
 * Adjusts the geometry's coordinates to be in the range of -180 to +180. Geometries that are
 * crossing the date line are not modified.
 * @param {import("ol/geom/Geometry.js").default} geometry Geometry in EPSG:4326 projection
 */
function adjustWorld(geometry) {
  let extent = geometry.getExtent();
  while (extent[0] < -180 && extent[2] < -180) {
    geometry.translate(180, 0);
    extent = geometry.getExtent();
  }
  while (extent[0] > 180 && extent[2] > 180) {
    geometry.translate(-180, 0);
    extent = geometry.getExtent();
  }
}

You might also want to look into splitting geometries so all coordinates lie between -180 and +180.  There's a codesandbox example using turf.js in #10289

Thank you @ahocevar and @mike-000! I appreciate your feedback (and ALL the work you do)!
I'll look into your suggestions for our specific use-case.


New blank app with latest ionic - stuck on splash screen

When I try to run a new blank app that I just created it hangs on splash screen.
Here is  the output in Xcode:
objc[26207]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x11005a910) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x10fded210). One of the two will be used. Which one is undefined.
2017-12-05 23:53:25.714688 MyApp[26207:1446869] subsystem: com.apple.UIKit, category: HIDEventFiltered, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 0
2017-12-05 23:53:25.900011 MyApp[26207:1446869] subsystem: com.apple.UIKit, category: HIDEventIncoming, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 0
2017-12-05 23:53:25.917109 MyApp[26207:1446855] subsystem: com.apple.BaseBoard, category: MachPort, enable_level: 1, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0, enable_private_data: 0
2017-12-05 23:53:26.009 MyApp[26207:1446789] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///Users/dennisbutovetsky/Library/Developer/CoreSimulator/Devices/2F159FC2-FC3D-4B98-BA8E-74452F0EA6E5/data/Containers/Data/Application/7BB66E12-8F7E-4244-A826-8E23A02E2FCF/Library/Cookies/io.ionic.starter.binarycookies
2017-12-05 23:53:26.017564 MyApp[26207:1446789] subsystem: com.apple.libsqlite3, category: logging, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 0
2017-12-05 23:53:26.295580 MyApp[26207:1446789] subsystem: com.apple.UIKit, category: StatusBar, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 0
2017-12-05 23:53:26.397 MyApp[26207:1446789] Apache Cordova native platform version 4.3.1 is starting.
2017-12-05 23:53:26.403 MyApp[26207:1446789] Multi-tasking -> Device: YES, App: YES
2017-12-05 23:53:26.437 MyApp[26207:1446789] CDVWKWebViewEngine: trying to inject XHR polyfill
2017-12-05 23:53:26.643549 MyApp[26207:1446789] subsystem: com.apple.UIKit, category: GestureEnvironment, enable_level: 0, persist_level: 0, default_ttl: 1, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 0
2017-12-05 23:53:26.644 MyApp[26207:1446789] CDVWKWebViewEngine will reload WKWebView if required on resume
2017-12-05 23:53:26.645 MyApp[26207:1446789] Using Ionic WKWebView
2017-12-05 23:53:26.647 MyApp[26207:1446789] [CDVTimer][handleopenurl] 0.232041ms
2017-12-05 23:53:26.717 MyApp[26207:1446789] [CDVTimer][intentandnavigationfilter] 68.947017ms
2017-12-05 23:53:26.731 MyApp[26207:1446789] [CDVTimer][gesturehandler] 0.446975ms
2017-12-05 23:53:26.746 MyApp[26207:1446789] [CDVTimer][keyboard] 8.565009ms
2017-12-05 23:53:26.912 MyApp[26207:1446789] [CDVTimer][splashscreen] 164.066017ms
2017-12-05 23:53:26.913 MyApp[26207:1446789] [CDVTimer][TotalPluginStartup] 265.953004ms
2017-12-05 23:53:27.148900 MyApp[26207:1446789] subsystem: com.apple.BackBoardServices.fence, category: App, enable_level: 1, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0, enable_private_data: 0
2017-12-05 23:54:29.852 MyApp[26207:1446789] Failed to load webpage with error: The request timed out.
Here is my config.xml:
<content src="index.html" />     <access origin="*" />     <allow-intent href="http://*/*" />     <allow-intent href="https://*/*" />     <allow-intent href="tel:*" />     <allow-intent href="sms:*" />     <allow-intent href="mailto:*" />     <allow-intent href="geo:*" />     <preference name="ScrollEnabled" value="false" />     <preference name="android-minSdkVersion" value="16" />     <preference name="BackupWebStorage" value="none" />     <preference name="SplashMaintainAspectRatio" value="true" />     <preference name="FadeSplashScreenDuration" value="300" />     <preference name="SplashShowOnlyFirstTime" value="false" />     <preference name="SplashScreen" value="screen" />     <preference name="SplashScreenDelay" value="3000" />     <allow-navigation href="http://localhost:8080/*" />     <feature name="CDVWKWebViewEngine">         <param name="ios-package" value="CDVWKWebViewEngine" />     </feature>     <preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />
Here is the output of "ionic info":
_cli packages: (/usr/local/lib/node_modules)
@ionic/cli-utils  : 1.15.2
ionic (Ionic CLI) : 3.15.2

global packages:
cordova (Cordova CLI) : 6.5.0

local packages:
@ionic/app-scripts : 3.1.0
Cordova Platforms  : ios 4.3.1
Ionic Framework    : ionic-angular 3.9.2

System:
ios-deploy : 1.9.0
ios-sim    : 5.0.8
Node       : v6.10.2
npm        : 3.10.10
OS         : OS X El Capitan
Xcode      : Xcode 8.0 Build version 8A218a

Environment Variables:
ANDROID_HOME : not set

Misc:
backend : legacy_

I have the same issue. when I install this plugin, screen stucks on splash screen.
I got this errors:

deviceready has not fired after 5 seconds.
Channel not fired: onDOMContentLoaded

any help would be appreciated

Same issue.
But I was keeping my app in background a long time before open it.
Sometime when i build the app in xcode, it throws an error to me.
Failed to load webpage with error: Could not connect to the server.
@ionic/cli-utils  : 1.19.0
ionic (Ionic CLI) : 3.19.0
global packages:
cordova (Cordova CLI) : 7.1.0

local packages:
@ionic/app-scripts : 3.1.0
Cordova Platforms  : android 6.3.0 ios 4.5.4
Ionic Framework    : ionic-angular 3.9.2

System:
ios-deploy : 1.9.2
Node       : v8.9.1
npm        : 5.5.1
OS         : macOS Sierra
Xcode      : Xcode 9.2 Build version 9C40b

Environment Variables:
ANDROID_HOME : not set

Misc:
backend : legacy

My app opens okay but it will hang after running for 6 - 10 hours. Usually, I noticed this because I tap the push notification which brings me to the app. The app goes through cold start because it displays the splash screen. And the splash screen stays there forever for whatever reason. I don't even know where to start the investigation. I think this is a variation to what happens to @cryo243

Hi guys. I forgot to update the thread after my findings.  the ionic plugin webview makes use of the https://github.com/swisspol/GCDWebServer  webserver to serve the html assets/pages and so on.
Based on https://github.com/swisspol/GCDWebServer/issues/144 , the webserver is automatically suspended by default when it is  started without the  GCDWebServerOption_AutomaticallySuspendInBackground:@(NO option. That's the reason of the "hang". What happens is that push notifications, or any background services like tracking user locations and so on wakes up the app in background mode but does not bring up the UI(like in my case). The webserver is started but will be suspended after  not receiving xhr requests. Hence, when you try opening your app manually, the splashscreen stays idle  waiting for cordova to notify it that the webview is ready.
What I ended up doing is,  I forked the ionic plugin repository and added that flag. Since then we haven't had that issue. I am looking forward to submit a PR to the ionic plugin webview team to hear what they will say. At the moment you are welcome to use it https://github.com/cryo243/cordova-plugin-ionic-webview. It has unecessary checks that I am also planning to remove

@cryo243 this is great news! Thanks for sharing this with us. When do you plan to put the PR? I suggest to separate it into two PRs.

One to address Web Server suspension issue, which fixes this critical issue to long-running apps. This would be a huge win 👍
The other is to do the clean-ups

Looking forward to it!

@misaxi , There is already a pull request for the same issue https://github.com/ionic-team/cordova-plugin-ionic-webview/pull/45. I would suggest rather use that fork until the ionic plugin webview team accepts the PR.

I just recently started using Ionic and immediately had a problem with my background app not resuming due to this. How do Ionic apps usually stay running for a long time without this patch?


Add rules / thresholds to each Widget

This is a task for a BackEnd programmer together with a Data Scientist.
For the existing infographics API - set a threshold or a rule (can be unique per widget) to decide wether to send the widget for the specific newsflash.
The decision can be made using both data from the newsflash and CBS data regarding the location of the news flash.
Arrange the API rank field accordingly.

@assafdayan and @dinasv I suggest with starting with rules that use only the data itself and NOT the newsflash tags.
Later on we'll add the newsflash tags information and decide how this affects us.

Also - we can start by dividing the widgets to urban / non urben / both - the newsflash resolution that already exists can help us which choosing the relevant widgets - which can be an initial good filtering that does not relate to the accidents data itself yet (road resolution vs street resolution)

Technical question - @ziv17 we discussed on removing the rank field and just sort the widgets by order.
@assafdayan and @dinasv is this acceptable with you?

Technical question - @ziv17 we discussed on removing the rank field and just sort the widgets by order.
@assafdayan and @dinasv is this acceptable with you?

We decided to leave the rank field - the widgets will be sorted by importance in the backend, but the rank field is useful if the widgets will be sorted in the frontend in the future.

We decided to leave the rank field - the widgets will be sorted by importance in the backend, but the rank field is useful if the widgets will be sorted in the frontend in the future.


Derive Default for Color

Extremely small change, but I'd find it useful.

Hi,
I made a change to the Default-trait implementation, so that the default Color is a fully opaque black (alpha: 255).
So now, this:
let default_color: Color = Default::default();
is the same as that:
let default_color = Color::new();

Good catch — thanks!


[ENG-3418] My Project Page retool

Purpose
The My Projects page gets unusably slow for users with hundreds of nodes, this adds lazy loading of nodes on scroll.
Changes

js surgery to add scrolling and loading events

QA Notes

Verify all my projects page activity is uneffected

What are the areas of risk?
Any concerns/considerations/questions that development raised?
Documentation
No docs!
Side Effects
None that I know of.
Ticket
https://openscience.atlassian.net/browse/ENG-3418

covered in new admin app changes.


Improve the UI of the About Us and Contact Us pages on the vlog website.

Update color scheme by changing the existing orange color for a better visual appeal.
Adding  a footer section that includes:
Copyright information.
Social media icons for user interaction.

Adding  better UI by chagning the orange color , making the overall UI better .
With my strong background in HTML, CSS, and JavaScript, and considering the nature of the work required, I believe this task should be assigned as Level 2 or Level 3. Please assign this under GSoC '24 and Hacktoberfest.

add level 2 for amount of work going to be done , addd gsoc 24 tag to it

TRAVEL VLOG - UI FIXES #1959
PR has been raised
Please assign level 2 for the amount of work done in this issue.


Restoring --scan-results-file CLI arg for scan

#569 introduced a --scan-results-file argument for scan however this was later removed. It would be great to restore this functionality so the results of a scan can be used in downstream processes (for example #122).

@vijaykiran #569 was your PR so you might be interesting in this PR.
No sure why the Athena, BigQuery, Redshift, Snowflake builds are failing, I don't think it is related to the changes in the PR.

@vijaykiran Any input on this?

Hi @pgoslatara  Thank you for the PR, we will add this to our upcoming sprint to review and merge.

See #1603


LilyGo T-CAN485 not working

I'm currently trying to get this board working with your repo:
https://github.com/Xinyuan-LilyGO/T-CAN485
I can get ESPHome up and running, and it seems it does go through the setup process, as it's logging the config to the console:
[19:26:33][C][nibegw:122]: NibeGw
[19:26:33][C][nibegw:128]:  Target: xx:10090
[19:26:33][C][nibegw:132]:  Source: xx
[19:26:33][C][nibegw:134]:  Read Port: 9999
[19:26:33][C][nibegw:135]:  Write Port: 10000

The problem is that when I enable MODBUS on my heatpump (F1245PC) it starts to error out, I've tried switching the A and B sides, as well as switching the pins on the ESPHome config file, nothing seems to work.
I've tried some debugging and I found that the serial connection doesn't get started. In fact, the log from NibeGwComponent::setup never got logged so it seems the setup never gets called?

I will try some more tests when I get home, mainly directly connecting the ESPHome node to my machine, to make sure I don't miss any logs during boot/startup.
It looks like the component does get set up properly, it's logging the receiving UDP packets when trying to set up from HA

You wont see setup logs unless you have logs over serial port during a reset.
Are you getting any logged traffic?

Ive not tested with an rs485 card that needs enable pins to work. So might need some adaptions.

So you need to make sure the enable pin is set by other esphome means, and the SE pin should be the direction pin.

I have indeed manually set the enable pin, but also the SE pin. According to the docs of the chip used, when it's pulled high during setup, that enabled auto direction mode. I'll keep you updated with my findings when using serial logging.
So far I was not able to get any logged traffic (from the RS485/modbus connection), will try with the SE pin as direction pin tonight.

I got it working, indeed playing with the SE and EN pins was the right move. I actually tried that before, but was staring myself blind on the 'setup' phase.
In case you want to add this to the documentation, I've used these output pins to be pulled high:
output:
  - platform: gpio
    id: ENABLE_PIN
    pin:
      number: GPIO19
      inverted: true
  - platform: gpio
    id: SE_PIN
    pin:
      number: GPIO17
      inverted: true

Since that is quite a nice board, perhaps you could document an example setup for that?

Sure thing, I'll tweak some more things and play around a bit and send a PR with a full example.
Nice work BTW :)

The lilygo-t-can485.yaml works for me without the "board_build.partitions: huge_app.csv" option.
Without it, this allows ota updates.
Is there a reason why that option is needed?

I wondered the same. So lets remove it if it works without it.

Never actually tested the final config without, I took it over from their example docs. If it works without then I'm fine with removing it.


Compact values upon function construction finalization

Currently, due to SSA construction, a constructed function's values might have holes.
For example the following simple counter loop SSA IR shows that v4 and v6 are missing entirely:
fn (v0: i32) -> i32
bb0:
    v1: i32 = const 0
    v2: i32 = const 1
    br bb1
bb1:
    v3: i32 = ϕ [ bb0 -> v1, bb2 -> v7 ]
    v5: bool = icmp i32 slt v3 v0
    if v5 then bb2 else bb3
bb2:
    v7: i32 = iadd i32 v3 v2
    br bb1
bb3:
    ret v3

This has implications for the downstream processing and also for interpretation of the Runwell IR code.
For example a simple interpreter might be using more registers to execute the function than necessary.
It also might be a nice property of constructed Runwell IR functions to have a dense set of values in use.
This issue tracks process of the implementation of this particular feature.

Implemented partially in https://github.com/Robbepop/runwell/commit/0fa43f5eb14bedf86ee50c0a594f186a93fa709f.
Missing from the current implementation:

Proper handling of unused SSA value assignments:

bb0:
    v0 = const i32 5
    v1 = const i32 42
    ret [ v1 ]

The v0 SSA value is never used so we can ideally cut it away as well as its associated instruction.
This already happens in the current implementation since in this case the uses for the v0 is an empty set.
However, considering an instruction that returns multiple values:
bb0:
    v0, v1 = call func(0) [ ]
    ret [ v1 ]

Here only v1 is used so we could ideally get rid of v0 entirely. However, in this case the registered uses of call func(0) [ ] are not empty. Therefore the current implementation keeps both v0 and v1. However, v0 clearly is unused and therefore gets removed by the current implementation which yields invalid code since Runwell IR cannot currently represent partial tuple returns.

Another improvement that is missing from the current implementation is to also get rid of unused instructions. During the construction of a function body some instructions added along the way might be unused at the end of the construction. This is especially true for temporary phi instructions.
In order to spare some more memory for final constructed function bodies it is necessary to eliminate all unused instructions.

Implemented partial tuple assignments in https://github.com/Robbepop/runwell/commit/4c5845bfd5b440d71064a5cc5ec97458dc5b550a and added a test for it in https://github.com/Robbepop/runwell/commit/cfff2f79036a5fa89f408d388fcc6ac062e1d66d.

Refactoring of the new dead value elimination and implementation of the dead instruction elimination has been implemented in https://github.com/Robbepop/runwell/commit/086c5bdaf304af82a5092f8906923417ed193bff. This issue therefore can close now since everything planned in it has been implemented by now.