Docker container from one service can't connect to a container from another swarm service spawned on a different node via the service name

My environment:
I have a swarm cluster from one manager and one node.  On Ubuntu 16.04 with an inactive ufw firewall.
Docker version
root@head1:/home/niau# docker version
Client:
 Version:      1.12.1
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   23cf638
 Built:        Thu Aug 18 05:33:38 2016
 OS/Arch:      linux/amd64

Server:
 Version:      1.12.1
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   23cf638
 Built:        Thu Aug 18 05:33:38 2016
 OS/Arch:      linux/amd64

Docker info
Containers: 5
 Running: 1
 Paused: 0
 Stopped: 4
Images: 2
Server Version: 1.12.1
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 22
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge null overlay host
Swarm: active
 NodeID: bju9jvsnx23cf1hz5pdicg4zt
 Is Manager: true
 ClusterID: 6tfaldrfmcfucanjq985ikzy7
 Managers: 1
 Nodes: 2
 Orchestration:
  Task History Retention Limit: 5
 Raft:
  Snapshot Interval: 10000
  Heartbeat Tick: 1
  Election Tick: 3
 Dispatcher:
  Heartbeat Period: 5 seconds
 CA Configuration:
  Expiry Duration: 3 months
 Node Address: <IP_ADDRESS>
Runtimes: runc
Default Runtime: runc
Security Options: apparmor seccomp
Kernel Version: 4.4.0-36-generic
Operating System: Ubuntu 16.04 LTS
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 740.4 MiB
Name: head1
ID: TPCI:HI3A:YIOR:DX5N:UF2T:ZIMN:TTNP:GDYU:SWRM:5EDY:C4U6:TYD5
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
Insecure Registries:
 <IP_ADDRESS>/8

How to reproduce the issue:
Create 3 services with replica factor 1 and endpoint mode vip so that to get a distribution like one container on one of the nodes and two on the other. Make them to use the initially (by default) created internal overlay docker network.
root@head1:/home/niau# for I in `seq 1 3`; do docker service create --name nms$I --network ingress --endpoint-mode vip -p 808$I:8080/tcp tomcat; done
dqmjcloapuxzly8cubh89i5n3
1o8okbe4h8efxe2kfea3c6r1a
dalcyd45ex0t1lv8rqi0v9ozk
root@head1:/home/niau# docker service ls
ID            NAME  REPLICAS  IMAGE   COMMAND
1o8okbe4h8ef  nms2  1/1       tomcat
dalcyd45ex0t  nms3  1/1       tomcat
dqmjcloapuxz  nms1  1/1       tomcat
root@head1:/home/niau# docker service ps nms1
ID                         NAME    IMAGE   NODE   DESIRED STATE  CURRENT STATE           ERROR
dwz3rpi95guimoursmpfnmcz7  nms1.1  tomcat  head1  Running        Running 25 seconds ago
root@head1:/home/niau# docker service ps nms2
ID                         NAME    IMAGE   NODE   DESIRED STATE  CURRENT STATE           ERROR
8vfp3wdt0v6dkv0wts0nvq5b8  nms2.1  tomcat  node1  Running        Running 26 seconds ago
root@head1:/home/niau# docker service ps nms3
ID                         NAME    IMAGE   NODE   DESIRED STATE  CURRENT STATE           ERROR
9vg54l68wzmrxuj38bh06dhes  nms3.1  tomcat  node1  Running        Running 28 seconds ago

Example service inspect
niau@head1:~$ sudo docker service inspect nms1
[
    {
        "ID": "dqmjcloapuxzly8cubh89i5n3",
        "Version": {
            "Index": 112
        },
        "CreatedAt": "2016-09-13T08:26:14.624441946Z",
        "UpdatedAt": "2016-09-13T08:26:14.62679166Z",
        "Spec": {
            "Name": "nms1",
            "TaskTemplate": {
                "ContainerSpec": {
                    "Image": "tomcat"
                },
                "Resources": {
                    "Limits": {},
                    "Reservations": {}
                },
                "RestartPolicy": {
                    "Condition": "any",
                    "MaxAttempts": 0
                },
                "Placement": {}
            },
            "Mode": {
                "Replicated": {
                    "Replicas": 1
                }
            },
            "UpdateConfig": {
                "Parallelism": 1,
                "FailureAction": "pause"
            },
            "Networks": [
                {
                    "Target": "47uaavbs6hy1xwzu6fald4dvq"
                }
            ],
            "EndpointSpec": {
                "Mode": "vip",
                "Ports": [
                    {
                        "Protocol": "tcp",
                        "TargetPort": 8080,
                        "PublishedPort": 8081
                    }
                ]
            }
        },
        "Endpoint": {
            "Spec": {
                "Mode": "vip",
                "Ports": [
                    {
                        "Protocol": "tcp",
                        "TargetPort": 8080,
                        "PublishedPort": 8081
                    }
                ]
            },
            "Ports": [
                {
                    "Protocol": "tcp",
                    "TargetPort": 8080,
                    "PublishedPort": 8081
                }
            ],
            "VirtualIPs": [
                {
                    "NetworkID": "47uaavbs6hy1xwzu6fald4dvq",
                    "Addr": "<IP_ADDRESS>/16"
                }
            ]
        },
        "UpdateStatus": {
            "StartedAt": "0001-01-01T00:00:00Z",
            "CompletedAt": "0001-01-01T00:00:00Z"
        }
    }
]

Once you do that you can try to resolve the name of the services. The pattern I have found is:

On any of the nodes the containers can resolve service names correctly to their VIPs.

root@587b81820e4a:/usr/local/tomcat# nslookup nms1
Server:		<IP_ADDRESS>
Address:	<IP_ADDRESS>#53

Non-authoritative answer:
Name:	nms1
Address: <IP_ADDRESS>

root@587b81820e4a:/usr/local/tomcat# nslookup nms2
Server:		<IP_ADDRESS>
Address:	<IP_ADDRESS>#53

Non-authoritative answer:
Name:	nms2
Address: <IP_ADDRESS>

root@587b81820e4a:/usr/local/tomcat# nslookup nms3
Server:		<IP_ADDRESS>
Address:	<IP_ADDRESS>#53

Non-authoritative answer:
Name:	nms3
Address: <IP_ADDRESS>

Each of the containers can connect (telnet has been used as a tool) to the internal TargetPort  via the service name of the service that has created it.
Containers from different services that are on the same node can connect to each other on the service TargetPorts.
Containers on different hosts from different services can ping each other on their internal (dynamic) overlay network IPs.
Containers on different hosts can't connect neither to the TargetPorts nor to the published ports by another service.

-> container from service nms2 on host node1 trying to reach nms1 service that is in a container running on a different node (head1)
root@65142c85f77f:/usr/local/tomcat# telnet nms1 8081
Trying <IP_ADDRESS>...
**telnet: Unable to connect to remote host: No route to host**
root@65142c85f77f:/usr/local/tomcat# telnet nms1 8080
Trying <IP_ADDRESS>...
**telnet: Unable to connect to remote host: No route to host**

When I check the routing on the container
root@65142c85f77f:/usr/local/tomcat# ip route
default via <IP_ADDRESS> dev eth1
<IP_ADDRESS>/16 dev eth0  proto kernel  scope link  src <IP_ADDRESS>
<IP_ADDRESS>/16 dev eth1  proto kernel  scope link  src <IP_ADDRESS>

->>>> Which is a bug to me....
@mrjana  pinging you also here

One more comment I have monitored exactly the same behavior also in an environment  build against the head of master docker repository branch.
niau@docker-swarm-head-1:~$ docker info
Containers: 4
 Running: 1
 Paused: 0
 Stopped: 3
Images: 6
Server Version: 1.13.0-dev
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 26
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local azurefile
 Network: bridge host null overlay overlay
Swarm: active
 NodeID: 7p1ab5vhjax085liyxlrrkfl6
 Is Manager: true
 ClusterID: b9sxgfffc4pk274xhyylvyeqg
 Managers: 1
 Nodes: 2
 Orchestration:
  Task History Retention Limit: 5
 Raft:
  Snapshot Interval: 10000
  Heartbeat Tick: 1
  Election Tick: 3
 Dispatcher:
  Heartbeat Period: 5 seconds
 CA Configuration:
  Expiry Duration: 3 months
 Node Address: <IP_ADDRESS>
Runtimes: runc
Default Runtime: runc
Security Options: apparmor seccomp
Kernel Version: 4.4.0-36-generic
Operating System: Ubuntu 16.04.1 LTS
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 27.48 GiB
Name: docker-swarm-head-1
ID: CZFA:OXKQ:K6OD:4TMK:BRT6:5FXD:6NUE:JG5I:XKNV:J6AJ:5DLA:QK3R
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
Insecure Registries:
 <IP_ADDRESS>/8
Live Restore Enabled: false

niau@docker-swarm-head-1:~$ docker version
Client:
 Version:      1.13.0-dev
 API version:  1.25
 Go version:   go1.7
 Git commit:   ebae43e
 Built:        Sat Sep 10 10:38:38 2016
 OS/Arch:      linux/amd64

Server:
 Version:      1.13.0-dev
 API version:  1.25
 Go version:   go1.7
 Git commit:   ebae43e
 Built:        Sat Sep 10 10:38:38 2016
 OS/Arch:      linux/amd64

+1 having exactly same issue described here

+1 I have also tested this and it is an issue also in the latest master branch, not only in 1.12.1. I'm curious how people are using docker swarm for micro-services if this functionality is not working.

You can't use the ingress network for DNS resolution.
It should not be possible to even manually join the ingress network, IMO.
If you need services to be able to reach each other, create a network and put the services that need to talk in that network.

@cpuguy83 ah that explains the ubiquity of the issue :)
So  the default "ingress" network is "special" purpose overlay network that could be used only for external VIPs.
If we need internal and external VIPs between our services we need a second overlay network, then starting the service with two networks which eventually will result in similar output by docker service inspect
"EndpointSpec": {
               "Mode": "vip",
               "Ports": [
                   {
                       "Protocol": "tcp",
                       "TargetPort": 80,
                       "PublishedPort": 8081
                   },
                   {
                       "Protocol": "tcp",
                       "TargetPort": 22,
                       "PublishedPort": 2221
                   }
               ]
           }
       },
       "Endpoint": {
           "Spec": {
               "Mode": "vip",
               "Ports": [
                   {
                       "Protocol": "tcp",
                       "TargetPort": 80,
                       "PublishedPort": 8081
                   },
                   {
                       "Protocol": "tcp",
                       "TargetPort": 22,
                       "PublishedPort": 2221
                   }
               ]
           },
           "Ports": [
               {
                   "Protocol": "tcp",
                   "TargetPort": 80,
                   "PublishedPort": 8081
               },
               {
                   "Protocol": "tcp",
                   "TargetPort": 22,
                   "PublishedPort": 2221
               }
           ],
           "VirtualIPs": [
               {
                   "NetworkID": "7ppd2s4hj98yf13cqad2a3kzs",
                   "Addr": "<IP_ADDRESS>/16" -> ingress VIP
               },
               {
                   "NetworkID": "ccnvqpvrpx1z9ywh8arg2fmwd",
                   "Addr": "<IP_ADDRESS>/24" -> Internal network VIP.
               }
           ]
       }

Thanks I assume this is for closing!

The ingress network is special-purpose and only for handling -p.
Closing since it looks like we figured out the issue.

@cpuguy83  It is cool to be closed but I think that ticket has to be followed up by a couple of extra lines regarding the special purpose of the ingress network here https://docs.docker.com/engine/swarm/networking/

@niau #25396
This is really a bug, IMO.

