[BUG] Unable to start CRC: Machine does not exist

General information

OS: Linux
Hypervisor: KVM
Did you run crc setup before starting it (Yes/No)? Yes
Running CRC on: Laptop

CRC version
CRC version: 2.15.0+cc05160
OpenShift version: 4.12.5
Podman version: 4.3.1

CRC status
DEBU CRC version: 2.15.0+cc05160
DEBU OpenShift version: 4.12.5
DEBU Podman version: 4.3.1
DEBU Running 'crc status'
Machine does not exist. Use 'crc start' to create it

CRC config
- consent-telemetry                     : yes

Host Operating System
PRETTY_NAME="Ubuntu 22.04.2 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.2 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

Steps to reproduce

Run crc setup
Run crc start

Expected
I expected crc start to start CRC
Actual
$ crc start
Machine does not exist. Use 'crc start' to create it
$ crc delete -f
Machine does not exist. Use 'crc start' to create it
$ crc cleanup
...
$ crc setup
...
$ crc start --log-level debug
Machine does not exist. Use 'crc start' to create it

Logs
Before gather the logs try following if that fix your issue
$ crc delete -f
$ crc cleanup
$ crc setup
$ crc start --log-level debug

Please consider posting the output of crc start --log-level debug  on http://gist.github.com/ and post the link in the issue.
$ crc setup --log-level debug
DEBU CRC version: 2.15.0+cc05160
DEBU OpenShift version: 4.12.5
DEBU Podman version: 4.3.1
DEBU Running 'crc setup'
INFO Using bundle path /home/user/.crc/cache/crc_libvirt_4.12.5_amd64.crcbundle
DEBU Checking if systemd-resolved.service is running
DEBU Running 'systemctl status systemd-resolved.service'
DEBU systemd-resolved.service is already running
INFO Checking if running as non-root
INFO Checking if running inside WSL2
INFO Checking if crc-admin-helper executable is cached
DEBU Running '/home/user/.crc/bin/crc-admin-helper-linux --version'
DEBU Found crc-admin-helper-linux version 0.0.12
DEBU crc-admin-helper executable already cached
INFO Checking if running on a supported CPU architecture
DEBU GOARCH is amd64 GOOS is linux
INFO Checking minimum RAM requirements
DEBU Total memory of system is<PHONE_NUMBER>6 bytes
INFO Checking if crc executable symlink exists
INFO Checking if Virtualization is enabled
DEBU Checking if the vmx/svm flags are present in /proc/cpuinfo
DEBU CPU virtualization flags are good
INFO Checking if KVM is enabled
DEBU Checking if /dev/kvm exists
DEBU /dev/kvm was found
INFO Checking if libvirt is installed
DEBU Checking if 'virsh' is available
DEBU 'virsh' was found in /usr/bin/virsh
DEBU Checking 'virsh capabilities' for libvirtd/qemu availability
DEBU Running 'virsh --readonly --connect qemu:///system capabilities'
DEBU Found x86_64 hypervisor with 'hvm' capabilities
INFO Checking if user is part of libvirt group
DEBU Checking if current user is part of the libvirt group
DEBU Current user is already in the libvirt group
INFO Checking if active user/process is currently part of the libvirt group
DEBU libvirt group is active for the current user/process
INFO Checking if libvirt daemon is running
DEBU Checking if libvirtd service is running
DEBU Running 'systemctl status virtqemud.socket'
DEBU Command failed: exit status 4
DEBU stdout:
DEBU stderr: Unit virtqemud.socket could not be found.
DEBU virtqemud.socket is neither running nor listening
DEBU Running 'systemctl status libvirtd.socket'
DEBU libvirtd.socket is running
INFO Checking if a supported libvirt version is installed
DEBU Checking if libvirt version is >=3.4.0
DEBU Running 'virsh -v'
INFO Checking if crc-driver-libvirt is installed
DEBU Checking if crc-driver-libvirt is installed
DEBU Running '/home/user/.crc/bin/crc-driver-libvirt version'
DEBU Found crc-driver-libvirt version 0.13.5
DEBU crc-driver-libvirt is already installed
INFO Checking crc daemon systemd service
DEBU Checking crc daemon systemd service
DEBU Checking if crc-daemon.service is running
DEBU Running 'systemctl --user status crc-daemon.service'
DEBU Command failed: exit status 3
DEBU stdout: * crc-daemon.service - CRC daemon
     Loaded: loaded (/home/user/.config/systemd/user/crc-daemon.service; static)
     Active: inactive (dead)
TriggeredBy: * crc-vsock.socket
             * crc-http.socket

Mar 16 11:12:32 hostname systemd[2623]: Starting CRC daemon...
Mar 16 11:12:32 hostname crc[47345]: level=info msg="using socket provided by crc-vsock.socket"
Mar 16 11:12:32 hostname crc[47345]: level=info msg="using socket provided by crc-http.socket"
Mar 16 11:12:32 hostname systemd[2623]: Started CRC daemon.
Mar 16 11:12:32 hostname crc[47345]: @ - - [16/Mar/2023:11:12:32 -0400] "GET /api/status HTTP/1.1" 500 52
Mar 16 11:14:10 hostname systemd[2623]: Stopping CRC daemon...
Mar 16 11:14:11 hostname systemd[2623]: Stopped CRC daemon.
DEBU stderr:
DEBU crc-daemon.service is neither running nor listening
DEBU Checking if crc-daemon.service has the expected content
INFO Checking crc daemon systemd socket units
DEBU Checking crc daemon systemd socket units
DEBU Checking if crc-http.socket is running
DEBU Running 'systemctl --user status crc-http.socket'
DEBU crc-http.socket is listening
DEBU Checking if crc-http.socket has the expected content
DEBU Checking if crc-vsock.socket is running
DEBU Running 'systemctl --user status crc-vsock.socket'
DEBU crc-vsock.socket is listening
DEBU Checking if crc-vsock.socket has the expected content
INFO Checking if AppArmor is configured
INFO Checking if systemd-networkd is running
DEBU Checking if systemd-networkd.service is running
DEBU Running 'systemctl status systemd-networkd.service'
DEBU Command failed: exit status 3
DEBU stdout: * systemd-networkd.service - Network Configuration
     Loaded: loaded (/lib/systemd/system/systemd-networkd.service; disabled; vendor preset: enabled)
     Active: inactive (dead)
TriggeredBy: * systemd-networkd.socket
       Docs: man:systemd-networkd.service(8)
DEBU stderr:
DEBU systemd-networkd.service is not running
INFO Checking if NetworkManager is installed
DEBU Checking if 'nmcli' is available
DEBU 'nmcli' was found in /usr/bin/nmcli
INFO Checking if NetworkManager service is running
DEBU Checking if NetworkManager.service is running
DEBU Running 'systemctl status NetworkManager.service'
DEBU NetworkManager.service is already running
INFO Checking if dnsmasq configurations file exist for NetworkManager
INFO Checking if the systemd-resolved service is running
DEBU Checking if systemd-resolved.service is running
DEBU Running 'systemctl status systemd-resolved.service'
DEBU systemd-resolved.service is already running
INFO Checking if /etc/NetworkManager/dispatcher.d/99-crc.sh exists
DEBU Checking NetworkManager dispatcher file for crc network
DEBU Dispatcher file has the expected content
INFO Checking if libvirt 'crc' network is available
DEBU Checking if libvirt 'crc' network exists
DEBU Running 'virsh --connect qemu:///system net-info crc'
DEBU Checking if libvirt 'crc' definition is up to date
DEBU Running 'virsh --connect qemu:///system net-dumpxml --inactive crc'
DEBU libvirt 'crc' network has the expected value
INFO Checking if libvirt 'crc' network is active
DEBU Checking if libvirt 'crc' network is active
DEBU Running 'virsh --connect qemu:///system net-info crc'
DEBU libvirt 'crc' network is already active
INFO Checking if CRC bundle is extracted in '$HOME/.crc'
INFO Checking if /home/user/.crc/cache/crc_libvirt_4.12.5_amd64.crcbundle exists
DEBU /home/user/.crc/cache/crc_libvirt_4.12.5_amd64.crcbundle exists
Your system is correctly setup for using CRC. Use 'crc start' to start the instance

@cfergeau No, it doesn't print any additional logs at all. I found it very weird too.
I also forgot to mention, earlier this morning crc setup was failing because I was connected to a VPN (via Cisco AnyConnect):
INFO Starting libvirt 'crc' network
Failed to start libvirt 'crc' network
 exit status 1: error: Failed to start network crc
error: internal error: Network is already in use by interface cscotun0

I was also using CRC 2.10 so I upgraded to the latest version.
I'll try rebooting in case maybe the Cisco VPN client has my network in a weird state. But I find it very odd that I'm not getting any other logs

I rebooted; still stuck :confused:
Is there any other cleanup I'm missing? I've completely removed ~/.crc and reinstalled and it's still failing.
$ crc setup
INFO Using bundle path /home/user/.crc/cache/crc_libvirt_4.12.5_amd64.crcbundle
INFO Checking if running as non-root
INFO Checking if running inside WSL2
INFO Checking if crc-admin-helper executable is cached
INFO Checking if running on a supported CPU architecture
INFO Checking minimum RAM requirements
INFO Checking if crc executable symlink exists
INFO Checking if Virtualization is enabled
INFO Checking if KVM is enabled
INFO Checking if libvirt is installed
INFO Checking if user is part of libvirt group
INFO Checking if active user/process is currently part of the libvirt group
INFO Checking if libvirt daemon is running
INFO Checking if a supported libvirt version is installed
INFO Checking if crc-driver-libvirt is installed
INFO Checking crc daemon systemd service
INFO Checking crc daemon systemd socket units
INFO Checking if AppArmor is configured
INFO Checking if vsock is correctly configured
INFO Checking if CRC bundle is extracted in '$HOME/.crc'
INFO Checking if /home/user/.crc/cache/crc_libvirt_4.12.5_amd64.crcbundle exists
Your system is correctly setup for using CRC. Use 'crc start' to start the instance

$ crc start
Machine does not exist. Use 'crc start' to create it

$ crc delete -f
Machine does not exist. Use 'crc start' to create it

$ crc cleanup
INFO Removing vsock configuration
INFO Using root access: Removing udev rule in /etc/udev/rules.d/99-crc-vsock.rules
INFO Using root access: Removing vsock module autoload file /etc/modules-load.d/vhost_vsock.conf
INFO Removing 'crc' network from libvirt
INFO Removing /etc/NetworkManager/dispatcher.d/99-crc.sh file
INFO Cleaning up AppArmor configuration
INFO Using root access: Updating AppArmor configuration
INFO Using root access: Changing permissions for /etc/apparmor.d/libvirt/TEMPLATE.qemu to 644
INFO Removing crc daemon systemd socket units
INFO Removing crc daemon systemd service
INFO Removing crc's virtual machine
INFO Removing crc libvirt storage pool
INFO Removing hosts file records added by CRC
INFO Removing pull secret from the keyring
INFO Removing older logs
INFO Removing CRC Machine Instance directory
INFO Removing crc executable symlink
Cleanup finished

