Kernel version upgrade performed by unattended-upgrades breaks FSx client.

Required Info:

AWS ParallelCluster version [e.g. 2.9.0]: 2.9.1
Cluster name: main
Config below, our bootstrap script inserts lustre mounts via /etc/fstab.

Bug description and how to reproduce:
The EC2 instances of a fresh parallelcluster installation on ubuntu1804 come up with kernel version 5.4.0-1035-aws. If the machine reboots the kernel version changes to 5.4.0-1025-aws, as reported by uname -r.
This breaks the any fsx mounts, as the 1035 lustre-client-modules-aws are still installed. A subsequent call to apt get install lustre-client-modules-aws fixes this issue by installing the correct lustre client modules, however I'm puzzled as to why the kernel version shift is occurring in the first place.
This can be trivially reproducing by creating a pcluster with an fsx configuration, then calling sudo reboot on the head node. The filesystem will fail to mount on reboot.
Config
# AUTOGENERATED BY `terraform apply`

[aws]
aws_region_name          = ca-central-1

[global]
cluster_template         = default
update_check             = false
sanity_check             = true

[vpc default]
vpc_id                   = vpc-0b0815bf6e400689c
master_subnet_id         = subnet-02e0c4b67b3dd2898
compute_subnet_id        = subnet-09eb59ef851b89868

vpc_security_group_id    = sg-0a6f0d6ff3f1dd2c6
additional_sg            = sg-0d0f8c19104396f03

[cluster default]
vpc_settings             = default
key_name                 = abcbio-spml_admin_key_20200928
scheduler                = slurm
queue_settings           = m5,p3
base_os                  = ubuntu1804
master_instance_type     = m5.xlarge
additional_iam_policies  = arn:aws:iam::074555333423:policy/pcluster_compute_bucket_access
post_install             = s3://internal-pcluster-spml-abcbio-ca-central-1/pcluster/bootstrap
post_install_args        = 'setup s3://internal-pcluster-spml-abcbio-ca-central-1/pcluster'

[queue m5]
compute_resource_settings    = m5
enable_efa                   = false
disable_hyperthreading       = true
compute_type                 = ondemand

[compute_resource m5]
instance_type                = m5.8xlarge
min_count                    = 0
initial_count                = 0
max_count                    = 25

[queue p3]
compute_resource_settings    = p3
enable_efa                   = false
disable_hyperthreading       = true
compute_type                 = ondemand

placement_group              = DYNAMIC

[compute_resource p3]
instance_type                = p3.2xlarge
min_count                    = 0
initial_count                = 0
max_count                    = 8

I've verified a repo on my end and confirmed the version numbers. You are correct, the node comes up with 5.3.0-1035-aws and updates to 5.4.0-1025-aws on first boot. This is due to an upgrade of some form that isn't triggering the corresponding lustre component updates. This is present in /var/log/apt/history.log as a call from unattended-upgrade.
I can provide more logs if it's useful, but would appreciate your guidance on where to look next as I'm not fully familiar with the pcluster image creation / cfn-init process.
The repro log is below, lightly edited to remove extraneous components for clarity.
Cluster create, before reboot, 5.4.0-1035-aws kernel and lustre

$ pcluster create test-2095
Beginning cluster creation for cluster: test-2095
Creating stack named: parallelcluster-test-2095
Status: parallelcluster-test-2095 - CREATE_COMPLETE
MasterPublicIP: <IP_ADDRESS>
ClusterUser: ubuntu
MasterPrivateIP: <IP_ADDRESS>

$ pcluster status test-2095
Status: CREATE_COMPLETE
MasterServer: RUNNING
MasterPublicIP: <IP_ADDRESS>
ClusterUser: ubuntu
MasterPrivateIP: <IP_ADDRESS>
ComputeFleetStatus: RUNNING

$ ssh<EMAIL_ADDRESS>The authenticity of host '<IP_ADDRESS> (<IP_ADDRESS>)' can't be established.
ECDSA key fingerprint is SHA256:ydf94L9I/mIrUD1uKd7gznV+MTyKCymK8WrAv4SRaoY.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '<IP_ADDRESS>' (ECDSA) to the list of known hosts.
Welcome to Ubuntu 18.04.5 LTS (GNU/Linux 5.3.0-1035-aws x86_64)
[...]

36 packages can be updated.
26 updates are security updates.

*** System restart required ***
Last login: Mon Sep 14 23:05:29 2020 from <IP_ADDRESS>

ubuntu@ip-172-31-57-134:~$ uname -r
5.3.0-1035-aws

$ cat /var/log/apt/history.log

[...]

Start-Date: 2020-10-01  17:00:31
Commandline: /usr/bin/unattended-upgrade
Install: linux-aws-5.4-headers-5.4.0-1025:amd64 (5.4.0-1025.25~18.04.1, automatic), linux-image-5.4.0-1025-aws:amd64 (5.4.0-1025.25~18.04.1, automatic), linux-modules-5.4.0-1025-aws:amd64 (5.4.0-1025.25~18.04.1, automatic), linux-headers-5.4.0-1025-aws:amd64 (5.4.0-1025.25~18.04.1, automatic)
Upgrade: linux-headers-aws:amd64 (<IP_ADDRESS>5.34, <IP_ADDRESS>5.10), linux-aws:amd64 (<IP_ADDRESS>5.34, <IP_ADDRESS>5.10), linux-image-aws:amd64 (<IP_ADDRESS>5.34, <IP_ADDRESS>5.10)
End-Date: 2020-10-01  17:02:32

Start-Date: 2020-10-01  17:02:34
Commandline: /usr/bin/unattended-upgrade
Install: linux-headers-4.15.0-118-generic:amd64 (4.15.0-118.119, automatic), linux-modules-4.15.0-118-generic:amd64 (4.15.0-118.119, automatic), linux-image-4.15.0-118-generic:amd64 (4.15.0-118.119, automatic), linux-headers-4.15.0-118:amd64 (4.15.0-118.119, automatic), linux-modules-extra-4.15.0-118-generic:amd64 (4.15.0-118.119, automatic)
Upgrade: linux-headers-generic:amd64 (<IP_ADDRESS>.104, <IP_ADDRESS>.105), linux-image-generic:amd64 (<IP_ADDRESS>.104, <IP_ADDRESS>.105), linux-generic:amd64 (<IP_ADDRESS>.104, <IP_ADDRESS>.105)
End-Date: 2020-10-01  17:05:21kj

[...]

ubuntu@ip-172-31-57-134:~$ sudo reboot
Connection to <IP_ADDRESS> closed by remote host.
Connection to <IP_ADDRESS> closed.

Post-reboot, 5.4.0-1025-aws kernel and  5.4.0-1035-aws lustre
$ ssh<EMAIL_ADDRESS>Welcome to Ubuntu 18.04.5 LTS (GNU/Linux 5.4.0-1025-aws x86_64)
[...]
10 packages can be updated.
0 updates are security updates.

New release '20.04.1 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

Last login: Thu Oct  1 17:14:59 2020 from <IP_ADDRESS>

ubuntu@ip-172-31-57-134:~$ uname -r
5.4.0-1025-aws

ubuntu@ip-172-31-57-134:~$ sudo apt list | grep lustre

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

lustre-client-modules-4.15.0-1054-aws/unknown 2.10.8-1fsx1 amd64
lustre-client-modules-4.15.0-1056-aws/unknown 2.10.8-1fsx1 amd64
lustre-client-modules-4.15.0-1057-aws/unknown 2.10.8-1fsx1 amd64
lustre-client-modules-4.15.0-1058-aws/unknown 2.10.8-1fsx1 amd64
lustre-client-modules-4.15.0-1060-aws/unknown 2.10.8-1fsx1 amd64
lustre-client-modules-4.15.0-1061-aws/unknown 2.10.8-1fsx1 amd64
lustre-client-modules-4.15.0-1062-aws/unknown 2.10.8-1fsx1 amd64
lustre-client-modules-4.15.0-1063-aws/unknown 2.10.8-1fsx1 amd64
lustre-client-modules-4.15.0-1065-aws/unknown 2.10.8-1fsx1 amd64
lustre-client-modules-4.15.0-1066-aws/unknown 2.10.8-1fsx1 amd64
lustre-client-modules-4.15.0-1067-aws/unknown 2.10.8-1fsx3 amd64
lustre-client-modules-4.15.0-1073-aws/unknown 2.10.8-1fsx3 amd64
lustre-client-modules-4.15.0-1077-aws/unknown 2.10.8-1fsx5 amd64
lustre-client-modules-4.15.0-1079-aws/unknown 2.10.8-1fsx5 amd64
lustre-client-modules-4.15.0-1080-aws/unknown 2.10.8-1fsx5 amd64
lustre-client-modules-5.3.0-1017-aws/unknown 2.10.8-1fsx1 amd64
lustre-client-modules-5.3.0-1019-aws/unknown 2.10.8-1fsx1 amd64
lustre-client-modules-5.3.0-1020-aws/unknown 2.10.8-1fsx4 amd64
lustre-client-modules-5.3.0-1023-aws/unknown 2.10.8-1fsx4 amd64
lustre-client-modules-5.3.0-1028-aws/unknown 2.10.8-1fsx5 amd64
lustre-client-modules-5.3.0-1030-aws/unknown 2.10.8-1fsx5 amd64
lustre-client-modules-5.3.0-1032-aws/unknown 2.10.8-1fsx5 amd64
lustre-client-modules-5.3.0-1033-aws/unknown 2.10.8-1fsx5 amd64
lustre-client-modules-5.3.0-1034-aws/unknown 2.10.8-1fsx5 amd64
lustre-client-modules-5.3.0-1035-aws/unknown,now 2.10.8-1fsx5 amd64 [installed]
lustre-client-modules-5.4.0-1025-aws/unknown 2.10.8-1fsx5 amd64
lustre-client-modules-aws/unknown <IP_ADDRESS>5.10 amd64 [upgradable from: <IP_ADDRESS>5.34]
lustre-dev/unknown 2.10.8-1fsx5 amd64
lustre-iokit/unknown 2.10.8-1fsx5 amd64
lustre-source/unknown 2.10.8-1fsx5 all
lustre-tests/unknown 2.10.8-1fsx5 amd64
lustre-utils/unknown,now 2.10.8-1fsx5 amd64 [installed,automatic]

test_2095.txt

