rancher server 's memory usage increase too large

Rancher Versions:
Server:1.4.0
healthcheck:0.2.3
ipsec:0.0.4
network-services:0.0.10
scheduler:0.4.0
Docker Version:
1.12.6
OS and where are the hosts located? (cloud, bare metal, etc):
CentOS 7.3 with kernel 4.4.22 on Aliyun ECS
Setup Details: (single node rancher vs. HA rancher, internal DB vs. external DB)
single node, Aliyun RDS, IOPS 600
Environment Type: (Cattle/Kubernetes/Swarm/Mesos)
Cattle
Steps to Reproduce:
I upgrade rancher version from 1.1.4 to 1.3.3, and upgrade docker version from 1.2.0 to 1.2.6.
after that I upgrade rancher version to 1.4.0.
Results:
my rancher server's memory usage increase from 512m to 6GB, and it is still increasing. (I set -m 8GB to this container)
When I enter to the container, I find that it is the java progress cause this.
The progress:
java -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -Xms128m -Xmx4g -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/lib/cattle/logs -Dlogback.bootstrap.level=WARN -cp /usr/share/cattle/f7a48ecb251f47be0327fa235781109c:/usr/share/cattle/f7a48ecb251f47be0327fa235781109c/etc/cattle io.cattle.platform.launcher.Main
Current logs:
2/9/2017 10:27:48 AMtime="2017-02-09T02:27:48Z" level=info msg="Shutting down backend df1cc4c5-8062-4e27-8a1e-e92330b3ce43. Connection closed because: websocket: close 1006 unexpected EOF."
2/9/2017 10:27:48 AMtime="2017-02-09T02:27:48Z" level=info msg="Removed backend. Key: df1cc4c5-8062-4e27-8a1e-e92330b3ce43. Session ID edaf8884-7407-4b38-9fbc-407081c1d922 ."
2/9/2017 10:27:50 AMtime="2017-02-09T02:27:50Z" level=info msg="Shutting down backend 58635ffb-ea07-4039-82f1-ce50350c1488. Connection closed because: websocket: close 1006 unexpected EOF."
2/9/2017 10:27:50 AMtime="2017-02-09T02:27:50Z" level=info msg="Removed backend. Key: 58635ffb-ea07-4039-82f1-ce50350c1488. Session ID 557dccbc-c210-4aef-9695-c19068ea3eb5 ."
2/9/2017 10:27:56 AMtime="2017-02-09T02:27:56Z" level=info msg="Handling backend connection request."
2/9/2017 10:27:56 AMtime="2017-02-09T02:27:56Z" level=info msg="Registering backend for host df1cc4c5-8062-4e27-8a1e-e92330b3ce43 with session ID be41c6d5-151c-4cd8-ad0d-8c476fd219bf."
2/9/2017 10:27:57 AMtime="2017-02-09T02:27:57Z" level=info msg="Handling backend connection request."
2/9/2017 10:27:57 AMtime="2017-02-09T02:27:57Z" level=info msg="Registering backend for host 58635ffb-ea07-4039-82f1-ce50350c1488 with session ID b02cf5c5-87ec-4d81-a358-8390a973f7dd."
2/9/2017 10:27:57 AMtime="2017-02-09T02:27:57Z" level=info msg="Exiting go-machine-service"
2/9/2017 10:27:57 AMtime="2017-02-09T02:27:57Z" level=info msg="Shutting down backend 9e46e80f-f60e-43df-9c95-dda158c8723d. Connection closed because: websocket: close 1006 unexpected EOF."
2/9/2017 10:27:57 AMtime="2017-02-09T02:27:57Z" level=info msg="Removed backend. Key: 9e46e80f-f60e-43df-9c95-dda158c8723d. Session ID 55b84997-6e13-4206-a313-1a3d51a44325 ."
2/9/2017 10:27:57 AMtime="2017-02-09T02:27:57Z" level=info msg="Shutting down backend e5f3e851-1d8e-45e3-b648-e706853aa5ef. Connection closed because: websocket: close 1006 unexpected EOF."
2/9/2017 10:27:57 AMtime="2017-02-09T02:27:57Z" level=info msg="Removed backend. Key: e5f3e851-1d8e-45e3-b648-e706853aa5ef. Session ID 795c876c-9c2d-4d04-afdc-88749568600a ."
2/9/2017 10:27:58 AMtime="2017-02-09T02:27:58Z" level=info msg="Setting log level" logLevel=info
2/9/2017 10:27:58 AMtime="2017-02-09T02:27:58Z" level=info msg="Starting go-machine-service..." gitcommit=v0.35.0
2/9/2017 10:27:58 AMtime="2017-02-09T02:27:58Z" level=info msg="Waiting for handler registration (1/2)"
2/9/2017 10:27:59 AMtime="2017-02-09T02:27:59Z" level=info msg="Initializing event router" workerCount=10
2/9/2017 10:27:59 AMtime="2017-02-09T02:27:59Z" level=info msg="Connection established"
2/9/2017 10:27:59 AMtime="2017-02-09T02:27:59Z" level=info msg="Starting websocket pings"
2/9/2017 10:27:59 AMtime="2017-02-09T02:27:59Z" level=info msg="Waiting for handler registration (2/2)"
2/9/2017 10:28:00 AMtime="2017-02-09T02:28:00Z" level=info msg="Initializing event router" workerCount=10
2/9/2017 10:28:00 AMtime="2017-02-09T02:28:00Z" level=info msg="Connection established"
2/9/2017 10:28:00 AMtime="2017-02-09T02:28:00Z" level=info msg="Starting websocket pings"
2/9/2017 10:28:00 AMtime="2017-02-09T02:28:00Z" level=info msg="Installing builtin drivers"
2/9/2017 10:28:00 AMtime="2017-02-09T02:28:00Z" level=info msg="Downloading all drivers"
2/9/2017 10:28:00 AMtime="2017-02-09T02:28:00Z" level=info msg="Done downloading all drivers"
2/9/2017 10:28:00 AMtime="2017-02-09T02:28:00Z" level=info msg="Shutting down backend 7fa095ea-f853-48cf-adf0-ca806aa65957. Connection closed because: websocket: close 1006 unexpected EOF."
2/9/2017 10:28:00 AMtime="2017-02-09T02:28:00Z" level=info msg="Removed backend. Key: 7fa095ea-f853-48cf-adf0-ca806aa65957. Session ID 696ec44c-91c3-4905-bc2a-c7354070740f ."
2/9/2017 10:28:02 AMtime="2017-02-09T02:28:02Z" level=info msg="Shutting down backend 50a2f634-6b61-4162-90b0-dd6c72e4596d. Connection closed because: websocket: close 1006 unexpected EOF."
2/9/2017 10:28:02 AMtime="2017-02-09T02:28:02Z" level=info msg="Removed backend. Key: 50a2f634-6b61-4162-90b0-dd6c72e4596d. Session ID f231a4cf-88c8-4b3c-8999-9211700ef7e7 ."
2/9/2017 10:28:02 AMtime="2017-02-09T02:28:02Z" level=info msg="Shutting down backend 0f979d7f-9f9d-4729-b613-17ea9a06d1b1. Connection closed because: websocket: close 1006 unexpected EOF."
2/9/2017 10:28:02 AMtime="2017-02-09T02:28:02Z" level=info msg="Removed backend. Key: 0f979d7f-9f9d-4729-b613-17ea9a06d1b1. Session ID 6fd48204-acbd-4226-9ed9-f86787ca963f ."
2/9/2017 10:28:02 AMtime="2017-02-09T02:28:02Z" level=info msg="Shutting down backend 3befc42f-2d1d-4749-87c2-3ec263eec0d2. Connection closed because: websocket: close 1006 unexpected EOF."
2/9/2017 10:28:02 AMtime="2017-02-09T02:28:02Z" level=info msg="Removed backend. Key: 3befc42f-2d1d-4749-87c2-3ec263eec0d2. Session ID dd285281-4aa9-4b47-a5e5-68c72791b4dc ."
2/9/2017 10:28:03 AMtime="2017-02-09T02:28:03Z" level=info msg="Handling backend connection request."
2/9/2017 10:28:03 AMtime="2017-02-09T02:28:03Z" level=info msg="Registering backend for host 9e46e80f-f60e-43df-9c95-dda158c8723d with session ID 0e63541f-0b46-4847-9a1c-0e998f7f1844."
2/9/2017 10:28:04 AMtime="2017-02-09T02:28:04Z" level=info msg="Handling backend connection request."
2/9/2017 10:28:04 AMtime="2017-02-09T02:28:04Z" level=info msg="Registering backend for host e5f3e851-1d8e-45e3-b648-e706853aa5ef with session ID cdd53422-b060-40a9-8da3-997f42ac72fc."
2/9/2017 10:28:05 AMtime="2017-02-09T02:28:05Z" level=info msg="Shutting down backend de8ae5ed-95f3-45be-a552-b8b5f153969d. Connection closed because: websocket: close 1006 unexpected EOF."
2/9/2017 10:28:05 AMtime="2017-02-09T02:28:05Z" level=info msg="Removed backend. Key: de8ae5ed-95f3-45be-a552-b8b5f153969d. Session ID 1a1918a0-f55e-4c51-8d17-da7829d1c957 ."
2/9/2017 10:28:06 AMtime="2017-02-09T02:28:06Z" level=info msg="Handling backend connection request."
2/9/2017 10:28:06 AMtime="2017-02-09T02:28:06Z" level=info msg="Registering backend for host 7fa095ea-f853-48cf-adf0-ca806aa65957 with session ID 02d5b3b3-9253-4ac4-b2ba-3677dacc56df."
2/9/2017 10:28:07 AMtime="2017-02-09T02:28:07Z" level=info msg="Exiting rancher-compose-executor" version=v0.12.2
2/9/2017 10:28:08 AMtime="2017-02-09T02:28:08Z" level=info msg="Starting rancher-compose-executor" version=v0.12.2
2/9/2017 10:28:08 AMtime="2017-02-09T02:28:08Z" level=info msg="Handling backend connection request."
2/9/2017 10:28:08 AMtime="2017-02-09T02:28:08Z" level=info msg="Registering backend for host 50a2f634-6b61-4162-90b0-dd6c72e4596d with session ID acaf725a-0cd3-467a-90b9-426e21ef125e."
2/9/2017 10:28:08 AMtime="2017-02-09T02:28:08Z" level=info msg="Handling backend connection request."
2/9/2017 10:28:08 AMtime="2017-02-09T02:28:08Z" level=info msg="Registering backend for host 3befc42f-2d1d-4749-87c2-3ec263eec0d2 with session ID 2567d4cd-bde5-4476-bab8-9b3b4470df59."
2/9/2017 10:28:09 AMtime="2017-02-09T02:28:09Z" level=info msg="Handling backend connection request."
2/9/2017 10:28:09 AMtime="2017-02-09T02:28:09Z" level=info msg="Registering backend for host 0f979d7f-9f9d-4729-b613-17ea9a06d1b1 with session ID d5e73953-a0d7-46b5-b1c5-c2a236a7bba3."
2/9/2017 10:28:10 AMtime="2017-02-09T02:28:10Z" level=info msg="Initializing event router" workerCount=10
2/9/2017 10:28:10 AMtime="2017-02-09T02:28:10Z" level=info msg="Connection established"
2/9/2017 10:28:10 AMtime="2017-02-09T02:28:10Z" level=info msg="Starting websocket pings"
2/9/2017 10:28:11 AMtime="2017-02-09T02:28:11Z" level=info msg="Handling backend connection request."
2/9/2017 10:28:11 AMtime="2017-02-09T02:28:11Z" level=info msg="Registering backend for host de8ae5ed-95f3-45be-a552-b8b5f153969d with session ID 7a6d7314-1afa-48d3-8b3c-c21db43d884a."
2/9/2017 12:17:10 PMtime="2017-02-09T04:17:10Z" level=error msg="Failed to pull the catalog from git repo https://git.rancher.io/community-catalog.git, error: exit status 1"
2/9/2017 12:17:10 PMtime="2017-02-09T04:17:10Z" level=info msg="Will not refresh the catalog since Pull Catalog faced error: exit status 1"
2/9/2017 1:10:11 PMtime="2017-02-09T05:10:11Z" level=error msg="Failed to pull the catalog from git repo https://git.rancher.io/rancher-catalog.git, error: exit status 1"
2/9/2017 1:10:11 PMtime="2017-02-09T05:10:11Z" level=info msg="Will not refresh the catalog since Pull Catalog faced error: exit status 1"

