Docker DNS resolution not working

docker logs nextcloud-app_proxy-1
yarn run v1.22.19
$ node ./bin/www
[HPM] Proxy created: /  -> http://nextcloud_web_1:80
Waiting for nextcloud_web_1:80 to open...
Error wating for port: "The address 'nextcloud_web_1' cannot be found"
Retrying...
Error wating for port: "The address 'nextcloud_web_1' cannot be found"
Retrying...
[arch@manjaroumbrelvm ~]$ sudo docker network inspect umbrel_main_networksudo docker logs nextcloud-web-1
[]
Error response from daemon: network umbrel_main_networksudo not found
Error response from daemon: network docker not found
Error response from daemon: network logs not found
Error response from daemon: network nextcloud-web-1 not found

debug
./debug
=====================
= Umbrel debug info =
=====================
Umbrel version
0.5.4
Memory usage
           total        used        free      shared  buff/cache   available

Mem:            4,1G        1,9G        125M         13M        2,4G        2,2G
Swap:           5,4G         12K        5,4G
total: 46.1%
system: 37.8%
nextcloud: 8.3%
Memory monitor logs
2024-02-11 02:06:23 Memory monitor running!

Executing hook: /home/arch/umbrel/app-data/nextcloud/hooks/pre-start
time="2024-02-11T02:10:00+01:00" level=warning msg="network default: network.external.name is deprecated. Please set network.name with external: true"
Container nextcloud-redis-1  Creating
Container nextcloud-db-1  Creating
Container nextcloud-app_proxy-1  Creating
Container nextcloud-db-1  Created
Container nextcloud-app_proxy-1  Created
Container nextcloud-redis-1  Created
Container nextcloud-web-1  Creating
Container nextcloud-cron-1  Creating
Container nextcloud-web-1  Created
Container nextcloud-cron-1  Created
Container nextcloud-redis-1  Starting
Container nextcloud-db-1  Starting
Container nextcloud-app_proxy-1  Starting
Container nextcloud-db-1  Started
Container nextcloud-redis-1  Started
Container nextcloud-web-1  Starting
Container nextcloud-cron-1  Starting
Container nextcloud-app_proxy-1  Started
Container nextcloud-web-1  Started
Container nextcloud-cron-1  Started
Executing hook: /home/arch/umbrel/app-data/nextcloud/hooks/post-start
Waiting for file (/home/arch/umbrel/app-data/nextcloud/data/nextcloud/.htaccess) to exist...
.htaccess file exists
Writing 'LimitRequestBody 0' config. to .htaccess
Saving app nextcloud in DB...
Successfully installed app nextcloud
Got signal: debug
karen is getting triggered!
time="2024-02-11T02:11:13+01:00" level=warning msg="network default: network.external.name is deprecated. Please set network.name with external: true"
Debug result file generated
Docker containers
NAMES                   STATUS
nextcloud-web-1         Up 21 minutes
nextcloud-cron-1        Up 21 minutes
nextcloud-redis-1       Up 21 minutes
nextcloud-db-1          Up 21 minutes
nextcloud-app_proxy-1   Up 21 minutes
nginx                   Up 30 minutes
manager                 Up 30 minutes
dashboard               Up 30 minutes
auth                    Up 30 minutes
tor_proxy               Up 30 minutes
Umbrel logs
manager  | ::ffff:<IP_ADDRESS> - - [Sun, 11 Feb 2024 01:36:47 GMT] "GET /v1/system/update-status HTTP/1.0" 304 - "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36"
manager  |
manager  | umbrel-manager
manager  | ::ffff:<IP_ADDRESS> - - [Sun, 11 Feb 2024 01:36:47 GMT] "GET /v1/apps?installed=1 HTTP/1.0" 304 - "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36"
manager  |
manager  | umbrel-manager
manager  | ::ffff:<IP_ADDRESS> - - [Sun, 11 Feb 2024 01:36:47 GMT] "GET /v1/system/memory HTTP/1.0" 200 217 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36"
manager  |
manager  | umbrel-manager
manager  | ::ffff:<IP_ADDRESS> - - [Sun, 11 Feb 2024 01:36:47 GMT] "GET /v1/system/storage HTTP/1.0" 200 220 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36"
manager  |
manager  | umbrel-manager
manager  | ::ffff:<IP_ADDRESS> - - [Sun, 11 Feb 2024 01:36:47 GMT] "GET /v1/apps HTTP/1.0" 304 - "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36"
manager  |
manager  | umbrel-manager
manager  | ::ffff:<IP_ADDRESS> - - [Sun, 11 Feb 2024 01:36:47 GMT] "GET /v1/apps?installed=1 HTTP/1.0" 304 - "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36"
manager  |
manager  | umbrel-manager
manager  | ::ffff:<IP_ADDRESS> - - [Sun, 11 Feb 2024 01:36:47 GMT] "GET /v1/system/memory HTTP/1.0" 304 - "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36"
manager  |
manager  | umbrel-manager
manager  | ::ffff:<IP_ADDRESS> - - [Sun, 11 Feb 2024 01:36:47 GMT] "GET /v1/system/storage HTTP/1.0" 304 - "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36"
manager  |
manager  | umbrel-manager
manager  | ::ffff:<IP_ADDRESS> - - [Sun, 11 Feb 2024 01:36:47 GMT] "GET /v1/system/get-update HTTP/1.0" 304 - "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36"
manager  |
manager  | umbrel-manager
manager  | ::ffff:<IP_ADDRESS> - - [Sun, 11 Feb 2024 01:36:48 GMT] "GET /v1/system/get-update HTTP/1.0" 304 - "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36"
manager  |
manager  | umbrel-manager
Tor Proxy logs
tor_proxy  | Feb 11 01:06:59.000 [notice] Bootstrapped 56% (loading_descriptors): Loading relay descriptors
tor_proxy  | Feb 11 01:06:59.000 [notice] Bootstrapped 62% (loading_descriptors): Loading relay descriptors
tor_proxy  | Feb 11 01:06:59.000 [notice] Bootstrapped 71% (loading_descriptors): Loading relay descriptors
tor_proxy  | Feb 11 01:06:59.000 [notice] Bootstrapped 75% (enough_dirinfo): Loaded enough directory info to build circuits
tor_proxy  | Feb 11 01:06:59.000 [notice] Bootstrapped 80% (ap_conn): Connecting to a relay to build circuits
tor_proxy  | Feb 11 01:06:59.000 [notice] Bootstrapped 85% (ap_conn_done): Connected to a relay to build circuits
tor_proxy  | Feb 11 01:06:59.000 [notice] Bootstrapped 89% (ap_handshake): Finishing handshake with a relay to build circuits
tor_proxy  | Feb 11 01:07:00.000 [notice] Bootstrapped 90% (ap_handshake_done): Handshake finished with a relay to build circuits
tor_proxy  | Feb 11 01:07:00.000 [notice] Bootstrapped 95% (circuit_create): Establishing a Tor circuit
tor_proxy  | Feb 11 01:07:00.000 [notice] Bootstrapped 100% (done): Done
App logs
nextcloud
WARN[0000] network default: network.external.name is deprecated. Please set network.name with external: true
redis-1  | 1:C 11 Feb 2024 01:15:57.647 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
redis-1  | 1:M 11 Feb 2024 01:15:57.648 * monotonic clock: POSIX clock_gettime
redis-1  | 1:M 11 Feb 2024 01:15:57.648 * Running mode=standalone, port=6379.
redis-1  | 1:M 11 Feb 2024 01:15:57.648 # Server initialized
redis-1  | 1:M 11 Feb 2024 01:15:57.648 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
redis-1  | 1:M 11 Feb 2024 01:15:57.649 * Loading RDB produced by version 6.2.2
redis-1  | 1:M 11 Feb 2024 01:15:57.649 * RDB age 2 seconds
redis-1  | 1:M 11 Feb 2024 01:15:57.649 * RDB memory usage when created 0.77 Mb
redis-1  | 1:M 11 Feb 2024 01:15:57.649 * DB loaded from disk: 0.000 seconds
redis-1  | 1:M 11 Feb 2024 01:15:57.649 * Ready to accept connections
app_proxy-1  | Retrying...
app_proxy-1  | Error wating for port: "The address 'nextcloud_web_1' cannot be found"
app_proxy-1  | Retrying...
app_proxy-1  | Error wating for port: "The address 'nextcloud_web_1' cannot be found"
app_proxy-1  | Retrying...
app_proxy-1  | Error wating for port: "The address 'nextcloud_web_1' cannot be found"
app_proxy-1  | Retrying...
app_proxy-1  | Error wating for port: "The address 'nextcloud_web_1' cannot be found"
app_proxy-1  | Retrying...
app_proxy-1  | Error wating for port: "The address 'nextcloud_web_1' cannot be found"
cron-1       | #1 /var/www/html/lib/base.php(1200): OC::init()
cron-1       | #2 /var/www/html/cron.php(43): require_once('/var/www/html/l...')
cron-1       | #3 {main}
cron-1       | crond: USER www-data pid   9 cmd php -f /var/www/html/cron.php
cron-1       | Exception: Not installed in /var/www/html/lib/base.php:283
cron-1       | Stack trace:
cron-1       | #0 /var/www/html/lib/base.php(709): OC::checkInstalled(Object(OC\SystemConfig))
cron-1       | #1 /var/www/html/lib/base.php(1200): OC::init()
db-1         | 2024-02-11  1:15:58 0 [Note] InnoDB: 10.5.12 started; log sequence number 45118; transaction id 20
cron-1       | #2 /var/www/html/cron.php(43): require_once('/var/www/html/l...')
cron-1       | #3 {main}
db-1         | 2024-02-11  1:15:58 0 [Note] Plugin 'FEEDBACK' is disabled.
db-1         | 2024-02-11  1:15:58 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
db-1         | 2024-02-11  1:15:58 0 [Note] InnoDB: Buffer pool(s) load completed at 240211  1:15:58
db-1         | 2024-02-11  1:15:58 0 [Note] Server socket created on IP: '::'.
db-1         | 2024-02-11  1:15:58 0 [Warning] 'proxies_priv' entry '@% root@439ff8dd6388' ignored in --skip-name-resolve mode.
db-1         | 2024-02-11  1:15:58 0 [Note] Reading of all Master_info entries succeeded
db-1         | 2024-02-11  1:15:58 0 [Note] Added new Master_info '' to hash table
db-1         | 2024-02-11  1:15:58 0 [Note] mysqld: ready for connections.
db-1         | Version: '10.5.12-MariaDB-1:10.5.12+maria~focal'  socket: '/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
web-1        | Configuring Redis as session handler
web-1        | => Searching for scripts (*.sh) to run, located in the folder: /docker-entrypoint-hooks.d/before-starting
web-1        | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using <IP_ADDRESS>. Set the 'ServerName' directive globally to suppress this message
web-1        | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using <IP_ADDRESS>. Set the 'ServerName' directive globally to suppress this message
web-1        | [Sun Feb 11 01:15:59.694935 2024] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.57 (Debian) PHP/8.2.15 configured -- resuming normal operations
web-1        | [Sun Feb 11 01:15:59.695543 2024] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
==== Result ====
==== END =====

