Remove empty dimensions from DataContainer array

Changes

When passed a numpy.ndarray AcquisitionData and ImageData now remove dimensions of 1 from the numpy meta data before passing to DataContainer. This matches AcquisitionGeometry and ImageGeometry
ImageData and AcquisitionData compare squeezed array shape with geometry, which does not report 1's in shape.
DataContainer.(fill) removes shape check for numpy.ndarray and relies on numpy raiseing the error. Note: np.copyto does not care about singleton dimensions.
FBP unittests updated to test reconstruction of a single slice (where bug was initially reported)
Added unittests on ImageData and AcquisitionData for initialisation and filling.

Testing you performed

Please add any demo scripts to https://github.com/TomographicImaging/CIL-Demos/tree/main/misc

Tested on example code in issue.
Related issues/links
closes #1884
Checklist

[x] I have performed a self-review of my code
[x] I have added docstrings in line with the guidance in the developer guide
[x] I have updated the relevant documentation
[x] I have implemented unit tests that cover any new or modified functionality
[x] CHANGELOG.md has been updated with any functionality change
[x] Request review from all relevant developers
[x] Change pull request label to 'Waiting for review'

Contribution Notes
Please read and adhere to the developer guide and local patterns and conventions.

[x] The content of this Pull Request (the Contribution) is intentionally submitted for inclusion in CIL (the Work) under the terms and conditions of the Apache-2.0 License
[x] I confirm that the contribution does not violate any intellectual property rights of third parties

@DanicaSTFC have you had a chance to test this?

I cannot, currently, run a test on reconstructing a horizontal slice. Did you test this yourself?

What do you mean by a horizontal slice? Can you paste your acquisition and image geometries.

Hi Gemma, I can't think of any places where this would cause problems in Processors. There are some places where we add empty dimensions to the array for the processing then remove them but I guess that won't be impacted by this because you're only squeezing the AcquisitionData when it's created?


Epic: automate release process

I think that we have implemented what we wanted from this. Everything which needed automation has been automated. I would suggest that we close this issue.


Incorrect ServerName with ALB

To help us debug your issue fill in the basic information below using the options provided
Serverless Java Container version: eg. 1.5
2.0.0-M2
Implementations: Jersey / Spring / Spring Boot / Spring Boot 2 / Spark
Spring Boot 3
Framework version: eg SpringBoot 2.2.6.RELEASE
Spring Boot 3.1.3
Frontend service: REST API / HTTP API / ALB
ALB
Multiheaders enabled in the Target Group
Deployment method: eg SAM, Serverless Framework, Console
SAM
Scenario
Describe what you are trying to accomplish
Implement a Rest API with HATEOAS.
Expected behavior
Describe how you would expect the application to behave
The request
GET /people HTTP/1.1
Host: cirrus-recuperacao-lambda-public-2025369026.sa-east-1.elb.amazonaws.com

should return the result
{
  "_embedded": {
    "personList": [
      {
        "id": 1,
        "name": "John",
        "age": 30,
        "_links": {
          "self": {
            "href": "http://cirrus-recuperacao-lambda-public-2025369026.sa-east-1.elb.amazonaws.com/person/1"
          }
        }
      },
      {
        "id": 3,
        "name": "Bob",
        "age": 10,
        "_links": {
          "self": {
            "href": "http://cirrus-recuperacao-lambda-public-2025369026.sa-east-1.elb.amazonaws.com/person/3"
          }
        }
      }
    ]
  }
}

Actual behavior
Describe what you are seeing instead
{
  "_embedded": {
    "personList": [
      {
        "id": 1,
        "name": "John",
        "age": 30,
        "_links": {
          "self": {
            "href": "http://null.execute-api.sa-east-1.amazonaws.com/person/1"
          }
        }
      },
      {
        "id": 3,
        "name": "Bob",
        "age": 10,
        "_links": {
          "self": {
            "href": "http://null.execute-api.sa-east-1.amazonaws.com/person/3"
          }
        }
      }
    ]
  }
}

Steps to reproduce
Provide code samples we can use to reproduce the issue as part of our integration tests. If there is a public repository for the misbehaving application link to it here
Sample code: https://github.com/luizck/spring-hateoas-lambda
It seems the problem is located in the method SecurityUtils.isValidHost, since it compares the ALB's hostname with the API Gateway Id, which is not provided:
https://github.com/awslabs/aws-serverless-java-container/blob/32eb54afd58fd68bbb118d6f51494ce426d628cc/aws-serverless-java-container-core/src/main/java/com/amazonaws/serverless/proxy/internal/servlet/AwsProxyHttpServletRequest.java#L408

Thanks for raising the issue. We're looking into it.


Value for cooling too high - Can't set real values until machine limits.

** Versions **

Home Assistant version (for instance 2023.9): 2024.7.4
This integration version (for instance 1.1.0): 1.4.1

Describe the bug
The minimum temperature I can set cooling for my machine is 15ºC when in the machine I can set it down to 5ºC. This lead to errors with automations when I try to set the temp lower than the integration lets me.
To Reproduce
Steps to reproduce the behavior:

Go to the integration -> aquarea zone 1 climate cooling.
Click on "-". The lowest value it lets is 15. If I go to the machine I can lower it down to 5ºC.

Expected behavior
Shoud let this value go till 5 degrees.
My machine is an aquarea kit-WC12H6E5-CL

Should be fixed by 1.12.5


Efficiently locate read messages in "unreads" state

This is a followup to #4438.
One of the optimizations in #4448, which closed that issue, was that when we learn a message has been read, we'd efficiently look up the relevant bit of the unreads state and delete it there. Previously, we'd been searching through the whole data structure to find each newly-read message.
As implemented, this optimization had a bug: it relied on state.messages to tell it the conversation the message was in. And state.messages can be far less complete than state.unread -- in fact that's the point of the server feature that initializes state.unread. So we'd fail to find the message, and state.unread would keep recording it as read. @WesleyAC discovered this and bisected it to the relevant commit.
For an immediate fix, I'm about to revert that optimization. (That'll still leave us faster than with the old data structures.) But fundamentally we have the data we need to do it correctly: if a message is in the unreads state, then we know where in the unreads state it belongs, and we just need that information indexed by message ID. So we should build that data structure, and use it to restore this optimization.
Effectively that data structure will mean there's a small amount of per-message data we have on potentially a large number of messages, while we have a full Message object -- notably, the message content -- on typically a much smaller number of messages.
Design discussion in chat.

In the webapp, static/js/unread.js has a set of data structures for precisely this problem, Bucketer and friends.  @showell can help explain them if useful.


Connect to Docker Daemon failed

Description
Trying to create a Kubernetes Cluster in a Public LAN with Default Settings  (SSH User = root) and no Cloud-init failed.
The datacenter and the vm is created successfully without error. The VM has a public vm and the ssh port is open. When Rancher tries to connect to the docker daemon the workflows hangs with the errors below.
Expected behavior
Create a working single node kubernetes cluster
Environment
Rancher Version:
2.6.9

Docker Machine Driver Ionos Cloud version:
6.1.0rc1

How to Reproduce
Create a Node Template with no DataCenter ID and no LAN ID and the default settings for a datacenter in frankfurt.
Error and Debug Output
[INFO ] Initiating Kubernetes cluster
--
3:06:06 pm | [INFO ] [dialer] Setup tunnel for host [<IP_ADDRESS>]
3:06:06 pm | [ERROR] Failed to set up SSH tunneling for host [<IP_ADDRESS>]: Can't retrieve Docker Info: error during connect: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/info": can not build dialer to [c-s74s7:m-q7jz9]
3:06:06 pm | [ERROR] Removing host [<IP_ADDRESS>] from node lists
3:06:06 pm | [ERROR] [state] can't fetch legacy cluster state from Kubernetes: Cluster must have at least one etcd plane host: failed to connect to the following etcd host(s) [<IP_ADDRESS>]
3:06:07 pm | [INFO ] Successfully Deployed state file at [management-state/rke/rke-3775529018/cluster.rkestate]
3:06:07 pm | [INFO ] Building Kubernetes cluster
3:06:07 pm | [ERROR] Cluster must have at least one etcd plane host: please specify one or more etcd in cluster config
3:06:42 pm | [INFO ] Initiating Kubernetes cluster
3:06:42 pm | [INFO ] Successfully Deployed state file at [management-state/rke/rke-2037188006/cluster.rkestate]
3:06:42 pm | [INFO ] Building Kubernetes cluster
3:06:42 pm | [INFO ] [dialer] Setup tunnel for host [<IP_ADDRESS>]
3:06:42 pm | [ERROR] Failed to set up SSH tunneling for host [<IP_ADDRESS>]: Can't retrieve Docker Info: error during connect: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/info": can not build dialer to [c-s74s7:m-q7jz9]
3:06:42 pm | [ERROR] Removing host [<IP_ADDRESS>] from node lists
3:06:42 pm | [ERROR] Cluster must have at least one etcd plane host: failed to connect to the following etcd host(s) [<IP_ADDRESS>]
3:07:47 pm | [INFO ] Initiating Kubernetes cluster
3:07:47 pm | [INFO ] Successfully Deployed state file at [management-state/rke/rke-2123286596/cluster.rkestate]
3:07:47 pm | [INFO ] Building Kubernetes cluster
3:07:47 pm | [INFO ] [dialer] Setup tunnel for host [<IP_ADDRESS>]
3:07:47 pm | [ERROR] Failed to set up SSH tunneling for host [<IP_ADDRESS>]: Can't retrieve Docker Info: error during connect: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/info": can not build dialer to [c-s74s7:m-q7jz9]
3:07:47 pm | [ERROR] Removing host [<IP_ADDRESS>] from node lists
3:07:47 pm | [ERROR] Cluster must have at least one etcd plane host: failed to connect to the following etcd host(s) [<IP_ADDRESS>]

Ok. I used the default ubuntu:22.04. Maybe you should change the default image to a working one?
FYI, thats the template i used:
{
  "amazonec2Config": null,
  "annotations": {
    "ownerBindingsCreated": "true"
  },
  "baseType": "nodeTemplate",
  "cloudCredentialId": null,
  "created": "2022-12-14T13:37:41Z",
  "createdTS":<PHONE_NUMBER>000,
  "creatorId": "user-8c6hp",
  "driver": "ionoscloud",
  "engineEnv": {},
  "engineInstallURL": "https://releases.rancher.com/install-docker/20.10.sh",
  "engineLabel": {},
  "engineOpt": {},
  "engineRegistryMirror": [],
  "id": "cattle-global-nt:nt-g6qjp",
  "ionoscloudConfig": {
    "cores": "4",
    "cpuFamily": "INTEL_SKYLAKE",
    "datacenterId": "",
    "diskSize": "50",
    "diskType": "HDD",
    "endpoint": "https://api.ionos.com/cloudapi/v6",
    "image": "ubuntu:20.04",
    "imagePassword": "abcde12345",
    "lanId": "",
    "location": "de/fra",
    "password": "",
    "ram": "2048",
    "serverAvailabilityZone": "AUTO",
    "sshUser": "root",
    "token": "****",
    "userData": "",
    "userDataB64": "",
    "username": "",
    "volumeAvailabilityZone": "AUTO"
  },
  "labels": {
    "cattle.io/creator": "norman"
  },
  "links": {
    "nodePools": "…/v3/nodePools?nodeTemplateId=cattle-global-nt%3Ant-g6qjp",
    "nodes": "…/v3/nodes?nodeTemplateId=cattle-global-nt%3Ant-g6qjp",
    "self": "…/v3/nodeTemplates/cattle-global-nt:nt-g6qjp",
    "update": "…/v3/nodeTemplates/cattle-global-nt:nt-g6qjp"
  },
  "logOpt": {},
  "name": "Test without Datacenter",
  "principalId": "local://user-8c6hp",
  "state": "active",
  "storageOpt": {},
  "transitioning": "no",
  "transitioningMessage": "",
  "type": "nodeTemplate",
  "useInternalIpAddress": true,
  "uuid": "fc50f8f3-85fd-497f-a98e-c2c6fb139239"
}

