Introduce hardened Flatcar Images for CAPZ

Motivation
Currently we use Ubuntu images for our cluster nodes. But those are not specially hardened and thus not really secure. We have a more secure alternative with the hardened flatcar images. We therefor need to replace the ubuntu images with flatcar ones.
Todo

[ ] Test creation of WC Flatcar using reference images

Ignition

[ ] Validate Generated Ignition Template
[ ] Review ignition boot logs

Validate created nodes

[ ] Check kubeadm.service and kubeadm.sh generated files
[ ] Disk Setup
[ ] Users
[ ] NTP Settings
[ ] Kube Reservation Script
[ ] prepeare-var-lib-kubelet-dir
[x] Check node for any failed units
[x] Check /etc/kubeadm.yaml hostname replacement
[x] ssh through bastion

[ ] Image replication to all regions ?
[x] cgroup version 2

[ ] Setup build of our own images

We should still have the Gallery we created a while ago while looking into building Ubuntu Images
Is there any of the Licencing issues we saw with Ubuntu to handle ?

[ ] Define Hardened
[ ] Define what the Update schedule for flatcar images should be ( i am quite sure on ubuntu we are getting auto security updates at the moment )
[ ] Build Clusters with our images

Outcome

We have systems that are a lot more secure through hardened base images for the nodes.

Technical Hint

There is an upstream Issue for it: https://github.com/kubernetes-sigs/cluster-api-provider-azure/issues/629
https://github.com/giantswarm/roadmap/issues/778
https://github.com/giantswarm/roadmap/issues/1264
https://github.com/giantswarm/roadmap/issues/1256
https://github.com/giantswarm/cluster-openstack/blob/main/helm/cluster-openstack/templates/_helpers.tpl - cluster-openstack was actually using flatcar already ?

Dependent on https://github.com/giantswarm/giantswarm/issues/24566

something to keep an eye on https://github.com/kubernetes-sigs/cluster-api-provider-azure/pull/2890 is adding a template for using flatcar on capz

Flatcar now officially in the docs: https://capz.sigs.k8s.io/topics/flatcar.html

Flatcar now officially in the docs: https://capz.sigs.k8s.io/topics/flatcar.html

I am getting a 404 here now :shrug: :)

TODO

[ ] Test creation using reference images

Validate created nodes

[ ] Check kubeadm.service and kubeadm.sh generated files
[ ] Disk Setup
[ ] Users
[ ] NTP Settings
[ ] Kube Reservation Script

Image replication to all regions ?

[ ] Setup build of our own images

We should still have the Gallery we created a while ago while looking into building Ubuntu Images
Is there any of the Licencing issues we saw with Ubuntu to handle ?

[ ] Define Hardened

First test at least nodes joined :+1:
NAME                                                                             READY  SEVERITY  REASON  SINCE  MESSAGE
Cluster/fctest1                                                                  True                     6m25s
├─ClusterInfrastructure - AzureCluster/fctest1                                   True                     8m53s
├─ControlPlane - KubeadmControlPlane/fctest1                                     True                     6m25s
│ └─Machine/fctest1-zzrhf                                                        True                     6m26s
│   ├─BootstrapConfig - KubeadmConfig/fctest1-jnd99                              True                     8m49s
│   └─MachineInfrastructure - AzureMachine/fctest1-control-plane-c17c01d5-zzxbh  True                     6m26s
└─Workers
  ├─MachineDeployment/fctest1-bastion                                            True                     10m
  │ └─Machine/fctest1-bastion-868b7dcb67-tz7rc                                   True                     4s
  │   ├─BootstrapConfig - KubeadmConfig/fctest1-bastion-973fd873-fkttq           True                     6m22s
  │   └─MachineInfrastructure - AzureMachine/fctest1-bastion-836b66f0-hf7kl      True                     4s
  └─MachineDeployment/fctest1-md00                                               True                     19s
    ├─Machine/fctest1-md00-77c9d6f645-68l7m                                      True                     114s
    │ ├─BootstrapConfig - KubeadmConfig/fctest1-md00-ad5e9669-qlxdd              True                     6m22s
    │ └─MachineInfrastructure - AzureMachine/fctest1-md00-bcb876fb-l69vx         True                     114s
    ├─Machine/fctest1-md00-77c9d6f645-8pn6k                                      True                     4m12s
    │ ├─BootstrapConfig - KubeadmConfig/fctest1-md00-ad5e9669-v6m92              True                     6m21s
    │ └─MachineInfrastructure - AzureMachine/fctest1-md00-bcb876fb-r2fc9         True                     4m12s
    └─Machine/fctest1-md00-77c9d6f645-dcdlx                                      True                     3m25s
      ├─BootstrapConfig - KubeadmConfig/fctest1-md00-ad5e9669-4jbmz              True                     6m21s
      └─MachineInfrastructure - AzureMachine/fctest1-md00-bcb876fb-xlm6q         True                     3m25s

NAME                                   STATUS   ROLES           AGE     VERSION   INTERNAL-IP   EXTERNAL-IP   OS-IMAGE                                             KERNEL-VERSION      CONTAINER-RUNTIME
fctest1-control-plane-c17c01d5-zzxbh   Ready    control-plane   7m19s   v1.24.9   <IP_ADDRESS>      <none>        Ubuntu 20.04.5 LTS                                   5.15.0-1029-azure   containerd://1.6.2
fctest1-md00-bcb876fb-l69vx            Ready    <none>          2m46s   v1.24.9   <IP_ADDRESS>     <none>        Flatcar Container Linux by Kinvolk 3374.2.1 (Oklo)   5.15.77-flatcar     containerd://1.6.14
fctest1-md00-bcb876fb-r2fc9            Ready    <none>          4m59s   v1.24.9   <IP_ADDRESS>     <none>        Flatcar Container Linux by Kinvolk 3374.2.1 (Oklo)   5.15.77-flatcar     containerd://1.6.14
fctest1-md00-bcb876fb-xlm6q            Ready    <none>          4m29s   v1.24.9   <IP_ADDRESS>     <none>        Flatcar Container Linux by Kinvolk 3374.2.1 (Oklo)   5.15.77-flatcar     containerd://1.6.14

Machine Review

the Hostname placeholder for the joinConfiguration could be similar to openstack, but it works with the template
WARNING  : files: createResultFile: Ignition has already run on this system. Unexpected behavior may occur. Ignition is not designed to run more than once per system. cleanup of image-builder not complete ?
this flatcar version is supposed to have containerd 1.6.8 according to flatcar release notes ... but it seems we are running 1.6.14 - image-builder upgrading this ?

License for flatcar is Apache License 2.0 which , to my understanding, let us free to modify and redistribute the images as long as

we don't change the license
we keep reference of attributoin to Flatcar project

Cilium looks ok but 4 tests are failing from the connectivty test suite
📋 Test Report
❌ 4/29 tests failed (6/230 actions), 2 tests skipped, 1 scenarios skipped:
Test [to-entities-world]:
  ❌ to-entities-world/pod-to-world/http-to-one-one-one-one-0: cilium-test/client-755fb678bd-4r6pg (<IP_ADDRESS>) -> one-one-one-one-http (one.one.one.one:80)
  ❌ to-entities-world/pod-to-world/http-to-one-one-one-one-1: cilium-test/client2-5b97d7bc66-nxl76 (<IP_ADDRESS>) -> one-one-one-one-http (one.one.one.one:80)
Test [client-egress-l7]:
  ❌ client-egress-l7/pod-to-world/http-to-one-one-one-one-0: cilium-test/client2-5b97d7bc66-nxl76 (<IP_ADDRESS>) -> one-one-one-one-http (one.one.one.one:80)
Test [client-egress-l7-named-port]:
  ❌ client-egress-l7-named-port/pod-to-world/http-to-one-one-one-one-0: cilium-test/client2-5b97d7bc66-nxl76 (<IP_ADDRESS>) -> one-one-one-one-http (one.one.one.one:80)
Test [to-fqdns]:
  ❌ to-fqdns/pod-to-world/http-to-one-one-one-one-0: cilium-test/client-755fb678bd-4r6pg (<IP_ADDRESS>) -> one-one-one-one-http (one.one.one.one:80)
  ❌ to-fqdns/pod-to-world/http-to-one-one-one-one-1: cilium-test/client2-5b97d7bc66-nxl76 (<IP_ADDRESS>) -> one-one-one-one-http (one.one.one.one:80)
connectivity test failed: 4 tests failed

Control Plane nodes review

etcd disk did not get mounted on /var/lib/etcddisk

To build images from the flatcar offer in azure i had to accept the following license
License: Flatcar Container Linux is a 100% open source product and licensed under the applicable licenses of its constituent components, as described here: https://kinvolk.io/legal/open-source/
Warranty: Kinvolk provides this software "as is", without warranty or support of any kind. Support subscriptions are available separately from Kinvolk - please contact us for information at https://www.kinvolk.io/contact-us

by running

az vm image accept-terms --publisher kinvolk --offer flatcar-container-linux-free --plan stable-gen2
az vm image accept-terms --publisher kinvolk --offer flatcar-container-linux-free --plan stable

Initial Image building pipeline is working using the Compute Gallery that we created before
next steps in order for me to actually test those images

Understand how to share the gallery publicly ( the current images are not available to be used in ghost subscription )
Regions and replication, the gallery service is not global and azure recommends at least 2 regions with replication

Update pipeline for this ?

After lots of trial and error i think i got the right spec to use our images

BUT , since azure keeps a link between our build images and the parent flatcar one we are getting this error
capz-controller-manager-68c6664879-lmzfc manager I0227 15:45:36.440634       1 recorder.go:103] events "msg"="Warning"  "message"="failed to reconcile AzureMachine: failed to reconcile AzureMachine service virtualmachine: failed to create resource fctest1/fctest1-control-plane-cdd30d8e-lq5wk (service: virtualmachine): compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code=\"ResourcePurchaseValidationFailed\" Message=\"User failed validation to purchase resources. Error message: 'You have not accepted the legal terms on this subscription: '6b1f6e4a-6d0e-4aa4-9a5a-fbaca65a23b3' for this plan. Before the subscription can be used, you need to accept the legal terms of the image. To read and accept legal terms, use the Azure CLI commands described at https://go.microsoft.com/fwlink/?linkid=2110637 or the PowerShell commands available at https://go.microsoft.com/fwlink/?linkid=862451. Alternatively, deploying via the Azure portal provides a UI experience for reading and accepting the legal terms. Offer details: publisher='kinvolk' offer = 'flatcar-container-linux-free', sku = 'stable-gen2', Correlation Id: '0b436d96-21c6-4e41-9ed9-daac49507cde'.'\"" "object"={"kind":"AzureMachine","namespace":"org-multi-project","name":"fctest1-control-plane-cdd30d8e-lq5wk","uid":"ae16afdd-7c1f-430d-89d1-37540c38f074","apiVersion":"infrastructure.cluster.x-k8s.io/v1beta1","resourceVersion":"6315646"} "reason"="ReconcileError"

I will accept the terms in ghost subscription but this means we will need every customer to also do that in every subscription where we want to use those images.
I can't explain how we are using the flatcar4capi images without having accepted the same  terms ... unless they were already accepted

The fact that only latest is available from an image-definition is not true apparently
➜ kubectl get azuremachinetemplate fctest1-control-plane-9e46fb4a -o yaml | yq .spec.template.spec.image
computeGallery:
  gallery: gsCAPITest1-5cb24dcf-a2d0-4aba-820f-b52ca78f96e6
  name: capi-flatcar-stable-1.24.10-gen2
  version: 3374.2.3

➜ kubectl get azuremachinetemplate fctest1-md00-4e69b84e-2 -o yaml | yq .spec.template.spec.image
computeGallery:
  gallery: gsCAPITest1-5cb24dcf-a2d0-4aba-820f-b52ca78f96e6
  name: capi-flatcar-stable-1.24.10-gen2
  version: latest