containers on same networks
[manjaroumbrelvm scripts]# docker network connect umbrel_main_network nextcloud-app_proxy-1
Error response from daemon: endpoint with name nextcloud-app_proxy-1 already exists in network umbrel_main_network
[manjaroumbrelvm scripts]# docker network connect umbrel_main_network nextcloud_web_1
Error response from daemon: No such container: nextcloud_web_1
[manjaroumbrelvm scripts]# docker ps
CONTAINER ID   IMAGE                          COMMAND                  CREATED          STATUS          PORTS                                       NAMES
673bf45b6a07   nextcloud:28.0.2-apache        "/entrypoint.sh apac…"   25 minutes ago   Up 25 minutes   80/tcp                                      nextcloud-web-1
a44039e8dd42   nextcloud:28.0.2-apache        "/cron.sh"               25 minutes ago   Up 25 minutes   80/tcp                                      nextcloud-cron-1
d4f4727f073b   redis:6.2.2-buster             "docker-entrypoint.s…"   25 minutes ago   Up 25 minutes   6379/tcp                                    nextcloud-redis-1
81aacee807c1   mariadb:10.5.12                "docker-entrypoint.s…"   25 minutes ago   Up 25 minutes   3306/tcp                                    nextcloud-db-1
f91be32db191   getumbrel/app-proxy:v0.5.2     "docker-entrypoint.s…"   25 minutes ago   Up 25 minutes   <IP_ADDRESS>:8081->8081/tcp, :::8081->8081/tcp   nextcloud-app_proxy-1
21ce16826571   nginx:1.17.8                   "nginx -g 'daemon of…"   34 minutes ago   Up 34 minutes   <IP_ADDRESS>:80->80/tcp, :::80->80/tcp           nginx
9ddc5f3f7e04   getumbrel/manager:0.5.4        "docker-entrypoint.s…"   34 minutes ago   Up 34 minutes   3006/tcp                                    manager
5a4e86199400   getumbrel/dashboard:0.5.4      "docker-entrypoint.s…"   34 minutes ago   Up 34 minutes   3004/tcp                                    dashboard
0d1187be272c   getumbrel/auth-server:v0.5.1   "docker-entrypoint.s…"   34 minutes ago   Up 34 minutes   <IP_ADDRESS>:2000->2000/tcp, :::2000->2000/tcp   auth
b860eda756e0   getumbrel/tor:<IP_ADDRESS>          "tor"                    34 minutes ago   Up 34 minutes   <IP_ADDRESS>:9050->9050/tcp                    tor_proxy
[manjaroumbrelvm scripts]# docker network connect umbrel_main_network nextcloud-web-1
Error response from daemon: endpoint with name nextcloud-web-1 already exists in network umbrel_main_network

Fixed on the new installer script version:  replace docker-compose v2 with v1
Replace docker-compose from pacman repos v2 with AUR package docker-compose-v1-bin to fix errors starting apps after install due to network.external.name is deprecated on docker-compose v2 and Umbrel is designed and it works with docker-compose v1 on debian systems.


Fixes for IE8

Added augment.js to support Array.map and Array.filter
Replaced node.textContent by node.innerText
Use attachEvent when addEventListener is not there

The site now runs in IE8 without throwing errors.

.innerText fails in Firefox.
You either need to shim .textContent for IE8 or use a sensible helper function
var text;
if (document.body.innerText) {
  text = function (el, v) { return v ? el.innerText = v : el.innerText; }
} else if (document.body.textContent) {
  text = function (el, v) { return v ? el.textContent = v : el.textContent; }
}

@Raynos: Thanks. I addressed the problems with .innerText and attachEvent.
It is not perfect but at least the site works in ie8 without throwing errors. There are still issues remaining:

the keyup event does not exist on window in ie8
the "tell me more" link does not work.

Now I have a question: Is it desirable to have the site work in ie8? It you think it is not worth it, I won't bother anymore.

@Costo I personally think it's desirable to have the site work in IE8 (but wouldn't touch IE7).
I still think you should strip everything but the map and filter emulation out of augment.js

Thanks.
I didn't have time until now to make the custom augment.js file but since it is merged already I'll skip it.


fix(seed): Add tests and solution for Project Euler 14

Pre-Submission Checklist

[x] Your pull request targets the staging branch of freeCodeCamp.
[x] Branch starts with either fix/, feature/, or translate/ (e.g. fix/signin-issue)
[x] You have only one commit (if not, squash them into one commit).
[x] All new and existing tests pass the command npm test. Use git commit --amend to amend any fixes.

Type of Change

[x] Small bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds new functionality)
[ ] Breaking change (fix or feature that would change existing functionality)
[ ] Add new translation (feature adding new translations)

Checklist:

[x] Tested changes locally.
[ ] Addressed currently open issue (replace XXXXX with an issue no in next line)

Closes #XXXXX
Description

Added tests and a working solution for problem 14.
Here's the solution for QA:
function longestCollatzSequence(limit) {
  let longestSequenceLength = 0;
  let startingNum = 0;

  function sequenceLength(num) {
    let length = 1;

    while (num >= 1) {
      if (num === 1) {
        break;
      } else if (num % 2 === 0) {
        num = num / 2;
        length++;
      } else {
        num = num * 3 + 1;
        length++;
      }
    }
    return length;
  }

  for (let i = 2; i < limit; i++) {
    let currSequenceLength = sequenceLength(i);
    if (currSequenceLength > longestSequenceLength) {
      longestSequenceLength = currSequenceLength;
      startingNum = i;
    }
  }

  return startingNum;
}

Thanks @scissorsneedfoodtoo 👍

@Bouncey, thank you for taking the time to QA this!


Refactor CAS internals support: remove Kryo

Has this been tested with CAS?

Not directly as version 2.0.0 is far from being ready.
That said, it has been tested indirectly. Currently, strings were properly serialized by Kryo, other objects needed to be declared (with some specific serializers). As all attributes will be turned into strings, there won't be any problem.


add checks on DBScan params

Description
Add checks on DBScan Params min_samples, leaf_size, n_jobs, p
Details of changes proposed in this pull request:
min_samples: added a check to raise value error if min_samples < 1
min_samples: added a check to raise type error if min_samples is float
leaf_size: added a check to raise value error if leaf_size < 1
leaf_size: added a check to raise type error if leaf_size is float
n_jobs: added a check to raise type error if n_jobs is float
p: added a check to raise value error if p < 0.0

please align code with pep8

Replaced in stock sklearn with parameter constraints and applied in https://github.com/intel/scikit-learn-intelex/pull/1145.


Is it possible to initialize an element without first attaching it to the DOM?

input = $('<input>');
input.durationPicker();
$("body").append(input );

I get
<input style="display: none;" />

Actually, it would help me a whole lot if init() would return mainInputReplacer. This would allow me to get the newly created element and move it wherever I want.


InlayHints don't work with gopls

Description
I have configured gopls in the following way. Everything works except for the inlay hints settings.
lspconfig.gopls.setup({
        cmd = { "gopls" },
        filetypes = { "go", "gomod", "gowork", "gotmpl" },
        single_file_support = true,
        settings = {
            gopls = {
                gofumpt = true,
                staticcheck = true,
                analyses = {
                    unusedparams = true,
                    unusedvariable = true,
                    unusedwrite = true,
                },
                hints = {
                    assignVariableTypes = true,
                    compositeLiteralFields = true,
                    compositeLiteralTypes = true,
                    constantValues = true,
                    parameterNames = true,
                    rangeVariableTypes = true,
                },
            }
        },
    })

Are InlayHints not supported by neovim at all? Or is it just an issue at my end?
Similarly with codeLens, is it not supported on neovim?

build with latest commit if still not work report on neovim.


Use VEP version as docker image tags

In order to make the versioning of VEP docker images more streamlined,
we use more conventional docker image tags applied to the following
repo:
gcr.io/cloud-lifesciences/vep

I pushed the following image using this change:
gcr.io/cloud-lifesciences/vep:91


platformio-ide-terminal not installing

[x] I have reset Atom to defaults prior to submitting report.
[x] I have not reset Atom to defaults prior to submitting report.

Description
I am not able to install platformio-ide-terminal I want to start coding with python for that I require that but its not getting installed I tried to install it more than 20 times
Steps to reproduce

Expected behavior:
Actual behavior:
Reproduces how often:
Versions

> atom --version

> apm --version

OS name and version:
Windows 10
Platformio-ide-terminal version:
Additional Information

Ignoring the details gets the issue closed


Terraria crushing when storage unit below storage heart being destroyed

After v<IP_ADDRESS> update my storage started destroying yourself and crushing terraria after i dismantle storage below storage heart level or when i crafting in multiplayer session or after opening doors. I cannot place storage heart/units above blocks and under storage units too, but i can place them below storage heart or unit. It normally works, but lower empty storage units does not have immunity to be destroyed than can lead to crushing terraria.
https://youtu.be/BIRla0le_qo
https://youtu.be/oI7d_TSTHLE (played on russian language. Multiplayer server just crushed. Tested with vanilla doors and they have same problem)

Try the new version and tell me if it's fixed

It works fine. Thx


fix pathconf call introduced in 7f302201

the code was copied from src/unshield.c, but the include was missing and "prefix" was undefined in that context

Exercising all #ifdef paths is fun...

Yupp, and having weird arches in Debian's build network helps ;)


UI scanning progress bar

For your consideration: When scanning large memory spaces, it would be convenient to have a progress bar so the user can see that the application is not stuck and can get the general idea of how long they have to wait for.
I've made a basic example implementation of this at SmiVan/med:progressbar, but I'm a Qt beginner and don't practice C++ very often, so its probably a bit too primitive/messy for a pull request.

That being said, I think that the general idea of incrementing a mutex-guarded counter at the end of each map-scanning thread is sufficient to provide a decent progress bar without affecting the scanning speed too much.