Yep, I have the same issue after 1.4 upgrade. My Rancher server instance is almost unusable.

Are you running HA setup or not?  If you could please share what admin->processes->summary and pools (only on non-HA) pages show that would help.

Non-HA setup, nothing suspicious in the admin->processes->summary and pools . As I've said, upping memory worked for me. With 1GB VM was crawling due to heavy swapping.
Does v1.4.0 has higher memory requirements and docs have to be updated or it's something that can be fixed?

@beatcracker There were some core changes that were made that may have impacted memory.  We are looking at it.  It would be considered a bug if the memory needs are higher.

I'm back, Rancher ate my RAM again. Here is the top from the rancher/server container:
root@30c7757836f2:/# top -o %MEM -c
top - 22:40:11 up 7 days,  9:20,  0 users,  load average: 0.78, 1.48, 1.66
Tasks:  14 total,   1 running,  13 sleeping,   0 stopped,   0 zombie
%Cpu(s): 17.3 us,  4.3 sy,  0.0 ni, 77.2 id,  0.1 wa,  0.0 hi,  1.2 si,  0.0 st
KiB Mem:   1987912 total,  1946148 used,    41764 free,       40 buffers
KiB Swap:  2097148 total,   127172 used,  1969976 free.   360764 cached Mem

  PID USER      PR  NI    VIRT    RES    SHR S %CPU %MEM     TIME+ COMMAND
    7 root      20   0 3274356 788492   8640 S  0.0 39.7   1554:21 java -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnable+
   23 mysql     20   0 1041492 487740   4148 S  0.0 24.5 618:25.87 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql +
  163 root      20   0  128764  13772   3632 S  0.0  0.7 168:54.51 websocket-proxy
  131 root      20   0  307408  11924   2928 S  0.0  0.6  27:53.48 rancher-catalog-service -configFile repo.json -refreshInt+
61770 root      20   0  195748   7904    332 S  0.0  0.4   0:08.07 go-machine-service
61771 root      20   0   16940   4840    580 S  0.0  0.2   0:04.12 rancher-compose-executor
21070 root      20   0   19804   3884   3376 S  0.0  0.2   0:00.03 bash
21107 root      20   0   21484   2792   2436 R  0.0  0.1   0:00.00 top -o %MEM -c
  186 root      20   0  110604   2752    264 S  0.0  0.1   0:15.25 rancher-auth-service
  162 root      20   0   26144     44      0 S  0.0  0.0   0:00.44 secrets-api server --enc-key-path .
    1 root      20   0     192      4      0 S  0.0  0.0   0:08.27 /usr/bin/s6-svscan /service
    5 root      20   0     192      0      0 S  0.0  0.0   0:00.00 s6-supervise cattle
    6 root      20   0     192      0      0 S  0.0  0.0   0:00.00 s6-supervise mysql
  164 root      20   0   29948      0      0 S  0.0  0.0   0:00.44 webhook-service

Is there a way to debug why it needs much more RAM now? I've been running previous versions of Rancher on VM with 1GB of memory and never had any issues.

Rancher did it again:
Tasks: 136 total,   1 running, 135 sleeping,   0 stopped,   0 zombie
%Cpu(s): 18.0 us,  4.5 sy,  0.0 ni, 76.2 id,  0.1 wa,  0.0 hi,  1.2 si,  0.0 st
KiB Mem :  1987912 total,    20236 free,  1714720 used,   252956 buff/cache
KiB Swap:  2097148 total,  1717104 free,   380044 used.   179196 avail Mem

  PID USER      PR  NI    VIRT    RES    SHR S %CPU %MEM     TIME+ COMMAND
29912 root      20   0 3337200 1.009g      0 S  0.0 53.2   3668:08 java -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -Xms128m -Xmx1g -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/lib/cattle/logs -Dlogback.bootstrap.lev+
29928 102       20   0 1050364 427152   1708 S  0.0 21.5   1545:45 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/mysql/plugin --user=mysql --log-error=/var/log/mysql/error.log --pid-file=/var/run/mysqld+

I'm probably going to make a cron job restarting rancher/server container every 24 hours until this is fixed.

@beatcracker Can you please try 1.5.1

@ibuildthecloud Upgraded to 1.5.1. I'll let it run for a while and let you know how it works out.

Rancher 1.5.1, running for two days:
top - 11:51:25 up 2 days, 23:38,  0 users,  load average: 0.02, 0.18, 0.45
Tasks:  13 total,   1 running,  12 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.7 us,  0.7 sy,  0.0 ni, 98.7 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem:   1995404 total,  1971816 used,    23588 free,        0 buffers
KiB Swap:  2097148 total,    78484 used,  2018664 free.   394776 cached Mem

  PID USER      PR  NI    VIRT    RES    SHR S %CPU %MEM     TIME+ COMMAND
    7 root      20   0 3226464 1.007g   2404 S  0.3 52.9 656:30.09 java -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -+
   23 mysql     20   0<PHONE_NUMBER>96      0 S  0.0 11.0 349:08.16 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --p+
  150 root      20   0  142620  11152   3316 S  0.0  0.6   0:46.17 rancher-catalog-service --config repo.json --refresh-interva+
  198 root      20   0  125384   6736    764 S  0.0  0.3  42:30.31 websocket-proxy
24563 root      20   0  195656   5704    596 S  0.0  0.3   0:08.16 go-machine-service
24570 root      20   0   17068   4400      0 S  0.0  0.2   0:04.28 rancher-compose-executor
28683 root      20   0   21472   2852   2520 R  0.0  0.1   0:00.04 top -o %MEM -c
  214 root      20   0  112712   2704      0 S  0.0  0.1   0:05.91 rancher-auth-service
  218 root      20   0   26144    128     36 S  0.0  0.0   0:00.19 secrets-api server --enc-key-path .
  213 root      20   0   27324     80      0 S  0.0  0.0   0:00.17 webhook-service
    1 root      20   0     188     16      0 S  0.0  0.0   0:03.36 /usr/bin/s6-svscan /service
    5 root      20   0     188      0      0 S  0.0  0.0   0:00.00 s6-supervise cattle
    6 root      20   0     188      0      0 S  0.0  0.0   0:00.00 s6-supervise mysql

I'll keep container running to see if it hits 2Gb limit.

Rancher 1.5.1 running for 11 days:
 top -o %MEM -c in rancher/server container
top - 15:40:21 up 11 days,  3:27,  0 users,  load average: 3.05, 3.30, 3.89
Tasks:  15 total,   1 running,  14 sleeping,   0 stopped,   0 zombie
%Cpu(s): 93.4 us,  5.6 sy,  0.0 ni,  0.0 id,  0.0 wa,  0.0 hi,  1.0 si,  0.0 st
KiB Mem:   1995404 total,  1970376 used,    25028 free,        0 buffers
KiB Swap:  2097148 total,   271516 used,  1825632 free.   113948 cached Mem

  PID USER      PR  NI    VIRT    RES    SHR S %CPU %MEM     TIME+ COMMAND
    7 root      20   0 3422024 1.275g      0 S 88.0 67.0   3120:52 java -XX:+UseConcMarkSweepGC +
   23 mysql     20   0<PHONE_NUMBER>64      0 S  8.7 11.3   1354:23 /usr/sbin/mysqld --basedir=/u+

htop on host
  CPU[||||||||||||||||||||||||||||||100.0%]   Tasks: 38; 3 running
  Mem[|||||||||||||||||||||||||1.74G/1.90G]   Load average: 2.28 2.91 3.63
  Swp[|||||                     265M/2.00G]   Uptime: 11 days, 03:30:40

  PID USER      PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command
 1347 root       20   0 3341M 1306M     0 S 97.4 67.1 52h03:49 java -XX:+UseConcMarkSweepGC
 1365 102        20   0  879M  220M     0 S  1.3 11.3 22h34:31 /usr/sbin/mysqld --basedir=/u

Can confirm same issue on the Rancher 1.4.2 (stable from last week I think), and top also shows the java vm growing uncontrollably, eventually crashing 1GB droplet.

Confirming on latest/1.5.3.  It is almost entirely un-usable on a 1GB droplet.  I will be trying a 2GB droplet but would hate to have to upgrade further until/unless this is determined to be a minimum requirement...

I am also running into this issue on a fresh install of Rancher on RancherOS with a 4 GB node on OVH. If I view top, I see a heap dump process for "out of memory".
1741  1740 root     S    4187m 108%   1% java -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -Xms128m -Xmx2g -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/lib/cattle/logs -Dlogback.bootstr
Please let me know if there is anything I can provide which would be useful in fixing such a bug.

I run it with --memory="1g", It's definitely the most memory hungry container I use, idles at around 800MB RAM.

@LukeChannings 1GB is the documented requirement for the server.  This issue is for a memory leaking problem going far beyond that (which I'm guessing has been fixed since there's been no recent discussion).


external_databases is broken after module refactor

After the module refactor terraform is having issues calculating count across the modules, when running plan with this setting on, the following error occurs:
✔ ~/code/terraforming-gcp/terraforming-pas [doc-fixes L|…2]
19:59 $ terraform plan -out=plan
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.

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

Error: Error running plan: 4 error(s) occurred:

* module.pas.random_id.pas_db_username: random_id.pas_db_username: value of 'count' cannot be computed
* module.ops_manager.random_id.opsman_db_password: random_id.opsman_db_password: value of 'count' cannot be computed
* module.pas.random_id.pas_db_password: random_id.pas_db_password: value of 'count' cannot be computed
* module.ops_manager.random_id.opsman_db_username: random_id.opsman_db_username: value of 'count' cannot be computed

Disabling this setting allows it to work.

Hi @matthewfischer! Thanks for bringing this up. This commit should fix that. It's on master.
Let us know if the issue persists.

I tried using true for value, but it failed. However, passing 1 works as expected. Should the documentation be updated to show the value should be 1 instead of true.
terraform plan -var external_database="true"
Error: Error asking for user input: 1 error(s) occurred:

module.ops_manager.local.external_db_count: local.external_db_count: __builtin_StringToInt: strconv.ParseInt: parsing "true": invalid syntax in:

${var.external_database > 0 ? 1 : 0}

Does it work without the quotes around true?

@jasonbisson Try terraform plan -var external_database=true, it should work.

Thanks for the quick response.
That worked. Also, can we update the readme since other variables quotes.