$ crc setup
INFO Using bundle path /home/user/.crc/cache/crc_libvirt_4.12.5_amd64.crcbundle
INFO Checking if running as non-root
INFO Checking if running inside WSL2
INFO Checking if crc-admin-helper executable is cached
INFO Checking if running on a supported CPU architecture
INFO Checking minimum RAM requirements
INFO Checking if crc executable symlink exists
INFO Creating symlink for crc executable
INFO Checking if Virtualization is enabled
INFO Checking if KVM is enabled
INFO Checking if libvirt is installed
INFO Checking if user is part of libvirt group
INFO Checking if active user/process is currently part of the libvirt group
INFO Checking if libvirt daemon is running
INFO Checking if a supported libvirt version is installed
INFO Checking if crc-driver-libvirt is installed
INFO Checking crc daemon systemd service
INFO Setting up crc daemon systemd service
INFO Checking crc daemon systemd socket units
INFO Setting up crc daemon systemd socket units
INFO Checking if AppArmor is configured
INFO Updating AppArmor configuration
INFO Using root access: Updating AppArmor configuration
INFO Using root access: Changing permissions for /etc/apparmor.d/libvirt/TEMPLATE.qemu to 644
INFO Checking if vsock is correctly configured
INFO Setting up vsock support
INFO Using root access: Setting CAP_NET_BIND_SERVICE capability for /home/user/bin/crc executable
INFO Using root access: Creating udev rule for /dev/vsock
INFO Using root access: Changing permissions for /etc/udev/rules.d/99-crc-vsock.rules to 644
INFO Using root access: Reloading udev rules database
INFO Using root access: Loading vhost_vsock kernel module
INFO Using root access: Creating file /etc/modules-load.d/vhost_vsock.conf
INFO Using root access: Changing permissions for /etc/modules-load.d/vhost_vsock.conf to 644
INFO Checking if CRC bundle is extracted in '$HOME/.crc'
INFO Checking if /home/user/.crc/cache/crc_libvirt_4.12.5_amd64.crcbundle exists
Your system is correctly setup for using CRC. Use 'crc start' to start the instance

$ crc start
Machine does not exist. Use 'crc start' to create it

I was also using CRC 2.10 so I upgraded to the latest version.

@bmaupin did that 2.10 version work as expected on same host? can you check with sudo virsh list --all ?

@cfergeau I'm sorry, I don't understand the quesiton. Does this help?
$ sudo virsh list --all
 Id   Name        State
----------------------------
 -    minishift   shut off

$ crc delete
Machine does not exist. Use 'crc start' to create it

$ sudo virsh list --all
 Id   Name        State
----------------------------
 -    minishift   shut off

$ crc setup
INFO Using bundle path /home/user/.crc/cache/crc_libvirt_4.12.5_amd64.crcbundle
INFO Checking if running as non-root
INFO Checking if running inside WSL2
INFO Checking if crc-admin-helper executable is cached
INFO Checking if running on a supported CPU architecture
INFO Checking minimum RAM requirements
INFO Checking if crc executable symlink exists
INFO Checking if Virtualization is enabled
INFO Checking if KVM is enabled
INFO Checking if libvirt is installed
INFO Checking if user is part of libvirt group
INFO Checking if active user/process is currently part of the libvirt group
INFO Checking if libvirt daemon is running
INFO Checking if a supported libvirt version is installed
INFO Checking if crc-driver-libvirt is installed
INFO Checking crc daemon systemd service
INFO Checking crc daemon systemd socket units
INFO Checking if AppArmor is configured
INFO Checking if vsock is correctly configured
INFO Checking if CRC bundle is extracted in '$HOME/.crc'
INFO Checking if /home/user/.crc/cache/crc_libvirt_4.12.5_amd64.crcbundle exists
Your system is correctly setup for using CRC. Use 'crc start' to start the instance

$ crc start
Machine does not exist. Use 'crc start' to create it

$ sudo virsh list --all
 Id   Name        State
----------------------------
 -    minishift   shut off

It does not help solve your issue, but makes it clear when you ran virsh, thanks!

This got me thinking that maybe minishift was conflicting with CRC, so I ran minishift delete to clean it up:
$ minishift status
Minishift:  Stopped
Profile:    minishift
OpenShift:  Stopped
DiskUsage:  Unknown
CacheUsage: 1.711 GB (used by oc binary, ISO or cached images)

$ ls ~/.minishift/machines/minishift
boot2docker.iso  config.json  id_rsa  id_rsa.pub  minishift.img

$ minishift delete
You are deleting the Minishift VM: 'minishift'. Do you want to continue [y/N]?: y
Removing entries from kubeconfig for cluster: :8443
Deleting the Minishift VM...
Minishift VM deleted.

$ sudo virsh list --all
 Id   Name   State
--------------------

Unfortunately CRC still won't start:
$ crc start
Machine does not exist. Use 'crc start' to create it

$ rm -rf ~/.minishift/

$ crc setup
INFO Using bundle path /home/user/.crc/cache/crc_libvirt_4.12.5_amd64.crcbundle
INFO Checking if running as non-root
INFO Checking if running inside WSL2
INFO Checking if crc-admin-helper executable is cached
INFO Checking if running on a supported CPU architecture
INFO Checking minimum RAM requirements
INFO Checking if crc executable symlink exists
INFO Checking if Virtualization is enabled
INFO Checking if KVM is enabled
INFO Checking if libvirt is installed
INFO Checking if user is part of libvirt group
INFO Checking if active user/process is currently part of the libvirt group
INFO Checking if libvirt daemon is running
INFO Checking if a supported libvirt version is installed
INFO Checking if crc-driver-libvirt is installed
INFO Checking crc daemon systemd service
INFO Checking crc daemon systemd socket units
INFO Checking if AppArmor is configured
INFO Checking if vsock is correctly configured
INFO Checking if CRC bundle is extracted in '$HOME/.crc'
INFO Checking if /home/user/.crc/cache/crc_libvirt_4.12.5_amd64.crcbundle exists
Your system is correctly setup for using CRC. Use 'crc start' to start the instance

$ crc start
Machine does not exist. Use 'crc start' to create it

(I also ran crc delete -f and crc cleanup again just in case)

Eh :( Great that you finally figured it out! (and I'm even more glad it's not an obscure crc bug ;)


PositionStream won't notify when the Location service stops sending current position

Steps to reproduce :scroll:

Build basic app containing a PositionStream subscription like the example in the package's page on pub.dartlang.org.

Run the app while Location services are on and permitted.

Turn off Location (or alternatively revoke permissions) while the app is running.

Wait a few seconds/minutes

Turn Location back on (or enable permissions)

Expected behavior :thinking:
I should get some indication that the Position stopped streaming once the Location is off, and when it turns back on the Position should start streaming again on its own.
Actual behavior :bug:
The Position stream works well and i get the Position updates as expected, when i turn Location off the last Position will stay until i manually request a new one using the getPosition method, only then i will get a null Position.
That way if someone had a working location but lost it for any reason there's no way to notify him, and the last position will stay "forever".
In the GIF below you can see this behavior, i'm iterating a GPX file and when i turn off Location there is no indication for that anywhere, until i press the "Refresh" button that has the following code:
void initPlatformState() async {
    Position position;
     try {
      position = await _geolocator.getPosition(LocationAccuracy.high);
    } on PlatformException catch (e) {
      print(e.message);
      position = null;
    }

    if (!mounted) return;

    setState(() {
      _position = position;

      if (_position == null) {
        print('NO LOCATION!');
      }
    });
  }

Is there something i'm doing wrong or that's a flutter's framework constraint?
Configuration :wrench:
Version: 1.2.1
Platform:

[ ] :iphone: iOS
[x] :robot: Android

@argamanza thank you very much for your feedback.
The problem here is that the stream responds to location updates triggered by the platform (Android in your case). As soon as you revoke the permissions, Android will no longer submit any location updates and thus the stream will never be triggered. If I remember correctly there are ways to catch permission state events which I will look into and see if this offers an opportunity to let the client App know the stream has stopped (or paused). I will get back on this soon.

@argamanza the fix was relatively easy, thank you for pointing out the issue. We released a new version of the plugin (1.2.2) including the fix.

Thanks!
Works great now, just another use case i found after testing just about any possible use case:
If the user enters the app while his Location is off, no matter how many times he will activate/deactivate it - the PositionStream won't start streaming until he reopens the app or alternatively the developer creates a special method which involves natively check the Location Services status and restarts the app to run the InitState again.
Once again, i'm pretty novice and i think a simple solution which involves timed checks for the Location status will be enough to solve this, and i don't want to start another issue for a bug which might be solved without changing the package itself.

@argamanza thx again for your feedback. I think a good feature would be to make an API available where the App developer can request the current permission status. This way it would be easy for developers to check the current location status without having to implement platform specific code and can act accordingly.
Would this sound like a solution to you?

@mvanbeusekom sounds great.
Getting the location permission status and rather it's on or off implemented in this package could save a lot of hassle and the need to use other packages or checking natively.

@argamanza can you open a new issue for the permissions?

This doesn’t seem to work. When my app is running with location service enabled and access granted and I turn off location service via Android notification drawer, I won’t get notified at all. Am I doing something wrong?
I tried it via stream provider and consumer as well as streambuilder


Examples to unittest [part 5]

Last part of my sweep throught std for replaceable docstring unittests.
There is still one pattern that might be incorporated in the future - multiple examples with text between them, e.g.

Some intro ....
.... Amazing module ....
assert(a == 1)

.... another use case ....
assert(a == 1)

Apparently the change in uni.d causes auto-tester to fail - seems a bit weird ...
Has anyone an idea?

Apparently the change in uni.d causes auto-tester to fail - seems a bit weird ...
Has anyone an idea?

I recall a lot of dark magic involved  to work around forward reference errors and link failures in std.uni, this might be triggering some of unresolved bugs in the compiler still.

splitted into std.socket to #4111 to isolate the failing problem.

can someone of the admins tag this with "FP magic from dmd"?

How this PR is related to Floating Point (FP)?

Looks like I need to change the label name

How this PR is related to Floating Point (FP)?

Oh I thought FP means "Function pointer" (or sth. similar). Sory!
It still fails due to some magic related to dmd, though ...

It still fails due to some magic related to dmd, though ...
Hide all checks

I don't think so. This is because we have bad build scripts. I had the same problem with another PR. Probably our build scripts link old library when use new source code. So linker can not find a new name.

I don't think so. This is because we have bad build scripts.

So how do we move forward with this problem? On my machine make -f posix.mak std/uni.test passes.

So how do we move forward with this problem? On my machine make -f posix.mak std/uni.test passes.
Hide all checks

No hope for now

Maybe try rebasing onto latest master and see if that makes a difference?  It's a long shot, but maybe it's an unrelated problem or something broken in Phobos that got fixed since?

FWIW, I ran the entire Phobos test suite on my machine (Linux/64bit), and there were some compile errors (not the same as the autotester failure though), but after rebasing onto master, the testsuite passed with flying colors. Just sayin'.

Maybe try rebasing onto latest master and see if that makes a difference?

Done. Let's see & hope for the best :)

Okay the problem is that d_do_test.d (part of dmd, run by make -f posix.mak auto-tester-test) uses std.uni and the linking doesn't work.
I opened an issue at dmd and will close the issue now until this is fixed in dmd.

I opened an issue at dmd and will close the issue now until this is fixed in dmd.

Thanks!


imgui.input_text boxes deselect, preventing text input

Describe the bug
imgui.input_text deselects seemingly on frame, preventing input completely.
Upload logs and any crash dumps
re2_framework_log.txt
Identify the REFramework version
First noticed on Nightly842, still present in Nightly869 and Nightly878. Is not present on Nightly802-bugfix.
To Reproduce
Steps to reproduce the behavior:
Run an REFramework Lua script using the imgui.input_text function within its generated UI, attempt to click the box and observe that it does not stay selected.
Expected behavior
Text box should remain selected until clicked outside of it.
Desktop and VR (please complete the following information):

OS (e.g. Windows 11) - Windows 10
Graphics card - RTX 4070 Ti
CPU - i9-13900k

Cannot reproduce. Please provide a sample script. Try removing your other scripts.

Here's a simple test script in which the issue occurs:
imguitestt.zip
Further testing has shown that this only occurs in Nightly878 if the value passed through the "label" parameter (as defined here https://cursey.github.io/reframework-book/api/imgui.html) is an empty string.
This was not the case in Nightly802-bugfix, wherein any string passed through the "label" parameter would work.

Use imgui.push/pop_id around empty input boxes to fix this. This doesn't seem like a bug, and was likely fixed when ImGui was upgraded to 1.90.1. If anything, it seemed like a bug before that this wasn't happening.
https://github.com/ocornut/imgui/blob/master/docs/FAQ.md#q-about-the-id-stack-system
Example:
imgui.push_id("My unique Identifier")
local changed, value = imgui.input_text("", display_text)
-- logic
imgui.pop_id()

Interesting. I was using push/pop_id for identifiers during loops, but didn't consider it here. If I'm following correctly, the label is used as the identifier for text_input. An empty string leaves it without an one, which causes the behaviour. Pushing/popping an ID then puts one in its place, allowing it to work. There must've been a change in the update to how identifiers are handled that leads to an empty string no longer being a valid identifier.
Regardless, thank you for both looking into this and providing a reference.


open_dataset on folder with gzip files

Hi
I'm trying to run open_dataset on a folder that contains tsv files that are gzipped.
ds <- open_dataset(.path, format = "tsv", delim = "\t", schema = aschema)
which returns
FileSystemDataset with 24 csv files
valuationdate: int32
CGTClientID: int32
CGTInstrumentID: int32
AiaRecType: int32
ParcelID: int32
n: int32
AiaAdjustAmt: float
mindate: int32
maxdate: int32
However, if I call collect on the dataset, I get this error

Error in dataset___Scanner__ToTable(self) :
Invalid: Could not open CSV input source 'C:/inndx/investmentaccountingdata/snapshot/aiaparcelsumm/obelix/v1.0/curo/TPA_UnitTrust/2020/01/06/135844/curo_[TPA_UnitTrust]_20200103_135844.gz': Invalid: CSV parse error: Expected 1 columns, got 2

I can open a individual file with
a_df <- read_tsv_arrow(
  file = .file,
  schema = rschema,
  col_names = TRUE,
  skip_empty_rows = TRUE,
  as_data_frame = FALSE
)

and it works perfectly. I can also do open_dataset on folders that contains parquet files and that also works perfectly.
I'm running on windows 10
Please advise if I'm doing something wrong here

Just tested on Linux, and getting the same behavior.

Thanks. Datasets don't currently have support for reading compressed CSVs but that sounds like a good idea.
We use Jira for issue tracking; could you please report this feature request there.


vasto bench fail

I tried to use the vasto bench to test it. first open one terminal for vasto master or server，then open the other for vasto bench，but vasto bench always showed as below and won't make any progress again：
benchmarking on cluster with master localhost:8278
put :    --- [--------------------------------------------------------------------]   0% NaN ops/sec
The vasto master or server side just printed out the message such as：
I1013 10:05:21.397870    8502 master_server.go:41] Vasto master starts on :8278
I1013 10:05:30.134602    8502 master_grpc_server_for_client.go:30] + client <IP_ADDRESS>:54859
E1013 10:05:30.135152    8502 master_grpc_server_for_client.go:96] master add client benchmarker: client key is already in use: benchmark:dc1:<IP_ADDRESS>:54859
I1013 10:05:30.135119    8502 master_grpc_server_for_client.go:30] + client <IP_ADDRESS>:54861
E1013 10:05:30.152217    8502 master_grpc_server_for_client.go:96] master add client benchmarker: client key is already in use: benchmark:dc1:<IP_ADDRESS>:54861
I1013 10:06:31.644583    8502 master_grpc_server_for_client.go:41] - client <IP_ADDRESS>:54859
I1013 10:06:31.645002    8502 master_grpc_server_for_client.go:41] - client <IP_ADDRESS>:54861
I1013 10:06:39.134168    8502 master_grpc_server_for_client.go:30] + client <IP_ADDRESS>:54864
E1013 10:06:39.134886    8502 master_grpc_server_for_client.go:96] master add client benchmarker: client key is already in use: benchmark:dc1:<IP_ADDRESS>:54864
I1013 10:06:53.839102    8502 master_grpc_server_for_client.go:41] - client <IP_ADDRESS>:54864
I tried to use vasto bench -c1 parameter， but it did not change anything for the bench result.
Is there any settings I miss？ In my knowledge, vasto server include both vasto store and master, so it should be fine to open a vasto server for vasto bench to test.
I just want to make a benchmark test about the vasto performance，could you provide detail instructions to benchmark vasto ？