➜ kubectl --kubeconfig /dev/shm/fctest1.kubeconfig get node -o wide
NAME                                   STATUS   ROLES           AGE     VERSION    INTERNAL-IP   EXTERNAL-IP   OS-IMAGE                                             KERNEL-VERSION    CONTAINER-RUNTIME
fctest1-control-plane-9e46fb4a-8zrtk   Ready    control-plane   14m     v1.24.10   <IP_ADDRESS>      <none>        Flatcar Container Linux by Kinvolk 3374.2.3 (Oklo)   5.15.86-flatcar   containerd://1.6.15
fctest1-md00-4e69b84e-2-68tt6          Ready    <none>          2m26s   v1.24.10   <IP_ADDRESS>     <none>        Flatcar Container Linux by Kinvolk 3374.2.4 (Oklo)   5.15.89-flatcar   containerd://1.6.15
fctest1-md00-4e69b84e-2-j9g97          Ready    <none>          6m3s    v1.24.10   <IP_ADDRESS>     <none>        Flatcar Container Linux by Kinvolk 3374.2.4 (Oklo)   5.15.89-flatcar   containerd://1.6.15
fctest1-md00-4e69b84e-zcg6l            Ready    <none>          10m     v1.24.10   <IP_ADDRESS>     <none>        Flatcar Container Linux by Kinvolk 3374.2.3 (Oklo)   5.15.86-flatcar   containerd://1.6.15

We can use the following information for the legal statement in the Azure Image Gallery:
Community gallery prefix: giantswarm-
Publisher support email<EMAIL_ADDRESS>Publisher URL: giantswarm.io
Legal agreement URL: https://www.giantswarm.io/privacy-policy

since last upgrade i noticed something strange
build-capz-image-1.24.11-6xb7532313faaf96cac2bcaa780286a09f-pod step-build-image ==> azure-arm.sig-{{user `build_name`}}: + [[ flatcar-gen2 != \f\l\a\t\c\a\r* ]]
build-capz-image-1.24.11-6xb7532313faaf96cac2bcaa780286a09f-pod step-build-image ==> azure-arm.sig-{{user `build_name`}}: + sudo bash -c '/usr/share/oem/python/bin/python /usr/share/oem/bin/waagent -force -deprovision+user && sync'