@jasonbisson Thanks for mentioning the issue, updated documentation here: https://github.com/pivotal-cf/terraforming-gcp/commit/3d66ce6b2bff3408914307ab1246f2d54ece6e5c


Security check for Upstream Request Validation

If the OpenAPI3 description of an upstream API mentions security requirements (security) for routes, Couper should perform security checks when validating requests to this upstream API (according to the referenced security scheme objects in components.securitySchemes):

type: http

scheme: basic: header "Authorization: Basic ..." set?
scheme: bearer: header "Authorization: Bearer ..." set?

type: apiKey

in: query; name: <query_param>: query parameter <query_param> set?
in: header; name: <header_name>: header <header_name> set?
in: cookie; name: <cookie_name>:  cookie <cookie_name> set?

type: oauth2/openIdConnect: header "Authorization: Bearer ..." set?

If security references several security scheme objects, the requirements must be ANDed or ORed accordingly.
This additional check should be configurable (default is ontrue; performed only if upstream request validation is on).

For type: http, scheme: bearer OpenAPI 3 also specifies a bearerFormat property with the description

A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes.

The example in https://swagger.io/docs/specification/authentication/bearer-authentication/ has a bearerFormat value of JWT. However this is not a reserved name and so cannot be used as a trigger for more elaborate checks (whether the token presented in the Authorization header is actually a JWT consisting of three parts, the first two of which can be base64url-decoded, ...)

We still missing a use-case to check those values. Couper can't verify the given values since its a backend task finally.


win10 不支持版本19044:1706

是的，我也是这个版本，无法开启多用户远程。

Duplicate of https://github.com/stascorp/rdpwrap/issues/1823
Rule: one termsrv version = one issue. Other issues (duplicates) will closed.
Note: You can see a termsrv.dll version in RDPConf. Do not use version from winver, cmd, etc.

https://github.com/anhkgg/SuperRDP
You can set the checkbox AutoSupport， then SuperRDP2 will automatically support the new version

Duplicate of #1823


fix: adjust course content height based on similar events

Description
When there are no similar events, we need to add extra margin to the content.
Issues
Closes
DEV-XXX:
Related
Testing
Automated tests
Manual testing
Screenshots
Additional notes

'useEffect' is defined but never used


Use runtime as library in integration tests (WIP)

Separates the console initialization from the runtime event loop (WIP). Tries to refactor the runtime::Event channel from the runtime and console. The idea is to enable the possibility to have  console that runs over a normal channel for the integration tests instead of a TcpStream.

Configuration the console IO should be done via configuration if needed - could be a uri. Pulling out the console module and exposing very internal things feels a little bit odd. Let's talk about a less invasive approach here.

looks good to me!


Gui: Themes

Themes are now full of device specific bugs due to different resolutions, we need to fix ->

[x]  Theme resolution fit for every hdpi device ASAP!

[x]  And we need a New lockscreen, the old one looks awful

Yaa we need to fix buttons alignment as others are ok

@AndroiableDroid

Am testing this recovery on My Redmi Note 5 pro.
And faced one problem this recovery. If I flashed the MIUI China ROM which doesn't have the Google Apps. The ROM boots successfully.
But,  when I flash the MIUI GLobal version which comes with the  Google Apps. The ROM stuck on the Black Screen before the Google Sign in Configuration page.
And followed the same method on Official Recovery. The ROM boots fine and Google Setup page appears and work perfectly.

Background is not fitting all resoltions well
the above device is 480 x 800

@RajeshRajout just make a new issue of it in this repo ...

@manjotsidhu Sorry am new to GitHub...

all these issues are fixed now

@AndroiableDroid @ANDROIABLEDROID Kul 👍


javascript template params are underlined red

I use HTML template. I have an embedded JS like:
<script>
var data = {{.Data | noescape}};

So it's underlined red in VS code. Any way to solve it?
Template's extension is html.

I have same problem

I have a similar problem in <style/> as well. Here is the error:
at-rule or selector expectedcss(css-ruleorselectorexpected)


Unable to upload most PDFs

Description
I am able to upload some PDFs, but most times when I upload, the upload never completes and I get an error. This occurs when I drag and drop onto any upload window or use the "upload" button. Sometimes I get an "error-missing input file" error in the upload modal.
Expected
I expect the upload to complete.
Actual
Upload doesn't complete. I get the following errors in the JS console:
Uncaught SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at XMLHttpRequest.<anonymous> (papermerge.js:54)
(anonymous) @ papermerge.js:54

Failed to load resource: net::ERR_CONNECTION_ABORTED

Info:

OS: Windows 10 and Mac OS Catalina
Chrome
Database Postgres 13.2
Papermerge Version 1.5.5

@adamklaff, Did you use docker image provided by linuxserver.io?

Yes. Should I post there? I realize you ask that up front but I wasn't sure
how that image could cause this problem. Thanks.
On Mon, Mar 1, 2021 at 3:24 AM Eugen Ciur<EMAIL_ADDRESS>wrote:

@adamklaff https://github.com/adamklaff, did you use docker image
provided by linuxserver.io?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ciur/papermerge/issues/309#issuecomment-787873881,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AARQJGKLKOIN3BG4N4DSVJLTBN2N3ANCNFSM4XZSCOZA
.

I have the same issue. Is there any update?
I'm using docker (official image) and Edge Chromium.