Here are steps https://github.com/chrislusf/vasto/wiki/Get-Started


Fixed instruction on the home page

It doesn't work with shift-enter but it works with ctrl-enter

Thanks for reporting! :)
I think this is clearly a typo.


Added decryption mechanism for "initial-page" data if the text content is not a string

Issue: The client config is completely exposed in the site page source.
Details: The Quintype framework client expects a configuration which is loaded in the redux store which in turn is used by the application throughout. This configuration is used by the function "startApp" which uses another function "getJsonContent" in<EMAIL_ADDRESS>to pick up that data from the "window" element itself. Currently, the "getJsonContent" function expects a JSON string which is parsed and used in the store. This JSON string is completely exposed in the site page source as this gets loaded with the initial load of the site.
Solution: A simple encryption mechanism has been applied on the client side which shows encrypted data in the page site. On the package level, the function "getJsonContent" has been modified to accept such encoded data, decrypt it and parse it accordingly. The original functionality still remains intact in case other clients do not wish to do the same.
A pull request has been raised for the update. https://github.com/quintype/quintype-node-framework/pull/398
Please review. @Jeevan-Kishore

This is not encryption mechanism, this is encoding. This will be done from the browser end and we do not gain anything from this. Hence, this PR cannot be merged.
CC: @Jeevan-Kishore

They have the option to apply the identical solution we previously suggested, which involves adding a filter to initial page in the layout.ejs file, as it appears to be the most efficient resolution.
CC: @Jeevan-Kishore @VyshnavChandran

Sorry, I may have missed out the filter part. What filter are we talking about here and what does that filter do?

@shraddha-kesari Could you please look into this request

@ankur-bqprime The first suggestion we provided for this request.
Copy pasting here again -
Regarding the json in page source, you need to change this line https://github.com/quintype/bloombergquint-node/blob/master/views/pages/layout.ejs#L165
This is the place, where we are sending json to page source. We need to exclude or add a filter for the parameters we do not want to render.
parameters are to be defined in render-layout.js file
https://github.com/quintype/bloombergquint-node/blob/master/app/server/handlers/render-layout.js


IE 9 Support

Hi,
Thanks for your great work, i recognize that you using "classList" property in production script. Which IE 9 doesn't support, maybe you can use some script that gonna help like this https://gist.github.com/devongovett/1381839.

Hey @MateuszNowicki, thanks for the heads up! I'll properly test GentleForm on IE 9 to add the required polyfills. I'll keep this issue updated ;)

I've released GentleForm v2 which comes with a simpler API and a stronger polyfill for the html5 constraint validation api. I've also added a note regarding browser support and classList.
Please note that there are many breaking changes compared to v1, but I have updated the documentation accordingly ;)

Thank you for letting me know :)


Minutes of the last board meeting

This pull request contains the minutes of the January 2022 board meeting. Please let me know if everything is in order :)

Thank you @martha-thomae . Some additions above.

Thanks for noticing these, @musicEnfanthen!

Thank you @martha-thomae !
@annakijas1 Perhaps you would like to do the final check?


AttributeError: Can't pickle local object 'init_resnet..'

Hi , I'm new to this model. Since this is super interesting, I want to see how it works.
But, I am facing an error saying "AttributeError: Can't pickle local object 'init_resnet..'".
How can I sort it out?

Hi,
Thanks for your interest in our work.
I might have encountered a similar issue before, but could not remember the details :-(
However, all should work just fine as long as you follow the guide in the Environment section.
Are you using python 3.7 with tensorflow 2.2.1 on a Linux machine?
All the best.
Xingyang Ni

Thanks for quick reply.
I followed the installation section except for cudnn since my computer does not have it. And I am using python 3.7 with tensorflow 2.2.1 on windows machine.

Could you provide the error log? This issue is probably related to Windows.
Xingyang

Traceback (most recent call last):
File "", line 1, in
File "C:\Users###\anaconda3\envs\AdaptiveL2\lib\multiprocessing\spawn.py", line 105, in spawn_main
exitcode = _main(fd)
File "C:\Users###\anaconda3\envs\AdaptiveL2\lib\multiprocessing\spawn.py", line 115, in _main
self = reduction.pickle.load(from_parent)
EOFError: Ran out of input
Exception in thread Thread-29:
Traceback (most recent call last):
File "C:\Users###\anaconda3\envs\AdaptiveL2\lib\threading.py", line 926, in _bootstrap_inner
self.run()
File "C:\Users###\anaconda3\envs\AdaptiveL2\lib\threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "C:\Users###\anaconda3\envs\AdaptiveL2\lib\site-packages\tensorflow\python\keras\utils\data_utils.py", line 843, in _run
with closing(self.executor_fn(_SHARED_SEQUENCES)) as executor:
File "C:\Users###\anaconda3\envs\AdaptiveL2\lib\site-packages\tensorflow\python\keras\utils\data_utils.py", line 822, in pool_fn
initargs=(seqs, None, get_worker_id_queue()))
File "C:\Users###\anaconda3\envs\AdaptiveL2\lib\multiprocessing\context.py", line 119, in Pool
context=self.get_context())
File "C:\Users###\anaconda3\envs\AdaptiveL2\lib\multiprocessing\pool.py", line 176, in init
self._repopulate_pool()
File "C:\Users###\anaconda3\envs\AdaptiveL2\lib\multiprocessing\pool.py", line 241, in _repopulate_pool
w.start()
File "C:\Users###\anaconda3\envs\AdaptiveL2\lib\multiprocessing\process.py", line 112, in start
self._popen = self._Popen(self)
File "C:\Users###\anaconda3\envs\AdaptiveL2\lib\multiprocessing\context.py", line 322, in _Popen
return Popen(process_obj)
File "C:\Users###\anaconda3\envs\AdaptiveL2\lib\multiprocessing\popen_spawn_win32.py", line 89, in init
reduction.dump(process_obj, to_child)
File "C:\Users###\anaconda3\envs\AdaptiveL2\lib\multiprocessing\reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
AttributeError: Can't pickle local object 'init_resnet..'

It runs till "Freeze layers in the backbone model for 20 epochs.  ~~~~~~   I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_101.dll"
But after this, it says like above.

And when I run the commmand with python3 , it just says Python. So I run it with python -u solution.py --dataset_name "Market1501" --backbone_model_name "ResNet50"

This issue is actually the same as https://github.com/nixingyang/AdaptiveL2Regularization/issues/4. Try appending --workers 1 to the command. If it still does not work, use a Linux machine instead.

Thank you so much.
Its running correctly now. I hope it will finish training.