the name is azure-arm.sig-{{user \build_name`}}- why is build name not rendering ? is the actualbuild_name` working in the rest of the ansible run ?
. /home/imagebuilder/packer/azure/scripts/init-sig.sh flatcar-gen2 && packer build -var-file="/home/imagebuilder/packer/config/kubernetes.json"  -var-file="/home/imagebuilder/packer/config/cni.json"  -var-file="/home/imagebuilder/packer/config/containerd.json"  -var-file="/home/imagebuilder/packer/config/wasm-shims.json"  -var-file="/home/imagebuilder/packer/config/ansible-args.json"  -var-file="/home/imagebuilder/packer/config/goss-args.json"  -var-file="/home/imagebuilder/packer/config/common.json"  -var-file="/home/imagebuilder/packer/config/additional_components.json"  -color=true -var-file="/home/imagebuilder/packer/azure/azure-config.json" -var-file="/home/imagebuilder/packer/azure/azure-sig-gen2.json" -var-file="/home/imagebuilder/packer/azure/flatcar-gen2.json" -only="sig-flatcar-gen2" -var-file="/workspace/vars/vars.json"  packer/azure/packer.json

Executing Ansible: ansible-playbook -e packer_build_name="sig-flatcar-gen2"

Review of Hardening and other tuning
protect-kernel-defaults

Currently not enabled on CAPZ ( CAPI ) kubelets
values are already set to what's expected https://github.com/kubernetes-sigs/image-builder/blob/master/images/capi/ansible/roles/node/tasks/main.yml#L62

Outcome: Enable

comparing containerd config.toml

oom_score = -999 - default is 0 , we don't set it on flatcar capz ( but i thought i saw it in the ansible code ? )

set containerd as a subreaper on linux when it is not running as PID 1 subreaper = true we don't set it and i can't see it in the docs

[plugins."containerd.runtime.v1.linux"] - we don't have it set in the capz config
registry mirror and credentials - we don't have it but can add as a snippet in /etc/containerd/conf.d/*.toml import

Reservations
in vintage we do
on master nodes
kubeReserved:
  cpu: 350m
  memory: 1280Mi
  ephemeral-storage: 1024Mi
kubeReservedCgroup: /kubereserved.slice
protectKernelDefaults: true
systemReserved:
  cpu: 250m
  memory: 384Mi
systemReservedCgroup: /system.slice

on worker nodes
kubeReserved:
  cpu: 250m
  memory: 768Mi
  ephemeral-storage: 1024Mi
kubeReservedCgroup: /kubereserved.slice
protectKernelDefaults: true
systemReserved:
  cpu: 250m
  memory: 384Mi
systemReservedCgroup: /system.slice

on CAPZ we

calculate kubeReserved based on instance size
we do not set dedicated slices
we do not set any system reserved
we do not set the protectKernelDefaults

I wlil

Enable protectKernelDefaults

Upgrading from ubuntu 0.13 to flatcar currently fails with
 reason: 'Upgrade "fctest2" failed: cannot patch "fctest2" with kind KubeadmControlPlane:
    admission webhook "validation.kubeadmcontrolplane.controlplane.cluster.x-k8s.io"
    denied the request: KubeadmControlPlane.controlplane.cluster.x-k8s.io "fctest2"
    is invalid: [spec.kubeadmConfigSpec.format: Forbidden: cannot be modified, spec.kubeadmConfigSpec.mounts:
    Forbidden: cannot be modified]'

Chaing the control-plane name and object does not seem to work
during rollout it gets stuck with
org-multi-project  ├─KubeadmControlPlane/fctest2                                False  Deleting                                             45m
org-multi-project  │ ├─Machine/fctest2-95sxz                                    True                                                        41m
org-multi-project  │ │ ├─AzureMachine/fctest2-control-plane-c17c01d5-gd6m4      True                                                        41m
org-multi-project  │ │ └─KubeadmConfig/fctest2-7ps9h                            True                                                        41m
org-multi-project  │ │   └─Secret/fctest2-7ps9h                                 -                                                           40m
org-multi-project  │ ├─Machine/fctest2-d8xxd                                    True                                                        44m
org-multi-project  │ │ ├─AzureMachine/fctest2-control-plane-c17c01d5-qxwn5      True                                                        44m
org-multi-project  │ │ └─KubeadmConfig/fctest2-zz6vq                            True                                                        44m
org-multi-project  │ │   └─Secret/fctest2-zz6vq                                 -                                                           44m
org-multi-project  │ ├─Machine/fctest2-hlh7h                                    True                                                        38m
org-multi-project  │ │ ├─AzureMachine/fctest2-control-plane-c17c01d5-brfwp      True                                                        38m
org-multi-project  │ │ └─KubeadmConfig/fctest2-8dzwh                            True                                                        38m
org-multi-project  │ │   └─Secret/fctest2-8dzwh                                 -                                                           38m
org-multi-project  │ └─Secret/fctest2-kubeconfig                                -                                                           44m
org-multi-project  ├─KubeadmControlPlane/fctest2-changed                        False  ScalingUp                                            8m10s
org-multi-project  │ ├─Secret/fctest2-ca                                        -                                                           44m
org-multi-project  │ ├─Secret/fctest2-etcd                                      -                                                           44m
org-multi-project  │ ├─Secret/fctest2-proxy                                     -                                                           44m
org-multi-project  │ └─Secret/fctest2-sa                                        -                                                           44m

Cluster/fctest2                                                                  False  Warning   ScalingUp  8m25s  Scaling up control plane to 3 replicas (actual 0)
├─ClusterInfrastructure - AzureCluster/fctest2                                   True                        44m
├─ControlPlane - KubeadmControlPlane/fctest2-changed                             False  Warning   ScalingUp  8m25s  Scaling up control plane to 3 replicas (actual 0)
│ ├─Machine/fctest2-95sxz                                                        True                        39m
│ │ ├─BootstrapConfig - KubeadmConfig/fctest2-7ps9h                              True                        41m
│ │ └─MachineInfrastructure - AzureMachine/fctest2-control-plane-c17c01d5-gd6m4  True                        39m
│ ├─Machine/fctest2-d8xxd                                                        True                        42m

│ │ ├─BootstrapConfig - KubeadmConfig/fctest2-zz6vq                              True                        44m
│ │ └─MachineInfrastructure - AzureMachine/fctest2-control-plane-c17c01d5-qxwn5  True                        42m
│ └─Machine/fctest2-hlh7h                                                        True                        37m
│   ├─BootstrapConfig - KubeadmConfig/fctest2-8dzwh                              True                        39m
│   └─MachineInfrastructure - AzureMachine/fctest2-control-plane-c17c01d5-brfwp  True                        37m

I will reach out upstrema to see what they think since most fields can be modified and i can't see why those 2 cannot ( https://github.com/kubernetes-sigs/cluster-api/blob/main/controlplane/kubeadm/api/v1beta1/kubeadm_control_plane_webhook.go#L137 )  but right now we cna't update the CP from ubuntu to flatcar

glippy is now converted to flatcar
➜ k get node -o wide
NAME                                  STATUS   ROLES           AGE     VERSION    INTERNAL-IP    EXTERNAL-IP   OS-IMAGE                                             KERNEL-VERSION    CONTAINER-RUNTIME
glippy-control-plane-aae7f116-jqtcd   Ready    control-plane   23m     v1.24.11   <IP_ADDRESS>   <none>        Flatcar Container Linux by Kinvolk 3374.2.4 (Oklo)   5.15.89-flatcar   containerd://1.6.18
glippy-control-plane-aae7f116-vpk8s   Ready    control-plane   30m     v1.24.11   <IP_ADDRESS>   <none>        Flatcar Container Linux by Kinvolk 3374.2.4 (Oklo)   5.15.89-flatcar   containerd://1.6.18
glippy-control-plane-aae7f116-wclks   Ready    control-plane   16m     v1.24.11   <IP_ADDRESS>   <none>        Flatcar Container Linux by Kinvolk 3374.2.4 (Oklo)   5.15.89-flatcar   containerd://1.6.18
glippy-md00-e6ebd75a-9br9p            Ready    <none>          21m     v1.24.11   <IP_ADDRESS>     <none>        Flatcar Container Linux by Kinvolk 3374.2.4 (Oklo)   5.15.89-flatcar   containerd://1.6.18
glippy-md00-e6ebd75a-fvjtj            Ready    <none>          31m     v1.24.11   <IP_ADDRESS>    <none>        Flatcar Container Linux by Kinvolk 3374.2.4 (Oklo)   5.15.89-flatcar   containerd://1.6.18
glippy-md00-e6ebd75a-lt6zc            Ready    <none>          15m     v1.24.11   <IP_ADDRESS>     <none>        Flatcar Container Linux by Kinvolk 3374.2.4 (Oklo)   5.15.89-flatcar   containerd://1.6.18
glippy-md00-e6ebd75a-q28jz            Ready    <none>          4m37s   v1.24.11   <IP_ADDRESS>     <none>        Flatcar Container Linux by Kinvolk 3374.2.4 (Oklo)   5.15.89-flatcar   containerd://1.6.18
glippy-md00-e6ebd75a-vbrzq            Ready    <none>          25m     v1.24.11   <IP_ADDRESS>     <none>        Flatcar Container Linux by Kinvolk 3374.2.4 (Oklo)   5.15.89-flatcar   containerd://1.6.18
glippy-md00-e6ebd75a-xnnq7            Ready    <none>          9m22s   v1.24.11   <IP_ADDRESS>     <none>        Flatcar Container Linux by Kinvolk 3374.2.4 (Oklo)   5.15.89-flatcar   containerd://1.6.18

this is now done


How to navigate to native xaml page?

Hello dear develop team.
Do you have any plan to implement Barcode And QRCode Scanner component?
Or is there a way to navigate to another XAML file through the Client.Core Home Page with sending and receiving data?

@zandiarash Thanks for contacting us.
Unfortunately, we don't have any plan for the near future to implement these special components into the bit BlazorUI library.

Register IPubSubService by calling services.AddSingle in Blazor Hybrid, Electron and WebAssembly and use services.AddScoped for Blazor Server.
Then inject IPubSubService into MainPage.xaml.cs's constructor and subscribe to your messages that you're going to publish in razor pages.
While your message that gets published from razor page arrives in MainPage.xaml.cs, you can open any xaml page you want.
Let me know if you need more guidance.
@zandiarash

Thanks for guidance but I have a problem
This is where I AddScoped IPubSubService

This is my MainPage.xaml.cs

And This is my HomePage of Core project

But this line of code never will be traced.

My message Go_Scan is not listed even after running this line of code.
Is my mistake here ?

I will appreciate you if you could tell my mistake.
Thanks @ysmoradi

Take a look at the first photo you've provided, you've forgotten to remove existing IPubSubService registration and you're registering that service again which has no side effect for Microsoft.Ext.DI

Take a look at the first photo you've provided, you've forgotten to remove existing IPubSubService registration and you're registering that service again which has no side effect for Microsoft.Ext.DI

Sorry, I'm a little confused.
What do you mean by existing IPubSubService ?
In the first picture, line 42-46 is written by me which were not exist before.
Obviously Line 43 will not be executed since #if BlazorServer doesn't let it to run. Thus  only line 45 will be excecuted.
By the way there is services.AddClientSharedServices(); here which has already addScoped IPubSubService.
Does It mean that I should not AddScope IPubSubService again ?
Although with or without AddScope IPubSubService  in MauiProgram.cs nothing works for me.

Finally I've found the solution.
Seems the sequence of registering services matters.

I've moved this line
 services.AddScoped<IPubSubService, PubSubService>();
After
services.AddClientSharedServices();
Now everything works as expected

By the way thanks to you dear @ysmoradi You helped me alot.


Zeta Global SSP: update parameters for the bidder adapter

Update parameters for the bidder adapter.
🏷 Type of documentation

[ ] new bid adapter
[x] update bid adapter
[ ] new feature
[ ] text edit only (wording, typos)
[ ] bugfix (code examples)
[ ] new examples

📋 Checklist

[x] Related pull requests in prebid.js or server are linked -> Paste link in this list or reference it on the PR itself:
https://github.com/prebid/Prebid.js/pull/10597
https://github.com/prebid/prebid-server-java/pull/2692
https://github.com/prebid/prebid-server/pull/3201

The PBS-Go PR has two approvals and will be merged shortly. Will go ahead and merge this docs PR.


closes its self once i launch it

ive downloaded everything and done all the pip installs but when i every i open the terminal it closes its self

create a .bat file
and put that
@echo off
python scp_terminal.py
pause


Converted saves crashing the game after <IP_ADDRESS> update.

I have saves from Steam's <IP_ADDRESS> version of the game. The game got updated to <IP_ADDRESS> today. I used this converter to convert the existing steam saves to xgp saves. The tool ran fine and it says it converted the saves fine. But when I try to launch the game in xbox app, it goes till loading the game and then crashes.
Launch the game -> warning and Bethesda logo -> Game's home screen -> Continue -> shows the converted save file -> Ok -> loading screen -> crash.
Can you please check whether the tool needs some change to support <IP_ADDRESS> version of the game?

I didn't have time to play the game lately, but just to confirm, 1.7.36 game failed to load converted 1.7.33 save file? Does this happen with every save file?

Yes, 1.7.36 game had failed to load converted 1.7.33 save file. But apparently not every save file.
When I had created this thread, I had converted only my latest save file which was an Exitsave0 sfs file. When I tried to load xgp converted version of this, the game crashed as mentioned.
But later I tried converting more of the earlier saves. Autosave1 Autosave2 Autosave3 and Quicksave0 sfs files. I was able to load the xgp converted save of the Quicksave and played fine then on.


[Feature Request] dialog size

Existing Component
Yes
Component Name
Dialog
Description
Width of a modal dialog, do not support numbers.
see https://ant.design/components/modal

You can override Dialog's width in CSS with whatever unit you want.


Update telemetry documentation and metric names/descriptions

Closes: #2479
Description
The following metrics have been renamed:

ibc_client_updates to client_updates_submitted
ibc_client_misbehaviours  to client_misbehaviours_submitted
ibc_receive_packets to receive_packets_confirmed
ibc_acknowledgment_packets  to acknowledgment_packets_confirmed
ibc_timeout_packets  to timeout_packets_confirmed
cache_hits to queries_cache_hits
msg_num to total_messages_submitted
send_packet_count to send_packet_events
acknowledgement_count to acknowledgement_events
cleared_send_packet_count to cleared_send_packet_events
cleared_acknowledgment_count to cleared_acknowledgment_events

The following metrics have been added:

timeout_events

Fixed the following metrics:

client_updates_submitted: correctly count all ClientUpdate messages
total_messages_submitted: count only submitted messages

Testing
Timeout events
Use standard Hermes config.toml, for example:

config.toml
[global]
log_level = 'info'

[mode]

[mode.clients]
enabled = true
refresh = true
misbehaviour = true

[mode.connections]
enabled = true

[mode.channels]
enabled = true

[mode.packets]
enabled = true
clear_interval = 100
clear_on_start = true
tx_confirmation = true

[telemetry]
enabled = true
host = '<IP_ADDRESS>'
port = 3001

[[chains]]
id = 'ibc-0'
rpc_addr = 'http://localhost:27000'
grpc_addr = 'http://localhost:27002'
websocket_addr = 'ws://localhost:27000/websocket'
rpc_timeout = '15s'
account_prefix = 'cosmos'
key_name = 'wallet'
store_prefix = 'ibc'
gas_price = { price = 0.01, denom = 'stake' }
max_gas = 10000000
clock_drift = '5s'
trusting_period = '14days'
trust_threshold = { numerator = '1', denominator = '3' }

[[chains]]
id = 'ibc-1'
rpc_addr = 'http://localhost:27010'
grpc_addr = 'http://localhost:27012'
websocket_addr = 'ws://localhost:27010/websocket'
rpc_timeout = '15s'
account_prefix = 'cosmos'
key_name = 'wallet'
store_prefix = 'ibc'
gas_price = { price = 0.01, denom = 'stake' }
max_gas = 10000000
clock_drift = '5s'
trusting_period = '14days'
trust_threshold = { numerator = '1', denominator = '3' }

Setup:

gm start
gm hermes keys
hermes create channel --a-chain ibc-0 --b-chain ibc-1 --a-port transfer --b-port transfer --new-client-connection --yes

Test:

hermes start
hermes tx ft-transfer --dst-chain ibc-0 --src-chain ibc-1 --src-port transfer --src-channel channel-0 --amount 100 --timeout-seconds 120
hermes tx ft-transfer --dst-chain ibc-0 --src-chain ibc-1 --src-port transfer --src-channel channel-0 --amount 100 --timeout-seconds 3

The first transfer should be successful and the second should timeout, so the metrics should be:
acknowledgement_events{chain="ibc-1",channel="channel-0",counterparty="ibc-0",port="transfer"} 1
send_packet_events{chain="ibc-1",channel="channel-0",counterparty="ibc-0",port="transfer"} 2
timeout_events{chain="ibc-0",channel="channel-0",counterparty="ibc-1",port="transfer"} 1

Client update metric and total messages
Update Hermes config.toml to have trusted period = '2minutes' for chain ibc-0, or use the following config.toml:

config.toml
[global]
log_level = 'info'

[mode]

[mode.clients]
enabled = true
refresh = true
misbehaviour = true

[mode.connections]
enabled = true

[mode.channels]
enabled = true

[mode.packets]
enabled = true
clear_interval = 100
clear_on_start = true
tx_confirmation = true

[telemetry]
enabled = true
host = '<IP_ADDRESS>'
port = 3001

[[chains]]
id = 'ibc-0'
rpc_addr = 'http://localhost:27000'
grpc_addr = 'http://localhost:27002'
websocket_addr = 'ws://localhost:27000/websocket'
rpc_timeout = '15s'
account_prefix = 'cosmos'
key_name = 'wallet'
store_prefix = 'ibc'
gas_price = { price = 0.01, denom = 'stake' }
max_gas = 10000000
clock_drift = '5s'
trusting_period = '2minutes'
trust_threshold = { numerator = '1', denominator = '3' }

[[chains]]
id = 'ibc-1'
rpc_addr = 'http://localhost:27010'
grpc_addr = 'http://localhost:27012'
websocket_addr = 'ws://localhost:27010/websocket'
rpc_timeout = '15s'
account_prefix = 'cosmos'
key_name = 'wallet'
store_prefix = 'ibc'
gas_price = { price = 0.01, denom = 'stake' }
max_gas = 10000000
clock_drift = '5s'
trusting_period = '14days'
trust_threshold = { numerator = '1', denominator = '3' }

Setup:

gm start
gm hermes keys
hermes create channel --a-chain ibc-0 --b-chain ibc-1 --a-port transfer --b-port transfer --new-client-connection --yes

Test:

hermes start
wait for 1 refresh, this is shown by the output INFO ThreadId(30) refresh{client=07-tendermint-0 src_chain=ibc-0 dst_chain=ibc-1}: [ibc-0 -> ibc-1:07-tendermint-0] client requires refresh
Confirm on http://localhost:3001/metrics that there has been 1 ClientUpdate message: client_updates_submitted{chain="ibc-1",client="07-tendermint-0"} 1 and 1 total message for chain ibc-1: total_messages_submitted{chain="ibc-1"} 1
hermes tx conn-init --dst-chain ibc-0 --src-chain ibc-1 --dst-client 07-tendermint-0 --src-client 07-tendermint-0
Wait for the connection to be completely created, this is shown by the output: INFO ThreadId(228) connection{connection=connection::connection-1:ibc-0->ibc-1}: connection handshake step completed with events: OpenConfirmConnection(...

The instance of hermes start has finished opening the connection by sending the following messages:

ClientUpdate to ibc-0
ClientUpdate + OpenTryConnection to ibc-1
ClientUpdate to ibc-1
ClientUpdate + OpenAckConnection to ibc-0
ClientUpdate + OpenAckConnection to ibc-1

Taking into account the ClientUpdate from the refresh the metrics should be:
client_updates_submitted{chain="ibc-0",client="07-tendermint-0"} 2
client_updates_submitted{chain="ibc-1",client="07-tendermint-0"} 4

total_messages_submitted{chain="ibc-0"} 3
total_messages_submitted{chain="ibc-1"} 6

PR author checklist:

[x] Added changelog entry, using unclog.
[ ] ~Added tests: integration (for Hermes) or unit/mock tests (for modules).~
[x] Linked to GitHub issue.
[x] Updated code comments and documentation (e.g., docs/).
[ ] Tagged one reviewer who will be the one responsible for shepherding this PR.

Reviewer checklist:

[ ] Reviewed Files changed in the GitHub PR explorer.
[ ] Manually tested (in case integration/unit/mock tests are absent).

Should we include discovery dependencies in this PR ? @ljoss17

Should we include discovery dependencies in this PR ? @ljoss17

As we usually update the guide in the same PR where the feature is added/updated, I think it is best to update the guide with the dependencies in the PR introducing them, https://github.com/informalsystems/ibc-rs/pull/2505.


metrics: Add remote parallel bandwidth test

This will measure parallel bandwidth (-P4) with swarm and iperf3.
Fixes #712
Signed-off-by: Gabriela Cervantes<EMAIL_ADDRESS>

lgtm

@iphutch can you please take a look?

lgtm


[Feat] Update to ts-morph 19 and Angular 16

PR Checklist
Please check if your PR fulfills the following requirements:

[ ] The commit message follows Conventional Commits
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[X] Feature
[ ] Refactoring (no functional changes, no api changes)
[ ] Other... Please describe:

What is the current behavior?

The dependencies of the library are severely outdated. This PR updates them, including the update of ts-morph to the latest version. The demo and tests have also been fixed after the migration.
The only thing worth noting is the getDeclarationEditor function. I left a ts-ignore in it because after the TypeScript update, the types no longer match. However, the function still works as intended.
Closes #72, #22
What is the new behavior?
All dependencies of the library have been updated
Does this PR introduce a breaking change?

[ ] Yes
[x] No

@skoropadas thanks a lot for the contribution!


data-toggle='buttons' with Latest Bootstrap 3.3.5

Hi, I'm using bootstrap-sass gem.
And, I have a code like below.

          <input name="post[post_facebook]" type="hidden" value="0" />
          <input class="hidden" type="checkbox" value="1" name="post[post_facebook]" id="post_post_facebook" /> Share with Facebook

This uses 'button.js' to toggle button as active and checkbox.

My slim template code is ...
= bootstrap_form_for(post) do |f|
  = f.check_box :post_facebook, label: 'Share with Facebook', class: 'hidden',
     label_class: "btn btn-block btn-facebook #{'active' if f.object.post_facebook}"

From here is the main issue.
This toggle button works well with Bootstrap-sass <IP_ADDRESS>
but,
Not working with Bootstrap-sass 3.3.5.
This issue does not happen without below code.
<input name="post[post_facebook]" type="hidden" value="0" />
Does This input tag need for what?
Anyway This tag prevent Bootstrap's button.js feature.

Sorry.
<input name="post[post_facebook]" type="hidden" value="0" />  is default of Rails form.
That means Rails form generator can not use Bootstrap button.js ?
I don't know this issue depend on what....
I'll try a thought.

I have posted issue at twbs/bootstrap-sass.
https://github.com/twbs/bootstrap-sass/issues/923

I found cause of this issue because of https://github.com/twbs/bootstrap/issues/16693.
check this. which running with TB 3.3.5 latest.
https://jsfiddle.net/kntmrkm/xumxon1L/2/
label_class option generate label tag which include two input tag.
TB 3.3.4's button.js works this form. but 3.3.5's button.js does not work this style.
I think that which means label_class option should not includes <input name="post[post_facebook]" type="hidden" value="0" />.
How do you think?

As noted in the Bootstrap issue, the markup currently being produced is not valid HTML. The HTML5 validator complains:

The label element may contain at most one input, button, select, textarea, or keygen descendant.


Feature/improved doc

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 3 committers have signed the CLA.:white_check_mark: pdehnel:x: maweck:x: productionlineYou have signed the CLA already but the status is still pending? Let us recheck it.


blocking lookup timeout on travis

--- FAIL: TestKeyserverUpdate-2 (1.54s)
server_test.go:399: rpc error: code = 2 desc = "timed out while waiting for ratification"
Also happens in ThreeVerifiers test on travis. I have not managed to reproduce this locally.

Probably fixed by 658aeff04dac349e3a568c304bafe31debddb2d9 (see https://travis-ci.org/yahoo/coname/builds/77238982).


[Issue: #327] Enable parallel build on C++ extensions and docs update

Description
This PR enables "python setup.py install" to build C++ extensions in parallel. It also amends the documentation to state that Python 3.11 is supported and adds DALROOT as a requirement to be used on setup_sklearnex.py.
Authored-by: Lim, Ghim Boon<EMAIL_ADDRESS>Signed-off-by: Lim, Phey Phey<EMAIL_ADDRESS>Changes proposed in this pull request:

Modifications in setup.py to enable build_ext to be done in parallel thru ThreadPoolExecutor.
Updated INSTALL.md with the latest Python versions support available as well as included DALROOT as a pre-requisite for intall/develop/build for setup_sklearnex.py.

/intelci: run

I checked how build is parallelized with this PR, and it's still mostly sequential, but I guess it's because of dependencies structure between extensions.

/intelci: run

@GhimBoon  - there were fixes for windows side of internal ci. could you please rebase on latest master?

/intelci: run


I can't see my own profile neither other people at Vouching phase

I submitted my profile for getting vouched, and I am noticing I can't see my profile neither do other people, and actually I checked other people and I can't see some profiles. it says "An unexpected error has occurred."

Duplicate of https://github.com/Proof-Of-Humanity/proof-of-humanity-web/issues/268
Fixed by https://github.com/Proof-Of-Humanity/proof-of-humanity-web/pull/270


Documentation: Ubuntu Unity 22.04 on iMac + wakelock

Ubutu Unity 22.04 locks and turns off the screen (and forgets the screen brightness, which it always does on my iMac when the screen got turned off) after the set timeout even after running and not cancelling wakepy -s.
The "Suspend" system menu entry does nothing.

@Stehlampe2020  Was this already included in the PR's you provided?

@np-8 I included my research there, yes.
I didn't close this issue because I just forgot about it, sorry...

No problem and thanks!


EID-2109 Remove eIDAS from SAML-libs

We are no longer part of the EU eIDAS regulation, so remove eIDAS common utility code that should no longer be referenced in Hub, Stub IDP, Test RP, MSA and VSP.

Commit to remove eIDAS classes
Get affected classes and tests from above to compile and pass

You can test this PR against verify-hub by publishing this branch as a snapshot using BUILD_NUMBER=SNAPSHOT ./gradlew clean build publishToMavenLocal -x test, which will place it in your local maven repository. Then use this snapshot build in the Hub gradle guided by the recipe in this commit.

I've pulled this version of saml-libs into all the affected components. All of them compile and their tests pass except stub-idp.
I found this PR for stub-idp and tried to compile it with this version of saml-lib, but it fails to compile. It looks like stub-idp is using a version of Mockito which is a dependecy of saml-lib. I suspect the fix it to update the stub-idp PR though, so 👍 .


Does anyone in China have problems downloading when init() first run? - for inputs

Hello, because of my location, the speed of accessing GitHub is very slow. After I install RPA, it will automatically download tagui_ window.zip It always times out here. I will download it in this directory and download it again. Is there a solution

Hey afishpro,
I can not find an error in your log. Hope I get it right, you assume that your internet connection is too slow? If you do not want to execute the download function from tagui.py, you can still install it manually. But I personally would avoid these manual steps.
In your case:

download https://github.com/tebelorg/Tump/releases/download/v1.0.0/TagUI_Windows.zip
extract archive at C:\Users\Administrator\AppData\Roaming
install vcredist_x86 and php

Hope I was able to help you.

Thank you very much for your answer. I'll try again.

嘿afishpro，
我在您的日志中找不到错误。希望我做对了，您认为您的互联网连接速度太慢？如果您不想从tagui.py执行下载功能，仍然可以手动安装。但是我个人会避免执行这些手动步骤。
在您的情况下：

下载https://github.com/tebelorg/Tump/releases/download/v1.0.0/TagUI_Windows.zip
在C：\ Users \ Administrator \ AppData \ Roaming中提取存档
安装vcredist_x86和php

如果您在另一台计算机上有更好的连接，则也可以通过r.pack（）将其下载到那里，然后将该update.py复制到互联网连接不良的计算机上，然后通过python update.py执行它。
希望我能为您提供帮助。

Thank you very much for your answer. This is because the country you are in is blocked from downloading the package. I'll try again here.

Thanks @fi-do and @afishpro ! I've renamed the issue title so other users in China can take a look and share their solutions how they download and use the package in China. There should be other users with same problem. Maybe use proxy?

Thanks @fi-do and @afishpro ! I've renamed the issue title so other users in China can take a look and share their solutions how they download and use the package in China. There should be other users with same problem. Maybe use proxy?

yes, using a proxy can solve this problem, I don’t know if it can be directly packaged in the pip download, there is no way in China, there is gfw

Hi @afishpro proxy can be set in environment variables or directly in Python. Can you see if the following work for you?
https://stackoverflow.com/questions/11726881/how-to-set-an-http-proxy-in-python-2-7
https://stackoverflow.com/questions/31639742/how-to-pass-all-pythons-traffics-through-a-http-proxy
This is a personal project, but for the upstream TagUI project, there is a weekly Zoom call at Thursday 4pm (UTC+8), which you can join to troubleshoot this together, since this seems probable to be an issue with TagUI if user is unable to download files from GitHub. Here's the Zoom meeting invitation URL - kelaberetiv/TagUI#914

Adding on, the download() function uses the urllib / urllib.request modules which will use the environment proxy setting.

There's also a Telegram group chat for TagUI and RPA for Python users, if you use Telegram - https://t.me/rpa_chat


[WIP] feat: different registries for different DARs

Different DARs could point to different SchemaAPIs

This was a PoC, Closing


Need help in installing

I am having difficulty in understanding the installation process.  I got stuck on this codes
mkdir build && cd build && cmake /path/to/source
cmake --build .
and
sudo make install

Run command to install dependencies on your computer

sudo apt install build-essential cmake libcups2-dev libcupsimage2-dev

Run command

mkdir build && cd build && cmake </path/to/source>

</path/to/source> should be replaced with the path where you downloaded the zip file. To find the path you can open the extracted folder inside your terminal and type pwd

While inside build folder, build contents with

cmake --build .

Run install command to add driver to OS

sudo make install


Added missing files in mephisto app

Description
Added those missing files in mephisto static html app. Deleted gitignore file which is the cause of the file missing issue.
Ref: https://github.com/facebookresearch/Mephisto/tree/master/examples/simple_static_task
Type of change
Please check the options that are relevant.

[x] Bug fix (non-breaking change that fixes an issue)
[ ] Proposes a change (non-breaking change that isn't necessarily a bug)
[ ] Refactor
[ ] New feature (non-breaking change that adds a new functionality)
[ ] Breaking change (fix or feature that would break some existing functionality downstream)
[ ] This is a unit test
[ ] Documentation only change

Type of requested review

[ ] I want a thorough review of the implementation.
[x] I want a high level review.
[ ] I want a deep design review.

Testing
Tested locally and passed.
Checklist:

[x] I have performed manual end-to-end testing of the feature in my environment.
[ ] I have added Docstrings and comments to the code.
[ ] I have made changes to existing documentation where needed.
[ ] I have added tests that show that the PR is functional.
[ ] New and existing unit tests pass locally with my changes.
[x] I have added relevant collaborators to review the PR before merge.

Let's not check in data files. The current parameters are a placeholder for when we want to route job data. I added the .gitignore to avoid checking this in.
You can create the empty extra_refs directory, but can you add the .gitignore back? We can and should add to README.md instructions on how to populate the data.csv file.

Done

Let's not check in data files. The current parameters are a placeholder for when we want to route job data. I added the .gitignore to avoid checking this in.
You can create the empty extra_refs directory, but can you add the .gitignore back? We can and should add to README.md instructions on how to populate the data.csv file.

Done. Let's add instructions in a separate PR.

I still see crowdsourcing/droidlet_static_html_task/data.csv in the files modified by this PR.


improvements for Wifi shield

while reading through the code to find out how it deals with the (mostly undocumented) wifi shield, I have made some updated to the documentation.

Furthermore, testing the code with wifi+cyton I also made some small code changes. It now runs, but the time courses are not yet correct, i.e. all numbers are the same, and don't match the signals I can see with the same hardware in the OpenBCI GUI application.

Codecov Report

Merging #119 into master will decrease coverage by 0.16%.
The diff coverage is 0%.

@@            Coverage Diff            @@
##           master    #119      +/-   ##
=========================================
- Coverage   37.46%   37.3%   -0.17%
=========================================
  Files           9       9
  Lines        1588    1595       +7
=========================================
  Hits          595     595
- Misses        993    1000       +7

Impacted Files
Coverage Δ

openbci/ganglion.py
13.86% <ø> (ø)
:arrow_up:

openbci/cyton.py
47.13% <0%> (-0.38%)
:arrow_down:

openbci/wifi.py
20.65% <0%> (-0.19%)
:arrow_down:

Continue to review full report at Codecov.

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


[Bug] - Content creator card not appearing and weird behaviour on Creators view

Describe the bug
After the submission and merge of the content creator card, apparently my card is showing my feeds and my content is listed in the feed. That's good
However, I'm no able to see my card in the creators view, I've tried loged in and in incognito mode, and in Edge, Chrome and Firefox.
I appeared only once, then after refreshing I disappeared...
In mobile phone I found the same behaviour: I appeared once, and in the next refresh I disappeared, now in fact each time I try to refresh the page keeps loading infinitely.
More than a problem of not showing my card, I report this due to the fact that there is erratic behavior on this screen.
Any cache problem in the response? something like that?
To Reproduce
Steps to reproduce the behavior:

Go to 'Creators'
Click on 'Browse all XXX Creators,' 189 in the moment of the bug report
Latest one appears in the top
My card is not in the initial preview nor there

Expected behavior
In each navigation to this view the same cards should appear.
Screenshots

Desktop (please complete the following information):

Windows 11.
Browser: Edge, Chrome and Firefox.
Version: All of them up to date.

Smartphone (please complete the following information):

OS: Android 13
Browser Edge and Chrome
Version: All of them up to date.

should be sorted :)

Hi @DeeJayTC !
Thanks for your reply, now I'm able to see it, but not before, even trying to filter...
In addition, I found more weird behaviours in this screen that I reported trying to help to improve the system.
I hope you find it useful though, it's indeed your platform so your rules anyway...
Regards


Add documentation based on readthedocs

Examples, tutorials, usage of:

Parameters
BlueiceDataGenerator
StatisticalModel, particularly the degree of freedom of required attributes and functions, like the type of data
BlueiceExtendedModel

and required format of statistical model and runner configuration:

what keys are needed
rate and shape parameters
parameter of interest

We now have BlueiceExtendedModel which is designed based on blueice. It will be beneficial to clearly describe the structure of BlueiceExtendedModel instance, like its attributes and attributes of its attributes. I believe some of them should be in blueices's documentation, but also good to first implement here.

I think one of the very important pieces of information that we should document well is how to properly write a config file for the BlueiceExtendedModel and what options you have.


[run] can't switch to miles

Affected hardware version
Bangle 2
Your firmware version
2v14
The bug
The units seem to be stuck in km. I am in the us and it is a pain to have to constantly convert. I also have the units in the settings set to miles although it seems to do nothing.

This seems to be the exact oposite to #1933

I also have the units in the settings set to miles although it seems to do nothing.

In which settings?
Did you install the Languages app? Because the run app uses the language settings from that, so if you installed the US locale you'd get miles.

That switches it to yards/miles instead of meters/miles

I have made pull request #1976 which switches yards to meters.


Installation fails

When I run the LFTP4WIN-installer.cmd file, the script stops early after only displaying the following

I am on Windows 11 home x64
If any other info is needed I will happily provide

Hm. Im looking around but dont see anything. Windows defender is all I have and it hasnt really had any special setup. Is there a certain part of it that would cause this?

Oh I think I see the issue. The path is not properly resolving for these downloaded files. Its saving them as a whole filename in the root dir

The files that are downloaded and missing from system/tmp are those ones with the weird names. I just edited the script to not delete them, and moved them into the folder. The script then ran fine and I was able to use the program.
I have no idea why this would be happening, but this has at least solved my issue for the moment.


JUnit Parses generating empty file [CirlceCI]

RuboCop 0.80.0 is not generating the correct file output with the new JUnit formatter.

Expected behavior
I expected the generated files for RuboCop JUnit to contain at least an entry to allows me to report back to CircleCI the amount of files inspected and no offenses found
Actual behavior
Right now the JUnit report is empty, and CircleCI doesn't accept it as a valid test-result report.
Steps to reproduce the problem
Run RuboCop with the following configuration:
bundle exec rubocop --format junit --out tmp/test-results/rubocop/results.xml
This products an empty XML file:
<?xml version='1.0'?>
<testsuites>
  <testsuite name='rubocop'/>
</testsuites>

RuboCop version
0.80.0
$ [bundle exec] rubocop -V
0.80.0 (using Parser <IP_ADDRESS>, running on ruby 2.6.5 x86_64-darwin19)

As example


"Session initialization already happened"

Hi,
I have an update on issue:
Cordova 653
This error, sometimes, seems to occur when Location permission is disabled.
I can see that this issue is widespread also in android:
Android 839
I hope this info can help troubleshoot this problem.
Thanks!
env info
Ionic:
Ionic CLI                     : 5.2.4
Ionic Framework               : @ionic/angular 4.7.4
@angular-devkit/build-angular : 0.802.1
@angular-devkit/schematics    : 8.2.1
@angular/cli                  : 8.2.1
@ionic/angular-toolkit        : 2.0.0
Cordova:
Cordova CLI       : 9.0.0<EMAIL_ADDRESS>

Did you find any resolution to this issue?


Adds support for missing Log4j 1.x properties and fixes default values

The properties of the generated appenders are not always the same as in Log4j 1.x. This PR:

adds default values to all Log4j 1.x configuration builders,
adds a couple of properties that were missing in the builders,
expands the test suite to include the case of all properties unspecified and all properties set to a value different from the default.

Problems with default values cause issues as in this SO question.

@garydgregory, would you be interested in taking this on as a part of your ongoing log4j-1.2-bridge crusade?

@vy I might be able to take a look this weekend.


Docker swarm join-token empty

I ran into a really weird issue last night with our docker swarm instance. One of our servers filled its disk space with logs which caused one of our servers to fully fill up (this caused the issue). Once that happened, our entire docker swarm system stopped responding, all workers and managers to a point they would not communicate with each other and I kept getting the error not enough managers online. I checked to make sure the managers were all online and could communicate and they could. At that point I figured it would probably be good to just reset the quorum, so I ran the command docker swarm init --force-new-cluster --advertise-addr node01:2377 (with the proper credentials). It said it was successful and to promote other workers to managers, but it would not let me. When I ran the command docker swarm join-token worker, nothing was returned. It is like the key used to connect all the servers to the swarm just disappeared. In the end I had to clear our the swarm completely and re-build every single service. Has anyone experienced this before? I still have a few servers from the old swarm if more info is needed to help debug this.

First off, it wasn't docker itself that filled up the logs, right?
Second, my understanding is that the issue is this:

Only one of many manager nodes runs out of disk space
Quorum in the cluster is lost, because there aren't enough managers online. Unexpected, because there was only one manager malfunctioning.
A new cluster was forced.
No join token was produced.

Is this the correct sequence of events?
It would be helpful, if there's not likely to be sensitive information, to get the output of the docker daemon logs that have module= in them, which would indicate that they're swarmkit logs.

Yes, docker did not fill up the logs but the issue came up when the server ran out of disk space. That is also the correct sequence and the containers in the swarm all showed as Offline.
There are a lot of logs, but these are the ones which I believe you are looking for:
May 30 04:06:47 cersei-3 dockerd[4658]: time="2018-05-30T04:06:47.438838561Z" level=info msg="Stopping manager" module=node node.id=pxh1bm6nnfzq7ijfdc76jz4d5 May 30 04:06:47 cersei-3 dockerd[4658]: time="2018-05-30T04:06:47.438897453Z" level=info msg="shutting down certificate renewal routine" module=node/tls node.id=pxh1bm6nnfzq7ijfdc76jz4d5 node.role=swarm-manager May 30 04:06:47 cersei-3 dockerd[4658]: time="2018-05-30T04:06:47.439483476Z" level=error msg="failed to remove node" error="rpc error: code = Aborted desc = dispatcher is stopped" method="(*Dispatcher).Session" node.id=pxh1bm6nnfzq7ijfdc76jz4d5 node.session=qi6shhtlv2skmlxwzddq8adk6 May 30 04:06:47 cersei-3 dockerd[4658]: time="2018-05-30T04:06:47.440260536Z" level=error msg="failed to receive changes from store watch API" error="rpc error: code = Internal desc = transport is closing" May 30 04:06:47 cersei-3 dockerd[4658]: time="2018-05-30T04:06:47.441433672Z" level=info msg="Manager shut down" module=node node.id=pxh1bm6nnfzq7ijfdc76jz4d5 May 30 04:06:47 cersei-3 dockerd[4658]: time="2018-05-30T04:06:47.442088111Z" level=info msg="Node ab9e3da49516/<IP_ADDRESS>, left gossip cluster" May 30 04:06:47 cersei-3 dockerd[4658]: time="2018-05-30T04:06:47.442150307Z" level=info msg="Node ab9e3da49516 change state NodeActive --> NodeFailed" May 30 04:06:47 cersei-3 dockerd[4658]: time="2018-05-30T04:06:47.442271082Z" level=info msg="Node ab9e3da49516/<IP_ADDRESS>, added to failed nodes list" May 30 04:06:47 cersei-3 kernel: IPVS: __ip_vs_del_service: enter May 30 04:06:47 cersei-3 dockerd[4658]: time="2018-05-30T04:06:47.449462829Z" level=info msg="Listening for connections" addr="[::]:2377" module=node node.id=pxh1bm6nnfzq7ijfdc76jz4d5 proto=tcp May 30 04:06:47 cersei-3 dockerd[4658]: time="2018-05-30T04:06:47.449691254Z" level=info msg="Listening for local connections" addr=/var/run/docker/swarm/control.sock module=node node.id=pxh1bm6nnfzq7ijfdc76jz4d5 proto=unix May 30 04:06:47 cersei-3 dockerd[4658]: time="2018-05-30T04:06:47.553591697Z" level=info msg="7590be75ae7e55ec became follower at term 2913" module=raft node.id=pxh1bm6nnfzq7ijfdc76jz4d5 May 30 04:06:47 cersei-3 dockerd[4658]: time="2018-05-30T04:06:47.553676299Z" level=info msg="newRaft 7590be75ae7e55ec [peers: [1e855842b436828,16cde2c02371a125,1a4d5973c5e2d058,2c9da0b7b93c5fd2,30e5d1a1784d2ff5,40b4ae441823ec37,7e4f6420fe54d975], term: 2913, commit: 1840979, applied: 1840000, lastindex: 1840979, lastterm: 2913]" module=raft node.id=pxh1bm6nn May 30 04:06:48 cersei-3 dockerd[4658]: time="2018-05-30T04:06:48.050197438Z" level=info msg="7590be75ae7e55ec is starting a new election at term 2913" module=raft node.id=pxh1bm6nnfzq7ijfdc76jz4d5 May 30 04:06:48 cersei-3 dockerd[4658]: time="2018-05-30T04:06:48.050640787Z" level=info msg="7590be75ae7e55ec became candidate at term 2914" module=raft node.id=pxh1bm6nnfzq7ijfdc76jz4d5 May 30 04:06:48 cersei-3 dockerd[4658]: time="2018-05-30T04:06:48.050872095Z" level=info msg="7590be75ae7e55ec received MsgVoteResp from 7590be75ae7e55ec at term 2914" module=raft node.id=pxh1bm6nnfzq7ijfdc76jz4d5 May 30 04:06:48 cersei-3 dockerd[4658]: time="2018-05-30T04:06:48.051087321Z" level=info msg="7590be75ae7e55ec became leader at term 2914" module=raft node.id=pxh1bm6nnfzq7ijfdc76jz4d5 May 30 04:06:48 cersei-3 dockerd[4658]: time="2018-05-30T04:06:48.051293799Z" level=info msg="raft.node: 7590be75ae7e55ec elected leader 7590be75ae7e55ec at term 2914" module=raft node.id=pxh1bm6nnfzq7ijfdc76jz4d5 May 30 04:06:48 cersei-3 dockerd[4658]: time="2018-05-30T04:06:48.052175005Z" level=error msg="error creating cluster object" error="name conflicts with an existing object" module=node node.id=pxh1bm6nnfzq7ijfdc76jz4d5 May 30 04:06:48 cersei-3 dockerd[4658]: time="2018-05-30T04:06:48.052225904Z" level=error msg="failed to create predefined network bridge" error="name conflicts with an existing object" module=node node.id=pxh1bm6nnfzq7ijfdc76jz4d5 May 30 04:06:48 cersei-3 dockerd[4658]: time="2018-05-30T04:06:48.052310807Z" level=error msg="failed to create predefined network host" error="name conflicts with an existing object" module=node node.id=pxh1bm6nnfzq7ijfdc76jz4d5 May 30 04:06:48 cersei-3 dockerd[4658]: time="2018-05-30T04:06:48.138459843Z" level=error msg="failed allocating task z50tmwzkuyj0m3t4pduz9f284 during init" error="failed to allocate network IP for task z50tmwzkuyj0m3t4pduz9f284 network 3hmrfrizrkfzgnfkpxp6qqt91: could not allocate IP from IPAM: Address already in use" module=node node.id=pxh1bm6nnfzq7ijfdc76 May 30 04:06:48 cersei-3 dockerd[4658]: time="2018-05-30T04:06:48.171071192Z" level=error msg="failed allocating task z50tmwzkuyj0m3t4pduz9f284 during init" error="failed to allocate network IP for task z50tmwzkuyj0m3t4pduz9f284 network 3hmrfrizrkfzgnfkpxp6qqt91: could not allocate IP from IPAM: Address already in use" module=node node.id=pxh1bm6nnfzq7ijfdc76 May 30 04:06:49 cersei-3 dockerd[4658]: time="2018-05-30T04:06:49Z" level=info msg="shim reaped" id=dc4f4266dbdf13c2e6ec82bd8023b49b5ff459c07eb895e18fe5c8bf9aebf1b3 module="containerd/tasks" May 30 04:06:49 cersei-3 dockerd[4658]: time="2018-05-30T04:06:49.520590420Z" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete" May 30 04:06:49 cersei-3 kernel: docker0: port 2(veth750fee2) entered disabled state May 30 04:06:49 cersei-3 kernel: veth73e4929: renamed from eth0 May 30 04:06:49 cersei-3 kernel: docker0: port 2(veth750fee2) entered disabled state May 30 04:06:49 cersei-3 kernel: device veth750fee2 left promiscuous mode May 30 04:06:49 cersei-3 kernel: docker0: port 2(veth750fee2) entered disabled state May 30 04:06:49 cersei-3 kernel: br0: port 2(veth0) entered disabled state May 30 04:06:49 cersei-3 kernel: br0: port 1(vxlan0) entered disabled state May 30 04:06:49 cersei-3 kernel: ov-001001-3hmrf: renamed from br0 May 30 04:06:49 cersei-3 kernel: device veth0 left promiscuous mode May 30 04:06:49 cersei-3 kernel: ov-001001-3hmrf: port 2(veth0) entered disabled state May 30 04:06:49 cersei-3 kernel: device vxlan0 left promiscuous mode May 30 04:06:49 cersei-3 kernel: ov-001001-3hmrf: port 1(vxlan0) entered disabled state May 30 04:06:49 cersei-3 kernel: vx-001001-3hmrf: renamed from vxlan0 May 30 04:06:49 cersei-3 systemd-udevd[7514]: Could not generate persistent MAC address for vx-001001-3hmrf: No such file or directory May 30 04:06:49 cersei-3 kernel: vethc63433f: renamed from veth0 May 30 04:06:49 cersei-3 systemd-udevd[7535]: Could not generate persistent MAC address for vethc63433f: No such file or directory May 30 04:06:49 cersei-3 kernel: veth7c13a0c: renamed from eth1 May 30 04:06:50 cersei-3 dockerd[4658]: time="2018-05-30T04:06:50.622859291Z" level=warning msg="failed to deactivate service binding for container haproxy.pxh1bm6nnfzq7ijfdc76jz4d5.ftle13j0bm23utdzahakfsgfg" error="No such container: haproxy.pxh1bm6nnfzq7ijfdc76jz4d5.ftle13j0bm23utdzahakfsgfg" module=node/agent node.id=pxh1bm6nnfzq7ijfdc76jz4d5 May 30 04:06:52 cersei-3 dockerd[4658]: time="2018-05-30T04:06:52.624354279Z" level=warning msg="Peer operation failed:Unable to find the peerDB for nid:3hmrfrizrkfzgnfkpxp6qqt91 op:&{3 3hmrfrizrkfzgnfkpxp6qqt91  [] [] [] [] false false false DeleteNetwork}" May 30 04:07:10 cersei-3 systemd-udevd[7675]: Could not generate persistent MAC address for veth1c22938: No such file or directory May 30 04:07:10 cersei-3 kernel: device veth1c22938 entered promiscuous mode May 30 04:07:10 cersei-3 kernel: IPv6: ADDRCONF(NETDEV_UP): veth1c22938: link is not ready May 30 04:07:10 cersei-3 systemd-udevd[7673]: Could not generate persistent MAC address for veth6445744: No such file or directory May 30 04:07:10 cersei-3 kernel: docker0: port 2(veth1c22938) entered disabled state May 30 04:07:10 cersei-3 kernel: device veth1c22938 left promiscuous mode May 30 04:07:10 cersei-3 kernel: docker0: port 2(veth1c22938) entered disabled state May 30 04:07:10 cersei-3 dockerd[4658]: time="2018-05-30T04:07:10.179533211Z" level=error msg="49269cdcee79565de737a95bc860eb991e3d6fdd76df8189689e86ac130789b3 cleanup: failed to delete container from containerd: no such container" May 30 04:07:10 cersei-3 systemd-udevd[7775]: Could not generate persistent MAC address for vethc49be85: No such file or directory May 30 04:07:10 cersei-3 kernel: device vethc49be85 entered promiscuous mode May 30 04:07:10 cersei-3 kernel: IPv6: ADDRCONF(NETDEV_UP): vethc49be85: link is not ready May 30 04:07:10 cersei-3 kernel: docker0: port 2(vethc49be85) entered forwarding state May 30 04:07:10 cersei-3 kernel: docker0: port 2(vethc49be85) entered forwarding state May 30 04:07:10 cersei-3 systemd-udevd[7774]: Could not generate persistent MAC address for veth9bf500c: No such file or directory May 30 04:07:10 cersei-3 kernel: IPVS: Creating netns size=2192 id=10 May 30 04:07:10 cersei-3 kernel: br0: renamed from ov-001001-3hmrf May 30 04:07:10 cersei-3 systemd-udevd[7855]: Could not generate persistent MAC address for vx-001001-3hmrf: No such file or directory May 30 04:07:10 cersei-3 kernel: vxlan0: renamed from vx-001001-3hmrf May 30 04:07:10 cersei-3 kernel: device vxlan0 entered promiscuous mode May 30 04:07:10 cersei-3 kernel: br0: port 1(vxlan0) entered forwarding state May 30 04:07:10 cersei-3 kernel: br0: port 1(vxlan0) entered forwarding state May 30 04:07:10 cersei-3 systemd-udevd[7887]: Could not generate persistent MAC address for veth1e799b1: No such file or directory May 30 04:07:10 cersei-3 kernel: veth0: renamed from veth523bd6b May 30 04:07:10 cersei-3 kernel: device veth0 entered promiscuous mode May 30 04:07:10 cersei-3 kernel: br0: port 2(veth0) entered forwarding state May 30 04:07:10 cersei-3 kernel: br0: port 2(veth0) entered forwarding state May 30 04:07:10 cersei-3 dockerd[4658]: time="2018-05-30T04:07:10Z" level=info msg="shim docker-containerd-shim started" address="/containerd-shim/moby/49269cdcee79565de737a95bc860eb991e3d6fdd76df8189689e86ac130789b3/shim.sock" debug=false module="containerd/tasks" pid=7938 May 30 04:07:10 cersei-3 kernel: IPVS: Creating netns size=2192 id=11 May 30 04:07:10 cersei-3 kernel: eth0: renamed from veth9bf500c May 30 04:07:10 cersei-3 kernel: IPv6: ADDRCONF(NETDEV_CHANGE): vethc49be85: link becomes ready May 30 04:07:10 cersei-3 kernel: br0: port 2(veth0) entered disabled state May 30 04:07:10 cersei-3 kernel: eth1: renamed from veth1e799b1 May 30 04:07:10 cersei-3 kernel: br0: port 2(veth0) entered forwarding state May 30 04:07:10 cersei-3 kernel: br0: port 2(veth0) entered forwarding state May 30 04:07:25 cersei-3 kernel: docker0: port 2(vethc49be85) entered forwarding state May 30 04:07:25 cersei-3 systemd[1]: Starting Cleanup of Temporary Directories... May 30 04:07:25 cersei-3 systemd-tmpfiles[8030]: [/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log", ignoring. May 30 04:07:25 cersei-3 systemd[1]: Started Cleanup of Temporary Directories. May 30 04:07:25 cersei-3 kernel: br0: port 1(vxlan0) entered forwarding state May 30 04:07:25 cersei-3 kernel: br0: port 2(veth0) entered forwarding state
haproxy is the name of our haproxy container

I'm seeing this issue too.

I believe we're seeing this issue as well.

Anyone have an update on this?

Same problem for me. forced new cluster and didn't receive a token after executing
docker swarm join-token worker
After much trying for me did work:

execute a leave on every single node docker swarm leave
rm everything below  /var/lib/docker/swarm on your old/new manager
maybe restart docker on manager or even the whole machine
re-init your swarm docker swarm init --advertise-addr $(hostname -I | cut -d' ' -f1)
now you get your token after calling docker swarm join-token worker

I experienced exactly the same issue. A swarm lost quorum on AWS because an auto scaling group was a bit too ambitious. Was left with 1 nominally functioning manager that showed all the desired swarm state: services and configs, but would not produce a join token either directly or after a --force-new-cluster.
Even after successfully executing --force-new-cluster, docker info showed "IsManager: false", but commands like node ls, service ls etc. succeed.


docs-bug(Google Maps): how do you disable the default UI in Angular?

Documentation Feedback
I cannot find any example of the equivalent for this function:
https://developers.google.com/maps/documentation/javascript/examples/control-disableUI?hl=en

It fails or something is not exposed.
Affected documentation page
https://github.com/angular/components/tree/master/src/google-maps#readme

You should be able to use [options]={disableDefaultUI: true}.

Hi @crisbeto, this should be added in the documentation as suggested.


[html-report] Add panning and wheel zoom for diagram

add Ctrl + wheel zoom in/out for diagram only, instead of whole page
add panning by mouse left click over the diagram

Merged - thanks for the PR!


error Not all dataset IDs found for bulk get request in logs

Describe the bug
It is unclear what the error: Not all dataset IDs found for bulk get request means, and I don't believe there is enough information to correctly work with this error message. It would be good to print a list of dataset ids it can not find.

I differentiated the Logger.error being for a [Dataset] or [Folder]
and add the list of missing IDs
Logger.error("notfound=" + notFound.toString)
to my: not-all-dataset-IDs-found branch
then forced notFound to have some values to see the new Logger.errors:
2022-07-19 13:28:32,531 - [ERROR  ] - application - Not all dataset IDs found for [Folder] bulk get request
2022-07-19 13:28:32,532 - [ERROR  ] - application - notfound=List(62d1daaa1a124a070ed356d9)
Not all dataset IDs found for [Folder] bulk get request
notfound=List(62d1daaa1a124a070ed356d9)
resetting notfound from:List()
to:List(62d1daaa1a124a070ed356d9)
2022-07-19 13:28:32,535 - [ERROR  ] - application - Not all dataset IDs found for [Folder] bulk get request
2022-07-19 13:28:32,536 - [ERROR  ] - application - notfound=List(62d1daaa1a124a070ed356d9)

In PR368 that was held up w/a CI bug that didn't have credentials for a github action to upload something for the mongodb container, but should be ok now

This got merged, so I'm closing the issue


Update TF backend to new request/response flow

@GuanLuo Mostly just an FYI for you. This doesn't have the input and output utilities we discussed. I will work on those in a separate PR. This does pass the simplev2 test.


Open .jwb file and get items of Y-value

Hi !
Thank you for your jws2txt and I could make jwb2txt with small mod of your code.
.jwb file contains multiple measurements file.
I could get multiple Y-Values but does not get  items of Y-value from .jwb file.
Do you have any idea ?
I could see the structure of .jwb files via 7zip file manager.
Aside of DataInfo, MeasInfo, BaseInfo, and other Info files observed, but I could not decord them.
I ' ll attach my copy of jwb2txt.py for some kind of helps...
jwb2txt.py.txt
Regards,

I found Y-data items are in DataInfo
Y-item_check.py.txt
.

Hi,
I haven’t met with jwb file, so if you could send me such file it would be helpful.
Best
Jozef
Z poważaniem
Józef Tran

Od: dinosauria123 @.>
Wysłane: Sunday, July 17, 2022 12:43:53 PM
Do: jzftran/jws2txt @.>
DW: Subscribed @.***>
Temat: [jzftran/jws2txt] Open .jwb file and get items of Y-value (Issue #1)
Hi !
Thank you for your jws2txt and I could make jwb2txt with small mod of your code.
.jwb file contains multiple measurements file.
I could get multiple Y-Values but does not get items of Y-value from .jwb file.
Do you have any idea ?
I could see the structure of .jwb files via 7zip file manager.
Aside of DataInfo, MeasInfo, BaseInfo, and other Info files observed, but I could not decord them.
I ' ll attach my copy of jwb2txt.py for some kind of helps...
jwb2txt.py.txthttps://github.com/jzftran/jws2txt/files/9127436/jwb2txt.py.txt
Regards,
—
Reply to this email directly, view it on GitHubhttps://github.com/jzftran/jws2txt/issues/1, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMQ2VYAIAIOIN4GZU6Q2OBDVUPPWTANCNFSM53ZRQCWA.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

Thank you for your reply.
I found this : https://www.researchgate.net/post/Batch_export_processing_of_Jasco_interval_data_files_jwb_to_csv
This file seems to have Xdata:240-260 interval5 Y-data:300-600 intarvals2
Another data is attached:
2022_05_14-1.zip
This file have Xdata:900-400 intervals 0.5 Y-data: 24.98 29.99 35 40 45 49.99 55 60.01
I hope this will help you.

Hi,
I had a look at the second file you sent (2022_05_14-1.zip), thankfully it’s still an OLE-type file. Thanks to the information, you provided, how many channels this file contains I was able to decode it.
In general, the data contained in Y-data is stored in a linear form, that is, one string contains information about all channels, let's say we did a measurement on channel A, B and C then the data in Y-data will be in the form:
AAAAAAAAAABBBBBBBBCCCCCCCC
I should have more time in the next week to refine the script.
Od: @.>
Wysłano: niedziela, 17 lipca 2022 17:46
Do: @.>
DW: Józef @.>; @.>
Temat: Re: [jzftran/jws2txt] Open .jwb file and get items of Y-value (Issue #1)
Thank you for your reply.
I found this : https://www.researchgate.net/post/Batch_export_processing_of_Jasco_interval_data_files_jwb_to_csv
This file seems to have Xdata:240-260 interval5 Y-data:300-600 intarvals2
Another data is attached:
2022_05_14-1.ziphttps://github.com/jzftran/jws2txt/files/9127989/2022_05_14-1.zip
This file have Xdata:900-400 intervals 0.5 Y-data: 24.98 29.99 35 40 45 49.99 55 60.01
I hope this will help you.
—
Reply to this email directly, view it on GitHubhttps://github.com/jzftran/jws2txt/issues/1#issuecomment-1186550486, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMQ2VYHIP3RTB5ZK5EDLXB3VUQTGTANCNFSM53ZRQCWA.
You are receiving this because you commented.Message ID: @.***>

Hi @dinosauria123,
I've implemented the possibility to batch convert *.jwb files.
Right now jws2txt requires the user to type the number of channels the file contains. E.g *.jws file from Jasco spectropolarimeter may contain 3 channels: CD signal, UV signal, and HT voltage. So if you want to convert this file to *.txt you will need to input 3 in the command line.

Thank you for your kindly helps.
I will check your code.


Add merging prs policy

I was chatting with everyday super hero @gigabo in Slack just now, and we thought it might make sense to document a policy around what's required to merge a pr.  Here's a quick first draft; let's make sure to get this one right so we are inclusive without risking instability.

This makes sense to me.  One approval and someone else merges.
@roblg, @sresant what do you think?  Anyone else?

What about for PRs submitted by maintainers?  Still two additional sign-offs?

BTW - I turned on branch protection for master and made reviews required.

Wondering if the two-sign-off requirement is too strict... 🤔

I am in support of this for the most part. I think we might want to have a stricter policy on breaking changes like that previous React 15 upgrade that we did not merge for the longest time. Maybe in that situation we should have a larger consensus, rather then just 1 maintainer. In general however for regular bug fixes and enhancements this makes sense and would take the load off the regular people doing the merging. I think we might want to add more documentation for the breaking changes aspect and provide a more strict policy for that. Additionally would be worth documenting how we do merging on this project.

@sresant Good call on the merging thing.  Basically: Squash and merge. 😁

Not sure how detailed we want the guidance to be, but I could imagine that there are areas of the code base where we'd definitely prefer a specific maintainer, e.g. the person who most recently made significant changes to that part of the code?
Thanks for writing this down @doug-wade. My strategy up until now has basically just been waiting for @gigabo to merge things. I hear that doesn't scale... :grin:

What about for PRs submitted by maintainers? Still two additional sign-offs?

Oh, my intention was that any pr can be merged with approval from any two maintainers, regardless of who the author is.

Maybe something like:

Documentation changes and bug fixes that include automated tests can be merged by a single maintainer who is not the author.  All other changes must be approved and merged by two maintainers who are not the author.

That should encourage automated test development in combination with the squash + merge strategy?

Sounds like this change is "good enough" for now.  I'll squash && merge


check presence of tekton crds before initializing controller manager

After analyzing results from https://prow.ci.openshift.org/view/gs/origin-ci-test/pr-logs/pull/redhat-appstudio_jvm-build-service/144/pull-ci-redhat-appstudio-jvm-build-service-main-jvm-build-service-in-repo-e2e/1553029354840133632 and in particluar https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/origin-ci-test/pr-logs/pull/redhat-appstudio_jvm-build-service/144/pull-ci-redhat-appstudio-jvm-build-service-main-jvm-build-service-in-repo-e2e/1553029354840133632/artifacts/jvm-build-service-in-repo-e2e/gather-extra/artifacts/pods/build-service_build-service-controller-manager-6b4d9565b8-wthpm_manager.log
I0729 15:04:05.852597       1 request.go:601] Waited for 1.019344803s due to client-side throttling, not priority and fairness, request: GET:https://<IP_ADDRESS>:443/apis/samples.operator.openshift.io/v1?timeout=32s
1.659107047555279e+09	INFO	controller-runtime.metrics	Metrics server is starting to listen	{"addr": "<IP_ADDRESS>:8080"}
1.6591070502596347e+09	INFO	setup	starting manager
1.6591070502599032e+09	INFO	Starting server	{"path": "/metrics", "kind": "metrics", "addr": "<IP_ADDRESS>:8080"}
1.6591070502599742e+09	INFO	Starting server	{"kind": "health probe", "addr": "[::]:8081"}
I0729 15:04:10.260058       1 leaderelection.go:248] attempting to acquire leader lease build-service/5483be8f.redhat.com...
I0729 15:04:10.270017       1 leaderelection.go:258] successfully acquired lease build-service/5483be8f.redhat.com
1.6591070502700915e+09	DEBUG	events	Normal	{"object": {"kind":"Lease","namespace":"build-service","name":"5483be8f.redhat.com","uid":"58c7399c-76d7-4ccc-bc42-56456bfcfd91","apiVersion":"coordination.k8s.io/v1","resourceVersion":"42595"}, "reason": "LeaderElection", "message": "build-service-controller-manager-6b4d9565b8-wthpm_df5eec08-942f-4005-bcfa-38883a776c43 became leader"}
1.6591070502702658e+09	INFO	Starting EventSource	{"controller": "component", "controllerGroup": "appstudio.redhat.com", "controllerKind": "Component", "source": "kind source: *v1alpha1.Component"}
1.659107050270296e+09	INFO	Starting Controller	{"controller": "component", "controllerGroup": "appstudio.redhat.com", "controllerKind": "Component"}
1.6591070502703881e+09	INFO	Starting EventSource	{"controller": "pipelinerun", "controllerGroup": "tekton.dev", "controllerKind": "PipelineRun", "source": "kind source: *v1beta1.PipelineRun"}
1.659107050270438e+09	INFO	Starting Controller	{"controller": "pipelinerun", "controllerGroup": "tekton.dev", "controllerKind": "PipelineRun"}
1.6591070529735832e+09	ERROR	controller-runtime.source	if kind is a CRD, it should be installed before calling Start	{"kind": "PipelineRun.tekton.dev", "error": "no matches for kind \"PipelineRun\" in version \"tekton.dev/v1beta1\""}
sigs.k8s.io/controller-runtime/pkg/source.(*Kind).Start.func1.1
	/opt/app-root/src/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.12.2/pkg/source/source.go:139
k8s.io/apimachinery/pkg/util/wait.runConditionWithCrashProtectionWithContext
	/opt/app-root/src/go/pkg/mod/k8s.io/apimachinery@v0.24.2/pkg/util/wait/wait.go:233
k8s.io/apimachinery/pkg/util/wait.poll
	/opt/app-root/src/go/pkg/mod/k8s.io/apimachinery@v0.24.2/pkg/util/wait/wait.go:580
k8s.io/apimachinery/pkg/util/wait.PollImmediateUntilWithContext
	/opt/app-root/src/go/pkg/mod/k8s.io/apimachinery@v0.24.2/pkg/util/wait/wait.go:545
sigs.k8s.io/controller-runtime/pkg/source.(*Kind).Start.func1
	/opt/app-root/src/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.12.2/pkg/source/source.go:132

where that error log repeats a bunch.
Also initiated https://coreos.slack.com/archives/C03KN2B47GU/p1659116350713419

oops, need permission to get CRDs:
1.659125423419057e+09	INFO	setup	get of taskrun CRD failed with: customresourcedefinitions.apiextensions.k8s.io "taskruns.tekton.dev" is forbidden: User "system:serviceaccount:build-service:build-service-controller-manager" cannot get resource "customresourcedefinitions" in API group "apiextensions.k8s.io" at the cluster scope

looking to see where that is defined for build-service

So the rbac is OK now and m change seemed to help:
.659127885198266e+09	INFO	setup	get of taskrun CRD failed with: customresourcedefinitions.apiextensions.k8s.io "taskruns.tekton.dev" not found
1.65912789020096e+09	INFO	setup	get of taskrun CRD failed with: customresourcedefinitions.apiextensions.k8s.io "taskruns.tekton.dev" not found
1.6591278952039292e+09	INFO	setup	get of taskrun CRD failed with: customresourcedefinitions.apiextensions.k8s.io "taskruns.tekton.dev" not found
1.6591279002013462e+09	INFO	setup	get of taskrun CRD failed with: customresourcedefinitions.apiextensions.k8s.io "taskruns.tekton.dev" not found
1.6591279052017095e+09	INFO	setup	get of taskrun CRD failed with: customresourcedefinitions.apiextensions.k8s.io "taskruns.tekton.dev" not found
1.6591279102032924e+09	INFO	setup	get of taskrun CRD failed with: customresourcedefinitions.apiextensions.k8s.io "taskruns.tekton.dev" not found
1.6591279152033405e+09	INFO	setup	get of taskrun CRD failed with: customresourcedefinitions.apiextensions.k8s.io "taskruns.tekton.dev" not found
1.6591279202020762e+09	INFO	setup	get of taskrun CRD failed with: customresourcedefinitions.apiextensions.k8s.io "taskruns.tekton.dev" not found
1.6591279252138891e+09	INFO	setup	get of taskrun CRD failed with: customresourcedefinitions.apiextensions.k8s.io "taskruns.tekton.dev" not found
1.659127930213155e+09	INFO	setup	get of taskrun CRD returned successfully
I0729 20:52:11.264439       1 request.go:601] Waited for 1.045511212s due to client-side throttling, not priority and fairness, request: GET:https://<IP_ADDRESS>:443/apis/discovery.k8s.io/v1beta1?timeout=32s
1.6591279330697448e+09	INFO	controller-runtime.metrics	Metrics server is starting to listen	{"addr": "<IP_ADDRESS>:8080"}
1.6591279359414845e+09	INFO	setup	starting manager
1.6591279359576643e+09	INFO	Starting server	{"path": "/metrics", "kind": "metrics", "addr": "<IP_ADDRESS>:8080"}
1.6591279359578154e+09	INFO	Starting server	{"kind": "health probe", "addr": "[::]:8081"}
I0729 20:52:15.957920       1 leaderelection.go:248] attempting to acquire leader lease build-service/5483be8f.redhat.com...
I0729 20:52:15.978059       1 leaderelection.go:258] successfully acquired lease build-service/5483be8f.redhat.com
1.6591279359782195e+09	DEBUG	events	Normal	{"object": {"kind":"Lease","namespace":"build-service","name":"5483be8f.redhat.com","uid":"dcc477d5-a09b-4bfe-aad7-186f36639c2f","apiVersion":"coordination.k8s.io/v1","resourceVersion":"49098"}, "reason": "LeaderElection", "message": "build-service-controller-manager-688845d6ff-k69v5_ced1347f-31b8-40a4-9e09-dd51eebc639f became leader"}
1.659127935978382e+09	INFO	Starting EventSource	{"controller": "component", "controllerGroup": "appstudio.redhat.com", "controllerKind": "Component", "source": "kind source: *v1alpha1.Component"}
1.6591279359784064e+09	INFO	Starting Controller	{"controller": "component", "controllerGroup": "appstudio.redhat.com", "controllerKind": "Component"}
1.6591279359790947e+09	INFO	Starting EventSource	{"controller": "pipelinerun", "controllerGroup": "tekton.dev", "controllerKind": "PipelineRun", "source": "kind source: *v1beta1.PipelineRun"}
1.659127935979131e+09	INFO	Starting Controller	{"controller": "pipelinerun", "controllerGroup": "tekton.dev", "controllerKind": "PipelineRun"}
1.6591279360796182e+09	INFO	Starting workers	{"controller": "pipelinerun", "controllerGroup": "tekton.dev", "controllerKind": "PipelineRun", "worker count": 1}
1.659127936079685e+09	INFO	Starting workers	{"controller": "component", "controllerGroup": "appstudio.redhat.com", "controllerKind": "Component", "worker count": 1}

but it seems like gitops thinks build-service is only "progressing" based on the e2e log
I'll stop here, wait to see what @mmorhun says on Monday.
just in case
/retest

e2e's are green now

all green e2e @mmorhun minus the doesn't mark as complete pipeline as code item that appears across repos
shall we merge?  or does a second look bring some more comments to mind?
thanks


TypeError: init() got an unexpected keyword argument 'codec'

fail to run pdf2text  pdfminer.six.
(base) C:\wamp64\www\pydev\pdfproc>py pdf2txt.py -d -o npm.html -t text 201806-exam.pdf
Traceback (most recent call last):
File "pdf2txt.py", line 136, in
if name == 'main': sys.exit(main())
File "pdf2txt.py", line 131, in main
outfp = extract_text(**vars(A))
File "pdf2txt.py", line 63, in extract_text
pdfminer.high_level.extract_text_to_fp(fp, **locals())
File "C:\Users\David\Anaconda3\lib\site-packages\pdfminer\high_level.py", line 70, in extract_text_to_fp
imagewriter=imagewriter)
TypeError: init() got an unexpected keyword argument 'codec'