I cannot reproduce :(
Does issue occur for all PDFs ? For specific ones ? For Windows OS only? Is it same for Firefox browser ? What about jpeg, png files - do they upload successfully ?

I cannot reproduce :(
Please help me with more information about the issue.
Does issue occur for all PDFs ? For specific ones ? For Windows OS only? Is it same for Firefox browser ? What about jpeg, png files - do they upload successfully ?

Hi, apologies for the late reply, I have missed the notification.
These are 2 PDFs that won't upload:
https://1drv.ms/u/s!AvUWNyiOClNSiN9h9c6uz_V3yN8fsA?e=hzoeQ3
Network console logs from firefox:
network console logs.txt
They are both scanned, but at the same time other scanned documents are uploading just fine.
Same issue on Edge Chromium and Firefox (latest versions)

I just came across this myself and it was because it was a password protected PDF. It doesn't seem to be the same as others are seeing. But providing an api response for 500 error and surface in the UI might be helpful.

Same issue, getting 500 for some PDFs, but some uploads fine, can't find the pattern though

I started using papermerge today and I had the same issue.
But this error does not seem to be bound to the pdf file itself, for me it happened when I dropped multiple files to papermerge, some uploaded, some didn't. However, if I dropped the files again as a single file the issue did not appear. Maybe it's an issue with the file sizes or request size?


Refactor code for piechart

refactor code for piechart component. Please review and approve it.

pushed in wrong base branch.


Move get_window_size factor of merged_s2s as untracked configuration

Before you submit this PR: make sure to put all operations-related information in a wiki-note, a PR should be about code and is publicly accessible
What does the code in this PR do / what does it improve?
The original factor is 5. This PR moves it to an untracked context configuration, because in reprocessing we might want to change it, but better without changing the source code.
It is trying to resolve: https://github.com/AxFoundation/strax/issues/490
This PR will not change the result of MergedS2s. It will not change the lineage either.
Can you briefly describe how it works?
Can you give a minimal working example (or illustrate with a figure)?
Please include the following if applicable:

[ ] Update the docstring(s)
[ ] Update the documentation
[x] Tests to check the (new) code is working as desired.
[ ] Does it solve one of the open issues on github?

Notes on testing

Until the automated tests pass, please mark the PR as a draft.
On the XENONnT fork we test with database access, on private forks there is no database access for security considerations.

All italic comments can be removed from this template.

coverage: 93.564% (+0.02%) from 93.541% when pulling 81adf1d4ff5560bf6e073f68069d4ab86ed6ff0b on merged_s2s_factor into a95280595c9b9cd76ab9839121c5b9f2a24df954 on master.

Thanks, both of you!


Minor: add parquet page stats for float{16, 32, 64}

Which issue does this PR close?
Closes #10951.
Rationale for this change
Just extends the existing functionality for parquet page data stats -- int cases were covered previously, I just add float cases in the same fashion.
What changes are included in this PR?

Float64 was a breeze, just add a macro invocation and case branch,
Float32 needed additionally an extension of data generation option -- I hope I didn't miss it existing already,
Float16 got a bit messy and required something I'm not happy with. Unlike other data types, it's physically represented as FixedByteLength of 2 bytes, which doesn't behave like a primitive type. In particular, I needed to add a .clone() at a particular place, which required going from ident to expr in a macro, affecting all cases. I'm very open to suggestions here -- I haven't come up with a better idea myself yet.

Are these changes tested?
Yes, I extended the existing test coverage to the newly added cases.
Are there any user-facing changes?
No.

FYI there appears to be another PR open for this https://github.com/apache/datafusion/pull/10972

oh thx, haven't checked since yesterday...


Make for/of transpiled output faster when the iterable is an array

In general, to transpile a for/of, we need to create an iterator, and each time through the loop, call iter.next().value to get the value. But, if we know the thing we're iterating over is an array, we can instead do a traditional for (var i=0; i<arr.length; i++) loop. Currently transpilation runs before typechecking so we can't know that unless it's an array literal. Someday we'll move transpilation after typechecking but it would be good to have a short term solution so that for/ofs can be reasonably fast in the meantime (my understanding is that they are quite slow in browsers, at least for now). Maybe we add a separate optimization that runs after typechecking and knows how to remove the iterable[Symbol.iterator]() call and convert to a vanilla for loop.
Been meaning to figure this out for a while, thank you @robey for reminding me.

I think our current transpilation is already faster than a native for-of loop on V8's Crankshaft, which bails out on functions containing these loops: https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#2-unsupported-syntax.

for-of, I believe is supported by turbofan.  Do you have a benchmark?

@concavelenz http://jsperf.com/native-for-of-vs-transpiled/3, I'm running Chrome 50, the transpiled version is a bit faster.

Right.  We would like folks to just write the natural thing, not hand written loops.


docs: automated dynamic gif previews using vhs

Type of Change

[x] Documentation update

Description
WIP
Impact
WIP
Testing
https://github.com/adamperkowski/linutil/actions/workflows/preview.yml
Issues / other PRs related
Conflicts with (more like a different option) #730.
Checklist

[x] My code adheres to the coding and style guidelines of the project.
[x] I have performed a self-review of my own code.
[x] I have made corresponding changes to the documentation.
[x] My changes generate no errors/warnings/merge conflicts.

ugh
missclick


This script contains malicious content and has been blocked by your antivirus software

I ran this against my AD and received:
This script contains malicious content and has been blocked by your antivirus software.
+ CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : ScriptContainedMaliciousContent
I dont think its Windows Defender as I didnt see anything in the logs. I am using Crowdstrike, but didnt see anything in the crowdstrike logs either.

Its Crowdstrike


[autocrud] Add way to refresh grid from outside of autocrud

Describe your motivation
Add way to refresh grid from outside of AutoCrud component.
AutoCrud can be used in place of AutoGrid and there are many use case when grid (now crud component) should refresh content.
Refresh should only refresh Grid part of the component.
Describe the solution you'd like
It should be same as AutoGrid refreshTrigger property
Either implemented in gridProps or component itself
<ExperimentalAutoCrud service={UserService} model={UserModel}  gridProps={{ refreshTrigger: 1 }} />
or
<ExperimentalAutoCrud service={UserService} model={UserModel} refreshTrigger={1}/>

Addressed in #1769


bug(ux): flickering content when range is active

Ionic version:  (check one with "x")
[ ] 1.x
[ ] 2.x
[x] 3.x
I'm submitting a ...  (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
When sliding an ion-range, other screen content flickers weirdly.
(Confirmed on Android, not the same in browser)
Video:
https://youtu.be/dwqprn1z7NI
Expected behavior:
No flickering.
Steps to reproduce:
Code below
Related code:
<ion-content>
    <ion-item>
        <ion-range [(ngModel)]="sensitivity" pin="true" min="0" max="100" (ionBlur)="changeSensitivity()">
            <ion-label range-left>0</ion-label>
            <ion-label range-right>100</ion-label>
        </ion-range>
    </ion-item>

    <div text-center margin padding>
        <small>{{"globals.tips.shakeToSkip" | translate}}</small>
    </div>
</ion-content>

Other information:
When moving the range, the console prints these warnings:
Many (depends on how long you move it) of (touch move):

Ignored attempt to cancel a touchmove event with cancelable=false, for example because scrolling is in progress and cannot be interrupted.

When blur (touch end):

Ignored attempt to cancel a touchend event with cancelable=false, for example because scrolling is in progress and cannot be interrupted.

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
   Cordova CLI: 6.5.0
    Ionic Framework Version: 3.0.0
    Ionic CLI Version: 3.0.0-beta.5
    ios-deploy version: Not installed
    ios-sim version: Not installed
    OS: Windows 10
    Node Version: v6.9.1
    Xcode version: Not installed

Hello, thanks for using Ionic! Would you mind trying 3.0.1 and seeing if you have the same problems? Also, what version of Android are you testing on?

@jgw96 Same problems indeed.
I am using Android 5.0.1 on a Galaxy S4.
I just noticed that it happens in some other components, like ion-item, but it doesn't happen on browser. I guess it is something to do with the Android web page render engine..

Hey @AmitMY , based on our discussion in one of your other issues, would you mind trying crosswalk and seeing if this solves this issue on that device? Im starting to suspect Samsung replaced the stock 5.0 and up Chrome webview with their own.

Same error here.. we have this error on ion-sliding-items to.. animation stucks..

I have the same issue even in desktop chrome browser. What's weird is that the animation is a bit better when testing on android, but still laggy


Too many Request

I always get "Too many request" after RDChatGpt.Gpt35AndUp execution.

Please take a look at the similiar answered questions...
(mobil)
ManoloGC @.***> schrieb am So., 5. Mai 2024, 19:15:

I always get "Too many request" after RDChatGpt.Gpt35AndUp execution.
—
Reply to this email directly, view it on GitHub
https://github.com/baumwollschaf/RDOpenAI/issues/7, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABO77ZVAE3NO4RTJZWCMNNDZAZSLXAVCNFSM6AAAAABHH4BQZCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI3TSNRTGQYDCMY
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


Int 2169 maint

added delegate setters to DefaultSftpSessionFactory for the remaining properties of com.jcraft.jsch.Session
INT-2169 polishing

Merged into 'maint'.


import vscodium extension and publish to open-vsx

We likely have to fix JS stream resolver issue and any relevant JS issues first. Once it's done, we can start importing "vscode-extension" into this repo. This time don't have to run .NET command anymore!

While exploring possibility on JS module migration to JS-IR and TypeScript support, I created a patch to make it, but the resulting code is annoying in that it requires ugly changes in the existing code. https://gist.github.com/atsushieno/07a05734024d711b00b49664d32750a6
TypeScript support is IR-only feature, which requires various annoyances. I would just go with JS Legacy with manual typings if I want.

mugene npm packages are published. One step forward.

vscode-extension now works, compiles MML to .mid or .umpx, and errors are reported on the diagnostics. Needs packaging work.

It is currently blocked by:
Executing prepublish script 'npm run vscode:prepublish'...

><EMAIL_ADDRESS>vscode:prepublish
> tsc -p ./

❌  Command failed: npm list --production --parseable --depth=99999 --loglevel=error
npm ERR! code ELSPROBLEMS
npm ERR! missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/atsushi/.npm/_logs/2021-08-12T12_56_15_607Z-debug.log

See the documentation for more information:
https://github.com/eclipse/openvsx/wiki/Publishing-Extensions

I shoot the question on how to resolve this issue at javascript channel on Kotlin Slack, but got no answer. I don't think there is anyone who used Kotlin/JS to publish VSCode Extension at the moment.


Fix: button in banner is obstructed by back-to-top button

In commit https://github.com/saicaca/hexo-theme-vivia/commit/94b631f3c4a76ae97127328f7914557107657ede, since right in .back-to-top-wrapper has been modified to 0, this button now obstructs the right-top of button in the page.

Note: The demo website is fine because it is still using the old right: -84px. Also, to reproduce this issue, do not scroll down the page after opening the website.
Add z-index in nav to make sure the banner is on top of the back-to-top button.

I don't think this commit will break the layout, since the banner will be hidden if scrolling down the page.

Thank you!


Compiling vscode should not run out of file handles

VSCode Version: 1.23.1
OS Version: Arch Linux (latest)

Reproduce via:
cower -d code
cd code
makepkg -is

Right now, nofile is set to 4096, which is the default. I have never reached this limit under any program, ever, except when compiling vscode. I think that asking people to raise the limit is reasonable, but when I first log into a TTY and run these commands I still reach the limit. The compilation scripts should definitely be refactored to use file handles more efficiently so that a bare system can compile vscode without any special configuration changes.

Sorry, we won't fix this any time soon. Please increase your file handle limit if you want to compile vscode.


Laravel 5.0

Please add laravel 5 support

thi is not working, on composer update I get
thujohn/twitter 1.2.0 requires illuminate/support 4.x

https://github.com/thujohn/twitter-l4 need branch 2.0

See #13


Cannot install

Description
I simply downloaded latest release .exe  and am executing it as Administrator. It won't install with the following error message:

(which basically means "Error occurred due to logoff of a user.")
Steps To Reproduce

Login as Windows user without administratort priviliges
Execute Files.Stable.exe via right-click menu with Administrator priviliges

(Windows prompt for Administrator user passwort pops up)

Provide password and press Enter
Won't install

Requirements

Logged on as Windows user without Administrator priviliges
Execute Files.Stable.exe as Administrator via right-click menu

Files Version
<IP_ADDRESS>
Windows Version
Windows 10 22H2 (Build 19045.2846)
Log file
No logfile is created. Cannot provide one. No logs are created in Windows event manager either.

Does the preview version work?

https://files.community/download

Based on this, the Store version should also work.

I have the same problem. Neither version works

I have the same problem. Neither version works

What happens if you try the preview version?


Add modulus operator to expression language

This is already here as a function. Should we add it as an operator?

@JustinPrivitera do you mean to add a mathematical operator as in adding the % binary operator to the expression system or do you mean a VisIt Operator. Now that I am re-reading this, I think you mean add the % binary operator to the expression system.
That would be fine. I wonder why we didn't do it that way to begin with. At some point, the % character might have been used for another purpose.

add the % binary operator to the expression system

yes, this. @cyrush asked me to open this ticket.

my not be worth the effort if requires lexer / parser changes.

We're in luck. The expression grammar is already set up for the modulo operator...
https://github.com/visit-dav/visit/blob/5b1d802e6b46e68746386ec055038855d5ddfb70/src/common/expr/ExprGrammar.h#L49
and...
https://github.com/visit-dav/visit/blob/5b1d802e6b46e68746386ec055038855d5ddfb70/src/common/expr/ExprGrammar.C#L49


Add Discord and TikTok Link to footer

It would be pretty cool 👀

lemme do it pls :3

You can also update the twitter icon to the new X, if you need the svg take it from this PR


Added an account manager

Didn't implemented the USER_UPDATE event which the websocket will recieve when the account settings have been changed.
If you have any problems with design of that part. tell me and i will change it.

PRs should be made against the development branch please :)


How do you implement the probabilistic routing in the neural decision tree?

Hi SkidanovAlex,
I am implement the paper "monocular depth estimation using neural regression forest". It is a follow-up paper of "deep neural decision forests". Both of them use probabilistic routing in which the data will be sent to left or right child node by a probability from a sigmoid function. For example, if the prob = 0.4, it will sent to the left child with the probability of 40%.
Now, I get the probability but can not figure out which child I should send the data to (e.g. when p = 0.4). The naive idea is generate a number in [0, 1] and compare with the probability, if p > p_random then go to the left child, otherwise go to the right child.
Thanks.

In this particular implementation I do the same thing that they suggest to do in the paper: send to both children, and use the weighted average of them as the final output. So if p=0.4, we compute the answer for the left subnode, then for the right subnode, and then return left * 0.4 + right * 0.6


Could you please delete this npm package

I am currently developing Bootstrap Lite version and I want to publish at name of bootstrap-lite. It's different from yours.
Bootstrap:
bootstrap.css - 244kb
bootstrap.min.css - 191kb
My Bootstrap
bootstrap.lite.css - 190kb
bootstrap.lite.min.css - 141kb
Neither Components nor Classes is removed
Could you please delete this npm package So that I can publish in that name.

hi @AjayTheWizard, sorry, but i have clients who depend on this package, so can't delete.


qcollapsible suggestions

hey @MosGeo
I played around with your PR today... I love it :)
I got a bit carried away though, tinkering with it... and so I apologize for the big suggestion set, I figured I'd do it as a PR to your branch so you can consider it independently.
I went back to your original implementation of the little caret icon.  So sorry that I sent you down that rabbit hole 😔... I think the difficulties of getting styles to match (independent of stylesheet) are really probably a bigger deal than the rotation animation at this point.  (for example, if you drop it into napari, it's a black icon... and while we could theoretically address that, i think we should punt on it for now).
The rest of these suggestions are mostly just API and code de-duplication.
For API, I think it'd be nice is this was a QFrame that comes with it's own layout, rather than a QPushButton.  (see how simple the example becomes).  People can still create complex layouts and override it with setContent ... but for the simpler use case, it's just addWidget... and you're done.  I also broke up the two animation options to keep it more like the Qt API.  (now, the methods are all the same as QFrame, QPushButton, and QAnimation ... just combined into one widget).
I removed lock_to... since I think the "Qt way" would be to set the expanded state with collapse/expand and then just setLocked.
let me know what you think!  and sorry again for the large suggestion set

Looks clean and structured. Thanks! I will merge it and make sure the tests are updated to pass.


feat: add AddressSet structure for memory

At the moment, our validated addresses inside the Memory structure are contained inside a HashMap:
https://github.com/keep-starknet-strange/cairo-zig/blob/d677ee6aa56883d9ea6a26556be4e01a3404fa8e/src/vm/memory/memory.zig#L41-L46
To enhance this implementation, it could be better to wrap this inside a dedicated AddressSet data structure with dedicated methods as it is done in the Rust implementation here. This will extend the specific functionality and properties of this data structure.

I am interested in this. Can you assign it to me?

@ndcroos Done

I've looked into this, but I found this to be a bit above my beginner Zig level at the moment.
If it can be a help to someone else, I've got this as a quite literal imitation of the Rust code. I use a ArrayList(u8) as the underlying structure (cairo-rs uses Vecbv::BitVec there).
pub const AddressSet = struct {
    const Self = @This();

    vec: std.ArrayList(u8),

    pub fn init(allocator: Allocator) Self {
        return Self { .vec = std.ArrayList(u8).init(allocator) };
    }

    pub fn deinit(self: Self) void {
        self.vec.deinit();
    }

    pub fn contains(self: *Self, addr: Relocatable) bool {
        const segment = addr.segment_index;
        if (segment < 0) {
            return false;
        }

        const segmentIndex: usize = @intCast(segment);
        const maybeSegment = self.vec.get(segmentIndex);
        const maybeBit = maybeSegment.?.get(addr.offset);
        return maybeBit.? == true;
    }

    pub fn extend(self: *Self, addresses: []Relocatable) void {
        var segment: usize = 0;
        var offset: usize = 0;
        var newBitVec: std.ArrayList(u8) = undefined;
        for (addresses) |addr| {
            segment = @intCast(addr.segment_index);
            if (addr.segment_index < 0) {
                continue;
            }
            if (segment >= self.vec.len) {
                self.vec.resize(segment + 1, newBitVec);
            }

            offset = @intCast(addr.offset);
            if (offset >= self.vec[segment].len) {
                self.vec[segment].resize(offset + 1, false);
            }
            _ = self.vec[segment].replace(offset, true);
        }
    }
};

But I am not sure which allocator I should choose, when invoking the init.

For me, you can take it.

@ndcroos Are you in the telegram? I am new to zig also. Think a lot of people have done not much more than ziglings.

@ndcroos if your making progress perhaps continue, I'm not sure this one is time sensitive... They are good at helping with pr's as they know most are new to zig. I was indicating its blocking so as to free myself take another issue. Telegram is open to help as well.    :)