Hi Alex,
here is an explanation of the behavior you are experiencing:
The official Ubuntu 18.04 AMI we use as the starting point to build ParallelCluster AMIs has unattended upgrades (https://help.ubuntu.com/community/AutomaticSecurityUpdates) enabled to run once per day.
ubuntu@ip-10-0-0-55:~$ cat /etc/apt/apt.conf.d/20auto-upgrades
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";

While this daily processes takes care of pulling security updates and upgrading the kernel version, the Lustre client package update is skipped due to the default configuration of the allowed origins for unattended upgrades.
ubuntu@ip-10-0-0-55:~$ cat /etc/apt/apt.conf.d/50unattended-upgrades
// Automatically upgrade packages from these (origin:archive) pairs
//
// Note that in Ubuntu security updates may pull in new dependencies
// from non-security sources (e.g. chromium). By allowing the release
// pocket these get automatically pulled in.
Unattended-Upgrade::Allowed-Origins {
    "${distro_id}:${distro_codename}";
    "${distro_id}:${distro_codename}-security";
    // Extended Security Maintenance; doesn't necessarily exist for
    // every release and this system may not have it installed, but if
    // available, the policy for updates is such that unattended-upgrades
    // should also install from here by default.
    "${distro_id}ESMApps:${distro_codename}-apps-security";
    "${distro_id}ESM:${distro_codename}-infra-security";
//    "${distro_id}:${distro_codename}-updates";
//    "${distro_id}:${distro_codename}-proposed";
//    "${distro_id}:${distro_codename}-backports";
};

...

Because of this, if a user reboots the instance after unattended upgrades have pulled a newer kernel version, the kernel gets upgraded while the lustre-client-modules-aws is kept to an older incompatible version.
Here is a dry-run output of the unattended-upgrades program, showing that lustre-client-modules-aws is ignored:
ubuntu@ip-10-0-0-55:~$ sudo unattended-upgrades --dry-run --debug
Initial blacklisted packages:
Initial whitelisted packages:
Starting unattended upgrades script
Allowed origins are: o=Ubuntu,a=bionic, o=Ubuntu,a=bionic-security, o=UbuntuESMApps,a=bionic-apps-security, o=UbuntuESM,a=bionic-infra-security
Using (^linux-image-[0-9]+\.[0-9\.]+-.*|^linux-headers-[0-9]+\.[0-9\.]+-.*|^linux-image-extra-[0-9]+\.[0-9\.]+-.*|^linux-modules-[0-9]+\.[0-9\.]+-.*|^linux-modules-extra-[0-9]+\.[0-9\.]+-.*|^linux-signed-image-[0-9]+\.[0-9\.]+-.*|^linux-image-unsigned-[0-9]+\.[0-9\.]+-.*|^kfreebsd-image-[0-9]+\.[0-9\.]+-.*|^kfreebsd-headers-[0-9]+\.[0-9\.]+-.*|^gnumach-image-[0-9]+\.[0-9\.]+-.*|^.*-modules-[0-9]+\.[0-9\.]+-.*|^.*-kernel-[0-9]+\.[0-9\.]+-.*|^linux-backports-modules-.*-[0-9]+\.[0-9\.]+-.*|^linux-modules-.*-[0-9]+\.[0-9\.]+-.*|^linux-tools-[0-9]+\.[0-9\.]+-.*|^linux-cloud-tools-[0-9]+\.[0-9\.]+-.*|^linux-buildinfo-[0-9]+\.[0-9\.]+-.*|^linux-source-[0-9]+\.[0-9\.]+-.*|^linux-image-[0-9]+\.[0-9\.]+-.*|^linux-headers-[0-9]+\.[0-9\.]+-.*|^linux-image-extra-[0-9]+\.[0-9\.]+-.*|^linux-modules-[0-9]+\.[0-9\.]+-.*|^linux-modules-extra-[0-9]+\.[0-9\.]+-.*|^linux-signed-image-[0-9]+\.[0-9\.]+-.*|^linux-image-unsigned-[0-9]+\.[0-9\.]+-.*|^kfreebsd-image-[0-9]+\.[0-9\.]+-.*|^kfreebsd-headers-[0-9]+\.[0-9\.]+-.*|^gnumach-image-[0-9]+\.[0-9\.]+-.*|^.*-modules-[0-9]+\.[0-9\.]+-.*|^.*-kernel-[0-9]+\.[0-9\.]+-.*|^linux-backports-modules-.*-[0-9]+\.[0-9\.]+-.*|^linux-modules-.*-[0-9]+\.[0-9\.]+-.*|^linux-tools-[0-9]+\.[0-9\.]+-.*|^linux-cloud-tools-[0-9]+\.[0-9\.]+-.*|^linux-buildinfo-[0-9]+\.[0-9\.]+-.*|^linux-source-[0-9]+\.[0-9\.]+-.*) regexp to find kernel packages
Using (^linux-image-5\.3\.0\-1035\-aws$|^linux-headers-5\.3\.0\-1035\-aws$|^linux-image-extra-5\.3\.0\-1035\-aws$|^linux-modules-5\.3\.0\-1035\-aws$|^linux-modules-extra-5\.3\.0\-1035\-aws$|^linux-signed-image-5\.3\.0\-1035\-aws$|^linux-image-unsigned-5\.3\.0\-1035\-aws$|^kfreebsd-image-5\.3\.0\-1035\-aws$|^kfreebsd-headers-5\.3\.0\-1035\-aws$|^gnumach-image-5\.3\.0\-1035\-aws$|^.*-modules-5\.3\.0\-1035\-aws$|^.*-kernel-5\.3\.0\-1035\-aws$|^linux-backports-modules-.*-5\.3\.0\-1035\-aws$|^linux-modules-.*-5\.3\.0\-1035\-aws$|^linux-tools-5\.3\.0\-1035\-aws$|^linux-cloud-tools-5\.3\.0\-1035\-aws$|^linux-buildinfo-5\.3\.0\-1035\-aws$|^linux-source-5\.3\.0\-1035\-aws$|^linux-image-5\.3\.0\-1035\-aws$|^linux-headers-5\.3\.0\-1035\-aws$|^linux-image-extra-5\.3\.0\-1035\-aws$|^linux-modules-5\.3\.0\-1035\-aws$|^linux-modules-extra-5\.3\.0\-1035\-aws$|^linux-signed-image-5\.3\.0\-1035\-aws$|^linux-image-unsigned-5\.3\.0\-1035\-aws$|^kfreebsd-image-5\.3\.0\-1035\-aws$|^kfreebsd-headers-5\.3\.0\-1035\-aws$|^gnumach-image-5\.3\.0\-1035\-aws$|^.*-modules-5\.3\.0\-1035\-aws$|^.*-kernel-5\.3\.0\-1035\-aws$|^linux-backports-modules-.*-5\.3\.0\-1035\-aws$|^linux-modules-.*-5\.3\.0\-1035\-aws$|^linux-tools-5\.3\.0\-1035\-aws$|^linux-cloud-tools-5\.3\.0\-1035\-aws$|^linux-buildinfo-5\.3\.0\-1035\-aws$|^linux-source-5\.3\.0\-1035\-aws$) regexp to find running kernel packages
Checking: cloud-init ([<Origin component:'main' archive:'bionic-updates' origin:'Ubuntu' label:'Ubuntu' site:'us-east-2.ec2.archive.ubuntu.com' isTrusted:True>])
adjusting candidate version: cloud-init=18.2-14-g6d48d265-0ubuntu1
Checking: initramfs-tools ([<Origin component:'main' archive:'bionic-updates' origin:'Ubuntu' label:'Ubuntu' site:'us-east-2.ec2.archive.ubuntu.com' isTrusted:True>])
adjusting candidate version: initramfs-tools=0.130ubuntu3.6
Checking: initramfs-tools-bin ([<Origin component:'main' archive:'bionic-updates' origin:'Ubuntu' label:'Ubuntu' site:'us-east-2.ec2.archive.ubuntu.com' isTrusted:True>])
adjusting candidate version: initramfs-tools-bin=0.130ubuntu3.6
Checking: initramfs-tools-core ([<Origin component:'main' archive:'bionic-updates' origin:'Ubuntu' label:'Ubuntu' site:'us-east-2.ec2.archive.ubuntu.com' isTrusted:True>])
adjusting candidate version: initramfs-tools-core=0.130ubuntu3.6
Checking: libsane-common ([<Origin component:'main' archive:'bionic-updates' origin:'Ubuntu' label:'Ubuntu' site:'us-east-2.ec2.archive.ubuntu.com' isTrusted:True>])
adjusting candidate version: libsane-common=1.0.27-1~experimental3ubuntu2.3
Checking: libsane1 ([<Origin component:'main' archive:'bionic-updates' origin:'Ubuntu' label:'Ubuntu' site:'us-east-2.ec2.archive.ubuntu.com' isTrusted:True>])
adjusting candidate version: libsane1=1.0.27-1~experimental3ubuntu2.3
Checking: lustre-client-modules-aws ([<Origin component:'main' archive:'' origin:'' label:'' site:'fsx-lustre-client-repo.s3.amazonaws.com' isTrusted:True>])
Checking: sane-utils ([<Origin component:'main' archive:'bionic-updates' origin:'Ubuntu' label:'Ubuntu' site:'us-east-2.ec2.archive.ubuntu.com' isTrusted:True>])
adjusting candidate version: sane-utils=1.0.27-1~experimental3ubuntu2.3
Checking: snapd ([<Origin component:'main' archive:'bionic-updates' origin:'Ubuntu' label:'Ubuntu' site:'us-east-2.ec2.archive.ubuntu.com' isTrusted:True>])
adjusting candidate version: snapd=2.45.1+18.04.2
pkgs that look like they should be upgraded:
Fetched 0 B in 0s (0 B/s)
fetch.run() result: 0
blacklist: []
whitelist: []
Removing unused kernel packages: linux-image-4.15.0-117-generic linux-modules-4.15.0-117-generic linux-modules-extra-4.15.0-117-generic
marking linux-image-4.15.0-117-generic for removal
marking linux-modules-4.15.0-117-generic for removal
marking linux-modules-extra-4.15.0-117-generic for removal
Packages that were successfully auto-removed:
Packages that are kept back:
No packages found that can be upgraded unattended and no pending auto-removals

This is due to the fact that the allowed origins configuration does not allow repos with an empty origin and an empty archive field values (Checking: lustre-client-modules-aws ([<Origin component:'main' archive:'' origin:'' label:'' site:'fsx-lustre-client-repo.s3.amazonaws.com' isTrusted:True>]).
Adding ":"; to the Unattended-Upgrade::Allowed-Origins makes it so that unattended upgrades process also tries to update the Lustre client. The downside is that ":"; risks to whitelist additional packages and not only Lustre client.
Unfortunately the fsx-lustre-client-repo does not set any specific value for the optional origin and archive fields which would have allowed a more granular configuration of the Unattended-Upgrade::Allowed-Origins.
We will follow-up on this issue to understand how to properly configure unattended upgrades in order to have FSx client upgraded together with the kernel.

It appears as though this issue has been addressed in version 5.4.1037, as the repo now includes an origin and suite:
"AWS-FSx-for-Lustre:stable"

It appears as though this issue has been addressed in version 5.4.1037, as the repo now includes an origin and suite:
"AWS-FSx-for-Lustre:stable"

Hi, AWS ParallelCluster v2.10.2 is released and contains fix for this issue.
Closing the issue now, please feel free to reopen if there is any question. Thank you!


transfer RxVision to RxSwiftCommunity

https://github.com/maxvol/RxVision

[x] replace copyright with "Copyright (c) RxSwiftCommunity" in code
[x] replace copyright in README
[x] replace copyright in LICENSE
[ ] update the remote URL of the Podspec (if any)
[ ] update CI badge
[ ] update CI settings
[x] transfer repository ownership (once you're a contributor)
[x] fork the repo back to your personal account
[x] add project to https://github.com/RxSwiftCommunity/rxswiftcommunity.github.io
[ ] Add<EMAIL_ADDRESS>as an owner of your project's CocoaPod by using pod trunk add-owner YourPodName<EMAIL_ADDRESS>

done what could be done


it should be equal to 0 !?

0.4 - 0.3 - 0.1 is equal to zero but is true only for Perl6 ?! why PS not return the correct result...and python ?!!
Steps to reproduce
PS> 0.4 - 0.3 - 0.1 -eq 0
False
PS> 0.4 - 0.3 - 0.1
2.77555756156289E-17

PS> perl6

> 0.4 - 0.3 - 0.1 == 0
True
> 0.4 - 0.3 - 0.1
0

PS> python
>>> 0.4 - 0.3 - 0.1 == 0
False
>>> 0.4 - 0.3 - 0.1
2.7755575615628914e-17

Expected behavior
0

Actual behavior
2.77555756156289E-17

Environment data
> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      6.1.0
PSEdition                      Core
GitCommitId                    6.1.0
OS                             Microsoft Windows 6.3.9600
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

Common problem with floating-point arithmetic.
Computers don't typically represent numbers in true base 10 that we're accustomed to. It's to inefficient to keep track of and usually not significant enough to worry about. They use binary floating-point numbers to approximate a large number space without wasting a ton of memory on the value.
This isn't really the place to talk about it in full, but there are plenty of proper write-ups on the Internet, if you want to look one up. Suffice it to say that, just like how in base 10 we have a huge issue properly representing the value of 1/3 in decimal notation, computers have a huge issue properly representing some more "normal" fractions in their typical base 2 numerals. They only have finite decimal places, so if we give them a number they cannot completely represent (due to it having infinitely repeating digits in base 2) the value they give us back will not be completely accurate.
In PowerShell, at least, you can use decimal numerals instead to use a more "accurate" depiction of the value:
PS> 0.4d - 0.3d - 0.1d
0.0

This takes up more memory and the slight differences aren't typically worth the extra memory to worry about. The value you get back with the standard floating point calculation is not zero, but is for many intents and purposes more or less the same.

Brief depiction of why this is an issue:
0.4 = 4/10 = 2/5
in base 2:
10/101 = 0.01001001... (repeating forever)

A number we can represent with 0.4 in base 10 has infinite digits in binary.


The notification and email display toggle still doesn't work properly

@rudietuesdays @harumhelmy  I'm still having issues with the toggles on the profile settings. When I activate/deactivate one it triggers the other.

@dasaderi I haven't been able to reproduce so far, but I have noticed there is a slight visual bug that causes the toggles to flicker colors but not actually change their position (but it sure looks to me like they toggle if I'm not keeping close track, I've toggled them like a hundred times now and keep fooling myself but I think it's not actually toggling). I'm going to look into that, is it possible that you're seeing the same optical illusion?

It is definitely possible. I can share my screen at our call.

Yes, it's an illusion issue.

This is a funny one! It's happening because, for a split second, the button is getting disabled while the PUT mutate is causing a reload. In short, it's not actually toggling back and forth, but varying to a different shade of gray that's supposed to signify that the button is disabled. Because this request happens so quickly and it's more visually confusing to the user to have the disabled button, I removed this from the component. Fix is up on staging and hopefully the visual issue is gone @dasaderi @jheretic @harumhelmy !

Thank you so much @rudietuesdays!


core_date: dumb little script so I can stop doing math

Compute coreos version for a date or the date of a coreos version.
Arguments are passed to date except for -v which takes an optional
version value and converts it to a date. -v must be the first arg.
$ ./core_date
945
$ ./core_date -d wed
947
$ ./core_date -v
Fri Jan 29 00:00:00 UTC 2016
$ ./core_date -v +%D
01/29/16
$ ./core_date -v 1000
Sun Mar 27 00:00:00 UTC 2016
$ ./core_date -v 1000 +%D
03/27/16

lgtm, but maybe some equivalent functionality should live in https://github.com/coreos/mantle/blob/master/sdk/version.go#L93 too

at the very least that function probably will grow a time argument at some point.


[SPARK-29470][BUILD] Update plugins to latest versions

What changes were proposed in this pull request?
This PR updates plugins to latest versions.
Why are the changes needed?
This brings bug fixes like the following.

https://issues.apache.org/jira/projects/MCOMPILER/versions/12343484 (maven-compiler-plugin)
https://issues.apache.org/jira/projects/MJAVADOC/versions/12345060 (maven-javadoc-plugin)
https://issues.apache.org/jira/projects/MCHECKSTYLE/versions/12342397 (maven-checkstyle-plugin)
https://checkstyle.sourceforge.io/releasenotes.html#Release_8.25 (checkstyle)
https://checkstyle.sourceforge.io/releasenotes.html#Release_8.24 (checkstyle)

Does this PR introduce any user-facing change?
No.
How was this patch tested?
Pass the Jenkins building and testing with the existing code.

Test build #112071 has started for PR 26117 at commit 278b8f8.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/17073/
Test PASSed.

Test build #112074 has started for PR 26117 at commit 065262e.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/17075/
Test PASSed.

Test build #112071 has finished for PR 26117 at commit 278b8f8.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/112071/
Test PASSed.

Test build #112074 has finished for PR 26117 at commit 065262e.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/112074/
Test PASSed.

Hi, @viirya . Could you review this, please?

Thank you so much for review and approval, @viirya !
Merged to master.


update table file def po external

Coverage decreased (-5.2%) to 60.069% when pulling cb1212e99fe7201e64f6966ab85be1ec0ea50b95 on indriHutabalian:dev into 87e53fe0c39b38c9498afd8cd189bc712c6e1f1c on danliris:dev.

Coverage decreased (-0.03%) to 65.251% when pulling 5e0b0225975bdf64d5c50f5a9afee946e978157e on indriHutabalian:dev into 87e53fe0c39b38c9498afd8cd189bc712c6e1f1c on danliris:dev.

Coverage increased (+0.009%) to 65.291% when pulling 1474e2040d2a6b9f8226ae258f0e64d0c5c732fb on indriHutabalian:dev into 87e53fe0c39b38c9498afd8cd189bc712c6e1f1c on danliris:dev.


Unable to parse ENS NameRegistered event

Hi! First of all, love the lib. Thanks for taking the time to work on it!
Issue
I can't seem to get log parsing for the ENS NameRegistered event to work. I suspect it's because of the indexed keyword.
Here's the contract source and here's a snippet referencing the event of my interest:
event NameRegistered(string name, bytes32 indexed label, address indexed owner, uint cost, uint expires);

Copying the event source string straight from solidity:
package main

import (
	"fmt"
	"math/big"

	"github.com/ethereum/go-ethereum/common"
	"github.com/ethereum/go-ethereum/core/types"

	"github.com/lmittmann/w3"
)

func main() {
	// from https://etherscan.io/tx/0xbba96a6bc0c49cfb4607c02670affffad64a58cd7789d6843a774e5fcd851c4a#eventlog
	l := &types.Log{
		Address: w3.A("0x283Af0B28c62C092C9727F1Ee09c02CA627EB7F5"),
		Topics: []common.Hash{
			w3.H("0xca6abbe9d7f11422cb6ca7629fbf6fe9efb1c621f71ce8f02b9f2a230097404f"),
			w3.H("0x4e59ffc7ae105a2b19f7f29b63e9f9c5ac28e27bce744a330804c6a89269cec0"),
			w3.H("0x000000000000000000000000bd08f39b2523426cc1d6961e2d6a9744b3b432b5"),
		},
		Data: w3.B("0x000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000165a7d3a3e48ad0000000000000000000000000000000000000000000000000000000066e4d0a50000000000000000000000000000000000000000000000000000000000000009656c666172657373690000000000000000000000000000000000000000000000"),
	}

	e := w3.MustNewEvent("NameRegistered(string name, bytes32 label, address owner, uint cost, uint expires)")
	args := []any{new(string), new(common.Hash), new(common.Address), new(big.Int), new(big.Int)}
	err := e.DecodeArgs(l, args...)
	if err == nil {
		fmt.Println(args)
	} else {
		fmt.Println(err)
	}
}

Produces:
panic: w3: invalid ABI: unexpected token ' ', want ')', ',' or EOF

After removing indexed keywords from MustNewEvent call
e := w3.MustNewEvent("NameRegistered(string name, bytes32 label, address owner, uint cost, uint expires)")

Produces:
abi: cannot marshal in to go slice: offset<PHONE_NUMBER>6938938518729653100551098276713131344231382706165141882278127455968 would go over slice boundary (len=224)

Any ideas what the issue could be?

This is an unfortunate bug with no quick fix. Log topics and data are concatenated before decoding. While this allows easy parsing of e.g. Transfer events that have different attributes indexed or not indexed, it breaks when non-indexed attributes come in front of indexed attributes.
A fix should recognize indexed attributes and probably give up the current behavior of trying to decode events ignoring the info  if an attribute is indexed or not. PRs are welcome.

I see, thanks for clarifying!
At the moment I am just parsing the raw bytes which fits my needs for the particular usecase but once I have some more time to look into it, I'll consider working on the PR 👍

Just FYI - I noticed this also happens with method decoding in certain cases, for example in decoding this transaction
package main

import (
	"fmt"
	"math/big"

	"github.com/ethereum/go-ethereum/common"
	"github.com/ethereum/go-ethereum/core/types"

	"github.com/lmittmann/w3"
)

func main() {
	// from https://etherscan.io/tx/0xe7ffef22d323c68194757f31dea92505cb1948f8d1005c7e0400d36aa774cc96
	i := []byte("0x6dc00dc000000000000000000000000000000000000000000000000000000000000000bc00000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a53747265657420617274000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003415254000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002f516d5a5479596b53524d4c484566687141425174396f6461654d616e6366666a754376704268386868614c796a482f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024e41000000000000000000000000000000000000000000000000000000000000")

	fn := w3.MustNewFunc("_clone(uint256 maxTokens, uint256 nftPrice, string name, string symbol, bool burnable, uint256 maxMintsPerWallet, string[] URIs_, uint96 royaltyPercentage)", "")

	args := []any{
		new(big.Int),
		new(big.Int),
		new(string),
		new(string),
		new(bool),
		new(big.Int),
		new([]string),
		new(big.Int),
	}

	err := fn.DecodeArgs(i, args...)
	if err == nil {
		fmt.Println(args)
	} else {
		fmt.Println(err)
	}
}

No, the issue here is i := []byte("0x6d.... You can use the helper w3.B("0x6d...") to correctly convert a hex string to a byte slice.


Bug: Definition-order matters

This works:
(def x (fn intern int ((a int)) a))
(def x (macro intern (a) a))

This doesn't work
(def x (macro intern (a) a))
(def x (fn intern int ((a int)) a))

Thanks, this has now been fixed.

You fixed it the wrong way :)
now both don't work, but I'd prefer if both work, so overloading a macro would be similar to specializing c++ templates.

Ugh, indeed :(.  I'll fix this properly soon.

Fixed, correctly this time.

I found some example, where this still causes problems, see following
https://github.com/porky11/dale-extensions/blob/master/src/util.dt#L80
defc-multi (this helps for defining a single overloaded function for multiple extern-c functions, documentation may be added later, but isn't important anyway)
if the version with 3 arguments and rest is defined first, it will produce endless-loop printing some error message, if the version with 2 arguments is defined first, it won't work when called with 3 arguments


[MetricsAdvisor] AAD tests are failing

All AAD tests have started consistently failing out of nowhere:
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=1042726&view=logs&j=6bc677fc-eaaa-5aa2-d61c-5bfd25cc27a2&t=3856db8e-a7e7-52ca-f9f7-3b5d40e2b249&l=5249
Seems to be a service-side issue since other languages are seeing the same. Tests need to be re-enabled when the issue is solved.

Given the age of this issue, closing this as stale.  If tests are still failing, please file a new issue.


[ownership] Do not print out ownership convention on BBArgs once ownership is stripped.

[ownership] Do not print out ownership convention on BBArgs once ownership is stripped.
rdar://31521023

@swift-ci test and merge

These failures are not related to my change.

(The OS X failures are the resilience tests that are XFAILed and the linux is a libdispatch test).

@swift-ci smoke test and merge


Fixed calculation of total used storage when using Storage Bus

Now the getTotalItemStorage and getTotalFluidStorage take in account the Storage Bus connected inventory or tank.

Build and tests went fine, you can ignore the sonar cloud code analysis since I configured it wrong.
Thanks for the PR!

Thanks


brown field deployment - Add session hosts in a different region

can we add support for adding session hosts in a different region for brown field deployment?
Scenario - Deploy AVD management plane in one region. Then deploy session hosts in multiple regions.

@mpchen thanks for the feedback, we are investigating.

@swathibhat1 let's created this item in the features backlog to time the work on it.


use output parsers in agents

The use of the output parser for the ConversationalChatAgent is hard to use with a streaming LLM.  How would you propose to tackle this?
I can parse it streaming when I prompt the LLM to output in this format:
"action here"\n"action-input here"\n
But I like the idea of working with JSON. LLMs seem to understand that and format it correctly.
@hwchase17 @agola11
If you have an idea how to approach it, I'm happy to provide a PR for it.


Can't restart my app with the latest JDK, regression in 21.02_13

Please provide a brief summary of the bug
Hi there,
my Java app experienced a very weird regression when switching from JDK
OpenJDK21U-jdk_x64_windows_hotspot_21.0.1_12
to
OpenJDK21U-jdk_x64_windows_hotspot_21.0.2_13
This small snippet should start a third party software (in this case Notepad++.exe but it's just an example) and after 30 seconds, close the java app that launched it.
public static void main(String... args) throws IOException {
        String[] cmdToRunUsingArgs = {"cmd.exe", "/C", "C:\\Program Files\\Notepad++\\notepad++.exe"};
        Runtime.getRuntime().exec(cmdToRunUsingArgs);
        Executors.newSingleThreadScheduledExecutor().schedule(() -> {
            System.exit(0);
        }, 30, TimeUnit.SECONDS);
    }

It works well with all previous JDK versions but it stopped working from java 21.0.2 and later.
With JDK 21.0.1, the program launches the third party app correcly, after 30 seconds, it kills itself by leaving the third app running.
With JDK 21.0.2, the program launches the third party app correcly, after 30 seconds, it kills itself AND the third party app.
this makes even impossible to restart a java app from the app itself.
Did you test with the latest update version?
yes, with previous JDK it works well.

Please provide steps to reproduce where possible
Use JPackage to create a windows executable and run that program from the EXE created by jpackage.
Expected Results
Program should start the third party app and then close itself after 30 seconds by leaving the third party app running.
Actual Results
Program start the third party app but after 30 seconds it kills both the third party app and itself.
What Java Version are you using?
$ java -version
openjdk version "21.0.2" 2024-01-16 LTS
OpenJDK Runtime Environment Temurin-21.0.2+13 (build 21.0.2+13-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.2+13 (build 21.0.2+13-LTS, mixed mode, sharing)

What is your operating system and platform?
Windows 11
How did you install Java?
Eclipse Temurin MSI installer
Did it work before?
yes it worked before.
Did you test with other Java versions?
Yes, with previous version  21.0.1_12 it works well

I filled a bug report on the Oracle side, they where able to reproduce it and marked it as P3.
https://bugs.openjdk.org/browse/JDK-8325203


Use of deprecated sha1

Hi,
in the pkcs7 implementation, function NewSignedData in sign.go defaults to using SHA-1 as digest algorithm.
https://github.com/smallstep/pkcs7/blob/5e2c6a136dfaa418340bb4a7eb0d0c7421d4934c/sign.go
// NewSignedData takes data and initializes a PKCS7 SignedData struct that is
// ready to be signed via AddSigner. The digest algorithm is set to SHA1 by default
// and can be changed by calling SetDigestAlgorithm.
func NewSignedData(data []byte) (*SignedData, error) {
	content, err := asn1.Marshal(data)
	if err != nil {
		return nil, err
	}
	ci := contentInfo{
		ContentType: OIDData,
		Content:     asn1.RawValue{Class: 2, Tag: 0, Bytes: content, IsCompound: true},
	}
	sd := signedData{
		ContentInfo: ci,
		Version:     1,
	}
	return &SignedData{sd: sd, data: data, digestOid: OIDDigestAlgorithmSHA1}, nil
}

However, the use of sha1 is unadvisable according to NIST, and implementations should migrate to SHA-2 or SHA-3 as soon as possible (source: https://www.nist.gov/news-events/news/2022/12/nist-retires-sha-1-cryptographic-algorithm)
Is there a good reason this implementation defaults to SHA-1? Alternatively, would you accept a PR updating the default to SHA-2?

Hi @nicopal, thank you for opening this issue. The reason it currently (still) defaults to using SHA1 is for backwards compatibility. If we were to change the default algorithm now, it's possible that systems importing the package do no longer work as a while.
The current API for providing this type of setting in pkcs7 is lacking, but it might be possible to do something using a package level global, so that it doesn't break systems, and is an intentional change on the importer side. It would be similar to the ContentEncryptionAlgorithm (which defaults to EncryptionAlgorithmDESCBC, another default we want to change). A package level global is not ideal though, and we've been thinking about more improvements along the lines of default algorithms and potentially backwards incompatible changes, so that'll happen at some point.

Hi @hslatman thank you for looking into this. I suspected backward compatibility was the culprit (it's common). My initial thought was that perhaps NewSignedData could still support SHA1 but at least not default to it. However you have a better view of the constraints/requirements that others have towards this library and exposing the package global so that the default of SetDigestAlgorithm can be changed seems like a good solution.


funny chars in passwords

One of these causes problems, not sure which: ! % $ [ £

Related to #2176.


OpenAPI deserialization  issue

When I'm trying to deserialize OpenAPI object from the following yaml:
openapi: "3.0.1"
components:
  schemas:
    suppl:
      required:
      - "orderNumber"
      type: "object"
      properties:
        extension:
          type: "object"
          additionalProperties:
            type: "string"
        orderNumber:
          minimum: 1
          type: "number"
          description: "The number"

I'm getting next error:
Caused by: java.lang.IllegalArgumentException: additionalProperties must be either a Boolean or a Schema instance
at io.swagger.v3.oas.models.media.Schema.setAdditionalProperties(Schema.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:139)
Can you help me to know what is wrong in yaml or is there smth wrong in deserialization process? extension - map(string to string), followed your API: https://swagger.io/docs/specification/data-models/dictionaries/
I deserialize using Object Mapper from com.fasterxml.jackson.dataformat:jackson-dataformat-yaml library. Object mapper settings:
ObjectMapper objectMapper =                 new ObjectMapper(new YAMLFactory().disable(YAMLGenerator.Feature.WRITE_DOC_START_MARKER));         objectMapper.enable(JsonParser.Feature.ALLOW_UNQUOTED_CONTROL_CHARS);         objectMapper.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);         objectMapper.enable(DeserializationFeature.READ_UNKNOWN_ENUM_VALUES_AS_NULL);

This seems not to be reproducible with the provided mapper Yaml.mapper(), please use it (you can customize further if you need it for some reason) instead.
Closing ticket, please reopen if you're still experiencing issues

Still reproducible with Yaml.mapper() from io.swagger.v3.core.util.Yaml library(2.1.1 version)

I still cannot reproduce, the following code works fine with 2.1.1 version
        String spec = "openapi: \"3.0.1\"\n" +
                "components:\n" +
                "  schemas:\n" +
                "    suppl:\n" +
                "      required:\n" +
                "      - \"orderNumber\"\n" +
                "      type: \"object\"\n" +
                "      properties:\n" +
                "        extension:\n" +
                "          type: \"object\"\n" +
                "          additionalProperties:\n" +
                "            type: \"string\"\n" +
                "        orderNumber:\n" +
                "          minimum: 1\n" +
                "          type: \"number\"\n" +
                "          description: \"The number\"";

        OpenAPI openAPI = Yaml.mapper().readValue(spec, OpenAPI.class);
        Yaml.prettyPrint(openAPI);

Thanks, this is working for me!


SIGINT is not correctly handled in Windows

in Windows, CTRL+C doesn't terminate this script:
#!/usr/bin/env python

import asyncio

try:
    asyncio.get_event_loop().run_forever()
except KeyboardInterrupt:
    asyncio.get_event_loop().stop()

also see #191

Is there any news or known workarounds for this? I'm having the same problem

@lukkm Here is a workaround: https://stackoverflow.com/questions/24774980/why-cant-i-catch-sigint-when-asyncio-event-loop-is-running/24775107#24775107


[Windows] Fix removed Windows node to re-add after restarting

Problem:
Add back after restarting the removed Windows node
Solution:
Return ErrNodeOrClusterNotFound error if could not found the node or cluster
Issue:
https://github.com/rancher/rancher/issues/20496
result:

Windows agent will stop itself after removing from UI:

Restart the removed agent:

LGTM


Added the supported metering variable to PlayLayer

From my findings, legacy levels are indicated if this bool is false. If it is, GD will default to extracting the metering from the AudioEffectsLayer rather than using GameSoundManager.
I say this is likely a way of indicating a legacy mode because this can be found in all levels which were made before 2.1.

Quickly adding this for documentation sake. The red dashes lines are this calls in PlayLayer::updateVisibility


[CLI]: wandb: Network error (ReadTimeout), entering retry loop.

Describe the bug

Hello, I got errors when I wandb sync the offline runs: wandb: Network error (ReadTimeout), entering retry loop.. I also tried to start a new online run and got the same errors. I tried many times yesterday and today, but no one successed. Please help me.

wandb: Network error (ReadTimeout), entering retry loop.
Problem at: main.py 162 init_wandb..
wandb: ERROR Run initialization has timed out after 90.0 sec.
wandb: ERROR Please refer to the documentation for additional information: https://docs.wandb.ai/guides/track/tracking-faq#initstarterror-error-communicating-with-wandb-process-
Traceback (most recent call last):
  File "main.py", line 185, in <module>
    main()
  File "main.py", line 173, in main
    cfg.wandb_run = init_wandb(cfg)
  File "main.py", line 162, in init_wandb
    run = wandb.init(name=name,
  File "/root/miniconda3/envs/fl/lib/python3.8/site-packages/wandb/sdk/wandb_init.py", line 1189, in init
    raise e
  File "/root/miniconda3/envs/fl/lib/python3.8/site-packages/wandb/sdk/wandb_init.py", line 1170, in init
    run = wi.init()
  File "/root/miniconda3/envs/fl/lib/python3.8/site-packages/wandb/sdk/wandb_init.py", line 785, in init
    raise error
wandb.errors.CommError: Run initialization has timed out after 90.0 sec.
Please refer to the documentation for additional information: https://docs.wandb.ai/guides/track/tracking-faq#initstarterror-error-communicating-with-wandb-process-

Additional Files
No response
Environment
WandB version: 0.15.12
OS:  Ubuntu 18.04.5
Python version: 3.8.16
Versions of relevant libraries:
Additional Context
No response

Hello @lhq12 ,
Happy to help. Could you tell us more about what you are doing please. In my understanding , initially you are using wandb synch for the offline runs then encountered an error. Kindly provide the following:

Screen recording of the issue, the process and the error
snippet of the code
“full” error stack trace along with debug.log and debug-internal.log files for us to investigate.

To collect the debug.log files:

Go to the run directory , example: https://wandb.ai/sydholl/basic-intro/runs/jl1h82y1/files?workspace=user-sydholl "run-xxx" (where xxx is the run name)
Under "files" and "logs" repos. For instance: "./files/output.log", "./logs/debug.log", "./logs/debug-internal.log".

Hi,
Thank you for the. I've been monitoring my experiments using wandb in "offline mode," and now I'm attempting to sync the logs to the wandb cloud as usual, but unfortunately, it's not working. Despite my consistent trying in recent days, the process consistently encounters a network error and gets stuck.

Here is the debug log:
debug.log

Here is the debug.cli.root.log:
tmpdebug-cli.root.log
And I can ping api.wandb.ai successfully.

Hello @lhq12 ,
Thank you for providing these information. Could you also provide the sample code that you are running please.

Here is the code related to wandb:
`def init_wandb(args):
print(f'-----------------init_wandb:{args.exp_tag}-----------------')
project = args.pj_name
name = args.exp_tag # key hyperparams
# tags
alg = f'alg={args.algorithm}'
bs = f'bs={args.batch_size}'
ds = f'ds={args.dataset}'
if args.algorithm == 'alone':
    tags = [alg, bs, ds]
else:
    agg = f'agg={args.agg}'
    st = f'st={args.split_type}'
    nc = f'nc={args.num_clients}'
    nl = f'nl={args.num_labels}'
    net = f'net={args.net}'
    tags = [agg, alg, bs, ds, st, nc, nl, net]

run = wandb.init(name=name,
                tags=tags,
                config=args.__dict__,
                project=project,
                mode="offline",
        )
return run

cfg.run = init_wandb(cfg)
...
cfg.run.log({key, value}, step)
`
And yesterday, I synced the offline run successfully after downloading them from the cloud server to the local environment(with Windows OS). However, attempting to sync them directly on the cloud server still resulted in failure.

Hi @lhq12 could you clarify your statement synced the offline run successfully after downloading them from the cloud server to the local environment(with Windows OS).   When users run into network errors, this typically means that they are behind a firewall/proxy that is prevent communication with wandb or have outdated SSL certs, more on this here

WandB Internal User commented:
lhq12 commented:
Hi,
Thank you for the. I've been monitoring my experiments using wandb in "offline mode," and now I'm attempting to sync the logs to the wandb cloud as usual, but unfortunately, it's not working. Despite my consistent trying in recent days, the process consistently encounters a network error and gets stuck.

WandB Internal User commented:
lhq12 commented:
Here is the debug log:
debug.log

WandB Internal User commented:
JoanaMarieL commented:
Hello @lhq12 ,
Thank you for providing these information. Could you also provide the sample code that you are running please.

Thank you @MBakirWB.
I attempted to sync again just now, and to my surprise, it was successful.

Hi @lhq12 ,
Great to hear that you have synced it successfully. May we know what did you follow specifically? Thanks :)

Thank you!
I haven't done anything. I simply made a new attempt.

@lhq12 , alright for now we will mark this as resolved and feel free to reach us out again and will gladly help!


Update Frontend Matchers configuration documentation

Current documentation for Frontend Matchers states that:

Separate multiple rule values by , (comma) in order to enable ANY semantics (i.e., forward a request if any rule matches). Does not work for Headers and HeadersRegexp.

Looking at the code, there is nothing to indicate that this is indeed the case.  Can someone from the maintainers verify that this is indeed how it currently function (should function) and update the documentation if it's in error?

That works.
https://github.com/containous/traefik/blob/5313922bb73e059fb9146f0be06108a9db0c3b36/server/rules.go#L178-L180


Stopping debugging an extension doesn't close dev host after opening a folder

VSCode Version: 1.0.1-alpha
OS Version: Windows 10

Steps to Reproduce:

Create a Code extension
Debug launch extension
If debug opens a new window with a folder already open, close the folder in the host and restart debugging
Open a folder in the host
Stop debugging in the main window

Actual:
Dev host Code window does not close after pressing stop.

Can no longer reproduce.


Fixed cvat_ui image build

Fixed cvat_ui image build
resolve #2538
Motivation and context
Time to time the node-sass package cannot be installed properly for a reason(cannot download prebuilt binary linux_musl-x64-83_binding.node for example), also there is the error message for the optional dependency installation - fsevents.
How has this been tested?
Manually
Checklist

[x] I submit my changes into the develop branch
[ ] I have added description of my changes into CHANGELOG file
- [ ] I have updated the documentation accordingly
- [ ] I have added tests to cover my changes
[x] I have linked related issues (read github docs)
- [ ] I have increased versions of npm packages if it is necessary (cvat-canvas,
cvat-core, cvat-data and cvat-ui)

License

[x] I submit my code changes under the same MIT License that covers the project.
Feel free to contact the maintainers if that's a concern.
[x] I have updated the license header for each file (see an example below)

# Copyright (C) 2020 Intel Corporation
#
# SPDX-License-Identifier: MIT

Coverage remained the same at 61.792% when pulling 2030172a3d99e37c98d5321d8b60101dea6d1025 on az/ui_build into 473d69991cf800ec1141dac18ee718dce3225fd7 on develop.


Firebase DB setup

Hi Sir,
I have downloaded this project for learning purpose. wanted to know if we need to create the tables in Firebase explicitly or it will get created automatically once we setup the firebase and run the application. i have created the clients table though as mentioned in the readme file. But I am still facing issue in loading the application and seeing below error.

Let me know.
Thanks and regards,
Kunal

I think this error is happening in @agm/core package. Since I didn't used any map's in this project. Can u try removing @agm/core dependency in package.json and try ?

@kpriyadarshi pull the current update and try...

Thanks a lot. this issue is fixed. I am not able to connect to firebase database. can u send me the firebase db structure. i am getting error as below. I am not able to apply the firebase rule provided in he readme file. though i have applied my own rules and tested in the firebase console but still seeing the below error.

i can test using the rules test tool

Thanks and regards,
Kunal

@kpriyadarshi try to use RealtimeDatabase. I think your'e pointing the Cloud Firestore. Sorry for the confusion. 👍 Thanks for pointing, I need to update the README file, so others don't face the same issue.

e21c83cfaf22c1c138b22d71b109cc5d2c255ad5 - Updated Documentation.

Thanks for the update.
Now i am seeing the below error, when navigating to products page. Should i create the products table too? Let me know.

Thanks,
Kunal

I have question which is bothering me, you have not mentioned about the db creation and the structure of the database to be used. Would the db in firebase gets created as soon as we run the application or we have to construct it manually.
Thanks,
Kunal

Hi,
I was able to fix all the issues, which i have posted above. The last problem i m facing is in deployment. It is telling "unexpected rules format" error.
i have added a database.rules.json in project and added the below code.
{
"rules": {
".read": true,
".write": true
}
}
Still it is throwing the same error while deploying. Let me know if you have any input on that.
Thanks and regards,
Kunal

I have question which is bothering me, you have not mentioned about the db creation and the structure of the database to be used. Would the db in firebase gets created as soon as we run the application or we have to construct it manually.
Thanks,
Kunal

Firebase Database stores data in JSON format, so whatever the structure. the structure is maintained by the client Entities. ex: Product, User, etc.,
to know more about firebase realtime db kindly follow the documentation. Firebase Realtime Database

Hi,
I was able to fix all the issues, which i have posted above. The last problem i m facing is in deployment. It is telling "unexpected rules format" error.
i have added a database.rules.json in project and added the below code.
{
"rules": {
".read": true,
".write": true
}
}
Still it is throwing the same error while deploying. Let me know if you have any input on that.
Thanks and regards,
Kunal

Need more details., Can u send some error screenshots.

I need small help I am trying to store image in firebase storage and
retrieve to my project but it storing but not getting in my project help me
I strucked here
On Sat, 23 May 2020, 00:18 Mohammed Ismail<EMAIL_ADDRESS>wrote:

Hi,
I was able to fix all the issues, which i have posted above. The last
problem i m facing is in deployment. It is telling "unexpected rules
format" error.
i have added a database.rules.json in project and added the below code.
{
"rules": {
".read": true,
".write": true
}
}
Still it is throwing the same error while deploying. Let me know if you
have any input on that.
Thanks and regards,
Kunal
Need more details., Can u send some error screenshots.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ikismail/Angular-ShoppingCart/issues/59#issuecomment-632855225,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANANKOW2ZUYEORRGKRR2BKDRS3CHRANCNFSM4NDLLN3A
.

I need small help I am trying to store image in firebase storage and retrieve to my project but it storing but not getting in my project help me I strucked here
…
On Sat, 23 May 2020, 00:18 Mohammed Ismail, @.***> wrote: Hi, I was able to fix all the issues, which i have posted above. The last problem i m facing is in deployment. It is telling "unexpected rules format" error. i have added a database.rules.json in project and added the below code. { "rules": { ".read": true, ".write": true } } Still it is throwing the same error while deploying. Let me know if you have any input on that. Thanks and regards, Kunal Need more details., Can u send some error screenshots. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#59 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANANKOW2ZUYEORRGKRR2BKDRS3CHRANCNFSM4NDLLN3A .

Check your Firebase Storage rules, you need to allow users to read and write data's from the storage

Here is some Reference:

Firebase Cloud Storage with Angular
Retrieve Images from firebase storage using Angular 7

Check your Firebase Storage rules, you need to allow users to read and write data's from the storage

Here is some Reference:

Firebase Cloud Storage with Angular

Retrieve Images from firebase storage using Angular 7

Checkout the reference mentioned, this will help you how to retrieve data from Firebase cloud storage.

index.html

<input type='file' #image>
upload

component.ts
@ViewChild('image') image : ElementRef
addNewProduct(f : NgForm) {
let image = (this.image.nativeElement as HTMLInputElement).files[0]
this.ps.addNewProductImage(image)
// console.log(f.value);
console.log((this.image.nativeElement as HTMLInputElement).files[0])
}
component.service.ts
addNewProductImage(image: File) {
const ref = firebase.storage().ref('productImages/' + image.name)
ref.put(image).then (() => {
ref.getDownloadURL().then((url) => { this.image = url }); ----> here i am
getting error : Property 'image' does not exist on type 'ProductsService'.
ts(2339)
console.log('IREF IS ' + ref)
console.log('IMAGEURL IS ' + this.image) ----> here i am getting error
: Property
'image' does not exist on type 'ProductsService'.ts(2339)
});
}
this is the problem how can i fix it and retrive my data  successfully
storing fiebase storage but not ading to realmtime database and retrive
back to project template
On Sat, May 23, 2020 at 1:05 AM Mohammed Ismail<EMAIL_ADDRESS>wrote:

I need small help I am trying to store image in firebase storage and
retrieve to my project but it storing but not getting in my project help me
I strucked here
… <#m_-273977295035603592_>
On Sat, 23 May 2020, 00:18 Mohammed Ismail, @.***> wrote: Hi, I was
able to fix all the issues, which i have posted above. The last problem i m
facing is in deployment. It is telling "unexpected rules format" error. i
have added a database.rules.json in project and added the below code. {
"rules": { ".read": true, ".write": true } } Still it is throwing the same
error while deploying. Let me know if you have any input on that. Thanks
and regards, Kunal Need more details., Can u send some error screenshots. —
You are receiving this because you are subscribed to this thread. Reply to
this email directly, view it on GitHub <#59 (comment)
https://github.com/ikismail/Angular-ShoppingCart/issues/59#issuecomment-632855225>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANANKOW2ZUYEORRGKRR2BKDRS3CHRANCNFSM4NDLLN3A
.
Check your Firebase Storage rules, you need to allow users to read and
write data's from the storage
[image: image]
https://user-images.githubusercontent.com/17190913/82703146-036eb780-9c91-11ea-95e9-8bb3ffc42576.png
Here is some Reference:

Firebase Cloud Storage with Angular
https://medium.com/codingthesmartway-com-blog/firebase-cloud-storage-with-angular-394566fd529
Retrieve Images from firebase storage using Angular 7
https://stackoverflow.com/a/56357834/9640128

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ikismail/Angular-ShoppingCart/issues/59#issuecomment-632878474,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANANKOWBYGAK2ZM53RCSKMLRS3HWLANCNFSM4NDLLN3A
.

Will try tomorrow and let you know.
Regards,
Kunal
On Sat, 23 May, 2020, 12:34 AM Aslam sk<EMAIL_ADDRESS>wrote:

I need small help I am trying to store image in firebase storage and
retrieve to my project but it storing but not getting in my project help me
I strucked here
On Sat, 23 May 2020, 00:18 Mohammed Ismail<EMAIL_ADDRESS>wrote:

Hi,
I was able to fix all the issues, which i have posted above. The last
problem i m facing is in deployment. It is telling "unexpected rules
format" error.
i have added a database.rules.json in project and added the below code.
{
"rules": {
".read": true,
".write": true
}
}
Still it is throwing the same error while deploying. Let me know if you
have any input on that.
Thanks and regards,
Kunal
Need more details., Can u send some error screenshots.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<
https://github.com/ikismail/Angular-ShoppingCart/issues/59#issuecomment-632855225
,
or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/ANANKOW2ZUYEORRGKRR2BKDRS3CHRANCNFSM4NDLLN3A
.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ikismail/Angular-ShoppingCart/issues/59#issuecomment-632862113,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEG5BFKECTNZQQZYAT33YI3RS3EC7ANCNFSM4NDLLN3A
.

index.html <form #f="ngForm" (ngSubmit)="addNewProduct(f)"> <input type='file' #image> upload  component.ts @ViewChild('image') image : ElementRef addNewProduct(f : NgForm) { let image = (this.image.nativeElement as HTMLInputElement).files[0] this.ps.addNewProductImage(image) // console.log(f.value); console.log((this.image.nativeElement as HTMLInputElement).files[0]) } component.service.ts addNewProductImage(image: File) { const ref = firebase.storage().ref('productImages/' + image.name) ref.put(image).then (() => { ref.getDownloadURL().then((url) => { this.image = url }); ----> here i am getting error : Property 'image' does not exist on type 'ProductsService'. ts(2339) console.log('IREF IS ' + ref) console.log('IMAGEURL IS ' + this.image) ----> here i am getting error : Property 'image' does not exist on type 'ProductsService'.ts(2339) }); } this is the problem how can i fix it and retrive my data successfully storing fiebase storage but not ading to realmtime database and retrive back to project template On Sat, May 23, 2020 at 1:05 AM Mohammed Ismail<EMAIL_ADDRESS>wrote:
…
I need small help I am trying to store image in firebase storage and retrieve to my project but it storing but not getting in my project help me I strucked here … <#m_-273977295035603592_> On Sat, 23 May 2020, 00:18 Mohammed Ismail, @.***> wrote: Hi, I was able to fix all the issues, which i have posted above. The last problem i m facing is in deployment. It is telling "unexpected rules format" error. i have added a database.rules.json in project and added the below code. { "rules": { ".read": true, ".write": true } } Still it is throwing the same error while deploying. Let me know if you have any input on that. Thanks and regards, Kunal Need more details., Can u send some error screenshots. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#59 (comment) <#59 (comment)>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANANKOW2ZUYEORRGKRR2BKDRS3CHRANCNFSM4NDLLN3A . Check your Firebase Storage rules, you need to allow users to read and write data's from the storage [image: image] https://user-images.githubusercontent.com/17190913/82703146-036eb780-9c91-11ea-95e9-8bb3ffc42576.png Here is some Reference: 1. Firebase Cloud Storage with Angular https://medium.com/codingthesmartway-com-blog/firebase-cloud-storage-with-angular-394566fd529 2. Retrieve Images from firebase storage using Angular 7 https://stackoverflow.com/a/56357834/9640128 — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#59 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANANKOWBYGAK2ZM53RCSKMLRS3HWLANCNFSM4NDLLN3A .

Please share some working prototype with StackBlitz...

Yes thanq bro it's working fine and I am getting another problem while
hosting my website on firebase hosting
Actually I was downloaded github code and it was already hosted but I
edited what I need code after editing I am trying to host it but getting
this error
Help me what  I want to do now this situation
On Sat, 23 May 2020, 01:19 Mohammed Ismail<EMAIL_ADDRESS>wrote:

Check your Firebase Storage rules, you need to allow users to read and
write data's from the storage
[image: image]
https://user-images.githubusercontent.com/17190913/82703146-036eb780-9c91-11ea-95e9-8bb3ffc42576.png
Here is some Reference:

Firebase Cloud Storage with Angular
https://medium.com/codingthesmartway-com-blog/firebase-cloud-storage-with-angular-394566fd529
2.
Retrieve Images from firebase storage using Angular 7
https://stackoverflow.com/a/56357834/9640128
Checkout the reference mentioned, this will help you how to retrieve data
from Firebase cloud storage.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ikismail/Angular-ShoppingCart/issues/59#issuecomment-632886595,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANANKOQFGMXCS5NWEB56LMDRS3JNZANCNFSM4NDLLN3A
.

Yes thanq bro it's working fine and I am getting another problem while hosting my website on firebase hosting Actually I was downloaded github code and it was already hosted but I edited what I need code after editing I am trying to host it but getting this error Help me what I want to do now this situation

I hope this Articles will help you to deploy Angular Apps to firebase hosting.. check whether you did any mistakes..
Firebase Hosting  Reference:

Deploying Angular to firebase-hosting (Medium)
Deploying Angular App to firebase (Alligator)

thanq bro actually i followed mosh Hamedami tutorial and practiced there we
have quantity as items but i want quantity as weight so i am stucked how to
calculate 250 grams, 500 grams price and subtotal and grand total help me
bro
this is Link: https://shoppingcartecom.web.app/
when i click add to cart button showing 1 and 1quantity price but i need
250 or 500 grams and price how can i do that please help me
On Mon, Jun 1, 2020 at 10:57 AM Mohammed Ismail<EMAIL_ADDRESS>wrote:

Yes thanq bro it's working fine and I am getting another problem while
hosting my website on firebase hosting Actually I was downloaded github
code and it was already hosted but I edited what I need code after editing
I am trying to host it but getting this error Help me what I want to do now
this situation
I hope this Articles will help you to deploy Angular Apps to firebase
hosting.. check whether you did any mistakes..
Firebase Hosting Reference:

Deploying Angular to firebase-hosting (Medium)
https://medium.com/@longboardcreator/deploying-angular-6-applications-to-firebase-hosting-b5dacde9c772
Deploying Angular App to firebase (Alligator)
https://alligator.io/angular/deploying-angular-app-to-firebase/

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ikismail/Angular-ShoppingCart/issues/59#issuecomment-636620325,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANANKOVYHWJNKKDO3ULNZTDRUM34FANCNFSM4NDLLN3A
.

while hosting in firebase i am getting this
ERROR in Cannot assign to a reference or variable!      bro
On Mon, Jun 1, 2020 at 10:57 AM Mohammed Ismail<EMAIL_ADDRESS>wrote:

Yes thanq bro it's working fine and I am getting another problem while
hosting my website on firebase hosting Actually I was downloaded github
code and it was already hosted but I edited what I need code after editing
I am trying to host it but getting this error Help me what I want to do now
this situation
I hope this Articles will help you to deploy Angular Apps to firebase
hosting.. check whether you did any mistakes..
Firebase Hosting Reference:

Deploying Angular to firebase-hosting (Medium)
https://medium.com/@longboardcreator/deploying-angular-6-applications-to-firebase-hosting-b5dacde9c772
Deploying Angular App to firebase (Alligator)
https://alligator.io/angular/deploying-angular-app-to-firebase/

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ikismail/Angular-ShoppingCart/issues/59#issuecomment-636620325,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANANKOVYHWJNKKDO3ULNZTDRUM34FANCNFSM4NDLLN3A
.

hai bro

i am trying to host my site in firebase hosting but getting this
error 👇 help me bro
if i want to host my site in reseller club domain (how to do that my
data base is firebase so is it possible ?? and How ??

On Mon, Jun 1, 2020 at 10:57 AM Mohammed Ismail<EMAIL_ADDRESS>wrote:

Yes thanq bro it's working fine and I am getting another problem while
hosting my website on firebase hosting Actually I was downloaded github
code and it was already hosted but I edited what I need code after editing
I am trying to host it but getting this error Help me what I want to do now
this situation
I hope this Articles will help you to deploy Angular Apps to firebase
hosting.. check whether you did any mistakes..
Firebase Hosting Reference:

Deploying Angular to firebase-hosting (Medium)
https://medium.com/@longboardcreator/deploying-angular-6-applications-to-firebase-hosting-b5dacde9c772
Deploying Angular App to firebase (Alligator)
https://alligator.io/angular/deploying-angular-app-to-firebase/

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ikismail/Angular-ShoppingCart/issues/59#issuecomment-636620325,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANANKOVYHWJNKKDO3ULNZTDRUM34FANCNFSM4NDLLN3A
.

I want to send when placed the order I want to send email for both user and
admin how its possible
On Wed, 27 May 2020, 22:22 Mohammed Ismail<EMAIL_ADDRESS>wrote:

index.html <form #f="ngForm" (ngSubmit)="addNewProduct(f)"> <input
type='file' #image> upload component.ts @ViewChild
https://github.com/ViewChild('image') image : ElementRef
addNewProduct(f : NgForm) { let image = (this.image.nativeElement as
HTMLInputElement).files[0] this.ps.addNewProductImage(image) //
console.log(f.value); console.log((this.image.nativeElement as
HTMLInputElement).files[0]) } component.service.ts
addNewProductImage(image: File) { const ref =
firebase.storage().ref('productImages/' + image.name) ref.put(image).then
(() => { ref.getDownloadURL().then((url) => { this.image = url }); ---->
here i am getting error : Property 'image' does not exist on type
'ProductsService'. ts(2339) console.log('IREF IS ' + ref)
console.log('IMAGEURL IS ' + this.image) ----> here i am getting error :
Property 'image' does not exist on type 'ProductsService'.ts(2339) }); }
this is the problem how can i fix it and retrive my data successfully
storing fiebase storage but not ading to realmtime database and retrive
back to project template On Sat, May 23, 2020 at 1:05 AM Mohammed Ismail
<EMAIL_ADDRESS>wrote:
… <#m_-2253577156266315106_>
I need small help I am trying to store image in firebase storage and
retrieve to my project but it storing but not getting in my project help me
I strucked here … <#m_-273977295035603592_> On Sat, 23 May 2020, 00:18
Mohammed Ismail, @.***> wrote: Hi, I was able to fix all the issues,
which i have posted above. The last problem i m facing is in deployment. It
is telling "unexpected rules format" error. i have added a
database.rules.json in project and added the below code. { "rules": {
".read": true, ".write": true } } Still it is throwing the same error while
deploying. Let me know if you have any input on that. Thanks and regards,
Kunal Need more details., Can u send some error screenshots. — You are
receiving this because you are subscribed to this thread. Reply to this
email directly, view it on GitHub <#59
https://github.com/ikismail/Angular-ShoppingCart/issues/59 (comment) <#59
(comment)
https://github.com/ikismail/Angular-ShoppingCart/issues/59#issuecomment-632855225>>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANANKOW2ZUYEORRGKRR2BKDRS3CHRANCNFSM4NDLLN3A
. Check your Firebase Storage rules, you need to allow users to read and
write data's from the storage [image: image]
https://user-images.githubusercontent.com/17190913/82703146-036eb780-9c91-11ea-95e9-8bb3ffc42576.png
Here is some Reference: 1. Firebase Cloud Storage with Angular
https://medium.com/codingthesmartway-com-blog/firebase-cloud-storage-with-angular-394566fd529
2. Retrieve Images from firebase storage using Angular 7
https://stackoverflow.com/a/56357834/9640128 — You are receiving this
because you commented. Reply to this email directly, view it on GitHub <#59
(comment)
https://github.com/ikismail/Angular-ShoppingCart/issues/59#issuecomment-632878474>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANANKOWBYGAK2ZM53RCSKMLRS3HWLANCNFSM4NDLLN3A
.
Please share some working prototype with StackBlitz...
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ikismail/Angular-ShoppingCart/issues/59#issuecomment-634797505,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANANKOQLFGYEN6X2K4DP2A3RTVAMLANCNFSM4NDLLN3A
.


Target of URI doesn't exist: 'package:map_view/polyline.dart'

Version in pubspec.yaml file is map_view: "^0.0.12"
Obviously the new features like polilynes and polygons are not published in https://pub.dartlang.org/packages/map_view
Thanks!

@edgarmiro If you want these feature you can also use git in your pubspec.yaml:
  map_view:
    git:
      url: git://github.com/apptreesoftware/flutter_google_map_view.git

It's been 25 days already, any chance it could be pushed to Flutter package, rather than having to find this?
All the docs mention polylines and polygons yet the installation step in flutter packages references the version of the package which has none of those.


[FLINK-15110][metrics] Support variable exclusion

Adds a per-reporter config option to exclude specific variables from being processed.
For example, configuring metrics.reporter.foo.scope.variables.excludes: task_id;job_id results in <job_id> and <task_id> being excluded from the variables map returned by MetricGroup#getAllVariables().
This setting applies to all reporters by virtue of handling this via the FrontMetricGroup, which injects reporter-specific behaviors irrespective of the reporter implementation.
This allows users to exclude unwanted variables, reducing noise / storage costs and also acts as an emergency workaround to cardinality explosions (see FLINK-13418).
Similar to scope strings the result of MetricGroup#getAllVariables() is cached per reporter; with some optimizations in case no exclusion were defined (in which case a shared cache is used).

The referenced JIRA number is wrong. Please update the commit message to reference FLINK-15110.

@zentol I agreed that this PR is a solution to solve problems like FLINK-13418. However, I don't think this is the best solution.
Before offering my thoughts in detail, I would prefer to review current Metrics in Flink: there is no explicit concept of tag for Flink metrics, and we only have scope and variables now.
For operator level metrics metrics.scope.operator, we have default scope as <host>.taskmanager.<tm_id>.<job_name>.<operator_name>.<subtask_index>, and take Slf4jReporter for example, we would get metrics like localhost.taskmanager.792eb90fd3c67416f7e4509bb4c4bb8b.General purpose test job.ArtificalKeyedStateMapper_Kryo_and_Custom_Stateful.0.numRecordsOut. As you can see, no task_attempt_id would be printed. Only if user add task_attempt_id to the scope format, then the Slf4jReporter could print the attempt id out.
Based on this, I think we could match the concepts of system scope with system variables to solve problem like FLINK-13418. Only system variables in defined system scopes would be emitted, and user variables are not limited with these scopes.
Last but not least, if we take this PR, how could user achieve goals like adding task_attempt_id in task level metrics but avoid them in operator level metrics?

@Myasuka

I agreed that this PR is a solution to solve problems like FLINK-13418.

This is not intended to be a solution for FLINK-13418.

Only system variables in defined system scopes would be emitted, and user variables are not limited with these scopes.

Implicitly deriving the tags to expose from the configured scope format breaks every existing setup of tag-based reporters. It is also conceptually unsound as there are plenty of variables that exist outside the system scope which should be controllable as well.
Additionally it is not a solution for the cardinality explosion, which either requires a general exclusion (provided here) or a flag per variable for whether it should be indexed or not. This can be explored in the future as pointed out in the JIRA ticket for FLINK-15110.

there is no explicit concept of tag for Flink metrics

For all intents and purposes variables are equivalent to tags.
Conceptually, what you are suggesting is an include list per scope level; and this is certainly something one could look into in the future.
Nevertheless, being able to globally discard unwanted tags is still a useful feature that I could implement before the feature freeze without API changes, in contrast to every other approach.

It is true that this is coarse-grained, but there just are use-cases where users aren't interested at all in certain variables, and forcing them to write that down 4 times for each scope is incredible cumbersome and error-prone.
Additionally, global and system-scope-scoped exclusions don't categorically rule each other out; we can still implement the latter later on.


Refactor Setting of Template Attributes

Refactoring is needed for both the create/edit of setup (of process attributes), and create/edit of measurements.

I've finished the changes for refactoring process setup attributes. But not measurement. Maybe this issues needs to be split.

Finished both template properties and measurements. Both are in adequate but primitive shape.


Update sample data

There is a valid visit generator in test > java >testutil> DateTimeUtil. You might want to use it for the EXAMPLE_VALID_VISIT, so that it doesn't get outdated.
Otherwise, LGTM.

thanks


0.56.3 extended binary on Win x64 crashes when creating first post (Ananke theme)

Following Quickstart, using Ananke theme. Step 4: Add Some Content fails:
hugo new posts/my-first-post.md
Error: failed to read module config for "ananke" in "G:\_src\web\quickstart\themes\ananke\theme.toml": unmarshal failed: Near line 11 (last key parsed 'min_version'): Invalid float value: "0.30.2"

This should fix it: https://github.com/budparr/gohugo-theme-ananke/pull/189
Also, thanks for the Tweet.

Yes thanks, works now, cheers.


Varible named zero:

(lol)

fixed in latest push with assorted other updates, ty for pointing it out!


no tf data with crazyflie_demo

Hi, Wolfgang
I am trying to test the basic function of the crazyflie 2.0 while I do not have a joystick right now. I use the command roslaunch crazyflie_demo teleop_xbox360.launch uri:=radio://0/100/2M to test. Others all function well while the rviz shows that there is error with global status. I guess it's not triggered by not installing joy package and not connecting to a xbox360 gamepad. I don't know what is wrong here. Could you help me about it? Thanks in advance.
Bin

Hi,
That is normal if you don't use an external motion capture system which would provide some useful transformation. Once you have a Mocap, we use a static broadcaster to provide the missing frame, e.g. https://github.com/whoenig/crazyflie_ros/blob/master/crazyflie_demo/launch/hover_vicon.launch#L40
Wolfgang


Fix schematic zooming

When you zoom in on the schematic view, it doesn't zoom into the correct location. This most likely requires fixing use-mouse-matrix-transform (do not replace it- I don't want to get a bunch of mouse math into this project unnecessarily, but a PR fixing that project is acceptable for the bounty)
In this video I'm scrolling up and down, it SHOULD zoom into the mouse location but instead the screen swings somewhat wildly.
https://github.com/user-attachments/assets/e4627984-ddb9-4f0c-9cc7-996c8d55e45b

/bounty $20

Hey @seveibar, I would like to work on this. I see the issue is with the CircuitToSvgWithMouseControl component, but the actual Schematic component isn't stabilized and doesn't have the issue.
So, should I work with the CircuitToSvgWithMouseControl component?

/attempt #175

The Schematic component is too hard to maintain because it uses a more complex rendering engine, it doesnt have support for rendering circuit json properly, so the fix should be with the CircuitSvgWithMouseControl component

/bounty $30


Why use different renovate image sources?

There are two different revnoate images source updates:

https://github.com/serious-scaffold/ss-python/pull/354
https://github.com/serious-scaffold/ss-python/pull/353

One uses renovate/renovate from docker registry and aonther uses the source from ghcr. I consider it is more manageable with the one source.🤔 Personally, I prefer to the one from docker registry.

This will only happen for serious-scaffold, since generated project will use either github or gitlab (not both). ghcr is better for GitHub Actions, but maybe dockerhub is better for gitlab to avoid potential restrictions.

This will only happen for serious-scaffold, since generated project will use either github or gitlab (not both). ghcr is better for GitHub Actions, but maybe dockerhub is better for gitlab to avoid potential restrictions.

The two are just identical, and I still consider one source is more managaeble.🤣 But it's ok then.

Actually, I sufferred a lot about GITHUB_TOKEN or GITHUB_COM_TOKEN related issue on GitLab, so I would prefer avoid using any GitHub stuffs on GitLab.


Cannot retrieve pdf from the same folder

Attach (recommended) or Link to PDF file here:
sample.pdf
Configuration:

Web browser and its version: Chrome 69.0.3497.100 64bits
Operating system and its version: Debian GNU/Linux 9 (stretch) 64-bit
PDF.js version: 2.0.943
Is a browser extension: No

Steps to reproduce the problem:

Downloaded the dist folder
Added the pdf.min.js and pdf.worker.min.js to the libraries folder
Imported the pdf.min.js with <script type="text/javascript" src="js/libs/pdf.min.js"></script>
Accessed PDFJS using const pdfjs = window['pdfjsLib'] PS: I also tried to load it with window['pdfjs-dist/build/pdf'] as is in the examples website but the result is the same error
In my display (async) function, I try to retrieve the document using const myPdf = await pdfjs.getDocument('sample.pdf') (my sample pdf is in the same folder than the lib)
An InvalidPDFException is thrown

What is the expected behavior? (add screenshot)
Its expected to retrieve the pdf from the folder for me to display it
What went wrong? (add screenshot)

Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):

Added the pdf.min.js and pdf.worker.min.js to the libraries folder

To rule out the possibility of errors in the minified build target, can you reproduce this issue when using the regular (non-minified) pdf.js/pdf.worker.js files as well?
If yes, that would suggest an error in your implementation which is very difficult to debug without access to a complete example; please see https://github.com/mozilla/pdf.js/blob/master/.github/CONTRIBUTING.md (emphasis mine):

If you are developing a custom solution, first check the examples at https://github.com/mozilla/pdf.js#learning and search existing issues. If this does not help, please prepare a short well-documented example that demonstrates the problem and make it accessible online on your website, JS Bin, GitHub, etc. before opening a new issue or contacting us on the IRC channel -- keep in mind that just code snippets won't help us troubleshoot the problem.

I try to retrieve the document using const myPdf = await pdfjs.getDocument('sample.pdf')

I don't think it should matter for the issue at hand, but please note that getDocument doesn't return a Promise but a PDFDocumentLoadingTask instance; hence what you really want here is something like this:
const myPdf = await pdfjs.getDocument('sample.pdf').promise;

Since I am already at home and have no access to the code, I'll try what you suggested tomorrow as soon as I can (probably around 5AM UTC) and I'll get back here with more content. Thanks for the quick response, @Snuffleupagus

@Snuffleupagus @timvandermeij I could only try again today, sorry for that. I've used the "not minified version" of pdfjs and still it would not display the page of the pdf... When I tried to use the pdfjs using <script src="//mozilla.github.io/pdf.js/build/pdf.js"></script> to import, it was correctly displayed. Maybe a problem during the generation of the dist?

I've used the "not minified version" of pdfjs and still it would not display the page of the pdf...

That would, at least for now, point to an issue with your implementation; see https://github.com/mozilla/pdf.js/issues/10598#issuecomment-468445386 which clearly outlines the next steps (i.e. provide a complete and runnable example) you'll need to take in order for anyone to provide further assistance here.

Closing until a runnable example is provided since everything points at this being an implementation defect.


Calls to a specific region's local numbers are always failing

Description
I made an app through which i can make calls to local phone numbers. Calls are working but when i try to call local phone numbers in Armenia, the calls are failing.
For other countries (that i tested, like USA, Australia, Pakistan etc) they are working perfectly.
They also use to work like 1 week ago, but suddenly they just stop working.
Its like call is not getting connected to the phone number.
I also thought maybe this issue was related to 1 specific number so i tried 3 different phone numbers but all failed
Steps to Reproduce

Dial any Armenia based local phone number

Code
const dial = twiml.dial({callerId : comingFrom, answerOnBridge : true});
dial.number(to);

Expected Behavior
Call should get connected to local phone number
Actual Behavior
Calls are failing.
Reproduces How Often
Everytime on Armenia based phone numbers
Twilio Call SID(s)
CA52d73317267509f82d90c3d7f94322ab
CAea36af4781ff3efe91248000c8a2294b
CA81743c8f075bc6341474722d0b3ee509
Logs

Outgoing Dial | +1............. | +37......... | Phone | Failed
-- | -- | -- | -- | --

Versions
twilio-cli version 2.18.0
Voice iOS SDK
6.2.0
Xcode
12.4
iOS Version
14.4
iOS Device
6s, 11 pro, 12 pro

Hi @saqibdb
Please check the Geo Permissions settings of your Twilio account and enable specific regions.

@bobiechen-twilio Yes that was the issue.
Thanks for your help, my mistake, i missed that.


Open With Other App

It is not Open in Intent Like I Am in Other app and i click My video Then it is not show in open with Option

Hmm, I didn't implement this feature on this app yet but I will implement it soon


Automated Package Upgrade

:tada: This PR is included in version 12.4.9 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Bugfix: remove #[pallet::generate_storage_info]

The code created by following the tutorial does not compile:
 cargo check -p node-template-runtime   Compiling node-template-runtime v3.0.0-monthly-2021-10 ($HOME/workspace/blockchain/substrate-node-template/runtime)
    Checking pallet-template v3.0.0-monthly-2021-10 ($HOME/workspace/blockchain/substrate-node-template/pallets/template)
error[E0277]: the trait bound `Vec<u8>: MaxEncodedLen` is not satisfied
  --> pallets/template/src/lib.rs:43:11
   |
43 | #[pallet::generate_storage_info]
   |           ^^^^^^^^^^^^^^^^^^^^^ the trait `MaxEncodedLen` is not implemented for `Vec<u8>`
   |
   = note: required because of the requirements on the impl of `StorageInfoTrait` for `frame_support::pallet_prelude::StorageMap<_GeneratedPrefixForStorageProofs<T>, frame_support::Blake2_128Concat, Vec<u8>, (<T as frame_system::Config>::AccountId, <T as frame_system::Config>::BlockNumber), frame_support::pallet_prelude::ValueQuery>`
note: required by `storage_info`
  --> $HOME/.cargo/git/checkouts/substrate-7e08433d4c370a21/bf9683e/frame/support/src/traits/storage.rs:71:2
   |
71 |     fn storage_info() -> Vec<StorageInfo>;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0277`.
error: could not compile `pallet-template` due to previous error
warning: build failed, waiting for other jobs to finish...
error: build failed

Remove #[pallet::generate_storage_info] preceding pub struct Pallet<T>(_);

This might not be a good addition... as it is divergent on the version of the template you use. cc @sacha-l
https://github.com/paritytech/substrate/blob/master/frame/support/procedural/src/pallet/parse/pallet_struct.rs#L44-L53
This is still implementable, and we will need to note what version of the template needs it or not. We should only support the latest tag in the docs IMHO.

@NukeManDan Not sure if you are addressing me.
Note that it is now diverging from https://github.com/substrate-developer-hub/substrate-node-template/blob/tutorials/solutions/proof-of-existence/pallets/template/src/lib.rs and that a person who follows the tutorial will have a failed build.
This is the almost the first tutorial - it's actually the second ;-) - that I was doing on substrate. I'm assuming mainly newbies (like me) will run into it.

@mrquincle : thanks for flagging this for us, super appreciated!
@NukeManDan : IMO this is ok for tutorials. Others were having issues with this for the Kitties tutorial. Better to remove for tutorials and have successful build than to require adding more dependencies especially for these beginner ones, don't you think?

This seems to have been fixed already. Thanks !

Okay. I see. It's part of https://github.com/substrate-developer-hub/substrate-docs/commit/b690ee5986879a070b77dbbf25f619df54a280c0.
Interesting way to handle PRs. ;-)


Add basic package.json to act as a npm module

Mostly auto generated by npm init

Awesome, thanks.
Now I can use it via:
npm install --save git+https://github.com/laktek/really-simple-color-picker

(I'm using it with browserify for the js file import)


Simple notification test with Robolectric

I've tried to make very simple test to check automatically ContentProvider notifications on my project, but finally I'm stuck to run a test with RobolectricGradleTestRunner from AndroidStudio or directly with gradle.
build.gradle
apply plugin: 'com.neenbedankt.android-apt'

android {
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_7
        targetCompatibility JavaVersion.VERSION_1_7
    }
    ....
}
dependencies {
    apt 'com.raizlabs.android:DBFlow-Compiler:2.2.1'
    compile 'com.raizlabs.android:DBFlow-Core:2.2.1'
    compile 'com.raizlabs.android:DBFlow:2.2.1'
    ....
}

DBFlowNotificationTest.java
@RunWith(RobolectricGradleTestRunner.class)
@Config(constants = BuildConfig.class)
public class DBFlowNotificationTest {
    @Test
    public void test() {
        final TestModel1 foo = new TestModel1();
        System.out.println("foo: " + foo);
        FlowManager.init(RuntimeEnvironment.application);
    }
}

TestDatabase.java
@Database(name = TestDatabase.NAME, version = 3, foreignKeysSupported = true)
public class TestDatabase {
    public static final String NAME = "Test";
}

TestModel1.java
@Table(databaseName = TestDatabase.NAME)
@ModelContainer
public class TestModel1 extends BaseModel {
    @Column
    @PrimaryKey
    public String name;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TestModel1 that = (TestModel1) o;
        return !(name != null ? !name.equals(that.name) : that.name != null);
    }
    @Override
    public int hashCode() {
        return name != null ? name.hashCode() : 0;
    }
}

output
java.lang.RuntimeException: java.lang.ClassNotFoundException: com.raizlabs.android.dbflow.config.GeneratedDatabaseHolder
    at com.raizlabs.android.dbflow.config.FlowManager.getDatabaseHolder(FlowManager.java:119)
    at com.raizlabs.android.dbflow.config.FlowManager.init(FlowManager.java:158)
    at com.***.dbflow.DBFlowNotificationTest.test(DBFlowNotificationTest.java:36)

In the meantime, I have cloned the repository and updated it on master.
Once loaded in AndroidStudio, every write to TestContentProvider$Provider is in error, seems logic because it's dynamically generated, but not cool to use as is.
How do you manage this? Just removing the warning in AS?

@glureau maybe try it now? in newest version 1.7 now supports the test directory (https://bitbucket.org/hvisser/android-apt)

PS How did you get Roboelectric working with DBFlow? I might consider switching to it for quicker tests.


Support for STM32F Series

Hi,
Your README says that From v1.0.2+, the library supports ... STM32F series .... But when I attempt to compile the PostServer example for an STM32F103, I get
WARNING: library functional-vlpp claims to run on avr architecture(s) and may be incompatible with your current board which runs on STM32F1 architecture(s).
and subsequent complaints that PGM_VOID_P and memccpy_P aren't defined
Can you please confirm what STM32F boards are supported and/or if there are any simple defines I need to change to use the STM32F103
Cheers
Andy
Arduino IDE version: 1.8.12

The EthernetWebServer is written to be somewhat supportive to many different types of boards. But it also have to use other libraries, so the hardware support certainly depends on those external libraries.
Currently

Just ignore the warning of functional-vlpp library. This is an external library I currently have no control. But I'll fix the warning by forking it then fix.

Ethernet library for W5x00 doesn't support STM32F boards. You can post an issue there to request Feature Enhancement. Whenever that library is supporting STM32F boards, this library will automatically support. If I have time, I'll fork and fix Ethernet library to provide support to STM32F series.

Currently, EthernetWebServer library can only support some STM32F boards running ENC28J60 shields (only because it's using UIPEthernet library supporting STM32F). The prerequisite is the board must have Flash larger than 128K.

For example:

STM32F103CB
Microduino Core STM32
Maple Mini
Maple Rev3
STM Nucleo
STM32F103RB, RC and RE
STM32F103TB
STM32F103VC, VD and VE
STM32F103Z
HYTiny STM32F103TB

But if there is any issue with the UIPEthernet library, please post the issue there.

These boards are not supported even using ENC28J60

STM32F103C8, R8, T8 having only 64K Flash
STM32F4 as there is no HardwareSerial

In order to use supported STF32F1 boards, you have to declare this in eny sketch
#define ETHERNET_USE_SAMD   true

// Use true  for ENC28J60 and UIPEthernet library (https://github.com/UIPEthernet/UIPEthernet)
// Use false for W5x00 and Ethernetx library      (https://www.arduino.cc/en/Reference/Ethernet)
#define USE_UIP_ETHERNET   true

Update
These boards running ENC28J60 (with Flash 64+K) are supported if using official STM32 core from STMicroElectronics:
Arduino_Core_STM32

Nucleo-144
Nucleo-64
Discovery
STM32MP1
Generic STM32F1 (with 64+K Flash): C8 and up
Generic STM32F4
STM32L0
LoRa boards
3-D printer boards
Generic Flight Controllers
Midatronics boards

and these are not supported:

Nucleo-32 (small Flash/memory)
Eval (no Serial, just need to redefine in sketch, library and UIPEthernet)
Generic STM32F0 (small Flash/memory)
Generic STM32F1 (with <64K Flash): C6
Generic STM32F3 : no HardwareSPI.h
Electronics Speed Controllers  (small Flash/memory)

Thanks.

Dear @andy-hopkins
I just finished and published a new EthernetWebServer_STM32 library for STM32 boards. Please give it a try.
https://github.com/khoih-prog/EthernetWebServer_STM32
This library currently supports

STM32 boards with built-in Ethernet such as :

Nucleo-144 (F429ZI, F767ZI)
Discovery (STM32F746G-DISCOVERY)

STM32 boards (with 64+K Flash) running EMC28J60 shields

This is simple yet complete WebServer library for STM32 boards running built-in Ethernet (Nucleo-144, Discovery) or EMC28J60 Ethernet shields. The functions are similar and compatible to ESP8266/ESP32 WebServer libraries to make life much easier to port sketches from ESP8266/ESP32.
The library supports

HTTP Server and Client
HTTP GET and POST requests, provides argument parsing, handles one client at a time.

Regards,
KH

Hi @khoih-prog
I have success with the PostServer example with a BluePill and ENC28J60.
No pressure, but any idea how long till, or if, the F407VET6 will be supported?
Cheers

Hi @andy-hopkins
Good news that you're successful with BluePill and ECN28J60.
Please try the following new library and let us know the result for F407VET6 and all remaining STM32. BTW, I'm planning to port W5x00, etc. Ethernet shield to this new lib.
EthernetWebServer_STM32
All the STM32 boards with more than 64K Flash are supported by that lib, including all F407VET.
Don't use this library anymore if you're using STM32 as it's not as efficient as the new one (larger code size, not standard core from STMicro).
Boards supported by EthernetWebServer_STM32 library currently supports

STM32 boards with built-in Ethernet such as :

Nucleo-144 (F429ZI, F767ZI)
Discovery (STM32F746G-DISCOVERY)

STM32 boards (with 64+K Flash) running EMC28J60 shields

Nucleo-144
Nucleo-64
Discovery
STM32MP1
Generic STM32F1 (with 64+K Flash): C8 and up
Generic STM32F4
STM32L0
LoRa boards
3-D printer boards
Generic Flight Controllers
Midatronics boards

and these boards are not supported:

Nucleo-32 (small Flash/memory)
Eval (no Serial, just need to redefine in sketch, library and UIPEthernet)
Generic STM32F0 (small Flash/memory)
Generic STM32F1 (with <64K Flash): C6
Generic STM32F3 : no HardwareSPI.h
Electronics Speed Controllers (small Flash/memory)

Cheers,
KH