the pdfminer.six was installed over the previous pdfminer.
uninstall and then reinstall the pdfminer.six solved the problem

thankyou! its working now.

the pdfminer.six was installed over the previous pdfminer.
uninstall and then reinstall the pdfminer.six solved the problem

thankyou! its working now.

its not working for me

its not working for me

1)Uninstall pdfminer and pdfminer.six
2) install pdfminer.six


Reader role allows user to edit child resources and commit to Git repo

In our testing, a resource Reader role (assigned at the parent Resource Group or Subscription scope) seems to allow allows user to edit child resources and commit to Git repo.
When our Data Factories are linked to a Git repo (in an Azure DevOps organization) - where users also have access to the Git Repo, those users are able to make changes to Datasets or Pipelines etc and commit that change to the Git repo. They are not able to publish those changes, but this still seems to be a strange and unexpected behaviour for someone that is only a Reader.
Is this behaviour by design?
Whatever the case, it should be mentioned in this documentation.

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

ID: cf5455de-d419-3e45-fcd1-e2701b32ff95
Version Independent ID: d25237b1-99b8-1c00-f560-450abba8f821
Content: Roles and permissions for Azure Data Factory
Content Source: articles/data-factory/concepts-roles-permissions.md
Service: data-factory
GitHub Login: @douglaslMS
Microsoft Alias: douglasl