Hi @SmiVan , thank you for this great feature. I just created a staging branch (https://github.com/allencch/med/tree/staging). Do you mind to create a pull request and target to staging branch?


Cut release v0.2.0.

We did not do any release after long time, so v0.2.0 is quite huge.
Added guide for cutting release as well in this PR. Set goal for release at least every 6 weeks, do we agree on this? @brancz @domgreen?
There are still lots of nice features and fixed in pending PRs, but I feel like this release is big enough in terms of features. (:
Signed-off-by: Bartek Plotka<EMAIL_ADDRESS>

lgtm :+1: (this does still need a make docs)


OverflowContexts.jl

Thought I would formally link to my variant in this area, OverflowContexts.jl, in part to explore if they could/should be merged.

When I made CheckedArithmeticCore(#6, #8), CheckedArithmetic.jl was the only package that "practically worked" with respect to overflow issue.
Aside from the fact that OverflowContexts.jl is superior in terms of functionality, I am interested in the package name.
https://github.com/JuliaMath/CheckedArithmetic.jl/issues/9#issue-704252767

As mentioned in https://discourse.julialang.org/t/rfc-what-should-the-arithmetic-within-the-fixedpointnumbers-be/46697, I would like to add the definitions of arithmetic operations such as saturating_add and wrapping_sub, currently defined in FixedPointNumbers#master, to the CheckedArithmeticCore.
They are "unchecked", so it is a self-contradiction that they join the CheckedArithmetic. 😅 However, I think it's reasonable to assume that they just provide the opt-out functionality.

In other words, if saturating arithmetic is to be supported, I think OverflowContext (or its derivatives) is more appropriate, at least in terms of name.
This is partly my fault, but this package has not changed practically for a long time.
@timholy, what do you think about making OverflowContext.jl the successor to this package?

@BioTurboNick Is OverflowContexts.jl compatible with julia v1.0?
Since v1.0 is old, I don't see the need for the additional support, but if it actually works, supporting v1.0 might make the migration smoother.

xref: https://discourse.julialang.org/t/revisiting-saturating-intrinsics/112917/

It seems OverflowContexts.jl is only partly compatible with 1.0, I'll take a closer look to see if it's easily addressable, see no reason not to try.

Good news, it appears to be compatible after all. Just forced me to confront some bugs and deal with a change in 1.11.

I am not a member of JuliaMath, so I cannot transfer OverflowContexts.jl to the organization. (It is, of course, reasonable to maintain it as a personal repository.)
And @timholy is always busy.

We can add you and let you keep maintaining it here. If you ping me on Monday I'll do it.

@StefanKarpinski
Let me make sure there is no misunderstanding.
By "you" do you mean me (@kimikage)? Or you guys, i.e. @BioTurboNick too?
By “here” do you mean “JuliaMath”?
If a member of JuliaMath transfers the repository via the member, at least I don't have to join JuliaMath.
Also, this seems like something that should be reviewed by @timholy once.
As you know, he is the creator of CheckedArithmetic.jl and has given good thought to the overflow issue (cf. https://discourse.julialang.org/t/rfc-what-should-the-arithmetic-within-the-fixedpointnumbers-be/46697/6).
At least he will reply within 3 years, unlike me. 😄

This works for me, happy to contribute it to the org and also to keep maintaining it.

Ok, who should I add to the JuliaMath org? @BioTurboNick and @kimikage? Or just @BioTurboNick?

One "authorized" person should be enough for this matter (i.e., the repository transfer).
I'd be happy to have more contributors, though.

I've invited you both to JuliaMath.

I don't have a deep attachment to this package. If OverflowContexts.jl is superior---and it looks to be---I'd strongly support having other packages migrate to using it.
One missing element might be https://github.com/JuliaMath/CheckedArithmetic.jl?tab=readme-ov-file#accumulatortype-and-acc. The basic idea is that in addition to detecting/handling overflow, packages should also be able to recommend ways to avoid it. Generic algorithms leverage that info.

As for accumulatortype, 4 years ago I expressed my concerns.
https://github.com/JuliaMath/FixedPointNumbers.jl/pull/146
I don't think something like accumulatortype is unnecessary, but we could offer something more safer and faster (with SIMD).
So, I am not going to force users who are already using accumulatortype to migrate to OverflowContexts.jl.
Seeing that packages which provide numeric types, including FixedPointNumbers.jl, do not implement accumulatortype, it seems to me that it would be better to create a separate package (like SafeAccumulation.jl or something). Unlike 4 years ago, we now have the package extension mechanism.


Update README.md to reflect the docker-compose.yml filename change, which breaks the hyperlink

Changed the link for 'examples/docker-compose/docker-compose.yaml'.  The file is now called 'examples/docker-compose/docker-compose.yml'
The original link results in a 404 as the file did not exist, due to the extension change

Description
Describe your changes in detail
Motivation and Context
This PR addresses: [GitHub issue or Jira ticket number]
Why is this change required? What problem does it solve?
How Has This Been Tested?
Please describe in detail how you tested your changes.
Include details of your testing environment, and the tests you ran to
see how your change affects other areas of the code, etc.
Screenshots (optional):
Types of changes

Chore (a change that does not modify the application functionality)
Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Breaking change (fix or feature that would cause existing functionality to change)
Database Migrations

Checklist:

[ ] I have met the contributing prerequisites

Assigned myself to this PR
Added the appropriate labels
Associated an issue: https://github.com/SpecterOps/BloodHound/issues/672
Read the Contributing guide: https://github.com/SpecterOps/BloodHound/wiki/Contributing

[ ] I have ensured that related documentation is up-to-date

Open API docs
Code comments (GoDocs / JSDocs)

[ ] I have followed proper test practices

Added/updated tests to cover my changes
All new and existing tests passed

I have read the CLA Document and I hereby sign the CLA

recheck

Tracked internally as BP-881.

@Roltere - thank you very much for your contribution.
If you wouldn't mind reaching out to me at shinck [at] specterops [dot] io with your address and t-shirt size, I'd love to get you a swag package as a token of our appreciation for your contribution!


Bug: adb-wireless + scrcpy + using some script of adb to simulate touches -> scrcpy closes

[ V] I have read the FAQ.
[V ] I have searched in existing issues.

Environment

OS: [e.g. Debian, Windows, macOS...]
Windows

scrcpy version: [e.g. 1.12.1]
v1.18

installation method: [e.g. manual build, apt, snap, brew, Windows release...]
Simple release and I extracted it.

device model:
Pixel 4

Android version: [e.g. 10]
Android 12 beta 2.1

Describe the bug

Connect to device using adb-wireless in the developer settings, while having the device connected to a charger.
Use scrcpy, by using this script

CreateObject("Wscript.Shell").Run "cmd /c scrcpy.exe -S --always-on-top", 0, false

Run some long script to simulate a lot of touches. Example:

for /l %%t in (1, 1, 16) do (

	adb shell input tap 518 1230

	timeout /t 0.5
	adb shell input tap 574 2180

	for /l %%x in (1, 1, 78) do (
		adb shell input swipe 70 2200 960 2200
		timeout /t 1
		adb shell input swipe 960 2200 70 2200
		timeout /t 1
	)

	timeout /t 7

	adb shell input tap 574 2180
	timeout /t 5
)

Wait for about 3 minutes.

The bug is that even though the device is still connected and the touch-script still runs, scrcpy window closes itself.

scrcpy window closes itself

What is the console output when it closes (use scrcpy-console.bat to keep the console open)?

@rom1v
Just this:
INFO: scrcpy 1.18 <https://github.com/Genymobile/scrcpy>
C:\android\scrcpy\scrcpy-server: 1 file pushed, 0 skipped. 42.4 MB/s (37330 bytes in 0.001s)
[server] INFO: Device: Google Pixel 4 (Android 11)
INFO: Renderer: direct3d
INFO: Initial texture: 1080x2280
WARN: Device disconnected
WARN: Killing the server...
Press any key to continue . . .

I think sometimes it also sometimes turns on the screen while still mirroring (the special flag that I use has it turned off, while still mirroring it, which is a cool feature)

WARN: Device disconnected

The device gets disconnected from adb.
Run adb logcat in another terminal, it will terminate at the same time.
Not an scrcpy issue.

@rom1v But it's not disconnected from adb. I can still see it on Android Studio, for example.
And I can re-launch ScrCpy without any issue.

Yes, but the adb connections are still closed. Check adb logcat or adb shell which will be disconnected at the same time.

@rom1v How could you say it's closed, when the adb is still connected via Wifi ?
I don't understand what you say I should try, and how it helps.

Open a separate terminal witj adb shell or adb logcat. When scrcpy get closed unexpectedly, check that the command in that other terminal is also closed.

@rom1v Please explain the steps.
What to do first? What to observe?
Note that the batch file itself is calling adb, too, and it didn't stop working while ScrCpy closed itself.

@rom1v I think it also occurs without using a batch file of simulating touches.

@rom1v Why did you close it? The issue still occurs.
It actually doesn't matter if I interact with the device (either really me or a batch file).
It occurs on its own.

It's not related to scrcpy, the adb server closes the connection for some reason, there is nothing scrcpy can do.

@rom1v But it hasn't closed the connection. Trying to re-connect via adb again says that it's already connected.
The adb-wireless hasn't lost the connection to the PC.

The socket has been closed.

@rom1v Why? Bug on Android?
Have you tried to reproduce it on previous version of the OS (Android 11)?
How can I check that it's a bug on Android 12? Maybe I should report it.

@rom1v ok reported :
https://issuetracker.google.com/issues/199180658


Link component doesnt trigger nested route

but the history API (browser buttons works)
routes are simple
  <Route path="/" component={App}>
    <Route
        path="/:practiceName/:challengeName"
        component={ChallengePage} />
    <Route
        path="/:practiceName"
        component={PracticePage} />
  </Route>

and link <Link to={${practice.name}/${challenge.name}}>{challenge.title}</Link>
does not seem to make a lot of sense. I can click on  tags that match the /:practiceName route, but not the /:practiceName/:challengeName route  thoughts?
react 0.14

it was because my link did not start with the /.


ListTile sugests alternartive

Hi everyone,
I am completely new to flutter, so this may be obvious to you.
I am trying to create a ListTile inside a Container using 85% of the width.
ps. Line 183 is child: new ListTile(
Here follows the code:
class EntryItem extends StatelessWidget {
  const EntryItem(this.entry);

  final ListEntry entry;

  @override
  Widget build(BuildContext context) {
    return new Container(
      color: AppColorsTheme.myTheme.secondaryGradientColor,
      child: FractionallySizedBox(
        widthFactor: 0.85,
        //heightFactor: 0.3,
      child: new ListTile(
        title: new Text(entry.title),
        subtitle: new Text(entry.description),
        leading: new Icon(
          Icons.dashboard,
          color: AppColorsTheme.myTheme.primarySwatch,
        ),
        trailing: new Row(
          verticalDirection: VerticalDirection.up,
          children: <Widget>[
            new CategoryIcon(Icons.remove_red_eye, entry.views.toString(), false),
            new CategoryIcon(Icons.comment, entry.responses.toString(), false),
          ],
        ),
        onTap: () {Navigator.pushNamed(context, '/forum/1');},
      ),
      ),
    );
  }}

logs

flutter: The following assertion was thrown during performLayout():
flutter: Trailing widget consumes entire tile width. Please use a sized widget, or consider replacing
flutter: ListTile with a custom widget (see
flutter: https://api.flutter.dev/flutter/material/ListTile-class.html#material.ListTile.4)
flutter: 'package:flutter/src/material/list_tile.dart':
flutter: Failed assertion: line 1553 pos 7: 'tileWidth != trailingSize.width'
flutter:
flutter: Either the assertion indicates an error in the framework itself, or we should provide substantially
flutter: more information in this error message to help you determine and fix the underlying cause.
flutter: In either case, please report this assertion by filing a bug on GitHub:
flutter:   https://github.com/flutter/flutter/issues/new?template=BUG.md
flutter:
flutter: The relevant error-causing widget was:
flutter:   ListTile file:///Users/.../mobile-apps/App/lib/forum.dart:183:18
flutter:
flutter: When the exception was thrown, this was the stack:
flutter: #2      _RenderListTile.performLayout (package:flutter/src/material/list_tile.dart:1553:7)
flutter: #3      RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
flutter: #4      RenderPadding.performLayout (package:flutter/src/rendering/shifted_box.dart:207:12)
flutter: #5      RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
flutter: #6      RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:113:14)
flutter: #7      RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
flutter: #8      RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:113:14)
flutter: #9      RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
flutter: #10     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:113:14)
flutter: #11     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
flutter: #12     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:113:14)
flutter: #13     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
flutter: #14     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:113:14)
flutter: #15     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
flutter: #16     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:113:14)
flutter: #17     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
flutter: #18     RenderFractionallySizedOverflowBox.performLayout (package:flutter/src/rendering/shifted_box.dart:958:14)
flutter: #19     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
flutter: #20     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:113:14)
flutter: #21     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
flutter: #22     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:113:14)
flutter: #23     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
flutter: #24     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:113:14)
flutter: #25     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
flutter: #26     RenderSliverList.performLayout (package:flutter/src/rendering/sliver_list.dart:205:28)
flutter: #27     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
flutter: #28     RenderSliverEdgeInsetsPadding.performLayout (package:flutter/src/rendering/sliver_padding.dart:132:12)
flutter: #29     RenderSliverPadding.performLayout (package:flutter/src/rendering/sliver_padding.dart:371:11)
flutter: #30     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
flutter: #31     RenderViewportBase.layoutChildSequence (package:flutter/src/rendering/viewport.dart:507:13)
flutter: #32     RenderShrinkWrappingViewport._attemptLayout (package:flutter/src/rendering/viewport.dart:1904:12)
flutter: #33     RenderShrinkWrappingViewport.performLayout (package:flutter/src/rendering/viewport.dart:1862:20)
flutter: #34     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
flutter: #35     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:113:14)
flutter: #36     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
flutter: #37     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:113:14)
flutter: #38     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
flutter: #39     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:113:14)
flutter: #40     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
flutter: #41     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:113:14)
flutter: #42     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
flutter: #43     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:113:14)
flutter: #44     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
flutter: #45     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:113:14)
flutter: #46     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
flutter: #47     RenderFlex.performLayout (package:flutter/src/rendering/flex.dart:768:15)
flutter: #48     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
flutter: #49     MultiChildLayoutDelegate.layoutChild (package:flutter/src/rendering/custom_layout.dart:171:12)
flutter: #50     _ScaffoldLayout.performLayout (package:flutter/src/material/scaffold.dart:498:7)
flutter: #51     MultiChildLayoutDelegate._callPerformLayout (package:flutter/src/rendering/custom_layout.dart:243:7)
flutter: #52     RenderCustomMultiChildLayoutBox.performLayout (package:flutter/src/rendering/custom_layout.dart:402:14)
flutter: #53     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
flutter: #54     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:113:14)
flutter: #55     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
flutter: #56     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:113:14)
flutter: #57     _RenderCustomClip.performLayout (package:flutter/src/rendering/proxy_box.dart:1308:11)
flutter: #58     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
flutter: #59     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:113:14)
flutter: #60     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
flutter: #61     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:113:14)
flutter: #62     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
flutter: #63     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:113:14)
flutter: #64     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
flutter: #65     RenderStack.performLayout (package:flutter/src/rendering/stack.dart:560:15)
flutter: #66     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
flutter: #67     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:113:14)
flutter: #68     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
flutter: #69     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:113:14)
flutter: #70     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
flutter: #71     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:113:14)
flutter: #72     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
flutter: #73     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:113:14)
flutter: #74     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
flutter: #75     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:113:14)
flutter: #76     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
flutter: #77     RenderOffstage.performLayout (package:flutter/src/rendering/proxy_box.dart:3220:14)
flutter: #78     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
flutter: #79     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:113:14)
flutter: #80     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
flutter: #81     _RenderTheatre.performLayout (package:flutter/src/widgets/overlay.dart:685:15)
flutter: #82     RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:1634:7)
flutter: #83     PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:884:18)
flutter: #84     RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:436:19)
flutter: #85     WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:914:13)
flutter: #86     RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:302:5)
flutter: #87     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1117:15)
flutter: #88     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1055:9)
flutter: #89     SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:971:5)
flutter: #93     _invoke (dart:ui/hooks.dart:251:10)
flutter: #94     _drawFrame (dart:ui/hooks.dart:209:3)
flutter: (elided 5 frames from class _AssertionError and dart:async)
flutter:
flutter: The following RenderObject was being processed when the exception was fired: _RenderListTile#3025d relayoutBoundary=up22 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE:
flutter:   creator: _ListTile ← MediaQuery ← Padding ← SafeArea ← ColoredBox ← Semantics ← _PointerListener ←
flutter:     Listener ← _GestureSemantics ← RawGestureDetector ← GestureDetector ← _RawMouseRegion ← ⋯
flutter:   parentData: offset=Offset(0.0, 0.0) (can use size)
flutter:   constraints: BoxConstraints(w=331.8, 0.0<=h<=Infinity)
flutter:   size: MISSING
flutter: This RenderObject had the following descendants (showing up to depth 5):
flutter:     leading: RenderSemanticsAnnotations#8b19e relayoutBoundary=up23 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
flutter:       child: RenderExcludeSemantics#23909 relayoutBoundary=up24 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
flutter:         child: RenderConstrainedBox#09c65 relayoutBoundary=up25 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
flutter:           child: RenderPositionedBox#123c9 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
flutter:             child: RenderParagraph#ba4c9 relayoutBoundary=up1 NEEDS-PAINT
flutter:     title: RenderParagraph#66388 NEEDS-LAYOUT NEEDS-PAINT
flutter:       text: TextSpan
flutter:     subtitle: RenderParagraph#ff3b4 NEEDS-LAYOUT NEEDS-PAINT
flutter:       text: TextSpan
flutter:     trailing: RenderFlex#506fb relayoutBoundary=up23 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
flutter:       child 1: RenderFlex#8a2aa relayoutBoundary=up24 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE OVERFLOWING
flutter:         child 1: RenderSemanticsAnnotations#59f94 relayoutBoundary=up25 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
flutter:           child: RenderSemanticsAnnotations#9caec relayoutBoundary=up26 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
flutter:             child: RenderMouseRegion#2c5e8 relayoutBoundary=up27 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
flutter:         child 2: RenderParagraph#f7dbb relayoutBoundary=up25 NEEDS-PAINT
flutter:           text: TextSpan
flutter:       child 2: RenderFlex#df3ed relayoutBoundary=up24 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE OVERFLOWING
flutter:         child 1: RenderSemanticsAnnotations#144d6 relayoutBoundary=up25 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
flutter:           child: RenderSemanticsAnnotations#31821 relayoutBoundary=up26 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
flutter:             child: RenderMouseRegion#5ec08 relayoutBoundary=up27 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
flutter:         child 2: RenderParagraph#5e2f5 relayoutBoundary=up25 NEEDS-PAINT
flutter:           text: TextSpan
flutter: ════════════════════════════════════════════════════════════════════════════════════════════════════
flutter: Another exception was thrown: RenderBox was not laid out: _RenderListTile#3025d relayoutBoundary=up22 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
flutter: Another exception was thrown: RenderBox was not laid out: RenderPadding#46d75 relayoutBoundary=up21 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
flutter: Another exception was thrown: RenderBox was not laid out: _RenderColoredBox#e57d2 relayoutBoundary=up20 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
flutter: Another exception was thrown: RenderBox was not laid out: RenderSemanticsAnnotations#42669 relayoutBoundary=up19 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
flutter: Another exception was thrown: RenderBox was not laid out: RenderPointerListener#e03a9 relayoutBoundary=up18 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
flutter: Another exception was thrown: RenderBox was not laid out: RenderSemanticsGestureHandler#49ad9 relayoutBoundary=up17 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
flutter: Another exception was thrown: RenderBox was not laid out: RenderMouseRegion#3305c relayoutBoundary=up16 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
flutter: Another exception was thrown: RenderBox was not laid out: RenderSemanticsAnnotations#f0aa9 relayoutBoundary=up15 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
flutter: Another exception was thrown: RenderBox was not laid out: RenderFractionallySizedOverflowBox#bfa6d relayoutBoundary=up14 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
flutter: Another exception was thrown: RenderBox was not laid out: _RenderColoredBox#e12ab relayoutBoundary=up13 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
flutter: Another exception was thrown: RenderBox was not laid out: RenderRepaintBoundary#9dec4 relayoutBoundary=up12 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
flutter: Another exception was thrown: 'package:flutter/src/rendering/sliver_multi_box_adaptor.dart': Failed assertion: line 545 pos 12: 'child.hasSize': is not true.
flutter: Another exception was thrown: Null check operator used on a null value
flutter: Another exception was thrown: Null check operator used on a null value
flutter: Another exception was thrown: RenderBox was not laid out: RenderShrinkWrappingViewport#f15b6 relayoutBoundary=up8 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
flutter: Another exception was thrown: RenderBox was not laid out: RenderIgnorePointer#211e8 relayoutBoundary=up7 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
flutter: Another exception was thrown: RenderBox was not laid out: RenderSemanticsAnnotations#319e5 relayoutBoundary=up6 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
flutter: Another exception was thrown: RenderBox was not laid out: RenderPointerListener#1e2a5 relayoutBoundary=up5 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
flutter: Another exception was thrown: RenderBox was not laid out: RenderSemanticsGestureHandler#ee1e3 relayoutBoundary=up4 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
flutter: Another exception was thrown: RenderBox was not laid out: RenderPointerListener#14873 relayoutBoundary=up3 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
flutter: Another exception was thrown: RenderBox was not laid out: _RenderScrollSemantics#75a5b relayoutBoundary=up2 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
flutter: Another exception was thrown: RenderBox was not laid out: RenderFlex#ddc76 relayoutBoundary=up1 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
flutter: Another exception was thrown: Null check operator used on a null value
flutter: Another exception was thrown: Null check operator used on a null value

Hi @staminna

flutter: Trailing widget consumes entire tile width. Please use a sized widget, or consider replacing
flutter: ListTile with a custom widget (see
flutter: https://api.flutter.dev/flutter/material/ListTile-class.html#material.ListTile.4)
flutter: 'package:flutter/src/material/list_tile.dart':
flutter: Failed assertion: line 1553 pos 7: 'tileWidth != trailingSize.width'

This is because you're trying to fit a Row in trailing which has a width wider than the maximum trailing width size.
It can reproduce this way
   body: Center(
        child: FractionallySizedBox(
          widthFactor: 0.85,
          child: ListTile(
            tileColor: Colors.grey[700],
            leading: FlutterLogo(),
            title: Text('One-line with leading widget'),
            trailing: Row(
              children: [
                FlutterLogo(
                  size: 100,
                ),
              ],
            ),
          ),
        ),
      ),

but no issue  if you constraint Rows width with SizedBox
     body: Center(
        child: FractionallySizedBox(
          widthFactor: 0.85,
          child: ListTile(
            tileColor: Colors.grey[700],
            leading: FlutterLogo(),
            title: Text('One-line with leading widget'),
            trailing: SizedBox(
              child: Row(
                children: [
                  FlutterLogo(
                    size: 100,
                  ),
                ],
              ),
            ),
          ),
        ),
      ),

complete runnable code sample
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Material App',
      theme: ThemeData.dark(),
      home: Home(),
    );
  }
}

class Home extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Material App Bar'),
      ),
      body: Center(
        child: FractionallySizedBox(
          widthFactor: 0.85,
          child: ListTile(
            tileColor: Colors.grey[700],
            leading: FlutterLogo(),
            title: Text('One-line with leading widget'),
            trailing: Row(
              children: [
                FlutterLogo(
                  size: 100,
                ),
              ],
            ),
          ),
        ),
      ),
      floatingActionButton: FloatingActionButton(
        child: Icon(Icons.add),
        onPressed: () {},
      ),
    );
  }
}