@cpuguy83  👍 sure it is took us a couple of days of debgging and testing and still were not able to figure out where do the packets disappear in the "ingress" network.


[images] Adding vim.tiny editor

for debugging purposes
Fixes: https://github.com/scylladb/scylla-machine-image/issues/497

Verified with https://jenkins.scylladb.com/job/scylla-master/job/releng-testing/job/next-machine-image/291/


Issue-9949 Helper icon for prompt component

Notes for Reviewers
This PR fixes #9949
In this PR, it was required to add a right-side Helper prompt icon. I have built it in this way so that we can send a message named helpText, and it will automatically add it to the helper prompt. Also, I have made a field of adding something in the future in the left-side heading also, currently, it is just showing blank spaces.
Currently, on right-side, it displays the text Deletes the "${environment.name}" Environment, as in the following picture.

Also, In the files where we don't require the left nor right prompt, It will just render the text, as it was previously.

Please let me know if any improvements can be made... @senali-d @leecalcote
Signed commits

[-] Yes, I signed my commits.
Signed-off-by: Anmol Chhabra<EMAIL_ADDRESS>

@anmolchhabra21 some checks are failing.
Also please it is a good practice to get assigned to the issue first, would you comment on the issue so i can assign you @anmolchhabra21

@anmolchhabra21 light and dark mode are both displaying the correct color?

Yes @leecalcote, it is displaying correct colors as per the theme now.

Hi @leecalcote, @sudhanshutech, I am not sure why the tests are failing, I made a empty commit, to just run it once again, but it passed the previously failed and now failing on another test, can you please re-run them,
I have re-checked my commits, and they are not associated with my changes, I think these are randomly failing, can you please help me with it.

Please add a link to the Environments docs page.

@sudhanshutech, I think the PR is ready for review. Can you please have a look at it once you are done with your tasks?
Regarding the failing snapshot, I asked for it in the Slack channel, and It can be ignored.

Any update for me on this PR?


[1.12.0-rc4-beta20] Cannot mount file

Output of docker version:
Client:
 Version:      1.12.0-rc4
 API version:  1.24
 Go version:   go1.6.2
 Git commit:   e4a0dbc
 Built:        Wed Jul 13 03:28:51 2016
 OS/Arch:      windows/amd64
 Experimental: true

Server:
 Version:      1.12.0-rc4
 API version:  1.24
 Go version:   go1.6.2
 Git commit:   e4a0dbc
 Built:        Wed Jul 13 03:28:51 2016
 OS/Arch:      linux/amd64
 Experimental: true

Output of docker info:
Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 458
Server Version: 1.12.0-rc4
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 1103
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: null bridge host overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: seccomp
Kernel Version: 4.4.15-moby
Operating System: Alpine Linux v3.4
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.951 GiB
Name: moby
ID: PI3M:4BYK:GTWV:4CQX:SRJE:K5TL:K6RX:HMEJ:7QYD:JPG4:N24B:E2S2
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Username: velo
Registry: https://index.docker.io/v1/
Experimental: true
Insecure Registries:
 <IP_ADDRESS>/8

Additional environment details (AWS, VirtualBox, physical, etc.):
physical, Windows 10
Steps to reproduce the issue:

Try to mount a file (as instructed here https://docs.docker.com/engine/tutorials/dockervolumes/#/mount-a-host-file-as-a-data-volume)
docker run --rm -it -v C:\tools\cygwin\home\froederm.bashrc:/root/.bashrc ubuntu /bin/bash

Describe the results you received:
Go an error
docker: Error response from daemon: oci runtime error: rootfs_linux.go:53: mounting "/var/lib/docker/aufs/mnt/742c187d0f0df493c6f4b60726ada82b5d570cd87eeaae696274d2bb1812f3b5/root/.bashrc" to rootfs "/var/lib/docker/aufs/mnt/742c187d0f0df493c6f4b60726ada82b5d570cd87eeaae696274d2bb1812f3b5" caused "not a directory".

Describe the results you expected:
File to be mount on container
Additional information you deem important (e.g. issue happens only occasionally):
Noticed after beta20
Any way to rollback to 19?

ping @justincormack

ping @rneugeba as it is Docker for Windows..

@velo volume mounting individual file on Docker for Windows works, but you need to explicitly share the C drive before. You can do that via the Settings -> Shared Drive
Thanks

I'm receiving a similar error with docker-machine for OS X.
Output of docker version:
Client:
 Version:      1.12.0-rc3
 API version:  1.24
 Go version:   go1.6.2
 Git commit:   91e29e8
 Built:        Sat Jul  2 00:09:24 2016
 OS/Arch:      darwin/amd64
 Experimental: true

Server:
 Version:      1.12.0-rc4
 API version:  1.24
 Go version:   go1.6.2
 Git commit:   e4a0dbc
 Built:        Wed Jul 13 03:39:43 2016
 OS/Arch:      linux/amd64

Output of docker info:
Containers: 2
 Running: 1
 Paused: 0
 Stopped: 1
Images: 70
Server Version: 1.12.0-rc4
Storage Driver: aufs
 Root Dir: /mnt/sda1/var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 60
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge null host overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: seccomp
Kernel Version: 4.4.15-boot2docker
Operating System: Boot2Docker 1.12.0-rc4 (TCL 7.2); HEAD : cbe6927 - Wed Jul 13 14:19:29 UTC 2016
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 3.858 GiB
Name: default
ID: T2IF:KQQH:24FI:HKHA:BFKU:DOZ2:GFUK:HFOJ:LNN6:R4OJ:SLF3:64RI
Docker Root Dir: /mnt/sda1/var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 26
 Goroutines: 40
 System Time: 2016-07-20T18:16:50.914741826Z
 EventsListeners: 0
Username: jdgranberry
Registry: https://index.docker.io/v1/
Labels:
 provider=virtualbox
Insecure Registries:
 <IP_ADDRESS>/8

Additional environment details (AWS, VirtualBox, physical, etc.):
VirtualBox, OS X 10.11.6, docker-py 1.8.1
Additional information you deem important (e.g. issue happens only occasionally):
Unfortunately, I only receive this error when attempting to start a container within our pytest fixture using docker-py bindings. Running a standalone script with identical statements works fine.
Describe the results you received:
docker.errors.APIError: 500 Server Error: Internal Server Error ("b'oci runtime error: rootfs_linux.go:53: mounting "/mnt/sda1/var/lib/docker/aufs/mnt/6054e0ab85246f64cc28cf7be2c82fb6f91c195a708e6a4e883dc4838eca4717/etc/prometheus/prometheus.yml" to rootfs "/mnt/sda1/var/lib/docker/aufs/mnt/6054e0ab85246f64cc28cf7be2c82fb6f91c195a708e6a4e883dc4838eca4717" caused "not a directory"'")
Describe the results you expected:
File to be mounted on container
Additional information you deem important (e.g. issue happens only occasionally):
Unfortunately, I only receive this error when attempting to start a container within our pytest fixture using docker-py bindings. Running a standalone script with identical statements works fine.
Output of docker volume ls:
DRIVER              VOLUME NAME
local               ca3f223be95ec00ca6818fd7c0628a7b5f8352b63fc32b5171db962a4f462c26

Output of docker inspect <container in question>:
[
    {
        "Id": "a70ca70fa446891bb5f0de348c1a06337e48eafc09efe42ca4bebdc732dc6b23",
        "Created": "2016-07-20T18:14:02.2469256Z",
        "Path": "/bin/prometheus",
        "Args": [
            "-config.file=/etc/prometheus/prometheus.yml",
            "-storage.local.path=/prometheus",
            "-web.console.libraries=/etc/prometheus/console_libraries",
            "-web.console.templates=/etc/prometheus/consoles"
        ],
        "State": {
            "Status": "created",
            "Running": false,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 0,
            "ExitCode": 128,
            "Error": "oci runtime error: rootfs_linux.go:53: mounting \"/mnt/sda1/var/lib/docker/aufs/mnt/6054e0ab85246f64cc28cf7be2c82fb6f91c195a708e6a4e883dc4838eca4717/etc/prometheus/prometheus.yml\" to rootfs \"/mnt/sda1/var/lib/docker/aufs/mnt/6054e0ab85246f64cc28cf7be2c82fb6f91c195a708e6a4e883dc4838eca4717\" caused \"not a directory\"",
            "StartedAt": "0001-01-01T00:00:00Z",
            "FinishedAt": "0001-01-01T00:00:00Z"
        },
        "Image": "sha256:e180d8c8c83c9e937cd53cd35441aff8afdcc675e8381841fccdaf1375a5cd11",
        "ResolvConfPath": "/mnt/sda1/var/lib/docker/containers/a70ca70fa446891bb5f0de348c1a06337e48eafc09efe42ca4bebdc732dc6b23/resolv.conf",
        "HostnamePath": "/mnt/sda1/var/lib/docker/containers/a70ca70fa446891bb5f0de348c1a06337e48eafc09efe42ca4bebdc732dc6b23/hostname",
        "HostsPath": "/mnt/sda1/var/lib/docker/containers/a70ca70fa446891bb5f0de348c1a06337e48eafc09efe42ca4bebdc732dc6b23/hosts",
        "LogPath": "",
        "Name": "/8b56cf85-c33f-490b-a269-a0314969d354_prometheus-1",
        "RestartCount": 0,
        "Driver": "aufs",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "",
        "ExecIDs": null,
        "HostConfig": {
            "Binds": [
                "/private/var/folders/m2/w0mddtvn7slfmy6jbrwzpcshhbh2jn/T/pytest-of-jdgranberry/pytest-16/mq-prometheus.yaml:/etc/prometheus/prometheus.yml"
            ],
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "json-file",
                "Config": {}
            },
            "NetworkMode": "8b56cf85-c33f-490b-a269-a0314969d354_network",
            "PortBindings": {
                "9090/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "9090"
                    }
                ]
            },
            "RestartPolicy": {
                "Name": "",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "CapAdd": null,
            "CapDrop": null,
            "Dns": null,
            "DnsOptions": null,
            "DnsSearch": null,
            "ExtraHosts": null,
            "GroupAdd": null,
            "IpcMode": "",
            "Cgroup": "",
            "Links": null,
            "OomScoreAdj": 0,
            "PidMode": "",
            "Privileged": false,
            "PublishAllPorts": false,
            "ReadonlyRootfs": false,
            "SecurityOpt": null,
            "UTSMode": "",
            "UsernsMode": "",
            "ShmSize": 67108864,
            "Runtime": "runc",
            "ConsoleSize": [
                0,
                0
            ],
            "Isolation": "",
            "CpuShares": 0,
            "Memory": 0,
            "CgroupParent": "",
            "BlkioWeight": 0,
            "BlkioWeightDevice": null,
            "BlkioDeviceReadBps": null,
            "BlkioDeviceWriteBps": null,
            "BlkioDeviceReadIOps": null,
            "BlkioDeviceWriteIOps": null,
            "CpuPeriod": 0,
            "CpuQuota": 0,
            "CpusetCpus": "",
            "CpusetMems": "",
            "Devices": null,
            "DiskQuota": 0,
            "KernelMemory": 0,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": -1,
            "OomKillDisable": false,
            "PidsLimit": 0,
            "Ulimits": null,
            "CpuCount": 0,
            "CpuPercent": 0,
            "IOMaximumIOps": 0,
            "IOMaximumBandwidth": 0
        },
        "GraphDriver": {
            "Name": "aufs",
            "Data": null
        },
        "Mounts": [
            {
                "Name": "ca3f223be95ec00ca6818fd7c0628a7b5f8352b63fc32b5171db962a4f462c26",
                "Source": "/mnt/sda1/var/lib/docker/volumes/ca3f223be95ec00ca6818fd7c0628a7b5f8352b63fc32b5171db962a4f462c26/_data",
                "Destination": "/prometheus",
                "Driver": "local",
                "Mode": "",
                "RW": true,
                "Propagation": ""
            },
            {
                "Source": "/private/var/folders/m2/w0mddtvn7slfmy6jbrwzpcshhbh2jn/T/pytest-of-josh0105/pytest-16/mq-prometheus.yaml",
                "Destination": "/etc/prometheus/prometheus.yml",
                "Mode": "",
                "RW": true,
                "Propagation": "rprivate"
            }
        ],
        "Config": {
            "Hostname": "a70ca70fa446",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": true,
            "AttachStderr": true,
            "ExposedPorts": {
                "9090/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
            ],
            "Cmd": [
                "-config.file=/etc/prometheus/prometheus.yml",
                "-storage.local.path=/prometheus",
                "-web.console.libraries=/etc/prometheus/console_libraries",
                "-web.console.templates=/etc/prometheus/consoles"
            ],
            "Image": "prom/prometheus:v1.0.0",
            "Volumes": {
                "/prometheus": {}
            },
            "WorkingDir": "/prometheus",
            "Entrypoint": [
                "/bin/prometheus"
            ],
            "OnBuild": null,
            "Labels": {}
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "582b3dbcf82f466c8a8609ad62e19520512e3db31f220948e4ceeecaeec87e86",
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "Ports": null,
            "SandboxKey": "/var/run/docker/netns/582b3dbcf82f",
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "",
            "Gateway": "",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "",
            "IPPrefixLen": 0,
            "IPv6Gateway": "",
            "MacAddress": "",
            "Networks": {
                "8b56cf85-c33f-490b-a269-a0314969d354_network": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": [
                        "a70ca70fa446"
                    ],
                    "NetworkID": "6bed37b54abe17e99fb85ede65f8a0fd73a9c5a444efef4984fa2cd84110dd9e",
                    "EndpointID": "",
                    "Gateway": "",
                    "IPAddress": "",
                    "IPPrefixLen": 0,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "MacAddress": ""
                }
            }
        }
    }
]