Hi Tobias, can you tell where to get the debug output (i.e. the listing above)? Do I need to list the logs for a specific container in the RKE worker cluster? Or in the master cluster? Do you know what is currently happening when the failure occurs (i.e. in which part does the provisioning fail? Is the master trying to build an ssh tunnel to the worker cluster? Thanks

hi martin, the rancher master on my tests was running on a k3s cluster and i tried to deploy the cluster in another datacenter.  The Rancher is in a private lan with a nat gateway.
I'll do some test if i can connect from the rancher vm to the downstream cluster vm via ssh.

For the ssh tests i tried to add my ssh key to the cloud-config. But when i add a cloud-config the driver has a problem to create the server.  The cloud is a working one from a other cluster i used for some tests in out lab. The other cluster is also using a ubuntu-20.04 cloud image.
#cloud-config
ca-certs:
  trusted:
    - |
      -----BEGIN CERTIFICATE-----
      MIIBqTCCAU6gAwIBAgIRAIEufsGXTRyUC4tsIW398SMwCgYIKoZIzj0EAwIwMjET
      MBEGA1UEChMKRGV2T3BzIExhYjEbMBkGA1UEAxMSRGV2T3BzIExhYiBSb290IENB
      MB4XDTIyMDExNTA4MzAwMVoXDTMyMDExMzA4MzAwMVowMjETMBEGA1UEChMKRGV2
      T3BzIExhYjEbMBkGA1UEAxMSRGV2T3BzIExhYiBSb290IENBMFkwEwYHKoZIzj0C
      AQYIKoZIzj0DAQcDQgAE3CcGpgd5/jMDt42nOB98DVoppAdZ1vY0Us2WrtQ7nv5s
      iZenDiImG9TdceR3P7a2wvnhUAmiBiZzT0yx/mlcwqNFMEMwDgYDVR0PAQH/BAQD
      AgEGMBIGA1UdEwEB/wQIMAYBAf8CAQEwHQYDVR0OBBYEFFQ89/6jz4Qi4T59BHYC
      qJljaNTqMAoGCCqGSM49BAMCA0kAMEYCIQDI5Zsng3vQTJQm3TiNtFClS+xcIIYz
      BASuCGiG6LmZ7wIhAJXHwrPpXjEV8B4ML0QX3IwIh3cvA+iLXoHAtvolF5+0
      -----END CERTIFICATE-----
groups:
  - docker
manage_etc_hosts: true
runcmd:
  - - sysctl
    - '-p'
users:
  - groups: 'docker, sudo'
    name: ubuntu
    ssh-authorized-keys:
      - >
        ssh-rsa
        ******
        deployment-key
    sudo:
      - 'ALL=(ALL) NOPASSWD:ALL'
write_files:
  - content: |
      Acquire::ForceIPv4 "true";
    path: /etc/apt/apt.conf.d/99disable-ipv6
  - content: |
      Acquire::ForceIPv4 "true";
    path: /etc/apt/apt.conf.d/99disable-ipv6
  - content: |
      net.ipv6.conf.all.disable_ipv6 = 1
      net.ipv6.conf.default.disable_ipv6 = 1
      net.ipv6.conf.lo.disable_ipv6 = 1
    path: /etc/sysctl.d/99-sysctl.conf
packageUpdate: true
packages:
  - nfs-common

This it the log output from the rancher container:
2022/12/21 06:47:01 [INFO] [node-controller] Provisioning node ionos-k8s1
2022/12/21 06:47:01 [INFO] [node-controller] Creating CA: /management-state/node/nodes/ionos-k8s1/certs/ca.pem
2022/12/21 06:47:02 [INFO] [node-controller] Creating client certificate: /management-state/node/nodes/ionos-k8s1/certs/cert.pem
2022/12/21 06:47:02 [INFO] [node-controller] Running pre-create checks...
2022/12/21 06:47:02 [INFO] [node-controller] (ionos-k8s1) IONOS Cloud Driver Version: 6.1.0-rc.1
2022/12/21 06:47:02 [INFO] [node-controller] (ionos-k8s1) SDK-GO Version: 6.1.3
2022/12/21 06:47:02 [INFO] [node-controller] Creating machine...
2022/12/21 06:47:03 [INFO] [node-controller] (ionos-k8s1) Creating SSH key...
2022/12/21 06:47:03 [INFO] [node-controller] (ionos-k8s1) Using user data: users:
2022/12/21 06:47:03 [INFO] [node-controller] (ionos-k8s1)   - groups: 'docker, sudo'
2022/12/21 06:47:03 [INFO] [node-controller] (ionos-k8s1)     name: tobias
2022/12/21 06:47:03 [INFO] [node-controller] (ionos-k8s1)     ssh-authorized-keys:
2022/12/21 06:47:03 [INFO] [node-controller] (ionos-k8s1)       - >
2022/12/21 06:47:04 [INFO] [node-controller] (ionos-k8s1)         ssh-rsa
2022/12/21 06:47:04 [INFO] [node-controller] (ionos-k8s1)         ******
2022/12/21 06:47:04 [INFO] [node-controller] (ionos-k8s1)         deployment-key
2022/12/21 06:47:04 [INFO] [node-controller] (ionos-k8s1)     sudo:
2022/12/21 06:47:04 [INFO] [node-controller] (ionos-k8s1)       - 'ALL=(ALL) NOPASSWD:ALL'
2022/12/21 06:47:04 [INFO] [node-controller] (ionos-k8s1) write_files:
2022/12/21 06:47:04 [INFO] [node-controller] (ionos-k8s1)   - content: |
2022/12/21 06:47:04 [INFO] [node-controller] (ionos-k8s1)       Acquire::ForceIPv4 "true";
2022/12/21 06:47:04 [INFO] [node-controller] (ionos-k8s1)     path: /etc/apt/apt.conf.d/99disable-ipv6
2022/12/21 06:47:04 [INFO] [node-controller] (ionos-k8s1)   - content: |
2022/12/21 06:47:04 [INFO] [node-controller] (ionos-k8s1)       Acquire::ForceIPv4 "true";
2022/12/21 06:47:04 [INFO] [node-controller] (ionos-k8s1)     path: /etc/apt/apt.conf.d/99disable-ipv6
2022/12/21 06:47:04 [INFO] [node-controller] (ionos-k8s1)   - content: |
2022/12/21 06:47:04 [INFO] [node-controller] (ionos-k8s1)       net.ipv6.conf.all.disable_ipv6 = 1
2022/12/21 06:47:04 [INFO] [node-controller] (ionos-k8s1)       net.ipv6.conf.default.disable_ipv6 = 1
2022/12/21 06:47:04 [INFO] [node-controller] (ionos-k8s1)       net.ipv6.conf.lo.disable_ipv6 = 1
2022/12/21 06:47:04 [INFO] [node-controller] (ionos-k8s1)     path: /etc/sysctl.d/99-sysctl.conf
2022/12/21 06:47:04 [INFO] [node-controller] (ionos-k8s1) packageUpdate: true
2022/12/21 06:47:04 [INFO] [node-controller] (ionos-k8s1) packages:
2022/12/21 06:47:04 [INFO] [node-controller] (ionos-k8s1)   - nfs-common
2022/12/21 06:47:04 [INFO] [node-controller] (ionos-k8s1) DataCenter Created
2022/12/21 06:47:14 [INFO] [node-controller] (ionos-k8s1) LAN Created
2022/12/21 06:47:22 [INFO] [node-controller] (ionos-k8s2) NIC Deleted
2022/12/21 06:47:24 [INFO] [node-controller] (ionos-k8s1) Server Created
2022/12/21 06:47:35 [INFO] [node-controller] (ionos-k8s1) Image Alias: ubuntu:20.04
2022/12/21 06:47:35 [INFO] [node-controller] (ionos-k8s1) WARNING: Error creating machine. Rolling back...
2022/12/21 06:47:35 [INFO] [node-controller] (ionos-k8s1) NOTICE: Please check IONOS Cloud Console/CLI to ensure there are no leftover resources.
2022/12/21 06:47:35 [INFO] [node-controller] (ionos-k8s1) Starting deleting resources...
2022/12/21 06:47:42 [INFO] [node-controller] (ionos-k8s2) Volume Deleted
2022/12/21 06:47:45 [INFO] [node-controller] (ionos-k8s1) Server Deleted
2022/12/21 06:47:53 [INFO] [node-controller] (ionos-k8s2) Server Deleted
2022/12/21 06:47:56 [INFO] [node-controller] (ionos-k8s1) LAN Deleted
2022/12/21 06:48:03 [INFO] [node-controller] (ionos-k8s2) LAN Deleted
2022/12/21 06:48:06 [INFO] [node-controller] (ionos-k8s1) DataCenter Deleted

I used the ssh keys created from the driver to connect to the new vm. The connection with the ssh keys are not the problem. Not from the rancher pod nor from my laptop. Docker for example is installed via ssh when the cloud-init is done. Here's the output from docker info from the node created from the driver:
Client:
 Context:    default
 Debug Mode: false
 Plugins:
  app: Docker App (Docker Inc., v0.9.1-beta3)
  buildx: Docker Buildx (Docker Inc., v0.9.1-docker)
  compose: Docker Compose (Docker Inc., v2.14.1)
  scan: Docker Scan (Docker Inc., v0.23.0)

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 0
 Server Version: 20.10.21
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 9ba4b250366a5ddde94bb7c9d1def331423aa323
 runc version: v1.1.4-0-g5fd4c4d
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: default
 Kernel Version: 5.4.0-125-generic
 Operating System: Ubuntu 20.04.4 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 8
 Total Memory: 3.81GiB
 Name: ionos-k8s2
 ID: SLXH:VGFI:Z2OJ:4GVA:6UN4:NHDX:XG22:AMMH:MO74:EDMQ:CVED:IVCH
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  <IP_ADDRESS>/8
 Live Restore Enabled: false

I had exactly the same problem with my cloudconfig/userdata (error creating machine...). This is apparently already fixed in the main branch, but @avirtopeanu-ionos - I think we need a new RC to get further.

Hi Tobias, did you try the new release candinate? Did it fix the issue? Thanks, Martin

I was on vacation over the holidays. I'll do some tests later today or tomorrow.

Last week i was out of order and couldn't do the tests as planned. I'll take a look at the bug and the fixes in rc2 today and tomorrow.

Bug is fixed with v6.1.0-rc.2. I could successfully create a working kubernetes cluster.


Object literal is not a valid instance of any of the types in the declared type union

TypeScript Version:  3.9.2 (or 3.5.1 and up)

Search Terms:
Union types, object literal
Code
interface AB {
  a: string;
  b: number;
}

interface C {
  c: boolean;
}

const abc: AB | C = {
  b: 123,
  c: true,
};

Expected behavior:
The declaration of the variable abc should not be valid.
The error could be something along the lines of:
The type '{ b: number; c: true }' is not assignable to type 'AB | C'.
	Object literal may only specify known properties, and 'b' does not exist in 'C', and 'c' does not exist in 'AB'.

Actual behavior:
The declaration of the variable abc is valid.
Playground Link: typescriptlang.org
Related Issues: Couldn't find any.

Duplicate of #20863 (and many many more). Excess property checks are not performed for union types.

Notably, object types are not sealed, so an excess property is not a per se error


test: string weirdness on ProLogoAlt

Overview
PR Checklist

[ ] Related to designs:
[ ] Related to JIRA ticket: ABC-123
[ ] I have run this code to verify it works
[ ] This PR includes unit tests for the code change

Description

📬Published Alpha Packages:@codecademy/gamut-labs@4.5.1-alpha.c2fbf6.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://5f91abec0bfb8200d7f4c68e--gamut-preview.netlify.appDeploy Logs


How to set canvas size

Any way to set the canvas size?

Hi @sbuys , usually you can set the name prop, and reference its class name in your css file to set its width and height.
But I realized it's sometimes inconvenient -- so I just pushed a change to take a style prop, which you can use to set custom style attributes. Update to v0.1.2 to use the style prop.
So to recap, there're two ways:

<Example name="hello" /> and then set css rules like .hello { width: 100px }
<Example style={{width: 100}} />

If needed, you can also set the style of <canvas> directly via canvasStyle prop or via referencing class name .hello-canvas in your css file.
Hope this helps :)