Windows CI bulid succeeds even though the build failed

Describe the bug

Windows CI always says it succeeded.
To reproduce

Somehow trigger the CI with a syntax error in the code.
Observe that the Windows build still "worked".

Screenshots

Commit

Broken on 214afc8fc280320af68661d8b0ff833966a113f8
Additional information

Yoinked the bug report template because it was the closest to a CI issue.

:rocket:

is this still an issue?

is this still an issue?

Yes iirc https://github.com/Chatterino/chatterino2/pull/2001#issuecomment-699624924

No longer an issue


Only call current_thread_id once in try_select

For some unclear reason as of writing, calling current_thread_id on each
iteration makes Firefox block before displaying a window on aarch64
Linux.

This is a duplicate of https://github.com/crossbeam-rs/crossbeam/pull/802.

@taiki-e Someone contacted you about https://bugzilla.mozilla.org/show_bug.cgi?id=1757571. This is where we are investigation-wise. Applying this patch fixes the issue. That would suggest some kind of race condition somewhere else, but I'm yet to find out the root cause of the problem. The change itself is good to apply anyways.

Heh, I guess I should have checked pull requests.


feature: adding threadpool timer

    result = WAIT_ON_ADDRESS_OK;

So... spurious wakeups are userland?

Refers to: linux/src/sync_linux.c:39 in 7968855. [](commit_id = 79688553cb4dd2e288a6cf5f93c05ed07195f44d, deletion_comment = False)

    result = WAIT_ON_ADDRESS_OK;

I'm not understanding, this code too well.  I just had to move the LogError because it was spamming on any timeout.

In reply to:<PHONE_NUMBER>

Refers to: linux/src/sync_linux.c:39 in 7968855. [](commit_id = 79688553cb4dd2e288a6cf5f93c05ed07195f44d, deletion_comment = False)


Don't allocate for ComponentDescriptors of non-dynamic component types

Objective
Don't allocate memory for Component types known at compile-time. Save a bit of memory.
Solution
Change ComponentDescriptor::name from String to Cow<'static, str> to use the &'static str returned by std::any::type_name.

bors r+


docs: update examples in random/iter

Resolves #1607
Description

What is the purpose of this pull request?

This pull request:

a
b
c

Related Issues

Does this pull request have any related issues?

This pull request:

resolves #
fixes #

Questions

Any questions for reviewers of this pull request?

No.
Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

No.
Checklist

Please ensure the following tasks are completed before submitting this pull request.

[x] Read, understood, and followed the contributing guidelines.

@stdlib-js/reviewers

@Planeshifter can you review this.

@the-r3aper7 Would you mind checking the box in the OP indicating that you've read the contributing guidelines? This needs to be checked in order to confirm that you agree to licensing terms and the Developer's Certificate of Origin.

@the-r3aper7 Would you mind checking the box in the OP indicating that you've read the contributing guidelines? This needs to be checked in order to confirm that you agree to licensing terms and the Developer's Certificate of Origin.

Sorry, I keep forgetting about this :sweat_smile:


[release-1.9] netns fixes

- What I did
see individual commits, @mrunalp @sameo PTAL
- How I did it
- How to verify it
- Description for the changelog

/test all

LGTM

LGTM


Fix issue 10777 - multiSort returns SortedRange

multiSort!( preds... ) returns SortedRange!( MultiPred!( preds ) ).
MultiPred!( preds... ) combines multiple predicates.
A proposed shrink function allows predicate reduction (a range sorted to preds[1..N] is also sorted to preds[1..(N-1)]).
https://issues.dlang.org/show_bug.cgi?id=10777

Given that many SortedRange functions could be implemented more efficiently using a dedicated MultiSortedRange, we should see SortedRange!(MultiPred!less) as an intermediate solution and not make MultiPred available outside of the package.

Closed in favor of #4235


360 Degree rotation of components

The ability to set  primitive on the grid and then rotate it would be extremely helpful - especially when creating a fan branch or circular designs.

We have the 360-degree rotation now for Gradient Generator. We need to figure out how we can incorporate this into all the other components. We also need to figure out a strategy for accommodating the older files. Perhaps a script would be sufficient for converting all the other JSON features.

So we are slowly transitioning all the components to have 360-degree rotations and including code to modify the design files automatically without the need of an external script.


Internet Explorer Polyfills

All code in this project must be compatible with IE9+

Add polyfills directory to /helpers
Add polyfills for any JS, HTML, or CSS that is not supported in IE

This will likely need to be the last task before our first release to ensure all code is IE compatible

Stupid IE


Support Arista Switches

Hello,
Can you please add arista switches as sourcetype on SC4S ? :
Some logs as example :
2021-11-25T16:52:18+01:00 SWITCHNAME.domain.com Acl: %ACL-6-IPACCESS: list acl-internet Ethernet1 denied tcp xxx.xx.xx.xx(63751) -> xxx.xx.xx.xx(445)
2021-11-25T16:52:19+01:00 SWITCHNAME.domain.com IgmpSnooping: %IGMPSNOOPING-6-NO_IGMP_QUERIER: No IGMP querier detected in VLAN XXX. IGMP report received from xxx.xx.xx.36 on Port-ChannelX for xxx.xx.xx.109
2021-11-25T16:52:19+01:00 SWITCHNAME.domain.com IgmpSnooping: %IGMPSNOOPING-6-NO_IGMP_QUERIER: No IGMP querier detected in VLAN XXX. IGMP report received from xxx.xx.xx.36 on Port-ChannelX for xxx.xx.xx.109
2021-11-25T16:52:19+01:00 SWITCHNAME.domain.com Acl: %ACL-6-IPACCESS: list acl-xxx-1 Ethernet1 denied tcp xxx.xx.xx.xx(43167) -> xxx.xx.xx.xx(8750)
2021-11-25T16:52:19+01:00 SWITCHNAME.domain.com Acl: %ACL-6-IPACCESS: list acl-xxx-2 Ethernet5 denied tcp xxx.xx.xx.xx(1204) -> xxx.xx.xx.xx(5501)
2021-11-25T16:52:19.802098+01:00 SWITCHNAME.domain.com PortSec: %ETH-4-HOST_FLAPPING: Host 00:xx:xx:00:00:00 in VLAN XXX is flapping between interface Port-ChannelXX and interface Port-ChannelXX
2021-11-25T16:52:19+01:00 SWITCHNAME.domain.com PortSec: %ETH-4-HOST_FLAPPING: Host 00:xx:xx:00:00:00 in VLAN XXX is flapping between interface Port-ChannelXX and interface Port-ChannelXX
Thank you in advance,
Regards,

Release on next-major (beta) branch

:tada: This issue has been resolved in version 2.0.0-next-major.23 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 2.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


"Do you want to continue?" dialog on Open Session first try

This should probably happen when overwriting a more complex session.  To reproduce:

Open VAPOR, then File->Open Session

Consensus: If this is simple, it's worth tackling
Either way the language needs to be improved.


feat: Dynamic nested routes

Description
Implement dynamic nested routes similar to remix-run.
For example, the below structure should work:
routes
  accounts
    index.dart
    [accountId].dart
    [accountId]  // <-- This is a folder
      users
        index.dart
        [userId].dart

Which should then map to the following calls:
GET http://localhost:8080/accounts/1/users
GET http://localhost:8080/accounts/1/users/1
...

and in code:
FutureOr<Response> onRequest(RequestContext context, String accountId, String userId) async {
  ...
}

NOTE The variable names can't be the same because they get put into the same function call (unless some other implementation is implemented).
Requirements

[ ] Dynamic nested routing works

Additional Context

Remix run dynamic route documentation: https://remix.run/docs/en/v1/guides/routing#dynamic-segments
Should other parts of remix's routing be taken as well such as splat routes?

Hi @chanan 👋
Thanks for opening an issue!
This should already be supported in Dart Frog.
The following directory structure:
routes
  accounts
    index.dart
    [accountId]
      index.dart
      users
        index.dart
        [userId].dart

Would support the following endpoints:
GET http://localhost:8080/accounts/1/users
GET http://localhost:8080/accounts/1/users/1

Let me know if that helps and also refer to the documentation on route conflicts for more information.

Yes, you are right when I tried it, I forgot about the route conflicts.
The documentation could be updated to explicitly reflect this scenario, as I think it's fairly common one.

Yes, you are right when I tried it, I forgot about the route conflicts.
The documentation could be updated to explicitly reflect this scenario, as I think it's fairly common one.

Awesome, glad you got things working! When route conflicts are detected, the Dart Frog CLI should report them as warnings. Do you feel it’s easy to miss the warnings or have suggestions for how to make this more visible? Thanks!

I did actually miss it, but I was referring to adding a section in the routing page about dynamic nested routes.

I did actually miss it, but I was referring to adding a section in the routing page about dynamic nested routes.

Got it, I’ll make sure to address this tomorrow. Thanks again!


Error with webhook: main.CRITICAL: Exception: Deprecated Functionality: strpos()

We are having this error triggered by webhooks:
main.CRITICAL: Exception: Deprecated Functionality: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /vendor/wallee/magento-2/Model/Webhook/Listener/AbstractOrderRelatedCommand.php on line 34
It is called by \Wallee\Payment\Model\Webhook\Listener\TransactionInvoice\CaptureCommand::execute in vendor/wallee/magento-2/Model/Webhook/Listener/TransactionInvoice/CaptureCommand.php:60

Dear GautierDig
We will check this.
Best regards

Dear GautierDig
About your error message, after triggering the webhooks:

It is called by \Wallee\Payment\Model\Webhook\Listener\TransactionInvoice\CaptureCommand::execute in vendor/wallee/magento-2/Model/Webhook/Listener/TransactionInvoice/CaptureCommand.php:60

Are I right, you got this error log, after capturing a transaction within the wallee portal?
Thanks for your feedback.
Best regards

Yes that is it.
On Fri, 3 Nov 2023 at 11:26, theodorspringwallee @.***>
wrote:

Dear GautierDig https://github.com/GautierDig
About your error message, after triggering the webhooks:
It is called by
\Wallee\Payment\Model\Webhook\Listener\TransactionInvoice\CaptureCommand::execute
in
vendor/wallee/magento-2/Model/Webhook/Listener/TransactionInvoice/CaptureCommand.php:60
Are I right, you got this error log, after capturing a transaction within
the wallee portal?
Thanks for your feedback.
Best regards
—
Reply to this email directly, view it on GitHub
https://github.com/wallee-payment/magento-2/issues/35#issuecomment-1792191213,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AS3N3245DRMIHD6T5KZWKFLYCTBFBAVCNFSM6AAAAAA62OX7ICVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJSGE4TCMRRGM
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
[image: Logo] https://www.diglin.com/ [image: Logo]
Gautier Masdupuy | Diglin GmbH
Software developer
E: @.*** | www.diglin.com
Diglin - Ifangstrasse 6, 8952 Schlieren - Switzerland

Dear GautierDig
Our developers can't reproduce your issue.
Are you using our newest plugin version?
Furthermore, please can you send us a reproduction video here or to<EMAIL_ADDRESS>Many thanks

We shortly tested version 2.1.6 on our live system and were on version 1.3.21 before.
No payment could be made anymore and our logs were full of the following callstack:
[2023-11-06T13:43:55.230656+00:00] .ERROR: Deprecated Functionality: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/share/example.url/releases/318/vendor/wallee/magento-2/Model/Webhook/Listener/AbstractOrderRelatedCommand.php on line 34 [] []
[2023-11-06T13:43:55.231232+00:00] .CRITICAL: Exception: Deprecated Functionality: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/share/example.url/releases/318/vendor/wallee/magento-2/Model/Webhook/Listener/AbstractOrderRelatedCommand.php on line 34 in /var/www/share/example.url/releases/318/vendor/magento/framework/App/ErrorHandler.php:62
Stack trace:
#0 /var/www/share/example.url/releases/318/vendor/sentry/sentry/src/ErrorHandler.php(305): Magento\Framework\App\ErrorHandler->handler(8192, 'strpos(): Passi...', '/var/www/share/...', 34, Array)
#1 [internal function]: Sentry\ErrorHandler->handleError(8192, 'strpos(): Passi...', '/var/www/share/...', 34)
#2 /var/www/share/example.url/releases/318/vendor/wallee/magento-2/Model/Webhook/Listener/AbstractOrderRelatedCommand.php(34): strpos(NULL, '14014_157343040')
#3 /var/www/share/example.url/releases/318/vendor/wallee/magento-2/Model/Webhook/Listener/TransactionInvoice/CaptureCommand.php(60): Wallee\Payment\Model\Webhook\Listener\AbstractOrderRelatedCommand->getInvoiceForTransaction(Object(Wallee\Sdk\Model\Transaction), Object(Magento\Sales\Model\Order\Interceptor))
#4 /var/www/share/example.url/releases/318/vendor/wallee/magento-2/Model/Webhook/Listener/AbstractOrderRelatedListener.php(197): Wallee\Payment\Model\Webhook\Listener\TransactionInvoice\CaptureCommand->execute(Object(Wallee\Sdk\Model\TransactionInvoice), Object(Magento\Sales\Model\Order\Interceptor))
#5 /var/www/share/example.url/releases/318/vendor/wallee/magento-2/Model/Webhook/Listener/AbstractOrderRelatedListener.php(101): Wallee\Payment\Model\Webhook\Listener\AbstractOrderRelatedListener->process(Object(Wallee\Sdk\Model\TransactionInvoice), Object(Magento\Sales\Model\Order\Interceptor))
#6 /var/www/share/example.url/releases/318/vendor/wallee/magento-2/Model/Service/WebhookService.php(110): Wallee\Payment\Model\Webhook\Listener\AbstractOrderRelatedListener->execute(Object(Wallee\Payment\Model\Webhook\Request))
#7 /var/www/share/example.url/releases/318/vendor/wallee/magento-2/Controller/Webhook/Index.php(49): Wallee\Payment\Model\Service\WebhookService->execute(Object(Wallee\Payment\Model\Webhook\Request))
#8 /var/www/share/example.url/releases/318/generated/code/Wallee/Payment/Controller/Webhook/Index/Interceptor.php(123): Wallee\Payment\Controller\Webhook\Index->execute()
#9 /var/www/share/example.url/releases/318/vendor/magento/framework/App/Action/Action.php(111): Wallee\Payment\Controller\Webhook\Index\Interceptor->execute()
#10 /var/www/share/example.url/releases/318/generated/code/Wallee/Payment/Controller/Webhook/Index/Interceptor.php(151): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))
#11 /var/www/share/example.url/releases/318/vendor/magento/framework/App/FrontController.php(245): Wallee\Payment\Controller\Webhook\Index\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#12 /var/www/share/example.url/releases/318/vendor/magento/framework/App/FrontController.php(212): Magento\Framework\App\FrontController->getActionResponse(Object(Wallee\Payment\Controller\Webhook\Index\Interceptor), Object(Magento\Framework\App\Request\Http))
#13 /var/www/share/example.url/releases/318/vendor/magento/framework/App/FrontController.php(147): Magento\Framework\App\FrontController->processRequest(Object(Magento\Framework\App\Request\Http), Object(Wallee\Payment\Controller\Webhook\Index\Interceptor))
#14 /var/www/share/example.url/releases/318/generated/code/Magento/Framework/App/FrontController/Interceptor.php(131): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))
#15 /var/www/share/example.url/releases/318/vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php(99): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\App\FrontController\{closure}(Object(Magento\Framework\App\Request\Http))
#16 /var/www/share/example.url/releases/318/generated/code/Magento/Framework/App/FrontController/Interceptor.php(132): Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#17 /var/www/share/example.url/releases/318/vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php(71): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\App\FrontController\{closure}(Object(Magento\Framework\App\Request\Http))
#18 /var/www/share/example.url/releases/318/generated/code/Magento/Framework/App/FrontController/Interceptor.php(135): Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#19 /var/www/share/example.url/releases/318/vendor/magento/framework/App/Http.php(116): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#20 /var/www/share/example.url/releases/318/generated/code/Magento/Framework/App/Http/Interceptor.php(50): Magento\Framework\App\Http->launch()
#21 /var/www/share/example.url/releases/318/vendor/justbetter/magento2-sentry/Plugin/GlobalExceptionCatcher.php(89): Magento\Framework\App\Http\Interceptor->Magento\Framework\App\Http\{closure}()
#22 /var/www/share/example.url/releases/318/generated/code/Magento/Framework/App/Http/Interceptor.php(51): JustBetter\Sentry\Plugin\GlobalExceptionCatcher->aroundLaunch(Object(Magento\Framework\App\Http\Interceptor), Object(Closure))
#23 /var/www/share/example.url/releases/318/vendor/magento/framework/App/Bootstrap.php(264): Magento\Framework\App\Http\Interceptor->launch()
#24 /var/www/share/example.url/releases/318/pub/index.php(30): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor))
#25 {main} {"report_id":"1af49343099da839886b315441fcbbec3b877caa81c9c7b42c03f26afb0cdbfb"} []

So we were actually having similar issues here.
Any idea, where this might come from?

Dear norgeindian
We have difficulties with the reproduction of this issue.
Please can you open a ticket on<EMAIL_ADDRESS>that we can check this issue on your shop instance?
Best regards

@theodorspringwallee, I already did. Please take a look at ticket #260078


feat: deploy storybook to vercel

Summary
Deploy Storybook to Vercel
In order to deploy Storybook in Vercel, we made the decision to detach it from the user interface and create a new Storybook package.

It's not related to your PR but please change Conventional Commits Check to Check PR (.github/workflows/checks.yaml:1)

please also make sure yarn dev:ui will run your new package.


f64 field: BaseElement should not be convertible from u64 or u128 without error

We currently convert From<u64> and From<128> for BaseElement (here). I believe these should be TryFrom<u64> and TryFrom<u128>.
If the value is greater than 2^64 - 2^32 + 1, we silently perform a modulus. This can potentially be a vector of attack. For example, in the Miden VM, BaseElement is sometimes used to represent the length of a list. When initializing the VM, we take the list length as a u64, and then into BaseElement. Basically, if the list is very long (>= 2^64 - 2^32 + 1), there will be a silent wrap, and we will end up processing just a few elements in the VM. Now I don't know of any hardware that can store any list of that kind of size, but I can see this wrapping used in conjunction with other vulnerabilities to create a hack.
This is a direct consequence of the fact that if I store 2^64 - 2^32 + 100 in a u64, I see this as being unrepresentable in a BaseElement, as opposed to thinking of it as equivalent to 100.
In case some users need the current behavior, I would create a function, say from_u64_with_wrapping(), and have the canonical Rust conversion (i.e. From/TryFrom) be "safer".
Would love to hear your thoughts on this. Do you also see it as enabling vulnerabilities of some kind?

Closed by #243.


Score display behavior

New scores should stack up under the total score, and linger there for a second before adding to the total score so you can see how much everything is worth. Also the speed at which score drains into the total should increase over time.

Should the speed increase over time or decrease exponentially? I would rather see it look something like
12345 at 100 ms after start of draining
6789 at 200 ms
101 at 300 ms
12 at 400 ms
1 at 500 ms
Sort of have the rate asymptotically approach 0 plus some scalar

Resolved by #78


Create build connectors document

Please start assigning your PRs to yourself for the component that you own.

@Adam-Dupaski ah, I assigned you because I thought this was part of our proofreading workshop.

@Adam-Dupaski should have added you as a Reviewer, I see!

Looks like a new doc? At any rate, you own these PRs. :)

I don't need to be a reviewer either, just tag me in the PR.

@johannahemminger My review is done. Please address all comments, resolve them, and push changes to your branch. Once you have done that, we can have a meeting to finalize publication.

Thanks for the review @Adam-Dupaski . I am gathering the remaining info for the Good/Best/Recommended Practices document now. I think it might make sense to publish them together, so I will try to get it into a PR soon.

@johannahemminger I think it'd be best to do 1 doc at a time and prioritize feedback on this doc. There are a lot of comments to sort through but the changes should be relatively quick. Once we decide on where to publish this doc, we can publish it and then you can get back to the child docs. Do you agree?

@Adam-Dupaski sure sounds good. Thanks! I'll let you know once comments are sorted through and branch updated.

@Adam-Dupaski all changes have been made and all comments resolved, let's chat sometime!


[jupyterhub] Jupyternoebook is not launching

I can not launch the notebook and it is erroring out after 1200 seconds. Here is the error message

can you provide the steps to reproduce this?


Fiixing initializationFailTimeout.

An attempt to fix initializationFailTimeout which does not work since 3.3.0 after this change.

@gierlachg What specific behavior was broken by that change?

Well, the functionality behind initializationFailTimeout. As I understand if you start your application and the DB is not there Hikari should try to establish an initial connection (before giving up) for up to initializationFailTimeout millis. In current version it just throws after first failure.

We are experiencing the same problem (that the pool fails on first exception, even though we have set initializationFailTimeout to a high number).
Any ETA on this fix?


Module missing

Hi, thank you for providing the example notebook to show the use of the DA-RNN library!
The notebook.common module imports the get_rolling_window module but this is not present in the repository. So notebook/pytorch.ipynb throws an error. Could this module be uploaded to the notebook folder?  Appreciate it and thank you!
ModuleNotFoundError: No module named 'get_rolling_window'

