Custom authentication parameters / token based authentication?

In my app I want to be able to use just a custom login token (on app start) to authenticate and get a JWT token. Right now as far as I know a username and password is required, is there any way to change this?

you can use function jwt_encode_callback to get jwt token.
`def _default_jwt_encode_handler(identity):
secret = current_app.config['JWT_SECRET_KEY']
algorithm = current_app.config['JWT_ALGORITHM']
required_claims = current_app.config['JWT_REQUIRED_CLAIMS']
payload = _jwt.jwt_payload_callback(identity)
missing_claims = list(set(required_claims) - set(payload.keys()))

if missing_claims:
    raise RuntimeError('Payload is missing required claims: %s' % ', '.join(missing_claims))

headers = _jwt.jwt_headers_callback(identity)

return jwt.encode(payload, secret, algorithm=algorithm, headers=headers)`


Link to Pretrained Original-Conformer Models

Thanks for the amazing work.
I want to test the original CTC-Conformer with this code.
If you have placed the pre-trained models on GD, can you please share the link like you have shared the links to Efficient Conformer model on Colab page. Thanks

Hi,
I no longer have access to the pre-trained checkpoints of other experiments. However, you should be able to recover the paper results using the ConformerCTCSmall.json config if you have access to 4 RTX 2080 GPUs !

All right, thanks. I will try to reproduce the results.


the dir argument doest not work as expected

Neotree dir=path_var does not show filesystem tree with setting root to path_var, but always setting pwd(current working directory) instead.
I wonder whether I misuse the dir argument

You might have this option set to true:
filesystem = {
  bind_to_cwd = true, -- sync neo-tree and vim's cwd.

and I just tested a hardcoded one like Neotree dir=~/.config and it works. So it might be that you somehow always set that variable to a fixed value.

I tested it out and it works fine for me.
I would say you have some kind of autocmd or other plugin that is changing the cwd on you. I'm going to close this for now because I am certain that this is the case. If you can come up with a minimal config to recreate the problem with only neo-tree installed, go ahead and re-open the issue with that information.


gnome-tweaks: "Suspend when lid closed" option leaks store path in home directory

Describe the bug
In gnome-tweaks, turning off the setting "suspend when lid closed" creates .config/autostart/ignore-lid-switch-tweak.desktop in the user's home directory. It contains a line like Exec=/nix/store/w8d59rp9m48qszws71zhs4i59lmhk4pa-gnome-tweaks-40.0/libexec/gnome-tweak-tool-lid-inhibitor, which means that it will stop working when that store path goes out of date and gets garbage collected.
Steps To Reproduce
Steps to reproduce the behavior:

In gnome-tweaks, turn off "Suspend when lid closed"
Look in ~/.config/autostart/ignore-lid-switch-tweak.desktop and see the store path

Expected behavior
The .desktop file should not directly use the store path.
Additional context
First mentioned in #136066.
Notify maintainers
@hedning @jtojnar @maxeaubrey
Metadata

```console
 - system: `"x86_64-linux"`
 - host os: `Linux 5.10.68, NixOS, 21.11 (Porcupine)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.15`
 - channels(root): `"nixos-21.11pre319562.c21ba4f7bb4, nixos-hardware"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
```

Still there:
$ grep /nix/store .config/autostart/ignore-lid-switch-tweak.desktop
Exec=/nix/store/1qqza43n3wzxgjdhyr0a6q0ibpxg8bsb-gnome-tweaks-40.0/libexec/gnome-tweak-tool-lid-inhibitor

It finally happened for me; that store path got GC'd. The result is nothing unexpected but I thought I'd write it down: Gnome quietly starts suspending on lid switch again (no error message except presumably in the system log). It can be fixed by toggling the setting once (to remove the .desktop file) and back again (to recreate a fresh one with a working store path).

It sounds like this feature (the "Suspend when lid closed" option) was removed from gnome-tweaks as it was considered out-of-scope for that tool. It has been suggested that this feature ought to be implemented in Gnome Settings proper, instead of Tweaks, but that hasn't happened yet.
So, it seems that as of Gnome 45 or so, neither Tweaks nor Settings has an option to prevent systemd from suspending on lid switch.
I am therefore closing this issue as it is no longer relevant or applicable to current versions of gnome-tweaks. Anyone who still has a ~/.config/autostart/ignore-lid-switch-tweak.desktop should probably remove it.


Layout dimensions

Considering sizing on tablet and mobile. Consult with UX as required.
Investigate using CSS media queries - take height into account too.
Desired behaviour:

Mobile Landscape
Mobile Portrait
Tablet Landscape
Tablet Portrait

Navigator
Hidden
Hidden
Hidden
Shown

Period selection
Dropdown
Dropdown
Tabs
Dropdown

Clear all button
Shown
Shown
Hidden
Shown

Hiding navigator when on a tablet in landscape removes any clear method of quickly navigating to the newest / most recent point of interest on the charts

The clear all button seems to be present all the time. Even when you dont have anything to clear


Typing support

Would you be interested in adding type stubs if they were contributed to this repo?
And if not, could you give me permission (*) to contribute the stubs to https://github.com/python/typeshed instead?
(*) The permission is required per typeshed's contributing guidelines but having the stubs for your lib in the typeshed does not require you to do any work on it as it's maintained within the typeshed repo then

Go ahead if you'd like to contribute stubs to this repo, though that may be difficult. Feel free to add stubs either here or to the typeshed repo - whichever is easier.


Transport selection may not work correctly in TS client when the user is requesting WebSockets

The reason is that we check if the transport was passed to the function incorrectly. The value of TransportType.WebSocket is 0 so the condition evaluates to be falsy and as a result we use the first transport returned by the server (even if it's not websockets)) instead of returning an error.

This will be fixed as part of https://github.com/aspnet/SignalR/pull/1036

Fixed with: caff492cdc8eccc42254ec7d584ab48b1fb019fe


[DOCFIX] Restructure docs

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/380/
Test PASSed.


Don't install Android NDK in CI

Android CI is unnecessarily installing a version of the Android NDK. If it's not there, it is installed by detect.py configure(env):
https://github.com/godotengine/godot/blob/afbabd12f3a5b83c6a9ddc4e8e43be4041b290bf/platform/android/detect.py#L72-L93
The only actual dependencies are the installation of the Android SDK, and the setting of the environmental variable ANDROID_SDK_ROOT, which it (correctly) assumes to already be done.
Furthermore, it is installing it in a non-default location:
Warning: Observed package id 'ndk;21.4.7075529' in inconsistent location '/usr/local/lib/android/sdk/ndk-bundle' (Expected '/usr/local/lib/android/sdk/ndk/21.4.7075529')

It is also doing this using the deprecated environmental variable ANDROID_HOME:
https://github.com/godotengine/godot/blob/afbabd12f3a5b83c6a9ddc4e8e43be4041b290bf/.github/workflows/android_builds.yml#L34
It is creating another hard-coded dependency on the version:
https://github.com/godotengine/godot/blob/afbabd12f3a5b83c6a9ddc4e8e43be4041b290bf/.github/workflows/android_builds.yml#L9
And, it's unnecessarily setting the deprecated environmental variable ANDROID_NDK_ROOT (the version is now specified in the build.gradle file):
https://github.com/godotengine/godot/blob/afbabd12f3a5b83c6a9ddc4e8e43be4041b290bf/.github/workflows/android_builds.yml#L67
This PR removes the unnecessary installation of the Android NDK and the unnecessary setting of environmental variables ANDROID_NDK_VERSION and ANDROID_NDK_ROOT.

The hardcoded version is intended, our buildsystem expects and will install NDK 21.4.7075529. Pre-installing it in CI shouldn't hurt and makes the dependency explicit, but I'm also fine with removing it, reducing the risk for having a discrepancy if we bump the pinned version in platform/android/java/app/config.gradle and not CI.
I'm confused by that part however:
Warning: Observed package id 'ndk;21.4.7075529' in inconsistent location '/usr/local/lib/android/sdk/ndk-bundle' (Expected '/usr/local/lib/android/sdk/ndk/21.4.7075529')

The current CI scripts should put it in the expected location, and that's where ANDROID_NDK_ROOT points to. So why does it look up the ndk-bundle one? AFAIK ndk-bundle is pre-installed in the GitHub Actions CI runner, but it's not a usable version for us (we don't support NDK 22+).

Thanks!

Cherry-picked for 3.4.

Cherry-picked for 3.3.3.


All the Java examples are old

PLS update the Java examples , or of them are based on the old version of Appium , and in the new version the AppiumDriver is an abstract class...

Fixed in #26

Thanks :)


Enable Scrutinizer

Support for Tavis and coveralls were added in PR #158. The services must only be enabled by a Kytos admin.

@cemsbr and @beraldoleal are we going to use scrutinizer on this repo too? If so, I think that this issue can be closed in favor of another one to setup scrutinizer here, right?

@diraol Yes. We are still testing Scrutinizer. But yes, probably this will be scrutinizer too.

I have a branch with scrutinizer setup, but we need the tests to pass to make sure it is working. The code is broken because of #197.


pgsql problem

ISSUE TYPE

Question

SUMMARY

On start devilbox /docker/ I have a error:
ERROR: Named volume "devilbox-pgsql-:/var/lib/postgresql/data/pgdata:rw" is used in service "pgsql" but no declaration was found in the volumes section.
Goal

@wcizmowski can you paste your .env as well as the output of docker-compose logs.

Hello @cytopia , I have installed it on MacOS Catalina and I get exactly the same error:
$ docker-compose up WARNING: The PGSQL_SERVER variable is not set. Defaulting to a blank string. WARNING: The REDIS_SERVER variable is not set. Defaulting to a blank string. WARNING: The MEMCD_SERVER variable is not set. Defaulting to a blank string. WARNING: The MONGO_SERVER variable is not set. Defaulting to a blank string. ERROR: Named volume "devilbox-pgsql-:/var/lib/postgresql/data/pgdata:rw" is used in service "pgsql" but no declaration was found in the volumes section.
Here is my .env file:
`###
---------------------------------------------------
D E V I L B O X   R U N - T I M E   S E T T I N G S
---------------------------------------------------

All the following settings are applied during
$ docker-compose up

No need to rebuild any docker images!

IMPORTANT:
----------
When changing any values ensure to stop, rm and restart:
$ docker-compose stop
$ docker-compose rm -f
$ docker-compose up

NOTE:
-----
For you own custom variables, scroll to the bottom

The following line will disable any shellcheck warnings throughout this file
shellcheck disable=SC2034,SC2125

Show all executed commands in each
docker image during docker-compose up?

1: Yes
0: No
DEBUG_COMPOSE_ENTRYPOINT=1

Log to file or Docker logs.

Logging to file means log files are available under log/
on your host operating system.
Logging to Docker logs means log files are streamed to
stdout and stderr.

1: Log to Docker logs
0: Log to file

DOCKER_LOGS=0

Relative or absolute path to the devilbox repository.
(Used as a prefix for all mount paths)
There is no need to change this.

The only exception is for OSX users wanting to use NFS
mounts instead of Filesystem mounts due to degraded performance
on OSX.

Note: When changing this variable you must re-create the container.
Simply remove it, it will be auto-created during the next start:

$ docker-compose rm -f

DEVILBOX_PATH=.

At what IP address should the docker services listen
on the Host computer?

The specified default should be fine for Linux and OSX (<IP_ADDRESS>:).
If you are on windows, you will probably have to change
it to the IP address of the docker machine.

a.) Leave blank, to listen on all interfaces (no trailing colon ':')
LOCAL_LISTEN_ADDR=
b.) If an IP is specified, note the trailing colon ':'
LOCAL_LISTEN_ADDR=<IP_ADDRESS>:

LOCAL_LISTEN_ADDR=

This is the domain suffix your projects will be made available
with mass-virtual-hosting.
It is also required for the internal DNS server to be setup.

Note: Only ALPHA ([a-zA-Z]+) characters are supported.

Example:
TLD_SUFFIX=loc
Makes your project available under xxxx.loc

Example:
TLD_SUFFIX=local
Makes your project available under xxxx.local

TLD_SUFFIX=loc

Optional DNS configuration
Allows you to add extra DNS records (above the wildcard entry)
Useful if your host computer run other Docker services that you want to connect to or reach
from within the Devilbox network by a custom hostname.

Format:
-------
Resolve any custom defined hostname to an IP address (useable inside container and host os)
EXTRA_HOSTS==[,=]

Resolve any custom defined hostname to whatever IP address a CNAME resolves to
(Useable inside the container and host OS).
Note: CNAME must be resolvable by Google DNS
EXTRA_HOSTS==[,=]

Examples:
---------
EXTRA_HOSTS=hostname.loc=<IP_ADDRESS>
EXTRA_HOSTS=host.loc=<IP_ADDRESS>,host.example.org=<IP_ADDRESS>
EXTRA_HOSTS=

Set your user id and group id

This should be changed to the value of your local
users uid and gid

Type id on the terminal to find out your values

NEW_UID=1000
NEW_GID=1000

Timezone for PHP Docker container (system and php.ini)

TIMEZONE=UTC
################################################################################

INTRANET SETTINGS

################################################################################

TLD_SUFFIX domains are checked if they are set in the
host computer /etc/hosts or available via attached DNS server.
Timeout is done on vhosts.php (intranet) via ajax calls.
In order to keep performance, set this to a low value.
DNS checks might not succeed in time on slow machines.
If DNS is valid, but timeout is expired, set this to a higher value.

DNS_CHECK_TIMEOUT value is how many seconds to time out
Default is to timeout after 1 second (DNS_CHECK_TIMEOUT=1)

DNS_CHECK_TIMEOUT=1

Devilbox UI SSL Certificate generation

When using SSL each certificate requires names for which it is responsible:
Common Name as well as alternative names.

Specify comma separated hostnames below by which you want to access the Devilbox.
Those hostnames will be included in the SSL certificate for the Devilbox intranet.
This has nothing to do for SSL certificates for projects, it is just for the intranet
itself.

DEVILBOX_UI_SSL_CN=localhost,.localhost,devilbox,.devilbox,httpd

Devilbox UI Password protection enable/disable (1/0)

Set DEVILBOX_UI_PROTECT to 1 in order to password protect the
intranet.

Example:
DEVILBOX_UI_PROTECT=1
DEVILBOX_UI_PROTECT=0

DEVILBOX_UI_PROTECT=0

Devilbox UI Password

When DEVILBOX_UI_PROTECT=1, use the following password
to log in. The password can always be changed.
When changing the password, make sure to restart your
PHP container.

Example:
DEVILBOX_UI_PASSWORD=my-very-secure-password
DEVILBOX_UI_PASSWORD=Some pass with spaces

The default username is 'devilbox'

DEVILBOX_UI_PASSWORD=password

Enable the Devilbox Intranet?

Example:
DEVILBOX_UI_ENABLE=1
DEVILBOX_UI_ENABLE=0

DEVILBOX_UI_ENABLE=1

Automatically be logged in into phpMyAdmin

Example:
DEVILBOX_VENDOR_PHPMYADMIN_AUTOLOGIN=1
DEVILBOX_VENDOR_PHPMYADMIN_AUTOLOGIN=0

DEVILBOX_VENDOR_PHPMYADMIN_AUTOLOGIN=1

Automatically be logged in into phpPgAdmin

Example:
DEVILBOX_VENDOR_PHPPGADMIN_AUTOLOGIN=1
DEVILBOX_VENDOR_PHPPGADMIN_AUTOLOGIN=0

DEVILBOX_VENDOR_PHPPGADMIN_AUTOLOGIN=1
################################################################################

1. Choose Images (Version)

################################################################################

You can choose any combination of httpd, mysql, postgresql or php.
Each of them are fully compatible between one another.

1.1 Choose PHP Server Image

Note: PHP 5.2 is not officially supported. Intranet won't work (due to lack of namespace support).
PHP 5.2 only works with Apache 2.4, Nginx stable and Nginx mainline.
Use at your own risk.

#PHP_SERVER=5.2
#PHP_SERVER=5.3
#PHP_SERVER=5.4
#PHP_SERVER=5.5
#PHP_SERVER=5.6
#PHP_SERVER=7.0
#PHP_SERVER=7.1
#PHP_SERVER=7.2
PHP_SERVER=7.3
#PHP_SERVER=7.4
#PHP_SERVER=8.0

1.2 Choose HTTPD Server Image

#HTTPD_SERVER=apache-2.2
#HTTPD_SERVER=apache-2.4
HTTPD_SERVER=nginx-stable
#HTTPD_SERVER=nginx-mainline

1.3 Choose MySQL Server Image

#MYSQL_SERVER=mysql-5.5
#MYSQL_SERVER=mysql-5.6
#MYSQL_SERVER=mysql-5.7
#MYSQL_SERVER=mysql-8.0
#MYSQL_SERVER=mariadb-5.5
#MYSQL_SERVER=mariadb-10.0
#MYSQL_SERVER=mariadb-10.1
#MYSQL_SERVER=mariadb-10.2
MYSQL_SERVER=mariadb-10.3
#MYSQL_SERVER=mariadb-10.4
#MYSQL_SERVER=percona-5.5
#MYSQL_SERVER=percona-5.6
#MYSQL_SERVER=percona-5.7
#MYSQL_SERVER=percona-8.0

1.4 Choose PostgreSQL Server Image

IMPORTANT: Apline based images might cause issues on Docker Toolbox or OSX
https://github.com/docker/toolbox/issues/510

#PGSQL_SERVER=9.0
#PGSQL_SERVER=9.1
#PGSQL_SERVER=9.2
#PGSQL_SERVER=9.2-alpine
#PGSQL_SERVER=9.3
#PGSQL_SERVER=9.3-alpine
#PGSQL_SERVER=9.4
#PGSQL_SERVER=9.4-alpine
#PGSQL_SERVER=9.5
#PGSQL_SERVER=9.5-alpine
#PGSQL_SERVER=9.6
#PGSQL_SERVER=9.6-alpine
#PGSQL_SERVER=10.0
#PGSQL_SERVER=10.0-alpine
#PGSQL_SERVER=10.1
#PGSQL_SERVER=10.1-alpine
#PGSQL_SERVER=10.2
#PGSQL_SERVER=10.2-alpine
#PGSQL_SERVER=10.3
#PGSQL_SERVER=10.3-alpine
#PGSQL_SERVER=10.4
#PGSQL_SERVER=10.4-alpine
#PGSQL_SERVER=10.5
#PGSQL_SERVER=10.5-alpine
#PGSQL_SERVER=10.6
#PGSQL_SERVER=10.6-alpine
#PGSQL_SERVER=10.7
#PGSQL_SERVER=10.7-alpine
#PGSQL_SERVER=10.8
#PGSQL_SERVER=10.8-alpine
#PGSQL_SERVER=10.9
#PGSQL_SERVER=10.9-alpine
#PGSQL_SERVER=10.10
#PGSQL_SERVER=10.10-alpine
#PGSQL_SERVER=10.11
#PGSQL_SERVER=10.11-alpine
#PGSQL_SERVER=11.0
#PGSQL_SERVER=11.0-alpine
#PGSQL_SERVER=11.2
#PGSQL_SERVER=11.2-alpine
#PGSQL_SERVER=11.3
#PGSQL_SERVER=11.3-alpine
#PGSQL_SERVER=11.4
#PGSQL_SERVER=11.4-alpine
#PGSQL_SERVER=11.5
#PGSQL_SERVER=11.5-alpine
#PGSQL_SERVER=11.6
#PGSQL_SERVER=11.6-alpine
#PGSQL_SERVER=12.0
#PGSQL_SERVER=12.0-alpine
#PGSQL_SERVER=12.1
#PGSQL_SERVER=12.1-alpine
#PGSQL_SERVER=latest
#PGSQL_SERVER=alpine

1.5 Choose Redis Server Image

IMPORTANT: Apline based images might cause issues on Docker Toolbox or OSX
https://github.com/docker/toolbox/issues/510

#REDIS_SERVER=2.8
#REDIS_SERVER=3.0
#REDIS_SERVER=3.0-alpine
#REDIS_SERVER=3.2
#REDIS_SERVER=3.2-alpine
#REDIS_SERVER=4.0
#REDIS_SERVER=4.0-alpine
#REDIS_SERVER=5.0
#REDIS_SERVER=5.0-alpine
#REDIS_SERVER=latest
#REDIS_SERVER=alpine

1.6 Choose Memcached Server Image

IMPORTANT: Apline based images might cause issues on Docker Toolbox or OSX
https://github.com/docker/toolbox/issues/510

#MEMCD_SERVER=1.4
#MEMCD_SERVER=1.4-alpine
#MEMCD_SERVER=1.5
#MEMCD_SERVER=1.5-alpine
#MEMCD_SERVER=latest
#MEMCD_SERVER=alpine

1.7 Choose Mongo Server Image

#MONGO_SERVER=2.8
#MONGO_SERVER=3.0
#MONGO_SERVER=3.2
#MONGO_SERVER=3.4
#MONGO_SERVER=3.6
#MONGO_SERVER=4.0
#MONGO_SERVER=4.2
#MONGO_SERVER=latest
################################################################################

2. Host Mounts (Your computer)

################################################################################

Global mount options

Note: When adding custom mount options, ensure to start with a
leading ',' (comma), as those options are prepended to already
existing mount options.

Note: If no mount options are specified, leave this variable empty
and do not add a leading ',' (comman).

MOUNT_OPTIONS=,cached
MOUNT_OPTIONS=

Example: Allow to share mounts accross container with SELINUX enabled

MOUNT_OPTIONS=,z

MOUNT_OPTIONS=

Local filesystem path to www projects.

Note: When changing this variable you must re-create the container.
Simply remove it, it will be auto-created during the next start:

$ docker-compose rm -f

HOST_PATH_HTTPD_DATADIR=./data/www
################################################################################

3. PHP Docker Settings

################################################################################

Enable certain PHP modules which are not enabled by default

Currently the only modules that can be enabled are 'ioncube' and 'blackfire'
Also ensure to disable xdebug when using any of the above:
https://xdebug.org/docs/install#compat

PHP_MODULES_ENABLE=ioncube, blackfire

PHP_MODULES_ENABLE=

Disable any PHP modules that you don't require

Specify a comma separated list without spaces of modules to disable