Thanks @williamngan ! This is great.


[Bug]: Beam direct runner JUnit tests fail on windows

Apache Hop version?
2.4
Java version?
11
Operating system
Windows
What happened?
Migration: https://issues.apache.org/jira/browse/HOP-4462
For some reason the Direct runner tests fail on Windows.
This is perhaps caused by a path error.
I suggest to move everything to integration tests.  We do need to test somehow that the pipelines do work on Windows though.
Issue Priority
Priority: 3
Issue Component
Component: Beam

Hello @hansva, I tried to reproduce this issue but I couldn't. Could you please give me more information? I tried running BeamDirectPipelineEngineTest.java and worked ok.

I just copied over the original ticket, if you can't reproduce on your system in Windows we can close this and see if it ever comes back 😄


Now using strings in remote RPC communication for replication position.

Much simpler than the big proto file.
@enisoc @liguo

LGTM


How to store values in session

I need to store values in session variable
const session = await whatsapp.startSession("mysessionid");

Can you please suggest me?

We do not yet support storing other values in session data.
But You can try for saving value on database and add a key by session id


fix metadata section

The metadata section for this topic was not rendering the default table at GH preview.

LGTM.


Fix for when providing a transformer with a Token

Fixes issue #1394

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 89.39%. Comparing base (7646fb3) to head (e53a0ae).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1395   +/-   ##
=======================================
  Coverage   89.39%   89.39%
=======================================
  Files          52       52
  Lines        7730     7744   +14
=======================================
+ Hits         6910     6923   +13
- Misses        820      821    +1

Flag
Coverage Δ

unittests
89.39% <100.00%> (+<0.01%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Flag torsions in linear molecules

torsiondrive chokes on dihedrals where one of the angles are linear. For example in C#CC (prop-1-yne), the methyl rotor H-C-C3-C3 has the same energy for all torsion angles. For any torsion 1234, check that angles 123 or 234 are not linear.

These checks are now handled by openff-qcsubmit


SWTableViewCell cell scrollViewDidScroll message sent to deallocated instance

I meet some problems when I use SWTableViewCell. The rightItem is "delete",when i press the rightItem "delete",the cell is deleted,and then i pop to the last navigation controller,app will break down. The error is that "SWTableViewCell cell scrollViewDidScroll message sent to deallocated instance". I think it is a bug in SWTableViewCell.How can i fix it? Looking forward for your help. Thanks In adcance!

Thank you for your help!


Remove the red border on the Rename Blob dialog

Storage Explorer Version: 1.6.1
Platform/OS Version: Windows 10/ MacOS High Sierra/ Linux Ubuntu 16.04
Architecture: ia32
Build Number: 20181211.1
Commit: 2455da61
Regression From: Previous release 1.6.0
Steps to Reproduce:

Expand anyone account -> Blob Contains node.
Open one blob container which contains one blob at least -> Right click one blob then select 'Rename...'.
Check the Rename dialog.

Expected Experience:

There is no red border on the Rename dialog.
'OK' button is disabled.

Actual Experience:

There shows a red border on the Rename dialog.
'OK' button is disabled.

More info:
This issue doesn't reproduce on Rename File dialog for file shares.

This still hasn't been merged. Reopening.

This issue has been fixed on the build 20181213.1. Could you help to resolve it?

Oh, guess it was then. :)

@v-xuanzh, this is now by design. We don't think it should be considered an error to use the same name in the dialog. We detect after the dialog is closed if the name is identical. We only perform the rename if the name is actually different.


Create Container with Insider build 25.2

When creating container using Insider build 25.2 I noticed the installation folder has changed from
C:\Program Files\Microsoft Dynamics NAV\250\Service
into
C:\Program Files\Microsoft Dynamics NAV\252\Service
Is this by design or a bug in BC25.2?
The folder structure has been like with major only since NAV forever?

I didn't notice, but I would assume that this is on purpose.

Well in that case I change my internal cmdlet. It was copy this file on creation of container:
Where fileversion used to be majorVersion + 0 (eg: 250)
Will change it into "Major + Minor"
        $SetupAddinsScript = @"

Invoke default behavior
. (Join-Path $runPath $MyInvocation.MyCommand.Name)
Copy-Item -Path "C:\Test Assemblies\Mock Assemblies*" -Destination "C:\Program Files\Microsoft Dynamics NAV$FileVersion\Service\Add-ins" -Recurse
"@

However, I noticed this is no longer needed as BCContainer is also copying this artifacts today. Probably for very log time....
Starting line 2237 (New-NavContainer.ps1)
            $mockAssembliesPath = "C:\Test Assemblies\Mock Assemblies"
            if (Test-Path $mockAssembliesPath -PathType Container) {
                $paths += $mockAssembliesPath
            }

The safest way (and what I use all over) is:
$ServiceTierFolder = (Get-Item -Path 'C:\Program Files\Microsoft Dynamics NAV\*\Service').FullName

That will break when they move away from Microsoft Dynamics NAV :-)


Add test support for Arm64

Hi Team,
I tried testing locust package on Arm64 architectures but it is generating 2 errors with 5 failed, 1 skipped from total of 445 test cases for the tox test command with the assertion errors locally:

======================================================================

FAIL: test_webserver (locust.test.test_main.StandaloneIntegrationTests)

----------------------------------------------------------------------

Traceback (most recent call last):

  File "/locust/locust/test/test_main.py", line 310, in test_webserver

    self.assertIn("Starting web interface at", stderr)

AssertionError: 'Starting web interface at' not found in ''

----------------------------------------------------------------------

While on amd64, I am getting Ran 445 tests OK (skipped=1).
Also we have raised a PR for docker images where we got a suggestion to change the version of flask refer comment in order to test.
PR link: https://github.com/locustio/locust/pull/1889
About a month ago when I tried with GHA it was Ran 440 tests FAILED (failures=15, errors=9, skipped=1) for arm64 with different assertion errors, currently the tox command fails for arm64.
As per the above comment suggestion there is still no proper support for the arm on GH so we can't just add it to the matrix build, so I also tried with TravisCI where again the tox command fails for arm64.
Cyberw Could you please share your feedback regarding this and suggest what can be done to test it over ARM64 server?
Thanks in advance.

Hi! I dont really have much to add. If you print stuff in the test case (like the process return code, any output on stdout) before asserting maybe you will get a hint on what went wrong.