@jdgranberry boot2docker would not have access to /private on your OSX host, only to /Users

Must be the culprit. Thanks!

I'm sharing.
Also, this was working fine, broke o the last update
On Thu, 21 Jul 2016 03:28 Rolf Neugebauer<EMAIL_ADDRESS>wrote:

@velo https://github.com/velo volume mounting individual file on Docker
for Windows works, but you need to explicitly share the C drive before. You
can do that via the Settings -> Shared Drive
Thanks
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/docker/docker/issues/24826#issuecomment-233984877,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAIVjr9tOYUT_zWoG80ipcmeCDYUmNVzks5qXj6NgaJpZM4JQZLr
.

You can/have to now select additional paths in the UI to share them.
On 20 Jul 2016 7:38 p.m., "Brian Goff"<EMAIL_ADDRESS>wrote:

@jdgranberry https://github.com/jdgranberry boot2docker would not have
access to /private on your OSX host, only to /Users
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/docker/docker/issues/24826#issuecomment-234041284,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAdcPNZRaYmsH1fc2xmwSe-Y5MNBi75Wks5qXmsrgaJpZM4JQZLr
.

Anything else besides this?

Also, directory doesn't seem to be 100%

I tried reserting credentials and sharing C again, no joy...
A diagnostic was uploaded with id: D7E2026D-F959-4B2A-A636-9D38762FD9A6/2016-07-21_14-04-00

I have exactly the same problem on Windows 10. Before I updated to 1.12.0-rc4-beta20 everything was working.

Can you try to manually unshare the C drive and try sharing again in Docker for Windows UI?

Also, next version (Beta21, coming soon hopefully) will contain a couple of fixes for the filesharing.

Hi, share/unshare didn't help. What solved it for me was complete uninstall and then reinstall of docker for Windows beta. Thanks.

unshare and sharing again did the trick for me.
Thanks


Generate docs for ibm_zos_core collection v1.8.0-beta.1

SUMMARY

As part of ibm_zos_core collection v1.8.0-beta.1 release, the docs have been updated, latest is on main branch.
ISSUE TYPE

Update Collection

Completed


start up section ticket

This is the pull request concerning the startup section ticket. Three files were added:
1)app/Startup/e-lab-startups.tsx
2)app/Startup/page.tsx
3)components/ui/Card.tsx

TODO: fix linters and bug with the left arrow of the carousel. Move Detail Button to the bottom


How To Remove The Developer Menu

Describe the problem
Is there any way to remove the default right click menu.

Describe the solution you'd like
I like to have a configuration Tauris config file.
Alternatives considered
No response
Additional context
No response

if you use vite
        if (!import.meta.env.DEV) {
            document.oncontextmenu = (event) => {
                event.preventDefault()
            }
        }

Put this in your front-end code, it will cancel this menu
Sample code:
https://github.com/Borber/Tran/blob/master/src/App.tsx#L39-L43

you need to listen to 'contextmenu' event in JS and disable it.

@Borber Thanks man, It worked


Hiding title and toolbar on small screen (width < 768px)

Is there a problem with function on screens below 768px? Wondering why this isn't an option to enable or disable on smaller screens.

Option? I will think about this. Thanks~

The v0.5.0 supports to toggle the visibility of title, toolbar and navbar between different screen widths.


[YBUG.IO] Please add APY% based on Pool! ty

Please add APY% based on Pool! ty
Source url: https://live.sovryn.app/liquidity
Reported by:
Reported at: 02 Apr at 17:39 UTC
Location: US, Florida, Lake Worth
Browser: Chrome 89.0.4389.105
OS: macOS 10.15.5
Screen: 1440x900
Viewport: 1440x793
Screenshot:

For more details please visit report page on Ybug:
https://ybug.io/dashboard/reports/detail/qqxsvvr1fsgm19bkatk4

Closing as this is already in roadmap


is it necessary to link the libc math library? (-lm)

In the latest Cython documentation, it says:

The libc math library is special in that it is not linked by default on some Unix-like systems, such as Linux. In addition to cimporting the declarations, you must configure your build system to link against the shared library m.

http://cython.readthedocs.io/en/latest/src/tutorial/external.html#dynamic-linking
Now, I tried to compile this sample snippet which cimports from libc.math, on a Ubuntu 16.04 machine:
from libc.math cimport sin

cpdef double sin2(double x):
    return sin(x*x)

I did not link the m library in the distutils/setuptools Extension.libraries, so the resulting .so file looks like this:
$ ldd demo.so
	linux-vdso.so.1 =>  (0x00007fff299a8000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f38f9e59000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f38f9a90000)
	/lib64/ld-linux-x86-64.so.2 (0x0000559ffa7c0000)

Despite what the cython docs say, even without explicitly linking the math library, this seems to be working fine when I run it from Python:
In [1]: from demo import sin2

In [2]: sin2(0.2)
Out[2]: 0.03998933418663417

I'm thinking this works because python itself is linked with libm:
$ ldd /home/cosimolupo/.pyenv/versions/cython-test/bin/python
	linux-vdso.so.1 =>  (0x00007ffe683dc000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f22c487a000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f22c4676000)
	libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f22c4472000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f22c4169000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f22c3da0000)
	/lib64/ld-linux-x86-64.so.2 (0x00005614020d7000)

The question is then, does the recommendation to link 'm' library when compiling extension modules on Unix still hold?
The reason I ask is because I'm wrapping a C library which does require linking with the C math library, but my extension module does not use math directly.
Should I add 'm' to the Extension libraries? Should I only do it if self.compiler.compiler_type == "unix"?
Thanks

I forgot to mention, I'm building the wrapped C library from source and statically linking it with my python extension module wrapper, so I am trying to replicate the compiler/linker flags in the original library's Makefile via distutils/setuptools.

It's not linked by default on "some Unix-like systems." You can omit it and be fine most of the time, but it won't be as portable.

I understand that, and in fact it is not linked by default even here on this particular "Unix-like system" whch I'm using, i.e. Ubuntu 16.06.
At least the ldd tool on the complied *.so says it's not linked with libm, unless I tell distutils to tell gcc to do so.
Still, I don't understand how come, being not linked, it still works when I import the compiled extension module from Python.
Sorry if I'm dumb, I'm no expert C programmer.

Exactly what gets found when not explicitly linked depends on the platform and the toolchain and the environment (often in surprising ways). I think this note was added due to issues on some platforms that explicitly linking against the math library resolved, but I don't have any examples off-hand. It may be overly cautious, but is always safe, to declare explicit dependencies on those things that you actually depend on.

Thanks for the clarification.


fstream.Reader(path) includes directory

There is no way to make reader read a subset of files excluding their parent directory.
Even if fstream.Reader("./") is called it includes a parent folder.

Also you can pass fromBase property to tar module.


Temporary fix for the YTC grid layout problem

With YTC grid layout enabled, open https://www.youtube.com/feed/subscriptions?flow=2
It should make YTC grid work correctly as it did before YouTube's recent change.

All that did for me was change YouTube to list view and restored all the old videos I'd been trying to hide. :(

@lunghd Make sure you have the grid layout enabled in YouTube Center and that you are using the developer version of YTC.

Do this instead https://github.com/YePpHa/YouTubeCenter/issues/2105#issuecomment-158065694

I am running dev build. Previously switched off YTC Grid layout as it interacts with YouTube's grid layout.
Restoring YTC's grid does hide MOST of the videos I had marked as watched but gives the odd result of chopping off half of second line of available (and some watched) videos - in other words, you only see upper half of thumbnail.

Brottweiler - Yup, thanks. That's actually the way I had been running it (and am going back to it) even though it no longer properly hides watched videos. My first reply to this thread was in response to opening the list view as a fix for the latest munge by YouTube.

@lunghd You are not using YouTube's list layout, you didn't open the link I provided otherwise the buttons over the Halo 5 thumbnail would show the right button active instead of the left one.

I will say this... the issue only seems to appear in YouTube's new "This Month" category. Videos marked as "Watched" from the current & this week categories stay hidden. Hmmmmm...

@lunghd This temporary fix is just for the grid layout. For it to work you have to change YouTube's default layout from Grid to List which you haven't done yet. The link I provided is a shortcut to changing the YouTube layout from Grid to List, if you refuse to do this obviously it will never work correctly.

Yonezpt - I KNOW I'm not using the list view.
Saw the link thinking it was a fix... I tried it, it sorted things into a list, and the watched videos STILL appeared so I switched back to grid view.

@lunghd The list view needs to be enabled in YouTube for the YouTube Center grid layout to work correctly. Once you have the YouTube list layout you can enable the YouTube Center grid layout and it should start working properly.
This is a temporary fix for the grid layout problem, not for hiding watched videos.

Ok... well, grid view works for me - for whatever reason. This fix just takes me full circle and doesn't change the end result for me. However... if it removes the YouTube Categories (Today, This week, This month...) it is worth doing. Those categories are staying hidden & I'm not going to refresh the cache to bring up a hundred videos I'll have to re-hide so dunno how categories affect it.
Might paste your last post's description into the first post of the thread as it better explains what this fix is for. Thanks!

@lunghd The title of the post itself is very clear about what this temporary fix is for:

Temporary fix for the YTC grid layout problem

Nothing written in this entire issue mentioned anything about hiding watched videos.

Got it - the customer is always wrong. Sorry for the suggestion & question.

Thanks so much for this fix!!!


The "anwser" for some examples in "qasper.jsonl" is strange