PHP_MODULES_DISABLE=xdebug,imagick,swoole

PHP_MODULES_DISABLE=oci8,PDO_OCI,pdo_sqlsrv,sqlsrv,rdkafka,swoole

Configure everything else about PHP in
* cfg/php-ini-X.X/*.ini
* cfg/php-fpm-X.X/*.conf
################################################################################

4. HTTPD Docker Settings

################################################################################

Expose HTTPD Port to Host

HOST_PORT_HTTPD=80
HOST_PORT_HTTPD_SSL=443

Document Root Subdirectory

In your project directory, which subfolder should
serve your files?

When changing this value, restart the devilbox.

HTTPD_DOCROOT_DIR=htdocs

Per vHost Config Subdirectory

In your project directory, which subfolder should
hold apache, nginx templates for a customized vhost?

When changing this value, restart the devilbox.

HTTPD_TEMPLATE_DIR=.devilbox

Webserver timeout (in seconds) to upstream PHP-FPM server

This value should be greater than PHP's max_execution_time,
otherwise the php script could still run and the webserver will
simply drop the connection before getting an answer by PHP.

HTTPD_TIMEOUT_TO_PHP_FPM=180

NGINX ONLY

Set worker_processes and worker_connections

https://nginx.org/en/docs/ngx_core_module.html#worker_processes
https://nginx.org/en/docs/ngx_core_module.html#worker_connections

HTTPD_NGINX_WORKER_PROCESSES=auto
HTTPD_NGINX_WORKER_CONNECTIONS=1024
################################################################################

5. MySQL Docker Settings

################################################################################

MySQL root user password

The password is required for the initial creation of the MySQL database
as well as the Devilbox intranet to display schema and configuration settings.

If you change your MySQL root user password via mysql cli, phpMyAdmin or other tools
after the database has been created, ensure to adjust the value here accordingly as well.

If you only change this value here after the database has been created,
the MySQL root user password will not actually be changed and the Devilbox intranet
won't be able to connect to the MySQL service.

MYSQL_ROOT_PASSWORD=root

Expose MySQL Port to Host

HOST_PORT_MYSQL=3306
################################################################################

6. PostgreSQL Docker Settings

################################################################################

PostgreSQL 'root' user name (usually postgres)

PGSQL_ROOT_USER=postgres

PostgreSQL 'root' user password

PGSQL_ROOT_PASSWORD=

Expose PostgreSQL Port to Host

HOST_PORT_PGSQL=5432
################################################################################

7. Redis Docker Settings

################################################################################

Expose Redis Port to Host

HOST_PORT_REDIS=6379

Custom startup arguments

Apply custom startup arguments to redis

Example: Password protection
Add password protection to the Redis server by specifying it should
require a password.
Note: Do not add quotes or spaces to the password

REDIS_ARGS=--requirepass my-redis-root-password

Example: Verbosity

REDIS_ARGS=--loglevel verbose

REDIS_ARGS=
#REDIS_ARGS=--loglevel verbose --requirepass my-redis-root-password
################################################################################

8. Memcached Docker Settings

################################################################################

Expose Memcached Port to Host

HOST_PORT_MEMCD=11211
################################################################################

9. MongoDB Docker Settings

################################################################################

Expose MongoDB Port to Host

HOST_PORT_MONGO=27017
################################################################################

10. Bind Docker Settings

################################################################################

Expose Bind Port to Host

HOST_PORT_BIND=1053

Add comma separated DNS server from which you want to receive DNS
You can also add DNS servers from your LAN (if any are available)

BIND_DNS_RESOLVER=<IP_ADDRESS>,<IP_ADDRESS>

Validate DNSSEC

Values:
no:    DNSSEC validation is disabled
yes:   DNSSEC validation is enabled, but a trust anchor must be manually configured.
auto:  DNSSEC validation is enabled, and a default trust anchor for root zone is used.

BIND_DNSSEC_VALIDATE=no

Bind timing options (time in seconds)

Leave empty for defaults.
Only change when you know what you are doing.

BIND_TTL_TIME=
BIND_REFRESH_TIME=
BIND_RETRY_TIME=
BIND_EXPIRY_TIME=
BIND_MAX_CACHE_TIME=

Show DNS Queries in Docker logs output?

1: Yes
0: No
BIND_LOG_DNS_QUERIES=0
################################################################################

11. Custom variables

################################################################################

Any variable defined in this file will be available
as environment variables to your PHP/HHV Docker container.

This might be useful to set application environment and retrieve
them via:

Example:
 would produce: 'some value'

#Foo=some value
And result fordocker-compose logs`:
$ docker-compose logs WARNING: The PGSQL_SERVER variable is not set. Defaulting to a blank string. WARNING: The REDIS_SERVER variable is not set. Defaulting to a blank string. WARNING: The MEMCD_SERVER variable is not set. Defaulting to a blank string. WARNING: The MONGO_SERVER variable is not set. Defaulting to a blank string. ERROR: Named volume "devilbox-pgsql-:/var/lib/postgresql/data/pgdata:rw" is used in service "pgsql" but no declaration was found in the volumes section.
I just disabled every service except httpd, php and mysql.

If I enable PGSQL now this time it gives those errors:
$ docker-compose up
WARNING: The REDIS_SERVER variable is not set. Defaulting to a blank string.
WARNING: The MEMCD_SERVER variable is not set. Defaulting to a blank string.
WARNING: The MONGO_SERVER variable is not set. Defaulting to a blank string.
ERROR: Named volume "devilbox-mongo-:/data/db:rw" is used in service "mongo" but no declaration was found in the volumes section.

After I enable MongoDB it started downloading docker images.

Telling by all the warnings about missing set variables, it looks like your .env file is not read and therefore the configuration cannot be applied to docker-compose.yml file.

$ docker-compose up

If you only want to start certain services, do not comment them in .env, just use the correct docker-compose command:
# Only starting php, httpd and bind
docker-compose up php httpd bind

$ docker-compose up

If you only want to start certain services, do not comment them in .env, just use the correct docker-compose command:
# Only starting php, httpd and bind
docker-compose up php httpd bind

Ok greats. Thanks for the clarification.

@cs16lover is that solving your issue?

@cs16lover is that solving your issue?

Yes I am starting it as:
docker-compose up httpd php mysql
and it works without any problem. Thank you very much. (For my case, its resolved)

I have the same problem now. even docker-compose logs causes that error message
ERROR: Named volume "devilbox-pgsql-:/var/lib/postgresql/data/pgdata:rw" is used in service "pgsql" but no declaration was found in the volumes section.

I have the same problem now

@ansaus Then is the given solution fixing your issue: #649 (comment) ?
If not, could you please open a separate bug report including all details

no that solution didnt help, ok Ill open new one


taints float is 2.2 spec.

Is this due to failures on rubyci.org?
I always wondered why it passes on some architectures but not on others, any ideas?
For instance, locally, using the oldest 2.1 I have I cannot reproduce:
$ ruby -ve 'p Marshal.load(Marshal.dump([1.2]).taint)[0].tainted?'
ruby 2.1.3p242 (2014-09-19 revision 47630) [x86_64-linux]
false

Otherwise, if this is indeed spec only in 2.2, I'm fine with this changed but it would be good to know if this is a bug of MRI 2.1 and before.

Is this due to failures on rubyci.org?
Yes.

I always wondered why it passes on some architectures but not on others, any ideas?
On 64bit platforms, '1.2' is a Flonum.
Flonum is immediate value, so it can not have taint flag.
After releasing 2.1.0, we decided to change the behavior of old Float values.
Therefore, with 2.2 or later, any Float values can not have taint flag.

In short, this is a spec change at 2.2.

I see, thanks for the explanation, let's merge this!

Thank you!


Fixing mov-cli's plugin and packaging issues. (mov-cli plugin package manager)

This is currently a placeholder / draft for an issue I'm still in the middle of writing. They'll be a proper description here soon when I'm ready to drop my explanation...

...

just keep it compatible with external package managers

Yes that's my goal and so far package maintainers won't need to change anything, they can continue packaging plugins like normal. In my plan my idea is to prioritize plugins and dependencies installed via Linux package managers over anything in the "mov-cli package manager", giving full control to users on Linux.
So far the "mov-cli package manager" (don't have a name for it yet) exists more to help users on platforms like Windows and MacOS (exactly how will be explained in my explanation that will come above soon).


Unable to get product from testflight IOS

Hello Team,
I need some help in IAP, I have setup IAP in react native for IOS and working fine with xcode locally but when I want to validate receipt it gives me 21002 from real device. Now I want test it from Testflight but unable to get products, I am using storeKit file. I have run IAP locally and getting product through getProduct method but when I upload it to Testflight it gives me empty array.
My react native 0.70.3
and IAP(react-native-iap) 12.15.1
I have done below things

Setup product for "Ready to Submit"
Sandbox tester added and logged in my device with sandbox tester id
I've called initConnection befor getProduct
Enabled "In-App Purchase" in Xcode "Capabilities"
StoreKit file setup in Edit scheme -> run debug -> options

May I know if anything else required for IAP for IOS in react native
please help me for this to complete my IAP with validate receipt
Thank You in advance :)
I hope someone reply quickly

Same here
react-native: 0.74.1
IAP: 12.14.2-rc.1

Ensure your Tax Information and Banking information are filled out.
Once I agreed to the terms and added banking info, everything started working fine.
You can find these agreements in App Store Connect > Business > {Select Own Business}. Make sure you have the Agreements, Bank Accounts, and Tax Forms filled out correctly. Hope this helps.

Hello Alexandre,
I done "Ensure your Tax Information and Banking information are filled
out." and I am getting products and do purchase but getting malformed
receipt and status code { "status": 21002} I also test it from testflight
but got same result can you please help me , I also used setup({
storekitMode: 'STOREKIT2_MODE' });
const validateReceipt = async (receipt, purchase) => {
const requestBody = {
'receipt-data': receipt,
'password': '31ca*************************' // if applicable
};
console.log('requestBody is valid:', requestBody);
const validateReceiptIos = await IAP.validateReceiptIos(requestBody, true)
console.log("validateReceiptIos==>", receipt, validateReceiptIos)
alert(JSON.stringify(validateReceiptIos))
try {
const response = await fetch('https://sandbox.itunes.apple.com/verifyReceipt
', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(requestBody)
});
console.log('response is valid:', response);
const jsonResponse = await response.json();
alert("response" + JSON.stringify(jsonResponse))
if (jsonResponse.status === 0) {
// Valid receipt
console.log('Receipt is valid:', jsonResponse);
} else {
// Invalid receipt
console.info('Invalid receipt:', jsonResponse);
}
setTimeout(async () => {
const finishTransaction = await IAP.finishTransaction({ purchase,
isConsumable: true });
}
}, 2000);
} catch (error) {
console.error('Error validating receipt:', error);
}
};
On Tue, Jul 9, 2024 at 7:03 AM Alexandre Palagem @.***>
wrote:

Ensure your Tax Information and Banking information are filled out.
Once I agreed to the terms and added banking info, everything started
working fine.
You can find these agreements in App Store Connect > Business > {Select
Own Business}. Make sure you have the Agreements, Bank Accounts, and Tax
Forms filled out correctly. Hope this helps.
—
Reply to this email directly, view it on GitHub
https://github.com/dooboolab-community/react-native-iap/issues/2797#issuecomment-2216071671,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BCCY76CUB2L44T22B3EJ56DZLM4XZAVCNFSM6AAAAABKQGCYSSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJWGA3TCNRXGE
.
You are receiving this because you authored the thread.Message ID:
@.***>

Hello Team,
I am facing an issue with consumable product purchases. When a user
purchases an item and kills the app before receiving a response, the
payment is completed, but the data is not retrieved from the available
purchases and purchase history.
Case: When a user clicks on the "Buy Item" button with UPI, it opens the
UPI app. After entering the UPI PIN, the payment is successful, and I
immediately close both the payment app and my app. After some time, I
reopen the app and do not get the purchase info from the purchase history
and available purchases. When I attempt the payment again, I receive a
popup saying, "You already own this item."
How can I resolve this programmatically?
I hope for a quick response.
Best regards,
On Thu, Jul 11, 2024 at 4:09 PM Rohit Jaat @.***>
wrote:

Hello Alexandre,
I done "Ensure your Tax Information and Banking information are filled
out." and I am getting products and do purchase but getting malformed
receipt and status code { "status": 21002} I also test it from testflight
but got same result can you please help me , I also used setup({
storekitMode: 'STOREKIT2_MODE' });
const validateReceipt = async (receipt, purchase) => {
const requestBody = {
'receipt-data': receipt,
'password': '31ca*************************' // if applicable
};
console.log('requestBody is valid:', requestBody);
const validateReceiptIos = await IAP.validateReceiptIos(requestBody, true)
console.log("validateReceiptIos==>", receipt, validateReceiptIos)
alert(JSON.stringify(validateReceiptIos))
try {
const response = await fetch('
https://sandbox.itunes.apple.com/verifyReceipt', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(requestBody)
});
console.log('response is valid:', response);
const jsonResponse = await response.json();
alert("response" + JSON.stringify(jsonResponse))
if (jsonResponse.status === 0) {
// Valid receipt
console.log('Receipt is valid:', jsonResponse);
} else {
// Invalid receipt
console.info('Invalid receipt:', jsonResponse);
}
setTimeout(async () => {
const finishTransaction = await IAP.finishTransaction({ purchase,
isConsumable: true });
}
}, 2000);
} catch (error) {
console.error('Error validating receipt:', error);
}
};
On Tue, Jul 9, 2024 at 7:03 AM Alexandre Palagem @.***>
wrote:

Ensure your Tax Information and Banking information are filled out.
Once I agreed to the terms and added banking info, everything started
working fine.
You can find these agreements in App Store Connect > Business > {Select
Own Business}. Make sure you have the Agreements, Bank Accounts, and Tax
Forms filled out correctly. Hope this helps.
—
Reply to this email directly, view it on GitHub
https://github.com/dooboolab-community/react-native-iap/issues/2797#issuecomment-2216071671,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BCCY76CUB2L44T22B3EJ56DZLM4XZAVCNFSM6AAAAABKQGCYSSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJWGA3TCNRXGE
.
You are receiving this because you authored the thread.Message ID:
@.***>

Hello Team,
I am facing an issue with consumable product purchases. When a user
purchases an item and kills the app before receiving a response, the
payment is completed, but the data is not retrieved from the available
purchases and purchase history.
Case: When a user clicks on the "Buy Item" button with UPI, it opens the
UPI app. After entering the UPI PIN, the payment is successful, and I
immediately close both the payment app and my app. After some time, I
reopen the app and do not get the purchase info from the purchase history
and available purchases. When I attempt the payment again, I receive a
popup saying, "You already own this item."
How can I resolve this programmatically?
I hope for a quick response.
Best regards,


cec: remove label break by extracting function to inject L7 filter

This commit removes the need for a label break by extracting a dedicated function to inject the cilium L7 filter into the Envoy http connection manager.

/test


Add articles on C++ to the Backend Dev Pag

Task

add relevant articles on C++ on the backend page.

Things to Note

add only articles that are relevant and useful to backend development.
be as descriptive as possible when naming your links, and do not forget to include the author or creator of the content.
E.g., 'Build a food recipe app with fetch API and vanilla JavaScript. ~ GeetProbin'.
follow the code format or template used.

Resources
View how to contribute to this repository.

Please assign me this issue under HacktoberFest

@Timonwa Can you please assign this issue to me .I would love to work on it ,Can you please assign this to me under Hacktoberfest

I have pr to this. The link to pr is #156


As a developer I want to improve the separation of the code in modules.

Some modules are having too much features. The ui.py module  needs to be shorter and deal only with strictly UI code.

https://github.com/Marzona/rig-remote/issues/36 bookmarks handling needs to be moved to a dedicated module

https://github.com/Marzona/rig-remote/issues/34 the threading logic needs to be moved outside the ui.py module

https://github.com/Marzona/rig-remote/issues/37 all the logic that implements the actions related buttons and in general interactions needs to be moved in a set of modules.

https://github.com/Marzona/rig-remote/issues/38. we need to have all the modules created with unit tests.

the only problematic part left is the UI module, which is going to be re-designed completely


Institution.is_member needs to handle subscriptions with overlapping dates

institution.subscription_set.filter($today and range).order_by("-access_level")[0]

This could be a mistake in Membersuite. There isn't a good reason to have dates overlap. If you renew a month before your subscription, it should get tacked on to the end, not overlap. Bob will talk to Jessica about this issue to see if there is a mistake in how membership is handled in the AMS.

Fixed on membersuite side.


Properly signal conditions on :SWANK-DATA-ERROR and :CLIENT-DATA-ERROR

As of today, if something goes wrong while connecting to the Swank
server (say because of a missing Swank contrib for example) users are be
presented with an error similar to the following:
  <INFO> [22:16:18] vlime-usocket - New client: #<USOCKET:STREAM-USOCKET {10046B29A3}>
  <INFO> [22:16:18] vlime-usocket - Control thread stopping: (:SWANK-DATA-ERROR
                                                              #<SB-INT:SIMPLE-READER-PACKAGE-ERROR "Package ~A does not exist." {10049D57C3}>)

The signal'd condition is serialized into a string using the ~s FORMAT
directive, and because of that, the actual information message which is
attached to it is kept hidden from the user, making it really difficult
to understand what went wrong.
With these changes, the above error message now becomes:
  <INFO> [21:56:44] vlime-usocket - Control thread stopping: (:SWANK-DATA-ERROR
                                                              "Package CFFI-FEATURES does not exist.

Linked issue: https://github.com/vlime/vlime/issues/65#issuecomment-863542161

Sorry about the delay - I didn't know that I'm being singled out specifically, I thought we're multiple maintainers here ;)

No, I am sorry, I did not mean to put you under any more pressure; it's just that I might be finding myself with some time to kill over the following weeks, and I would be happy to contribute in any capacity.
Thanks again for the merge!


NullPointerException

i just integrated the library and i got this Error on launching the app
 FATAL EXCEPTION: main                                                                       Process: com.wadeeny.ondemand, PID: 20144                                                                       java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.view.View.isNestedScrollingEnabled()' on a null object reference                                                                           at android.support.v4.view.ViewCompat$ViewCompatApi21Impl.isNestedScrollingEnabled(ViewCompat.java:1320)                                                                           at android.support.v4.view.ViewCompat.isNestedScrollingEnabled(ViewCompat.java:3308)                                                                           at biz.laenger.android.vpbs.ViewPagerBottomSheetBehavior.findScrollingChild(ViewPagerBottomSheetBehavior.java:609)                                                                           at biz.laenger.android.vpbs.ViewPagerBottomSheetBehavior.findScrollingChild(ViewPagerBottomSheetBehavior.java:615)                                                                           at biz.laenger.android.vpbs.ViewPagerBottomSheetBehavior.findScrollingChild(ViewPagerBottomSheetBehavior.java:622)                                                                           at biz.laenger.android.vpbs.ViewPagerBottomSheetBehavior.onLayoutChild(ViewPagerBottomSheetBehavior.java:252)                                                                           at android.support.design.widget.CoordinatorLayout.onLayout(CoordinatorLayout.java:894)                                                                           at android.view.View.layout(View.java:19590)                                                                           at android.view.ViewGroup.layout(ViewGroup.java:6053)                                                                           at android.support.v4.widget.DrawerLayout.onLayout(DrawerLayout.java:1171)                                                                           at android.view.View.layout(View.java:19590)                                                                           at android.view.ViewGroup.layout(ViewGroup.java:6053)                                                                           at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)                                                                           at android.widget.FrameLayout.onLayout(FrameLayout.java:261)                                                                           at android.view.View.layout(View.java:19590)                                                                           at android.view.ViewGroup.layout(ViewGroup.java:6053)                                                                           at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)                                                                           at android.widget.FrameLayout.onLayout(FrameLayout.java:261)                                                                           at android.view.View.layout(View.java:19590)                                                                           at android.view.ViewGroup.layout(ViewGroup.java:6053)                                                                           at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1791)                                                                           at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1635)                                                                           at android.widget.LinearLayout.onLayout(LinearLayout.java:1544)                                                                           at android.view.View.layout(View.java:19590)                                                                           at android.view.ViewGroup.layout(ViewGroup.java:6053)                                                                           at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)                                                                           at android.widget.FrameLayout.onLayout(FrameLayout.java:261)                                                                           at android.view.View.layout(View.java:19590)                                                                           at android.view.ViewGroup.layout(ViewGroup.java:6053)                                                                           at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1791)                                                                           at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1635)                                                                           at android.widget.LinearLayout.onLayout(LinearLayout.java:1544)                                                                           at android.view.View.layout(View.java:19590)                                                                           at android.view.ViewGroup.layout(ViewGroup.java:6053)                                                                           at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)                                                                           at android.widget.FrameLayout.onLayout(FrameLayout.java:261)                                                                           at com.android.internal.policy.DecorView.onLayout(DecorView.java:758)                                                                           at android.view.View.layout(View.java:19590)                                                                           at android.view.ViewGroup.layout(ViewGroup.java:6053)                                                                           at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2488)                                                                           at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2204)                                                                           at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1390)                                                                           at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6754)                                                                           at android.view.Choreographer$CallbackRecord.run(Choreographer.java:966)                                                                           at android.view.Choreographer.doCallbacks(Choreographer.java:778)                                                                           at android.view.Choreographer.doFrame(Choreographer.java:713)                                                                           at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:952)                                                                           at android.os.Handler.handleCallback(Handler.java:789)                                                                           at android.os.Handler.dispatchMessage(Handler.java:98)                                                                           at android.os.Looper.loop(Looper.java:172)                                                                           at android.app.ActivityThread.main(ActivityThread.java:6637)                                                                           at java.lang.reflect.Method.invoke(Native Method)                                                                           at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)                                                                           at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)

@hynra
this can avoid the exception.
but my listview in ViewPagerBottomSheet can't scroll anymore.

@laenger I'm also getting the same issue. If I use the same layout in the example app it works. However in my app it crashes with this error. If I remove viewpager from my layout the app doesn't crash. However on adding the viewpager it crashes!
I'm trying to integrate your library in Open Food Facts android app.

Looking at this again, it seems that #24 fixed this.

I tried this fix already before it was merged. It seems to avoid the error since we do a null check however the viewpager doesn't scroll anymore. If I try to scroll down the bottom sheet collapses. Maybe I am doing something wrong. Please help!

Again, without a minimal reproducible example, it is very difficult to dig deeper into this. It would be great if you could modify the example app such that it runs into the described issue.

I was having the same crash and it was because I wasn't adding any fragment to the view pager. Be sure to check that you're adding some fragment to the view pager so it can initiate right

I have the same problem and a reprodcution path. You need to use a PagerAdapter instead of a FragmentPagerAdapter to reproduce it.

I was also having this problem. I solved it by adding android:nestedScrollingEnabled="true" to my ViewPager.

@daniellAlgar This solution is not correct, because of incorrect work of behavior.
I found a better solution for this bug. Try to use ViewPager.post { BottomSheetUtils.setupViewPager(viewPager) }.
Think it would be helpful. But need to understand how to fix it in lib.

For a better understanding, I show you how I use it.
`
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {super.onViewCreated(view, savedInstanceState)
    pagerAdapter = StoryBoardStatsFragmentPagerAdapter(activity!!.supportFragmentManager)

    if (storyResponse.likedusers.isNotEmpty()) {
        pagerAdapter.addFragment(StoryDetailsTabFragment.newInstance(
                StoryDetailsTabFragment.TabType.LIKES, storyResponse, this),
                storyResponse.likeCount.toString().plus(" likes"))
    }

    if (storyResponse.viewedusers.isNotEmpty()) {
        pagerAdapter.addFragment(StoryDetailsTabFragment.newInstance(
                StoryDetailsTabFragment.TabType.VIEWS, storyResponse, this),
                storyResponse.viewCount.toString().plus(" views"))
    }

    viewPager.offscreenPageLimit = 1
    viewPager.adapter = pagerAdapter

    tabs.setupWithViewPager(viewPager)
}

override fun onDataLoaded() {
    viewPager.post {
        behavior = ViewPagerBottomSheetBehavior.from(container)

        behavior.isHideable = true
        behavior.setBottomSheetCallback(object : ViewPagerBottomSheetBehavior.BottomSheetCallback() {
            override fun onSlide(bottomSheet: View, slideOffset: Float) {
                val percent = slideOffset * 100
                if (percent <= 45 && wasExpanded)
                    behavior.state = ViewPagerBottomSheetBehavior.STATE_HIDDEN
            }

            override fun onStateChanged(bottomSheet: View, newState: Int) {
                if (newState == BottomSheetBehavior.STATE_EXPANDED)
                    wasExpanded = true

                if (newState == BottomSheetBehavior.STATE_HIDDEN)
                    router.clearStackFragment()
            }
        })

        BottomSheetUtils.setupViewPager(viewPager) {
            router.clearStackFragment()
        }
    }
}`


HCC_PROFILE=2 kernel name lifetime, use after free

Using Ubuntu 16.04 with latest rocm 1.8.2 packages, if I use HCC_PROFILE=2 with rocm tensorflow 1.8 the final dump of profile data has garbage output for the kernel names.  This is due to the lifetime of the string and using a freed pointer.
@scchan already pointed out where this happens https://github.com/ROCm-Developer-Tools/HIP/blob/master/src/hip_module.cpp#L207.  To test this, we changed the code to be
#if (__hcc_workweek__ > 17312)
        // leak this memory but it's to check something
        char *name_copy = strdup(f->_name.c_str());
#endif
        lp.av->dispatch_hsa_kernel(&aql, config[1] /* kernarg*/, kernArgSize,
                                   (startEvent || stopEvent) ? &cf : nullptr