Fortunately, it finished first 20 epochs. But after that, it ran again for some reasons.
What will I see when it's been trained?
In output_2020_12_22\Market1501_384x128\ResNet50_16_4, I can see training_A and I can see pkl file and many png files in it.

This is expected. Wait until the process completes.

2020-12-22 22:28:19.472202: W tensorflow/core/framework/op_kernel.cc:1753] OP_REQUIRES failed at strided_slice_op.cc:138 : Resource exhausted: OOM when allocating tensor with shape[64,12,8,2048] and type float on /job:localhost/replica:0/task:0/device:GPU:0 by allocator GPU_0_bfc
Traceback (most recent call last):
File "solution.py", line 1070, in
app.run(main)
File "C:\Users###\anaconda3\envs\AdaptiveL2\lib\site-packages\absl\app.py", line 303, in run
_run_main(main, args)
File "C:\Users###\anaconda3\envs\AdaptiveL2\lib\site-packages\absl\app.py", line 251, in _run_main
sys.exit(main(argv))
File "solution.py", line 1060, in main
verbose=2)
File "C:\Users###\anaconda3\envs\AdaptiveL2\lib\site-packages\tensorflow\python\keras\engine\training.py", line 66, in _method_wrapper
return method(self, *args, **kwargs)
File "C:\Users###\anaconda3\envs\AdaptiveL2\lib\site-packages\tensorflow\python\keras\engine\training.py", line 848, in fit
tmp_logs = train_function(iterator)
File "C:\Users###\anaconda3\envs\AdaptiveL2\lib\site-packages\tensorflow\python\eager\def_function.py", line 580, in call
result = self._call(*args, **kwds)
File "C:\Users###\anaconda3\envs\AdaptiveL2\lib\site-packages\tensorflow\python\eager\def_function.py", line 644, in _call
return self._stateless_fn(*args, **kwds)
File "C:\Users###\anaconda3\envs\AdaptiveL2\lib\site-packages\tensorflow\python\eager\function.py", line 2420, in call
return graph_function._filtered_call(args, kwargs)  # pylint: disable=protected-access
File "C:\Users###\anaconda3\envs\AdaptiveL2\lib\site-packages\tensorflow\python\eager\function.py", line 1665, in _filtered_call
self.captured_inputs)
File "C:\Users###\anaconda3\envs\AdaptiveL2\lib\site-packages\tensorflow\python\eager\function.py", line 1746, in _call_flat
ctx, args, cancellation_manager=cancellation_manager))
File "C:\Users###\anaconda3\envs\AdaptiveL2\lib\site-packages\tensorflow\python\eager\function.py", line 598, in call
ctx=ctx)
File "C:\Users###\anaconda3\envs\AdaptiveL2\lib\site-packages\tensorflow\python\eager\execute.py", line 60, in quick_execute
inputs, attrs, num_outputs)
tensorflow.python.framework.errors_impl.ResourceExhaustedError:  OOM when allocating tensor with shape[64,24,8,2048] and type float on /job:localhost/replica:0/task:0/device:GPU:0 by allocator GPU_0_bfc
[[{{node training_model/last_block_for_global_branch/conv5_block3_out/Relu-0-0-TransposeNCHWToNHWC-LayoutOptimizer}}]]
Hint: If you want to see a list of allocated tensors when OOM happens, add report_tensor_allocations_upon_oom to RunOptions for current allocation info.
[Op:__inference_train_function_136955]
Function call stack:
train_function
2020-12-22 22:28:20.011380: W tensorflow/core/kernels/data/generator_dataset_op.cc:103] Error occurred when finalizing GeneratorDataset iterator: Failed precondition: Python interpreter state is not initialized. The process may be terminated.
[[{{node PyFunc}}]]

This is the error I am facing after re-running.
I'm sorry for making you busy because of me and also thank you so much for helping me a lot.

No problem.
This is an out of memory issue. You could use smaller images by specifying the image_width and image_height flags, or use a GPU with large memory.

How should I specify the image_width  and image_height flags?

Use something like --image_width 64 --image_height 192.

Thank you very much.
I downloaded pre-trained model and tried evaluation.
It says 'All done' , so I think it finished successfully,but I want to train it myself so I will try it.
And thank you for understanding my poor English.

You are welcome. Feel free to ask if you have any other questions.

How does this model extract the features of each person ?
From body parts or whole appearance or like height?

Hi, we are using one global branch and two regional branches. Features from each branch are concatenated in the inference procedure. You may find more details in the "B. Baseline" section.

Thank you so much for explaining.


Install error missing DotNetMQ.InstallState

I get error when install this service:
PS C:\Program Files\DotNetMQ> .\INSTALL_x64.bat

C:\Program Files\DotNetMQ>C:\Windows\Microsoft.NET\Framework64\v4.0.30319\installutil DotNetMQ.exe
Microsoft (R) .NET Framework Installation utility Version 4.7.2556.0
Copyright (C) Microsoft Corporation.  All rights reserved.

Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the C:\Program Files\DotNetMQ\DotNetMQ.exe assembly's progress.
The file is located at C:\Program Files\DotNetMQ\DotNetMQ.InstallLog.
Installing assembly 'C:\Program Files\DotNetMQ\DotNetMQ.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = C:\Program Files\DotNetMQ\DotNetMQ.exe
   logfile = C:\Users\sonnguyen\AppData\Local\Temp\DotNetMQ.InstallLog
Installing service DotNetMqService...
Creating EventLog source DotNetMqService in log Application...

An exception occurred during the Install phase.
System.UnauthorizedAccessException: Access to the path 'C:\Program Files\DotNetMQ\DotNetMQ.InstallState' is denied.

The Rollback phase of the installation is beginning.
See the contents of the log file for the C:\Program Files\DotNetMQ\DotNetMQ.exe assembly's progress.
The file is located at C:\Program Files\DotNetMQ\DotNetMQ.InstallLog.
Rolling back assembly 'C:\Program Files\DotNetMQ\DotNetMQ.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = C:\Program Files\DotNetMQ\DotNetMQ.exe
   logfile = C:\Users\sonnguyen\AppData\Local\Temp\DotNetMQ.InstallLog
An exception occurred during the Rollback phase of the System.Configuration.Install.AssemblyInstaller installer.
System.IO.FileNotFoundException: Could not find file 'C:\Program Files\DotNetMQ\DotNetMQ.InstallState'.
An exception occurred during the Rollback phase of the installation. This exception will be ignored and the rollback will continue. However, the machine might not fully revert to its initial state after the rollback is complete.

The Rollback phase completed successfully.

The transacted install has completed.
The installation failed, and the rollback has been performed.

C:\Program Files\DotNetMQ>net start DotNetMQ
The service name is invalid.

More help is available by typing NET HELPMSG 2185.
PS C:\Program Files\DotNetMQ> .\INSTALL_x64.bat

C:\Program Files\DotNetMQ>C:\Windows\Microsoft.NET\Framework64\v4.0.30319\installutil DotNetMQ.exe
Microsoft (R) .NET Framework Installation utility Version 4.7.2556.0
Copyright (C) Microsoft Corporation.  All rights reserved.

Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the C:\Program Files\DotNetMQ\DotNetMQ.exe assembly's progress.
The file is located at C:\Program Files\DotNetMQ\DotNetMQ.InstallLog.
Installing assembly 'C:\Program Files\DotNetMQ\DotNetMQ.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = C:\Program Files\DotNetMQ\DotNetMQ.exe
   logfile = C:\Users\sonnguyen\AppData\Local\Temp\DotNetMQ.InstallLog
Installing service DotNetMqService...
Creating EventLog source DotNetMqService in log Application...

An exception occurred during the Install phase.
System.UnauthorizedAccessException: Access to the path 'C:\Program Files\DotNetMQ\DotNetMQ.InstallState' is denied.

The Rollback phase of the installation is beginning.
See the contents of the log file for the C:\Program Files\DotNetMQ\DotNetMQ.exe assembly's progress.
The file is located at C:\Program Files\DotNetMQ\DotNetMQ.InstallLog.
Rolling back assembly 'C:\Program Files\DotNetMQ\DotNetMQ.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = C:\Program Files\DotNetMQ\DotNetMQ.exe
   logfile = C:\Users\sonnguyen\AppData\Local\Temp\DotNetMQ.InstallLog
An exception occurred during the Rollback phase of the System.Configuration.Install.AssemblyInstaller installer.
System.IO.FileNotFoundException: Could not find file 'C:\Program Files\DotNetMQ\DotNetMQ.InstallState'.
An exception occurred during the Rollback phase of the installation. This exception will be ignored and the rollback will continue. However, the machine might not fully revert to its initial state after the rollback is complete.

The Rollback phase completed successfully.

The transacted install has completed.
The installation failed, and the rollback has been performed.

C:\Program Files\DotNetMQ>net start DotNetMQ
The service name is invalid.

More help is available by typing NET HELPMSG 2185.

i am also getting exactly the same error on windows 10.

The error occurs when the service is not started in administrator mode, there are two solutions, one is to right click the file Install and open it as administrator or do it from cmd.


Fit two or more dipoles

Hi!
I'd like to be able to fit two or more dipoles. I work with epileptic spikes, and sometimes patients have simultaneously occurring spikes with different sources. Fitting one dipole results in this dipole being centered in between the two epileptic sources - not so optimal I'm afraid. It would be best if one dipole could be fitted for each source of epileptic activity.
Best,
Karin

how would you proceed? fit them sequentially by hand picking time
points? fitting multiple ones simultaneously is computationally more
challenging and for me brings you closer to sparse distributed inverse
methods.

I'll try and use only a part of the sensors (here one hemisphere at the time), make a new forward model with only these ones and fit one dipole for each hemisphere.

I'll try to hand pick time points, but I'm not sure it will work since none one of the two foci are completely silent at any point (when there is activity in the contralateral one).
I got the advice to model only a subset of sensors (here eg one hemisphere at the time) but that doesn't seem to be possible?
Thanks for all the help

You can use evoked_left = evoked.copy().pick_channels(left_hemi_channels) once you make a list of the left_hemi_channels you want to use to subselect channels, then fit

I tried to fit only a subset of sensors but the dipole doesn't change location - even if the dipole is fitted to a region quit far from the selected sensors.

how does the topography look like?

Here's one example. The dipole, even though I've fitted only one hemisphere, ends up in the contralateral hemisphere.

you should get a clear dipole around the left inferior frontal cortex with
such a topo.
can you show what you get with plot_alignment ? see
https://martinos.org/mne/dev/auto_tutorials/plot_source_alignment.html#sphx-glr-auto-tutorials-plot-source-alignment-py

(I've used single layer BEM, hence the brain)

looks great. Did you try using only a selection of left side sensors?

This an example of a topo-plot + dipole fit of sensors only from the right hemisphere

that's really weird ...

My personal guess is this:
Almost all of this patient's spikes move about (more or less). This ought to result in a number of sources, thus violating the assumption that the activity can be modeled by only one dipole?
I tried to pick dipoles time point by time point and it works for some spikes but not for all. However maybe this time restriction results in a dipole corresponding to a local minimum quite "far" from the global minimum?
Thus maybe one can simply conclude that dipole fit is not the model of choice here?

what you say makes sense. I cannot propose more

Closing as this does not seem to require action at the MNE-Python end


Recommendations

I like this library and am testing it in my 2D game.  Here are some recommendations:

I recommend including CMAKE build because it is easy to use and cross platform.  I could not build the examples with the custom build.  Keeps giving errors.  A cmake build would make it easier for me to drop it into my projects.
I recommend using -Wall build warnings.  There were alot of errors when building.  I built it with -Wall on C99 standard.
I recommend adding more documentation and explanation on various abstract features like constraint and awake/sleep.  There is not much understanding in the position_iters and velocity_iters field of the nv_Space_step API.
I recommend adding more simple getting started samples.  I found the example added to be very difficult to understand.
I recommend updating the APIs to make it more friendly to Game development.  I am working on a flat plane 2D game and I had to manually zero the gravity variable of the Space object because that was not desired in my Game.  Making the gravity force optional in the nv_Space_new() API would have been better.  I had to write my own friction logic and clamp to zero logic (once the velocity is under a certain value, set it to zero) to make the feel of the physics more 2D game friendly.  Would be awesome to include this as additional API.

I really appreciate your feedback. All of your suggestions are added to my TODO list and I will be working on it :)
About the last suggestion, Box2D has a friction constraint to achieve that. I might do something similar.