flutter doctor -v
[✓] Flutter (Channel stable, 1.22.5, on macOS 11.1 20C69 darwin-x64, locale en-GB)
    • Flutter version 1.22.5 at /Users/tahatesser/Code/flutter_stable
    • Framework revision<PHONE_NUMBER> (7 weeks ago), 2020-12-10 11:54:40 -0800
    • Engine revision ae90085a84
    • Dart version 2.10.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Volumes/Extreme/SDK
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /Volumes/Extreme/SDK
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Volumes/Extreme/Xcode.app/Contents/Developer
    • Xcode 12.3, Build version 12C33
    • CocoaPods version 1.10.1

[!] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] VS Code (version 1.52.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.18.1

[✓] Connected device (1 available)
    • Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 10 (API 29) (emulator)

! Doctor found issues in 1 category.

Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you

Hi @staminna

flutter: Trailing widget consumes entire tile width. Please use a sized widget, or consider replacing
flutter: ListTile with a custom widget (see
flutter: https://api.flutter.dev/flutter/material/ListTile-class.html#material.ListTile.4)
flutter: 'package:flutter/src/material/list_tile.dart':
flutter: Failed assertion: line 1553 pos 7: 'tileWidth != trailingSize.width'

This is because you're trying to fit a Row in trailing which has a width wider than the maximum trailing width size.
It can reproduce this way
   body: Center(
        child: FractionallySizedBox(
          widthFactor: 0.85,
          child: ListTile(
            tileColor: Colors.grey[700],
            leading: FlutterLogo(),
            title: Text('One-line with leading widget'),
            trailing: Row(
              children: [
                FlutterLogo(
                  size: 100,
                ),
              ],
            ),
          ),
        ),
      ),

but no issue  if you constraint Rows width with SizedBox
     body: Center(
        child: FractionallySizedBox(
          widthFactor: 0.85,
          child: ListTile(
            tileColor: Colors.grey[700],
            leading: FlutterLogo(),
            title: Text('One-line with leading widget'),
            trailing: SizedBox(
              child: Row(
                children: [
                  FlutterLogo(
                    size: 100,
                  ),
                ],
              ),
            ),
          ),
        ),
      ),

complete runnable code sample
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Material App',
      theme: ThemeData.dark(),
      home: Home(),
    );
  }
}