#if (__hcc_workweek__ > 17312)
                                   ,
                                   name_copy
#endif
        );

The strdup() of the name succeeds in producing correct output with HCC_PROFILE=2.
One suggestion was to use .data() instead of .c_str(), but it's not clear this would work.  Perhaps it's best to find the strings used for the kernel names and make sure they aren't temporary or static.  Static destruction in C++ is not unordered, but it's hard to get correct.

Just to confirm, this is the correct diff of the workaround, right?
diff --git i/src/hip_module.cpp w/src/hip_module.cpp
index a6d486b6de75..e018d05a8cdb 100644
--- i/src/hip_module.cpp
+++ w/src/hip_module.cpp
@@ -200,11 +200,15 @@ hipError_t ihipModuleLaunchKernel(hipFunction_t f, uint32_t globalWorkSizeX,

         hc::completion_future cf;

+#if (__hcc_workweek__ > 17312)
+                // leak this memory but it's to check something
+                char *name_copy = strdup(f->_name.c_str());
+#endif
         lp.av->dispatch_hsa_kernel(&aql, config[1] /* kernarg*/, kernArgSize,
                                    (startEvent || stopEvent) ? &cf : nullptr
 #if (__hcc_workweek__ > 17312)
                                    ,
-                                   f->_name.c_str()
+                                   name_copy
 #endif
         );

That looks like the correct diff of the workaround to me, yes.

Work-around: use HCC_PROFILE_FILE= to stream the API trace to a file at runtime.  The kernel names will output correctly instead of buffering everything until program termination.

@jeffdaily & @parallelo,
Could you please share the test case that was showing up the error. I tried some small kernel but did not see the issue with the latest HIP runtime.

HCC_PROFILE=2 is definitely working in ROCm 2.9.  I cannot attribute a specific release when this was finally fixed since there were two or three issues with HCC_PROFILE across a few releases.  This can be closed since it works in the latest release.


pgmodeler: missing desktop icon

Describe the bug
the pgmodeler.desktop file was not found so it is not available in the menu. inside the /var/run/current-system/sw/share/applications/ directory is also empty.
➜  ~ ls -lha /var/run/current-system/sw/share/applications/ | grep pgmodeler
➜  ~

Steps To Reproduce
Steps to reproduce the behavior:
  environment.systemPackages = [
    pkgs.pgmodeler
  ];

doas nixos-rebuild switch

Expected behavior
the pgmodeler desktop icon is in the menu.
Screenshots

Additional context
there is a file that is similar to .desktop, but a bit different. maybe it could be a reference.
https://github.com/pgmodeler/pgmodeler/blob/main/assets/conf/schemas/desktop.sch
$ob Desktop $sp Entry $cb $br
[Comment=Create and deploy PostgreSQL database models] $br
[Exec=]{application} $br
[GenericName=PostgreSQL Database Modeler] $br
[Icon=]{icon} $br
[MimeType=application/dbm] $br
[Name=pgModeler] $br
[NoDisplay=false] $br
[Path=]{working-dir} $br
[StartupNotify=false] $br
[Terminal=false] $br
[TerminalOptions=] $br
[Type=Application] $br
[Categories=Development;] $br

Notify maintainers
@esclear

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

system: "x86_64-linux"
host os: Linux 6.3.5, NixOS, 23.05 (Stoat), 23.05.419.3a70dd92993
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.13.3
channels(hervyqa): ""
channels(root): "nixos-23.05"
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

PR: #349868


How to get instance of servers down

Hi !
I have encountered some trouble is when alert via telegram is only like below:
Status: FIRING 🔥
Active Alert List:
Alert:
Current value:Severity: critical
Active from:
How can I get the server down?
Thanks u so much !!

I would start debugging this from Prometheus and Alertmanager UI. Most likely something is wrong with your rules. It could also make sense to get API call from alertmanager to prometheus_bot, it's in json format and easy to read and verify.

Thanks bro @hryamzik ,I would like to ask more , Can telegram bots be add from CHAT GROUP ID?

Do you mean reporting to a chat group? Yes it can.

@hryamzik because , i add a ID group from telegram but log return " Error sending message: Bad Request: chat not found"

That should mean that bot is not in this chat group or you have an error in chat group ID, I guess you may have missed - in it – chat group IDs are negative.

@hryamzik  Hello bro ,
Can I ask a question as to why when sending a message about a telegram, the message is identical, there is a way to send a message but all the servers down .
#route default
route:
  group_by: ['alertname']
  group_wait: 30s
  group_interval: 30s
  repeat_interval: 7s
  receiver: default
  routes:
#  - match:
#      severity: "critical"
#    receiver: telegram
  - match:
      severity: "critical"
    receiver: default
#  - match:
#      severity: "warning"
#    receiver: thiennt
inhibit_rules:
- source_match:
    severity: 'warning'
#  target_match:
#    severity: 'warning'
# Apply inhibition if the alertname is the same.
  equal: ['alertname']
receivers:
- name: 'default'
  webhook_configs:
  - send_resolved: True
    url: http://<IP_ADDRESS>:9087/alert/371135891

file config alermanager


Strange behavior of GROUP BY

I am decided to try 0.9 version and faced with strange behavior of GROUP BY.
Just show some logs:
$ curl -G 'http://localhost:8086/query?pretty=true' --data-urlencode "db=mydb" --data-urlencode "q=SELECT sum(value) FROM cpu GROUP BY time(1m)"

{
    "results": [
        {
            "series": [
                {
                    "name": "cpu",
                    "columns": [
                        "time",
                        "sum"
                    ],
                    "values": [
                        [
                            "1970-01-01T00:00:00Z",
                            410
                        ]
                    ]
                }
            ]
        }
    ]
}

But:
curl -G 'http://localhost:8086/query?pretty=true' --data-urlencode "db=mydb" --data-urlencode "q=SELECT * FROM cpu"

{
    "results": [
        {
            "series": [
                {
                    "name": "cpu",
                    "columns": [
                        "time",
                        "value"
                    ],
                    "values": [
                        [
                            "2015-03-25T23:00:00Z",
                            125
                        ],
                        [
                            "2015-03-25T23:20:00Z",
                            100
                        ],
                        [
                            "2015-03-25T23:30:00Z",
                            100
                        ],
                        [
                            "2015-03-25T23:35:00Z",
                            85
                        ]
                    ]
                }
            ]
        }
    ]
}

May be I do something wrong, but cant see exactly what.
Tested on 035500fb9ff1d8a8fb4f20762e14ed672a0c1d6e (version 0.9.0-rc16) and 9b357291e494bff6b384b85e72aab893a28a99ec -- same problem.

See #1904... This is the desired behavior.  You need to specify a minimum time in your query for group by to work correctly.
Details updated on the docs here: http://influxdb.com/docs/v0.9/query_language/querying_data.html#group-by

I think this is not intuitive enough.
If we try do something like this:
curl -G 'http://localhost:8086/query' --data-urlencode "db=mydb" --data-urlencode "q=SELECT sum(value) FROM cpu where time > '1970-01-01 00:00:00' group by time(1s)"

and got the answer:
{"results":[{"error":"too many points in the group by interval. maybe you forgot to specify a where time clause?"}]}

May be better would be make some default value to "time >" if client not pointed this clause?
I mean when I do query without "where time" -- better to get "too many points in the group by interval" error, then one interval where all of data aggregated without respect of "group by time()"

@mementor Think about the query you're asking for and it should make sense. You're asking for 1s summaries for every second from now to 1970. This would be an obscene amount of data. For what use case would you actually do a query like this?
Almost every query you issue to InfluxDB should have a qualifying time range.


lineages.csv file needs to be updated on VirusSeq backend server

@GopiGugan - I finally noticed that none of the Omicron lineages are being displayed on that site

I believe pangolin needs to be updated too. Currently pangolin 3.1.16, updating to v4.0.6

But we don't use Pangolin, we're using the annotations from GISAID..

We should pull lineage classifications from ViralAI instead, please see duotang repo:
https://github.com/CoVaRR-NET/duotang/blob/main/CONTRIBUTING.md#to-obtain-required-data

Basically, we can use the ViralAI API to download lineage classifications and then the pango2vseq.py script to combine it with the metadata from VirusSeq.  Also need to credit ViralAI on the CoVizu-VS page.


Error "You need to enable javascript to run this app".

Hey, I've just installed new react app and getting this error in console "You need to enable javascript to run this app". I'don't understand why I am facing such problems. I am using latest ubuntu OS. Anyone react expert here to help me out?
Thanks in advance.

@RusinovAnton  yes i know that but whenever I am trying to send data in node api it does not sending any request. I think this is because of it.

@jimkaler I doubt that. Since your problem isn't related to create-react-app bug/issue I think StackOverflow will be a better place to ask your question.
I would also suggest you to start your question with exact problem you're trying to fix:

I am trying to send data in node api

Best wishes

@jimkaler hi, so how did you finally solve the problem?


example.py seems broken

$ python example.py login password
Traceback (most recent call last):
  File "example.py", line 18, in <module>
    login_form = login_page.soup.select_one('#login form')
TypeError: 'NoneType' object is not callable

I tried adding print(login_page.soup.select_one) before the guilty line and it is indeed None.

I could get it to work with the following patch:
--- a/example.py
+++ b/example.py
@@ -15,7 +15,7 @@ login_page.raise_for_status()  # similar to assert login_page.ok but with full s

 # login_page.soup is a BeautifulSoup object http://www.crummy.com/software/BeautifulSoup/bs4/doc/#beautifulsoup
 # we grab the login form
-login_form = login_page.soup.select_one('#login form')
+login_form = mechanicalsoup.Form(login_page.soup.select('#login form')[0])

 # specify username and password
 login_form.input({"login": args.username, "password": args.password})

But I'm not convinced it's the right way. I don't understand why the select_one field exists but is None? Also, what I did is actually reverting 4d89436bce6817b81e9ee76495bb8e4650dbb97a ... Any idea?
Thanks,

Just a ping on this one as I'm seeing some activity ...
Does example.py work as-is for other people? If my fix seems correct, I'll resubmit as a pull-request.

I can confirm that the patch above worked for me. @moy

Thanks, @gwynnebaer. Actually, I'm not having the "'NoneType' object is not callable" anymore, it was probably an issue with a version of beautifulsoup. So, the select_one is not an issue anymore, but creating a mechanicalsoup.Form is still needed. I understood the issue, see PR #50 for details.


Replace submit icon by text

Hi everyone! Is there a possibility to replace that form "up arrow" by a text, just like "OK" or "Submit"?

I searched a lot inside documentation, but found no answer.

You can override the CSS and add your own background-image at cf-input-button.cf-input-button div.cf-icon-progress

Only images are allowed?

It's a css property, so you can use whatever is allowed per CSS specifications. We have added a background-image and you can start by overriding that property.


Cert manager org update

Description of changes:
Updating cert manager org from jetstack to cert-manager.
Also updated unit tests and bundle.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/approve
/override eks-anywhere-e2e-presubmit
/override eks-anywhere-mocks-presubmit
/override eks-anywhere-cluster-controller-presubmit

/override eks-anywhere-cluster-controller-tooling-presubmit


Where are Typescript typings, eg QueryResult?

This package claims to support Typescript typings since 2.0.0, but I cannot find any of the types I expect in the package, nor any example Typescript code that uses the package.
If Typescript is indeed supported, could we get at least one working example in the example set, that is in Typescript?

Is this a client library issue or a product issue?
It's a library issue.

Did someone already solve this?
Not that I have found

Do you have a support contract?
I do. I have raised. But also asking here publicly for the benefit of others.

Environment details

@google-cloud/dialogflow version: 4.5.0

Steps to reproduce

Try to reference the Typescript type for dialogflow...QueryResult any Typescript code
Can't find the types like "QueryResult" or "DetectIntentRequest" in the package

Hi @peternann we're planning to add expected types soon, i'll create a feature request to add a typescript example. I'll close this issue out due to it not being issue it's a feature request but if anything else comes up pertaining to typescript and this library feel free to reopen or create another issue.


remove helpers #229

There's a couple of failing tests in packages/glamor around falsey value handling but otherwise should be fine.
Reflects the consolidation discussion in #229

Oh wow, sweet! I hope I can look into this soon.

Finally found time to look into this PR ❤
The "two" tests which fail are this one and this one. AFAIK they test the same thing and you can reduce both tests to one test which looks like this:
      css,
      [ {'.foo & .bar': { fontSize: 10, color: falsy }} ],
      [ {'.foo & .bar': { fontSize: 10 }} ]

Just added .foo & .bar to make clear this is about a selector.

However other tests are now failing for me. Need to look into that later...

However other tests are failing for me, too

Which ones? Other than the null, false, undefined loop for those two check tests everything is passing for me locally.

I updated the failing test to remove the redundancy. Seems like we have a "real" failing test for css(). Going to have to look into that more.

It should be
-      [ '.foo & .bar', { fontSize: 10, color: falsy } ],
-      [ '.foo & .bar', { fontSize: 10 } ]
+      [ {'.foo & .bar': { fontSize: 10, color: falsy }} ],
+      [ {'.foo & .bar': { fontSize: 10 }} ]

or am I wrong? After that the falsy tests work. The test that now errors is
  glamor-jsxstyle
    ✖ exposes a View component

Finished in 0.014 secs / 0.005 secs

SUMMARY:
✔ 0 tests completed
✖ 1 test failed

FAILED TESTS:
  glamor-jsxstyle
    ✖ exposes a View component
      PhantomJS 2.1.1 (Mac OS X 0.0.0)
    undefined is not a constructor (evaluating '__WEBPACK_IMPORTED_MODULE_2_glamor__[key](combinedProps[key])')

This is the other failing test :) Not sure how to handle this one. Maybe glamor-jsxstyle is a bit pointless now...?