UnCSS ignoring complex selectors

Hey @giakki :)
Over in Web Starter Kit our basic layout uses a selector that looks like .app-bar.open ~ main. Unfortunately, this gets skipped by UnCSS, leaving us with a broken menu during our build, meaning we need to add an ignore in place to get this working.
Would it be possible to get some further testing done on why UnCSS is unable to handle such selectors correctly?

Hi !
Combining tow classes selectors like so .first-class.second-class is still skipped. I have tried to ignore them but still doesn't work. The selectors are vanished by uncss.


Create 0000-01-02-Ansamariya1.md

created a branch, created a file and made a commit, and opened a pull request.Ansamariya1-patch-1

created a branch, created a file and made a commit, and opened a pull request


Changing the logo image in loader, favicon and title

Hi,
Can someone please tell me how to change the Hexagonal "B" logo and insert my own logo? As in, where do I put the new image and/or what parts of the code do I modify for the same?
Any pointers would be helpful.
Also, I have already changed logo.png in /images/ folder and the favicons in the /images/favicons/  and the favicon does change, but on restarting the server, the original logo is again written to .cache for some reason. Any way to stop this?

The logo is an SVG I created and exported in Sketch https://github.com/bchiang7/v4/blob/master/src/components/icons/logo.js

Perfect, that helped me solve my issue. Thank you so much for your help and for this amazing website, you're the best! <3

Hi @bchiang7 ,
I am trying to change the letter in the Loading screen from B to an O. How can I do this? I cannot see any B in the loader.js file. Where is the animation in the codebase?
Thanks

@Remorax Is it possible for you to highlight how you went about changing the logo during the website loading?

@abhishek-t-naive you can do it with text element on svg. Refer to this comment

@xamantra This worked perfectly. Have you tried designing a completely new logo and utilising it here?

@abhishek-t-naive , nope. I'm not a designer type of guy really. That's why I give up on editing the svg graphic and search for alternative and I found text element :)

Makes sense. Thanks for sharing it.

Sorry, but what exactly you mean by you photoshopped it? Did you create it in photoshop?

@xamantra   Sorry, but what exactly you mean by you photoshopped it? Did you create it in photoshop?

@abhishek-t-naive
More like edited on photoshop. I just replaced the letter from the original logo.

Okay. I will try that

@xamantra I actually created a new logo with Inkscape and that seems to work great. Your suggestion of using <text> is a pretty simple and straightforward one for anyone who is not trying to fiddle around much with the website.
As we are on the topic, do you know how can I increase the size of the logo displayed in the top left corner?
I feel that it must be a part of a section which will need changes to its dimensions to change size of the logo. I am not too familiar with CSS, hence I would appreciate if you can point me in the right direction


commitlint not working for git submodules

When working with git submodules, commitlint cannot find the COMMIT_EDITMSG file for the submodule and you get an error (see below for details).
Expected Behavior

Commitlint should look for the COMMIT_EDITMSG file located in the parents .git folder.

Current Behavior

Commitlint errors with the following error:
Error: ENOENT: no such file or directory, open 'D:\Workspace\Demeter\modules\template-parser\.git\COMMIT_EDITMSG'

Affected packages

[x] cli
[x] core
[ ] prompt
[ ] config-angular

Possible Solution

Somehow check if the current repository is a submodule and if that is the case look at the .git folder of the parent repository instead. The parents .git folder can be found in the .git file of the submodule.

Steps to Reproduce (for bugs)

Create a git repository
Add a submodule to the git repository created in step 1.
Make sure the submodule uses commitlint.
Try to lint the commit message for a commit in the submodule.

commitlint.config.js (of the submodule)

```js
module.exports = {
  extends: ['@commitlint/config-conventional']
};
```

Context

I'm basically just trying to use commitlint in a project where I'm using submodules...

Your Environment

Executable
Version

commitlint --version
7.1.0

git --version
git version 2.6.1.windows.1

node --version
v8.3.0

I'd like to 👍 on this as it stems to a larger problem of not being able to run the CLI anywhere. It assumes you are running it from within a .git repo in the same level. That doesn't hold true. For example, I'm looking to run this on a pre-receive hook for GitHub at my company. Because the context for that doesn't have a .git folder, I can't run it properly. If there is a solution to this problem, it would hit two birds with one stone.

@Aghassi If you pass the message from stdout to commitlint it will not try to find a git root.
Thank for reporting thr original issue, I‘ll have a look

@marionebl Would you mind giving an example? In my experience doing something as simple as commitlint -e "this will fail" does not work as intended with commitlint installed globally via yarn. I've also tried echoing the content into a variable and then passing the variable to commitlint -e. That way complained about the missing .git folder. I can make a separate issue if you'd like to track it separately from this. I figured the two were related.