I download the data from the offcial url and I found that the "answers" of several examples in "qasper.jsonl" are confusing. Here are several examples:
{"pred": "No", "answers": ["Yes", "No"], "all_classes": null, "length": 2317,  "input": "Does this method help in sentiment classification task improvement?", "_id": "bcfe56efad9715cc714ffd2e523eaa9ad796a453e7da77a6"}
{"pred": "unanswerable", "answers": ["Yes", "Unanswerable"], "all_classes": null, "length": 2284, "actual_length": 3533, "input": "Is jiant compatible with models in any programming language?", "_id": "e5d1d589ddb30f43547012f04b06ac2924a1f4fdcf56daab"}
{"pred": "BERTBase", "answers": ["BERTbase", "BERTbase"], "all_classes": null, "length": 3852, "actual_length": 5701, "input": "What BERT model do they test?", "_id": "2a51c07e65a9214ed2cd3c04303afa205e005f4e1ccb172a"}

This might be due to the model iteration. We test the GPT-3.5-Turbo-16k at August, 2023. I think it has a different version now.

You're right. We want to emphasize the task instruction, so we insert the instruction at both the start and the end of the input.


How to print map during training?

Please refer to the documentation.

Please refer to the documentation.

thanks for your response,but I still have some confusion.I fellow the documentation,used the code:
python analyze_logs.py plot_curve tools/work_dirs/faster_rcnn_r50_fpn_1x/20190827_094345.log.json --keys bbox_mAP --legend bbox_mAP
and console output :"does not contain metric bbox_mAP".Then,I have checked 20190827_094345.log.json,the jsonfile indeed doesn't contain any information about mAP.
Should I config something in config file(my_faster_rcnn.py)?

Hi，I count the same problem(KeyError: 'log.json does not contain metric bbox_mAP')  .  It also can't plot the classification and regression loss of some run (python tools/analyze_logs.py plot_curve log.json --keys loss_cls loss_reg --out losses.pdf).  You can try it . And could you tell me how to print map during training?   Look forward to your reply,thanks.

Hi，I count the same problem(KeyError: 'log.json does not contain metric bbox_mAP') . It also can't plot the classification and regression loss of some run (python tools/analyze_logs.py plot_curve log.json --keys loss_cls loss_reg --out losses.pdf). You can try it . And could you tell me how to print map during training? Look forward to your reply,thanks.

I haven't solved this problem yet.If I solved,I will post it.

You can only plot the keys that exist in log files. If you did not specify --validate when you trained the model, there is no bbox_mAP or mask_mAP in log files.

You can only plot the keys that exist in log files. If you did not specify --validate when you trained the model, there is no bbox_mAP or mask_mAP in log files.

I think I understand what the problem is,what I use is _non_dist_train() not _dist_train(),and the parameter validate is useless in  _non_dist_train().

You can only plot the keys that exist in log files. If you did not specify --validate when you trained the model, there is no bbox_mAP or mask_mAP in log files.

I think I understand what the problem is,what I use is _non_dist_train() not _dist_train(),and the parameter validate is useless in _non_dist_train().

Hi, I have meet this. Do you have solved this problem?

You can only plot the keys that exist in log files. If you did not specify --validate when you trained the model, there is no bbox_mAP or mask_mAP in log files.

Hi，I used the --validate parameter，does it take long time for validation?, why it stop there?

i face the same error in training the centernet model, and i don't know how to solve it , there is no mAP in the log files , and i don't know how to use such --validate argument with the tools/ train.py
any help please?

i face the same error in training the centernet model, and i don't know how to solve it , there is no mAP in the log files , and i don't know how to use such --validate argument with the tools/ train.py
any help please?

CUDA_VISIBLE_DEVICES=0,1,2,3 PORT=29001 tools/dist_train.sh configs/condlanenet/culane/train.py 4 --validate


[BUG] - delegators and owners/operators of a stake pool that does not honour pledge should not be receiving rewards

I'm running cardano-node version 1.14.2 at the moment on Shelley Testnet network.
A pool with over 8 trillion tADA in pledge is currently returning some non-zero reward amounts to its delegators.
The relevant part of the spec was corrected recently, see https://github.com/input-output-hk/cardano-ledger-specs/pull/1611
Similarly, the non-myopic reward estimate for such a pool should also take this into consideration and probably yield 0.

See: https://github.com/input-output-hk/cardano-ledger-specs/pull/1611/commits/a441031923161517186dd0f8ee1239b4e3f3e0cb

@bergr01 do you know how many epochs this pool had an 8 trillion ADA pledge and continued to receive rewards? there is a delay on pool re-registration certificates, and there is some timing involved in when snapshot are taken, when that snapshot is used for leader election, and when the rewards are handed out.

@bergr01 can you tell me what the key hash of the stake pool is, and what epoch you saw this?

The pool had 8 trillion pledge for over a day now (4 epochs). After the pledge came into effect I created a couple of new wallets using cntools library and delegated them to it - here is what the reward balances are at the moment:
Adver2
Funds			37,765,543.088449 ADA
Rewards			23,312.940018 ADA
Delegated to Max2 (feea59bc6664572e631e9adfee77142cb51264156debf2e52970cc01)
AdverTest
Funds			10,111,220.751859 ADA
Rewards			5,876.716677 ADA
Delegated to Max2 (feea59bc6664572e631e9adfee77142cb51264156debf2e52970cc01)
The above values are derived using cardano-cli, e.g.
cardano-cli shelley query stake-address-info --testnet-magic 42 --address 581de0ed0d002c1057f05c3576dc000b712720a74aae1dd3c244d55916a18b
{
"581de0ed0d002c1057f05c3576dc000b712720a74aae1dd3c244d55916a18b": {
"delegation": "feea59bc6664572e631e9adfee77142cb51264156debf2e52970cc01",
"rewardAccountBalance":<PHONE_NUMBER>8
}
}

After a bit more testing using 1.15.0 cardano-node version, it looks like pools are behaving correctly - perhaps I was just confused by just how long it took from the moment I made a pool certificate modification / pledge change to when rewards stopped being paid out (e.g. if i change pledge from 0 to 8 trillion, a second later delegate to that pool, i seem to get a couple of epochs of rewards). My earlier comment about the need for non-myopic reward estimation and either too high (some ridiculous number) or non-honored pledge scenarios still stand, however.

thanks again @bergr01 for running these tests! We are addressing the pledge issue in #1634


migrate health check filter to v2 api

title: migrate health check filter to v2 api
Description: add functionality to populate health check filter directly from protos
Risk Level: Low
Testing: unit tests, and existing health check filter tests remain untouched.

Let's wait for the other PR to merge and then please rebase this on master.

please squash rebase on origin/master

Oh yeah good point. I am off from today. I can fix these in a follow up PR when I return later next week or if you feel this is critical, let this stay and I will get to it mid next week.


Web Monetization on Test Wallet

Simplify the asset scale 9 vs asset scale 2  :

Getting rid of web monetization tab -every wallet address will be set scale 9, and display all in one tab
(Every PP will have a corresponding PP for WM in the back?)
Display as asset scale 2 and bellow or hover asset scale 9
Every payment pointer will be default asset scale 9 (this makes it easier for ASEs to enable WM by default)
How to send from asset scale 9 to asset scale 2?
The peering relationships will have to be over asset scale 9
The transfer page should allow to be able to view asset scale 9 - Show asset scale 9s in list of send
Figure out migration of current PPs in rafiki.money - we will not get rid of our current DB!!!

Created the following tasks based on the requirements and further discussions with @beniaminmunteanu @raducristianpopa  @dragosp1011:
Frontend: #1357
Backend: #1358, #1359
Will add more context after we clarify all the aspects about the Rafiki rate service usage and migration.

In regards of the new Gatehub sandbox we need to integrate in order to replace Rapyd, and looks like assetscale 2 is the one that would be completely supported, we will bench this story, but take out the useful stuff akready inside it and apply to main code.


Loads geometry from worker

Loading from worker does not crash or generate errors, but there is still at least one bug, the materials on certain meshes seem to be black for some reason. Also loading takes a long time with some models like alice2.

@PWhiddy @bellenot
Black color is due to problem with flipping of BufferGeometry - it is not yet supported.
I will look on it.
We also should step by step modify all our functions like JSROOT.GEO.createCube,
that they directly create BufferGeometry objects.


[otbn/doc] Secure Wipe documentation update.

Added specification of the secure wipe mechanism.
Modified otbn.hjson to include register interface.
Signed-off-by: Vladimir Rozic<EMAIL_ADDRESS>

Thanks for the update @vrozic.
This looks good now, modulo one comment which might have fallen through the cracks. Thanks for your work on it!
To ensure nothing gets lost between updates, can you please click on the "resolve" button for all comments you've addressed, and write a quick note in the pull request?
@rswarbrick would you mind giving the whole thing a read-through as well before we merge?

I'm assuming you're done with this @vrozic and we can merge. (Please state so explicitly in the future to avoid misunderstandings!)


⚠ gorzdrav.org has degraded performance

In fef4564, gorzdrav.org (https://gorzdrav.org) experienced degraded performance:

HTTP code: 200
Response time: 2995 ms

Resolved: gorzdrav.org performance has improved in 0486256.


The init function is called in a weird way

I have two modules: foo_layout and foo_graph. foo_graph depends on the foo_layout DOM. So, it has to wait until foo_layout is ready.
In foo_layout I have something like this:
{
	"flow": {
		"ready": {
			"d": [
				[">>getGraphData", {
					"to": "some_api",
					"net": "ws"
				}],
				":foo_graph/render"
			]
		}
	}
}

The DOM from foo_layout is ready the render function is called, but not when the init function of the foo_graph is called. Isn't the init method supposed to be called when the module is loaded, so basically, when we first call foo_graph/render?

A module is loaded and init function is called, when the event (in this case ready) is built. And also you need to call the ready handler in the init method, See here. Otherwise the ready event will never be emitted.

Ah, got it. Thanks!


[Base] - Adding Rehydration guard

Checklist
Ignite Base Change

[x] Works on iOS/Android/XDE
[x] Tests Pass (run: npm run test)
[x] Code is StandardJS compliant (run: npm run lint)

Crashes and bugs can be caused when the app rehydrates the store after a reducer shape has changed.
The app has no way to know that the reducer shape has changed since the rehydrate feature will  resurrect the outdated reducers...until now...

Here we move reduxPersist from DebugSettings.js to its own file (ReduxPersist.js) with its own set of properties.
Additionally we will configure the store in ReduxPersist.js as well and make it a part of ReduxPersist since this store is what we are creating/persisting and it can be accessed by RehydrationServices.js
Finally we will add a reducerVersion in ReduxPersist.js to track changes in reducer shape and notify RehydrationServices that a change has occurred.

How it works

When the app is loaded, it will check for an update with RehydrationServices
If the version number in persisted storage is different that the one in ReduxPersist, then the app will purge the current store and rebuild a new one with the updated reducer(s) shape

Why do we need this?
Let's say you remove an element(s) from the reducer shape (we're going to remove city and state since we can get both from just the zip code)
export const INITIAL_STATE = Immutable({
  city: null,
  state: null,
  zipCode: null
})

goes to:
export const INITIAL_STATE = Immutable({
  zipCode: null
})

COOL 👍
But now our app will rehydrate with the old reducer shape and expect city and state to exist!!!
OH NOES!!!
...
RehydrationServices to the rescue!
Because we bumped our reducerVersion, RehydrationServices will know that we would rehydrate with an outdated reducer shape, so...

FRESH START - FRESH STORE
RehydrationServices will purge the store and re-persist a fresh store with the updated reducer shape!!
YAY!!!
@GantMan This is a preventative feature that could be more fully explained and elaborated upon in a blog post 😉


Adds invalid booking result.