Maybe the glamor-jsxstyle test should be skipped for now and we'll discuss, if we want to remove support for this package completely?

now skipping the jsxstyle tests and fixed a couple other issues that popped up.

@kentcdodds Just released glamorous which includes jsxstyle type functionality. I think we can kill our current implementation and recommend his instead if people want jsxstyle.

On a related note, we may also want to rename glamor-ous while we have the chance 😂  before the official 3.0 release. It's skeleton based anyway, so maybe just glamor-skeleton would be better. http://getskeleton.com/

Merged 🎉
I like your ideas. Will move the discussion to https://github.com/threepointone/glamor/issues/83 👍


Enable ipvs

ci check this

I checked with my production cluster before with weave network plugin + ipvs then all not works... Even with kubernetes 1.11.3 + weave 2.4.1... Only iptables mode works perfectly...

What issues have you encountered? We run weave too and with ipvs without any problems on CoreOS.

kubernetes-dashboard keep CrashLoopBackOff:
root@dev01:~# kubectl -n kube-system logs -f kubernetes-dashboard-789d954c6f-n9fqw
2018/10/02 02:52:19 Starting overwatch
2018/10/02 02:52:19 Using in-cluster config to connect to apiserver
2018/10/02 02:52:19 Using service account token for csrf signing
2018/10/02 02:52:19 No request provided. Skipping authorization
2018/10/02 02:52:19 Error while initializing connection to Kubernetes apiserver. This most likely means that the cluster is misconfigured (e.g., it has invalid apiserver certificates or service account's configuration) or the --apiserver-host param points to a server that does not exist. Reason: Get https://<IP_ADDRESS>:443/version: dial tcp <IP_ADDRESS>:443: getsockopt: connection refused
Refer to our FAQ and wiki pages for more information: https://github.com/kubernetes/dashboard/wiki/FAQ

It is a single all-in-one testing machine, also checked with ifconfig but nothing with IP <IP_ADDRESS>, only weave with something similar (but should belongs to kube_pods_subnet not kube_service_addresses):
root@dev01:~# ifconfig weave
weave     Link encap:Ethernet  HWaddr ca:6f:5b:89:58:09
          inet addr:<IP_ADDRESS>  Bcast:<IP_ADDRESS>  Mask:<IP_ADDRESS>
          inet6 addr: fe80::c86f:5bff:fe89:5809/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:8916  Metric:1
          RX packets:23489 errors:0 dropped:0 overruns:0 frame:0
          TX packets:26940 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1556161 (1.5 MB)  TX bytes:4817100 (4.8 MB)

Also checked from generated templates, only /etc/kubernetes/openssl.conf with something may related (which I can't see kube_pods_subnet: <IP_ADDRESS>/18 related):
root@dev01:~# cat /etc/kubernetes/openssl.conf
[req]
req_extensions = v3_req
distinguished_name = req_distinguished_name
[req_distinguished_name]
[ v3_req ]
basicConstraints = CA:FALSE
keyUsage = nonRepudiation, digitalSignature, keyEncipherment
subjectAltName = @alt_names
[alt_names]
DNS.1 = kubernetes
DNS.2 = kubernetes.default
DNS.3 = kubernetes.default.svc
DNS.4 = kubernetes.default.svc.cluster.local
DNS.5 = localhost
DNS.6 = dev01
DNS.7 = lb-apiserver.kubernetes.local
IP.1 = <IP_ADDRESS>
IP.2 = <IP_ADDRESS>
IP.3 = <IP_ADDRESS>

From group_vars/k8s-cluster/k8s-cluster.yml:
kube_network_plugin: weave
kube_service_addresses: <IP_ADDRESS>/18
kube_pods_subnet: <IP_ADDRESS>/18
kube_network_node_prefix: 24
kube_apiserver_ip: "{{ kube_service_addresses|ipaddr('net')|ipaddr(1)|ipaddr('address') }}"
kube_apiserver_port: 6443 # (https)
kube_apiserver_insecure_port: 8080 # (http)
kube_proxy_mode: ipvs
kube_proxy_nodeport_addresses: false
kube_encrypt_secret_data: false
cluster_name: cluster.local

I just change the original kube_proxy_mode from iptables to ipvs then dashboard nor ingress-nginx always CrashLoopBackOff
Now switch back to kube_proxy_mode: iptables and everything working as expected :-(

May related to https://github.com/kubernetes/kubernetes/issues/65358

Closed in favor of #3465


Multiple Jest configurations

Hi,
In my project I need to differentiate between running unit and e2e tests.
Preferably, I would like to have 2 different scripts that will use a different pattern file searching:
npm run test looks for *.test.ts files
npm run test:e2e looks for *.e2e.ts files
Is that possible without ejecting?
Thanks :)

Hi.
Maybe my way will help you. I use key --t

Run tests that match this spec name (match against the name in describe or test, basically).

In package.json:
"e2e": "npm test -- --t='E2E' --watchAll=false",
"test": "react-scripts test --t='unit' --watchAll=false"

in all unit tests:
describe('unit', ...

in e2e test file:
describe('E2E',

Maybe my way will help you.
I use key -t in Jest:

Run tests that match this spec name (match against the name in describe or test, basically).

And reorder scripts:
"test-all": "react-scripts test",
"e2e": "npm run test-all -- --t='E2E' --watchAll=false",
"test": "npm run test-all -- --t='unit' --watchAll=false"

In all unit tests use:
describe('unit', ...

In e2e file
describe('E2E', ...

Now you can use two scripts:
npm run test
npm run e2e

The test result may look like:

Test Suites: 1 skipped, 11 passed, 11 of 12 total
Tests:       10 skipped, 15 passed, 25 total
Snapshots:   13 passed, 13 total

Where "skipped" is not a mistake. If there is a better option, I will be glad to see


Pinview shows "xx pasted from yy" notification on entering pin

Since iOS 14 the SVPinview shows a "xxx pasted from yyy" notification whenever i enter text/number into a SVPinView. Looks like the UITextField needs to be modified and disable clipboard actions. Or can this be done already? If so how?

I'd try a PR but it appears the owner doesn't accept PR since 2018. So, this is the solution:
CustomSVPinView.swift -> Remove (string == UIPasteboard.general.string) in line 454
If you're using pods, fork it and use it as a private pod. Otherwise, manually insert it into your project.
Cheers

@leijdekkers Many thanks for reporting this! Apologies for the delay in response. Will put out a release with the changes suggested by @aKANJx.
@aKANJx
Thank you for the solution! Will add your change and put out a release today.

I'd try a PR but it appears the owner doesn't accept PR since 2018.

Not true. I've not merged some of the PR's due to certain reasons, but I have merged in most of the PR's (the last release was a PR -  #42). I suppose I should resolve all of them to avoid confusion 🙂.
Thanks again for the solution! Appreciate it!

Thanks! It is a bit of a showstopper right now getting all these notifications when you enter a pincode! Appreciate the effort.

When will you release an updated version fixing this issue?

@leijdekkers
Just did on CocoaPods.
Carthage is giving me some troubles; it appears there have been some heavy changes for Xcode 12 - more here
If you're using CocoaPods, could you confirm if you're still getting the notification?

@leijdekkers Are you using CocoaPods or Carthage?

Just tested it and all good! No more notifications! Thanks a lot!

Thant's great! Thanks for the confirmation. 🙂

Thanks, @xornorik! Sorry, I misinterpreted the PRs. I appreciate all effort you're doing creating and maintaining this useful repo.


help want

Hi, i had download the repo to local, and followed the guide.
but when i ran gulp, an error throwed:
module.js:338
    throw err;
          ^
Error: Cannot find module 'immutable'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (D:\project\ng-starter\node_modules\browser-sync\lib\h
ooks.js:4:20)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)

My computer  environment is :
win7
node -v
v0.12.0
npm -v
2.11.2

Looks like gulp wants the npm package immutable.js. Try running npm install immutable.

yes, your are right.
but why not run npm install everything will be ok - -!
after npm init, and run gulp, the result is there, but not try to solve the problem..

The problem is with the browser-sync package. Looks related to this [issue] (https://github.com/BrowserSync/browser-sync/issues/502)

nice find @mrblueblue.
@lichunqiang can you try npm rm browser-sync && npm install browser-sync?

@mrblueblue @danthareja
Thanks ~ it's work now


Type erros with "ilqr_jax_MPC.py"

Hi, I'm trying to run this code in my computer which is ubuntu 18.04 and meet some problems.
pygame 2.1.2 (SDL 2.0.16, Python 3.8.13)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "ilqr_jax_MPC.py", line 164, in
jac_l, hes_l, jac_l_final, hes_l_final, jac_f = derivative_init()
File "/home/hj/anaconda3/envs/carla/lib/python3.8/site-packages/jax/_src/traceback_util.py", line 162, in reraise_with_filtered_traceback
return fun(*args, **kwargs)
File "/home/hj/anaconda3/envs/carla/lib/python3.8/site-packages/jax/src/api.py", line 527, in cache_miss
out_flat = xla.xla_call(
File "/home/hj/anaconda3/envs/carla/lib/python3.8/site-packages/jax/core.py", line 1937, in bind
return call_bind(self, fun, *args, **params)
File "/home/hj/anaconda3/envs/carla/lib/python3.8/site-packages/jax/core.py", line 1953, in call_bind
outs = top_trace.process_call(primitive, fun, tracers, params)
File "/home/hj/anaconda3/envs/carla/lib/python3.8/site-packages/jax/core.py", line 687, in process_call
return primitive.impl(f, *tracers, **params)
File "/home/hj/anaconda3/envs/carla/lib/python3.8/site-packages/jax/_src/dispatch.py", line 208, in _xla_call_impl
compiled_fun = xla_callable(fun, device, backend, name, donated_invars,
File "/home/hj/anaconda3/envs/carla/lib/python3.8/site-packages/jax/linear_util.py", line 295, in memoized_fun
ans = call(fun, *args)
File "/home/hj/anaconda3/envs/carla/lib/python3.8/site-packages/jax/_src/dispatch.py", line 257, in _xla_callable_uncached
return lower_xla_callable(fun, device, backend, name, donated_invars, False,
File "/home/hj/anaconda3/envs/carla/lib/python3.8/site-packages/jax/_src/profiler.py", line 294, in wrapper
return func(*args, **kwargs)
File "/home/hj/anaconda3/envs/carla/lib/python3.8/site-packages/jax/_src/dispatch.py", line 302, in lower_xla_callable
jaxpr, out_type, consts = pe.trace_to_jaxpr_final2(
File "/home/hj/anaconda3/envs/carla/lib/python3.8/site-packages/jax/_src/profiler.py", line 294, in wrapper
return func(*args, **kwargs)
File "/home/hj/anaconda3/envs/carla/lib/python3.8/site-packages/jax/interpreters/partial_eval.py", line 2188, in trace_to_jaxpr_final2
jaxpr, out_type, consts = trace_to_subjaxpr_dynamic2(fun, main, debug_info)
File "/home/hj/anaconda3/envs/carla/lib/python3.8/site-packages/jax/interpreters/partial_eval.py", line 2139, in trace_to_subjaxpr_dynamic2
out_tracers = map(trace.full_raise, ans)
File "/home/hj/anaconda3/envs/carla/lib/python3.8/site-packages/jax/_src/util.py", line 47, in safe_map
return list(map(f, *args))
File "/home/hj/anaconda3/envs/carla/lib/python3.8/site-packages/jax/core.py", line 415, in full_raise
return self.pure(val)
File "/home/hj/anaconda3/envs/carla/lib/python3.8/site-packages/jax/interpreters/partial_eval.py", line 1761, in new_const
aval = raise_to_shaped(get_aval(c), weak_type=dtypes.is_weakly_typed(c))
File "/home/hj/anaconda3/envs/carla/lib/python3.8/site-packages/jax/core.py", line 1163, in get_aval
return concrete_aval(x)
File "/home/hj/anaconda3/envs/carla/lib/python3.8/site-packages/jax/core.py", line 1155, in concrete_aval
raise TypeError(f"Value {repr(x)} with type {type(x)} is not a valid JAX "
jax._src.traceback_util.UnfilteredStackTrace: TypeError: Value <CompiledFunction of <function jacfwd..jacfun at 0x7fe3d73ac670>> with type <class 'jaxlib.xla_extension.CompiledFunction'> is not a valid JAX type
The stack trace below excludes JAX-internal frames.
The preceding is the original exception that occurred, unmodified.

The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "ilqr_jax_MPC.py", line 164, in
jac_l, hes_l, jac_l_final, hes_l_final, jac_f = derivative_init()
The jax is 0.3.16 and jaxlib is 0.3.15 with CUDA11.1 and cuDNN8.0.5,  do you know how to fix these problemes?
Thank you very much and looking forward to your reply.

Hi @HouJun19, it seems that your jax and jaxlib version are too high. Could you take a look at this previous issue? https://github.com/YukunXia/Carla_iLQR_MPC/issues/5#issuecomment-992945428

Thanks for your reply!
Actually I have run this code successfully on jaxlib 0.1.47,but It turns out ti be very slow to complete one loop which needs more than 2 hours, and it has a warning that :Can not found GPU, fall back to CPU.
So I want to use GPU to accelerate the code, while I have tried many versions but all failed. For my GPU is NVIDIA 3060ti, some old version of jaxlib and CUDA are not support for the gpu, when I try the jaxlib 0.1.52 I have the same erro that " cannot import name 'pytree' from 'jaxlib' ". while using newer jaxlib and jax it also turns out some other erros like the origin question, I really don't know how to solve them. Sorry if I have some misunderstanding because I just start using python and still a lack of experience.
Looking forward to your reply.
Many thanks.

I ran my code on an old laptop CPU (i7-7700HQ) two years ago, so your machine should be good enough to handle it. I could easily achieve a 10Hz decision frequency and the speed bottleneck was from the algorithm stability or the Carla data quality side. My dynamical model assumes the time interval is 0.1 sec.
Maybe you could try some simpler Jax code on your CPU, and see if it achieves a reasonable speed.
For GPU, whether it accelerates or not depends on the program. My program has a shallow neural network, so you might see a bit of performance gain, but I guess not too much.

I should have made a docker environment so that the tests can be easier, but right now I haven't got enough time to fully revisit this project to upgrade the dependencies.
I didn't expect Jax to evolve this much :(

Thanks a lot! I will try some Jax code again.
But the first time  I run this on jaxlib it seems every step needs more than 4 sec which is really wired.
I just run the
 ./CarlaUE4.sh
then
python ilqr_jax_MPC.py
I wonder if I have left something behind.T^T


Added duecredit options to gravmag.transform

Fixes #292
Starting to go through everything to give it a citation.
Checklist:

[ ] Make tests for new code (at least 80% coverage)
[ ] Create/update docstrings
[ ] Include relevant equations and citations in docstrings
[ ] Docstrings follow the style conventions
[ ] Code follows PEP8 style conventions
[ ] Code and docs have been spellchecked
[ ] Include new dependencies in doc/install.rst, environment.yml, ci/requirements.txt.
[ ] Documentation builds properly (run cd doc; make locally)
[ ] Changelog entry (leave for last to avoid conflicts)
[ ] First-time contributor? Add yourself to doc/contributors.rst (leave for last to avoid conflicts)

Modules with credit
I will add these as I go.

[x] gravmag.transform
[x] gravmag.magdir.dipole (done in #222 and #293)

Is there a reason that the citations in gravmag.imaging are only in the main docstring, not in the ones for individual methods? Should I add them there as I go through?

Modules with credit
I will add these as I go, so this will be edited.

[ ] gravmag

[x] gravmag.eqlayer
[x] gravmag.imaging
[x] gravmag.magdir (done in #222 and #293)
[x] gravmag.normal_gravity
[x] gravmag.polyprism
[x] gravmag.prism
[x] gravmag.sphere
[x] gravmag.talwani
[x] gravmag.tensor
[x] gravmag.tesseroid
[x] gravmag.transform

@mtb-za thanks for going through the trouble of adding these!

Is there a reason that the citations in some places are only in the main docstring, not in the ones for individual methods?

Yes. Inconsistent practices on my part and old code that hasn't been updated in years :)
I really need to aggressively remove old and broken stuff from Fatiando.

Should I add them to function docstrings as I go through them all?

That would be great!!


Volume server don't reconnect after disconnect

Hello. Volume server lost connection a few hours ago and don't try to reconnect to master server. Is it correct?
v0.69

Not correct. Maybe you can enable glog level 4 to see what went wrong if it happens again.
"weed -v 4 -vmodule weed_server volume ..."

Is adding -v 4 enough to change log level? We can try...

yes. but it could be very verbose.

That it's not an option - we had this problem only once for few weeks...
So in general it should try to reconnect to master server?
After volume restart it connected to master in a second...

I see. I think upgrading to the latest version would help to resolve this.

@chrislusf can you reopen ticket? updated to 0.70 - still has this issue - volume server doesn't reconnect after connection lost.

The lastest version still has this issue. Volume server does not reconnect.


Selecting and copying

I'd like to copy a single or a group of words from a translation. Problems are:

Only single words can be selected
I can search for the selected word, but when I hit "copy" the whole entry (both languages) is copied. (Workaround: search, then copy from search field). This is not the case for the "main word" of an entry (under which several entries are grouped). It can be selected and copied as is.
When I select a word from another entry the 1st remains highlighted, which is certainly not intended or expected.

Accordingly I propose to:

enable the common text selection in Android (where I have the draggable start and end marker) as in the "detail view" of "blue link entries".
add a context menu item "copy selection", rename "copy" -> "copy entry"
fire the deleteSelection method upon selection or whatever is necessary (just guessing wildly here)

I've been annoyed by this myself but didn't have time to look into it.
I like the idea of having the "copy selection" and "copy entry" alternatives.

This might get a bit painful as TextViews only allow selecting text from Android 4 on...

Oh my...

Related user request: Should probably select the whole translation (when it is more than one word) by default, so that TTS will speak all of it when selected in menu.

I added code specific to Android 4 and later that was supposed to enable arbitrary selections, but somehow it is not working...


Recursively merge bitvectors with thread bundle.

@geirst @havardpe PR

Focus on #29660 instead as it has higher potential.


For script flags, replace "_" by "-"

https://github.com/ivadomed/templates/blob/5cf865256bd962bfba3a5cad79deffe0a5a72ace/convert_ivadomed_splits_nnunet.py#L69-L76

Thank you for pointing this out! This has been fixed in commit 00bf738d1e85cea33ab70eeea1e160e88ffe8e85.


Add txprovider to ease transaction usage

Codecov Report

Merging #24 into v2.3.x will decrease coverage by 0.21%.
The diff coverage is 0%.

@@             Coverage Diff              @@
##             v2.3.x      #24      +/-   ##
============================================
- Coverage     45.33%   45.12%   -0.22%
  Complexity      446      446
============================================
  Files            47       48       +1
  Lines          2111     2121      +10
  Branches        242      242
============================================
  Hits            957      957
- Misses         1009     1019      +10
  Partials        145      145

Impacted Files
Coverage Δ
Complexity Δ

...rc/main/java/com/syncleus/ferma/tx/TxProvider.java
0% <0%> (ø)
0 <0> (?)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eb1fca1...37f275e. Read the comment docs.

@freemo I updated the PR. It now includes tests for the newly added code. Is there a way to re-run the codecov checks?


[BUG]

Describe the bug
"Insert after" + "create line if not found" do not work. The values are simply added to the bottom of the file, no matter the which headings are there previously.
To Reproduce
Steps to reproduce the behavior:

Go to Quick Add plugin
Create new Capture
Created using: Daily note name, specific template (these all work perfectly)
Scroll down to Insert after and toggle on
Add line name to find (with or without heading syntax doesn't make a difference)
Scroll down to create line if not found and toggle on
Input value code and execute function using Command+P

Expected behavior
I expect the specified line to be created at the bottom of the specified note and the values created underneath
Screenshots

Desktop (please complete the following information):

OS: iOS and Windows
Quick Add Version 0.9.1

Hi @acdesigns
Thank you very much for reporting this!
From my testing, it seems that Write to bottom of file conflicts with Insert after.
If you disable the first option & just keep the latter two, it should be fine.
So, as in the image, if you disable (1), but keep your settings for (2), it should work.

But I think it's a settings conflict we're seeing here. Insert after & Write to bottom of file should be mutually exclusive.


raidboss: r3s Barbarous Barrage Uptime Knockback

The first tower is generally the hardest to get the angles correct due to the greatest distance of the knockback and closeness to the center of the knockback origin. The first tower dodge is also most significant for melee uptime. This trigger defaults to dodging the first two towers.
A 15s delay will dodge all three towers. This is very tight and if missing the first tower, it will almost guarantee missing the next two towers. A 12s delay dodges the first two towers. This is lenient, but too late and you likely will end up with a damage down from Murderous Mist. A 9s delay will dodge only the first tower. Lateness on this could more easily lead to a death or missed tower due to angle of knockback.
Since missed tower soaks result in a stacking raidwide DoT debuff. I think defaulting to 12s is the safest as it seems most likely to recover.
Any tower explosions that are dodged require moving to the next tower. Sprint is unnecessary for first two, but may be helpful for longer casts. If the middle tower is dodged, you likely need some sort of jump/teleport ability to avoid getting hit by murderous mist as you only have 2s to get in position rather than the 3s between tower explosions.
Another thing to note, the explosion knockback happens before the tower animation disappears, and so players would need to still learn the timing when using this strategy since they should move before the tower disappears for more time to move to the next tower. A move trigger could be beneficial for this, but could unnecessarily add noise.
There was discussion over whether this should be a user trigger or not. It may take on in PF as it grants melee uptime, and removes a tight position requirement for the first tower without too strict of timing.

There was discussion over whether this should be a user trigger or not. It may take on in PF as it grants melee uptime, and removes a tight position requirement for the first tower without too strict of timing.

I feel that this should be an optional trigger using the existing trigger config support.  I haven't seen any PF groups using knockback prevent for these towers on NA so far.

There was discussion over whether this should be a user trigger or not. It may take on in PF as it grants melee uptime, and removes a tight position requirement for the first tower without too strict of timing.

I feel that this should be an optional trigger using the existing trigger config support. I haven't seen any PF groups using knockback prevent for these towers on NA so far.

Sounds good, easy to have another pr to remove the disabled by default if it gains popularity later.

I was thinking if you did something like this https://github.com/OverlayPlugin/cactbot/blob/65daa5421f02ec4ab16fd8c23517a95139aefa43/ui/raidboss/data/06-ew/raid/p12s.ts#L512-L539 we could add a comment explaining the timing of the callout.

we could add a comment explaining the timing of the callout that would appear in the user-facing configuration page.

I forgot that existed now. I implemented an example. Wording to be determined. I won't get around to testing with this configuration this week.


TAB has some bug at Insert mode

before tab

after tab

my config
return {
  "gaoDean/autolist.nvim",
  priority = 1,
  ft = {
    "markdown",
    "text",
  },
  config = function()
    require("autolist").setup()
    vim.keymap.set("i", "<tab>", "<cmd>AutolistTab<cr>")
    vim.keymap.set("i", "<s-tab>", "<cmd>AutolistShiftTab<cr>")
    vim.keymap.set("i", "<CR>", "<CR><cmd>AutolistNewBullet<cr>")
    vim.keymap.set("n", "o", "o<cmd>AutolistNewBullet<cr>")
    vim.keymap.set("n", "O", "O<cmd>AutolistNewBulletBefore<cr>")
    vim.keymap.set("n", "<CR>", "<cmd>AutolistToggleCheckbox<cr><CR>")
    vim.keymap.set("n", "<C-r>", "<cmd>AutolistRecalculate<cr>")
  end,
  dependencies = {
    {
      "windwp/nvim-autopairs",
      event = "VeryLazy",
    },
  },
}

Hi, could you try this branch? It has a potential fix: https://github.com/gaoDean/autolist.nvim/pull/80

I tried , but it doesn't work properly.

I confirm this behaviour with tab. This is the case even on a fresh config with only lazy.nvim and autolist.nvim installed (and , and on a pure markdown file with only text.
My the test init.lua I used is bootstrapping lazy.nvim, then
require("lazy").setup({
  {
    "gaoDean/autolist.nvim",
    ft = {
        "markdown",
        "text",
    },
    config = function()
        require("autolist").setup()
        vim.keymap.set("i", "<tab>", "<cmd>AutolistTab<cr>")
        vim.keymap.set("i", "<s-tab>", "<cmd>AutolistShiftTab<cr>")
    end,
  },
})

This produces the behaviour that @wqk151 observed.

The problem stems from line 25 in auto.lua:
    vim.cmd.normal({ "a" .. parsed_key, bang = true })

Because we append (the 'a' in the command above), the cursor will reenter insert mode one character forward. For example, if we use the text from the original image, we start like
|print(request.args.get("name"))

where '|' is the cursor in insert mode. When we press tab, the above lua code runs. This enters normal mode, then simulates pressing 'a' which enters insert after the current character (append), then issues the tab key press (gives us ^I). This means we then have
p| rint(request.args.get("name"))

This goes away if we change 'a' to 'i', but I don't know yet what other functionality this breaks because I don't know this code base. I'm looking at fixing this right now because this bug is irksome.

Reading the branch of that function intended for insert mode (the function is only called once right now, so it is only ever used in insert mode), it appears like the intention is to simply fall back to whatever key the user pressed. For example, if we are not currently in a list, the else in handle_indent runs and either a <tab> or <s-tab> keypress is simulated for the user, and we want to simply fall back to that keypress via the press function. To do this, we can skip the normal command from line 25 and simply use feedkeys:
local function press(key, mode)
  if not key or key == "" then return end
  local parsed_key = vim.api.nvim_replace_termcodes(key, true, false, true)
  if mode == "i" then
    vim.api.nvim_feedkeys(parsed_key, 'n', true)
  else
    vim.cmd.normal({ parsed_key, bang = true })
  end
end

Using this version of the function, this is the functionality I have with tab and shift-tab:

Tab and shift-tab indent and dedent when at the end of the line (the intended functionality of autolist)
tab works correctly in other contexts, such as at the start of the line

Disclaimer: I don't have anything mapped to  normally, so I can't show it working outside of the list context.


Add the _timestamp to the observations adaptor to detect regressions

Sorry for my drive-by comment, I did an issue report and saw this pull request.
For distributions, this most probably would make builds non-reproducible.
See also https://reproducible-builds.org.
For c-code there are some tweaks to fake the date in distribution builds, but I don't think
there are some similar measures for python.
Dumping the version number, the git hash or the timestamp of the last check-in would be a lot more reproducible.

Sorry for my drive-by comment, I did an issue report and saw this pull request. For distributions, this most probably would make builds non-reproducible. See also https://reproducible-builds.org. For c-code there are some tweaks to fake the date in distribution builds, but I don't think there are some similar measures for python. Dumping the version number, the git hash or the timestamp of the last check-in would be a lot more reproducible.

Thanks. That is interesting although not relevant here as this is python and it is not to be compiled. Also, these tests are now implemented here https://github.com/ecmwf-projects/cads-e2e-tests in a more elegant way, so there is no need to merge this. Regards.