class Home extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Material App Bar'),
      ),
      body: Center(
        child: FractionallySizedBox(
          widthFactor: 0.85,
          child: ListTile(
            tileColor: Colors.grey[700],
            leading: FlutterLogo(),
            title: Text('One-line with leading widget'),
            trailing: Row(
              children: [
                FlutterLogo(
                  size: 100,
                ),
              ],
            ),
          ),
        ),
      ),
      floatingActionButton: FloatingActionButton(
        child: Icon(Icons.add),
        onPressed: () {},
      ),
    );
  }
}

flutter doctor -v
[✓] Flutter (Channel stable, 1.22.5, on macOS 11.1 20C69 darwin-x64, locale en-GB)
    • Flutter version 1.22.5 at /Users/tahatesser/Code/flutter_stable
    • Framework revision<PHONE_NUMBER> (7 weeks ago), 2020-12-10 11:54:40 -0800
    • Engine revision ae90085a84
    • Dart version 2.10.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Volumes/Extreme/SDK
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /Volumes/Extreme/SDK
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Volumes/Extreme/Xcode.app/Contents/Developer
    • Xcode 12.3, Build version 12C33
    • CocoaPods version 1.10.1

[!] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] VS Code (version 1.52.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.18.1

[✓] Connected device (1 available)
    • Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 10 (API 29) (emulator)

! Doctor found issues in 1 category.

Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you


firmware: let user know that DNS resolution failed

Output of /usr/local/opnsense/scripts/firmware/check.sh
{"connection":"error","repository":"error","product_version":"16.7.8-b1e53ce1b","os_version":"FreeBSD 10.3-RELEASE-p11","last_check":"Thu Nov 17 11:21:26 UTC 2016","updates":"","download_size":"none","extra_space_required":"none","new_packages":[],"reinstall_packages":[],"upgrade_packages":[],"upgrade_needs_reboot":"0"}

from the ssh menu it works flawlessly
pkg version: 1.9.3

Can't say I can reproduce this. Please run the following and paste the output.
# sh -x /usr/local/opnsense/scripts/firmware/check.sh

Was able to reproduce the error - DNS service broke (restart helped) - maybe add a test if DNS is working so there will be a better error message.

The messages were tweaked. Upon further reflection, we don't want to probe DNS from the updater and also not from anywhere else without the user knowing. :) Some people don't get DNS set up properly, but that's a rare outlier judging by the issues reported in the forum.

This was introduced lately so I thought I'd move the milestone. :)


Messages dropping on edit

Hi, when someone says something on discord, but then immediately edits the message (e.g. fixes a typo), sometimes the message is removed from Matrix instead of being edited. The message was still there for a while, because it got noticed by an IRC relay bot we're running, but it's not visible anymore in Element.
But sometimes it edits the message correctly...

Do the messages get deleted/redacted entirely, or do they just disappear?
What I've seen happen is multi-edited Discord messages appearing blank in Element Web:

Other clients render them in a variety of different ways, which suggests that the bridge is doing something non-standard with them.
https://github.com/vector-im/element-web/issues/16722#issuecomment-855327183


getBasicGroupFullInfo and getSupergroupMembers troubles

Hi! Method getBasicGroupFullInfo stops thread without any exceptions. Method getSupergroupMembers return zero values array for Members. Tested on tdlib (1.7.4 and 1.7.6) Ubuntu 20.04 and Windows 10 x64. Using .NET Core 5.0

Method getBasicGroupFullInfo stops thread without any exceptions.

All updates and request responses are handled in a dedicated thread. If you do a synchronous request during processing of an update or a request response, you block the thread, which results in exactly described behavior.

Method getSupergroupMembers return zero values array for Members.

There are no known issues with that method. Could you show the whole request?

After calling getBasicGroupFullInfo main app thread continue working. Any synchronous request in the code.

Returns true members count, true members invite id, but members id`s is always 0, like {0,0,0,0,0}

After calling getBasicGroupFullInfo main app thread continue working.

Because the thread, which handes responses, isn't main thread. You need to check, how async/await interface is implemented in your wrapper for TDLib requests. TDLib-provided interface uses callbacks instead, so the wrapper implementing async/await must ensure that the dedicated thread isn't blocked.

Returns true members count, true members invite id, but members id`s

Because you pass Limit == 0. supegroup.MemberCount is unkown as stated in its documentation:
Number of members in the supergroup or channel; 0 if unknown. Currently it is guaranteed to be known only if the supergroup or channel was received through searchPublicChats, searchChatsNearby, getInactiveSupergroupChats, getSuitableDiscussionChats, getGroupsInCommon, or getUserPrivacySettingRules

Yep, I'm trying getBasicGroupFullInfo in main thread, but also without results. Limit not 0. Members count is actual members count. Lol, did you read my message? I receiving members array. For every member I have inviteUserId and I'd. inviteUserId id true for all members. But I'd always 0

Moving to other issue


Model not working?

I see a dev/test slot error of 100.0. The train loss goes down. What exactly is going on?

The model is working. Please refer to the updated training log and testing result.
Please note that if the initial learning rate is small (like 0.001), the slot error rate reduces slow.
Change the initial learning rate to 0.005, you will see the model is working.

Hi, thank you so very much for the response and for the bug fix. Yes, I did try a learning rate of 0.005. Yet I get a consistently 100% slot error rate. Can you share the pytorch version that you used, and the exact command used to create the log files ?

Hi, I tried pytorch 0.3.1. However, the problem still persists. I don't get the warnings anymore. Yet the dev performance is 100% slot error rate.

same issue, train/validation loss goes down ye,t, slot error rate is 100% .
something is wrong with get_slot_error function.

I have the same issue

After changing the code from slot_tok = '@' + _das[0][:3] + '-' + _das[1] + '-' + _das[2]  to slot_tok = 'slot-'+_das.split(':')[1].lower() , it solved the the problem of having slot error:100.000.


Tremor reporting wrong metrics for Bucket operator

Problem
It is observed that Tremor is reporting wrong metrics for Bucket operator. It report the same count for "pass" as well as "overflow" actions. In my case I am exporting the metrics to InfluxDB with measurement name "tremor_metrics_lab_bucketing". When I pull these metrics data from InfluxDB I see the same value getting reported under "pass" as well as "overflow" for the bucket. Below is the sample data.

And here is the Tremor config I am using.

Steps

Start a Tremor instance with a runtime and bucket operator.
Set a rate limit and class for the events at the runtime operator.
Pass data below the rate limit so that everything will pass through.
Capture the system metrics generated for the bucket operator and check for the pass through as well as  overflow counts.

Possible Solution(s)

Notes
Output of rustup --version:
Output of rustup show:
Output of tremor-server --version: 0.6.1

Fixed in https://github.com/wayfair-tremor/tremor-runtime/pull/166

awesome . thanks :)