Prevent drift in tick delivery (fix #406)

Calculate the next delivery time based on the previous one instead of the time the thread awoke, preventing a small but noticeable drift from accumulating.

I fixed the tests so they now pass. I don't know why the CI fails on 1.26/1.28, maybe it's a dependency issue. This is the error:
error[E0432]: unresolved import `self::std::hint`

  --> /home/travis/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.4.0/src/inline_lazy.rs:13:16

   |

13 | use self::std::hint::unreachable_unchecked;

   |                ^^^^ Could not find `hint` in `std`

error: aborting due to previous error

I don't know why the CI fails on 1.26/1.28, maybe it's a dependency issue.

Happens on master as well, see #412.

Hey, thank you for submitting this PR and apologies for coming to it so late! :( I'm assuming you already forgot about this code so I submitted a new PR: #456
I think try_recv() should not change - the drift there is intended and this is exactly how tickers work in Go, too. However, we do need changes in recv() - instead of sleeping and then attempting to receive a message, we should receive it first and then sleep.

@stjepang OK, great, I'll close this PR then. Thanks!


fix ci

#262

#293 reduces versions tested on Actions and gets port similar to nmp/mineflayer, I think this should make the CI alot less flaky


New script function to edit script-created decals

TorqueScript function to edit the position of decals created with decalManagerAddDecal.

Playing with the idea of creating a shadow from script using decals I found:
-Creating and deleting decals with TorqueScript is quite simple with the functions decalManagerAddDecal and decalManagerRemoveDecal.
-But once you create a decal there isn't any scripted way to modify it.
A solution I was thinking on use is to just keep deleting old decals and create a new one in the new position but a problem appeared as the ID of the decal keeps increasing making the c++ internal array of decals bigger.
I fear that may end as a memory leak so I decided to add an edit function.
This function imitates how proyectedshadow works so it's quite standard.
The math at the start is copied from the one used when you create a decal (DecalDataFile::addDecal) to change from the user friendly F32 rotAroundNormal to the internal Point3F tangent.
The variables of a decal are defined as public so the change is quite direct.
I decided for position, normal, rotation and size to be at the same function so it's kind of a long list of variables but it's quite similar to decalManagerAddDecal so it shouldn't be very confusing.
-How to test-
Play the desert mission of a full template and while the player is standing in the sand (this way raycast isn't needed) type in the console:
$decaltest=decalManagerAddDecal(LocalClientConnection.player.position,"0.0 0.0 1.0","0.0","1.0","ScorchRXDecal",true);
Now move the player away from the mark and type to test:
decalManagerEditDecal( $decaltest , LocalClientConnection.player.position , "0.0 0.0 1.0" , "0.0" , "1.0");
The ScorchRXDecal will move without increasing the decal ID. It returns true as there is a decal with that ID.
You can still use to remove the decal:
decalManagerRemoveDecal($decaltest);
And the decal will just be removed. Trying to edit the removed decal will do nothing and return false.

Nice. Only thing out of place that I noticed is the really long if() statement. It makes it much easier to understand if it were done like this:
   // if everything is unchanged just do nothing and return "everything is ok"
   if (pos.equal(decalInstance->mPosition) &&
      normal.equal(decalInstance->mNormal) &&
      tangent.equal(decalInstance->mTangent) &&
      mFabs( decalInstance->mSize - (decalInstance->mDataBlock->size * decalScale) ) < POINT_EPSILON)
      return true;

Reviewed, correct and useful script function, the only aspect on code clarity was the one @dottools has already noticed.

Thank you for this contribution! (:


v1.4 dotnet sdk 6.0 update loop

Still get update loop for dotnet 6.0 update.

Still get update loop for dotnet 6.0 update.

Could you please share the result of winget upgrade command on PowerShell or cmd?

thats strange

What happens if you try to update it with the command winget upgrade Microsoft.DotNet.SDK.6?

winget upgrade "Microsoft.DotNet.SDK.6" also doesn't work, right? This seems like a problem with the Winget package itself, but wait @martinet101 for confirmation. If you aren't able to update this package through cmd WingetUI also won't be able to. If this is the case you may try to get help at https://github.com/microsoft/winget-pkgs.

you are right ty


⚠ GG2RDF Service has degraded performance

In 1610a81, GG2RDF Service (https://gg2rdf.ld.plazi.org/status) experienced degraded performance:

HTTP code: 200
Response time: 641 ms

Resolved: GG2RDF Service performance has improved in db22f19 after 1 hour, 20 minutes.


Check if DB exists before trying to initialize its shell.

Right now, when trying to connect to an invalid URL that has  turso.io domain it tries for a long time to connect, eventually reaches the timeout and returns the same thing:
go run ./cmd/turso/main.go db shell libsql://asdfasd.turso.io
Error: failed to connect to database

To avoid this, if the shell encounters a turso.io hostname, it should check to make sure the db exists first before connecting.
This issue is the result of the discussion that started in this other one

Also noting here that these lines of code:
https://github.com/chiselstrike/turso-cli/blob/main/internal/cmd/db_shell.go#L148-L150
Likely allow invalid hostnames that contain a suffix of an existing database hostname.  For example a database with hosting, foo.turso.io receives CLI connections targeting libsql://other-stuff-foo.turso.io since the actual hostname is a suffix of the provided hostname in the URL.

Looks to be resolved. Closing.


Don't lose cart after logging in

Scenario:

Start as an anonymous user
Add something to cart, proceed to checkout
Log in using first step of the checkout

Failure: You'll be redirected to cart page showing empty cart
Expected result: Your anonymous cart is now your current cart as logged in user

Current coverage is 58.71% (diff: 71.42%)

Merging #832 into master will decrease coverage by 0.02%

@@             master       #832   diff @@
==========================================
  Files           112        112
  Lines          5882       5883     +1
  Methods           0          0
  Messages          0          0
  Branches        720        721     +1
==========================================
- Hits           3455       3454     -1
- Misses         2287       2288     +1
- Partials        140        141     +1

Powered by Codecov. Last update 99311c7...fcb490e

It seems that even after the fixes the decorator often return None without ever calling the underlying view.

@patrys I added more tests to cover this scenario

login = find_and_assign_anonymous_cart()(allauth_login)
I think it only covers social login, but not regular login,
Wouldn't it be better to place find_and_assign_anonymous_cart in user_logged_in signal?
not sure if you need to hook it up with user_signed_up signal as well.

@littlehome-eugene It covers standard login too, in fact it was tested and designed for regular login. When we use django-allauth, standard login() view from django.contrib.auth is not used


For all releases >0.25.36, the VERSION file still says 0.25.36

Provider Version
Anything higher than 0.25.36
Describe the bug
For any of the version tags > 25.36 (e.g. 0.32.0), check the VERSION file. It says 0.25.36, which causes the makefile to build the binaries with the incorrect version number
Expected behavior
The contents of the VERSION file should be consistent with the version tag

closing this, as it seems like the VERSION file has been completely removed as of v0.34.0


Document running Piranha Server using module path

Should we add some flag to Piranha Server to change from classpath to module path or fully embrace the module path by now?
We may change to only start the server with the module path by default. I think it is not very risky and very straightforward.
It would change basically from -jar lib/piranha-server.jar to --module-path lib -m cloud.piranha.server.
The classloading process shouldn't change because the work is all done by our classloaders (like DefaultWebApplicationClassLoader).
We may start with this only change and the next step would be to add the module-info.class to our dependencies (like Tyrus).
As soon as we add the module-info to all dependencies we may use both JLink and JPackage.

Lets make it so the default is modules, but you can opt to use classpath if so desired?


Setup CI

Currently running on an internal Jenkins instance. Maybe transfer to Travis?
Tests run with:
# Install cld2-cffi package with an additional CFLAG
CFLAGS="-Wno-narrowing" pip3 install --quiet cld2-cffi

# Install requirements
pip3 install --quiet --requirement requirements.txt

# Install and run pylint
pip3 install --quiet --upgrade pylint
python3 -m pylint -f parseable textpipe | tee pylint.out

# Download languages needed for testing
python3 -m spacy download nl > /dev/null
python3 -m spacy download en > /dev/null

# Run test with pytest, including doctests
pip3 install --quiet --upgrade pytest
python3 -m pytest --doctest-modules --junit-xml=pytest.xml

# Run unit tests again, but with nose for coverage report
pip3 install --quiet --upgrade nosexcover
python3 -m nose --with-doctest --with-xcoverage --with-xunit --cover-package=textpipe --cover-erase 2> /dev/null

That would be good. Maybe move this code script/test?


Workflow to update IC

TODO

[x] Waiting for a token from idx.
[x] Give bot write permissions to repo
[ ] Test

[ ] Generated bindings fail tests

[ ] Are the bindings on main pure generated or updated in some way?

[ ] FIN

Motivation
Changes

Tests

Todos

[ ] Add entry to changelog (if necessary).

Discussed with @lmuntaner:

Most of the time, just converting is enough, so the code in this action is probably enough.  It can be marked as ready for review.
Sometimes when a new field is added, we really want to add the new field in some conversion.  So we need some kind of check to make sure that new fields are included.  Something like destructuring with let Type{x,y} = data; instead of let Type{x,y,..} = data;, where the former will fail to compile if a new field is not accounted for whereas the latter will happily ignore additional fields.  We wil lhave to look at details to see how best to do this.
There are some systematic changes and some manual changes.

Max comment on this:

If we can describe the systematic changes we can probably automate them and add them to this action.
In the case of Rust, non-systematic changes are done with patchfiles (or should I say "were" as we have pushed changes upstream that make most or all of those disappear).  Maybe a similar trick can be used here.


uadk cipher perfmance is much worse than warpdrive perfmance when using multi-queue by test.

test aes-cbc, use sync mode. Treads == queues.    packet size = 1K.  The lengths of other packets are similar.  maybe worse.
NO-SVA                     SVA
Threads = 1,       502.4 MB/s                 555.7 MB/s
Threads = 2,       989.3 MB/s                1067.6 MB/s
Threads = 4,       1963.9 MB/s               1910.8 MB/s
Threads = 8,       13604.3 MB/s              3189.9 MB/s
Threads = 16,       6571.5 MB/s              1911.6 MB/s
Threads = 32,       9403.3 MB/s              966.9 MB/s

fix it.


Tutorial: Warn about potential issue with using pip directly on Windows

Changes
Fixes #236 by adding an admonition block in the tutorial, explaining why pip install briefcase can break and python -m pip install briefcase is preferred on Windows.
PR Checklist:

[x] All new features have been tested
[x] All new features have been documented
[x] I have read the CONTRIBUTING.md file
[x] I will abide by the code of conduct

In case you wonder: pip install briefcase will upgrade pip and setuptools just fine on Linux, that's why I put this admonition in the Windows tab only.


fix(v2): pass images in static dir to webpack-loader

Motivation
Fixes #3278.
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
By adding tests and dog food.

thanks :)

Hey @anshulrgoyal , can you check if this works for regular static assets (non images) too with baseUrl? I think we don't handle that yet


how do i install furaffinity-dl?

You do not "install" it. It is just one Linux shell script file.
Look at the description in the README.md how to use it.

ok, but when i put the command chmod +x faraffinity-dl it appears chmod: cannot access 'faraffinity-dl': No such file or directory.

Did you even download it?
Go to your directoy of choise where you would like to save it.
Then you can download the script by running the following command:
wget https://raw.githubusercontent.com/Xerbo/furaffinity-dl/master/furaffinity-dl
Now you can use chmod +x furaffinity-dl
Now finaly ./furaffinity-dl should work.
This only works if you are in the directory of your choise.
You can use if from outside by using $PATH_OF_YOUR_DIR/furaffinity-dl.
Addintinaly you could add furaffinity-dl to your path to use it globaly by just typing furaffinity-dl.
Here is a quick thingy you can type into your terminal and it should work fine:
mkdir $HOME/.fadl
wget $HOME/.fadl https://raw.githubusercontent.com/Xerbo/furaffinity-dl/master/furaffinity-dl
chmod +x $HOME/.fadl/furaffinity-dl
echo "export PATH=$HOME/.fadl:$PATH" >> $HOME/.bashrc

Now you should be able to just type furaffinity-dl into your terminal and it will work:
If it doesn't work try reopening your terminal or just typing bash.
If for some reason that doesn't work please comment.
UwU

Oh also i just noticed you made a type
You typed faraffinity instead of furaffinity


chore(test): moving aria-label to upper level

What does this PR do?
Adds one more validation to the service creation test and moves aria-label for endpoint url to upper level.
What issues does this PR fix or reference?
https://github.com/containers/podman-desktop-extension-ai-lab/issues/2100

@containers/podman-desktop-reviewers can somebody please review this?


Add utils package to generate id tokens

Context
As of present, authentication is performed by the Merlin and Turing SDKs using Google OAuth 2.0 access tokens (generated after authentication with Google's OAuth server) that are added to the headers of requests sent to the Turing API server. These tokens are then used by an internal proxy which will validate the access token and then retrieve the user profile information from the Google API.
However, with the move to decouple authentication from authorization (for which the OAuth 2.0 protocol is built for), we are replacing the use of OAuth 2.0 access tokens for authentication with the use of Google OpenID Connect (OIDC) identity tokens. These tokens generated would similarly be added to the headers of requests sent to the Turing API server to be validated internally.
This PR serves to introduce the new authentication methods by making the Google API Python client generate id token credentials instead of OAuth2 ones. The new authentication methods will then be imported by both the Merlin and Turing SDKs to perform authentication of the user.
Changes
The bulk of the code introduced are almost entirely drawn from Apache's Airflow Google utils library that authenticates an SDK user and generates Google OIDC identity token credentials, from three potential sources (in decreasing priority),

Credential files paths specified with the GOOGLE_APPLICATION_CREDENTIALS environment variable
GCloud SDK credentials (includes application default credentials)
Google Compute Engine credentials

Regardless of where the credentials are found, note in particular the difference between generating identity tokens from a user account and from a service account as Google does not allow the generation of identity tokens with user accounts but only from service accounts.
When creating id tokens from service accounts, we simply use the methods provided by the Google API python client library to generate them in a google.oauth2.service_account.IDTokenCredentials object.
However, when creating id tokens from user accounts, since this is not immediately possible, we're initialising a IDTokenCredentialsAdapter wrapper around the OAuth2 credentials, which 'mocks' the IDTokenCrendtials class by having a None id token. When the credentials are refreshed, the id_token field will automatically be populated with the default client_id for whichever credentials are used:
Google Cloud default applications credentials client_id and aud value:
764086051850-6qr4p6gpi6hn506pt8ejuq83di341hur.apps.googleusercontent.com
Google Cloud SDK client_id and aud value:
32555940559.apps.googleusercontent.com
if credential_type == _AUTHORIZED_USER_TYPE:
    current_credentials = oauth2_credentials.Credentials.from_authorized_user_info(
        info,
    )
    current_credentials = IDTokenCredentialsAdapter(credentials=current_credentials)

    return current_credentials

elif credential_type == _SERVICE_ACCOUNT_TYPE:
    try:
        return service_account.IDTokenCredentials.from_service_account_info(
            info, target_audience=target_audience
        )
    except ValueError:
        raise exceptions.DefaultCredentialsError(
            f"Failed to load service account credentials from {filename}"
        )

Intended Usage
Since the authentication methods will be bundled in a caraml-auth-google package, that contains the caraml_auth module, the Merlin and Turing SDKs would have to import and use the authentication methods introduced in a way that resembles:
from caraml_auth.id_token_credentials import get_default_id_token_credentials

credentials = get_default_id_token_credentials(target_audience="turing-sdk.caraml")
credentials.refresh(Request())

with the move to decouple authentication from authorization

What does this mean?

with the move to decouple authentication from authorization

What does this mean?

Ah good catch; on my mind I was referring to the Google Identity Services library's move from access tokens to OIDC as one that decouples authentication from authorisation but on reading that sentence, I don't think it's even relevant given that the rest of the MR description is about our changes to OIDC instead of theirs.

Thanks for the quick comments! I've added quite a number of other boilerplate stuff to the repo like a CI workflow and a Makefile and other tests. You might want to take a brief look at those stuff too.


curl: backport other netrc regression fix

See https://github.com/NixOS/nixpkgs/issues/356114#issuecomment-2488646405

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

I was able to build all tests, except for php-curl as dependencies deep in the chain failed to build (libselinux-3.7 and systemtap-5.0a)


feature: add file server port flag

Signed-off-by: Starnop<EMAIL_ADDRESS>
Ⅰ. Describe what this PR did
Supernode will listen on two ports:

The register port (default: 8002)
The download port (default: 8001)

The register port is used for clients to register their own information into supernode.
The download port is used for clients to download pieces from supernode.
And we currently lack of the download port flag.
Ⅱ. Does this pull request fix one issue?

None.
Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗？)
None.
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

Codecov Report

Merging #551 into master will increase coverage by 0.05%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #551      +/-   ##
==========================================
+ Coverage   52.18%   52.24%   +0.05%
==========================================
  Files          83       83
  Lines        4461     4464       +3
==========================================
+ Hits         2328     2332       +4
  Misses       1980     1980
+ Partials      153      152       -1

Impacted Files
Coverage Δ

cmd/supernode/app/root.go
58.49% <100%> (+0.79%)
:arrow_up:

supernode/config/config.go
65.78% <100%> (+0.92%)
:arrow_up:

supernode/daemon/mgr/scheduler/manager.go
25.6% <0%> (+0.8%)
:arrow_up:

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 4e80d77...7bf26e7. Read the comment docs.


Switch to GPU enabled base image

nvidia/cuda:10.0-cudnn7-runtime-ubuntu18.04 is the latest supported by GCP
torchvision==0.5.0 and torch==1.4.0 are versions required by cuda 10

Tested on GCP

Had to remove --preload flag to avoid worker being restarted on every request

@nglinh No plan to support fastapi yet. Our internal benchmark shows fastapi to be slower and buggy compared to flask.

My only concern is with having cuda baked in to the main dockerfile since all our subsequent images will have cuda base. How about splitting it to a different docker file so we can keep cuda and non-cuda image separated

Yea, let's have a separate dockerfile for gpu support. It should support most, if not all, of the build args of the current dockerfile.

While you are at it, also think about if it makes sense to put all cuda related files into a separate directory, like flask-cuda. It feels a bit cleaner than switching on some env var or build arg.


133333333333333333

Describe the bug
22222
Link to the blitz that caused the error
https://stackblitz.com/edit/vitejs-vite-nwmyn5?file=src%2Fcomponents%2FHelloWorld.vue&terminal=dev
Steps to reproduce
333333333333333
Expected behavior
333
Screenshots
No response
Platform
Browser name  = Chrome
Full version  = 96.0.4664.45
Major version = 96
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36
performance.memory = {
  "totalJSHeapSize": 109108074,
  "usedJSHeapSize": 86800762,
  "jsHeapSizeLimit":<PHONE_NUMBER>
}
Hash = 6c82f838340a5d37c50f004ca724bcc8f75bc71c

Additional context
2222222222222222

Please fill the template with proper information to explain your issue.
So far, without any additional context, the Stackblitz project linked works as expected.
Without any effort from your side, this issue will more likely be closed.


test: Cypress tests - Grouping logical it blocks - Part 3

Description

This PR includes the grouping of logical & extremely small it blocks into one hence reducing the number of existing test scripts

Type of change

Script update

How Has This Been Tested?

Cypress CI runs

Checklist:
QA activity:

[x] Added Test Plan Approved label after reviewing all changes

/ok-to-test sha=29efbac

/ok-to-test sha=605bea3

/ok-to-test sha=e02b490

/ok-to-test sha=11e1afe


add recipe interaction needs update

Currently, you can press "Add Recipe" any number of times and it will add blank entries into the recipe list. Those entries are not selectable afterwards.
I think the best way forward is to refactor the interface to use a stage-and-add pattern (similar to git commits, for instance). In the simplest implementation, two separate buttons are needed: "New Recipe" and "Add Recipe". Clicking "New Recipe" will present the same interface that "Add Recipe" currently does. However, it will keep its recipe information "local" to what's currently on the screen. When the user is content with recipe the have built, they can then click "Add Recipe" to add it to the list of available recipes.

closed by #144


Make Test Suite work across Operating Systems

Context: #33

Approximate text width by multiplying amount of characters instead of relying on Canvas.measureText for that. This means that the calculation is no longer dependent on how the OS renders fonts and therefore makes the test suite simpler, and portable across OS environments.
@eric-adstage, could you run the tests for this branch locally to see if I missed anything?

Still no luck for me. :\ Tests still failing. I'm feeling under the weather today, but I'll try to make some time to look into it tonight.

Hey @eric-adstage, I took a second approach to this and think I found the cause with https://github.com/One-com/react-truncate/pull/37/commits/519aa66cc756e3c9991364944ef6c3fa45042789.
Could check it out again and confirm?

@PabloSichert, tests on this branch pass now. 👍


Add icon attribute to modbus switch

Description:
Extend Modbus switch to support setting custom icon.
Example entry for configuration.yaml (if applicable):
switch:
  platform: modbus
  coils:
    - name: Switch1
      hub: hub1
      slave: 1
      coil: 13
    - name: Switch2
      slave: 2
      coil: 14
      icon: mdi:flask-empty
  registers:
    - name: Register1
      hub: hub1
      slave: 1
      register: 11
      command_on: 1
      command_off: 0
      icon: hass:brightness-5

Checklist:

[x] The code change is tested and works locally.
[x] Local tests pass with tox. Your PR cannot be merged unless tests pass
[x] There is no commented out code in this PR.
[x] I have followed the [development checklist][dev-checklist]

If user exposed functionality or configuration variables are added/changed:

[ ] Documentation added/updated in home-assistant.io

We shouldn't be setting custom icons as part of a platform's schema. UI-related things – like icons – should be modified in Lovelace.

@bachya As a inspiration I checked the implementation for the MQTT sensor:
https://www.home-assistant.io/integrations/sensor.mqtt/
The icon is optional parameter there. I did the same for the switch. I'm not familiar with the whole codebase yet. If this icon field shouldn't be directly exposed in the component, you can close this PR. But if this is the case, I would like to know how to achieve similar functionality with Lovelace UI modification.
Thanks!

@vzahradnik No worries! The did, indeed, used to be the model, so it makes sense. These days, you can add icon attributes directly to entities within Lovelace – no additional functionality needed. As an example, take a look at the Entities Card documentation.

You can still add default icons within the back-end code; this is merely the preferred method for allowing the user to override those icons.

@bachya thanks for pointing me to the Lovelace Entity card, I will try it out. As for this PR, I will leave the decision to merge to you guys. As far as there are alternative (more preferred) methods, I'm OK with it.


mininet: init at 2.3.0d4

Mininet (https://github.com/mininet/mininet) is a popular network emulator that
glues several components such as network namespaces, traffic control
commands into a set of python bindings. It is then "easy" to describe a
topology and run experiments on it.
To test it, you should rebuild with    programs.mininet.enable = true;
Then you can run
nix-shell -p 'python.withPackages(ps: [ps.mininet-python])' --verbose and launch your own scripts or just sudo mn
Motivation for this change
I use it for experimentation
Things done
The current Makefile is very limiting so I submitted this PR https://github.com/mininet/mininet/pull/803 but there is only one maintainer so it might take time for the patch to get in so I embedded it in nixpkgs.
Mininet can work with several openflow controllers. I have written nix packages for  https://github.com/CPqD/ofsoftswitch13 (and its netbee dependency) but it didn't work so I fell back on openvswitch.

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

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Success on x86_64-linux (full log)
Attempted: mininet
Partial log (click to expand)
gzipping man pages under /nix/store/l8bgjpic0alb6v514ahq37wa07ywacdd-mininet-2.2.2/share/man/
strip is /nix/store/92d2ifxcni4n3zx9s8wnkcjlvnx5ajlc-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/l8bgjpic0alb6v514ahq37wa07ywacdd-mininet-2.2.2/bin
patching script interpreter paths in /nix/store/l8bgjpic0alb6v514ahq37wa07ywacdd-mininet-2.2.2
checking for references to /build in /nix/store/l8bgjpic0alb6v514ahq37wa07ywacdd-mininet-2.2.2...
shrinking RPATHs of ELF executables and libraries in /nix/store/1id8gxz8rjhn9gglbl16b2z9xw7y5axm-mininet-2.2.2-py
strip is /nix/store/92d2ifxcni4n3zx9s8wnkcjlvnx5ajlc-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/1id8gxz8rjhn9gglbl16b2z9xw7y5axm-mininet-2.2.2-py/lib  /nix/store/1id8gxz8rjhn9gglbl16b2z9xw7y5axm-mininet-2.2.2-py/bin
patching script interpreter paths in /nix/store/1id8gxz8rjhn9gglbl16b2z9xw7y5axm-mininet-2.2.2-py
checking for references to /build in /nix/store/1id8gxz8rjhn9gglbl16b2z9xw7y5axm-mininet-2.2.2-py...

Success on aarch64-linux (full log)
Attempted: mininet
Partial log (click to expand)
strip is /nix/store/8yfik687kfccisxnad42j19lfb7ij9b4-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/4h7irshnf59mlaakk5bqn6966zcq84q8-mininet-2.2.2/bin
patching script interpreter paths in /nix/store/4h7irshnf59mlaakk5bqn6966zcq84q8-mininet-2.2.2
checking for references to /build in /nix/store/4h7irshnf59mlaakk5bqn6966zcq84q8-mininet-2.2.2...
shrinking RPATHs of ELF executables and libraries in /nix/store/ajv98qg1hn2sdil2isllqlaaj8c5iin3-mininet-2.2.2-py
strip is /nix/store/8yfik687kfccisxnad42j19lfb7ij9b4-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/ajv98qg1hn2sdil2isllqlaaj8c5iin3-mininet-2.2.2-py/lib  /nix/store/ajv98qg1hn2sdil2isllqlaaj8c5iin3-mininet-2.2.2-py/bin
patching script interpreter paths in /nix/store/ajv98qg1hn2sdil2isllqlaaj8c5iin3-mininet-2.2.2-py
checking for references to /build in /nix/store/ajv98qg1hn2sdil2isllqlaaj8c5iin3-mininet-2.2.2-py...
/nix/store/4h7irshnf59mlaakk5bqn6966zcq84q8-mininet-2.2.2

I use mininet only within a nix-shell but I guess people would expect the mn python binary in path so I've added this to all-packages.nix
  mn = let
      mnApp = with pythonPackages; toPythonApplication mininet-python;
    in  pkgs.runCommand "mnexec-wrapper"
    { buildInputs = [ pkgs.makeWrapper ]; }
    ''
      # This wrapper prevents from polluting PATH
      makeWrapper ${mnApp}/bin/mn \
        $out/bin/mn \
        --prefix PATH : "${pkgs.telnet}/bin/telnet"

    '';

which fails with
Cannot wrap '/nix/store/1n59kgfdc0x8w6xjpr58ymccaflkkz7i-mininet-2.2.2/bin/mn' because it is not an executable file
Shouldn't toPythonApplication chmod +x python scripts in bin or do I misinterpret the error ? I pushed my changes.

Success on x86_64-linux (full log)
Attempted: mininet
Partial log (click to expand)
gzipping man pages under /nix/store/yg781159ia6f3fgaq5m05qm2wklm3jx7-mininet-2.2.2/share/man/
strip is /nix/store/92d2ifxcni4n3zx9s8wnkcjlvnx5ajlc-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/yg781159ia6f3fgaq5m05qm2wklm3jx7-mininet-2.2.2/bin
patching script interpreter paths in /nix/store/yg781159ia6f3fgaq5m05qm2wklm3jx7-mininet-2.2.2
checking for references to /build in /nix/store/yg781159ia6f3fgaq5m05qm2wklm3jx7-mininet-2.2.2...
shrinking RPATHs of ELF executables and libraries in /nix/store/il4s4wm6r13avaxbpdiifjm922gx0nba-mininet-2.2.2-py
strip is /nix/store/92d2ifxcni4n3zx9s8wnkcjlvnx5ajlc-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/il4s4wm6r13avaxbpdiifjm922gx0nba-mininet-2.2.2-py/lib  /nix/store/il4s4wm6r13avaxbpdiifjm922gx0nba-mininet-2.2.2-py/bin
patching script interpreter paths in /nix/store/il4s4wm6r13avaxbpdiifjm922gx0nba-mininet-2.2.2-py
checking for references to /build in /nix/store/il4s4wm6r13avaxbpdiifjm922gx0nba-mininet-2.2.2-py...

Success on aarch64-linux (full log)
Attempted: mininet
Partial log (click to expand)
strip is /nix/store/8yfik687kfccisxnad42j19lfb7ij9b4-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/7mdh28mna9hzx19436bb5x61an7arbjj-mininet-2.2.2/bin
patching script interpreter paths in /nix/store/7mdh28mna9hzx19436bb5x61an7arbjj-mininet-2.2.2
checking for references to /build in /nix/store/7mdh28mna9hzx19436bb5x61an7arbjj-mininet-2.2.2...
shrinking RPATHs of ELF executables and libraries in /nix/store/rcs254080wxzx7x3w9888i8sdzpcpxrp-mininet-2.2.2-py
strip is /nix/store/8yfik687kfccisxnad42j19lfb7ij9b4-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/rcs254080wxzx7x3w9888i8sdzpcpxrp-mininet-2.2.2-py/lib  /nix/store/rcs254080wxzx7x3w9888i8sdzpcpxrp-mininet-2.2.2-py/bin
patching script interpreter paths in /nix/store/rcs254080wxzx7x3w9888i8sdzpcpxrp-mininet-2.2.2-py
checking for references to /build in /nix/store/rcs254080wxzx7x3w9888i8sdzpcpxrp-mininet-2.2.2-py...
/nix/store/7mdh28mna9hzx19436bb5x61an7arbjj-mininet-2.2.2

Cannot wrap '/nix/store/1n59kgfdc0x8w6xjpr58ymccaflkkz7i-mininet-2.2.2/bin/mn' because it is not an executable file was because the file didn't exist. I fixed it.
Nevertheless I found a behavior that doesn't seem normal anymore, like I would expect toPythonApplication to work on a pythonPackage @FRidh :
If you try to build
 toto= pythonPackages.toPythonApplication (pythonPackages.libxml2));
it will give out the store path of the original libxml2 package  /nix/store/2smihv5941z5wvyiblqs026snkj2wb32-libxml2-2.9.7-bin instead of the path of the pythonPackage /nix/store/lqqg9npvk4w4x89af71gvnb7bazr6xvq-libxml2-2.9.7-py.

@teto Maybe you could find some ideas in this commit https://github.com/nlewo/nixpkgs/commit/dbbf532be0e86a172c44911da9d391ff4c7a0ec8.
I've tryied to use it ( sudo ./result/bin/mn --test pingall) on my laptop but it failed (note i never used it and don't know too much about this).
It would be really nice to provide a test vm. I think this would not be so hard once we have a working mininet package. I could help you on this.

Thanks for trying, I think I will revert the changes aiming at providing mn as a python application since the toPythonApplication seems buggy in that specific case and I would like this to be merged.  mn application can be added afterwards. I will pickup your wrapping of mn.
I don't know much about the tests vms, I use mininet via nixops.

while trying on my host, I keep getting this  kind of error:
$ sudo mn -vdebug
Starting shell [mnexec -cd env PS1= bash --norc --noediting -is mininet:s1]
shell wth pid [2220]*** s1 : ('unset HISTFILE; stty -echo; set +m',)
sendCmd: unset HISTFILE; stty -echo; set +m
unset HISTFILE; stty -echo; set +m

added intf lo (0) to node s1
*** s1 : ('ifconfig', 'lo', 'up')
sendCmd: ifconfig lo up
lo        Link encap:Local Loopback
          inet addr:<IP_ADDRESS>  Bcast:<IP_ADDRESS>  Mask:<IP_ADDRESS>
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:131 errors:0 dropped:0 overruns:0 frame:0
          TX packets:131 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:9780  TX bytes:9780

In this case mininet command is said to fail because ifconfig lo up returns some output.
If I type in my term "ifconfig lo up" then I don't have any output. I wonder if it can be due to some nixos oddity (like the security wrapper).

I finally solved all problems, just waiting for https://github.com/mininet/mininet/pull/815 to be merged before pushing a final branch.

I bumped the package that is now compatible with python3 ! While the patch was recgonized as useful it hasn't been merged yet so I say let's merge this and I will keep pushing for it to be merged (basically mininet assumes debian's which behavior which is different from gnu which's behavior).

@teto did I miss something, or should the mn binary not be part of the packages $out?
/nix/store/jnb6wc05acxwlacv8fbc92mb8pdgdnil-mininet-2.3.0d4
/nix/store/jnb6wc05acxwlacv8fbc92mb8pdgdnil-mininet-2.3.0d4/bin
/nix/store/jnb6wc05acxwlacv8fbc92mb8pdgdnil-mininet-2.3.0d4/bin/mnexec
/nix/store/jnb6wc05acxwlacv8fbc92mb8pdgdnil-mininet-2.3.0d4/share
/nix/store/jnb6wc05acxwlacv8fbc92mb8pdgdnil-mininet-2.3.0d4/share/man
/nix/store/jnb6wc05acxwlacv8fbc92mb8pdgdnil-mininet-2.3.0d4/share/man/man1
/nix/store/jnb6wc05acxwlacv8fbc92mb8pdgdnil-mininet-2.3.0d4/share/man/man1/mn.1.gz
/nix/store/jnb6wc05acxwlacv8fbc92mb8pdgdnil-mininet-2.3.0d4/share/man/man1/mnexec.1.gz

Right, I pushed a change removing this description.

@Mic92 does the latest commit address your concern ?

Thanks!

wow really good news. thanks for all the comments.


editor hover Cannot display Chinese correctly

VSCode Version: 1.50.1
OS Version: Mint 20

Steps to Reproduce:

see pic
locale = zh_CN.UTF-8

Does this issue occur when all extensions are disabled?: No
if disable C++ extension, then no hover.

I see a lot of editor-hover issues assigned to @tyriar thus forwarding this to him

Passing to @alexdima as it seems to be related to the hover on the editor side, using CJK in the hover service works fine:

This is a hover computed by the C++ language. Please report to the C++ extension.


serve_static_assets is deprecated in Rails 4.2

Rails.configuration.serve_static_assets has been deprecated in Rails 4.2. This results in the following warning message being printed whenever I deploy to Heroku:
DEPRECATION WARNING: The configuration option `config.serve_static_assets` has been renamed to
`config.serve_static_files` to clarify its role (it merely enables serving everything in
the `public` folder and is unrelated to the asset pipeline). The `serve_static_assets` alias
will be removed in Rails 5.0. Please migrate your configuration files accordingly.

rails 4.2 already have
config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
so removed the line in production.rb
config.serve_static_assets = true .
it will help you.


How to do post processing of yolo_ nas_s.onnx

💡 Your Question
I generate onnx using the following code:
import torch
from super_gradients.training import models
from super_gradients.common.object_names import Models
model = models.get(Models.YOLO_NAS_S, pretrained_weights="coco")
model.eval()
model.prep_model_for_conversion(input_size=[1, 3, 320, 320])
dummy_input = torch.randn([1, 3, 320, 320], device="cpu")
torch.onnx.export(model, dummy_input, "yolo_nas_s.onnx", opset_version=11)

Then, I inferd onnx and obtained two outputs, one with shape of (1, 2100 80) and other with the shape of (1, 2100, 4) which I assume the shapes of scores and boxes respectively.
I saw in the models_export_pose.md（https://github.com/Deci-AI/super-gradients/blob/master/documentation/source/models_export_pose.md ） that there are four inference output results
result = session.run(outputs, {inputs[0]: image_bchw})
# result[0].shape, result[1].shape, result[2].shape, result[3].shape
# ((1, 1), (1, 1000, 4), (1, 1000), (1, 1000, 17, 3))

but my output is only two. How can I obtain confidence and other related information from those two outputs?
Versions
Versions of relevant libraries:
[pip3] numpy==1.23.0
[pip3] onnx==1.13.0
[pip3] onnx-simplifier==0.4.35
[pip3] onnxruntime==1.13.1
[pip3] onnxsim==0.4.35
[pip3] torch==1.13.1+cpu
[pip3] torchaudio==0.13.1+cpu
[pip3] torchmetrics==0.8.0
[pip3] torchvision==0.14.1+cpu
[conda] blas                      1.0                         mkl
[conda] mkl                       2021.2.0           h06a4308_296
[conda] mkl-service               2.3.0            py38h27cfd23_1
[conda] mkl_fft                   1.3.0            py38h42c9631_2
[conda] mkl_random                1.2.1            py38ha9443f7_2
[conda] numpy                     1.20.1           py38h93e21f0_0
[conda] numpy-base                1.20.1           py38h7d8b39e_0
[conda] numpydoc                  1.1.0              pyhd3eb1b0_1

So why not exporting a model with post-processing step as shown in Models Export?
Please note that the way you are exporting model is not wrong, but it is too "manual":
model.eval()
model.prep_model_for_conversion(input_size=[1, 3, 320, 320])
dummy_input = torch.randn([1, 3, 320, 320], device="cpu")
torch.onnx.export(model, dummy_input, "yolo_nas_s.onnx", opset_version=11)

We offer model.export() that does all above and much more including optional pre- and post-processing, quantization and other features. Please refer to Models Export
If you want to post-process predictions by hand you can use PPYoloEPostPredictionCallback for this.

Hello, I can't seem to understand how I can specify the input size while using model.export(). I need to be able to run predictions on batches of images and can't get that to work with export(). Any help woud be greatly appreciated.


Increase number of code examples

Goal
Increases the code examples to have parity with the existing internal test suite. Remaining examples to-do are the tracing API + network requests.

The remaining features to get parity with the internal test app are network requests + the tracing API, which I'll open a separate PR for shortly. There may be some additional examples we want to create (e.g. a pure OTel exporter integration) but that could probably come later and as a separate fixture


filter deny/allow sftp upload by file or folder

It would be useful to be able to set a deny or allow filter by file / folder to explicitly permit or deny the uploading of files or folders.
Use Cases:

uploading of .ftpsync_settings is not desired.  I do not want to upload the .ftpsync_settings file to my
public web server for security reasons.  As this file is stored in the root of a project, I cannot use the project wide "Upload on Save" as iuf the ftp settings change, this file gets uploaded.

I am working on new functionality that will impact the public project.  I do not want this folder to be pushed to the public server until I have fully tested the new capability.

In both of these cases, it would be very useful to be able to "right-click" a file/folder and set to "Do Not Upload" or "Require Acceptance" to upload.

"Upload on Save" is not designed for this scenario. The upload panel is made for this - you may ignore files in each upload.

Understandable.  This is one of the features that I would really like to
see in a FTP client.Ignoring individual files on a "per upload" operation
is a bit tedious.  It would be nice to be able to save a list of
files/folders to exclude from auto-upload on save.
On Mon, Jun 15, 2015 at 2:11 PM, Yu Wang<EMAIL_ADDRESS>wrote:

"Upload on Save" is not designed for this scenario. The upload panel is
made for this - you may ignore files in each upload.
—
Reply to this email directly or view it on GitHub
https://github.com/bigeyex/brackets-sftp-upload/issues/71#issuecomment-112213416
.


Update README to be up-to-date

What type of PR is this?
/kind documentation

What this PR does / why we need it:
Update README to be up-to-date
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
/label tide/merge-method-squash

@196Ikuchil Fixed :)

👌
/lgtm


hack: updates update-codgen.sh for go modules

This CL updates the update-codgen.sh script to work with go modules
to capture and use the correct version of k8s.io/code-generator
(instead of git modules).
It also tidies up the vendor directory via go mod vendor.
fixes #35

Let me know if the vendor directory update is overwhelming and we can try to break that out somehow.

I'm going to close this and do a new one sans vendor changes. They just distract from it.