[#135179027]
https://www.pivotaltracker.com/story/show/135179027

Self reviewing because this is a trivial change. Adds a single field "Invalid" to an enum.


Migrate to sbt-ci-release

@juliano  does that mean that now #309 can be fixed? :)

@juliano Do we want to wait to have sbt-ci-release in zio-quill too before making any new release?
I know that zio-protoquill depends on zio-quill. That could justify the additional wait but I don't know well enough about these projects nor their history nor the users' needs (like the one from @tOverney) to make a decision

I believe it's the sensible thing to do in order to keep the consistency among the versions of zio-quill and zio-protoquill. However, it would be a possibility to release a super-minor-minor version only for protoquill in the meantime? This way the new features become available while we decide to do without affecting the main releases much. Wty?

I'm good with this plan 🙂


Add an option to limit the camera pitch

By adding a new option to ScreenSpaceCameraController?
Something like ScreenSpaceCameraController.minimumPitch and ScreenSpaceCameraController.maximumPitch

I don't think ScreenSpaceCameraController is the best place to handle this.  Ideally we would create a separate object, something like CameraConstraints or CameraLimits that would expose a variety of settings to constrain the camera.  It would process all constraints in a single pass as part of (or immediately after) the preRender step (after everyone else is done manipulating the camera),  This ensures they'll be no fighting over the properties.
I've written some simplified example for doing this for individual properties on the forum in the past, but I'm sure exposing a full set of properties will be slightly more work.
I'm sure we'd be willing to take a pull request if anyone was interested in working on this.

+1


Update CONTRIBUTING.md

Q
A

Bug fix?
yes

New feature?
no

BC breaks?
no

Deprecations?
no

Tickets
fixes #...

License
MIT

Doc PR
api-platform/docs#...

updated CONTRIBUTING.md file (fixed grammar and typos).

Please stop this flaw of useless spam Pull Requests.


Synchronizes dartdoc with dart:ui

Mostly just adds some examples to match the examples with use for
similar concepts in dart:ui.

@Hixie

lgtm


Enable url patterns in settings urls

In order to allow url patters in the settings urls set SOCIAL_AUTH_URL_PATTERNS_ENABLED = True (by default it's disabled to maintain backward compatibility).

This only works for Django framework but the function is defined in the main utils.py, this kind of framework-related feature should be defined in the corresponding strategy.


Remove unsafe use of static mut causing undefined behavior

Uses of static mut have been replaced with a custom type that
controls access to mutable state via atomics.
Fixes #129

Miri test indicates that this no longer causes UB (tests based on @parasyte 's work: https://github.com/56quarters/cadence/commit/2e12ec0c9e0c3c9681205c9ff81484125780f5c1)
$ MIRIFLAGS='-Zmiri-disable-isolation' cargo miri test -p cadence-macros test_init_safety
   Compiling cadence-macros v0.24.0 (/home/pillin/programming/git_repos/cadence/cadence-macros)
    Finished test [unoptimized + debuginfo] target(s) in 0.11s
     Running unittests (target/x86_64-unknown-linux-gnu/debug/deps/cadence_macros-4b4ceba57207c093)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running tests/lib.rs (target/x86_64-unknown-linux-gnu/debug/deps/lib-509ea6c7aaa37a44)

running 1 test
test test_init_safety ... warning: thread support is experimental and incomplete: weak memory effects are not emulated.

ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 1 filtered out


Update ot-appliance-sizing.md

Learn Build status updates of commit 9614753:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

articles/defender-for-iot/organizations/ot-appliance-sizing.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel

@batamig,
Can you review the proposed changes?
IMPORTANT: When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#please-close
opened a new PR for these changes - https://github.com/MicrosoftDocs/azure-docs-pr/pull/222363


refactor: change return value of AddLogStreamReplica

What this PR does
Return type of /varlog.snpb.Management/AddLogStreamReplica is changed from log stream path to log
stream replica metadata descriptor.
Which issue(s) this PR resolves
Anything else

Current dependencies on/for this PR:

main

PR #14

PR #15

PR #16

PR #17   👈

PR #18

This comment was auto-generated by Graphite.

Codecov Report

Merging #17 (cffade0) into remove-unused-helper-replica-descriptor (c192963) will decrease coverage by 0.08%.
The diff coverage is 56.25%.

@@                             Coverage Diff                             @@
##           remove-unused-helper-replica-descriptor      #17      +/-   ##
===========================================================================
- Coverage                                    62.75%   62.67%   -0.09%
===========================================================================
  Files                                          125      125
  Lines                                        16854    16854
===========================================================================
- Hits                                         10577    10563      -14
- Misses                                        5728     5739      +11
- Partials                                       549      552       +3

Impacted Files
Coverage Δ

...metarepos/dummy_storagenode_client_factory_impl.go
62.50% <0.00%> (-1.39%)
:arrow_down:

tests/it/testenv.go
35.20% <0.00%> (-0.14%)
:arrow_down:

internal/storagenode/storagenode.go
60.94% <35.71%> (-0.54%)
:arrow_down:

internal/admin/admin.go
60.09% <100.00%> (ø)

internal/admin/snmanager/manager.go
82.05% <100.00%> (+0.06%)
:arrow_up:

internal/storagenode/admin_server.go
84.61% <100.00%> (-3.39%)
:arrow_down:

internal/storagenode/client/management_client.go
53.21% <100.00%> (+0.43%)
:arrow_up:

internal/storagenode/testing.go
70.68% <100.00%> (ø)

internal/metarepos/report_collector.go
77.59% <0.00%> (-1.08%)
:arrow_down:

... and 2 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Add video hero

https://app.shortcut.com/larder/story/22806/use-video-demo-on-homepage

Do we want to modify the thumbnail/placeholder image a little bit so that it is more clear that there is a watchable video behind it. The play button at the moment does not really stand out

Yeah you're right. I'll see what I can do to make it stand out more.


Add Styling to popup

In popup.html, add a style element inside the head section.

Create a wider body for the popup.
Set the width of the buttons and display them in the same row. (In total, we'll have four buttons: start, stop, clear, and translate)
Add style to the paragraph element where the transcript appears. Consider line-height, text size, and padding.

For more information and an example, check out the "Internal CSS" section of "CSS How To" from W3 schools.

I'd like to tackle this issue! Can you assign it to me?

It's all you, @rmirville! Let me know if you need any help.

@BekahHW I have a couple questions:

Do you want the PR to include adding the clear and translate buttons?
Does the button-name attribute on Start need to be added to the other buttons, too?
https://github.com/deepgram-devs/dg-translation-chrome-ext/blob/c3b33c38f5f0d30ba02d394fe10156badabda1be/src/popup.html#L10

Let's leave those off for now.
Go ahead and add that on.


Assorted changes to webtreemap CLI tool

This is copied over from https://github.com/evmar/webtreemap/pull/35 which Evan isn't able to actively maintain (see https://github.com/evmar/webtreemap/issues/37). I was thinking of forking evmar/webtreemap myself but then saw that @paulirish already had, so I figured I'd send this your way.
This expands the CLI tool to be a bit more usable:

Write to a temp file and open the browser by default instead of printing HTML to stdout. If you pipe the output to a file, it will still write HTML to stdout.
If the number is omitted in an input line, it is assumed to be 1. This allows, for example, find . -type f | webtreemap.
Read lines from a file instead of stdin, if provided.

I also updated the TypeScript and @types/node versions to be a bit more recent. I believe the CLI is broken in the current version (node doesn't like import statements in a JS file). I believe I've fixed that.
Let me know if this sort of change is welcome. If not I'm happy to go back to my own fork!

(I'd be happy to debug the Vercel Deployment failure but I get a 404 when I click the Details link 🤷♂)


feature request: Mobile support

QT runs on android and IOS, so i am curious if your interested in supporting mobile.

Waiting goqt run on android.


Update Japanese Translation

Hello
I updated the Japanese translations.

Seems to be similar to #209 ... I haven't dig into MS Japanese Style Guide yet but I'm sure that subdirectory should be left as サブディレクトリ and do not change sub- into Kanji (HERE)

Seems to be similar to #209 ...

I recreated the PR to exclude "README.ja.md". It is my fault that I forgot to write this to the description.

I haven't dig into MS Japanese Style Guide yet but I'm sure that subdirectory should be left as サブディレクトリ and do not change sub- into Kanji (HERE)

I fixed back "子" into "サブ".

I made changes to these words in this PR:

Directory: "ディレクトリー" ---> "ディレクトリ"

I removed excess long-sound symbols.

Current directory: "作業ディレクトリ" ---> "現在のディレクトリ"

This was originally "カレント ディレクトリー".

Original file name: "オリジナルのファイル名" ---> "元のファイル名"
File type: "ファイル タイプ" ---> "ファイルの種類"
Rename: "リネーム" ---> "名前の変更"
Cancel: "ｷｬﾝｾﾙ" ---> "キャンセル"

I just changed the character width into full-width.

Sort: "ソート" ---> "並び替え"
Command prompt: "Cmd シェル" ---> "コマンド プロンプト"
Notepad: "notepad.exe" ---> "メモ帳"
Encrypted: "&Encrypted" ---> "暗号化(&E)"
"ディレクトリーを読み込み中。お待ち下さい..." ---> "ディレクトリを読み込んでいます。しばらくお待ち下さい..."

I formatted the sentence into honorific style.

Maybe you can find someone who is a native speaker of Japanese to review this PR? I don't know how a MS project accept a large PR about translation. @craigwi

(I, personally speaking, think some expressions and forms of this software (seldom using of honorific form) make this retro software "more like a 1990s thing", such as half-width katakana ｷｬﾝｾﾙ and less kanji to suit low-DPI screens, and reflect how computer concepts were translated at that time... I would like to keep it as-is, except for some new string such as "&Encrypted" ---> "暗号化(&E)"...)

We now have two PRs with Japanese translation, which most likley already have conflicts
To get out of this I suggest that

@tokomio-sun reviews this PR, and then we merge it.
Afterwards @Takym reviews #355 and then we merge that one
We could fix the bJapan-issue mentioned in #352 in an extra PR afterwards

@craigwims:  What do you think?

Starting with this PR (#272) and then finishing #355 makes sense.

(I, personally speaking, think some expressions and forms of this software (seldom using of honorific form) make this retro software "more like a 1990s thing", such as half-width katakana ｷｬﾝｾﾙ and less kanji to suit low-DPI screens, and reflect how computer concepts were translated at that time... I would like to keep it as-is, except for some new string such as "&Encrypted" ---> "暗号化(&E)"...)

Thank you for the reply. I mechanically replaced all full-width katakanas with half-width katakanas. I will copy these files into this PR branch if this is no problem.

https://github.com/Takym/winfile/blob/Japanese_Hankaku/src/lang/res_ja-Hankaku.rc
https://github.com/Takym/winfile/blob/Japanese_Hankaku/src/lang/suggest_ja-Hankaku.db
https://github.com/Takym/winfile/blob/Japanese_Hankaku/src/lang/winfile_ja-Hankaku.dlg

I would like to add an option to switch between half-width and full-width katakanas. May I add a new language (lang code: ja) for half-width katakana?

Sorry forgive me may lack japanese know-how with respect to half/full-width katakanas, but I think as first we should try to get this PR consistently through.
To do so we need the approval of all currently active Japanese speaking contributors: @tokomio-sun , @clzls , @Takym
If you ask me I would create a possible half-width katakana language in an extra PR and most likely after the planned release, but @craigwims  is the boss here :-)

I would prefer to separate the half-width / full-width question to a separate PR.  Let's make this PR to be consistent with respect to width and get final input from those mentioned above.

Certainly. I will create an issue to discuss about switching half or full width.

What are the remaining steps / approvals needed on this PR?

@craigwims
My review remainded.
@Takym
I reviewd your transration.
Please make additional corrections.
(lang/res_ja-JP.rc)

Line 338
FROM:
"ディレクスト %s が存在しません。\n\n作成しますか?"
TO:
"ディレクトリ %s が存在しません。\n\n作成しますか?"

Line 111～ Line 113
FROM:
MENUITEM    "縦に重ねる(&C)\tShift+F5",   IDM_CASCADE
MENUITEM    "横に並べる(&H)",   IDM_TILEHORIZONTALLY
MENUITEM    "縦に並べる(&T)\tShift+F4",      IDM_TILE
TO:
MENUITEM    "重ねて表示(&C)\tShift+F5",   IDM_CASCADE
MENUITEM    "上下に並べて表示(&H)",   IDM_TILEHORIZONTALLY
MENUITEM    "並べて表示(&T)\tShift+F4",      IDM_TILE

Line 605～ Line 607
FROM:
MH_MYITEMS+IDM_CASCADE,     "縦に重ねる"
MH_MYITEMS+IDM_TILEHORIZONTALLY,    "横に並べる"
MH_MYITEMS+IDM_TILE,        "縦に並べる"
TO:
MH_MYITEMS+IDM_CASCADE,     "重ねて表示する"
MH_MYITEMS+IDM_TILEHORIZONTALLY,    "上下に並べて表示する"
MH_MYITEMS+IDM_TILE,        "並べて表示する"

I guess we may revert all changes about half-width katakanas, making this PR a "smaller but urgent" one...
Half-width katakanas and many other old-fashioned translations were here for historical reasons, so I would like to know @craigwims and others' opinion in a more general way: we are going to preserve original old-fashioned translations as much as possible or to adopt modern ones whenever suitable?

To do so we need the approval of all currently active Japanese speaking contributors: ...

...I don't speak Japanese either, so I may just give some ideas and let them two to decide.

I understood @Takym in #358 that #272 is about to bring all to full width katakana, because this is the state of the art and Explorer and the like are also in full width.
Primarily we should move winfile into the new world. Full width is one step.

I understood @Takym in #358 that #272 is about to bring all to full width katakana, because this is the state of the art and Explorer and the like are also in full width.
Primarily we should move winfile into the new world. Full width is one step.

but there is still some work to do, for example checking every button's width, since full-width version is (almost) 2x longer.

The [Option] > [Toolbar] menu is garbled in Japanese, but the [Option] > [Customize Toolbar...] menu is not garbled.
In this PR, these two texts are actually "ツール バー" and source is below:
https://github.com/microsoft/winfile/blob/7568ef5c7daaee0f322de950a05dec4d00cda7e7/src/lang/res_ja-JP.rc#L87-L90
Japanese

English

The [Option] > [Toolbar] menu is garbled in Japanese, but the [Option] > [Customize Toolbar...] menu is not garbled. In this PR, these two texts are actually "ツール バー" and source is below:
https://github.com/microsoft/winfile/blob/7568ef5c7daaee0f322de950a05dec4d00cda7e7/src/lang/res_ja-JP.rc#L87-L90
Japanese

English

Postscript: I did not change "ツール バー" texts.

That's odd
I played a bit with indenting the text in the .rc file and if you take  the .rc file from this commit 36128be then it works

@schinagl I merged your workaround. Thanks.

I found a similar bug in the search box, and I fixed it.

Are we good to go now with this PR?

I would like @tokomio-sun to re-review my changes.

Thanks to all contributors here for the great collaboration.   Merging now.

Thank you all for merging!


Update nix to 0.20.0 in uu_more

Needed for iOS compatibility, as newer nix versions are fully iOS-compatible.
Goes with https://github.com/uutils/coreutils/pull/1836 for iOS support

please run
cargo +1.33.0 update
(the Cargo.lock is too recent)

Oh, sorry! Will do.

Actually, I realized there was a reason some other part of uu had nix set to <=0.13: 0.20.0 doesn't support Rust 1.33.0.
Luckily, that version still has iOS support.


Allow Azure Key Vault conformance test use environment variable for vaultName

Describe the proposal
Unlike the other conformance tests, the azure-keyvault.yaml config hardcodes the name of the target resource which creates an issue for contributors wanting to set up their own test environments. For example, different users sharing an Azure subscription may not be able to manage the permissions on the fixed name key vault individually, and will need to edit the yaml to retarget against their own keyvault instance. This also creates a stumbling block for any automation to facilitate contributors setting up their own Azure conformance test environments on demand.
The proposal is to simply update the Azure Key Vault conformance test use environment variable for vaultName in the azure-keyvault.yaml

/assign


Problem with gsuite api

Dear Andy,
I update with the last release but I have a problem with the Google API. The link have a redirect to http://localhost:8080/ and not finish the authentication. It is a problem in the python code that generate the link or it is necessary to do a different procedure?
Could you please help me with this problem? Thanks for the best script.

Hi - there isn't anything in the script that directs you to 8080 - might those be your proxy settings? May want to try with proxy disabled. Thanks.

Dear Andy, it is not a script, yesterday I see the credential.json and the redirect is present in this file. I think is a configuration in the google credential.json.
it is necesssary a specific configuration in this version on google?

I think the google auth process is redirecting you towards your account so you can click that box that gives the script permission to access your google acount. When this is done on in a shell where no browser is available it gives you a code to validate at a url, but if it thinks you have a browser on your machine it tries to use it to connect to google. If this browser cannot connect to google the process would fail.
Could you help me recreate your issue? What OS, python version and other details? Could you provide a screenshot? Thanks.

Dear Andy,
I resolve the problem with authentication. It is necessary to change the line 222:
self.creds = flow.run_local_server()
with:
self.creds = flow.run_console()
Now the credential file was created and the authentication work. But I have this error on the script run:
(gsuite2mfe) xxxxx@xxxxxx:~/gsuite2mfe# python3 gsuite2mfe.py
Traceback (most recent call last):
File "gsuite2mfe.py", line 559, in
main()
File "gsuite2mfe.py", line 540, in main
bookmark.update(events)
File "gsuite2mfe.py", line 306, in update
if evt_time_obj > validate_time('o', self.bookmark):
TypeError: '>' not supported between instances of 'datetime.datetime' and 'NoneType'
The python version is 3.6
Could you help me?

I have the same problem. @nortonxita did you find out any thing?

I have updated the script and this should be fixed. Thanks.

I still got the problem
Validating timestamp: 2019-08-19 20:58:44.335000-04:00
Invalid time format: 2019-08-20 00:28:55+00:00.  Null time returned.
Traceback (most recent call last):
  File "gsuite2mfe.py", line 559, in <module>
    main()
  File "gsuite2mfe.py", line 540, in main
    bookmark.update(events)
  File "gsuite2mfe.py", line 306, in update
    if evt_time_obj > validate_time('o', self.bookmark):
TypeError: '>' not supported between instances of 'datetime.datetime' and 'NoneType'

Thank you for testing it. Could you please try once more with the latest version?

I got this message:
(gsuite2mfe) [docker@srv-docker-1 gsuite2mfe]$ python gsuite2mfe.py -l debug Traceback (most recent call last):   File "gsuite2mfe.py", line 3, in <module>     import dateparser ModuleNotFoundError: No module named 'dateparser'
Got it fixed by install pip install dateparser
However, still got another problem:
Aug 22 10:44:52 srv-docker-1 gsuite2mfe: Processing actvity: calendar Aug 22 10:44:52 srv-docker-1 gsuite2mfe: ***************** Aug 22 10:44:52 srv-docker-1 gsuite2mfe: Init bookmark object: calendar. Aug 22 10:44:52 srv-docker-1 gsuite2mfe: Looking for bookmark file. Aug 22 10:44:52 srv-docker-1 gsuite2mfe: Bookmark file not found: .calendar.bookmark. Aug 22 10:44:52 srv-docker-1 gsuite2mfe: Building cache for: calendar Aug 22 10:44:52 srv-docker-1 gsuite2mfe: Authenticating to GSuite Aug 22 10:44:52 srv-docker-1 gsuite2mfe: Retrieving calendar events from: 2019-08-22T14:14:52Z to 2019-08-22T14:44:52Z Aug 22 10:44:53 srv-docker-1 gsuite2mfe: Deduplicating Events. Traceback (most recent call last):   File "gsuite2mfe.py", line 586, in <module>     main()   File "gsuite2mfe.py", line 570, in main     events = cache.dedup_events(events)   File "gsuite2mfe.py", line 383, in dedup_events     logging.debug('Deduplicating events. Processing: %s events.', len(new_events)) NameError: name 'new_events' is not defined

If I change new_events to events in line 383 , most activities work, except drive:

Aug 22 11:22:14 srv-docker-1 gsuite2mfe: Validating timestamp: 2019-08-22T15:22:02.942Z
Aug 22 11:22:14 srv-docker-1 gsuite2mfe: Validating timestamp: 2019-08-22T14:52:13Z
Aug 22 11:22:14 srv-docker-1 gsuite2mfe: Event time > Bookmark time: 2019-08-22T15:22:02.942Z
Aug 22 11:22:14 srv-docker-1 gsuite2mfe: Validating timestamp: 2019-08-22T15:22:04.827Z
Aug 22 11:22:14 srv-docker-1 gsuite2mfe: Validating timestamp: 2019-08-22T14:52:13Z
Aug 22 11:22:14 srv-docker-1 gsuite2mfe: Event time > Bookmark time: 2019-08-22T15:22:04.827Z
Aug 22 11:22:14 srv-docker-1 gsuite2mfe: Validating timestamp: 2019-08-22T15:22:05.990Z
Aug 22 11:22:14 srv-docker-1 gsuite2mfe: Validating timestamp: 2019-08-22T14:52:13Z
Aug 22 11:22:14 srv-docker-1 gsuite2mfe: Event time > Bookmark time: 2019-08-22T15:22:05.990Z
Aug 22 11:22:14 srv-docker-1 gsuite2mfe: Validating timestamp: 2019-08-22T15:22:11.267Z
Aug 22 11:22:14 srv-docker-1 gsuite2mfe: Validating timestamp: 2019-08-22T14:52:13Z
Aug 22 11:22:14 srv-docker-1 gsuite2mfe: Event time > Bookmark time: 2019-08-22T15:22:11.267Z
Aug 22 11:22:14 srv-docker-1 gsuite2mfe: Writing bookmark.
Traceback (most recent call last):
File "gsuite2mfe.py", line 586, in
main()
File "gsuite2mfe.py", line 573, in main
bookmark.write()
File "gsuite2mfe.py", line 325, in write
self.new_bookmark_p1 = self.new_bookmark + timedelta(0,1)
TypeError: must be str, not datetime.timedelta

Please try the latest update. Thanks!

Great, it works...
FYI, I need to modify

if pargs.s_time:
s_time = dateparser.parse(pargs.s_time)
use_bookmark = False

if pargs.e_time:
    e_time = dateparser.parse(pargs.e_time)

to

if pargs.s_time:
s_time = pargs.s_time
use_bookmark = False

if pargs.e_time:
    e_time = pargs.e_time

Otherwise, it does not work when I set start/end time.
python gsuite2mfe.py -l debug -s 2019-08-24T00:00:00.000Z

Aug 24 10:32:13 srv-docker-1 gsuite2mfe: Processing actvity: admin
Aug 24 10:32:13 srv-docker-1 gsuite2mfe: *****************
Aug 24 10:32:13 srv-docker-1 gsuite2mfe: Authenticating to GSuite
Aug 24 10:32:13 srv-docker-1 gsuite2mfe: Retrieving admin events from: 2019-08-24 00:00:00+00:00 to 2019-08-24T03:32:13Z
Traceback (most recent call last):
File "gsuite2mfe.py", line 613, in
main()
File "gsuite2mfe.py", line 590, in main
events = gsuite.execute()
File "gsuite2mfe.py", line 281, in execute
maxResults=self.max,
File "/home/docker/gsuite2mfe/lib/python3.6/site-packages/googleapiclient/discovery.py", line 739, in method
for pvalue in pvalues:
TypeError: 'datetime.datetime' object is not iterable


Step functions not resolved

I am having issues bootstrapping a basic cypress-cucumber project. I've got a plain-jane Create-React-App project in the repo below that demonstrates my current state-of-the-art.
When I run my .feature from the cypress app, it appears that none of the When/Then functions are resolved.  My step functions are in a .ts module, named and located per the docs.  Here is the hello-world.feature:
`@id-68596b95-f04c-4ce9-b971-7d78acc66667
Feature: Hello World
@id-0d0dcf31-8276-4599-aaff-3b549a5545a2
Scenario: I visit the app for the first time.
When I visit the app
Then it says hello world.
`
Here is ./hello-world/hello-world.ts
`///
import { When, Then } from "cypress-cucumber-preprocessor/steps";
When('I visit the app', () => {
cy.visit('http://localhost:3001')
})
Then(/it says hello world./, () => {
})
`
Test code to reproduce
This is a basic CRA app with cypress added.  I've got plain-old-cypress describe/it test written in TS working. See ordinary.spec.ts.ignored (rename to remove the .ignored to verify).
code for this repo is here
(Note:  the url for the cy.visit will probably be bogus for you. I've got other junk running.  I'd be happy if that line of code just executed.)
Versions

Cypress version: 4.11.0
Preprocessor version: 2.5.4
** @cypress/browserify-preprocessor version: 3.0.1
Node version: 12.16.2

Works for me.
run yarn
and then
./node_modules/.bin/cypress run

Please clone the repo fresh and try to run just those steps, post specific error/screenshots if the error still happens :) Happy to reopen the issue then

Cloned as requested, just for completeness.  I get the same results with cypress run.  It shows as passing when using the Cypress UI, too, but it didn't actually run anything from my TS file.
.
The "When()" in hello-world/hello-world.ts even has a 'cy.visity()' to my server, which isn't even running at the moment.
 I'll report back

My theory was all wet, but I did do some debugging and learned more.  I'm at a loss for discovering the magic of how this library marries up a When/Then/etc with the registered implementation for a particular feature. Everything looks common/global to me, but I can't see what the plugin's on(file:preprocessor) is up to. All I see is the final bundle.
That curiosity led me back to this:  What is this 'cosmiconfig' stuff?  I have the feeling I shouldn't be glancing over that part.  I looked in the TS sample repo and didn't find evidence of it, so presumed it wasn't needed. That repo passes for me, but I noticed it was back on Cypress 3.  I'm going to dive back into it and see if I can break it just like mine is broken.

Thanks for the debugging.  Please keep updating here ,and I will jump in when possible.
Just one quick note. You actually do use the cosmiconfig, here:
https://github.com/ChrisLincoln/cypress-cucumber-ts-issue/blob/master/package.json#L42-L44

I couldn't break your TS sample. So I painstakingly when through both apps line-by-line and noticed that the syntax highlighting was different in mine. Turns out I've got some non-space white-space in my .feature file after the When/Then which causes some subtle parsing problems in the library.  My files are generated from another app, which apparently has a bug that I get to go fix. I'd need to open the file in some other editor to figure out what I have wedged in there.


Switch to bintray for publishing

Review by @benmccann

looks fine to me (though i'm not sure i'm particularly qualified to review)

@eed3si9n Is this the right approach to migrate a SBT plugin that already has a -imported repository under the SBT organization? The docs I found described the way to publish to a personal repository and have that linked into the SBT organization.

@retronym It depends on who does most of the publishing. For sbt-assembly I do all of the publishing myself, it uses my personal repository first: https://github.com/sbt/sbt-assembly/blob/master/bintray.sbt:
bintrayOrganization in bintray := None

That's the method described in the doc, and I support that method for normal case.
sbt-unidoc on the other hand has switched to using Some("sbt") so publishing task can be shared between me and Akka team members.
https://github.com/sbt/sbt-unidoc/blob/master/bintray.sbt

@eed3si9n I would like to share the duties with @benmccann, so I think I'll go for direct route. Thanks for the quick reply.

Looks like the release worked:
% ( java_use 1.6; git log --oneline -1; sbt clean 'set version := "0.8"' clean test publish )
...
[info] Done packaging.
[info] 	published sbt-xjc to org.scala-sbt.plugins/sbt-xjc/scala_2.10/sbt_0.13/0.8/jars/sbt-xjc.jar
[info] 	published sbt-xjc to org.scala-sbt.plugins/sbt-xjc/scala_2.10/sbt_0.13/0.8/srcs/sbt-xjc-sources.jar
[info] 	published sbt-xjc to org.scala-sbt.plugins/sbt-xjc/scala_2.10/sbt_0.13/0.8/docs/sbt-xjc-javadoc.jar
[info] 	published ivy to org.scala-sbt.plugins/sbt-xjc/scala_2.10/sbt_0.13/0.8/ivys/ivy.xml

@benmccann I believe you'll also be able to do this as you are a member of the sbt bintray organzation.
/cc @mberndt123

Hey guys, that was quick! Thanks for that!
2015-07-15 6:46 GMT+02:00 Jason Zaugg<EMAIL_ADDRESS>
Looks like the release worked:
% ( java_use 1.6; git log --oneline -1; sbt clean 'set version := "0.8"' clean test publish )
...
[info] Done packaging.
[info]  published sbt-xjc to org.scala-sbt.plugins/sbt-xjc/scala_2.10/sbt_0.13/0.8/jars/sbt-xjc.jar
[info]  published sbt-xjc to org.scala-sbt.plugins/sbt-xjc/scala_2.10/sbt_0.13/0.8/srcs/sbt-xjc-sources.jar
[info]  published sbt-xjc to org.scala-sbt.plugins/sbt-xjc/scala_2.10/sbt_0.13/0.8/docs/sbt-xjc-javadoc.jar
[info]  published ivy to org.scala-sbt.plugins/sbt-xjc/scala_2.10/sbt_0.13/0.8/ivys/ivy.xml
@benmccann https://github.com/benmccann I believe you'll also be able
to do this as you are a member of the sbt bintray organzation.
/cc @mberndt123 https://github.com/mberndt123
—
Reply to this email directly or view it on GitHub
https://github.com/sbt/sbt-xjc/pull/14#issuecomment-121486299.


[Bug] Return Type of Methods

Hi,
Thanks for this great library.
I'm developing a subclass by extending BigNumber to add my custom utility methods. However, when I tried to access superclass methods, I got type errors from TypeScript. (The code works as expected; I just got TypeScript typing errors).
class ExtendedNumber extends BigNumber {
  foo(): number {
    return 1000;
  }

  bar(x: number): this {
    const c = this.plus(x);
    const d = c.foo(); // <--------------- ERROR: Property 'foo' does not exist on type 'BigNumber'. ts(2339)
    return this;
  }
}

const value = new ExtendedNumber("10.1");
console.log(value.foo());
console.log(value.bar(1));

The problem is that the return type of methods is hard-coded as BigNumber. They should be this instead of BigNumber.
For example see the original code from bignumber.d.ts file below:
plus(n: BigNumber.Value, base?: number): BigNumber;

It should be:
plus(n: BigNumber.Value, base?: number): this;

Kind Regards,

After working for a while, I realized the problem was deeper than I thought. The code contains 56 hard-coded new BigNumber() calls.

```class ExtendedNumber extends BigNumber {
  bar(): this {
    return this.add(1).decimalPlaces(2);ts(2339)
  }
}

let value = new ExtendedNumber("10.1"); // value is instance of ExtendedNumber
value = value.bar(); // value is instance of BigNumber !!!!!

I tried to replace all new BigNumber() with new this.constructor(). However, in some places, this is not available, so I tracked the calling code and replaced, for example, parseNumeric(...) with parseNumeric.call(this, ...) to make this available in the parseNumeric() function.
Unfortunately, when I changed maxOrMin.call(this, ...), tests failed to the degree that I needed to investigate much more deeply, and I couldn't continue.
In the current situation, BigNumber.js seems hard to extend in a subclass. I'll be happy if you can change that, but it may need much more effort than you want to spend.
Nonetheless, this is a very good library.
Kind regards,

Hi!
BigNumber.js doesn't work the way you think it does.
Pretty much every method you call on an instance of BigNumber (e.g. .plus(), .minus(), .multipliedBy, etc) does not modify the original instance, it returns a brand new instance.
Each instance is effectively immutable, which is on purpose, it prevents you from writing buggy code (for example - if you have some global constant BigNumber - you can safely do all kinds of stuff with it and don't worry about mutating it accidentally).
So the return type of a method is actually never this, it is always BigNumber (unless of course it's something else like with .toFixed(), isEqualTo(), etc).
If you really want to do return this in your extended class methods you will have to work around that by creating a new instance of ExtendedNumber when you need it and the continue to use your custom methods on it.
bar(x: number) {
    const c = new ExtendedNumber(this.plus(x));
    const d = c.foo();
    return this;
  }

I would strongly discourage this though, it's way easier to overlook something and write buggy code this way.
It might seem like constantly creating instances is a waste of memory and CPU cycles, but:

This is JavaScript, your app probably eats up 1000x memory in many other parts of the code, optimize those parts, not this.
Unless you're handling literally billions of BigNumber objects every second - whatever you're doing with BigNumber probably takes <1ms to execute, even with constant creation of new objects.


create: Conflict error if already exists

This isn't technically possible within the sphere of Angel - create doesn't take an ID to begin with...


bug: CDN installation does not recognize submit button

What version of daisyUI are you using?
v4.0.5
Which browsers are you seeing the problem on?
All browsers
Reproduction URL
https://jsbin.com/mexepajiqi/edit?html,output
Describe your issue
Buttons elements with type="submit" are missing background when installed via CDN.
The problem does not appear when using npm installation.
<form>
  <button class="btn btn-primary">Button</button> <!-- works -->
  <button class="btn btn-primary" type="submit">Submit button</button> <!-- no bg -->
  <input class="btn btn-primary" type="submit" value="Input button"/> <!-- no bg -->
</form>

not only 'submit'. usual type='button' too
https://jsbin.com/vuhazewibe/1/edit?html,output

This is caused by the background-color style in the tailwindcss preflight reset. I'm not sure why the reset only applies to buttons that have a "type" attribute


Test failure in test_writing_in_recv_events_fails

See https://github.com/python-websockets/websockets/actions/runs/4725358468/jobs/8383672459#step:5:27

It seems the results expired :(

Logs have expired and I don't remember seeing this happening recently.


No tie-breaking in one-vs-one

The prediction from one-vs-one is done here:
https://github.com/cjlin1/libsvm/blob/master/svm.cpp#L2565
And there is no tie-breaking, and in case of a tie, it always predicts 0.
I'm not sure if there is a standard tie-breaking mechanism, but deterministically predicting 0 seems like an odd choice. Is there something I'm missing?

See the 2nd last paragraph of	Sec 7 in libsvm paper
Andreas Mueller writes:

The prediction from one-vs-one is done here:
https://github.com/cjlin1/libsvm/blob/master/svm.cpp#L2565
And there is no tie-breaking, and in case of a tie, it always
predicts 0.
I'm not sure if there is a standard tie-breaking mechanism,
but deterministically predicting 0 seems like an odd choice.
Is there something I'm missing?
—
You are receiving this because you are subscribed to this
thread.
Reply to this email directly, view it on GitHub, or mute the
thread.*

Have you thought about this further?
This doesn't seem to be an edge case to me, for example for three classes.
Sent from phone. Please excuse spelling and brevity.
On Feb 2, 2017 9:43 PM, "cjlin1"<EMAIL_ADDRESS>wrote:

See the 2nd last paragraph of Sec 7 in libsvm paper
Andreas Mueller writes:

The prediction from one-vs-one is done here:
https://github.com/cjlin1/libsvm/blob/master/svm.cpp#L2565
And there is no tie-breaking, and in case of a tie, it always
predicts 0.
I'm not sure if there is a standard tie-breaking mechanism,
but deterministically predicting 0 seems like an odd choice.
Is there something I'm missing?
—
You are receiving this because you are subscribed to this
thread.
Reply to this email directly, view it on GitHub, or mute the
thread.*

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/cjlin1/libsvm/issues/85#issuecomment-277150163, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAbcFqToBJ-NTWlVcJ3Wgb3CJ2QW_oidks5rYpQzgaJpZM4L1y3P
.

Also thank you for your quick reply!
Sent from phone. Please excuse spelling and brevity.
On Feb 2, 2017 9:50 PM, "Andreas Mueller"<EMAIL_ADDRESS>wrote:

Have you thought about this further?
This doesn't seem to be an edge case to me, for example for three classes.
Sent from phone. Please excuse spelling and brevity.
On Feb 2, 2017 9:43 PM, "cjlin1"<EMAIL_ADDRESS>wrote:

See the 2nd last paragraph of Sec 7 in libsvm paper
Andreas Mueller writes:

The prediction from one-vs-one is done here:
https://github.com/cjlin1/libsvm/blob/master/svm.cpp#L2565
And there is no tie-breaking, and in case of a tie, it always
predicts 0.
I'm not sure if there is a standard tie-breaking mechanism,
but deterministically predicting 0 seems like an odd choice.
Is there something I'm missing?
—
You are receiving this because you are subscribed to this
thread.
Reply to this email directly, view it on GitHub, or mute the
thread.*

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/cjlin1/libsvm/issues/85#issuecomment-277150163, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAbcFqToBJ-NTWlVcJ3Wgb3CJ2QW_oidks5rYpQzgaJpZM4L1y3P
.

we can consider decision values. However, so far we haven't found real cases where ties occur too often. So the implementation for handling this may not be cost-effective
Andreas Mueller writes:

Have you thought about this further?
This doesn't seem to be an edge case to me, for example for
three classes.
Sent from phone. Please excuse spelling and brevity.
On Feb 2, 2017 9:43 PM, "cjlin1"<EMAIL_ADDRESS>wrote:

See the 2nd last paragraph of Sec 7 in libsvm paper
Andreas Mueller writes:

The prediction from one-vs-one is done here:

https://github.com/cjlin1/libsvm/blob/master/svm.cpp#L2565

And there is no tie-breaking, and in case of a tie, it
always
predicts 0.
I'm not sure if there is a standard tie-breaking
mechanism,
but deterministically predicting 0 seems like an odd
choice.
Is there something I'm missing?
—
You are receiving this because you are subscribed to this
thread.
Reply to this email directly, view it on GitHub, or mute
the
thread.*

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub

https://github.com/cjlin1/libsvm/issues/85#issuecomment-277150163
;, or mute

the thread

https://github.com/notifications/unsubscribe-auth/AAbcFqToBJ-NTWlVcJ3Wgb3CJ2QW_oidks5rYpQzgaJpZM4L1y3P
;

.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the
thread.*


Invalid JSON format with Error instance

> pretty({err: new Error('This is a error')}, 2, 'JSON')
'{\n  "err": Error: This is a error\n}\n'

The value of "err" is not quoted.

Thank you @terasaka2k , I will update the code with a solution for this use case

Bug is fixed


ODBC resultset starts at 1

https://bitbucket.org/ellislab/codeigniter/issue/280/odbc-resultset-starts-at-1

@Shmythe Can you tell what CI version and exactly which methods are you using (some example code probably)?
I just tested the current version of the driver and it works fine for me.

We get it when we are trying to get CSV output the file we had to change was "system/database/drivers/odbc/odbc_result.php".  And the change is below
=== modified file 'system/database/drivers/odbc/odbc_result.php'
--- system/database/drivers/odbc/odbc_result.php	2011-11-30 16:38:42 +0000
+++ system/database/drivers/odbc/odbc_result.php	2012-02-10 23:43:24 +0000
@@ -63,7 +63,7 @@
function list_fields()
{
$field_names = array();

  for ($i = 0; $i < $this->num_fields(); $i++)

  for ($i = 1; $i <= $this->num_fields(); $i++)
  {
  	$field_names[]	= odbc_field_name($this->result_id, $i);
  }

@@ -84,7 +84,7 @@
function field_data()
{
$retval = array();

  for ($i = 0; $i < $this->num_fields(); $i++)

  for ($i = 1; $i <= $this->num_fields(); $i++)
  {
  	$F				= new stdClass();
  	$F->name		= odbc_field_name($this->result_id, $i);

@@ -225,4 +225,4 @@
/* End of file odbc_result.php /
-/ Location: ./system/database/drivers/odbc/odbc_result.php /
\ No newline at end of file
+/ Location: ./system/database/drivers/odbc/odbc_result.php */
And we are using version 2.1.0

@Shmythe Ah, I just assumed that the issue was about result*() methods - I don't have an account on bitbucket and didn't want to register just for this one.
Should be fixed in #980. Can you check if it's ok with it? I'm currently building an app that utilizes the ODBC driver but some more testing should help for a faster merge. :)


is question.hasTitle functional?

I can see that rendering of the question title is conditional on the question.hasTitle property, but setting that to false in the survey JSON doesn't seem to change anything. I'm trying to follow the flow of the parameters, and it looks like hasTitle is just hardcoded to false in the questionBase, and hardcoded to true in the question class itself.
Is the intention that this property can be used to toggle rendering of individual question titles?

@bennettrogers Yes, it is a virtual property. It returns false in the base question and html question. It returns true in all other questions.
As you may see there is no title property in the html question, and base question.
Thank you,
Andrew

Gotcha. I was hoping to use it to disable rendering of the title for individual questions, but I've figured out a CSS solution that works for now. It's not pretty, but it works!

@bennettrogers If you give us a good scenario, where this functionality is required, then we will implement it. It is not that hard to make hasTitle property writable with default value and make it a JsonProperty. Probably there is not need to change the rendering since hasTitle is already there.
The only question. Should we count this questions or not? html question doesn't change  numbers (no) of other questions.
Anyway, if you give us a scenario and we can see it makes sense, then we will implement it.
I hate unpretty code :-)
Thank you,
Andrew

To be honest, the reason I'm even trying to hide the title in the first place is to approximate a multi-text type of control. The built-in multitext question type seems harder to work with (tables), so I was instead putting two text inputs side-by-side on the same line, and trying to merge them into a pretty "combined" input. Something like the height and blood pressure controls in the attached screenshot.
Ultimately I think the right solution here would be a fully custom question component, but it doesn't appear that's possible in Vue yet, so I was trying to get creative!

@bennettrogers I think it is possible.
I guess you have seen the startWithNewLine property.
and nothing stops you to use a custom widgets for Date of Birth, Height and Blood pressure: http://surveyjs.org/examples/vue/custom-widget-datepicker.html
Thank you,
Andrew

Yep, I'm using startWithNewLine to get the 2 textboxes to display together, then using CSS to remove the space between them.
Thanks for the recommendation - I'll take a look at using custom widgets instead. Is there more documentation for them somewhere?

@bennettrogers Unfortunately we do not have any documentation at the current moment. We will work on it later.
If you have any question about custom widgets, just ask them here and we will answer them.
Thank you,
Andrew


[💡FEATURE REQUEST]: Update PQ algorithm

Use Strengthened Lazy Heaps (https://arxiv.org/pdf/1407.3377.pdf) algorithm instead of binary heaps.

Superseeded by #1663


Used memory and disk in APPS tab

Hi,
I'm not getting the data of USED memory and disk under APPS Tab and Spaces TAB. How can i get this information?

I have few apps under apps tab where its not showing me the buildpack which is binded to that application.
Appreciate your help.
Thanks,
Akhilesh Appana

@Akhilesh-Anb Look in your admin_ui.log.  The app/space/org memory/disk/cpu come from the container metrics which are retrieved from the doppler_logging_endpoint.  If those are not being retrieved due to configuration error, then you will not get those fields.  Also, it can take a bit to get those metrics depending on your doppler_rollup_interval config value.
As for the buildpack missing, if this is not an installed buildpack, the buildpack guid column will be empty.

My log says,
W, [2017-05-15T16:04:25.017378 #8428]  WARN -- : [ -- ] : [ -- ] : The doppler_logging_endpoint component doppler_logging_endpoint is still not responding
Can you help me on this. Which configuration i need to check for getting the output.
These are the lines in my config file..
doppler_reconnect_delay: 300
doppler_rollup_interval: 30

@Akhilesh-Anb See if the firehose plugin works with your cloudfoundry system.  That will determine whether the doppler is correctly configured for your cloudfoundry installation:  https://github.com/cloudfoundry-community/firehose-plugin
If that works, then you can also verify that your admin_ui_client has the authority of doppler_firehose.


dismiss not working without timeout

Describe the feature / bug 📝:
If I don't put a timeout, the toast doesn't get dismissed, even though the code runs.
Steps to reproduce the bug 🔁:
here is the code I have:
const mailToast = toast.loading("Pripremanje obavijesti...", {
      duration: Infinity,
    });

    const user = users.find((user) => user.uid === data.uid);
    if (!user) {
      toast.dismiss(mailToast);
      toast.error("Greška prilikom slanja obavijesti");
      return;
    }

    const mailParams: EmailParams = {
      subject: "Dodijeljen termin",
      to: user.email,
      name: user.firstname,
      template: "assign",
      date: appointmentTimestamp.format("DD.MM.YYYY."),
      day: appointmentTimestamp.format("dddd"),
      time: appointmentTimestamp.format("HH:mm"),
    };

    const rejectedMailParams: (EmailParams | undefined)[] = reservations.map(
      (r) => {
        const user = users.find((user) => user.uid === r.userId);
        if (!user) return;

        return {
          subject: "Termin zauzet",
          to: user.email,
          name: user.firstname,
          template: "reject",
        };
      },
    );

    setTimeout(() => {
      toast.dismiss(mailToast);
    }, 150);

    const mailPromise = sendMail(mailParams);
    toast.promise(mailPromise, {
      loading: "Slanje obavijesti...",
      success: "Obavijest poslana!",
      error: "Greška prilikom slanja obavijesti",
    });

    const rejectedMailPromises = rejectedMailParams.map((params) =>
      params ? sendMail(params) : Promise.resolve(),
    );
    if (rejectedMailPromises.length > 0)
      toast.promise(Promise.all(rejectedMailPromises), {
        loading: "Slanje odbijenica...",
        success: "Odbijenice poslane!",
        error: "Greška prilikom slanja odbijenica",
      });
    try {
      await mailPromise;
      await Promise.all(rejectedMailPromises);
    } catch (e) {}

Can you provide a codesandbox? I can't run the pasted code as it requires more than what you posted.

This is still an issue btw, let me know if you would like a sandbox reproduction

const test = toast.loading('Event has been created')
    setTimeout(() => {
      toast.dismiss(test)
    }, 1000)

this works but this wont
const test = toast.loading('Event has been created')
toast.dismiss(test)