Fix data dace when closing the server close in Go tests

Currently, the Kvrocks server close will wait for the process to be exited or until the grace period(30s). And there's a data race between the close function and the timer expired function. We need to wait for the timer's expired routine if it's fired.
This closes #1647

So it's because the syntax of Stop ? ( https://pkg.go.dev/time#Timer.Stop )
What would happen if Kill never starts?

There're two issues:

data race between the close routine and the time-expired routine, the close routine was finished but the timer function was fired, then will expect the kill operation succeeded.
The time-expired routine may be panic if the main routine didn't wait for it, refer to the comment: https://github.com/apache/kvrocks/issues/1647#issuecomment-1670595129

What would happen if Kill never starts?

For the most of time, the kill operation shouldn't be started.

Oh I get it. Kill is just for timeout handling. And most of time it will not happen.
When it start to Kill, we expect a graceful shutdown?

When it start to Kill, we expect a graceful shutdown?

No. It's a final guard to ensure we do not leak

Oh got it! Thanks!


White top bar

For some reason, my app shows the top as white and doesn’t blend with the background. I’ve checked with my friend and theirs is the correct colour.
Device: iPhone XS

You need to update your devices to iOS 13.4/13.5 to fix this issue :)


create endpoint get Device by id

create endpoint get Device by id

I'd say as we expect to only ever get one device with a given I'd, the service should return a single device, not a list of devices.
Essentially move the .first() function into the service method


Example is not working

When I try to execute the example in my computer, I got the error message:
fail: Microsoft.Quantum.IQSharp.Workspace[0]
QS5022: No identifier with the name "v" exists.
Traceback (most recent call last):
File "host.py", line 2, in <module>
from Qrng import SampleQuantumRandomNumberGenerator # We import the
ModuleNotFoundError: No module named 'Qrng'
When we write the command: from X import Y in the python host file, this means from "namespace X in Operation.qs"  import "operation Y". Right?

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

ID: d7575d10-c405-8e24-3487-008d2338b756
Version Independent ID: 030f289f-4280-def3-598b-615883282486
Content: Create a Quantum Random Number Generator - Microsoft Quantum
Content Source: articles/quickstarts/qrng.md
Product: quantum
GitHub Login: @bromeg
Microsoft Alias<EMAIL_ADDRESS>

That error message seems to indicate that the Q# compilation step failed, such that no namespaces are made available. Thus, the from Qrng import SampleQuantumRandomNumberGenerator line fails as a result of the earlier error message QS5022: No identifier with the name "v" exists.. Did you modify the Q# code at all? The identifier v doesn't appear in the Qrng sources at https://github.com/microsoft/Quantum/blob/master/samples/getting-started/qrng/Qrng.qs, so I'm not sure where that might be coming from, sorry.

No, I did not modified the Q# code. Just installed the dotnet and Q# in my computer, ran the HelloWorld program without problems, and tried to run this example.

It's unclear where that "v" is coming from, but there are a couple of bugs in the Python code of that page.
Considering the Q# code is:
namespace Quantum {
    open Microsoft.Quantum.Intrinsic;

    operation QuantumRandomNumberGenerator() : Result {
        using(qubit = Qubit())  { // Allocate a qubit.
            H(qubit);             // Put the qubit to superposition. It now has a 50% chance of being 0 or 1.
            let r = M(v);     // Measure the qubit value.
            Reset(qubit);
            return r;
        }
    }
}

Python code should be:
import qsharp
from Quantum import QuantumRandomNumberGenerator

and all references of SampleQuantumRandomNumberGenerator would need to be replaced with QuantumRandomNumberGenerator.
Considering the C# samples have the same problem, could we just please change the Q# code to be:
namespace Qrng {
    open Microsoft.Quantum.Intrinsic;

    operation SampleQuantumRandomNumberGenerator() : Result {
        using(qubit = Qubit())  { // Allocate a qubit.
            H(qubit);             // Put the qubit to superposition. It now has a 50% chance of being 0 or 1.
            let r = M(v);     // Measure the qubit value.
            Reset(qubit);
            return r;
        }
    }
}

This issue was pointed out in #680 and solved in PR #682. It should be released in the next merge from master to live. The problem was that the code for Python and C# is loaded from the samples repo, where some changes were made to stick to the Style Guide. The Q# code was written directly in the .md file in a previous version of the tutorial and therefore wasn't updated. The 'v' thing I think is just a typo. I'll keep this issue open until everything is released and works ok on Live.

@geduardo, I think it's now live, as the code seems to match the Q# code in the page. In case you want to close this issue now.
@cgranade, should we add some comment in Quantum to samples that are references from docs, so we don't forget to be careful with those changes?

Oh, true. I missed that publishing PR. Thanks. Closing.


Support for ::after pseudo-element

Support for ::before and ::after pseudo-elements would be amazing!
Was reading up on current support for pseudo-selectors and taking a look at https://github.com/airbnb/enzyme/pull/1537, and supporting ::before and ::after would be much appreciated.

I would like to work on this, thanks for referencing the pseudo-selectors PR it's really helpful to take it as a reference.
I will submit a pull request by the end of the week following the contribution guide.

I would like to work on this feature, though I don’t know if it’s a good starting point for a first pull request to Enzyme. What do they maintainers think about this?
At first sight, I thought it was just updating the matchPseudoSelector() in selector.js to handle before/after pseudo-elements and return the corresponding node. But I didn't have in mind how to test this feature, because a DOM element cannot be mounted with a pseudo-selector as inline style, any suggestion on how to do this?

@Jotakuun anything with string selectors isn’t likely a good first PR, because it probably requires changes in another package, rst-selector-parser.
As for how to test it, that’s a good question; we’d need to test for it in both shallow and mount, which means, both with and without a dom.

Thanks for clarifying, I will leave it to someone who can handle it better than me. Though I'll be subscribed to this feature request to see how it would be implemented.
Let me know if I could be of any help.

any updates on this?


How to attach the query results to email alert with elastalert?

Hi,
Please let me know how to attach the query results to email alert with elastalert.
Thanks and Regards,
Ramesh

yelp/elastalert is not maintained and you shouldn't expect support.


Parameters for Video Thumbnails (resolution, aspect ratio)

The problem
On some web components where a video is used, it is fetching a thumbnail with a too low resolution from Kaltura. That results in an image being pixelated. Sometimes it is also using the wrong aspect ratio for the thumbnail.
Example:
https://www.ibm.com/standards/carbon/web-components/iframe.html?id=components-card-in-card--default&knob-video=true&knob-Image alt text (alt):=Image alt text&knob-Image src (defaultSrc):=f9bc0ff2cb7e5cbd748ea2f65ddf1962.jpg&knob-Card Heading (heading):=Standard Bank Group prepares to embrace Africa’s AI opportunity&knob-Card Href (href):=https://example.com&knob-Card Eyebrow (eyebrow):=Label
The solution
Best Case:
All web components that use video thumbnails (Video, Card Ctas, etc.) provide parameters that map 1:1 to parameters of the kaltura thumbnail API ("width", "height", "type"  and "nearest_aspect_ratio" should be enough). So that I can set the resolution and aspect ratio of the thumbnail depending on the context.
Optional: Maybe it could be useful to set these parameters per breakpoint to also optimize the thumbnail, but I think that is not necessarily needed.
Easy Solution:
The defaults for web components with big video thumbnails are updated.
I found the issue regarding bad image quality in

Card in Card: https://www.ibm.com/standards/carbon/web-components/iframe.html?id=components-card-in-card--default&knob-video=true&knob-Image alt text (alt):=Image alt text&knob-Image src (defaultSrc):=f9bc0ff2cb7e5cbd748ea2f65ddf1962.jpg&knob-Card Heading (heading):=Standard Bank Group prepares to embrace Africa’s AI opportunity&knob-Card Href (href):=https://example.com&knob-Card Eyebrow (eyebrow):=Label
Feature Card: https://www.ibm.com/standards/carbon/web-components/?path=/story/components-feature-card--large (no option for video in story book)

Additional information
Kaltura Video Thumbnail API: https://developer.kaltura.com/api-docs/Engage_and_Publish/kaltura-thumbnail-api.html

There is an enhancement included in the v1.25.0 release (Sept 28 release date) to override the video image.  This will provide a work around until this enhancement is available.

Issues needed:  Func specs, WC & React Services update, QA issues, website update


Feature: Export more functions from Lexical core package

This feature request comes from https://github.com/facebook/lexical/issues/5313
Description

export all exports of LexicalUtils.ts to lexical's users
export getActiveEditor and getActiveEditorStates from LexicalUpdate.ts

Motivation