@cyberw Thanks for the quick reply.
Currently, the tox command fails for arm64 with below error:
+ python3 -m tox -e py38
py38 create: /ws/.tox/py38
py38 installdeps: codecov, mock, retry, pyquery, cryptography
py38 installed: certifi==[2021](https://github.com/bhumikapahariapuresoftware/locust/runs/6082019231?check_suite_focus=true#step:4:2021).10.8,cffi==1.15.0,charset-normalizer==2.0.12,codecov==2.1.12,coverage==6.3.2,cryptography==36.0.2,cssselect==1.1.0,decorator==5.1.1,idna==3.3,lxml==4.8.0,mock==4.0.3,py==1.11.0,pycparser==2.21,pyquery==1.4.3,requests==2.27.1,retry==0.9.2,urllib3==1.26.9
py38 run-test-pre: PYTHONHASHSEED='3857424216'
py38 run-test: commands[0] | python3 -m pip install .
Processing /ws
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'error'
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [36 lines of output]
      Traceback (most recent call last):
        File "/ws/.tox/py38/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
          main()
        File "/ws/.tox/py38/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/ws/.tox/py38/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/tmp/pip-build-env-wih6551e/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 177, in get_requires_for_build_wheel
          return self._get_build_requires(
        File "/tmp/pip-build-env-wih6551e/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 159, in _get_build_requires
          self.run_setup()
        File "/tmp/pip-build-env-wih6551e/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 174, in run_setup
          exec(compile(code, __file__, 'exec'), locals())
        File "setup.py", line 4, in <module>
          setuptools.setup()
        File "/tmp/pip-build-env-wih6551e/overlay/lib/python3.8/site-packages/setuptools/__init__.py", line 87, in setup
          return distutils.core.setup(**attrs)
        File "/tmp/pip-build-env-wih6551e/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 109, in setup
          _setup_distribution = dist = klass(attrs)
        File "/tmp/pip-build-env-wih6551e/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 462, in __init__
          _Distribution.__init__(
        File "/tmp/pip-build-env-wih6551e/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 293, in __init__
          self.finalize_options()
        File "/tmp/pip-build-env-wih6551e/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 886, in finalize_options
          ep(self)
        File "/tmp/pip-build-env-wih6551e/overlay/lib/python3.8/site-packages/setuptools_scm/integration.py", line 104, in infer_version
          _assign_version(dist, config)
        File "/tmp/pip-build-env-wih6551e/overlay/lib/python3.8/site-packages/setuptools_scm/integration.py", line 51, in _assign_version
          _version_missing(config)
        File "/tmp/pip-build-env-wih6551e/overlay/lib/python3.8/site-packages/setuptools_scm/__init__.py", line 106, in _version_missing
          raise LookupError(
      LookupError: setuptools-scm was unable to detect version for /ws.

      Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.

      For example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: InvocationError for command /ws/.tox/py38/bin/python3 -m pip install . (exited with code 1)
___________________________________ summary ____________________________________
ERROR:   py38: commands failed
Error: Process completed with exit code 1.

Can you pls share some pointers on this??

Seems to be an issue with setuptools-scm. As stated in the error message you need to have a complete git checkout - maybe that is the issue?
For example, in GH actions we need to specify BUILDKIT_CONTEXT_KEEP_GIT_DIR=1 to ensure the .git folder is propagated into docker.

@cyberw I checked with the above mentioned suggestions but it didn't change the result of tox command failing both on GHA and locally.

Can you make it run just git status in /ws and see what it says?


Vickel: Watch drkendisherbalhome.simdif.com

Vickel requests the watch of the watch_keyword drkendisherbalhome\.simdif\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

drkendisherbalhome\.simdif\.com has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by Jeff Schaller in Charcoal HQ


fix: change invalid params

Related issue

Summary

Screenshots

Checklist

[ ] I've read and understood contributing guidelines;
[ ] If changing UI, I've tested on most common viewports, desktop and mobile devices;

A picture of a cute animal

beleza


A23

Here to inform late that the new A22'3 language update is going to be changed to the name A23 since January is coming in a couple of days.
If you have any questions, feel free to comment make a reply or talk on the ACPL gc

why do u keep deletin the code?


sys/linux: add IPPROTO_MPTCP support

Note: I can imagine that I should run "make extract,..."  as part of this PR here. The problem is that I have some troubles getting the cross-compilers with retpoline on my "syzkaller-system". I can only generate things for amd64 right now. Let me know if that's a big deal, or if you can simply run the make extract,...
Thanks!
Adding support for IPPROTO_MPTCP. Like SMC, it is on top of TCP and can
thus be treated like a regular TCP socket.

Before sending a pull request, please review Contribution Guidelines:
https://github.com/google/syzkaller/blob/master/docs/contributing.md

CI-checks failed with
fatal error: runtime: out of memory

This is not directly related to your change. I am working on fixing this:
https://github.com/google/syzkaller/issues/1580
but it's not trivial to fix, pretty inherent problem (size of syscall descriptions grows, memory consumption grows, CI has fixed small amount of memory).

I will merge this now and then see if I can easily re-generate consts on linux-next.
Thanks

Here we go: https://github.com/google/syzkaller/commit/692266c73ac1a0727b44b0ba097408a5bbf1f3c7


Exclude io.github.takahirom.roborazzi dependency from Renovate updates

As the title says.
Removed io.github.takahirom.roborazzi dependency from Renovate watching list using ignoreDeps.
Fixed #371

Thanks!


WiP: Make release images also exit once, as expected by the script

Untested! Do not merge!

Works for me!


Test doesn't stop waiting on Thread to complete

I'm having a test that doesn't stop waiting on a Threads to complete testing against SQL DB (MariaDB)
2023-01-31 05:40:43:613 1460 sec: 2420938 operations; 0 current ops/sec; est completion in 14 days 23 hours [READ: Count=0, Max=0, Min=9223372036854775807, Avg=?, 90=0, 99=0, 99.9=0, 99.99=0] [UPDATE-FAILED: Count=0, Max=0, Min=9223372036854775807, Avg=?, 90=0, 99=0, 99.9=0, 99.99=0] [CLEANUP: Count=0, Max=0, Min=9223372036854775807, Avg=?, 90=0, 99=0, 99.9=0, 99.99=0] [UPDATE: Count=0, Max=0, Min=9223372036854775807, Avg=?, 90=0, 99=0, 99.9=0, 99.99=0]
Still waiting for thread Thread-3 to complete. Workload status: true
Still waiting for thread Thread-3 to complete. Workload status: true
This didn't happen before but now persistent when higher updates or 25R75U. I have .17 version. Any suggestion to complete the test?
It doesn't happen with all other mixes with higher reads R90U10, ..., R50U50

Any update? any ideas?

Is the YCSB still active project?


Add badges in readme

📚 Documentation
I want to add some cool badges in readme.'
Add relevant screenshot or video (if any)

Additional context
No response

I want to work on this under JWOC


Webpack externals throw error on prod builds how to resolve this?

In my index.html i am loading jquery and works well with local. when i do product build I am getting an error as :
Uncaught ReferenceError: jQuery is not defined  in the console. But still the jquery downloaded in prod build. how can i configure web pack to look the jquery in windows space alwasy?
here is my index.html ( i am using systemjs to download the script )
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>Container</title>
    <base href="/" />
    <meta name="importmap-type" content="systemjs-importmap" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <link rel="icon" type="image/x-icon" href="favicon.ico" />
    <script type="systemjs-importmap" src="/assets/import-map.json"></script>
    <script type="systemjs-importmap">
      {
        "imports": {
          "jquery"<EMAIL_ADDRESS>        }
      }
    </script>
    <script src="https://cdn.jsdelivr.net/npm/systemjs/dist/system.min.js"></script>
    <script>
      function multiImport(modules) {
        return Promise.all(
          modules.map(function (m) {
            return System.import(m);
          })
        );
      }
      multiImport(["jquery"]);
    </script>
  </head>
  <body>
    <app-root></app-root>
  </body>
</html>

my webpack config:
const webpack = require("webpack");

module.exports = {
  externals: {
    jquery: ["jQuery"],
  },
  plugins: [
    new webpack.ProvidePlugin({
      "window.jQuery": "jquery",
      $: "jquery",
      jquery: "jQuery",
    }),
  ],
};

after prod build getting an error as:
Uncaught ReferenceError: jQuery is not defined     at Object.xeH2 (main-es2015.18b4452e55ad689e0880.js:1)
how can i fix this? what is the correct way to export and use it prod build as well?

I don't see the bundle in the HTML. I guess it's injected as script tag, which would create a race condition. Sometimes jquery loaded first, sometimes the bundle is loaded first.
You need to make sure to load the script in the correct order.
If you are using System.js you probably want to create your bundle as System.js library via
output: {
  library: "app",
  libraryTarget: "system",
},
externals: ["jquery"]

System.import("app"); // dependencies like jquery are automatically loaded by System.js

@sokra , I am not able to get you clearly. can you please help me further? I created a js file in the root folder as "System.js" the it's added to index.html file. but still not getting any valid result. getting an error as ERROR Error: Uncaught (in promise): Error: Parcel parcel-0 must have a valid bootstrap function1 I am quite new, please help me further.

ERROR Error: Uncaught (in promise): Error: Parcel parcel-0 must have a valid bootstrap function1

Why you run parcel?

I am not run parcel, but my angular downloads once of the external angular app as parcel

Sorry, this error not related to webpack, it is error from parcel runtime, we can't fix it

Actually my question is different. I am loading external jquery in to angular. it works fine. I use the webpack external to do that. it works fine in local. But not after production build. the above said error reverted. can you please have look on my first question so  you can able to understand easly.

Because you need to add scripts tags with webpack generated files

so, ok. how can i use webpack instead systemjs then? any sample code or repo to load script outside to angular?

Just add scripts tags, please use stackoverflow or gitter for questions, it is bug tracker

You can also run webpack with System.js, but you need to compile it for System.js

output: {
  // webpack 4 or 5:
  library: "app",
  libraryTarget: "system", // <- for System.js
  // webpack 5:
  library: { type: "system", name: "app" }
},
externals: ["jquery"]

Answer above


fix: throw exceptions instead of returning JSON

Summary | Résumé
The return_short_url function was returning a JSON object, instead of raising an exception.
Test instructions | Instructions pour tester la modification
Add a URL to the allowed_domains that is not functional or does not exist. Try and shorten that URL. You should see the displayed error: "Failed to connect to the specified URL".

Issues addressed in #80.


In firefox, PowerGlitch produces hundreds of console warnings when animation is playing.

Related (and fixed) issue on original repo: https://github.com/7PH/powerglitch/issues/17
https://user-images.githubusercontent.com/54016693/236705719-ce119578-c5ab-4314-85e4-491ac8dd5eb4.mp4

Hey there 👋 released in v1.0.1


Failed assertion in animation_controller.dart

Steps to reproduce
I don't have an isolated sample to reproduce this and only seeing these errors in MacOS debug build and stack trace has no references to my application code. Also, I'm not using any explicit animations. So, I presume this comes from some framework stuff, e.g. page transitions or other activity.
Release builds on Android and iOS don't throw this error.
Expected results
Expected to have no errors, or at least some details
Actual results
AnimationController throws some exceptions with no specifics.
Code sample
N/A
Screenshots or Video
N/A
Logs
Logs
======== Exception caught by scheduler library =====================================================
The following assertion was thrown during a scheduler callback:
'package:flutter/src/animation/animation_controller.dart': Failed assertion: line 848 pos 12: 'elapsedInSeconds >= 0.0': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=2_bug.yml

When the exception was thrown, this was the stack:
#2      AnimationController._tick (package:flutter/src/animation/animation_controller.dart:848:12)
#3      Ticker._tick (package:flutter/src/scheduler/ticker.dart:258:12)
#4      SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1392:15)
#5      SchedulerBinding.handleBeginFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:1235:11)
#6      _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:633:13)
#7      SchedulerBinding.handleBeginFrame (package:flutter/src/scheduler/binding.dart:1233:17)
#8      SchedulerBinding._handleBeginFrame (package:flutter/src/scheduler/binding.dart:1150:5)
#9      _invoke1 (dart:ui/hooks.dart:328:13)
#10     PlatformDispatcher._beginFrame (dart:ui/platform_dispatcher.dart:397:5)
#11     _beginFrame (dart:ui/hooks.dart:272:31)
(elided 2 frames from class _AssertionError)

This exception was thrown in the context of a scheduler callback. When the scheduler callback was _registered_ (as opposed to when the exception was thrown), this was the stack:
#2      SchedulerBinding.scheduleFrameCallback (package:flutter/src/scheduler/binding.dart:606:49)
#3      Ticker.scheduleTick (package:flutter/src/scheduler/ticker.dart:274:46)
#4      Ticker.start (package:flutter/src/scheduler/ticker.dart:180:7)
#5      AnimationController._startSimulation (package:flutter/src/animation/animation_controller.dart:768:42)
#6      AnimationController._animateToInternal (package:flutter/src/animation/animation_controller.dart:639:12)
#7      AnimationController.forward (package:flutter/src/animation/animation_controller.dart:493:12)
#8      new InkHighlight (package:flutter/src/material/ink_highlight.dart:60:9)
#9      _InkResponseState.updateHighlight (package:flutter/src/material/ink_well.dart:993:29)
#10     _InkResponseState.handleHoverChange (package:flutter/src/material/ink_well.dart:1270:5)
#11     _InkResponseState.handleMouseEnter (package:flutter/src/material/ink_well.dart:1258:7)
#12     MouseTracker._handleDeviceUpdateMouseEvents (package:flutter/src/rendering/mouse_tracker.dart:423:29)
#13     MouseTracker._handleDeviceUpdate (package:flutter/src/rendering/mouse_tracker.dart:277:5)
#14     MouseTracker.updateAllDevices.<anonymous closure> (package:flutter/src/rendering/mouse_tracker.dart:373:9)
#15     MouseTracker._deviceUpdatePhase (package:flutter/src/rendering/mouse_tracker.dart:205:9)
#16     MouseTracker.updateAllDevices (package:flutter/src/rendering/mouse_tracker.dart:367:5)
#17     RendererBinding._scheduleMouseTrackerUpdate.<anonymous closure> (package:flutter/src/rendering/binding.dart:460:22)
#18     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1392:15)
#19     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1326:11)
#20     SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1171:5)
#21     _invoke (dart:ui/hooks.dart:312:13)
#22     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:419:5)
#23     _drawFrame (dart:ui/hooks.dart:283:31)
(elided 2 frames from class _FrameCallbackEntry)
====================================================================================================

Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.22.3, on macOS 13.6.6 22G630 darwin-arm64, locale en-CA)
    • Flutter version 3.22.3 on channel stable at ***
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b0850beeb2 (3 weeks ago), 2024-07-16 21:43:41 -0700
    • Engine revision 235db911ba
    • Dart version 3.4.4
    • DevTools version 2.34.3

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at ***
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
    • Xcode at /Applications/Xcode_15.2.app/Contents/Developer
    • Build 15C500b
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] IntelliJ IDEA Ultimate Edition (version 2024.1.4)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 80.0.2
    • Dart plugin version 241.18808

[✓] Connected device (3 available)
    • macOS (desktop)                 • macos                 • darwin-arm64   • macOS 13.6.6 22G630 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin         • macOS 13.6.6 22G630 darwin-arm64
    • Chrome (web)                    • chrome                • web-javascript • Google Chrome 127.0.6533.89

[✓] Network resources
    • All expected network resources are available.

Thanks for the report @ekuleshov
You are most likely hitting https://github.com/flutter/flutter/issues/149999 which has been fixed and must be available in master, but not in stable yet.
Closing as already fixed and duplicate of linked issue.

@darshankawar any chance this could be prioritized for the stable channel hot fixes?

I think it is too late to cherry pick in 3.22.3.
A new stable release is expected soon so hopefully it will have the said fix in it. Do watch out for release.

@darshankawar I'm running the new stable 3.24.0 and still getting this assertion on macos.
It seems to be related to scrolling, but probably not to the overscroll, as I saw it triggered while being in a middle of a long scrollable list...
[✓] Flutter (Channel stable, 3.24.0, on macOS 13.6.6 22G630 darwin-arm64, locale en-CA)
    • Flutter version 3.24.0 on channel stable at ***
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 80c2e84975 (10 days ago), 2024-07-30 23:06:49 +0700
    • Engine revision b8800d88be
    • Dart version 3.5.0
    • DevTools version 2.37.2

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at ***
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
    • Xcode at /Applications/Xcode_15.2.app/Contents/Developer
    • Build 15C500b
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] IntelliJ IDEA Ultimate Edition (version 2024.1.6)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 81.0.2
    • Dart plugin version 241.18968.26

[✓] Connected device (3 available)
    • macOS (desktop)                 • macos                 • darwin-arm64   • macOS 13.6.6 22G630 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin         • macOS 13.6.6 22G630 darwin-arm64
    • Chrome (web)                    • chrome                • web-javascript • Google Chrome 127.0.6533.100

[✓] Network resources
    • All expected network resources are available.

Thanks for checking. Can you switch to master and re-run your scenario to see if it resolves or persists ?


test/recipes/80-test_cmp_http.t: use app() rather than cmd()

OpenSSL::Test::cmd() should be used with caution, as it is for special
cases only.
It's preferable to use OpenSSL::Test::app() or OpenSSL::Test::test().
Fixes #15833

This pull request is ready to merge


Number in range comparison in conditions does not work

The check if a number is within a range does not work (numbers are represented as strings)

Fixed in version B.2.8.0


edgemesh gateway unable to find the service in another namespace

What happened:
kubectl logs -n kubeedge   edgemesh-gateway-6c649d89fb-sgcdf
E0316 15:23:06.652338       1 http.go:77] route by http request uri err: service bound to the destination default.zbl-internal-nginx-service.zbl does not exist, reason: service "zbl-internal-nginx-service.zbl" not found
E0316 15:45:35.721900       1 http.go:77] route by http request uri err: service bound to the destination default.zbl-internal-nginx-service.zbl.svc.cluster.local does not exist, reason: service "zbl-internal-nginx-service.zbl.svc.cluster.local" not found
E0316 15:45:39.561912       1 http.go:77] route by http request uri err: service bound to the destination default.zbl-internal-nginx-service.zbl.svc.cluster.local does not exist, reason: service "zbl-internal-nginx-service.zbl.svc.cluster.local" not found
E0316 15:45:40.461874       1 http.go:77] route by http request uri err: service bound to the destination default.zbl-internal-nginx-service.zbl.svc.cluster.local does not exist, reason: service "zbl-internal-nginx-service.zbl.svc.cluster.local" not found
E0316 15:50:01.748800       1 http.go:77] route by http request uri err: service bound to the destination default.zbl-internal-nginx-service.zbl.svc.cluster.local does not exist, reason: service "zbl-internal-nginx-service.zbl.svc.cluster.local" not found
What you expected to happen:
should be able to find the service and gateway should work
How to reproduce it (as minimally and precisely as possible):
create a gateway in default ns and service in another namespace
Anything else we need to know?:
Environment:

EdgeMesh version: v1.19.3-kubeedge-v1.8.1
Kubernetes version (use kubectl version):v1.21.0
KubeEdge version(e.g. cloudcore --version and edgecore --version):

Other details:
When i do curl <IP_ADDRESS>:23333 and check the edgemesh-gateway logs
E0316 15:45:40.461874       1 http.go:77] route by http request uri err: service bound to the destination default.zbl-internal-nginx-service.zbl.svc.cluster.local does not exist, reason: service "zbl-internal-nginx-service.zbl.svc.cluster.local" not found
E0316 15:50:01.748800       1 http.go:77] route by http request uri err: service bound to the destination default.zbl-internal-nginx-service.zbl.svc.cluster.local does not exist, reason: service "zbl-internal-nginx-service.zbl.svc.cluster.local" not found
# kubectl get svc -n zbl zbl-internal-nginx-service
NAME                         TYPE        CLUSTER-IP     EXTERNAL-IP   PORT(S)     AGE
zbl-internal-nginx-service   ClusterIP   <IP_ADDRESS>           12345/TCP   3h26m
virtual service
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: edgemesh-gateway-svc
spec:
gateways:
- edgemesh-gateway
hosts:
- '*'
http:
- match:
- uri:
prefix: /
route:
- destination:
host: zbl-internal-nginx-service.zbl.svc.cluster.local
port:
number: 12345_
I am able to curl the service from test pod
kubectl exec -it alpine-test curl zbl-internal-nginx-service.zbl.svc.cluster.local:12345
kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead.

ZBL

Could you print your gateway yaml?

apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: edgemesh-gateway
spec:
selector:
kubeedge: edgemesh-gateway
servers:
- hosts:
- '*'
port:
name: http-0
number: 23333
protocol: HTTP

Your gateway, virtualService, service need in the same k8s namespaces

May I ask why to constrain the namesapce of service to be the same as of the gateway?
This desgin results that the host field in the virtualService can only be filled with a serviceName and a FQDN will fail.


Remove console.log from the components

Can we please remove the console log's from the library?
One example:
https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/dropdowns/ImgDropdown.svelte#L7

Thanks for the catch.
I just removed all console.logs.


[v2] Backport magefile and apply license reformat

Thank you for contributing to Coraza WAF, your effort is greatly appreciated
Before submitting check if what you want to add to coraza list meets quality standards before sending pull request. Thanks!

Note: that go.mod and go.sum can only be modified for tested dependency updates or justified new features.
Make sure that you've checked the boxes below before you submit PR:

[ ] My code includes positive and negative tests.
[X] I have an appropriate description with correct grammar.
[X] I have read Contribution guidelines, maintainers note and Quality standard.

Thanks for your PR :heart:

I personally think that this change would damage the repository history for v2. Maybe it's not necessary to make the license change for v2, as it won't receive many changes in the future.
Regarding Magefile, are you sure that the build constraints will work if they are not in the first line?
 Which is good since otherwise it'd become tricky to automatically add the license as it always puts it at top.
I'll revert the license text change, no worries

@jptosso Reverted the license. Some formatting changes since ran the formatter with Go 1.19 for the first time on this branch


Storage Disk Manipulator

Allows transfer of storage disk -> network or network -> storage disk.
Has 2 automation settings:

Move to output when done
Move to output when storage is full

Was just about to suggest this!  I have players on my server that started out making the storage blocks but wanted to convert over to using the storage disks for space reasons but currently there is no easy way to move items from one to the other, this would be ideal.  I am assuming this would work similar to how the ME IO Port did in AE2, which is exactly the kind of thing we need.

Functionality finished in 423ecee0996fca203099fc69735878f45b541f46

TODO recipe / texture


I have been using Cal-Heatmap to create a calendar. I would like to only visualize the hours between 8am and 9am on that day. Is there any way to do this through cal-heatmap?

Use the hour domain with min subdomain, with 8am as start, and 1 as range

I mean I want a month in the domain and date in the subdomain. In my dataset, the data is recorded every hour and cal-heatmap is adding up all the data for a particular date. So, I was thinking if I can target particular hour for a day with the month in the domain and day as a subdomain and only show a data for the particular hour for the particular day.