@rohancragg It's probably more accurate to say that this is the expected behavior. Permissions on GitHub and Azure Repos (VSTS) are independent of Data Factory roles and permissions. I am discussing with our support engineers how best to phrase this in the documentation.

#in-progress

@rohancragg We have added this info to the article:

Permissions on Azure Repos and GitHub are independent of Data Factory permissions. As a result, a user who is only a member of the Reader role can edit Data Factory child resources and commit changes to the repo, but can't publish these changes.

Thanks for bringing this question to our attention.

#please-close


Segfault from script not printed

From contrebasse on 2014-06-16T08:31:03Z
Spyder Version:  2.3.0rc (3722: r5420c4859aaf )
Python Version:  2.7.6
Qt Version    :  4.8.5, PyQt4 (API v2) 4.10.4 on Linux
IPython >=0.13  :  2.0.0 (OK)
pyflakes >=0.5.0:  0.5.0 (OK)
pep8 >=0.6      :  1.4.6 (OK)
pygments >=1.6  :  1.6 (OK)
sphinx >=0.6.6  :  1.2.2 (OK)
psutil >=0.3    :  2.1.1 (OK)
jedi >=0.8.0    :  0.8.0-final0 (OK)
matplotlib >=1.0:  1.3.1 (OK)
sympy >=0.7.0   :  0.7.5 (OK)
pylint >=0.25   :  1.2.1 (OK)
What steps will reproduce the problem?