Utility functions benefit both internal library maintainers and library users. For example, $getNodeByKeyOrThrow, as a variant of $getNodeByKey with type guard, is useful for TypeScript users. Currently I have to copy paste the source again somewhere because it is not exported from the core package. More annoyingly, those functions appear in auto completion, but they are actually not accessible.
getActiveEditor and getActiveEditorStates are not commonly used, but they are pretty useful when trying to access the editor instance within a LexicalNode's scope, especially in importJSON method. For my personal use case, that would be useful to map a node to editor-specific contextual data. That would also be useful when using Lexical along with other state management libraries since Lexical may not be the only one. Currently, there is no way to backlink a node to its containing editor.

Considerations
Some considerations specifically related to 2:

Export getActiveEditorStates may not be so useful since $getRoot is also available, it is enough to access the whole tree from a node.
I am not sure by design importJSON should be treated as a pure function. The use case is that I do need to interact with external stuff when moving nodes between nested editors (which needs serialization and deserialization), but Lexical does not offer an api to deal with side effects.

I don't have a problem with this - I opened a PR to do it a long time ago, but @zurfyx had some light reservations:
https://github.com/facebook/lexical/pull/4325


Change ERC721 implementation to ERC721A

Continued from #5
I changed ERC721 -> ERC721A using Chiru Lab's implementation (v4.0.0)
Gas fee has been decreased quite a lot:

Collection creation: ~ 5%
Minting: ~35%

@ggomaeng
Front-end implementation won't require any external API or database because we can still query token holdings of an owner by using ERC721AQueryable#tokensOfOwner method similar to OZ's ERC721Enumerable#tokenOfOwnerByIndex method.
We can probably optimize it further by removing bulk minting feature from ERC721A because only a single minting is possible on Dixel Club.
If anyone know a simpler (but battle-tested like ERC721A 😉) implementation that still supports tokensOfOwner function, please recommend.

When 35% gas was saved, how many were you minting?
Gas saved must be different based on the numbers you mint.

@keon I mean the average cost per minting. We don't utilize bulk minting feature on ERC721A

Closing this PR in favor of #24


A more mathematically appropriate package name

Given the rationale for choosing "six" over "five" for the name of this package, it seems to me that a better moniker would have been eight.  After all, eight == 2^3, and exponentiation beats multiplication in both power (pun intended?) and precedence.
:-)

It's definitely something to think about for next time.


sr_get_data error details are not returned in netconf replies

Hi Michal,
When calling sr_get_data() directly and one of the operational data callbacks (from an application) returns an error with additional information (reported via sr_set_error()), sr_get_error() returns the error details that were reported in the application callbacks.
However, when sending a /ietf-netconf:get rpc to netopeer2-server and one of the application callbacks return an error, the error reply only contains a generic error message: User callback failed. The detailed error message returned by the application is lost in translation.
I tried to fix the problem myself, but I don't know where to start. I hope you can help :)
Thanks in advance.

Note that other RPC errors details seem to be forwarded properly. The issue only affects /ietf-netconf:get.

Actually, I have a patch that fixes the problem:
diff --git a/src/netconf.c b/src/netconf.c
index 9cf9db72a016..70d165567b0e 100755
--- a/src/netconf.c
+++ b/src/netconf.c
@@ -98,7 +98,15 @@ get_sr_data:
     for (i = 0; i < filter_count; i++) {
         rc = sr_get_data(session, filters[i], 0, 0, get_opts, &node);
         if (rc != SR_ERR_OK) {
+            const sr_error_info_t *err_info = NULL;
             ERR("Getting data \"%s\" from sysrepo failed (%s).", filters[i], sr_strerror(rc));
+            if (sr_get_error(session, &err_info) == SR_ERR_OK && err_info != NULL) {
+                int e;
+                for (e = 0; e < err_info->err_count; e++) {
+                    sr_set_error(session, err_info->err[e].xpath,
+                                 "%s", err_info->err[e].message);
+                }
+            }
             goto cleanup;
         }

Does that look ok for you?


GPII-3737: resurrect some Locust metrics

This PR does a few things:

Fixes some bugs related to the Locust image upgrade and attendant changes. This is what killed the distribution metrics (100th_percentile, etc.)
Passes user_count from Terraform code all the way to Stackdriver. My dev cluster wasn't getting user_count at all. prd does, but the numbers seem a little funny. TF is the source of truth for how many Locust users are in a test anyway (e.g. for the purposes of "what were the parameters of this performance test run")
Adds some tests for modules/locust/client.rb. I didn't go too crazy, but there is some scaffolding for future development, and the tests I wrote helped me debug the problems solved in this PR.

The full diff is kind of hard to read due to an indentation change. The individual commits might be easier to review.
cd gpii-infra/shared/rakefiles/tests && rake works for me locally.
cd gpii-infra/gcp/live/dev && rake test_preferences and test_flowmanager work for me and send results to Stackdriver:

https://app.google.stackdriver.com/dashboards/14544054156030543999?project=gpii-gcp-dev-tyler&timeDomain=6h
https://app.google.stackdriver.com/dashboards/6436364552632734426?project=gpii-gcp-dev-tyler&timeDomain=6h

The gcp-unit-tests have failed in CircleCI:
Installing google-protobuf 3.6.1 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
/workspace/shared/rakefiles/tests/vendor/bundle/ruby/2.5.0/gems/google-protobuf-3.6.1/ext/google/protobuf_c
/usr/bin/ruby -r ./siteconf20190220-60-1l7g80p.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

extconf failed, exit code 1

(google-protobuf is a dependency of the google-cloud-monitoring gem.)
This feels vaguely familiar. Does anyone recognize it? I'll look into this tomorrow.

In honor of getting PR #300:

This feels vaguely familiar. Does anyone recognize it? I'll look into this tomorrow.

Yes, this is a somewhat recurring issue (a bit different with each iteration of alpine, ruby, google-protobuf and -grpc gems :), required for custom Stackdriver stuff).
I would recommend checking out https://github.com/gpii-ops/exekube/blob/master/dockerfiles/google/Dockerfile how this is currently handled, that should be the working setup.
I think this also means that the google-cloud-monitoring gem is present in the image and maybe the easisest way is to try without modifiing the Gemfile/Gemfile.lock (it was pretty painful to find working combo last time -  some links to issues I've hit during the process are in https://github.com/gpii-ops/exekube/pull/30 in case you're interested)?

I discovered that bundle will use an already-installed version of a gem IF a) the version is an exact match and b) you don't use --path. Issue with hints (and disagreement :)) about bundler's behavior.
CircleCI has successfully run my tests. I think this PR is ready for merge.

LGTM

Re tests: It might be worth adding output from failed Locust run (like when the endpoints are not available at all), as the JSON structure of the Locust response is different (and has previously bitten us before).

I saw that you tried to handle this when you last touched this code, but I couldn't trigger the error condition (and your associated "fix" was dropping all distributions data ;)). If you can show me what the error case looks like, I will add a test to exercise that code path.
I have a test that tests what happens when the distribution CSV contains no data (only header rows) and the controversial unless distributions.empty?  line ought to protect us from the distribution CSV being empty. What scenarios am I missing?

I have addressed all of Stepan's feedback, and I think this is again ready for merge.

If you can show me what the error case looks like, I will add a test to exercise that code path.

Try this output of /stats/requests:
{
  "current_response_time_percentile_50": null,
  "current_response_time_percentile_95": null,
  "errors": [
    {
      "error": "'SSLError(MaxRetryError(\"HTTPSConnectionPool(host=\\'preferences.stepan.dev.gcp.gpii.net\\', port=443): Max retries exceeded with url: /preferences/carla (Caused by SSLError(SSLError(1, \\'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:841)\\'),))\",),)'",
      "method": "GET",
      "name": "/preferences/carla",
      "occurences": 133
    },
    {
      "error": "'SSLError(MaxRetryError(\"HTTPSConnectionPool(host=\\'preferences.stepan.dev.gcp.gpii.net\\', port=443): Max retries exceeded with url: /preferences/omar (Caused by SSLError(SSLError(1, \\'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:841)\\'),))\",),)'",
      "method": "GET",
      "name": "/preferences/omar",
      "occurences": 146
    },
    {
      "error": "'SSLError(MaxRetryError(\"HTTPSConnectionPool(host=\\'preferences.stepan.dev.gcp.gpii.net\\', port=443): Max retries exceeded with url: /preferences/vladimir (Caused by SSLError(SSLError(1, \\'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:841)\\'),))\",),)'",
      "method": "GET",
      "name": "/preferences/vladimir",
      "occurences": 121
    },
    {
      "error": "'SSLError(MaxRetryError(\"HTTPSConnectionPool(host=\\'preferences.stepan.dev.gcp.gpii.net\\', port=443): Max retries exceeded with url: /preferences/telugu (Caused by SSLError(SSLError(1, \\'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:841)\\'),))\",),)'",
      "method": "GET",
      "name": "/preferences/telugu",
      "occurences": 142
    },
    {
      "error": "'SSLError(MaxRetryError(\"HTTPSConnectionPool(host=\\'preferences.stepan.dev.gcp.gpii.net\\', port=443): Max retries exceeded with url: /preferences/wayne (Caused by SSLError(SSLError(1, \\'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:841)\\'),))\",),)'",
      "method": "GET",
      "name": "/preferences/wayne",
      "occurences": 121
    }
  ],
  "fail_ratio": 1.0,
  "slaves": [
    {
      "id": "locust-worker-85f6779589-4hnzm_5414a9ea54f6cc2e4dfbe842b75778d0",
      "state": "running",
      "user_count": 17
    },
    {
      "id": "locust-worker-85f6779589-s5jsk_24896bab2927be6afe06b1e793ec8a76",
      "state": "ready",
      "user_count": 0
    },
    {
      "id": "locust-worker-85f6779589-gzs4x_d123fe4e78ba77cc08a76f83c1718cf0",
      "state": "ready",
      "user_count": 0
    }
  ],
  "state": "running",
  "stats": [
    {
      "avg_content_length": 0,
      "avg_response_time": 0,
      "current_rps": 0.0,
      "max_response_time": 0,
      "median_response_time": 0,
      "method": "GET",
      "min_response_time": 0,
      "name": "/preferences/carla",
      "num_failures": 133,
      "num_requests": 0
    },
    {
      "avg_content_length": 0,
      "avg_response_time": 0,
      "current_rps": 0.0,
      "max_response_time": 0,
      "median_response_time": 0,
      "method": "GET",
      "min_response_time": 0,
      "name": "/preferences/omar",
      "num_failures": 146,
      "num_requests": 0
    },
    {
      "avg_content_length": 0,
      "avg_response_time": 0,
      "current_rps": 0.0,
      "max_response_time": 0,
      "median_response_time": 0,
      "method": "GET",
      "min_response_time": 0,
      "name": "/preferences/telugu",
      "num_failures": 142,
      "num_requests": 0
    },
    {
      "avg_content_length": 0,
      "avg_response_time": 0,
      "current_rps": 0.0,
      "max_response_time": 0,
      "median_response_time": 0,
      "method": "GET",
      "min_response_time": 0,
      "name": "/preferences/vladimir",
      "num_failures": 121,
      "num_requests": 0
    },
    {
      "avg_content_length": 0,
      "avg_response_time": 0,
      "current_rps": 0.0,
      "max_response_time": 0,
      "median_response_time": 0,
      "method": "GET",
      "min_response_time": 0,
      "name": "/preferences/wayne",
      "num_failures": 121,
      "num_requests": 0
    },
    {
      "avg_content_length": 0,
      "avg_response_time": 0,
      "current_rps": 0.0,
      "max_response_time": 0,
      "median_response_time": 0,
      "method": null,
      "min_response_time": 0,
      "name": "Total",
      "num_failures": 663,
      "num_requests": 0
    }
  ],
  "total_rps": 0.0,
  "user_count": 17
}