No you can't. Only way is to remove the unwanted data from the source, before passing it to the calendar.
Either you do that directly on your source, or you can use the afterLoad callback (http://cal-heatmap.com/#afterLoadData) to do it. Do a for loop, and keep only the timestamps you want. There's some math involved.

Closing since inactive


automatically performing offsets and subsequent requests for data

Description
Automatically handling offsets with multiple requests
GitHub Issues

Coverage increased (+0.6%) to 92.267% when pulling 63ed16e4fab000405c8edd5de5c6329dfb55b7b5 on mcrowson:maxrow-catching into 904a4950cc06401fc16176c6a5e1013ca927c5bf on refindlyllc:master.


DOCS Fix missing changelogs

Reimplements some missing changelog pages after docs overhaul.
Thanks for Chris Darling for reporting.

@willmorgan if you are up on your side of the world, fancy checking and merging this. Seems some of the changelogs went missing in the great docs migration. This corrects that and reinstates those missing based on the state of the 3.1 branch prior to the first commit introducing the restructure. :+1:


GUI Schedule tab in Intrusion Detection disappears

Tried searching for this bug/issue but didn't find anything so I'm opening one. Issue occurs on both 18.1 and 18.1.1. Rebooted afer latest udpate and still able to replicate.
Current Version: 18.1.1
Browser: Chrome (latest) and Firefox (v56)

Action Path: Services -> Intrusion Detection -> Select another tab besides Settings (ie. Download, Rules, User Defined, Alerts)
Select Schedule and wait for "Edit job" pop-up
Click Close button
Schedule tab disappears (https://www.screencast.com/t/8sRyrlfZ2hQT) and doesn't appear until any of the following occurs:

Refresh page
Select Settings tab
Select Intrusion Detection again
Select any item in left menu panel and select Intrusion Detection again

Video: https://www.screencast.com/t/zR5iG6RDl (requires Flash)

Looks like this was done by design, although it is understandably confusing.
You can try this patch, simply invoke the command from the console:
# opnsense-patch e6423e3

Cheers,
Franco

Thank you for the quick response!

Hi, this still is open in 20.7.3, can you please update or share a patch? I am not sure if I can use the previous patch posted.

Screenshot please

I have attached a gif file to show the animation, clicking schedule tab pops up the new job screen and doesn't let old jobs to be edited. Work around is to use the cron jobs to edit the existing jobs.

It links to System : Settings : Cron, opening a new schedule, looks good to me


Documentation is missing feature flags

In the documentation, you can't see which feature flags need to be activated for a certain function/struct/module to be available.
E.g. like you can see in zerocopy's docs that the byteorder feature is required for the byteorder module to be available.

Is there a particular item that you thought this would be helpful for? Most of the features have a simple mapping to module names.
doc_cfg and doc_auto_cfg are unstable features. doc_cfg requires manual annotation; I could add this for the top level modules if that is sufficient. doc_auto_cfg gives output like the following which is too much noise:

or the following which isn't giving any non-obvious information:


Fix-cache-control

This pull request fixes a problem with the GetHeaders method in the OAuth and JWT Bearer security schemes. It wasn't handling cases where attack and valid values were nil, which could cause errors. I changed the code to fix this, making sure headers are generated more reliably for requests.
Changes:

Fixed errors with type checks in GetHeaders.

Improved how attack and valid values are handled in headers.

I look forward to your feedback on these updates!

Thanks for contributing @Similadayo.
I'm not sure which type check error this PR is addressing. Could you maybe share an example of the error you encountered during the scan?
Regarding the changes in your PR, I see you've added Cache-Control request headers. It's true that APIs should not allow public cacheable responses if authentication is required. Testing for this behavior is actually planned for the next version (see issue #187). If you're interested in working on this feature as well. I will be happy to welcome your contributions!

Thanks for getting back to me @emmanuelgautier
My PR tackles the same issue about Cache-Control headers for authenticated APIs. It makes sure that public cacheable responses aren’t allowed when authentication is used, which helps protect confidential data. I’d love to contribute more to this issue and help with testing in the next version. Let me know how I can help.

The goal of the scan is not necessarily to ensure that requests made during the scan aren't cached, but rather to check if there are any shared cache directives (like public Cache-Control) in the response, which could expose sensitive data.
I think, you should add a new scan for this specific case. You can refer to one of the existing scans in this repository: https://github.com/cerberauth/vulnapi/tree/main/scan.
I'd be happy to assist. One approach for the scan would involve making a request with an authentication method in place and then inspecting the response headers. If the response is successful (e.g., 2xx status code), and it includes public cache control directives, the test would fail as this could expose protected data. Do not hesitate to suggest another approach if you think there’s a better way to perform this scan.

Thanks for the clarification.
I will go through the scan directory to understand better and won't hesistate to reach out incase I need understanding.


Using atom typescript with plain js files

Would it be possible to use atom typescipt on plain old .js files. I have seen this working in Visual Studio Code and love it. Sometimes I work on projects where devs are not comfortable using .ts .and I miss the autocomplete magic the ts compiler brings. Visual Studio Code gives you auto complete on standard js files as well as integrating .d.ts files into that auto completion so you get a bit of the typescript goodness even with plain js. Is this possible with atom-typescript?

Duplicate of https://github.com/TypeStrong/atom-typescript/issues/315
I definitely understand the motivation as migrating can be painful. My personal plan is add something that allows you to use the .ts files like JavaScript  and discussing that here https://github.com/Microsoft/TypeScript/issues/4094

For me this is more about being able to use some of typescripts abilities without having to change the workflow of everyone on the team. For a lot of people even changing the file extension is to much as they are js purists aka don't like the idea of typescript. This way you can work along side another js dev without effecting them at all.
I wonder how Visual Studio Code has implemented the feature as they are just using the standard ts compiler.


Merge Scripts label update

Docs Build status updates of commit 8efb36b:
:clock10: Pending: waiting for processors (47 builds ahead of you)
:warning: Docs Build is busy, currently there are 47 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

Docs Build status updates of commit 8efb36b:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

Advertising/scripts/TOC.yml
:white_check_mark:Succeeded

Advertising/scripts/concepts/best-practices.md
:white_check_mark:Succeeded

Advertising/scripts/examples/calling-google-services.md
:white_check_mark:Succeeded

Advertising/scripts/examples/index.md
:white_check_mark:Succeeded

Advertising/scripts/examples/labels.md
:white_check_mark:Succeeded

Advertising/scripts/includes/operators.md
:white_check_mark:Succeeded

Advertising/scripts/index.md
:white_check_mark:Succeeded

Advertising/scripts/reference/Ad.md
:white_check_mark:Succeeded

Advertising/scripts/reference/AdGroup.md
:white_check_mark:Succeeded

Advertising/scripts/reference/AdGroupSelector.md
:white_check_mark:Succeeded

Advertising/scripts/reference/AdSelector.md
:white_check_mark:Succeeded

Advertising/scripts/reference/AdsApp.md
:white_check_mark:Succeeded

Advertising/scripts/reference/Campaign.md
:white_check_mark:Succeeded

Advertising/scripts/reference/CampaignSelector.md
:white_check_mark:Succeeded

Advertising/scripts/reference/ExpandedTextAd.md
:white_check_mark:Succeeded

Advertising/scripts/reference/Keyword.md
:white_check_mark:Succeeded

Advertising/scripts/reference/KeywordSelector.md
:white_check_mark:Succeeded

Advertising/scripts/reference/Label.md
:white_check_mark:Succeeded

Advertising/scripts/reference/LabelIterator.md
:white_check_mark:Succeeded

Advertising/scripts/reference/LabelSelector.md
:white_check_mark:Succeeded

Advertising/scripts/release-notes.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


⚠ ClamAV has degraded performance

In 8a6b739, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 56 ms

Resolved: ClamAV performance has improved in 4018412.


metanorma/metanorma#202 respect HTTP[S]|SOCKS_PROXY env vars during git clone

metanorma/metanorma#202

Open questions

Should we handle a case git repos which were cloned with proxy and then metanorma executed without proxy?

Related PRs:

https://github.com/metanorma/metanorma-cli/pull/247

Looks good to me 🔥

Should we handle a case git repos which were cloned with proxy and then metanorma executed without proxy?

For simplicity reasons let’s not support the “per git repo proxy” case. Thanks!!

For simplicity reasons let’s not support the “per git repo proxy” case. Thanks!!

Great, users still will be able to do clone by providing a proxy in global ~/.gitconfig. I will write about it in blog post
Also, we have two big pros for this approach:

ruby-git gem doesn't support default_branch API right now, I just hardcoded 'master' but this may not work for all repos, I have prepared PR for ruby-git
ruby-git don't support depth for git fetch which passed by fontist this also may create some difficulties

Just to make sure that we are on the same page, I'm going to close this without merge, @ronaldtse @alexeymorozov any objections?


Support epmdless mode

This will require Elixir v1.15. This will help us ensure we don't leave a zombie epmd.exe process behind.

Unfortunately this won't work as a Livebook started this way won't be able to connect to Mix projects or other nodes.


Cannot expand nodes with the keyboard after collapsing them

The following sequence of actions reproduces the case.

Open the demo app (section files).
Select a child node.
Press Left arrow key (root is selected)
Press Left arrow key (root is collapsed)
Press Right arrow key (root should be expanded and it's not)

Check the following video for a complete repro:
https://github.com/AvaloniaUI/Avalonia.Controls.TreeDataGrid/assets/501613/f62b0d7a-83c4-4968-8318-50f18a4c2390

The problem is that when moving selection via the keyboard, the focus isn't updated, so when the root row is collapsed, the child row still has focus. Collapsing causes it to be removed from the tree causing focus to be set to null.


Feature: Linked calendars that can be viewed on the same page

For @madmaxneo:
I have a fantasy world with both an ancient calendar and a more current one, it would be interesting to see what events fall during the same times between the two calendars on the same page.
An example would be the Aztec calendar and our current Gregorian calendar: The Gregorian calendar has 12 months with each having either 30 or 31 days and one month every 4 years having only 28 days and a century is 100 years long. The Aztec calendar has 18 months with 20 days each and 5 extra days and a century is 52 years.
I am thinking there would be a main calendar (more modern one) with a sub calendar (ancient one). The sub calendar days would show up in the main calendar possibly as a note in each day or with the days side by side for comparison.

[ ] Yay
[ ] Nay
[ ] Implemented

Yes, exactly this.
In the one game I run there is a dual calendar system. One is ancient but still used by certain peoples and the other is more modern and used by everyone else, the odd thing is the calendars do not match up because one of them has shorter years. There are different cultural events that happen in each calendar and I'd like to have a way to keep better track of how close they get and when they coincide.


Download content addressed sources with retryability

Handle Arweave and IPFS content by selecting from configured gateway urls. It will retry a second time if none of the gateways resolved the content.
Closes #141, #350

LGTM, it'd be good to add a test for "does it retry with each gateway?" though


I'm getting this error from AnimationController & Tween and I'm not sure what is wrong...

Here is related codes;
related_code
calling_parent
I'm trying to make a background where points on screen move diagonally.
How ever I got this error message:
output.txt
flutter analyze
Analyzing dreawey...
No issues found! (ran in 2.1s)

flutter doctor -v
[√] Flutter (Channel stable, v1.12.13+hotfix.5, on Microsoft Windows [Version
    10.0.17763.973], locale tr-TR)
    • Flutter version 1.12.13+hotfix.5 at C:\flutter
    • Framework revision 27321ebbad (9 weeks ago), 2019-12-10 18:15:01 -0800
    • Engine revision 2994f7e1e6
    • Dart version 2.7.0

[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at C:\Users\noctisshadowzel\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling
      support)
    • Platform android-29, build-tools 28.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
    • All Android licenses accepted.

[√] Android Studio (version 3.5)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 42.1.1
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)

[!] IntelliJ IDEA Community Edition (version 2018.3)
    • IntelliJ at
      C:\Users\noctisshadowzel\AppData\Local\JetBrains\Toolbox\apps\IDEA-C\ch-0\183.4284
      .148
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.dev/intellij-setup/#installing-the-plugins

[√] VS Code, 64-bit edition (version 1.39.1)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 3.7.1

[√] Connected device (1 available)
    • SM A105F • RZ8M614H4AT • android-arm • Android 9 (API 28)

! Doctor found issues in 1 category.

I/flutter ( 2059): The following assertion was thrown while notifying listeners for AnimationController:
I/flutter ( 2059): type 'double' is not a subtype of type 'int'

I'm not pretty sure, but change the line 62 from double multiplier... to int multiplier...

I changed it from int to double; because I was getting a similiar output with something like
toDouble() was called on null

This could be related #24983

If you think addressing related parts from issue #24983 will help solving this issue;
First, I'm not sure if it is directly related to Tween<T> in this issue, because I'm animating it, as a Tween<int> and directly using it as an index. If, at this point, some problem causing this, this must be related to framework.
Secondly, as explained in #24983, my program doesn't show a red screen like framework normally does, either. I get a static layout, with a significant problem, and my logs continuously print exceptions.
Significant problem is, in my code, I use space under the System Navigation Bar and it is transparent. When I just draw points, it is painting under Nav. Bar too; but when I try to animate it and exceptions start, there is a gap under Nav. Bar, nothing is painted there.
To go even further, I writed 3 other implementations for; _drawing points on a canvas with given coordinates as a List<Offset> using Canvas.drawPoints(...). All of them crashed somehow, with different errors. I'm not sure this will help or make the issue more complex, if it does make issue complex please let me know; but I think there may be some problem related to parts which help creating explicit animations.
Thank you for taking time.

Can you please post a minimal and runnable example that we can run to reproduce the problem?

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact descriptions what happens, logs and the output of 'flutter doctor -v'  please.
All system setups can be slightly different so it's always better to open new issues and reference related issues.


Support rounding the scale values of components in HashPointPen

See #3421

I made the rounding function optional and added some more tests. I'll check again tomorrow if it now does what I need, as I don't have my test data here right now.


Black and isort diff plugins

Added smart plugins to use with black --check --diff and isort --check-only --diff.
How to test it
mkdir linthell_black_isort_diff_test && cd $_ && git init
python3 -m venv venv && . venv/bin/activate
python -m pip install --no-cache black isort pre-commit 'linthell @ git+https://github.com/discrimy/linthell.git@0c4fdfe416369757a398f1d4ac7c737f3efd1306'
touch t.py linthell_black_baseline.txt linthell_isort_baseline.txt .pre-commit-config.yaml
git add t.py && git commit -m "init commit"

Add broken code to t.py:
import b
import a
from _ import b, a

def func(arg,):
    pass

Add pre-commit config:
repos:
  - repo: local
    hooks:
      - id: isort
        name: isort
        language: system
        entry: isort --check-only --diff
        types:  [python]
  - repo: local
    hooks:
      - id: linthell_isort
        name: linthell over isort
        language: system
        entry: linthell pre-commit lint -p isort-diff -b linthell_isort_baseline.txt --linter-command "isort --check-only --diff"
        types:  [python]
  - repo: local
    hooks:
      - id: black
        name: black
        language: system
        entry: black --check --diff
        types:  [python]
  - repo: local
    hooks:
      - id: linthell_black
        name: linthell over black
        language: system
        entry: linthell pre-commit lint -p black-diff -b linthell_black_baseline.txt --linter-command "black --check --diff"
        types:  [python]

run pre-commit run --all to see difference in outputs:
isort....................................................................Failed
- hook id: isort
- exit code: 1

ERROR: /home/rows/py_dev/linthell_black_isort_diff_test/t.py Imports are incorrectly sorted and/or formatted.
--- /home/rows/py_dev/linthell_black_isort_diff_test/t.py:before        2023-08-28 19:27:10.545735
+++ /home/rows/py_dev/linthell_black_isort_diff_test/t.py:after 2023-08-28 19:27:24.559449
@@ -1,6 +1,7 @@
+import a
 import b
-import a
-from _ import b, a
+from _ import a, b
+

 def func(arg,):
     pass

linthell over isort......................................................Failed
- hook id: linthell_isort
- exit code: 1

t.py:1: +import a
t.py:2: -import a
t.py:3: -from _ import b, a
t.py:3: +from _ import a, b
t.py:4: +

black....................................................................Failed
- hook id: black
- exit code: 1

--- t.py        2023-08-28 16:27:10.545735+00:00
+++ t.py        2023-08-28 16:27:24.972181+00:00
@@ -1,6 +1,9 @@
 import b
 import a
 from _ import b, a

-def func(arg,):
+
+def func(
+    arg,
+):
     pass
would reformat t.py

Oh no! 💥 💔 💥
1 file would be reformatted.

linthell over black......................................................Failed
- hook id: linthell_black
- exit code: 1

t.py:5: -def func(arg,):
t.py:5: +
t.py:6: +def func(
t.py:7: +    arg,
t.py:8: +):

build baselines:
linthell pre-commit baseline -b linthell_isort_baseline.txt -p isort-diff --hook-name "linthell over isort" --linter-command "isort --check-only --diff"
linthell pre-commit baseline -b linthell_black_baseline.txt -p black-diff --hook-name "linthell over black" --linter-command "black --check --diff"

Run linhell to check that all errors are suppressed:
pre-commit run linthell_isort --all
pre-commit run linthell_black --all

Check baselines:
# isort
t.py:+
t.py:+from _ import a, b
t.py:+import a
t.py:-from _ import b, a
t.py:-import a
# black
t.py:+
t.py:+    arg,
t.py:+):
t.py:+def func(
t.py:-def func(arg,):

Code duplicate
Both Plugins has the same implementation with only different names and doc-strings, it would be fair to ask "maybe code could be reused?", but i was trying to prepare for cases when only one plugin will change the structure of output and than linthell will forced to adapt for new rules. If linthell would face it with both plugins reuses "base" code it would be a mess with if-statements or inheritance. Cognitive and maintain complexities would be increased significantly, and don't forget that plugin interfaced may be reused in other external plugins so linthell would try to make only backward-compatible changes.

Merge fresh master, changes are messed up with the previous PR and hard to review

Both Plugins has the same implementation with only different names and doc-strings

I think it's because their output is git-diff-like, at least git diff prints similar output. But I agree they're similar, not equal, so it would be better to keep them seperate, or at least make common implementation of parsing git-diff-like outputs private

Check baselines:

File paths must be relative to project root and be Posix only, so they work on others' machine and on Windows too

@discrimy File paths must be relative to project root and be Posix only, so they work on others' machine and on Windows too

Added code that makes files relative for current dir. Only for isort plugin. commit

Added code that makes files relative for working dir. Only for isort plugin. commit Updated PR description.

Does it handles Windows paths too? Paths must be POSIX only, so you need to normalize it. For example, regex plugin does it by using pathlib.Path module (Path(path).as_posix()), I suggest to use it to work with paths. Everything else is OK.

Fixed in commit.
BTW, seems like LinthellBlackCheckPlugin has the same issue keeping initial file path that would be different on Windows and *unix.

BTW, seems like LinthellBlackCheckPlugin has the same issue keeping initial file path that would be different on Windows and *unix.

I'll fix it later


I can't compile

Hi, I have this error when i try compile

The file misc.spp is not in the directory

Fix it in #10cec77862 commit. I recommend using msvc.
Thanks.


⚠ Test Homepage has degraded performance

In 15e3e86, Test Homepage (https://test.h-edu.cz) experienced degraded performance:

HTTP code: 530
Response time: 469 ms

Resolved: Test Homepage performance has improved in 0674ac0 after 15 minutes.


Support for make

I would like to propose the addition of support for make to compile larger C/C++ projects.  It is pretty much the last thing I would need to be able to fully use Code App for my work.
If there is a way I could install it without native support, that would be sweet also.
Thank you for your work on this app, it is pretty great so far.  Have a wonderful day!

Any update on this?


Proposal: isTuple

I don't know if this could be added to is, but it could be useful to infer typescript tuple type value.
declare const value: unknown;

if(isTuple(value, [is.number, is.string])) {
	value //=> [number, string]
}

Seems out of scope for this library.

Can this issue be suggested for is?


Additional features?

One of my goals when building this was to keep the project minimal. But I've had a few requests to add additional features. I'm curious if there is any consensus on adding additional features, and if so - which features would you like to see?
If you're reading this and you have an opinion on keeping this minimal vs adding features I'd love to hear your thoughts and which features you'd like to see included.
Potential features:

Testing (integration testing with Playwright and MSW)
i18n (i18next?)
Experimentation system (LaunchDarkly?)
Error Monitoring (Sentry?)
Observability (Better Stack?)
Type-safe environment (T3 Env)

Hi @KolbySisk
It is nice to have LaunchDarkly feature also.

Yeah it's a hard thing to balance features and minimalism just right.
i18n and Observability would be huge tho, and I honestly don't think it will add too much noise.
LaunchDarkly would be nice, but I fear it will add too much noise. I haven't used any feature flag implementation, so don't depend solely on my take.


Post CSD authoring quickstart training material

Uploaded here now:
https://github.com/riboseinc/csd-metanorma-training
CC: @strogonoff @opoudjis

@ronaldtse what exactly was the target audience for this training?

Authors of CalConnect Standards. It mostly applies to all standard authors, it’s just that the format “CSD” is specific to CalConnect.
To adapt for other standard formats (ISO, GB, IETF) all we need to is change “CSD” written in the training to the target standard name.

Who normally authors those standards? Was there a training event of sorts they attended?

Authors are technical experts of standards bodies, such as CalConnect.
This event was: https://www.calconnect.org/events/calconnect-xliii-september-2018

Wednesday Afternoon 26 September - TECHNICAL TRACK
1330-1430 | Authoring CalConnect Standards Lab
Using Asciidoc and GitHub Repositories to author and publish CalConnect Standards

Thanks for the link, helps understand the context.

@ronaldtse just curious, is there a video recording of the presentation?

It would make sense to publish it in a form of a blog post as well

Agreed. Unfortunately there wasn’t a recording, but you should ask @ribose-jeffreylau for a Skype re-run :wink:

Understood, I’ll work off the slides for now to save the time and we’ll improve on top of that later

Quickstart & sample doc added in

https://github.com/strogonoff/metanorma-csd/commit/0793f66d7643145dba33fca94217984e617ddfa9, https://github.com/strogonoff/metanorma-csd/commit/e14fc0b4eefe46c7c3cbeb6d4a7b105ad86ad2d5
https://github.com/riboseinc/metanorma.com/commit/99d88cd63ebc61a4d0bd97db192197bd84c3d7b4, https://github.com/riboseinc/metanorma.com/commit/e0a989f791f6ef96bde1e42a3c7b7ad5fdb6360e

@strogonoff thank you for the impressive work!! It looks awesome.
Layout wise:

If I shrink my screen to some point the words touch my right screen border
The left sidebar is often empty at the bottom when I scroll down, which is a bit awkward. It would be much better if we can provide a table of contents that follows the document and highlights the section I'm in?

@ronaldtse should be addressed by https://github.com/riboseinc/jekyll-theme-open-project/issues/43!

Thanks!

The issues raised in https://github.com/riboseinc/metanorma.com/issues/25#issuecomment-427725310 were fixed in OP framework 1.1.17, more layout updates to come (centering the text & more adjustments)


fractal and action buttons

how to use fractal transformer and ->addColumn('action', 'admin.categories.datatables_actions'); together ?
$dataTable = new EloquentDataTable($query);

        return $dataTable
            ->setTransformer(new CategoryTransformer())
            ->addColumn('action', 'admin.categories.datatables_actions');

If i user this - action buttons do not display. How to include them with the transformer ?

As mentioned in documentation

When using tranformer, all response manipulations must be done via transformer. Thus addColumn,  editColumn, removeColumn, setRowAttr, setClassAttr, etc... should be avoided when using fractal.

You have to add action column to the ProductTransformer. You can achieve this by doing something like below.
public function transform(Product $product){
    return [
        'id' => $product->id,
        'name' => $product->name,
        'sku' => $product->sku,
        'category' => $product->category->name,
        'price' => $product->price,
        'action' => view('admin.categories.datatables_actions')->with('id', $product->id)->render()
    ];
}

You can use rendered view with/without variables or raw string.
Note
If you don't use render() on view, you will get Object and it will be shown as [Object object] in HTML so don't forget to use render() on view.


Connection Leak in ChannelConnectionProcessor

@kaiohenrique -
Can you create a gerrit account and sign the CLA?

Thanks for the pull request!! To ensure quality review, Couchbase employs a code review system based on Gerrit to manage the workflow of changes in addition to tracking our contributor agreements.

To get this change in and collaborate in code review, please register on Gerrit and accept our CLA. The easiest way to do this is to follow the link below, sign in with your GitHub account and then follow through the steps provided on that page to sign an 'Individual' agreement: http://review.couchbase.org/#/settings/new-agreement.

Keep in mind that the emails we are seeing on the commits are: kaio3****emelo@gmacom

Note: Please contact us if you have any issues registering with Gerrit! If you have not signed our CLA within 7 days, the Pull Request will be automatically closed.

::SDKBOT/PR:no_cla

@kaiohenrique -
Can you create a gerrit account and sign the CLA?

Thanks for the pull request!! To ensure quality review, Couchbase employs a code review system based on Gerrit to manage the workflow of changes in addition to tracking our contributor agreements.

To get this change in and collaborate in code review, please register on Gerrit and accept our CLA. The easiest way to do this is to follow the link below, sign in with your GitHub account and then follow through the steps provided on that page to sign an 'Individual' agreement: http://review.couchbase.org/#/settings/new-agreement.

Keep in mind that the emails we are seeing on the commits are: kaio3****_emelo@gma_com

Note: Please contact us if you have any issues registering with Gerrit! If you have not signed our CLA within 7 days, the Pull Request will be automatically closed.

::SDKBOT/PR:no_cla

Done

This has been merged and is included in 3.4.4: https://github.com/couchbase/couchbase-net-client/commit/6c01c53b0d4afe51138a1c5a9ce2559cde52734e


fix filebrowser

add filebrowser.json contents
start server listening to <IP_ADDRESS> on port 80
change to a global volume directory mount, filebrowser will then create db in this directory on first run

This will be fixed in the next release, but thanks for the PR.


Getting validation steps from dict breaks keras fit TF 2.0.0-beta1

System information

TensorFlow installed from: pip
TensorFlow version: 2.0.0-beta1
Python version: 3.6

Describe the current behavior
When calling fit on a Keras model in 2.0.0-beta1 a  KeyError: 0 is thrown when trying to call fit with validation_data given as a dict (this worked in the alpha)
e.g.
mymodel.fit(x = {'input_0' : train_data_type_0, 'input_1':  train_data_type_1}, y = train_labels,
         validation_data = ({'input_0' : val_data_type_0, 'input_1':  val_data_type_1}, val_labels) )

The issue seems to have been introduced here, as the line:
val_samples_or_steps = val_inputs and val_inputs[0].shape[0] or None
assumes an array will be found and fails for dicts.
Describe the expected behaviour
val_inputs: Either a list or dictionary of arrays, or a dataset instance.

Please provide us complete code to reproduce the issue.Thanks

The following is sufficient to reproduce the issue:
import numpy as np
import tensorflow as tf

print(tf.__version__)

train_input_0 = np.random.rand(1000, 1)
train_input_1 = np.random.rand(1000, 1)
train_labels  = np.random.rand(1000, 1)

val_input_0 = np.random.rand(1000, 1)
val_input_1 = np.random.rand(1000, 1)
val_labels  = np.random.rand(1000, 1)

input_0 = tf.keras.Input(shape=(None,), name='input_0')
input_1 = tf.keras.Input(shape=(None,), name='input_1')

class my_model(tf.keras.Model):
    def __init__(self):
        super(my_model, self).__init__(self)
        self.hidden_layer_0 = tf.keras.layers.Dense(100, activation=tf.nn.relu)
        self.hidden_layer_1 = tf.keras.layers.Dense(100, activation=tf.nn.relu)
        self.concat         = tf.keras.layers.Concatenate()

        self.out_layer    = tf.keras.layers.Dense(1, activation=tf.nn.sigmoid)

    def call(self, inputs =  [input_0, input_1]):
        activation_0 = self.hidden_layer_0(inputs['input_0'])
        activation_1 = self.hidden_layer_1(inputs['input_1'])
        concat       = self.concat([activation_0, activation_1])

        return self.out_layer(concat)

model = my_model()
opt = tf.optimizers.Adam()
loss = tf.keras.losses.MeanAbsoluteError()
model.compile(opt, loss)

model.fit(x = {'input_0' : train_input_0, 'input_1':  train_input_1}, y = train_labels,
         validation_data = ({'input_0' : val_input_0, 'input_1':  val_input_1}, val_labels) )

This runs with 2.0.0-alpha0, but fails with 2.0.0-beta1

I am able to reproduce the issue in Colab ,works with  TF 2.0.0-alpha0, and fails with 2.0.0-beta1.Thanks!

Added a PR #30258 for the fix.


West flash improvements

west flash hasn't worked for a while when using CONFIG_SECURE_BOOT since the bootloader places contents in the UICR, and on 53 and 91 --sectoranduicrerase is not available, so those have always been using --sectorerase. This patch changes that to use --chiperase when the hex file has contents in UICR.
west flash is unable to flash a merged hex file with contents for both cores on nRF53. This patch fixes that by splitting the hex into two parts and flashing them individually if the hex file has contents for both cores.

Some checks failed. Please fix and resubmit.
pylint issues
************* Module runners.nrfjprog
scripts/west_commands/runners/nrfjprog.py:25:0: C0325: Unnecessary parens after 'return' keyword (superfluous-parens)

Tip: The bot edits this comment instead of posting a new one, so you can check the comment's history to see earlier messages.

FYI https://github.com/zephyrproject-rtos/zephyr/pull/21928

@hakonfam Why was it closed?

@hakonfam Why was it closed?

@tejlmand came up with the solution where you add a custom command performing ninja flash and add this as a dependency to the flash target.
    add_custom_target(${ACI_NAME}_flash
                      COMMAND
                      ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR}/${ACI_NAME}
                      --target flash
                      DEPENDS
                      ${ACI_NAME}_subimage

    set_property(TARGET zephyr_property_target
                 APPEND PROPERTY FLASH_DEPENDENCIES
                 ${ACI_NAME}_flash

We see, however, that this solution does not fix all use cases, as west flash does not invoke ninja flash. This approach would solve that use case as well.

One question though, why not just send this upstream?

I wanted to see the response first. I'll open a PR now.

As @hakonfam comment shows, there is a discrepancy on how west flash and ninja flash works.
Ideally, using west flash and ninja flash should always produce same result, so we should look into how the knowledge can be passed from CMake into west flash

As @hakonfam comment shows, there is a discrepancy on how west flash and ninja flash works.
Ideally, using west flash and ninja flash should always produce same result, so we should look into how the knowledge can be passed from CMake into west flash

With this patch, west flash and ninja flash produce the same result. They achieve it in slightly different ways, since ninja naturally has more insight into the build. What do you see as the advantage of passing more knowledge from CMake to west flash compared to reading the hex file directly?

To me the advantages of this fix are:

It will "always" work. No hex file will make it fail, unless that hex file is properly invalid (contains data in addresses not in flash)
It allows west flash to be work without too much coupling with the cmake (i.e. running west flash on a hex file manually from the command line works without having to know a lot of internal stuff.
It's contained in just one file (nrfjprog.py) with one exception which is a trivial simplification.

I think it gives west flash a cleaner interface.

If we want west flash to reuse the files generated from, I propose keeping the automatic detection of CP_APPLICATION/CP_NETWORK. We probably also need to modify the west flash CLI to accept multiple hex files.
One consideration is if somehow, cpuapp samples start containing cpunet contents or vice versa (after all, samples are built for a core not a flash region per se). Not a problem now, but keeping the whole patch from this PR will allow that.

@oyvindronningstad Please take a look here:
https://github.com/nrfconnect/sdk-zephyr/pull/324
https://github.com/nrfconnect/sdk-nrf/pull/2487
as simple as just supporting multiple runners.yml files, one for each image that we need to flash.
We already fetch the CMake cache, so just supply a list instead of a single file is much cleaner.
https://github.com/nrfconnect/sdk-zephyr/blob/master/scripts/west_commands/run_common.py#L272

That's very neat @tejlmand, thanks a lot for looking into it!
Your solution solves the original problem, so we can go ahead and get it in.
I will rework this PR to have just the UICR stuff and the CP_NETWORK/CP_APPLICATION detection.
I will also reconsider the file splitting, maybe I'll open a separate PR since I still think it has merit for working with more unusual hex files.

I will also reconsider the file splitting, maybe I'll open a separate PR since I still think it has merit for working with more unusual hex files.

I was wondering if such a feature should actually make it into nrfjprog instead ?
For example: nrfjprog --program <hex-file> --from-addr <addr> --to-addr <addr>
that way the feature would be a bit more generic and useful outside west
and it would remove the need for splitting the hex-file into multiple files.

I was wondering if such a feature should actually make it into nrfjprog instead ?
For example: nrfjprog --program <hex-file> --from-addr <addr> --to-addr <addr>

I like the idea. It could even be implicit from the --coprocessor, so doing
nrfjprog --program <hex-file> --coprocessor CP_APPLICATION
nrfjprog --program <hex-file> --coprocessor CP_NETWORK

would flash the whole hex file. I'll create an issue to propose both ideas.

@mbolivar-nordic please revisit

@mbolivar-nordic please revisit

Looks like this is waiting for a response from @tejlmand. I am confused about all the open PRs and don't feel like I understand what's going on well enough. I am trying to schedule a call for next week to try to get clued in.


Nightly hasn't updated for a week

Rustup is on 2018-04-15, but the playground is still on 2018-04-09.  (Both http://play.integer32.com/ and https://play.rust-lang.org/.)
Is there something wrong, or am I impatient?

Fixed, thank you!


Ensure data harvesting functionality meets the requirements for ReShare

clarify whether incremental or record-level access

From our last discussion, it sounds like ReShare needs incremental access, but doesn't require record-level access.  (We could still provide it as part of general OAI-PMH functionality via the GetRecord method, but we don't expect Index Data to depend on it or to invoke it regularly.)  More details on my  "Additional notes based on Friday's workcycle meeting with Index Data people" comment on issue #417.

Closing this since it has been replaced by more specific issues related to implementing OAI-PMH