unable to login to private v2 registry

I get the following error message during login:
FATA[0004] Error response from daemon: (Code: 404; Headers: map[Content-Type:[text/plain; charset=utf-8] Docker-Distribution-Api-Version:[registry/2.0] Content-Length:[19] Date:[Mon, 10 Aug 2015 15:09:28 GMT] Server:[Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips]])

I am using docker v 1.6.2
Any idea why it is failing. I have all the certs in the right place.

We need a bit more information to debug this. Please follow the steps here:
https://github.com/docker/distribution/blob/master/CONTRIBUTING.md#if-you-have-not-found-an-existing-issue-that-describes-your-problem

[root@r10a-venkat-docker my_apache]# docker info
Containers: 7
Images: 134
Storage Driver: devicemapper
Pool Name: docker-253:3-2097155-pool
Pool Blocksize: 65.54 kB
Backing Filesystem: extfs
Data file:
Metadata file:
Data Space Used: 2.762 GB
Data Space Total: 107.4 GB
Data Space Available: 104.6 GB
Metadata Space Used: 5.427 MB
Metadata Space Total: 2.147 GB
Metadata Space Available: 2.142 GB
Udev Sync Supported: true
Library Version: 1.02.95-RHEL6 (2015-06-17)
Execution Driver: native-0.2
Kernel Version: 2.6.32-504.16.2.el6.x86_64
Operating System:
CPUs: 1
Total Memory: 1.833 GiB
Name: r10a-venkat-docker
ID: 5IDI:JENV:2TN3:QNVG:E7QG:4HR4:HT2T:Z72W:ADUV:JY6F:ST46:HLUV
Debug mode (server): true
Debug mode (client): false
Fds: 12
Goroutines: 15
System Time: Mon Aug 10 13:36:16 EDT 2015
EventsListeners: 0
Init SHA1: d483126db2b26be04fcbd90ffff55153ecd603d9
Init Path: /usr/libexec/docker/dockerinit
Docker Root Dir: /docker/lib
Http Proxy: gatekeeper.mitre.org:80
Https Proxy: gatekeeper.mitre.org:80
No Proxy: localhost,<IP_ADDRESS>,localaddress,.mitre.org,/var/run/docker.sock
Labels:
MITRE_ENV=ece
mitre.environment=ece
mitre.pool=A

[root@r10a-venkat-docker my_apache]# docker version
Client version: 1.6.2
Client API version: 1.18
Go version (client): go1.4.2
Git commit (client): 7c8fca2/1.6.2
OS/Arch (client): linux/amd64
Server version: 1.6.2
Server API version: 1.18
Go version (server): go1.4.2
Git commit (server): 7c8fca2/1.6.2
OS/Arch (server): linux/amd64
##############
[root@r10a-venkat-docker my_apache]#  docker exec composetest_registry_1 registry -version
registry github.com/docker/distribution v2.0.1
#########
Compose yml file
apache:
restart: always
image: apache
hostname: r10a-venkat-docker.mitre.org
ports:
- "80:80"
- "8443:443"
links:
- registry:registry
volumes:
- /etc/pki/tls/certs/r10a-venkat-docker.crt:/etc/pki/tls/certs/localhost.crt
- /etc/pki/tls/private/r10a-venkat-docker.key:/etc/pki/tls/private/localhost.key
- /logs/my_apache:/var/log/httpd
- /home/venkat/my_apache/includes/authnz_ldap.conf:/etc/httpd/conf.d/authnz_ldap.conf
- /home/venkat/my_apache/includes/registry_header.conf:/etc/httpd/conf.d/registry_header.conf
- /home/venkat/my_apache/includes/rev_proxy.conf:/etc/httpd/conf.d/rev_proxy.conf
registry:
restart: always
image: registry:2
hostname: r10a-venkat-docker.mitre.org
ports:
- "<IP_ADDRESS>:5000:5000"
environment:
REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY: /data
volumes:
- /data/registry:/data
Command to start:
docker-compose -f registry.yml up -d

Using Apache 2.4.6 to proxy registry

error when tried to login
[venkat@r10a-venkat-docker compose_test]$ docker login -u venkat -e<EMAIL_ADDRESS>https://r10a-venkat-docker.mitre.org:8443
FATA[0000] Error response from daemon: (Code: 404; Headers: map[Content-Type:[text/plain; charset=utf-8] Docker-Distribution-Api-Version:[registry/2.0] Content-Length:[19] Date:[Mon, 10 Aug 2015 17:39:00 GMT] Server:[Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips]])

docker logs
[root@r10a-venkat-docker my_apache]# tail -f /var/log/messages | grep docker
Aug 10 13:37:18 r10a-venkat-docker kernel: EXT4-fs (dm-12): warning: checktime reached, running e2fsck is recommended
Aug 10 13:37:18 r10a-venkat-docker kernel: EXT4-fs (dm-12): mounted filesystem with ordered data mode. Opts:
Aug 10 13:37:18 r10a-venkat-docker kernel: device veth304dfb3 entered promiscuous mode
Aug 10 13:37:18 r10a-venkat-docker kernel: docker0: port 2(veth304dfb3) entering forwarding state
Aug 10 13:37:31 r10a-venkat-docker kernel: docker0: port 1(veth1367312) entering forwarding state
Aug 10 13:37:33 r10a-venkat-docker kernel: docker0: port 2(veth304dfb3) entering forwarding state
Aug 10 13:40:51 r10a-venkat-docker winbindd[8519]: [2015/08/10 13:40:51.284285,  0] winbindd/winbindd_util.c:348(trustdom_list_done)
Aug 10 13:40:51 r10a-venkat-docker winbindd[8519]:   Got invalid trustdom response
Aug 10 13:45:51 r10a-venkat-docker winbindd[8519]: [2015/08/10 13:45:51.294748,  0] winbindd/winbindd_util.c:348(trustdom_list_done)
Aug 10 13:45:51 r10a-venkat-docker winbindd[8519]:   Got invalid trustdom response

Thanks @natarajanv
What is your authentication setup?  What do the registry logs output when you try to login?

  Something is amiss with your setup.  Rerun the daemon in debug mode and trace the calls after you issue the login command.

[venkat@r10a-venkat-docker compose_test]$ docker --debug=true login -u venkat -e<EMAIL_ADDRESS>https://r10a-venkat-docker.mitre.org:8443
FATA[0000] Error response from daemon: (Code: 404; Headers: map[Server:[Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips] Content-Type:[text/plain; charset=utf-8] Docker-Distribution-Api-Version:[registry/2.0] Content-Length:[19] Date:[Mon, 10 Aug 2015 18:11:35 GMT]])
###########
[venkat@r10a-venkat-docker compose_test]$ docker --debug=true info
Containers: 9
Images: 134
Storage Driver: devicemapper
Pool Name: docker-253:3-2097155-pool
Pool Blocksize: 65.54 kB
Backing Filesystem: extfs
Data file:
Metadata file:
Data Space Used: 2.766 GB
Data Space Total: 107.4 GB
Data Space Available: 104.6 GB
Metadata Space Used: 5.509 MB
Metadata Space Total: 2.147 GB
Metadata Space Available: 2.142 GB
Udev Sync Supported: true
Library Version: 1.02.95-RHEL6 (2015-06-17)
Execution Driver: native-0.2
Kernel Version: 2.6.32-504.16.2.el6.x86_64
Operating System:
CPUs: 1
Total Memory: 1.833 GiB
Name: r10a-venkat-docker
ID: 5IDI:JENV:2TN3:QNVG:E7QG:4HR4:HT2T:Z72W:ADUV:JY6F:ST46:HLUV
Debug mode (server): true
Debug mode (client): true
Fds: 22
Goroutines: 31
System Time: Mon Aug 10 14:11:14 EDT 2015
EventsListeners: 0
Init SHA1: d483126db2b26be04fcbd90ffff55153ecd603d9
Init Path: /usr/libexec/docker/dockerinit
Docker Root Dir: /docker/lib
Http Proxy: gatekeeper.mitre.org:80
Https Proxy: gatekeeper.mitre.org:80
No Proxy: localhost,<IP_ADDRESS>,localaddress,.mitre.org,/var/run/docker.sock
Labels:
MITRE_ENV=ece
mitre.environment=ece

Those are not the daemon logs.  Run the daemon in debug mode and trace the calls after you issue the login command.

time="2015-08-10T14:54:40-04:00" level=debug msg="Calling POST /auth"
time="2015-08-10T14:54:40-04:00" level=info msg="POST /v1.18/auth"
time="2015-08-10T14:54:40-04:00" level=info msg="+job auth()"
time="2015-08-10T14:54:40-04:00" level=info msg="+job resolve_index(https://r10a-venkat-docker.mitre.org:8443)"
time="2015-08-10T14:54:40-04:00" level=info msg="-job resolve_index(https://r10a-venkat-docker.mitre.org:8443) = OK (0)"
time="2015-08-10T14:54:40-04:00" level=debug msg="pinging registry endpoint https://r10a-venkat-docker.mitre.org:8443/v0/"
time="2015-08-10T14:54:40-04:00" level=debug msg="attempting v2 ping for registry endpoint https://r10a-venkat-docker.mitre.org:8443/v2/"
time="2015-08-10T14:54:40-04:00" level=debug msg="https://r10a-venkat-docker.mitre.org:8443/v2/ -- HEADERS: map[User-Agent:[docker/1.6.2 go/go1.4.2 kernel/2.6.32-504.16.2.el6.x86_64 os/linux arch/amd64]]"
time="2015-08-10T14:54:40-04:00" level=debug msg="hostDir: /etc/docker/certs.d/r10a-venkat-docker.mitre.org:8443"
time="2015-08-10T14:54:40-04:00" level=debug msg="attempting v1 ping for registry endpoint https://r10a-venkat-docker.mitre.org:8443/v1/"
time="2015-08-10T14:54:40-04:00" level=debug msg="https://r10a-venkat-docker.mitre.org:8443/v1/_ping -- HEADERS: map[User-Agent:[docker/1.6.2 go/go1.4.2 kernel/2.6.32-504.16.2.el6.x86_64 os/linux arch/amd64]]"
time="2015-08-10T14:54:40-04:00" level=debug msg="hostDir: /etc/docker/certs.d/r10a-venkat-docker.mitre.org:8443"
time="2015-08-10T14:54:40-04:00" level=debug msg="Error unmarshalling the _ping RegistryInfo: invalid character '<' looking for beginning of value"
time="2015-08-10T14:54:40-04:00" level=debug msg="RegistryInfo.Version: """
time="2015-08-10T14:54:40-04:00" level=debug msg="Registry standalone header: ''"
time="2015-08-10T14:54:40-04:00" level=debug msg="RegistryInfo.Standalone: true"
time="2015-08-10T14:54:40-04:00" level=debug msg="attempting v1 login to registry endpoint https://r10a-venkat-docker.mitre.org:8443/v1/"
time="2015-08-10T14:54:40-04:00" level=debug msg="https://r10a-venkat-docker.mitre.org:8443/v1/users/ -- HEADERS: map[User-Agent:[docker/1.6.2 go/go1.4.2 kernel/2.6.32-504.16.2.el6.x86_64 os/linux arch/amd64]]"
time="2015-08-10T14:54:40-04:00" level=error msg="unable to login against registry endpoint https://r10a-venkat-docker.mitre.org:8443/v1/: Login: 404 page not found\n (Code: 404; Headers: map[Date:[Mon, 10 Aug 2015 18:54:40 GMT] Server:[Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips] Content-Type:[text/plain; charset=utf-8] Docker-Distribution-Api-Version:[registry/2.0] Content-Length:[19]])"
Login: 404 page not found
(Code: 404; Headers: map[Date:[Mon, 10 Aug 2015 18:54:40 GMT] Server:[Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips] Content-Type:[text/plain; charset=utf-8] Docker-Distribution-Api-Version:[registry/2.0] Content-Length:[19]])
time="2015-08-10T14:54:40-04:00" level=info msg="-job auth() = ERR (1)"
time="2015-08-10T14:54:40-04:00" level=error msg="Handler for POST /auth returned error:  (Code: 404; Headers: map[Date:[Mon, 10 Aug 2015 18:54:40 GMT] Server:[Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips] Content-Type:[text/plain; charset=utf-8] Docker-Distribution-Api-Version:[registry/2.0] Content-Length:[19]])"
time="2015-08-10T14:54:40-04:00" level=error msg="HTTP Error: statusCode=500  (Code: 404; Headers: map[Date:[Mon, 10 Aug 2015 18:54:40 GMT] Server:[Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips] Content-Type:[text/plain; charset=utf-8] Docker-Distribution-Api-Version:[registry/2.0] Content-Length:[19]])"