I added a test containing that json blob. It does not raise an exception, so I guess we're good.
I did have to change : to => and null to nil to make it valid Ruby code (I did the same with the other test data JSON I got from Locust).

CircleCI gave me this error, but passed after a retry:
Starting container gpii/exekube:0.4.0-google
  image cache not found on this host, downloading gpii/exekube:0.4.0-google

Error response from daemon: error parsing HTTP 404 response body: invalid character 'p' after top-level value: "404 page not found\n"


feat(mfi-v2-ui): adding the latest added bank to the announcements section

Using the unsorted marginfiClient.banks object to get the latest added bank and adding this to the announcements

NICE.


Fix Microsoft/TypeScript#19277

remove readonly
type to Location | string

While the setter allows string the getter always returns Location not string. I think forcing location.href is reasonable enough.

@SaschaNaz

'get' and 'set' accessor must have the same type
but that is strange

'get' and 'set' accessor must have the same type

In TypeScript. Not in raw JavaScript world, sadly.

i am not sure this is the right fix here... we may need to make this any instead..
we have favored reading over writing before, favoring writing over reading seems to just change the problem instead of fixing it.. seems like any is the only "fix" for both cases..

Wanted to highlight that this PR is reverted in this commit https://github.com/microsoft/TSJS-lib-generator/commit/9e88bfd7f01253b71fd266bcb5e11796942d377e
As of today<EMAIL_ADDRESS>it is not possible to assign type string to Location
window.location = '/'

Error:
Type 'string' is not assignable to type 'Location'.ts(2322)

Is there any reason to not use window.location.href?

Is there any reason to not use window.location.href?

Apparently yes. There seems to be some differences between setting location.href vs location.
Quoting

I note that in browsers today, setting window.location = "some string" has special behaviour, see here: stackoverflow.com/questions/2383401/… - see the comments regarding same-site, same-origin and XHR behaviour. – Dai Dec 16 '19 at 5:54

Was trying to create an issue about this in this repo, however, I am not able to setup an environment to proof those differences mention in the discussion.

Have you seen that behavior yourself? The mentioned web page doesn't say the href setter will throw (only the getter will), and AFAIK setting window.location simply forwards its value to window.location.href. (See PutForwards=href in the IDL.)

1

The mentioned web page doesn't say the href setter will throw (only the getter will),
Not sure what you mean by "throw" (throw error)

Hmm.. not sure what you mean by "href setter will throw".
What I wanted to highlight from the quoted links are:

setting location.href mail fail because of same-origin-policy: javascript.info/tutorial/…
– Taha Jahangir Aug 25 '14 at 7:49

window.location.href is somewhat treated like an XHR request. If fired from within an XHR's success callback, window.location.href will be treated as an XHR while window.location emulates clicking on a link.
– Akshay Raje Jul 6 '16 at 10:35

window.location does not require SAME ORIGIN.
– Swiss Mister Jul 4 '14 at 13:55

These commenters claimed to observed different behaviours between the setting location and location.href
2

Have you seen that behavior yourself?

Unfortunately no.

I was NOT able to reproduce the claim that "window.location.href is somewhat treated like XHR request" in Chrome 79
I do not currently have time to create an environment to test out the "same-origin" requirement.

3

and AFAIK setting window.location simply forwards its value to window.location.href. (See PutForwards=href in the IDL.)

Noted.
I made the original comment in hope to document the reversion of this PR.
I was in the midst of converting existing JS codebase to TS. Our codebase uses window.location and I was not expecting the code to throw error in Typescript.
Upon researching I found this issue https://github.com/microsoft/TypeScript/issues/19277 and this PR, thinking that we are able to assign type string to location again. But that was not the case in my machine.
4 My thought/concern on this issue
location = '/' is a valid assignment in JavaScript (according to w3 spec). However, I am not sure how TypeScript can fascilitate this kind of assignment given "'get' and 'set' accessor must have the same type".
My current requirement allow me to change assignment from location to location.href, so I am ok with the current workaround at the moment.
At this moment, I am just concerned about the validity of the claims made in the stackoverflow comments

@saschanaz I now understood what you meant by "doesn't say the href setter will throw". I wasn't reading the mentioned web page in detail earlier.
Upon testing, it is possible to redirect an iframe by setting both location and location.href in context where same-origin policy is enforced.

I have tested this behaviour in different browsers.

Chrome 79
Firefox
IE 11 (Also emulated IE 5, 7, 8, 9, 10)
Edge 44.18362,449 (it crashed for both case, seems to be a separate bug with Edge itself)

Test: https://codepen.io/amoshydra/full/YzPeyYb
All browsers are able to redirect an iframe of different origin by setting its location.href

It seems like all those claims about the special behaviour of setting location made are invalid / unfounded.

I agree with you. Right now I see no reason to not use window.location.href


SAK-42821 reduce polling to /portal/timeout and /direct/session

 Here is an overview of what got changed by this pull request:

Complexity increasing per file
==============================
- library/src/morpheus-master/js/src/sakai.morpheus.session.js  1

See the complete overview on Codacy

Does this change affect the default of<EMAIL_ADDRESS>If so, that property's default value should be updated in default.sakai.properties.

Hi @fostersdesign presence isn't affected here

Just get rid of timeout.vm

Hmmmm seems to be used by TimeoutDialogHandler.java

 Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 1

Complexity increasing per file
==============================
- library/src/morpheus-master/js/src/sakai.morpheus.session.js  1

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 1

Complexity increasing per file
==============================
- library/src/morpheus-master/js/src/sakai.morpheus.session.js  1

See the complete overview on Codacy


Google Docs configs documentation

Documentation Feedback
We have the need to let the Google Docs documentation better documented, as anyone could do it from zero.
Affected documentation page: docs/CONFIGURING-GOOGLE.md

closing because now there ir a documentation in the read.me file.


Left Column Width

Hi,
I'm sure this is an easy one, perhaps I've overlooked something so forgive me in advance.
Is there an easy way to set the width the of the "left" column in the theme? I want to make mine a little bit wider.
-Peter

Left for navigation menu? :) Hmm. Not yet possible.
Do want it wider ... will see what I can do.

Peter, hi!
It was a bit difficult to make... but next version will have such option for adjusting navigation menu width.
Thanks for the good idea! ;)
P.S. Never seen you for ages in XMPP.. Could you re-add me up again? qooobATjabbers.im


ValueError: Failed to convert a NumPy array to a Tensor (Unsupported object type list).

Im getting this valueError in colab gpu env with keras tensorflow ver 2.
ValueError: Failed to convert a NumPy array to a Tensor (Unsupported object type list). on running the following code :
---- CTC ----
# y_input layers (transcription data) for CTC loss

labels = Input(name='the_labels', shape=[None], dtype=dtype)       # transcription data (batch_size * y_seq_size)
input_length = Input(name='input_length', shape=X_train_length.shape, dtype=dtype)  # unpadded len of all x_sequences in batch
label_length = Input(name='label_length', shape=label_length.shape, dtype=dtype)  # unpadded len of all y_sequences in batch
Lambda layer with ctc_loss function due to Keras not supporting CTC layers
loss_out = Lambda(function=ctc_lambda_func, name='ctc', output_shape=(1,))([y_pred, np.float32, Y_train, np.float32, X_train_length, np.float32, label_length, np.float32])
network_model = Model(inputs=[input_data, labels, input_length, label_length], outputs=y_pred)
PFA the screenshot for reference.

@neenaloysius
Request you to share colab link or simple standalone code with supporting files to reproduce the issue in our environment.It helps us in localizing the issue faster.Thanks!


add the json's to the manual review folder

And maybe all the other files (bams, etc?) for sequences that need review?

No longer relevant?


fpm: fix vulnerable dependency (for 16.09)

Motivation for this change
Further to #22374, thanks @joachifm
Only tested on unstable.
Things done

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

[X] NixOS
[ ] macOS
[ ] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[X] Tested execution of all binary files (usually in ./result/bin/)
[X] Fits CONTRIBUTING.md.

Picked to release at https://github.com/NixOS/nixpkgs/commit/82a6c831f68e98951f1f7ad6dd815d0cec258645

@joachifm, thanks, but I edited Gemfile.lock to adjust the bundler version so that there are no complaints from bundler.

So it's not a cherry-pick? I can revert & apply this instead, but please do mention stuff like that in the future :)

It was not a cherry-pick, no, that's why I opened a separate PR with a different commit. The difference is a warning by bundler, but no errors as such.

Well, people open new PRs without remembering to do do cherry-pick -x quite often, so ...

people open new PRs without remembering to do do cherry-pick -x

That would include me it seems... ;-) Thanks for handling this!

:)


Open URL with Chrome

Besides openURLInDefaultBrowser, can youadd another ChemdrawAPI function to force open URL in Chrome, no matter it's the default browser or not? Thanks.

Met the same issue here.
In the javascript, the syntax:
window.open(url) can only open the new webpage in IE (OS: windows 7)


bug: FUTWIZ prices wont work

Prerequisites

[X] I have searched for existing issues that already report this problem, without success.

Script Version
1.6.3
Platform
Webapp
Current Behavior
FUTWIZ prices wont work. It simply does not show the prices.
Expected Behavior
It should show the prices so we can sell cards for futwiz price.
Steps to Reproduce
Just clicking transfer list.
Additional Information
No response

Looks like it is fixed.