You'd better run make install first, and get-rolling-window is located at dev-requirements.txt

I suggest to use anaconda to manage environments


OS X is deprecated name

change all instances of "OS X" to "macOS".

image name OSX.png will need to be changed as well as all references to it.  Ensure css files are updated.

Will be resolved when #27 is merged


How to dynamically set spec_url in RapiDoc?

I'm wondering how I can dynamically set the spec_url for RapiDoc:
This works fine:
use actix_web::{HttpServer, App};
use utoipa_rapidoc::Rapidoc;

HttpServer::new(move || {
    App::new()
        .service(RapidDoc::new("/api-docs/openapi.json"))
})
...

But what if I want to do the following?:
use actix_web::App;
use utoipa_rapidoc::Rapidoc;

let base_url = "/some/path";
let spec_url = format!("{}/api-docs/openapi.json", base_url);

HttpServer::new(move || {
    App::new()
        .service(RapiDoc::new(&spec_url));
})

The fact that I have to pass a &str to RapiDoc::new makes this impossible!

A bit late to the party, but I can also reproduce this. Even if we do spec_url.clone().as_str(), we get a temporary value dropped while borrowed. It seems to me we'd need a 'static str because of the move closure, not just any str borrow.
let base_url = "/some/path";
let spec_url = format!("{}/api-docs/openapi.json", base_url);

HttpServer::new(move || App::new().service(RapiDoc::new(spec_url.clone().as_str())));

error[E0716]: temporary value dropped while borrowed
   --> ...\src\main.rs:147:61
    |
147 |     HttpServer::new(move || App::new().service(RapiDoc::new(spec_url.clone().as_str())));
    |                                                -------------^^^^^^^^^^^^^^^^----------- temporary value is freed at the end of this statement
    |                                                |            |
    |                                                |            creates a temporary value which is freed while still in use
    |                                                argument requires that borrow lasts for `'static`

Unless there's something I'm missing, this has a very simple fix: simply have the path field of RapiDoc take a String instead of a borrowed str, or even better, a Cow<'static, str>, like utoipa_swagger_ui.
I'll submit a PR.


STARTTLS Support in Elkarte

Sooo I've finally started moving some of my communities over to Elkarte and ran into this. "Still waiting on my email" "...oh."
The fix is still pretty much as described here:
http://www.simplemachines.org/community/index.php?topic=180532.msg1148462#msg1148462
But it would probably be wise to wrap it in a setting.

Yes, it'd be wise to wrap it in a setting.
I see no reason why we should hide it away. After all, the area already exists, may as well extend it a bit further, no?

Fixed with https://github.com/emanuele45/Dialogo/commit/85c128d6081d25748f3400866ddd4489612d8875


Create heap_sort.cpp

Heap sort is a comparison based sorting technique based on Binary Heap data structure. It is similar to selection sort where we first find the maximum element and place the maximum element at the end. We repeat the same process for the remaining elements.


Errors after publish

I have a solution containg three projects, two netstandard2.0 class libraries, and a netcoreapp2.2 testing library.
Before publishing I had no problems in my workspace (as reported by VS Code / omnisharp). After publishing a MyTestLibrary.Program.cs file is created in MyTestLibrary > obj > release > netcoreapp2.2.
The contents of this file are:
// <auto-generated> This file has been auto generated. </auto-generated>
using System;
[Microsoft.VisualStudio.TestPlatform.TestSDKAutoGeneratedCode]
class AutoGeneratedProgram {static void Main(string[] args){}}

And now omnisharp throws a lot of frustrating errors

Is there a way to suppress the generation of this file, or get the publish process to clean itself up afterwards?
Note that this does not prevent me publishing again, it's just annoying to have errors. Please tell me if this is intended behaviour and should be sent to the omnisharp team instead.

For anyone else having this issue you can configure omnisharp to ignore the problem folders which resolved my issue https://github.com/OmniSharp/omnisharp-roslyn/wiki/Configuration-Options#file-options


compilerOptions.lib is not compatible with tsconfig.json

compilerOptions.lib in tsconfig.json is case insensitive. In fact, VSCode by default auto-completes possible names in mixed case:

On the other hand, compilerOptions.lib in dnt build options only accepts lowercase names:
error: Uncaught (in promise) Error: Could not find filename for lib: ESNext
      throw new Error(`Could not find filename for lib: ${name}`);

Same applies for typings.
dnt should accept compilterOptions in same format Typescript does.

Are you using typescript? What version of dnt are you using?
https://github.com/denoland/dnt/blob/bcc8744ff5323a26d0ede6103090a2d568a7ad45/lib/compiler.ts#L61


Upgrade to Python 3.9 (drop Python 3.9)

Description

Checklist

[ ] I am familiar with the Contributing Guidelines.
[ ] New or existing tests cover these changes.
[ ] The documentation is up to date with these changes.
[ ] The cmake-format.json is up to date with these changes.
[ ] I have added new files under rapids-cmake/

[ ] I have added include guards (include_guard(GLOBAL))
[ ] I have added the associated docs/ rst file and update the api.rst

/merge


Gateway classes simplication

The ShopFrontend gateway extends the Shop gateway, which causes issues on the example application due to payment methods "leaking through".
Instead, both these gateways should extend a shared abstract that contains everything they share.

This is a bit better organised now.


Multimedia Key Input

There is not option to select multimedia keys for input, like Volume_Up, Volume_Down, Browser_Home etc.
Hope this will be added soon.

Interception does not support Media keys via USB, only via PS/2.
This is not likely to change in the near future, we have no replacement for Interception.

Are there any plans to support Media keys "out"?

This is not something that I can support. This would be part of the
Interception source code, to which I do not have access.
On Fri, 11 Mar 2022 at 05:02, superuser7777 @.***>
wrote:

Are there any plans to support Media keys "out"?
—
Reply to this email directly, view it on GitHub
https://github.com/Snoothy/UCR/issues/80#issuecomment-1064774721, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AANDZBAKP5JQCUYBGYIVKFTU7LHVRANCNFSM4GVOHHWA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you commented.Message ID:
@.***>


[Bug]: Reduce peer dependencies warning of new Rspress project

Version
System:
    OS: macOS 13.5.2
    CPU: (10) arm64 Apple M1 Pro
    Memory: 1.30 GB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Browsers:
    Chrome: 118.0.5993.88
    Safari: 16.6

Details

Reproduce link
https://rspress.dev/guide/start/getting-started.html
Reproduce Steps

npm create rspress@latest
pnpm i

What's your pnpm version?

Tried different package manager:

pnpm v7.33.6: has warnings
pnpm v8.9.2: no warnings
npm 8.19.3: no warnings
yarn v1: has warnings:

Yeah, just a little annoying


statskeep min/max expr in colstats

Proposed changes
columnStatistics.minExpr and maxExpr is useful when we derive stats for cast function.
This pr

maintains the min/max expr during stats derive. (now only support cast from string to other types)
adjust column stats range after filter

Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 45.46 seconds
stream load tsv:          512 seconds loaded<PHONE_NUMBER>9 Bytes, about 139 MB/s
stream load json:         20 seconds loaded<PHONE_NUMBER> Bytes, about 112 MB/s
stream load orc:          65 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          32 seconds loaded 861443392 Bytes, about 25 MB/s
insert into select:          29.3 seconds inserted 10000000 Rows, about 341K ops/s
storage size:<PHONE_NUMBER>3 Bytes


feat: add icons and colors to telescope picker

Prettier rendering in the telescope picker.
Note: This uses nerd-font icons right know, and yeah, it's probably not ideal as the only option. Maybe we can make this configurable?

Love this!! Great suggestion and PR!
I share your thought too regarding icons...could we make it configurable and also the option to turn them off? I'd like it on by default but in case someone doesn't have a patched font installed, they can easily turn it off

There you go, I added config options.

It's looking great...except if you have the cursorline on (vim.wo.cursorline = true) then the background of the text doesn't change:

You can see on the neotest-rspec line, the icon's bg color changes but the text doesn't.
This was'nt the case before the PR unfortunately:

Indeed, should be fixed now.

Now we're cooking! Thanks again.


breadcrumb dropdown panel name truncation

Issue Type: Bug

Install ms-vscode.go extension
Open a .go file containing struct method names or struct names longer than 20 chars
Enable breadcrumbs
Click on the struct name

The names in the dropdown could be more useful .. at the moment, the ellipsis truncation prevents seeing the details you care about.
VS Code version: Code - Insiders 1.27.0-insider (8727085fff33bf7d8f5e27483b10f72508d4167a, 2018-08-14T05:12:11.579Z)
OS version: Darwin x64 17.7.0

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-6920HQ CPU @ 2.90GHz (8 x 2900)

GPU Status
2d_canvas: enabledchecker_imaging: disabled_offflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: enabledrasterization: enabledvideo_decode: enabledvideo_encode: enabledwebgl: enabledwebgl2: enabled

Load (avg)
2, 2, 3

Memory (System)
16.00GB (0.72GB free)

Process Argv
/Applications/Visual Studio Code - Insiders.app/Contents/MacOS/Electron -psn_0_1761710

Screen Reader
no

VM
0%

Extensions (7)

Extension
Author (truncated)
Version

rainbow-brackets
2gu
0.0.6

EditorConfig
Edi
0.12.4

gitlens
eam
8.5.4

VS-code-vagrantfile
mar
0.0.7

hg
mrc
1.2.3

Go
ms-
0.6.86

indent-rainbow
ode
7.2.2

Screenshot below from following source code test.go:
package foo

type ImageCatalogueServer struct {}

func (s *ImageCatalogueServer) DoSomething() {}
func (s *ImageCatalogueServer) Speak() {}

Not sure whether this is also related to a previous issue I raised https://github.com/Microsoft/vscode/issues/10941, see also related issue for that one https://github.com/electron/electron/issues/6993

Well, the name is the name but we can make the dropdown a little wider so that there is more space. We can also make sure the label has a title set

Thanks @jrieken.  Is it possible to change the ellipsis truncation so that it happens at the beginning/middle, not at at the end?

Tricky... Currently, it's the browser adding those, not us.

The current popup width is definitely far too narrow for descriptive function names in various languages. The above examples would be some of the shorter names in a non object-oriented non-overloading language like C that I work with.
Why not make the popup the same width as one of:

the completion popup (preferably the wider version when the information panel isn't open). Perhaps it would be possible to even include some of the additional information from that longer term?
at least the default side panel width (which I tend to find a little to narrow but generally gets the first few letters)
resize to fit the widest item. It looks like it might currently be based loosely on the current (possibly truncated) breadcrumb item?

It would be even better if the popups were resizeable (preferably by dragging, but a config setting would work). Basically all other panels that can show a function signature are significantly wider and/or can be resized. There is already a lot of wasted space from chevron arrow expansions.
As for the breadcrumbs themselves, why are they truncated at all when there is available viewport width? You are likely have half a screen or more there.

The panel is now proportional to the window width. Also, a title is assigned and the max-width restriction for breadcrumb items has been relaxed.


Bug: Header capitalization capitalizes words after words that contain numbers

Describe the Bug
When header capitalization is selected ("first letter" style) and there's an acronym or word that contains a number the next word will be capitalized
How to Reproduce
Examples to reproduce issue with
# EC2 instance
## EC2 lab05 load balancer
### lab07 bread maker

The result of the above markdown is:
# EC2 Instance

## EC2 lab05 Load balancer

### lab07 Bread maker

(Instance, Load, and Bread are incorrectly capitalized)
Expected output if applicable:
# EC2 instance

## EC2 lab05 load balancer

### Lab07 bread maker

Screenshots
If applicable, add screenshots to help explain your problem.
Device

[x] Desktop
[ ] Mobile

This looks like a simple fix. I will give it a shot. The problem is that technically speaking numbers are not a part of words which is why capitalization did not work on them. I can make it more relaxed and see how it handles them.

You will need to ignore case or add the acronyms in question to the ignore list or else the 2nd letter of the acronym will be converted to a lowercase letter (just an FYI).

This should be fixed on master and in the next release. Please let us know if that is not the case.


SSDT permissions for R / Python not recognized as valid sql statements

This issue has been moved from a ticket on Developer Community.

[severity:I'm unable to use this version]
The data tools return a SQL70596 error (Cannot determine securable object class from permission EXECUTE ANY EXTERNAL SCRIPT.) on the following statement:
GRANT EXECUTE ANY EXTERNAL SCRIPT TO
I've seen the same sql error in previois versions of the DACFX Framework / Sqlpackage.exe (fixed in the latest version) in the past too, when deploying to a database where this permission was granted directly from sql server management studio.

Original Comments
(no comments)

Original Solutions
(no solutions)

Sorry this isn't actually related to PTVS. We've reassigned it internally to the correct team.


KubeCon + CloudNativeCon

[ ] KubeCon + CloudNativeCon Europe 2018 in Copenhagen, May 2-4
[ ] KubeCon + CloudNativeCon China 2018 in Shanghai, November 14-15
[ ] KubeCon + CloudNativeCon North America 2018 in Seattle, December 11-13

KubeCon + CloudNativeCon 2017

[ ] Cloud Native at AWS - Adrian Cockcroft, Vice President Cloud Architecture Strategy, Amazon Web Services

[ ] Container Runtime and Image Format Standards - What it Means to be “OCI-Certified” [I] - Jeff Borek, IBM & Stephen Walli, Microsoft

[ ] Using Containers for Continuous Integration and Continuous Delivery [I] - Carlos Sanchez, CloudBees

[ ] Kata Containers: Hypervisor-Based Container Runtime - Xu Wang, HyperHQ & Samuel Ortiz, Intel

[ ] CRI-O: All the Runtime Kubernetes Needs, and Nothing More - Mrunal Patel, Red Hat

[ ] Building Better Containers: A Survey of Container Build Tools [I] - Michael Ducy, Chef

[ ] Kubernetes: This Job is Too Hard: Building New Tools, Patterns and Paradigms to Democratize
Distributed System Development - Brendan Burns, Distinguished Engineer, Microsoft

[ ] Red Hat: Making Containers Boring (again) - Clayton Coleman, Architect, Kubernetes and
OpenShift, Red Hat

[ ] Pushing the Limits of Kubernetes with Game of Thrones - Zihao Yu & Illya Chekrygin, HBO

[ ] The Road Ahead on the Kubernetes Journey - Craig McLuckie, CEO, Heptio

[ ] Kubernetes Community - Sarah Novotny, Head of Open Source Strategy, Google Cloud Platform,
Google

[ ] What's Next? Getting Excited about Kubernetes in 2018 - Clayton Coleman, Architect, Kubernetes
and OpenShift, Red Hat

[ ] What is Kubernetes? - Brian Grant, Principal Engineer, Google

一个成长之痛是以前的服务器跑的发行版是几乎不变的，应用迁移需要很大从的成本和downtime,我们需要在上一层把对基础设施的依赖解耦出来。


Add OVS_VERSION to hw-offload CI docker build

Following #1985, the docker build command needs to be provided with
the OVS_VERSION variable. Since hw-offload CI uses the docker build
command directly instead of make build, it started to fail. This
patch fixes this by adding the variable to the docker build command.

/test-hw-offload

@antoninbas could you have a look at this? thanks

jenkins-hw-offload is passing for this PR
/skip-all


masterpdfeditor: 5.8.33 -> 5.8.46

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/masterpdfeditor/versions.
meta.description for masterpdfeditor is: "Master PDF Editor"
meta.homepage for masterpdfeditor is: "https://code-industry.net/free-pdf-editor/"
meta.changelog for masterpdfeditor is: ""
Updates performed

Version update

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
Warning: no invocation of /nix/store/3r3sj46lk3sxy45096avn1d3dkk4g1as-masterpdfeditor-5.8.46/bin/masterpdfeditor5 had a zero exit code or showed the expected version
Warning: no invocation of /nix/store/3r3sj46lk3sxy45096avn1d3dkk4g1as-masterpdfeditor-5.8.46/bin/.masterpdfeditor5-wrapped had a zero exit code or showed the expected version
0 of 2 passed binary check by having a zero exit code.
0 of 2 passed binary check by having the new version present in output.
found 5.8.46 with grep in /nix/store/3r3sj46lk3sxy45096avn1d3dkk4g1as-masterpdfeditor-5.8.46
found 5.8.46 in filename of file in /nix/store/3r3sj46lk3sxy45096avn1d3dkk4g1as-masterpdfeditor-5.8.46

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
0 x86_64-darwin rebuild(s)

First fifty rebuilds by attrpath
masterpdfeditor

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/3r3sj46lk3sxy45096avn1d3dkk4g1as-masterpdfeditor-5.8.46 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A masterpdfeditor https://github.com/r-ryantm/nixpkgs/archive/5ba31f02b866de9e409bdbb35fdec8dd90a2fb0b.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/3r3sj46lk3sxy45096avn1d3dkk4g1as-masterpdfeditor-5.8.46
ls -la /nix/store/3r3sj46lk3sxy45096avn1d3dkk4g1as-masterpdfeditor-5.8.46/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

masterpdfeditor

Maintainer pings
cc @cmcdragonkai for testing.

Tested opening random PDFs on x86_64-linux


Arrow Function mutator missing for JavaScript

Summary

Arrow Function mutator exists in the TypeScript mutator but not in the JavaScript mutator.
This is already fixed by PR #1898, which is going through its review cycle at this point.
I also reported this in https://github.com/stryker-mutator/stryker/issues/1893#issuecomment-558431379.
Stryker config

see https://github.com/stryker-mutator/stryker/blob/master/packages/javascript-mutator/stryker.conf.js
Test runner config
see https://github.com/stryker-mutator/stryker/blob/master/packages/javascript-mutator/package.json
Stryker environment
see https://github.com/stryker-mutator/stryker/blob/master/packages/javascript-mutator/package.json

Test runner environment
see https://github.com/stryker-mutator/stryker/blob/master/packages/javascript-mutator/package.json
Your Environment

software
version(s)

node
12.13.1

npm
6.12.1

Operating System
Linux, macOS

Add stryker.log

Fixed with #1898


download-assets does not export all assets

when running download-assets the out/assets_extracted folder does not contain all assets. As it stands with the current DSA version of 27.4, only 12 folders are generated in this out folder.
The folder out/assets does seem to contain all assets however.

Hi Urza,
I tried yesterday, and the dsa-downloader can export all assets.
Do you think using the Docker version for exporting would be more reliable?


Purpose of picamera2 Support - HDMapping Integration?

Hi!
First, thank you for creating such a well-thought-out repository and for sharing it as open source — it’s greatly appreciated!
I haven’t fully explored the entire HDMapping repo yet, so I might have missed some details. I’m curious about the purpose of adding picamera2 support. Is it intended to automate the colorization of the point cloud in HDMapping, or does it serve another specific function?
Thanks in advance!

Some end-users would like to have additional photos during inspection.
This camera is making shots each 1s, thus it will be easier to orient in point cloud.
We will explore more functionalities if we have time:)

I understand, and that makes sense.
Integrating a 360 camera supported by Raspberry Pi 4 and/or 5, allowing the user to set time intervals, and exporting files along with a CSV containing image names and corresponding XYZ coordinates would be highly useful for this end-user :)
Again - great work.

Hello again @JanuszBedkowski.
I have added a button to the Mandeye controller that operates the Theta Z1 camera. When pressed, this button captures a 360° image and saves it in the /360 directory within the output folder, alongside the associated LiDAR/GNSS/IMU data. The LiDAR timestamp recorded at the time of the button press is saved as a .txt file in the same directory. My goal is not to colorize the final output .laz. Instead, my goal is to use this for documentation purposes.
My question is: How can I use this recorded timestamp to extract the corresponding XYZ position from the final odometry output in HDMapping? Could you provide guidance or a hint on how to approach this?
Happy New Year! 😊

Can You share this project --> so we can integrate it.
In multi_view_tls_registration_step_2.exe You have plenty of buttons for trajectory export.
Please use 'save all marked trajectories to csv ...'


fixup validation errors for kube 1.22 deprecations

Was just taking the self-hosted instructions for a spin and followed
this guide
https://kubernetes.io/docs/reference/using-api/deprecation-guide/#v1-22
... very naively to get the validation errors to stop. My editor also
auto-formatted so the reader may want to use the w=1 query param.
I ended up just dropping all the pre-v1 versions of the crd's to get
something working quickly. I understand there are probably a number of
reasons why this isn't usable as is, but I figured I'd at least put it
up in case anyone could use it for prior art.

Thanks for the contribution! Merged.


Deleting a segment should also delete all related variants

Currently, it doesn't

Think there needs to be a warning if that's the case.

@tmsndrs Also if you delete the main page, that would delet all the variants... Not sure if that one is okay without warning?


aws-workspaces: <IP_ADDRESS>5 -> <IP_ADDRESS>5

Motivation for this change
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 119151 at caf96de6 run on x86_64-linux 1

1 package built successfully:

aws-workspaces

1 suggestion:

warning: missing-phase-hooks
installPhase should probably contain runHook preInstall and runHook postInstall.
Near pkgs/applications/networking/remote/aws-workspaces/default.nix:48:3:
   |
48 |   installPhase = ''
   |   ^


Add game class and its methods

In this pull request, I did the following:

[ ] Created a branch.
[ ] Added a class Game.
[ ] Added methods in the UML.
[ ] Check the linter

Thanks, @flemton


Improved Windows API Checker

XRTK - Mixed Reality Toolkit Pull Request
Overview

Removed string usages for Windows API Checker

I really how how Reflectiony this feels. I don't understand why MSFT would do it this way.

@FejZa before you merge this could you build and deploy this? I didn't really get a chance to make sure it actually works on device.


swagger-api#1158: Provide the ability to toggle the match skipping for inline model resolving

Background and reasoning in swagger-api#1158.

@gracekarina Could you please review this PR when you have time? Thanks!

Hi @xnsdns, looking into it. Thanks


Twitch Homepage Clone

Is your feature request related to a problem? Please describe.
A Clone of Twitch Homepage with Dark Theme applied
Describe the solution you'd like.
The project will make use of:

HTML
CSS
Bootstrap 5

Describe alternatives you've considered.
No response
Add any other context or screenshots about the feature request here.

Issue made under GSSoC'22 contributions.

Our Topper comes here😁😁 @XZANATOL
assigned u

/assign


Make __pydantic_extra__ = None when extra='forbid'

This resolves https://github.com/pydantic/pydantic/issues/6332
Here's the pydantic PR adding the relevant test: https://github.com/pydantic/pydantic/pull/6341

Oh this is the weird error I was getting!!