Run a script that produces a segfault or a buserror. It can happen with ctypes, cython, or when writing in a memmap when the disk is full, for example. 2. 3.

What is the expected output? What do you see instead?
When a segfaut occurs in a script launched from a terminal an error is printed, but nothing is visible in a spyder's console.
Please provide any additional information below
.
I also have problem with prints from subprocess that are buffered in spyder but not in a terminal. The two problems could have the same source.
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=1851

From ccordoba12 on 2014-08-26T09:46:28Z
Could you try to investigate further where this error is coming from?
Labels: MS-v2.4

Additional information: the "segmentation fault" message is actually printed by the shell executing the program, not by the program itself, that's why redirecting stdout and stderr is not enough. Spyder has to check the return status of the command to know what the error was, and print a message accordingly.
What I still don't know is how to differentiate a program exiting with a segfault or an exit status.


Add replicasets and deployments

/test test

/test

/test

/retest

/test unit

@damemi when we merge this, also need this: https://github.com/openshift/online/pull/1615


Allow for a logger to be attached to client

I am exploring the whatapp api with this great gem.
As I'm new to the whatsapp api, I do a lot of stupid mistakes. I have a hard time debbugging the mistakes I do because there no way to attach a logger to Faraday to see the HTTP requests (with headers and bodies).
It would be nice if while configuring the client one could set a logger:
# config/initializers/whatsapp_sdk.rb
WhatsappSdk.configure do |config|
  config.access_token = ACCESS_TOKEN
  config.logger = Rails.logger