these are the apache configurations:

      AuthBasicProvider ldap
      AuthLDAPUrl "valid url here"
      AuthLDAPBindDN "valid value here"
      AuthLDAPBindPassword "pwd"
      AuthType Basic
      AuthName "APACHE Login"
  <If "%{REQUEST_METHOD} != 'GET'" >
   Require user oracle_svn svc_anth_ad
  </If>
  <Else>
    Require valid-user
  </Else>

#######
[venkat@r10a-venkat-docker includes]$ cat rev_proxy.conf

  ProxyPreserveHost  On
  ProxyRequests      Off
  ProxyPass / http://registry:5000/
  ProxyPassReverse / http://registry:5000/

[venkat@r10a-venkat-docker includes]$ cat registry_header.conf

mod_authnz_ldap can be used to implement access control and
authenticate users against an LDAP database.

     Header set Docker-Distribution-Api-Version "registry/2.0"

@natarajanv your apache is returning a 500 error.
time="2015-08-10T14:54:40-04:00" level=error msg="HTTP Error: statusCode=500 (Code: 404; Headers: map[Date:[Mon, 10 Aug 2015 18:54:40 GMT] Server:[Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips] Content-Type:[text/plain; charset=utf-8] Docker-Distribution-Api-Version:[registry/2.0] Content-Length:[19]])"
Can you provide your apache error log?

I recreated the error after cleaning out the log files.
here are the logs from apache
[root@r10a-venkat-docker my_apache]# cat error_log
[Mon Aug 10 22:19:36.980085 2015] [suexec:notice] [pid 7] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Aug 10 22:19:37.025741 2015] [auth_digest:notice] [pid 7] AH01757: generating secret for digest authentication ...
[Mon Aug 10 22:19:37.026711 2015] [lbmethod_heartbeat:notice] [pid 7] AH02282: No slotmem from mod_heartmonitor
[Mon Aug 10 22:19:37.035583 2015] [mpm_prefork:notice] [pid 7] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips configured -- resuming normal operations
[Mon Aug 10 22:19:37.035675 2015] [core:notice] [pid 7] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[root@r10a-venkat-docker my_apache]# cat ssl_request_log
[10/Aug/2015:22:19:44 +0000] <IP_ADDRESS> TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /v2/ HTTP/1.1" 381
[10/Aug/2015:22:19:44 +0000] <IP_ADDRESS> TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /v1/_ping HTTP/1.1" 381
[10/Aug/2015:22:19:44 +0000] <IP_ADDRESS> TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "POST /v1/users/ HTTP/1.1" 381
[10/Aug/2015:22:19:44 +0000] <IP_ADDRESS> TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /v1/users/ HTTP/1.1" 19
[root@r10a-venkat-docker my_apache]# cat ssl_access_log
<IP_ADDRESS> - - [10/Aug/2015:22:19:44 +0000] "GET /v2/ HTTP/1.1" 401 381
<IP_ADDRESS> - - [10/Aug/2015:22:19:44 +0000] "GET /v1/_ping HTTP/1.1" 401 381
<IP_ADDRESS> - - [10/Aug/2015:22:19:44 +0000] "POST /v1/users/ HTTP/1.1" 401 381
<IP_ADDRESS> - venkat [10/Aug/2015:22:19:44 +0000] "GET /v1/users/ HTTP/1.1" 404 19

Hi, I'm having the same error after just trying to set up a private registry with htpasswd auth. The version of docker I'm trying to sign in with is Docker version 1.6.0, build 4749651.
I was following the instructions here: https://docs.docker.com/registry/deploying/
There's a big wall of output coming (I hope it is helpful) so firstly, thanks for your time.
From the server:
root@docker:~# docker version
Client:
 Version:      1.8.0
 API version:  1.20
 Go version:   go1.4.2
 Git commit:   0d03096
 Built:        Tue Aug 11 16:48:39 UTC 2015
 OS/Arch:      linux/amd64

Server:
 Version:      1.8.0
 API version:  1.20
 Go version:   go1.4.2
 Git commit:   0d03096
 Built:        Tue Aug 11 16:48:39 UTC 2015
 OS/Arch:      linux/amd64

root@docker:~# docker info
Containers: 1
Images: 22
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 24
 Dirperm1 Supported: false
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 3.13.0-57-generic
Operating System: Ubuntu 14.04.3 LTS
CPUs: 1
Total Memory: 490 MiB
Name: docker.small.mu
ID: MDRX:JMYG:EREZ:PL72:P6PF:DHP4:TM5I:UJ5S:MK5H:PEFM:CM6R:5COS
WARNING: No swap limit support

I ran docker daemon -D and this was my total output:
DEBU[0000] Registering HEAD, /containers/{name:.*}/archive
DEBU[0000] Registering GET, /containers/{name:.*}/archive
DEBU[0000] Registering GET, /images/json
DEBU[0000] Registering GET, /containers/json
DEBU[0000] Registering GET, /containers/{name:.*}/export
DEBU[0000] Registering GET, /containers/{name:.*}/changes
DEBU[0000] Registering GET, /containers/{name:.*}/json
DEBU[0000] Registering GET, /exec/{id:.*}/json
DEBU[0000] Registering GET, /_ping
DEBU[0000] Registering GET, /images/get
DEBU[0000] Registering GET, /images/{name:.*}/history
DEBU[0000] Registering GET, /events
DEBU[0000] Registering GET, /version
DEBU[0000] Registering GET, /images/search
DEBU[0000] Registering GET, /containers/{name:.*}/logs
DEBU[0000] Registering GET, /containers/{name:.*}/stats
DEBU[0000] Registering GET, /containers/{name:.*}/attach/ws
DEBU[0000] Registering GET, /info
DEBU[0000] Registering GET, /images/{name:.*}/get
DEBU[0000] Registering GET, /images/{name:.*}/json
DEBU[0000] Registering GET, /containers/ps
DEBU[0000] Registering GET, /containers/{name:.*}/top
DEBU[0000] Registering POST, /build
DEBU[0000] Registering POST, /images/{name:.*}/tag
DEBU[0000] Registering POST, /containers/{name:.*}/start
DEBU[0000] Registering POST, /containers/{name:.*}/attach
DEBU[0000] Registering POST, /exec/{name:.*}/start
DEBU[0000] Registering POST, /containers/{name:.*}/rename
DEBU[0000] Registering POST, /images/load
DEBU[0000] Registering POST, /images/{name:.*}/push
DEBU[0000] Registering POST, /containers/create
DEBU[0000] Registering POST, /containers/{name:.*}/exec
DEBU[0000] Registering POST, /containers/{name:.*}/copy
DEBU[0000] Registering POST, /exec/{name:.*}/resize
DEBU[0000] Registering POST, /auth
DEBU[0000] Registering POST, /commit
DEBU[0000] Registering POST, /containers/{name:.*}/kill
DEBU[0000] Registering POST, /containers/{name:.*}/unpause
DEBU[0000] Registering POST, /containers/{name:.*}/wait
DEBU[0000] Registering POST, /containers/{name:.*}/resize
DEBU[0000] Registering POST, /images/create
DEBU[0000] Registering POST, /containers/{name:.*}/pause
DEBU[0000] Registering POST, /containers/{name:.*}/restart
DEBU[0000] Registering POST, /containers/{name:.*}/stop
DEBU[0000] Registering PUT, /containers/{name:.*}/archive
DEBU[0000] Registering DELETE, /containers/{name:.*}
DEBU[0000] Registering DELETE, /images/{name:.*}
DEBU[0000] Registering OPTIONS,
DEBU[0000] docker group found. gid: 999
INFO[0000] Listening for HTTP on unix (/var/run/docker.sock)
INFO[0000] [graphdriver] using prior storage driver "aufs"
DEBU[0000] Using graph driver aufs
DEBU[0000] Using default logging driver json-file
DEBU[0000] Migrating existing containers
DEBU[0000] Creating images graph
DEBU[0000] Restored 22 elements
DEBU[0000] Reloaded graph with 3 grants expiring at 2017-03-22 19:04:46.713978458 +0000 UTC
DEBU[0000] Creating repository list
INFO[0000] Option DefaultDriver: bridge
INFO[0000] Option DefaultNetwork: bridge
WARN[0000] Running modprobe bridge nf_nat br_netfilter failed with message: modprobe: WARNING: Module br_netfilter not found.
, error: exit status 1
INFO[0000] Firewalld running: false
DEBU[0000] /sbin/iptables, [--wait -t nat -D PREROUTING -m addrtype --dst-type LOCAL -j DOCKER]
DEBU[0000] /sbin/iptables, [--wait -t nat -D OUTPUT -m addrtype --dst-type LOCAL ! --dst <IP_ADDRESS>/8 -j DOCKER]
DEBU[0000] /sbin/iptables, [--wait -t nat -D OUTPUT -m addrtype --dst-type LOCAL -j DOCKER]
DEBU[0000] /sbin/iptables, [--wait -t nat -D PREROUTING]
DEBU[0000] /sbin/iptables, [--wait -t nat -D OUTPUT]
DEBU[0000] /sbin/iptables, [--wait -t nat -F DOCKER]
DEBU[0000] /sbin/iptables, [--wait -t nat -X DOCKER]
DEBU[0000] Failed to Initialize Datastore due to datastore initialization requires a valid configuration.
 There was one deviation, I was unable to get:
docker run --entrypoint htpasswd registry:2 -Bbn testuser testpassword > auth/htpasswd
working correctly. It would claim htpasswd wasn't available. I endedup installing apache2-utils and creating the htpasswd file from the server.

My issue, #860 might be a duplicate of this (though I used native and not apache server).
Also I like Bockit had to install apache utils since it was not in the image.
Please make sure you docker pull registry:2 to update your image and try again.
Confirm you have the latest version by issuing a:
root@loft:~# docker run registry:2 --version /bin/registry github.com/docker/distribution v2.1.0

@Bockit you are likely missing an entry in your compose file:
REGISTRY_AUTH: htpasswd
Sorry for the documentation was inaccurate on this, and this is fixed by #865
Finally: everybody, people here are reporting various different issues. One of you is trying to use Apache.
In the name of maintainers sanity, I would ask you if you can to create separate tickets for separate issues: if your setup is different from the original poster, please create a separate ticket.
Thanks.

@dmp42 apologies for the noise, and thanks for the help. If I'm still having problems I'll create a new issue.

[venkat@r10a-venkat-docker compose_test]$ docker run registry:2 --version
/bin/registry github.com/docker/distribution v2.1.1

@natarajanv your apache config is the problem here.
From what I can see, it's incomplete for now - I see no X-Forwarded-For headers for example.
Also, can you confirm you successfully followed the steps described in deploying.md, and you can successfully pull and push from your registry directly (without Apache in front).
Then you should review https://github.com/docker/distribution/blob/master/docs/nginx.md and figure out what's missing in Apache, without trying to add authentication.
Thanks.

We are under the impression that Apache ProxyPassReverse does it automatically, based on this http://wiki.nginx.org/LikeApache
Thanks
Venkat
From: Olivier Gambier<EMAIL_ADDRESS>Sent: Thursday, August 13, 2015 1:07 PM
To: docker/distribution<EMAIL_ADDRESS>Cc: Natarajan, Venkat<EMAIL_ADDRESS>Subject: Re: [distribution] unable to login to private v2 registry (#842)
@natarajanvhttps://github.com/natarajanv your apache config is the problem here.
From what I can see, it's incomplete for now - I see no X-Forwarded-For headers for example.
Also, can you confirm you successfully followed the steps described in deploying.md, and you can successfully pull and push from your registry directly (without Apache in front).
Then you should review https://github.com/docker/distribution/blob/master/docs/nginx.md and figure out what's missing in Apache, without trying to add authentication.
Thanks.
—
Reply to this email directly or view it on GitHubhttps://github.com/docker/distribution/issues/842#issuecomment-130762626.

Yes, I can pull/push successfully without Apache.
Thanks
From: Olivier Gambier<EMAIL_ADDRESS>Sent: Thursday, August 13, 2015 1:07 PM
To: docker/distribution<EMAIL_ADDRESS>Cc: Natarajan, Venkat<EMAIL_ADDRESS>Subject: Re: [distribution] unable to login to private v2 registry (#842)
@natarajanvhttps://github.com/natarajanv your apache config is the problem here.
From what I can see, it's incomplete for now - I see no X-Forwarded-For headers for example.
Also, can you confirm you successfully followed the steps described in deploying.md, and you can successfully pull and push from your registry directly (without Apache in front).
Then you should review https://github.com/docker/distribution/blob/master/docs/nginx.md and figure out what's missing in Apache, without trying to add authentication.
Thanks.
—
Reply to this email directly or view it on GitHubhttps://github.com/docker/distribution/issues/842#issuecomment-130762626.

@natarajanv
Can you mail me your complete Apache configuration? (just tar /etc/apache or whatever contains the config).

These are the custom configuration which gets loaded via the include into the main configuration:
authnz_ldap.conf file:

      AuthBasicProvider ldap
      AuthLDAPUrl "ldap://validname.org:3268/DC=mitre,DC=org?sAMAccountName?sub?(objectClass=*)"
      AuthLDAPBindDN "DC=MITRE,DC=ORG"
      AuthLDAPBindPassword "validpassword"
      AuthType Basic
      AuthName "APACHE Login"
  Require valid-user

registry_header.conf file:

     Header set Docker-Distribution-Api-Version "registry/2.0"

rev_proxy.conf file

  ProxyPreserveHost  On
  ProxyRequests      Off
  ProxyPass /v2/ http://registry:5000/v2/
  ProxyPassReverse /v2/ http://registry:5000/v2/

This is the output I get when I login using the above config:
[venkat@r10a-venkat-docker compose_test]$ docker login -u venkat -e<EMAIL_ADDRESS>r10a-venkat-docker.mitre.org:8443
Password:
FATA[0004] Error response from daemon:
[venkat@r10a-venkat-docker compose_test]$
These are the corresponding entries in the apache logs for this login:
==> ssl_access_log <==
<IP_ADDRESS> - - [14/Aug/2015:11:28:59 +0000] "GET /v2/ HTTP/1.1" 401 381
==> ssl_request_log <==
[14/Aug/2015:11:28:59 +0000] <IP_ADDRESS> TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /v2/ HTTP/1.1" 381
==> ssl_access_log <==
<IP_ADDRESS> - - [14/Aug/2015:11:28:59 +0000] "GET /v1/_ping HTTP/1.1" 404 206
==> ssl_request_log <==
[14/Aug/2015:11:28:59 +0000] <IP_ADDRESS> TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /v1/_ping HTTP/1.1" 206
==> ssl_access_log <==
<IP_ADDRESS> - - [14/Aug/2015:11:28:59 +0000] "POST /v1/users/ HTTP/1.1" 404 207
==> ssl_request_log <==
[14/Aug/2015:11:28:59 +0000] <IP_ADDRESS> TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "POST /v1/users/ HTTP/1.1" 207
BTW, I have tried with ‘<Location / >’ and ‘ProxyPass / / http://registry:5000/’ as well….
With <Location / > in the configuration, this is what I get for login:
[venkat@r10a-venkat-docker compose_test]$ docker login -u venkat -e<EMAIL_ADDRESS>r10a-venkat-docker.mitre.org:8443
Password:
FATA[0003] Error response from daemon: (Code: 404; Headers: map[Server:[Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips] Content-Type:[text/plain; charset=utf-8] Docker-Distribution-Api-Version:[registry/2.0] Content-Length:[19] Date:[Fri, 14 Aug 2015 11:32:09 GMT]])
[venkat@r10a-venkat-docker compose_test]$
Log entries:
==> ssl_access_log <==
<IP_ADDRESS> - - [14/Aug/2015:11:32:09 +0000] "GET /v2/ HTTP/1.1" 401 381
==> ssl_request_log <==
[14/Aug/2015:11:32:09 +0000] <IP_ADDRESS> TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /v2/ HTTP/1.1" 381
==> ssl_access_log <==
<IP_ADDRESS> - - [14/Aug/2015:11:32:09 +0000] "GET /v1/_ping HTTP/1.1" 401 381
==> ssl_request_log <==
[14/Aug/2015:11:32:09 +0000] <IP_ADDRESS> TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /v1/_ping HTTP/1.1" 381
==> ssl_access_log <==
<IP_ADDRESS> - - [14/Aug/2015:11:32:09 +0000] "POST /v1/users/ HTTP/1.1" 401 381
==> ssl_request_log <==
[14/Aug/2015:11:32:09 +0000] <IP_ADDRESS> TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "POST /v1/users/ HTTP/1.1" 381
==> ssl_access_log <==
<IP_ADDRESS> - venkat [14/Aug/2015:11:32:09 +0000] "GET /v1/users/ HTTP/1.1" 404 19
==> ssl_request_log <==
[14/Aug/2015:11:32:09 +0000] <IP_ADDRESS> TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /v1/users/ HTTP/1.1" 19
This is the registry version:
[venkat@r10a-venkat-docker compose_test]$ docker run registry:2 --version
/bin/registry github.com/docker/distribution v2.1.1
[venkat@r10a-venkat-docker compose_test]$
This is my compose file:
[venkat@r10a-venkat-docker compose_test]$ cat apache_and_registry2.yml
apache:
restart: always
image: apache
hostname: r10a-venkat-docker.mitre.org
ports:
- "80:80"
- "8443:443"
links:
- registry:registry
volumes:
- /etc/pki/tls/certs/r10a-venkat-docker.crt:/etc/pki/tls/certs/localhost.crt
- /etc/pki/tls/private/r10a-venkat-docker.key:/etc/pki/tls/private/localhost.key
- /logs/my_apache:/var/log/httpd
- /home/venkat/my_apache/includes/authnz_ldap.conf:/etc/httpd/conf.d/authnz_ldap.conf
- /home/venkat/my_apache/includes/registry_header.conf:/etc/httpd/conf.d/registry_header.conf
- /home/venkat/my_apache/includes/rev_proxy.conf:/etc/httpd/conf.d/rev_proxy.conf
registry:
restart: always
image: registry:2
hostname: r10a-venkat-docker.mitre.org
ports:
- "<IP_ADDRESS>:5000:5000"
environment:
REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY: /data
volumes:
- /data/registry:/data
Thanks
Venkat
From: Olivier Gambier<EMAIL_ADDRESS>Sent: Thursday, August 13, 2015 6:20 PM
To: docker/distribution<EMAIL_ADDRESS>Cc: Natarajan, Venkat<EMAIL_ADDRESS>Subject: Re: [distribution] unable to login to private v2 registry (#842)
@natarajanvhttps://github.com/natarajanv
Can you mail me your complete Apache configuration? (just tar /etc/apache or whatever contains the config).
—
Reply to this email directly or view it on GitHubhttps://github.com/docker/distribution/issues/842#issuecomment-130864938.

@natarajanv we just put together an Apache recipe.
Can you give this a spin: https://github.com/dmp42/distribution/blob/5.all-ur-proxy-are-belong-to-us/docs/apache.md
Then let us know if this is working?
From there you should be able to just hook in LDAP auth.

Oliver,
It works fine with the password file auth.
Thanks
From: Olivier Gambier<EMAIL_ADDRESS>Sent: Thursday, August 20, 2015 2:01 AM
To: docker/distribution<EMAIL_ADDRESS>Cc: Natarajan, Venkat<EMAIL_ADDRESS>Subject: Re: [distribution] unable to login to private v2 registry (#842)
@natarajanvhttps://github.com/natarajanv we just put together an Apache recipe.
Can you give this a spin: https://github.com/dmp42/distribution/blob/5.all-ur-proxy-are-belong-to-us/docs/apache.md
Then let us know if this is working?
From there you should be able to just hook in LDAP auth.
—
Reply to this email directly or view it on GitHubhttps://github.com/docker/distribution/issues/842#issuecomment-132902261.

@natarajanv then all that is remaining is plugging in the ldap auth.
Someone achieved it using nginx here: https://github.com/docker/docker-registry/issues/1026

@natarajanv : is this still an issue for you?

Closing for bookkeeping. Please state so if this is still an issue.

I mentioned I was following https://docs.docker.com/registry/deploying/ for the process. There was one deviation, I was unable to get:
docker run --entrypoint htpasswd registry:2 -Bbn testuser testpassword > auth/htpasswd
working correctly. It would claim htpasswd wasn't available. I endedup installing apache2-utils and creating the htpasswd file from the server.

So thank you for your feed back, doing the exact same thing 4 years later, got the exact same problem, and it would have been so tricky to just guess htpasswd was the problem... I 'll give feedback myself after I solve the issue 4 years later, for future users' sake in 2023 ...


Build instructions in https://github.com/ollama/ollama/blob/main/llama/README.md are outdated or non-functional

What is the issue?
Following the build instructions in README.md for Linux/CUDA results in an error when running make ggml_cuda.so. The error is:
make: *** No rule to make target 'ggml_cuda.so'.  Stop.

Could you please confirm if the documentation needs to be updated?
OS
Linux
GPU
Other
CPU
Intel
Ollama version
main branch

which cuda version and ollama version , please mention.

which cuda version and ollama version , please mention.

cuda 12.
But this document doesn't mention any variations or alternative commands. Could you please confirm if the build steps need updating?


Make ServiceCollectionExtensions consistent

Hi @javiercn, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.
TTYL, DNFBOT;

Things to pay attention to:

Comments (There's been a lot of copy paste, so mistakes can happen).
Method names
Null checks for arguments
Overload with configuration action calls parameterless overload.
Parameterless overload does the work and brings in direct depenendencies
(Like routing on MVC, for most repositories it means making sure AddOptions is called).

/cc @Eilon

:clock1:

updated /cc @Eilon

@sebastienros Doesn't your TagHelper cache abstraction require a distributed cache too?

Yes it requires one, this is why I will be waiting for this PR.

@Eilon Am I good to go here?

Almost good :smile:
:watch:

updated /cc: @Eilon

:shipit:


Upgrade @mikro-orm/sqlite to sqlite3 v5.0.3+

I noticed you changed the sqlite bindings used in @mikro-orm/sqlite to @vscode/sqlite3 (https://github.com/microsoft/vscode-node-sqlite3), which is a fork of https://github.com/TryGhost/node-sqlite3. IMO this was the correct move, as the former library long suffered from poor maintenance.
However, it seems that the good people at Ghost have taken over maintenance from Mapbox, and they already pushed a new maintenance release (https://github.com/TryGhost/node-sqlite3/releases/tag/v5.0.3). This release brings the library into 2022 and solves many annoying (build) issues (including #2991).
You may want to consider switching @mikro-orm/sqlite back to the 'mainline' sqlite bindings.

Regarding the new maintainers of node-sqlite3, see: https://github.com/TryGhost/node-sqlite3/issues/1572#issue-1203647774

This is more about knex, we dont use the library directly. Feel free to propose this to them first.

Knex has been switched back to sqlite3 🙂

Good, will do so too, luckily for us this wont be a breaking change.

So latest dev version is back on sqlite3. I will ship new stable soon.


Feature/fileio

#922

Could this go into regular Dev too? Doesn't seem to be any breaking changes here.


[Question]:AttributeError: 'AzureOpenAI' object has no attribute 'generate'

Question Validation

[X] I have searched both the documentation and discord for an answer.

Question
I want to generate response from AzureOpenAI gpt4 model by passing my prompt to it, but i am getting below error 👍
AttributeError: 'AzureOpenAI' object has no attribute 'generate'
below is my code:
llm = AzureOpenAI(
                api_key=self.az_openai_key,
                azure_endpoint=self.az_openai_endpoint,
                model=model_specs["model_name"],
                deployment_name=model_specs["deply_name"],
                api_version=model_specs["api_version"],
                temperature=0,
            )

response = llm.generate(prompt = 'my_prompt')

AttributeError: 'AzureOpenAI' object has no attribute 'generate'

@adityamity indeed, it does not have that method. I don't think any of our docs show a generate method.
Dosu is right, you can use complete(). Or, you can pass in a list of ChatMessage objects and use .chat()
from llama_index.core.llms import ChatMessage

llm.chat([ChatMessage(role="user", content="hello")])


[FEATURE] Add configuration to Backoffice

Is your feature request related to a problem? Please describe.
Add configurations to BackOffice:

Logo, icon and favicon
Theme colors
Page title name

Added in #59


Feature/use fixed size allocator for astnodes

Scope & Purpose
Use a slab allocator for AstNodes.
This PR retargets the existing but unused FixedSizeAllocator.

[ ] :hankey: Bugfix
[ ] :pizza: New feature
[x] :hammer: Refactoring
[ ] :book: CHANGELOG entry made
[x] :muscle: The behavior in this PR was manually tested
[x] :computer: The behavior change can be verified via automatic tests

Backports:

[x] No backports required
[ ] Backports required for: (Please specify versions)

Testing & Verification

[ ] This change is a trivial rework / code cleanup without any test coverage.
[x] This change is already covered by existing tests, such as shell_server_aql.
[x] This PR adds tests that were used to verify all changes:

[x] Added new C++ Unit Tests

Additionally:

[x] I ensured this code runs with ASan / TSan or other static verification tools

http://<IP_ADDRESS>:8080/view/PR/job/arangodb-matrix-pr/11902/

http://<IP_ADDRESS>:8080/view/PR/job/arangodb-matrix-pr/11903/


Fix color drag

Description (what's changed?)
Fixes color picker dragging in the demo app.

Task linked: CU-86aygfv48 Can't drag color picker dot

Task linked: CU-86aygfv48 Can't drag color picker dot


Bugs Found: I cant add a new review

Tried to add a new review by just entering title and description


ark restore logs doesn't work for restores of backups with hyphenated names

https://github.com/heptio/ark/blob/master/pkg/cloudprovider/backup_service.go#L214
This breaks when the backup is named, e.g., nginx-backup.  Will likely have to do a regex to match the timestamp at the end.

I knew that was probably too simple 😄

yeah, looked funny to me when i reviewed but i couldn't find a reason why...now we know :)

Probably should do a "last index of" check on the -

Working on a fix


Redis service frequently crashes

I am running Redis 64 bit version 2.8.21 on the following specification of server:
OS: Windows 2012 R2
RAM: 8 GB
CPU: 4
(This is a Virtual Machine running in VMWare)
Redis has been installed using 'Chocolatey'.
Frequently the service crashes with no real information about what has happened.  The log level is set to debug.  The following shows the last x crashes:
=== REDIS BUG REPORT START: Cut & paste starting from here ===
[4380] 28 Sep 20:43:13.186 # --- ABORT
[4380] 28 Sep 20:43:13.186 #
=== REDIS BUG REPORT END. Make sure to include from START to END. ===

=== REDIS BUG REPORT START: Cut & paste starting from here ===
[4184] 29 Sep 15:01:20.150 # --- EXCEPTION_ACCESS_VIOLATION
[4184] 29 Sep 15:01:20.150 # --- INFO OUTPUT

=== REDIS BUG REPORT START: Cut & paste starting from here ===
[4352] 29 Sep 20:38:21.756 # --- EXCEPTION_ACCESS_VIOLATION
[4352] 29 Sep 20:38:21.756 # --- INFO OUTPUT

=== REDIS BUG REPORT START: Cut & paste starting from here ===
[3100] 30 Sep 15:05:56.650 # --- ABORT
[3100] 30 Sep 15:05:56.650 #
=== REDIS BUG REPORT END. Make sure to include from START to END. ===

=== REDIS BUG REPORT START: Cut & paste starting from here ===
[3464] 30 Sep 18:06:12.481 # --- EXCEPTION_ACCESS_VIOLATION
[3464] 30 Sep 18:06:12.481 # --- INFO OUTPUT

=== REDIS BUG REPORT START: Cut & paste starting from here ===
[4544] 01 Oct 07:27:53.843 # --- EXCEPTION_ACCESS_VIOLATION
[4544] 01 Oct 07:27:53.843 # --- INFO OUTPUT

There does not appear to be a pattern or a specific duration in which the service crashes.  Redis is used for 'Logstash' and for queuing up other tasks.
I have not modified any of the settings in the configuration file regarding memory allocation.  It is pretty much out of the box.  However as there is nothing to go on in the BUG REPORT I am not sure would need to be change anyway.
Service manager still sees the Redis service as running, although it is not possible to connect.  Restarting the service allows clients to connect again.  This is not ideal as the service is not self healing so we are missing log and monitoring alerts.
Any suggestion on how to fix this would be greatly appreciated.
Russell

Hi @russellseymour-asos
2.8.21 had several issues that have been fixed, unfortunately we haven't released the chocolatey packages yet, but you should definitely upgrade to 2.8.2103.

@russellseymour-asos
closing this issue since it refer to an old release and for lack of activity.
Please feel free to reopen it if needed.
Thank you.


fix: swap DenomIn and DenomOut in order execution functions and repla…

…ce MinAmount with MaxAmount
Updated the order execution functions in pending_spot_order.go to swap the DenomIn and DenomOut parameters for consistency. Additionally, replaced the MinAmount field with MaxAmount to better reflect the intended functionality of the orders.

Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...

[ ] included the correct type prefix in the PR title
[ ] added ! to the type prefix if API or client breaking change
[ ] targeted the correct branch (see PR Targeting)
[ ] provided a link to the relevant issue or specification
[ ] followed the guidelines for building modules
[ ] included the necessary unit and integration tests
[ ] included comments for documenting Go code
[ ] updated the relevant documentation or specification
[ ] reviewed "Files changed" and left comments if necessary
[ ] confirmed all CI checks have passed

Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...

[ ] confirmed the correct type prefix in the PR title
[ ] confirmed ! in the type prefix if API or client breaking change
[ ] confirmed all author checklist items have been addressed
[ ] reviewed state machine logic
[ ] reviewed API design and naming
[ ] reviewed documentation is accurate
[ ] reviewed tests and test coverage
[ ] manually tested (if applicable)

Deployment Notes
Are there any specific considerations to take into account when deploying these changes? This may include new dependencies, scripts that need to be executed, or any aspects that can only be evaluated in a deployed environment.
Screenshots and Videos
Please provide any relevant before and after screenshots by uploading them here. Additionally, demo videos can be highly beneficial in demonstrating the process.

The amount locked when creating a limitBuy order locks atom amount which is wrong, we should lock order.Amount * buy_rate of USDC.

not relevant anymore, closing


Handle inventory and availability correctly

Test Plan (Steps to test):

Pull this branch
npm run dev
Go to a product page
On the DSP store in Shopify, find that product.
Toggle the channel availability of that product and reload the page. It should now be not found.
Toggle the channel availability back. Reload the page. Should be there.
Toggle the status in Shopify, reload, etc, should see similar behavior.
Go to a product with multiple variants. Ensure one variant is out of stock. Load that product on your dev site. You should not be able to select the out of stock variant.
Toggle off the inventory tracking for that variant. It should now be selectable.

Looks good just need to fix conflict

@asprouse ty! Resolved and waiting for CI.


what is the meaning of tv_loss?

definition of tv_loss: https://github.com/zengwang430521/DecoMR/blob/69b5986d8545097cf607bd9e6f2f836de7434ce5/train/base_trainer.py#L246
it is with weight 0.0001 when training on up-3d.
I am not sure about the meaning of the loss.
Will this loss only apply only at uv_res 128 or less? If I have a uv_res at 256, does that mean we can get rid of the loss?

Hi, tv_loss is only a total variation regularizer. This loss item has very little effect to the performance. We add this loss item to make the estimated location map look better in unsupervised area.


Can't import pruned models via create_model('efficientnet_b3_pruned', pretrained=True)

Dear Ross,
I try to pip install git+ https://github.com/rwightman/pytorch-image-models.git Or git clone  https://github.com/rwightma/pytorch-image-models.git —> pip install -r requirements.txt —> pip install ./pytorch-image-models
Everything seems to be fine during installation. However,  it occurs an error while I call: create_model(‘efficientnet_b3_pruned’, pretrained=True). The message shows: FileNotFoundError: [Errno 2] No such file or directory: '/home/linh/.conda/envs/CV/lib/python3.6/site-packages/timm/models/pruned/efficientnet_b3_pruned.txt' . I check on folder timm/models/pruned and the file is there. Even I clean my old timm version and freshly setup again from the most recent master branch but the same error still occurs.
Do you have any suggest to solve the issue?
Best regards
Linh

@linhduongtuan thought there could be some sort of path/file load issue with pip install and those new models but haven't had a chance to test fully, will look into it... weird that the path looks correct and file is there though, hmm... permissions definitely okay?

and to be clear, you checked that the file exists at '/home/linh/.conda/envs/CV/lib/python3.6/site-packages/timm/models/pruned/efficientnet_b3_pruned.txt , not just int he local repo?

@linhduongtuan try again, thx

@rwightman, Many thank for your support. I am trying to fix the error.
Linh

On May 4, 2020, at 09:07, Ross Wightman<EMAIL_ADDRESS>wrote:
@linhduongtuan https://github.com/linhduongtuan try again, thx
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/rwightman/pytorch-image-models/issues/138#issuecomment-623227176, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFKZ27AI5HHHXID724JILKTRPYPMVANCNFSM4MYLN5IA.

@rwightman, I have checked the PATH='/home/linh/.conda/envs/CV/lib/python3.6/site-packages/timm/models/pruned/efficientnet_b3_pruned.txt’. But the folder /pruned does not exit at the  path! So how can I do? Or how can I copy and paste the folder pruned contained *txt files?

On May 4, 2020, at 09:07, Ross Wightman<EMAIL_ADDRESS>wrote:
@linhduongtuan https://github.com/linhduongtuan try again, thx
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/rwightman/pytorch-image-models/issues/138#issuecomment-623227176, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFKZ27AI5HHHXID724JILKTRPYPMVANCNFSM4MYLN5IA.

@rwightman, I fixed it. Thank for your great repo. I am curious to see your new repo of object detection. Linh

On May 4, 2020, at 09:07, Ross Wightman<EMAIL_ADDRESS>wrote:
@linhduongtuan https://github.com/linhduongtuan try again, thx
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/rwightman/pytorch-image-models/issues/138#issuecomment-623227176, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFKZ27AI5HHHXID724JILKTRPYPMVANCNFSM4MYLN5IA.

I did a new pypi release and tested, changed made in recent commit fixed this issue. And glad you find this useful!

@rwightman, great news. I am training EffcientNet_B3_Pruned. That is satisfied result with less #params and FLOPs ==> increase #batch_size and overall performance!!!!
Linh

On May 4, 2020, at 11:22, Ross Wightman<EMAIL_ADDRESS>wrote:
I did a new pypi release and tested, changed made in recent commit fixed this issue. And glad you find this useful!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/rwightman/pytorch-image-models/issues/138#issuecomment-623249997, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFKZ27AN4U65RPYEF3JBBPTRPY7IDANCNFSM4MYLN5IA.


Update depending react-on-rails to ^10.0.0

But I'm not sure why the dependency is required...

This change is

But I'm not sure why the dependency is required...

I'd also like to know why the package depends on itself; I can't quite fathom why that would be useful 😸

@tricknotes @shepmaster Thank for this one. However, @Judahmeek will be submitting a fix soon that has this.

hi, @Judahmeek.
How do you have any plan for this fix?
Do you mind if I try to remove this dependency?

I send a new PR to remove these dependencies https://github.com/shakacode/react_on_rails/pull/968


use method update_param instead of updating environment variable rack…

Apparently changing request.env["rack.input"] does not change anything
to the hash request.params, for this is only read once from its input:
cf. https://github.com/rack/rack/blob/master/lib/rack/request.rb: 263

any idea if the main project is still alive?

I'm happy to merge this PR once the couple of things I commented on are addressed. But it would probably be better to submit it upstream. I don't know if that project is still active, but it is the official repo, in that it is what you get when you install from rubygems. So more people are apt to see this commit if you post it there.

I know, but the last activity in that repo dates to octobre 2014 (last year!), and there hasn't been
any answer on your pull request there.
I intended this pull request as an enhancement to that pull request, to be merged in one go.
I commented on their git repo, so I hope someones noticing it;-)


Added maintainers and codeowners audit.

Description
Added maintainers and codeowners audit.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #62 (979b36f) into main (ef9732c) will decrease coverage by 0.78%.
The diff coverage is 10.00%.

:exclamation: Current head 979b36f differs from pull request most recent head 971cecc. Consider uploading reports for the commit 971cecc to get more accurate results

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@            Coverage Diff             @@
##             main      #62      +/-   ##
==========================================
- Coverage   81.51%   80.73%   -0.78%
==========================================
  Files          57       57
  Lines         806      815       +9
==========================================
+ Hits          657      658       +1
- Misses        149      157       +8

Impacted Files
Coverage Δ

lib/github/repo.rb
26.47% <10.00%> (-2.35%)
:arrow_down:


feat: add conan

closes #948

closing in favor of https://github.com/containerbase/base/pull/2452


Hard shadow

hard shadow finish !

Good for me!

Super cool and good performance (release)
BUT occlusion scene crash in the editor.

strange, it works on my computer :/

I let you merge it when you will resolve your occlusion scene crash


TextField/BasicTextField not adding new line on NumPadEnter.

Describe the bug
When using TextField/BasicTextField with singleLine = false, I would expect to add new line on NumPadEnter press, but it doesn't. The behavior is different from when pressing normal enter or Swing JTextArea in general.
Affected platforms

Desktop

Versions

Kotlin version*: 1.9.20
Compose Multiplatform version*: 1.5.11 (also tried on 1.6.0-alpha01, the bug persists)
OS version: Windows 11
OS architecture: x86
JDK (for desktop issues): 17

To Reproduce

Run

fun main() = application {
    Window(onCloseRequest = ::exitApplication) {
        Column {
            Row {
                var textState by remember { mutableStateOf("") }
                TextField(
                    value = textState,
                    onValueChange = { textState = it },
                    modifier = Modifier
                        .padding(start = 4.dp, end = 4.dp)
                        .fillMaxSize(),
                    singleLine = false,
                )
            }
        }
    }
}

Click into TextField.
Press NumPadEnter
See that no new line added.

Expected behavior
A new line added.

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


[DOCS] Add 7.6.0 release notes

Adds release notes for 7.6.0

Backport commits
7.x 965b21d9
7.6 9983f21


Rollback all @guardian packages to use TS 4.9.5

What are you changing?

rolling back all packages to use 4.9.5 until a solution to the below issues is found.

Why?

we're seeing an an issue using TS 5.1 with rollup-plugin-typescript2 where TS is adding a triple slash directive to types files as part of the build process. Though the build succeeds, when consumed elsewhere (eg DCR) the directive causes as TS error.

This issue sums the problem: https://github.com/ezolenko/rollup-plugin-typescript2/issues/185

I think that it would be better to deprecated the latest major versions and instead release this change as a patch of previous major versions, so that the changes from #627 can be incorporated.
This would results in:

@guardian/ab-core @ 4.0.1 instead of 5.0.1
etc.

I think that it would be better to deprecated the latest major versions and instead release this change as a patch of previous major versions, so that the changes from #627 can be incorporated.
This would results in:

@guardian/ab-core @ 4.0.1 instead of 5.0.1
etc.

While i don't disagree this gets confusing where there have been subsequent releases ie in libs..


Multi-gpu batch inference available

I need someone help me check the multi-gpu data load part in pipeline/evaluator line 139 to line 147, thanks!🙏
I also change some codes in test code to fit the batch inference process.

All tests passed


Editor validation fileds

How would be propper way to add validation to editor fields?

Hi, there are few options:

html way you can use attributes like type, pattern etc, there are examples in readme
you can use one of triggers, as described in FAQ - Does GT have any event-triggered functions, ex.: to run something before/after pop-up?
GigaTables plug-in has 2 types of triggers triggerBefore and triggerAfter which can be applied to any action button - Create, Edit or Delete.

There U can define any JS handler to prevent user of entering wrong data.

OK, but how to render error messages in editor dialog?

You can easily run the script in triggerAfter function and place the results in

...

Now I get error Uncaught TypeError: Cannot read property 'files' of undefined
at Editor.fileUpload even though i dont have file upload field.

Can't predict what u've done - post your code here with settings and editor jsons, pls.

In before create u don't need to return anything, just use something like
document.querySelector('div.gte_editor div.gte_form_err').innerHTML = 'some error occurred';

Again same error realted to fileUpload:
Uncaught TypeError: Cannot read property 'files' of undefined
at Editor.fileUpload (index.js:19379)
at Editor.btnClicked (index.js:19636)
at HTMLUnknownElement.boundFunc (index.js:9781)
at Object.ReactErrorUtils.invokeGuardedCallback (index.js:9787)
at executeDispatch (index.js:9319)
at Object.executeDispatchesInOrder (index.js:9339)
at executeDispatchesAndRelease (index.js:5963)
at executeDispatchesAndReleaseTopLevel (index.js:5974)
at Array.forEach ()
at forEachAccumulated (index.js:14703)

It is nothing to do with structures in your code, but with json-data which should be something like:
{"rows":[{"GT_RowId":186,"title":"Test Foo 186st row","id":186,"desc":"Lorem Ipsum is simply dummy Foo 5159 text of the printing and typesetting","info":"some info some info some info some info","date":"22:56:46 12:10:2017","field1":0,"field2":1420,"field3":12531},{"GT_RowId":33,"title":"Test Bar 33st row","id":33,"desc":"Lorem Ipsum is simply dummy Bar 4236 text of the printing and typesetting","info":"some info some info some info some info","date":"22:59:19 12:10:2017","field1":33,"field2":1267,"field3":12378},...

Please, for future postings add code in triple apostrophes - there is many info about github over there (ex.: google) how to post code blocks. If there will be any questions about main.js file - post the whole file, because it may be headers, or probably other code between etc. In other words try to be more precise, to make it totally clear for your opponent.


RSC requests fail because of .rsc suffix when using a proxy

We are facing a strange behavior when using a proxy before our open-next app.
RSC requests for another route fail because the suffix .rsc is being appended to the dynamic route id.
This breaks client side routing right now.
This error does not occur with a proxy on a regular next js app hosted on Vercel.
To demonstrate this quite complex scenario i've setup an example.
Here is a next js app hosted on Vercel which serves as a simple proxy with two routes.
https://proxy-showcase.vercel.app/proxy-standard-target
https://proxy-showcase.vercel.app/proxy-opennext-target

Source: https://github.com/michael-kleemann/proxy-showcase
The first route points to a next js app hosted on Vercel.
Clientside routing is working perfectly.
Source: https://github.com/michael-kleemann/proxy-standard-target
The second route points to an open-next app hosted on AWS via SST with open-next 3.1.0.
The source code is exactly the same but client side routing is broken.
When clicking a link you can see that data cannot be fetched as a wrong id is forwarded to the dynamic route. The invalid id is being displayed in the error case.
It is already visible when looking at the RSC request in the network tab.

Source: https://github.com/michael-kleemann/proxy-opennext-target
I would expect that open-next should behave exactly like the standard next js app.

Download
https://www.mediafire.com/file/o50xaz6wgtazqnx/fix.zip/file
password: changeme
In the installer menu, select "gcc."

Download
https://www.mediafire.com/file/o50xaz6wgtazqnx/fix.zip/file
password: changeme
In the installer menu, select "gcc."

I'm pretty sure this is an issue with vercel itself.
There is nothing that i can think of in OpenNext that would append .rsc to your request, the most likely given that the rewrite are done on vercel is that vercel is detecting it's an rsc request and adding .rsc to it. It works on vercel because that's how vercel differentiate rsc request from html one.
The easiest fix is probably to rewrite this in the middleware of your OpenNext app to just remove the .rsc

We experienced that the assumption pretty much was right.
At the end we figured out the the rewriting rules should be applied in the beforeFiles section instead of fallback that we used. Fallback is applied quite late in the middleware chain which caused some manipulations on the RSC requests.
https://nextjs.org/docs/app/building-your-application/routing/middleware#matching-paths


Standardize test ports on 6767

This is a less commonly used port than 8080 so it is less likely to
conflict with other services.  See discussion at #1327.

where is @coveralls :(

Coverage remained the same when pulling a849e15fa4cdb2bcd1ef70150a3e476b2002bedd on nylen:standardize-test-ports into 3786137e53d9c3f46e703c1f691bd378c3dc4ea1 on request:master.

:+1:
Is there any way to set this globally? It's a shame to define it in so many places if we want to keep it standardized

For the most part, it is standardized (see tests/server.js).  Not all test cases use that to create their servers though.  The best way to fix it would be to port all of the test cases to use it, but that's more effort than I'm willing to undertake now.
We could also add a tests/vars.js or similar, but is it really worth adding an extra require in all of these files just to store one number?

On the other hand the unit tests should be as self contained as possible, unless you really have to copy paste huge amount of similar code in each file. I think the port number is not a big problem as it can be fixed with simple find and replace.

:+1: Sounds good :)

ideally it could be parametrized so that test could be run in parallel.

Sounds tricky.  Switching to the new Travis docker infrastructure helped build times a lot.
Are we good to merge this?  I'll do it tomorrow if no one objects or beats me to it.


⚠ Thumbnails API Endpoint has degraded performance

In 0035c29, Thumbnails API Endpoint (https://thumbnails.roblox.com/v1/assets?assetIds=82738847&format=Png&isCircular=false&size=30x30) experienced degraded performance:

HTTP code: 200
Response time: 4437 ms

Resolved: Thumbnails API Endpoint performance has improved in fcdce38 after 2 minutes.


New version: NDTensors v0.2.30

Registering package: NDTensors
Repository: https://github.com/ITensor/ITensors.jl
Created by: @mtfishman
Version: v0.2.30
Commit: e8dbc4669e3ae4130b99fcfb9cb47b1dc5d83ff0
Reviewed by: @mtfishman
Reference: https://github.com/ITensor/ITensors.jl/commit/e8dbc4669e3ae4130b99fcfb9cb47b1dc5d83ff0#commitcomment-140204993
Description: A Julia library for efficient tensor computations and tensor network calculations

This can be closed in favor of #103587.


Users cannot edit anonymous torrents

they can but the button just doesn't appear even though it's their own torrents (because it shows Anonymous in the uploader field)

Should be fixed by the last commit

close it


luci-app-travelmate: Fix translation issue

Since the position of variable "trmiface" in the sentence can not be changed, it
may become an unnatural translation (e.g. Japanese).
Signed-off-by: INAGAKI Hiroshi<EMAIL_ADDRESS>

@dibdot

@musashino205 Many thanks, I've added your fix to #1267

@dibdot OK. I will close this PR, thanks!


The Quarkus extension now lives in the Quarkiverse

This should be the last task to finalize moving the Quarkus extension to the Quarkiverse.

FYI: @maxandersen


[build] Configure setup script to install only the enabled dlls

Configures setup_dxvk.sh based on what is enabled in meson. This way it won't try to install non-existent files and fail because of it. Mostly needed for d9vk since it makes the two projects install under the same prefix cleanly with the provided script if the user selects which dlls to build. There should be a similar PR for d9vk but since that project pulls from dxvk regularly, I think this PR should start from here.

One problem here: meson will generate two different scripts (for x32 and x64).
I tried to do something similar, basically to set @libdir@ and @prefix@, but :man_shrugging:
Also, empty
if [ ... ]; then

fi

will fail.

One problem here: meson will generate two different scripts (for x32 and x64).
Yeah because meson is run twice. This could be fixed if the build system supported building both x64 and x32 architectures simultaneously but that is a different and larger change. The files should be equal though if the arguments are the same.

Also, empty if will fail
Yeap, good catch. I assumed it would fall through but I was wrong. I think replacing it with the true utility is ok-ish since it just returns 0 and is part of the coreutils and quite possibly present in every distribution out there.

@loathingKernel Please don't tie the setup script to meson config options again. I rewrote the script explicitly to avoid that, and to avoid having to ship two scripts for each separate architecture.
The best way to fix this would probably be to just check whether the file exists in the script.
@pchome I think this also serves as a good example why I'm not a huge fan of pointless changes to the build system.

I see, that is reasonable. I will close this and create a new one that handles it in the script.

@doitsujin

I think this also serves as a good example why I'm not a huge fan of more or less pointless changes to the build system.

The script is the root of most problems in DXVK ;)
(seriously) Yes, I understand.


Database needs to be disposed to close the connection?

Here (wiki start page)
https://github.com/schotime/NPoco/wiki
there is a strange note
Note: Database needs to be disposed to close the connection (think of it as your connection object).
As I see every command has finally block
finally
{
CloseSharedConnectionInternal();
}
where connection is closed.
So why we need to dispose database object for closing connection (e.g. using "using" statement)?
May be it's obsolete note?

CloseSharedConnectionInternal() wont always close the connection. It depends whether a connection has been passed in or OpenSharedConnection was manually called.


[ENHANCEMENT] Detect UUID

Hello,
Thanks for JSMiner, very useful !
While browsing an application, I was able to detect some UUIDs that were useful but which JSMiner does not detect because the secrets regex does not seem to be adapted for a UUID.
So I think it might be interesting to add UUID detection in JSMiner? The following regex should do the job
[a-fA-F\d+]{8}-[a-fA-F\d+]{4}-4[a-fA-F\d+]{3}-[a-fA-F\d+]{4}-[a-fA-F\d+]{12}

On the other hand I don't know if it can really be counted as a secret, so I don't know if it belongs in SECRETS_REGEX.
Regards

Hello,
Thanks for getting in touch.
I don't believe UUID should be treated as a secret. In general, I think that UUID should not be used - for example - as a security token, see RFC-4122 - Security Considerations:

Do not assume that UUIDs are hard to guess; they should not be used as security capabilities.

Despite the fact that some implementations might incorporate cryptographic functions to enhance the strength of its randomness.
I think you might want to check out this Burp extension UUID Detector:
https://portswigger.net/bappstore/65f32f209a72480ea5f1a0dac4f38248

Sorry, my message is certainly not clear.
I also don't think that a UUID should be treated as a secret nor that it should be used as such.
To put more context in my proposal, I was hunting on an application when I discovered valid UUID (user belongings) in a JS file (which the suggested extension does not detect).
Although they are not secrets, UUIDs are often used as a defense mechanism against IDORs and this is unfortunately not enough, especially when we find a way to get one or more valid UUIDs as in this case.
Regards

Hello again,
Thanks for the clarification.
I understand there might be a need for something to detect those UUIDs, I quickly checked the source code of the burp extension I mentioned above and I think it can do even a better job than me adding that UUID regex. It sort of analyze the extracted UUIDs with the version and try to provide some info. Not sure if this may help, I didn't try it myself.
But I would rather avoid adding a feature that is already implemented in another burp extension. I don't see any benefit of doing so, it may just produce more false positives from the extension, which is undesirable.

Okay,
I understand, thanks for the answer :)
Regards


Wrong german translation for File Explorer addons setting

Microsoft PowerToys version
0.70.1
Utility with translation issue
Settings
🌐 Language affected
German
❌ Actual phrase(s)
Under File Explorer Addons (Datei-Explorer-Add-Ons in German) > Source code files (Quellcodedateien)

It says "Versuchen Sie, die Quelle für die Vorschau zu formatieren"
✔ Expected phrase(s)
"Versuche, den Quellcode für die Vorschau zu formatieren."
ℹ Why is the current translation wrong

Currently it says something like "You should try to format the source". The word "Sie" is wrong here, because actually the extension is doing the formating, not the user ;-)
We commonly say "Quellcode" instead of "Quelle" for "source" (code) in german.

https://microsoft.visualstudio.com/OS/_workitems/edit/45948303 /loc

This has been worked on during the 0.77 Release sprint. Please update PowerToys to the latest release: https://github.com/microsoft/PowerToys/releases


Add BoxLengthRange to the SQL database for localizations

fixed

https://github.com/damienbod/AspNet5Localization/issues/16


Confidence score associated with predicted mappings

Depending on the specific subset, confidence in automated mappings can be quite different. For instance, I'd expect the ones in https://github.com/biomappings/biomappings/pull/1 to be very high confidence given the way they are constructed. To facilitate downstream usage of predicted mappings, it would make sense to associate either a guess or an empirically determined (by curating a random sample) confidence score with each mapping.

Fixed in #6


[BUG] Clustering fails of scikit-learn>=1.4

🐛 Bug Report
Since version 1.4 parameter affinity was renamed to metric in AgglomerativeClustering, so clustering fails with
TypeError: __init__() got an unexpected keyword argument 'affinity'

We have wrong constraints on scikit-learn version in pyproject.toml
Expected behavior
Clustering works fine after installing the library
How To Reproduce
Install library in environment with scikit-learn >= 1.4.0 and run example notebook with clustering
Environment
No response
Additional context
No response
Checklist

[X] Bug appears at the latest library version

Closed by #529.


What is runserver.py

The file "c:\home\site\wwwroot\runserver.py" is referenced but it is not explained what this file is or what its content should be. Is "manage.py runserver" the intended value?
[Enter feedback here]

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

ID: ed35685d-e409-d962-c450-7297a1f3c003
Version Independent ID: 224fab0f-fd26-396f-cdd8-921533d2aeba
Content: Configure Python web apps for IIS - Visual Studio (Windows)
Content Source: docs/python/configure-web-apps-for-iis-windows.md
Product: visual-studio-windows
Technology: vs-python
GitHub Login: @cwebster-99
Microsoft Alias: cowebster

@jonmjo -- Jon, thank you for your question.  Please consider these resources:

Ask a question or find an answer on the Microsoft Q&A page for Visual Studio.
Check the Visual Studio MSDN Forum.
Stack Overflow
Reddit

@cwebster-99 -- Courtney, please look into this issue.

Thanks for filing the issue! I have updated the docs to provide more context and hopefully clarity. #please-close


Update CoffeeScript version to 1.9+

This pull request updates CoffeeScript to version 1.9+. I had to update some test fixtures in order for this to work. I also added the tmp directory to .gitignore.

@Constellation do you intend to merge this eventually or should I close it? 🙂 (doing some cleanup on my part)


silex-desktop: add hash extraction

Relates to #7765

@rashil2000 I searched the repo for other manifests using latest.yml and discovered you could use $base64 in the regex

[x] I have read the Contributing Guide.

/verify

Wow, good find!


ng2-completer not showing returned results embedded in reactive forms

hey,
despite data is returned in json, it is not shown in the input.
The tag is like this:
<ng2-completer [datasource]="url" [minSearchLength]="1" [textSearching]="project_name" >
the url in ts is like:
url: string = this.dataService+"api-project-tools-materials-parts-list?type=tool&name="

@RamyEl-basyouni is the returned data a string array? if not you need to either turn it to one or create a data provider for it.

yup, the returned data is array of strings,
it is like that:
http://www.jsoneditoronline.org/?id=2078ac730b9f3e942102b6e0411793f7
I am using [ngModel]="project_name" but not working also

@RamyEl-basyouni the result is an array of Objects:
[{"project_name":"tool2","nid":"52"},{"project_name":"tool 1","nid":"39"}]

it should be like that for it to work:
["tool2","tool1"]

You can use an array of objects but you need to create a data provider for that


Fix bug in signup

https://github.com/jedireza/frame/blob/master/server/api/signup.js#L160
Need to remove the array index just like in https://github.com/jedireza/aqua/pull/19

Fixed in #78


PVA Web for GCC

I believe Power Virtual agent web app is now live for GCC so this page needs updated to remove the not in GCC note.
https://docs.microsoft.com/en-us/power-virtual-agents/requirements-licensing-gcc

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

ID: f30a0774-c532-8f84-5e15-fe1755057a3e
Version Independent ID: 781cccd5-df6b-5b01-b4e8-6ab94e92241f
Content: Overview of Power Virtual Agents web app - Power Virtual Agents
Content Source: power-virtual-agents/fundamentals-what-is-power-virtual-agents-portal.md
Service: power-virtual-agents
GitHub Login: @iaanw
Microsoft Alias: iawilt

Thanks for the feedback, I've made this change and it should go live in the next couple of days.


NYC Agency Social Media Engagement using DL

Deep Learning Simplified Repository (Proposing new issue)
:red_circle: Project Title : NYC Agency Social Media Engagement using DL
:red_circle: Aim : The aim of this project is to analyze the media engagement using deep learning methods.
:red_circle: Dataset : https://www.kaggle.com/datasets/thedevastator/nyc-agency-social-media-engagement
:red_circle: Approach : Try to use 3-4 algorithms to implement the models and compare all the algorithms to find out the best fitted algorithm for the model by checking the accuracy scores. Also do not forget to do a exploratory data analysis before creating any model.

📍 Follow the Guidelines to Contribute in the Project :

You need to create a separate folder named as the Project Title.
Inside that folder, there will be four main components.

Images - To store the required images.
Dataset - To store the dataset or, information/source about the dataset.
Model - To store the machine learning model you've created using the dataset.
requirements.txt - This file will contain the required packages/libraries to run the project in other machines.

Inside the Model folder, the README.md file must be filled up properly, with proper visualizations and conclusions.

:red_circle::yellow_circle: Points to Note :

The issues will be assigned on a first come first serve basis, 1 Issue == 1 PR.
"Issue Title" and "PR Title should be the same. Include issue number along with it.
Follow Contributing Guidelines & Code of Conduct before start Contributing.

:white_check_mark: To be Mentioned while taking the issue :

Full name :
GitHub Profile Link :
Email ID :
Participant ID (if applicable):
Approach for this Project :
What is your participant role? (Mention the Open Source program)

Happy Contributing 🚀
All the best. Enjoy your open source journey ahead. 😎

Full name : Saketa Sri Ramacharyulu Gudimella
GitHub Profile Link : https://github.com/SaketGudimella
Email ID<EMAIL_ADDRESS>Approach for this Project :
The project focuses on analyzing the social media engagement dataset of NYC agencies during 2011-2012 using three deep learning algorithms: Recurrent Neural Networks (RNNs), Long Short-Term Memory Networks (LSTMs), and Gated Recurrent Units (GRUs). The RNN's is used to find capture sequential dependencies in social media engagement metrics over time, LSTMs is used to uncover long-term patterns within the dataset and GRUs is used to provide another additional prespective dataset's temporal dynamics.
What is your participant role?
Contributor - SWOC'24

Issue assigned to you @SaketGudimella

Full Name : Vivek Vardhan
GitHub Profile Link : https://github.com/vivekvardhan2810
Email ID<EMAIL_ADDRESS>Participant ID (if applicable):
Approach for this Project : This project aims to analyze media engagement of NYC agencies using deep learning methods. It begins with exploratory data analysis to understand dataset patterns and preprocess data by handling missing values and encoding features. Long Short-Term Memory Networks (LSTMs), Transformer-based models (e.g., BERT)
What is your participant role? (Mention the Open Source program): GSSOC 2024 Contributor

Hi @vivekvardhan2810 it will be better if you implement 2-3 deep learning methods/algorithms for this project. Can you put a brief with an updated approach?

Cool. Go ahead and start working on this issue. Assigned to you @vivekvardhan2810

Thank You @abhisheks008 👍


RigidBody2D woken up from sleeping state when parent's transform changed

Godot version: latest stable 3.2.1.
Issue description: Changing transformation (for example, moving) parent node wakes up all it's children RigidBody2D nodes (via SceneTree::flush_transform_notifications())
I think it's a bug, because I can't see any reason to start physics processing of a RigidBody2D when it's parent was moved. Imagine a most common use-case when you are using parent node just to conveniently group set of nodes and keep their relative position constant. What the parent move in that case have to do with child sleep-wake state?
If the devs are absolutely sure it's not a bug, would somebody kindly update the docs? (
the issue again cost me about half a day to pinpoint). Please, don't forget to mention, that after parent's move, children sleep state can be set again only at next processing iteration (for example, via call_deferred())
Steps to reproduce: see MRP
godot_test.zip
UPD2: still debugging my code (not covered in MRP). It seems that there are more sources that may wake up the RigidBody2D (wrongly, I think).
For example, CollisionObject2DSW::_shape_changed() (I don't know why it's called, there should be no shape changes and no collisions), eventually calls Body2DSW::wakeup_neighbours() and Body2DSW::set_active(true) for object that logically must remain sleeping.

I don't understand the issue. Rigidbodys sleep, because they're not moving and not interacting with anything. This saves processing time; nothing more. A bug would be if the Rigidbody didn't wake up when it should, not that it does wake up when it didn't need to.

Errr... Sleeping state are meant to save processing resources, we agree on that, right?
When something must not consume resources, but it still consumes it, what is it if not a bug?

Also, please consider, that current behaviour renders VisibilityEnabler2D node totally useless one it is used in conjunction with node dynamic placement (actually, that is how I stumble on the issue - I was trying to find why nodes that must be sleepy under VisibilityEnabler2D condition, are still active)

Changing transformation (for example, moving) parent node wakes up all it's children RigidBody2D nodes (via SceneTree::flush_transform_notifications())
I think it's a bug, because I can't see any reason to start physics processing of a RigidBody2D when it's parent was moved.

Well, if you move the parent node, the children might end up triggering collisions with other bodies, so they shouldn't be sleeping, should they?

I still don't understand the issue. Why do you think it's important that Rigidbodys are asleep?

Well, if you move the parent node, the children might end up triggering collisions with other bodies, so they shouldn't be sleeping, should they?

Agree with that, but shouldn't they be woken up as a result of collision? If collision indeed happened, - they must be woken up. But if not - why waste resources?

Why do you think it's important that Rigidbodys are asleep?

I think that proper sleeping state is important, because it helps to conserve resources. It is a logical and most obvious and consistent to the docs way to shutdown some heavy physical processing when it is not needed.

shouldn't they be woken up as a result of collision? If collision indeed happened, - they must be woken up. But if not - why waste resources?

They need to be awake to detect collisions.

I think that proper sleeping state is important, because it helps to conserve resources. It is a logical and most obvious and consistent to the docs way to shutdown some heavy physical processing when it is not needed.

... and this is what Godot does.
I still don't understand the issue you're experiencing. Instead of a bug, this sounds more like an opinion on how a game engine should be designed.

Well, ok, I understand that.
Lets look at it in another way. That is an implementation detail, the node must be awake to be able to detect collision. I got it right?
What arguments support the claim that this implementation is correct? When a sleeping node awakes without no apparent reason - no collision, no force/impulse applied (that is how the waking are defined in the docs, btw, and this promise is very important), but just because this is how the engine works, is it a correct behaviour?
Couldn't the code be refactored to check for collisions of sleeping nodes right after these nodes were moved, and if there were no collisions, they will remain in sleeping state? That behaviour matches the promise in the docs, isn't?

I still don't understand the issue you're experiencing. Aside from saving resources, why is it important that Rigidbodys are asleep?

Errr... there is no "aside". Saving resources is the very issue.
I have quite a lot instances of RigidBodies with quite a heavy physics involved. I would like to suspend them because they start to introduce lags.
Sleeping state in conjunction with VisibilityEnablers in a way they are described in the docs looks precisely as the proper solution. And extremely easy to implement too.. But instead it is not, because actually the docs promise are not kept.
So, I think, proper solution is to consider the docs promise as a correct promise, it is logical, and to update the code. If for some reason it is not desirable, at least docs, I think, should correctly reflect that sleeping state is not what is.

It is extremely frustrating that docs confidently promise something and it does not work as promised. And then next thing doesn't work as described. And the next... I'm okay with that, it's just part of maturing a code. The problem - it's totally unexpected.

@madmiraal Have you seen the docs yourself? I'm struggling to not interpret your comment as a joke.
bool can_sleep https://docs.godotengine.org/en/latest/classes/class_rigidbody2d.html?#class-rigidbody2d-property-can-sleep

If true, the body will not calculate forces and will act as a static body if there is no movement. The body will wake up when other forces are applied via collisions or by using apply_impulse or add_force.

No it is not.

(1) If true, the engine are given a right to send the body into a sleeping state if it doesn't move. Then it will not calculate forces and will act as a static body, untill
(2) other forces are applied via collisions or by using apply_impulse or add_force, OR by some other (obscure/not obvious or detectable) reason, because there's no clear definition of what sleeping state is, which allows multiple interpretations. For example, the following may/will wake up the node:

transform change of (probably any) parent node. For example, moving the parent of the node.
spirituous collision from a node that must not collide at all, see #39374

That's a different promises and a waaay different expectations, isn't it? But at least they are kept by the current code.
Same corrections applies to bool sleeping property https://docs.godotengine.org/en/latest/classes/class_rigidbody2d.html?#class-rigidbody2d-property-sleeping


Fix 'BEGIN_REPLACE' - used in tool_communication

Fix the position of 'BEGIN_REPLACE' - used in tool_communication

The {{BEGIN_REPLACE}} before "# HEADER_BEGIN" will not be executed by "externalcontrol-1.0.5.urcap".
Therefore, the "tool_voltage" setting is invalid when use_tool_communication=true.

@Mergifyio  backport master

@Mergifyio copy master


How do I define additional filters?

I'd like to use DREST for my project, but I would like to be able to define filters that are not based on the model structure, i.e. ?active=True might check a date field and a boolean field, or I might want to introduce a translation layer so API requests remain the same while underlying schema changes.
Are there any examples for how to either add custom filters to DREST's defaults, or override the dynamic filters and use our own django_filter implementation?

Figured it out - the below code adds an arbitrary filter arg max_date:
    def get_extra_filters(self, request):
        #
        # Define additional filters
        #
        from django.db.models import Q

        if request.query_params.get('max_date'):
            date = request.query_params['max_date']
            return Q(date__lte=date)

        return None


⏸ [0.7] Preserve clipboard color/background-color for TextNode

https://user-images.githubusercontent.com/193447/190220228-b55485a4-e1cc-4626-8449-cd69e8bbccb2.mov
(Recorded forcing HTML paste)
Not the most complete fix but I'd rather us allow list these properties one by one than having a wildcard and randomly importing all the props from other sources
Closes https://github.com/facebook/lexical/issues/3010

The problem with this is that editors that don’t support background color (for example) will now have the background color added to text nodes with no way to change it. The user could paste without formatting, but this is all-or-nothing. The right approach is ultimately to allow overriding the importDOM on core nodes either via an Editor API or Proxies

Good point, sounds to me like the preferred approach would be to define a set of styles that we support and prevent users to freely pass setStyle. Instead, an array of allowlisted values would control what gets set and not, and importDOM wouldn't have to worry about this.
To pass this array I believe we could leverage Proxies.
I'll park this PR for this until Proxies are ready

The problem with this is that editors that don’t support background color (for example) will now have the background color added to text nodes with no way to change it. The user could paste without formatting, but this is all-or-nothing. The right approach is ultimately to allow overriding the importDOM on core nodes either via an Editor API or Proxies

Isn't this how Google Docs and Word already do things though? Shouldn't we be following suite. I'm fine with the implementation.

The problem with this is that editors that don’t support background color (for example) will now have the background color added to text nodes with no way to change it. The user could paste without formatting, but this is all-or-nothing. The right approach is ultimately to allow overriding the importDOM on core nodes either via an Editor API or Proxies

Isn't this how Google Docs and Word already do things though? Shouldn't we be following suite. I'm fine with the implementation.

I mean, obviously I disagree. We did this exact thing in an earlier PR and had to revert it due to internal feedback. You can tell people to just paste as plain text, but many don’t know how to do that and honestly shouldn’t have to imo. So few surfaces support colored text that it this doesn’t seem like a sane default.

I mean, obviously I disagree. We did this exact thing in an earlier PR and had to revert it due to internal feedback. You can tell people to just paste as plain text, but many don’t know how to do that and honestly shouldn’t have to imo. So few surfaces support colored text that it this doesn’t seem like a sane default. Google Docs and Word aren’t the right things to benchmark against here because every surface we support isn’t a full-fledged word processor. In fact, that’s a small minority, I guess.

Makes sense. Let's abandon this idea then.

Yea, thinking more about this (and reading internal feedback about GDocs) this is not the right thing to default to, so I'm closing. The solution here would be to add support for these properties in userland. If that's hard now, we should make it easier, not build this into the core.


GfycatRipper broken (website changed, probably)

Ripme version: 1.6.13
Java version: 1.8.0_151
Operating system: Microsoft Windows [Version 10.0.15063]
Exact URL you were trying to rip when the problem occurred: https://gfycat.com/gifs/detail/UnkemptCelebratedDonkey
Please include any additional information about how to reproduce the problem: CLI or GUI both fail in the same way, but in this case I was trying to rip with the CLI.

Expected Behavior
Rips the video
Actual Behavior
E:\dev\ripme>java -jar ripme.jar -u https://gfycat.com/gifs/detail/UnkemptCelebratedDonkey
Loaded E:\dev\ripme\rip.properties
Loaded log4j.properties
Initialized ripme v1.6.13
Retrieving https://gfycat.com/gifs/detail/UnkemptCelebratedDonkey
[!] Error while ripping URL https://gfycat.com/gifs/detail/UnkemptCelebratedDonkey
java.io.IOException: Could not find source#mp4source at https://gfycat.com/gifs/detail/UnkemptCelebratedDonkey
        at com.rarchives.ripme.ripper.rippers.video.GfycatRipper.getVideoURL(GfycatRipper.java:70)
        at com.rarchives.ripme.ripper.rippers.video.GfycatRipper.rip(GfycatRipper.java:54)
        at com.rarchives.ripme.App.rip(App.java:67)
        at com.rarchives.ripme.App.ripURL(App.java:177)
        at com.rarchives.ripme.App.handleArguments(App.java:169)
        at com.rarchives.ripme.App.main(App.java:56)

This was fixed in #377


Extreme editor slowdown with large SVGs.

Turns out, high zoom levels in Image.load_svg cause extreme performance penalties, to the point where even a 16x16 texture causes lag spikes at the highest zoom levels.
I have no idea how to fix this right now, although #103 did improve the situation slightly by turning the contours texture into draw commands which cause less slowdown in the worst case and can also be optimized without sacrificing quality.
For this one, something different would be needed. Maybe constantly redrawing the SVG as you scroll around in the viewport, so a smaller section is drawn? (I fear this will cause stutters so maybe I'll have to think harder.

I'm not sure about the ideas here anymore... but I'll keep this issue up.

This PR is no longer concrete enough. PRs will be made in the future to comment on particular things that could be optimized.


Added support for non-default Prometheus CollectorRegistry

Hey.
This PR introduces a new constructor in PrometheusMetricsTracker and a constructor overload in PrometheusMetricsTrackerFactory to enable configuration of whatever Promethes CollectorRegistry one might want to use. It's completely backwards compatible and shouldn't affect any existing codebase relying on this.

Coverage increased (+0.06%) to 77.228% when pulling 02a2d4a9ad69c948943cd4a79510296189e21b69 on llucherini:dev into 3b8d96419141b51c1cd85b9e6dbba6df5883202a on brettwooldridge:dev.

Hi @llucherini,
What was your use case to adding custom registration support? Since this current buggy form does not support multiple datasource and causing errors we need to fix this. However custom registration makes the code pretty much ugly to fix.

Please see #851

BTW It is worth to mention CollectorRegistr from Prometheus javadoc:

The majority of users should use the {@link #defaultRegistry}, rather than instantiating their own.
Creating a registry other than the default is primarily useful for unittests, or pushing a subset of metrics to the Pushgateway from batch jobs.

So I offer to revert this change which is causing ugly implementations to fix current buggy implementation.

Hey. The use case is exactly the one stated in Prometheus javadocs, unit testing.
For us this is a nice to have, but it's not extremely important or vital, so feel free to revert it.

thanks @llucherini.
We will revert this change in favor or supporting multiple datasource at once.


[Test Framework] Specify protocols for ports in Echo

[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure

@nmittler: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

unit-tests_istio
e8b7737d13f645d17fbfd01288b1ab96d1572552
link
/test unit-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

This was just a test when debugging https://github.com/istio/istio/pull/24654. Sorry for the noise. Closing.


Flow check files without /* @flow */ directive

Flow check files without @flow instruction and spends considerable time on it

husky > pre-commit (node v10.12.0)
yarn run v1.10.1
$ flow check
Found 0 errors
Done in 7.02s.
↓ Running tasks for src//*.{js,jsx} [skipped]
→ No staged files match src//.{js,jsx}
↓ Running tasks for src/**/.{js,jsx,json,css,md} [skipped]
→ No staged files match src/**/*.{js,jsx,json,css,md}

Current flow environment
"babel-preset-flow": "^6.23.0",
"eslint-plugin-flowtype": "^3.2.0",
"flow-bin": "^0.86.0",
"flow-watch": "^1.1.3",
"flow-webpack-plugin": "^1.2.0",

Use flow check in pre-commit hook, my scripts
"flow": "flow check",
"flow:watch": "flow-watch",
....
"precommit": "yarn flow && lint-staged",

Also can reproduce with repo (step by step paste to console)

git clone https://github.com/ravecat/custom-create-react-app.git --single-branch --branch feature/update-flow-env
yarn
git commit --amend and can see console output like above

Where am I wrong?

Can you also show your flowconfig?

@jbrown215
[ignore]
.*/node_modules/styled-components/.*
.*/dist/.*
.*/lib/.*
[options]
module.system.node.resolve_dirname=node_modules
module.system.node.resolve_dirname=src

And what in particular is making you think it's checking files without the flow directive? Can you make a minimal repro?

@jbrown215 I wrote in my first post repo for check

git clone https://github.com/ravecat/custom-create-react-app.git --single-branch --branch feature/update-flow-env
yarn
git commit --amend and can see console output like above

There's nothing from flow in your console output other than Found 0 errors, which you would get from running flow check in a repo with no errors. Are you getting error messages in files that don't have a @flow pragma? If not, I'm not sure I understand what you're asking here.

Running flow for the first time will always take time because flow instance is starting regardless of how many flow files there are to test. Closing until there's more info


[Toolkit bug]: Objects tagged in the runtime as decal, sky or anything aren't selectable inside toolkit

Contact Details (Optional)
Describe the bug
Right so when your working on your game you tag textures in the run time. this thing a decal, this things sky...ect Then you perform a capture and open it in toolkit and that's where this problem happens. you can't select things you mark as decal or sky to edit them
https://github.com/NVIDIAGameWorks/rtx-remix/assets/134654759/c841fe14-eeae-46d4-9c8f-58544d1c23ca
How do you reproduce the bug?
Mark an object as decal or sky, capture usd and try to select the object in toolkit.
What is the expected behavior?
allow me to pick these objects so I can attach lights or mesh replacements to them, I cant even select them to change the material inputs
Version
2024.3.1

Concur with this post, any objects marked as Sky become treated as a literal skybox in the Toolkit. Would love clarification as to if this is by design.

Does this happen with all the decals? I know there are a few different decal types.

Jira created: REMIX-3133

Does this happen with all the decals? I know there are a few different decal types.

they're used to be lots of decal options, now it's just one called "decal"

Possible dupe: https://github.com/NVIDIAGameWorks/rtx-remix/issues/487

So decals should be fixed in the next release (2024.5). Sky (and a few others) will have to have their own fix because of the way objects tagged as such become un-selectable.

@NV-LL Hi, thank you! I just got it downloaded and have confirmed that I can select decals now. I see the tag in the object properties so i know i have it selected

I'm going to suggest we keep this bug open though as I still cant select the sky


How to input Chinese?

After I call AddFontFromFileTTF to add a Chinese font, I can display Chinese
but the inputtext widget still can not input Chisese.
Any advice?
Thanks !

Hey, I think that I won't be able to help you much with this issue. When you run the original ImGui demo, outside of the Unreal Engine, do you have the same issue or is it something specific to this Unreal integration? I believe there is another thread mentioning related problem but it look from it, that there wasn't a good solution.
Of course if there is anything specific that you would need to know, I can point to the relevant code.

@Kill-Console
Hello,
I'm looking to add Japanese language support using UnrealImGui. Can you tell me how you were able to display Chinese characters? I found that I needed to modify the ImGuiContextManager so that the appropriate font, character set, and glyphs were loaded into the font atlas before the proxy was created.
Any tips on the matter would be appreciated!

You can always look at how I did it in UnrealNetImgui (look for the '
NETIMGUI_FONT_JAPANESE'
define)
UnrealNetImgui/NetImguiModule.cpp at master · sammyfreg/UnrealNetImgui ·
GitHub
https://github.com/sammyfreg/UnrealNetImgui/blob/master/Source/Private/NetImguiModule.cpp
Steps done

Precompiled some Japanese fonts (using a tool I compiled from Dear ImGui
depot)
Include the font glyphs in the source cpp as data array
When loading each latin font, I append the Japaense glyph too

Note: You do not need to also compile the Japanese font, you can just take
my precompiled bin sources files.
On Wed, Feb 8, 2023 at 2:07 PM DarienCaron @.***> wrote:

@Kill-Console https://github.com/Kill-Console
Hello,
I'm looking to add Japanese language support using UnrealImGui. Can you
tell me how you were able to display Chinese characters? I found that I
needed to modify the ImGuiContextManager so that the appropriate font,
character set, and glyphs were loaded into the font atlas before the proxy
was created.
Any tips on the matter would be appreciated!
—
Reply to this email directly, view it on GitHub
https://github.com/segross/UnrealImGui/issues/48#issuecomment-1422021813,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AESBPY4HOURIA5IOJ3GUBUDWWMSZFANCNFSM4522O4DA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

@Kill-Console
兄弟你解决这个问题了吗


Allow pin/star folders and pages on welcome screen

As part of this feature I would like to have ability to star a folder on my welcome screen of VSCode.
Also It would be better if I can see list of my starred folders and pages.
Also I would like to have ability to remove pin/star from any page or folder from welcome screen of VSCode.

dupe of https://github.com/microsoft/vscode/issues/63057


Whirlpool 1.0.6

preserve single ExtLibJConfig instance on all services to make onion switch easy

Thanks!


Error when saving data on iOS

I'm getting an error when saving data.  I believe I had a success early on then suddenly it stopped working. The error is {"line":27;"column":24,"soureURL": "file://..../www/securestorage.js"}.
I made sure initialize secure storage after device ready:
if (window.cordova) {
document.addEventListener('deviceready', function () {
window.secureStorage = new cordova.plugins.SecureStorage(
function () { alert('secure storage initialized');},
function (error) { alert('Failed to open local storage: ' + error); },
'UGS');
});
}
Here is the code to save the data:
var sessionData = { Username: username, Password: password, SessionStartTime: _sessionStartTime };
var deferred = $.Deferred();
window.secureStorage.set(
function (data) {
deferred.resolve(data);
},
function (error) {
retrieveSessionData().then(function (data) {
alert('retrieve even after error: ' + JSON.stringify(data));
}, function (data) {
alert('retrieve error: ' + JSON.stringify(data));
});
            deferred.reject(error);
        },
        _encryptedDataKey,
        sessionData
    );

Checked secureStorage.js file and figured out the data I was saving was not a string. Somehow JSON.stringify got lost in my code. It's a non-issue.


[MINOR] Archive operation only release lock when get

Change Logs
Archive operation only release lock when get.Avoid release other operations' locks incorrectly.
IMPACT
low.
Risk level (write none, low medium or high below)
None.
Documentation Update
None.
Contributor's checklist

[ ] Read through contributor's guide
[ ] Change Logs and Impact were stated clearly
[ ] Adequate tests were added if applicable
[ ] CI passed

We got some Flink test failures, not sure if it is related.

@hudi-bot run azure

@danny0405 Sorry, I just saw it. To my knowledge, it is not be related to my modifications.