end

Thanks for opening an issue. I like that.
I also think we should print the errors by default even if the logger isn't configured.

Hi @chahmedejaz sure! Feel free to take it

Hint: you will need to update the Faraday connection to pass a Middelware for logging. The code lives here https://github.com/ignacio-chiazzo/ruby_whatsapp_sdk/blob/2373a725a64bfdc50966f38b7a8cd8b7e3587019/lib/whatsapp_sdk/api/client.rb#L73-L80

Hey @ignacio-chiazzo - really sorry, I'm working on it. submitting the PR soon. Thanks.

@chahmedejaz thanks! If you want to chat/pair I'm available. Feel free to message me on X

@chahmedejaz thanks! If you want to chat/pair I'm available. Feel free to message me on X

Sure, I'll. 😊
I've implemented the fix, working its specs 😊. Thanks

Hey @ignacio-chiazzo - The PR is ready for review. Would love to hear your thoughts on it. Thanks.

@ignacio-chiazzo - I was wondering if we have any work left for this issue. Thanks.

It was released on v0.12.0. Thanks for contributing.


inference error

Hi，it has an error when I do inference of restoration_face_demo like following img. It seems that does not support doing inference of single image. How to solve this? @ckkelvinchan

Could you provide me with the command you used?

I use this command:python demo/restoration_face_demo.py configs/restorers/glean/glean_in128out1024_4x2_300k_ffhq_celebahq.py glean_in128out1024_4x2_300k_ffhq_celebahq_20210812-acbcb04f.pth tests/data/face/000001.png results/000001.png --upscale_factor 4,any suggestion? @ckkelvinchan

I just did a little investigation and it seems that the problem comes from target_size. Could you try changing the target_size here from a list to tuple (e.g. [128, 128] -> (128, 128)).
But interestingly I did not see this error before.

Yeah,I modify this and it works. It seems the type should be tuple, Thanks!

Yeah,I modify this and it works. It seems the type should be tuple, Thanks!

That's strange. I did not encounter this error before. Anyway, I will fix this. Thank you for letting us know!


Use inventory's detail trough fed modules

Inventory as source for device info
General info should no longer be consumed from npm package, as it will be deprecated. Instead of this we should use the components from inventory application.

[ ] merge after https://github.com/RedHatInsights/insights-inventory-frontend/pull/1350 and probably once it has been deployed at least to prod-beta

@boaz0 I moved this to draft so we won't merge it accidentally, once the code is in prod-beta I'll let you know.

Codecov Report

Merging #117 (736fab1) into master (6efcfdd) will decrease coverage by 0.30%.
The diff coverage is 0.00%.

:exclamation: Current head 736fab1 differs from pull request most recent head 8a72ed0. Consider uploading reports for the commit 8a72ed0 to get more accurate results

@@            Coverage Diff             @@
##           master     #117      +/-   ##
==========================================
- Coverage   28.22%   27.92%   -0.31%
==========================================
  Files          70       70
  Lines        1208     1207       -1
  Branches      310      313       +3
==========================================
- Hits          341      337       -4
- Misses        800      802       +2
- Partials       67       68       +1

Impacted Files
Coverage Δ

src/Routes/DeviceDetail/DeviceDetail.js
0.00% <ø> (ø)

src/components/DeviceDetail.js
4.54% <0.00%> (-17.20%)
:arrow_down:

Continue to review full report at Codecov.

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


Classic lighting types (point/directional/spot)

As a creator I want to utilize standard lighting types that affect all drawn objects
The following light types should be supported:

[ ] Spot
[ ] Directional
[ ] Point

With their respective attributes:

Location/Direction/Radii
Color
Intensity

Hey team! Please add your planning poker estimate with ZenHub @Kryptos-FR @satendrapalsingh @sinkingsugar


[Question] Should not one expect to see status and conditions in kpt schema definiton file

I was expecting to see references to status/conditions in the scheme file at https://raw.githubusercontent.com/GoogleContainerTools/kpt/main/site/reference/schema/kptfile/kptfile.yaml. Does this need to be updated?
Please also check if your question is answered in the
FAQ.

Thanks for reporting it. The schema is not updated. Current process for updating schema is manual so we probably missed it when we added status field.

Created a PR to update the schema: https://github.com/GoogleContainerTools/kpt/pull/3922

@vjayaramrh The schema is now updated.


Simplify website, fix #126

Checklist created from discussion in #126:

[x] get rid of jade / HAML
[ ] use bootstrap 4
[ ] show full URL + resulting image

[ ] mention accepted parameters (link to explanation below)

[ ] Allow to enter username to use in examples
[ ] deprecation notice for usernames (danger) - broken features, slower updates, may break anytime
[ ] remove usernames from examples
[ ] show info when Mojang servers have issues (warning), using existing mojang.js
[ ] detailed params & headers explanation at bottom of page
[ ] SEO (tags, h1-6, etc)
[ ] attribution not required but appreciated
[ ] shuffle avatars in site header
[ ] Mention well known sites/services using Crafatar

[ ] Link to all the others

get rid of jade / HAML

thank god

Almost done! :beer:
Here's how it looks right now:

Please let me know what you think! :)

Final design, any suggestions?


Count how many times each word is used in total

Count each word in each doc and update JSON array (total count for corpus)

i.e. with the words the and a, the array of objects could look like this
[
  {word: 'a', inCorpus: 75544, inDoc: 19785},
  {word: 'the', inCorpus: 75544, inDoc: 19785}
]

Use find to do the if-test on possible existing. Will return undefined if not found.


CVE-2024-41110 backported only into AL2, not AL3

Commit 37ec872227fdffa5f6b61067a3a1511f7082e000 applied the backported CVE-2024-41110 fixes for moby-engine 24.0, which ships in AL2.
However, this wasn't applied in the 3.0 branch, which is the default branch at the time of opening this issue.
A quick look at Microsoft's moby-engine builds in PMC shows that maybe moby-engine should be bumped to 25.0.6, or the CVE-2024-41110 patches should be backported.

PR merged:

https://github.com/microsoft/azurelinux/pull/9953