feat: adds option to change JVM max heap size

Addresses #94
@llwiggins I've added the option to change the default max heap size in the JVM, which should help with processing large
datasets. I haven't been able to test it though as my java install is currently not working.
Before launching into a full dataset process, can you try the following to see if it works?
Create a Python script with the below and then run it, it should tell you the max memory available to your system by default (should do, I can't check this until I fix my java).
from cellphe.imagej import setup_imagej
import scyjava

setup_imagej()
print(f"Max memory = {scyjava.memory_max() // 1024 // 1024 // 1024}")

Then try run it again but passing in the max amount of memory you want, which should be then displayed in the output message.
from cellphe.imagej import setup_imagej
import scyjava

setup_imagej(max_heap=6)
print(f"Max memory = {scyjava.memory_max() // 1024 // 1024 // 1024}")

By the way, were you on your laptop or Google Colab when you had this issue before?

Hi @stulacy,
I've tried this code out but get the same output for max memory before and after setting a max_heap value. I also get the same output for each max_heap value that I try! I was using my laptop when I ran into the initial memory issues.
Kind regards,
Laura

I've fixed my Java install on my Linux laptop and increasing that heap parameter is working for me.
On Windows I can't get it to work at all, which I think is a problem with my Java setup. I haven't tried running the tracking stuff on there before. I'll try and fix it and document it for other Windows users.
Are you still testing it on your Mac, or are you using Google Colab? If the latter I suspect that you won't be able to modify the JVM settings.
What is the default heap size?

Update: still unable to get scyjava working on Windows, yet alone testing if the JVM max heap size can be configured.

Hi @llwiggins , I've put a fix in place so the PyImageJ integration for Tracking should now also work on Windows.
I can also confirm that the max_heap parameter added by this PR is working as expected on both Windows and Linux.
Is it still not working for you? And if so, are you using your Mac or on Google Colab?

Weird! I'm using it on my Mac rather than through Google Collab.
For me, the statement below returns a value of 3
setup_imagej()
print(f"Max memory = {scyjava.memory_max() // 1024 // 1024 // 1024}")

I also have a default 3GB heap on my laptop (16GB RAM total), so that sounds reasonable (and also relatively low so it's understandable how it runs out of memory on large datasets).
But it's still not changing when you try to increase it with the max_heap argument?
setup_imagej(max_heap=6)

Here's the output from running the code in my .ipynb file on my mac where it doesn't seem that the max memory is changing despite changing the max_heap parameter

Here's my output:
openjdk version "1.8.0_402"
OpenJDK Runtime Environment Corretto-8.402.08.1 (build 1.8.0_402-b08)
OpenJDK 64-Bit Server VM Corretto-8.402.08.1 (build 25.402-b08, mixed mode)

Yep still says 3 😢

Hmmm this might be another M1 Mac specific issue. I'll see if I can reproduce it on another machine.

I've had a go on someone's MacBook Pro 2021 in the office and annoyingly I can't reproduce this at all. What Mac are you on?
It was interesting that you're using an Amazon JDK, but even installing that exact same version on this MacBook I couldn't reproduce it.
A few things to try (clutching at straws now):

Restart Kernel and change sj.config.add_option(f"-Xmx6g") to sj.config.add_option(f"-mx6g")
Restart Kernel and change sj.config.add_option(f"-Xmx6g") to sj.config.set_heap_max(gb=6)
In a terminal run java -XX:+PrintFlagsFinal -Xmx6g -version -verbose | grep HeapSize and look at the MaxHeapSize value.
In a terminal run java -XX:+PrintFlagsFinal -mx6g -version -verbose | grep HeapSize and look at the MaxHeapSize value.

I'm mostly convinced now that this PR will work for the majority of users, and we're now just trouble shooting why it doesn't work for you, and if it there might be others it doesn't work for.

Weird, I set up a new venv and tried running the lines of code again.

It seems I can change the max memory, but it's a bit intermittent whether it behaves as expected? For example, when I set back to max_heap = 3 it will stay at 6 until I restart my kernal/notebook.

Huh, that's strange... At least it works now!
Yep it staying the same until the kernel/Python is restarted is expected behaviour. The JVM is only started once at the start of the program and the heap size is set on JVM start.
I'll make that change go live then.


A small bug in the CodeSnapshotCallback

When running the Instant-NSR Mesh Extraction, the CodeSnapshotCallback will backup the exp directory generated by previous runs, which makes the current run stuck for a long time. Adding instant-nsr-pl/exp/* to .gitignore can fix this problem.

fixed. Thanks.


[SPARK-33131][SQL][2.4] Fix grouping sets with having clause can not resolve qualified col name

This is #30029 backport for branch-2.4.

What changes were proposed in this pull request?

Correct the resolution of having clause.
Why are the changes needed?

Grouping sets construct new aggregate lost the qualified name of grouping expression. Here is a example:
-- Works resolved by `ResolveReferences`
select c1 from values (1) as t1(c1) group by grouping sets(t1.c1) having c1 = 1

-- Works because of the extra expression c1
select c1 as c2 from values (1) as t1(c1) group by grouping sets(t1.c1) having t1.c1 = 1

-- Failed
select c1 from values (1) as t1(c1) group by grouping sets(t1.c1) having t1.c1 = 1

It wroks with Aggregate without grouping sets through ResolveReferences, but Grouping sets not works since the exprId has been changed.
Does this PR introduce any user-facing change?

Yes, bug fix.
How was this patch tested?

add test.

Test build #129927 has started for PR 30075 at commit 476eac9.

Test build #129927 has finished for PR 30075 at commit 476eac9.

This patch fails Scala style tests.
This patch does not merge cleanly.
This patch adds no public classes.

Build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/129927/
Test FAILed.

@dongjoon-hyun thank you, I will push branch-3.0.

Test build #129929 has started for PR 30075 at commit fa072b1.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/34532/

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/34534/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/34532/

Build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/34532/
Test FAILed.

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/34534/

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/SparkPullRequestBuilder-K8s/34534/
Test PASSed.

Test build #129929 has finished for PR 30075 at commit fa072b1.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
class AuthRpcHandler extends AbstractAuthRpcHandler
public class SaslRpcHandler extends AbstractAuthRpcHandler
public abstract class AbstractAuthRpcHandler extends RpcHandler
          logDebug(s\" + cloning instance of REPL class $capturingClassName\")
 //     class InnerFoo
  //       found intra class call to $iw.$anonfun$closure$1(L$iw;I)Lscala/collection/immutable/IndexedSeq;
  //       found intra class call to $iw$InnerFoo$1.$anonfun$innerClosure$1(L$iw$InnerFoo$1;I)Lscala/collection/immutable/IndexedSeq;
  //       found intra class call to $iw$InnerFoo$1.$anonfun$innerClosure$2(L$iw$InnerFoo$1;I)Ljava/lang/String;
  //       found intra class call to $iw$InnerFoo$1.$anonfun$innerClosure$2(L$iw$InnerFoo$1;I)Ljava/lang/String;
  //        (class java.lang.Object,Set())
  //        (class $iw,Set(topLevelValue))
    //   starting closure (in class T)
    // we need to track calls from \"inner closure\" to outer classes relative to it (class T, A, B)
            logTrace(s\"    found intra class call to $ownerExternalName.$name$desc\")
            logDebug(s\"    found inner class $ownerExternalName\")
public class SparkAvroKeyOutputFormat extends AvroKeyOutputFormat<GenericRecord>
 static class SparkRecordWriterFactory extends RecordWriterFactory<GenericRecord>
case class UnresolvedHaving(
case class First(child: Expression, ignoreNulls: Boolean)
case class Last(child: Expression, ignoreNulls: Boolean)
case class Size(child: Expression, legacySizeOfNull: Boolean)
 class TimestampParser(fastDateFormat: FastDateFormat)
class SQLExecutionRDD(
case class ArrowEvalPython(
case class BatchEvalPython(
trait CreateHiveTableAsSelectBase extends DataWritingCommand
case class CreateHiveTableAsSelectCommand(
case class OptimizedCreateHiveTableAsSelectCommand(

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/129929/
Test FAILed.

Test build #129937 has started for PR 30075 at commit fdb1aed.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/34542/

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/34542/

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/SparkPullRequestBuilder-K8s/34542/
Test PASSed.

Test build #129937 has finished for PR 30075 at commit fdb1aed.

This patch fails due to an unknown error code, -9.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/129937/
Test FAILed.

Seems this error is not related.
Traceback (most recent call last):
  File "/home/runner/work/spark/spark/python/pyspark/mllib/tests.py", line 1492, in test_training_and_prediction
    self._eventually(condition, timeout=180.0)
  File "/home/runner/work/spark/spark/python/pyspark/mllib/tests.py", line 133, in _eventually
    lastValue = condition()
  File "/home/runner/work/spark/spark/python/pyspark/mllib/tests.py", line 1487, in condition
    self.assertGreater(errors[1] - errors[-1], 0.3)
AssertionError: -0.07000000000000006 not greater than 0.3

cc @viirya @HyukjinKwon  can we backport #23586 in branch-2.4 ?

Ok, let me backport #23586 to branch-2.4.

Created #30078.

Test build #129951 has started for PR 30075 at commit 891d0cf.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/34556/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/34556/

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/34556/
Test FAILed.

Test build #129951 has finished for PR 30075 at commit 891d0cf.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

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/SparkPullRequestBuilder/129951/
Test PASSed.

thanks for merging!


feat: merge rebase capable for downstream

Extending to include the optional functionality of Rebase Merging the downstream fork.
This is a much needed feature when your have multiple similar repositories with only slight changes that extend the original.

Thank you for the PR. I redesigned it a little bit to support squash as well and defaulted the behavior to rebase instead of hard reset.

I take that back, hard reset will still be the default for readability.


python310Packages.gridnet: 4.0.0 -> 4.1.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python310Packages.gridnet is: "Asynchronous Python client for NET2GRID devices"
meta.homepage for python310Packages.gridnet is: "https://github.com/klaasnicolaas/python-gridnet"
meta.changelog for python310Packages.gridnet is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
Warning: a test defined in passthru.tests did not pass
found 4.1.0 with grep in /nix/store/8iq988w1l10li624brncxvwhhxwbmgdd-python3.10-gridnet-4.1.0
found 4.1.0 in filename of file in /nix/store/8iq988w1l10li624brncxvwhhxwbmgdd-python3.10-gridnet-4.1.0

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

5 total rebuild path(s)

3 package rebuild(s)

3 x86_64-linux rebuild(s)
2 x86_64-darwin rebuild(s)

First fifty rebuilds by attrpath
home-assistant-component-tests.pure_energie
python310Packages.gridnet
python39Packages.gridnet

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/8iq988w1l10li624brncxvwhhxwbmgdd-python3.10-gridnet-4.1.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

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

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/8iq988w1l10li624brncxvwhhxwbmgdd-python3.10-gridnet-4.1.0
ls -la /nix/store/8iq988w1l10li624brncxvwhhxwbmgdd-python3.10-gridnet-4.1.0/bin

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

1 package failed to build:

home-assistant-component-tests.pure_energie

2 packages built:

python310Packages.gridnet (python310Packages.net2grid)
python39Packages.gridnet (python39Packages.net2grid)

Maintainer pings
cc @dotlambda for testing.

duplicate of #173212


subscriber_api.js:migrated to typescript

ts:migrating subscriber_api.js file to ts.

Screenshots and screen captures:

Self-review checklist

[x] Self-reviewed the changes for clarity and maintainability
(variable names, code reuse, readability, etc.).

Communicate decisions, questions, and potential concerns.

[x] Explains differences from previous plans (e.g., issue description).
[x] Highlights technical choices and bugs encountered.
[x] Calls out remaining decisions and concerns.
[x] Automated tests verify logic where appropriate.

Individual commits are ready for review (see commit discipline).

[x] Each commit is a coherent idea.
[x] Commit message(s) explain reasoning and motivation for changes.

Completed manual review and testing of the following:

[x] Visual appearance of the changes.
[x] Responsiveness and internationalization.
[x] Strings and tooltips.
[x] End-to-end functionality of buttons, interactions and flows.
[x] Corner cases, error conditions, and easily imagined bugs.

@andersk Sir, I have opened a new pull request that resolves all the linting issues and clean up of code. https://github.com/zulip/zulip/pull/28046.


Cannot visualize topography maps

access netbox, go to admin, topology maps, create new map with device pattern: *
I then try accessing the map and get:

There was an error generating the requested graph. Ensure that the GraphViz executables have been installed correctly.

The url looks like: http://internal-docker:8777/api/extras/topology-maps/1/render/
Expected Behavior
See a topology map
...
Debug Information

The output of docker-compose version:
docker-compose version 1.22.0, build f46880fe
docker-py version: 3.4.1
CPython version: 3.6.6
OpenSSL version: OpenSSL 1.1.0f  25 May 2017
The output of docker version:
Client:
Version:      17.05.0-ce
API version:  1.29
Go version:   go1.7.5
Git commit:   89658be
Built:        Thu May  4 22:10:54 2017
OS/Arch:      linux/amd64
Server:
Version:      17.05.0-ce
API version:  1.29 (minimum version 1.12)
Go version:   go1.7.5
Git commit:   89658be
Built:        Thu May  4 22:10:54 2017
OS/Arch:      linux/amd64
Experimental: false
The output of git rev-parse HEAD: 81f8c7386d430358aa0f140f3d3e6a188cf9a47e
The command you used to start the project: As detailed here: https://github.com/ninech/netbox-docker#quickstart
The output of docker-compose logs netbox:
https://gist.github.com/ovizii/575c37b4a815bf5997592682bbfeee52

This is weird, as Graphviz is clearly installed:
https://github.com/ninech/netbox-docker/blob/81f8c7386d430358aa0f140f3d3e6a188cf9a47e/Dockerfile#L8

It might be me messing things up, I'm quite new to Docker. Maybe this could be the cause? I wanted to map data into specific folders for backup purposes instead of using the docker volumes:
docker-compose.yml
version: '3'
services:
  netbox: &netbox
    build:
      context: .
      args:
        - BRANCH=${VERSION-master}
    image: ninech/netbox:${VERSION-latest}
    depends_on:
    - postgres
    - redis
    - netbox-worker
    env_file: env/netbox.env
    volumes:
    - ./startup_scripts:/opt/netbox/startup_scripts:ro
    - ./initializers:/opt/netbox/initializers:ro
    - ./configuration:/etc/netbox/config:ro
    - /mnt/netbox/netbox-nginx-config:/etc/netbox-nginx/
    - /mnt/netbox/netbox-static-files:/opt/netbox/netbox/static
    - /mnt/netbox/netbox-media-files:/opt/netbox/netbox/media
    - /mnt/netbox/netbox-report-files:/etc/netbox/reports:ro
  netbox-worker:
    <<: *netbox
    depends_on:
    - redis
    entrypoint:
    - python3
    - /opt/netbox/netbox/manage.py
    command:
    - rqworker
  nginx:
    command: nginx -c /etc/netbox-nginx/nginx.conf
    image: nginx:1.15-alpine
    depends_on:
    - netbox
    ports:
    - 8777:8080
    volumes:
    - /mnt/netbox/netbox-static-files:/opt/netbox/netbox/static:ro
    - /mnt/netbox/netbox-nginx-config:/etc/netbox-nginx/:ro
  postgres:
    image: postgres:10.4-alpine
    env_file: env/postgres.env
    volumes:
    - /mnt/netbox/netbox-postgres-data:/var/lib/postgresql/data
  redis:
    image: redis:4-alpine
    command:
    - sh
    - -c # this is to evaluate the $REDIS_PASSWORD from the env
    - redis-server --appendonly yes --requirepass $$REDIS_PASSWORD ## $$ because of docker-compose
    env_file: env/redis.env
    volumes:
    - /mnt/netbox/netbox-redis-data:/data

Look at the volumes section. This had led to me having to manually copy the nginx.conf file into: /mnt/netbox/netbox-nginx-config
Maybe that is unnecessary? Would it be enough to map the postgres data into a folder for backup and reverse the other changes I made to volumes?
  postgres:
    image: postgres:10.4-alpine
    env_file: env/postgres.env
    volumes:
    - /mnt/netbox/netbox-postgres-data:/var/lib/postgresql/data

Would it be enough to map the postgres data into a folder for backup and reverse the other changes I made to volumes?

Yes. All persistent data is stored in PostgreSQL.
If you use webhook, you may want to backup the redis data directory, if it's critical that no webhook is lost in a crash. (At least those webhooks that were already sent to Redis by Netbox, for all others there's no guarantee anyway.)
But I would suggest to use a cronjob/systemd timer which periodically performs PostgreSQL backups like this:
docker-compose exec postgres sh -c 'pg_dump -cU $POSTGRES_USER $POSTGRES_DB' | gzip > db_dump.sql.gz

netbox-nginx-config is specific to the "netbox-docker" version. (That's because we ship the Nginx config with the netbox-docker container in order to ship just one container.)
netbox-static-files files are specific to each Netbox version and are shared with the Nginx container, because the Nginx container is serving static files.

hm, I tried reversing my changes except for the volume where postgres data is stored. An sdiff between my docker-compose.yml and the original from this site which I renamed docker-compose.yml.sample clearly shows no other changes:

my modified file is on the left. did a docker-compose down followed by docker-compose up -d and still getting this error when visualizing a topology map:

There was an error generating the requested graph. Ensure that the GraphViz executables have been installed correctly.

Any other ideas what could cause this? The only other files I touched are the env/. ones
Thanks for the pointers with the postgres backups. To give more insight into why I am doing this, I generyll try and separate data from servers so basically in my example: /mnt/netbox would be an NFS share which means I have data backed up separately from my docker host server. I can restore or setup a new docker host, mount my shares and start up my containers again without having to worry about the data.

I just tested it with the latest docker image on my mac. It works fine.
 Can you please check the security log of the respecting technology?
I hope you can understand that it's not possible to provide support for any setup that is not according to the default setup.
Therefore:

please revert/stash all changes (or clone the project into a separate directory)
please cleanup any old docker volumes: docker-compose down -v --remove-orphans (this will remove any data stored in the DB. make a backup first if you need this data.)
run docker-compose up and wait for the application to be available
create a site 'a', device role 'a', manufacturer 'a', device type 'a' and a device 'a'
create a topo map with the following selector .*
try to render the topo map

If it still fails, disable SELinux/AppArmor and try again.
Please report back if it still fails.

I do understand you can't support all sorts of configurations and I'm thankful for pointers. I'm ready to follow all your steps to debug but I spotted the problem:
my selector was simply "" as stated in the very first sentence of this thread while your step 5 said to use "." and now it works :-)


Fix ensure_directory_exists test

On my system this failed with the sensible error:
======================================================================
ERROR: tests.test_downloaders.test_ensure_directory_exists
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/vanmerb/anaconda3/lib/python3.5/site-packages/nose/case.py", line 198, in runTest
    self.test(*self.arg)
  File "/home/vanmerb/fuel/tests/test_downloaders.py", line 90, in test_ensure_directory_exists
    assert_raises(ensure_directory_exists(filepath))
  File "/home/vanmerb/anaconda3/lib/python3.5/site-packages/numpy/testing/utils.py", line 1109, in assert_raises
    return nose.tools.assert_raises(*args,**kwargs)
  File "/home/vanmerb/anaconda3/lib/python3.5/unittest/case.py", line 727, in assertRaises
    return context.handle('assertRaises', args, kwargs)
  File "/home/vanmerb/anaconda3/lib/python3.5/unittest/case.py", line 157, in handle
    (name, self._base_type_str))
TypeError: assertRaises() arg 1 must be an exception type or tuple of exception types

Why this was passing on Travis is a mystery to me.

Why the tests fail right now is equally mystifying to me.

I think the cache for that particular environment has been corrupted somehow, same was happening in #271. Either way, it has nothing to do with this PR.

Alright, I'll merge if there's not other failure.

Clearing the cache seems to have solved it: https://travis-ci.org/mila-udem/fuel/builds/105222913


(Fix) metadata crash on startup with Local Notification plugin.

Description
Android 9 & 10 on some phones now enforce the requirement that after a reboot the data is un-accessible until phone has been unlocked once after startup.   According to the docs; this was a new feature in Android 7; but we are only seeing crashes in Android 9 and later.
The new error code detects this specific condition and now just exits the application w/o throwing an error, as throwing an error shows up as a error in the Google application error log.   After much testing, exiting the app is the safest course of action with no issues because application doesn't actually need to run at this point.
Does your commit message include the wording below to reference a specific issue in this repo?
Fixes #1546
Does your pull request have [unit tests]
No, unable to test except manually (see #1546 for instructions)

test


Dismiss dialog when done

Currently a user has to click on Close after an action like Importing files is done. As this is an extra click this PR changes the code to auto close the dialog in such cases.

Good idea.
I think its not the best idea to close it immediately. Having a settings toggle for it is a little over kill I think.
Idea: Add a delay to it in a coroutine thats in the dialogs lifecycle. Maybe like 500-1000ms, lets try how it feels.
If the user dismisses it. The delay is canceled. If the delay exceeds the dialog is closed automatically.
This way the success message is still presented for a short while.
lifecycleScope.launch {
    delay(1_000)
    dismiss()
}


use cvr's input system

Uh that won't work well be cause if u keep holding space u will just keep toggling the fly tho check how I did it now. Thx for the help.

ah, alright 😄


Fix bug: Grafana URL misconfigured.

Coverage increased (+29.04%) to 77.495% when pulling c709413a9b66ee40b90f91fba7c50aad572ef67c on hwuu/webPortal_grafanaUrl into 9edbe3da1194147d51c646f0a43724e34bd12db4 on master.

Coverage increased (+29.04%) to 77.495% when pulling c709413a9b66ee40b90f91fba7c50aad572ef67c on hwuu/webPortal_grafanaUrl into 9edbe3da1194147d51c646f0a43724e34bd12db4 on master.


Example data for kaiju classifier

Description of feature
Right now, we test the check_samplesheet.py with centrifuge and kraken. We need example data for kaiju classifier so that this can be added in the samplesheet.

We have example data for Kaiju classifier


Code is marked as unreachable, when typing.NoReturn is used.

Environment data

Language Server version: Pylance language server v2021.7.4
OS and version: Windows 10 Version 20H2(OS Build 19042.1083)
Python version (& distribution if applicable, e.g. Anaconda): Python 3.9.6 64-bit

Expected behaviour
Code should not be marked as unreachable
Actual behaviour
Code is marked as unreachable code
Logs

If you try the below mentioned code snippet, the print statement, with context after passmethod, is maked as unreachable by pylance.
Code Snippet / Additional information

from typing import NoReturn

def passmethod() -> NoReturn:
    pass

def main():
    print('before passmethod')
    passmethod()
    print('after passmethod')

This is the correct behavior. NoReturn means that the method in question never returns — i.e. it always raises an exception or goes into an infinite loop. By definition, the print statement after the call to passmethod is unreachable.
For more details about the intended use of the NoReturn type, refer to PEP 484.

I think None would be better in this case
def passmethod() -> None:
    pass


fix: resolve set_scripts partial bug

this PR fixed a bug: stored min_filtered_block_number should be the min of all scripts' block_number when storage's filter_scripts is empty.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (d31b8ef) 71.85% compared to head (a30cea5) 71.87%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #179      +/-   ##
===========================================
+ Coverage    71.85%   71.87%   +0.02%
===========================================
  Files           25       25
  Lines         6604     6606       +2
===========================================
+ Hits          4745     4748       +3
+ Misses        1859     1858       -1

Flag
Coverage Δ

unittests
71.87% <100.00%> (+0.02%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


rewrite project

add setter for browscap.json
add cache
require node-js 10

Took: 1266ms
That's way too slow for a miss cache or not. It may want some indexing.


feat: add artalk comment system

Close #901

Im drinking outside, thank you very much for you new feat. I'll test it as soon as I can tomorrow.

It's perfect! Waiting for you merge.


Kubectl deployment example

Hi,

Can we redo the microservices demo with kubectl commands https://github.com/argoproj/microservices-demo/tree/master/.argo. I created a workflow in the same folder and Abhinav created the kubectl image to use kubectl deploy but at that time the services were giving error.

2.Write a workflow to do rolling upgrade and blue green deployment of one service from the above
3.Write a workflow to deploy in 2 kubernetes clusters in different AWS or GKE regions

See how to monitor these deployments

Francis please work on this


[1.7.10] Dupe with Crafter and Tome of Alkahestry

Using the Tome of Alkahestry with Ender IO crafter
What happens:
Book Makes double items like it is meant to But doesn't take any redstone charge from the Tome of Alkahestry
What you expected to happen:
Items double Tome of Alkahestry loses charges (in video you will see what i mean by charges
Steps to reproduce:
https://onedrive.live.com/redir.aspx?cid=75154b561b98607e&resid=75154B561B98607E!371838&parId=75154B561B98607E!371837&authkey=!AGlmo7Cc2527zLU&ithint=video%2Cmp4
1.need power source, crafter, chest, Tome of Alkahestry, redstone and items that wanted to be dupe (limited to compatibility with the tome)
2. set power crafter and chest together
3.set the crafter to push pull into the chest set the tome and diamond recipe in crafter as per video put tome and diamond into chest and it will work itself from there

EnderIO: <IP_ADDRESS>5
EnderCore: <IP_ADDRESS>
Minecraft: 1.7.10
Forge:

That's Reliquary's fault. We are properly asking the tome with getContainerItem() what should happen to it when crafting, but it just returns the unchanged tome.


Error Android build

Hello, how are you? Is appearing one error when I try to compile the application for android.

Where:
Build file '/Users/taironebrito/Desktop/appp/platforms/android/build.gradle' line: 190

What went wrong:
A problem occurred evaluating root project 'android'.

Error: NDK integration is deprecated in the current plugin.  Consider trying the new experimental plugin.  For details, see http://tools.android.com/tech-docs/new-build-system/gradle-experimental.  Set "android.useDeprecatedNdk=true" in gradle.properties to continue using the current NDK integration.

Please help! :)

I have not found the gradle.properties, is The correct the project.properties ??

Please help :'(

Do you have any problem building another project?
Have you installed everything that's required by this project?

Thanks for the attention. I solved my problem with build, but i found another issue, i can’t configure 100% the Push notifications on Android.
Can you help me ?
Is not posting in the Plugin's Delight Studio users android, only the iPhone.
I follow all the steps.
Thanks!

Em 4 de abr de 2016, à(s) 03:01, Julien Renaux<EMAIL_ADDRESS>escreveu:
Do you have any problem building another project?
Have you installed everything that's required by this project?
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub https://github.com/shprink/wordpress-hybrid-client/issues/203#issuecomment-205147877

IDK, you need to debug.
Have you set the senderID ?

I created Server API Key and Sender Id of the Cloud Messaging.
I downloaded the google-service.json and put it in the folder platforms/android.
I put the Server API Key in the Push Notification plugin in wordpress.
In which file I need to set the senderID?
Very Thanks!

Em 4 de abr de 2016, à(s) 05:01, Julien Renaux<EMAIL_ADDRESS>escreveu:
IDK, you need to debug.
Have you set the senderID ?
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub https://github.com/shprink/wordpress-hybrid-client/issues/203#issuecomment-205182613

https://github.com/shprink/wordpress-hybrid-client/blob/develop/PUSHNOTIFICATIONS.md#update-the-local-config

Thanks, Now I did all the steps correct, I can generate the apk. Do I install on my phone, but when I go to enable the option of Push he gets on the load infinite and not active.

Em 4 de abr de 2016, à(s) 08:45, Julien Renaux<EMAIL_ADDRESS>escreveu:
https://github.com/shprink/wordpress-hybrid-client/blob/develop/PUSHNOTIFICATIONS.md#update-the-local-config https://github.com/shprink/wordpress-hybrid-client/blob/develop/PUSHNOTIFICATIONS.md#update-the-local-config
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub https://github.com/shprink/wordpress-hybrid-client/issues/203#issuecomment-205261005

check the console for errors

no error in terminal when i built the app :((

check the CONSOLE by debugging remotely on chrome

I have connected the phone in mode adb in the cannary, he identified it. Open the console and tried to activate the push. But nothing appears.

Em 4 de abr de 2016, à(s) 11:59, Julien Renaux<EMAIL_ADDRESS>escreveu:
check the CONSOLE by debugging remotely on chrome
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub https://github.com/shprink/wordpress-hybrid-client/issues/203#issuecomment-205337561

check the network tab

https://drive.google.com/file/d/0B0IqlPbr_pj0UzI1clhZcktJNG8/view?usp=sharing https://drive.google.com/file/d/0B0IqlPbr_pj0UzI1clhZcktJNG8/view?usp=sharing
this is my apk, please help!

Em 4 de abr de 2016, à(s) 11:59, Julien Renaux<EMAIL_ADDRESS>escreveu:
check the CONSOLE by debugging remotely on chrome
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub https://github.com/shprink/wordpress-hybrid-client/issues/203#issuecomment-205337561

Do not have time for that man. Please check the network tab. Check if the http requests are successful or not.

Ok, I'm sorry for this. It is because only lack this to finish the app and I am new in this area. I am learning.
When I open the app with the devtools from chrome, nothing appears. In any of the tabs.

Em 4 de abr de 2016, à(s) 12:15, Julien Renaux<EMAIL_ADDRESS>escreveu:
Do not have time for that man. Please check the network tab. Check if the http requests are successful or not.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub https://github.com/shprink/wordpress-hybrid-client/issues/203#issuecomment-205343481

In the ios version is working perfectly. Only in android it is giving this error.

I found the error.
04-04 13:34:46.777 18797-18797/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.google.android.gms.persistent, PID: 18797
Theme: themes:{}
java.lang.RuntimeException: Unable to create application com.google.android.gms.common.app.GmsApplication: java.lang.SecurityException: addOnPermissionsChangeListener: Neither user 10024 nor current process has android.permission.OBSERVE_GRANT_REVOKE_PERMISSIONS.
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4749)
at android.app.ActivityThread.-wrap1(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1424)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5456)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by: java.lang.SecurityException: addOnPermissionsChangeListener: Neither user 10024 nor current process has android.permission.OBSERVE_GRANT_REVOKE_PERMISSIONS.
at android.os.Parcel.readException(Parcel.java:1620)
at android.os.Parcel.readException(Parcel.java:1573)
at android.content.pm.IPackageManager$Stub$Proxy.addOnPermissionsChangeListener(IPackageManager.java:5238)
at android.app.ApplicationPackageManager.addOnPermissionsChangeListener(ApplicationPackageManager.java:1138)
at com.google.android.gms.common.j.b.a(:com.google.android.gms:243)
at com.google.android.gms.common.app.GmsApplication.onCreate(:com.google.android.gms:218)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1014)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4746)
at android.app.ActivityThread.-wrap1(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1424)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5456)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
04-04 13:34:46.782 2333-2345/? W/ActivityManager: Process com.google.android.gms has crashed too many times: killing!
04-04 13:34:46.782 2333-2345/? I/ActivityManager: Killing 18797:com.google.android.gms.persistent/u0a24 (adj 0): crash

Good Night man, i found the correct error in chrome console, if you have a time please help me.
WARNING: Tried to load angular more than once.
cordova statusbar
cordova analytics
cordova globalization information
cordova network information
[pushNotifications]
[admob]
[admob] disabled
stateChangeSuccess Object Object Object Object
main controller
deviceready has not fired after 5 seconds.
nativepagetransitions is disabled or nativepagetransitions plugin is not present
wifi network information
[pushNotifications] init
ImgCache initialising
INFO: ImgCache initialising
[pushNotifications] hasPermission true
[pushNotifications] hasBeenUnregistered null
[pushNotifications] init Object Object
INFO: LocalFileSystem opened
INFO: Local cache folder opened: file:///storage/emulated/0/imgcache/
INFO: .nomedia file created.
ImgCache init: success!
Init: success!
reinit load false
wphcLoader attempt: 0
cordova socialsharing
INFO: File ea97b900b43f3f8fc5756a482fb3956f?s=96&d=mm&r=x loaded from cache
INFO: File a7a04ba94414c0dd1a1d3a5dc1d59c45?s=96&d=mm&r=x loaded from cache
INFO: File ce758d19406a4104dc3841b68ff1ef06?s=96&d=mm&r=x loaded from cache
INFO: File ea97b900b43f3f8fc5756a482fb3956f?s=96&d=mm&r=x loaded from cache
Error in Error callbackId: PushNotification1307871810 : TypeError: Cannot read property '$log' of undefined
Uncaught (in promise) TypeError: Cannot read property '$log' of undefined
at file:///android_asset/www/bundle-0942d8.js:130631:22
at PushNotification.emit (file:///android_asset/www/plugins/phonegap-plugin-push/www/push.js:193:38)
at fail (file:///android_asset/www/plugins/phonegap-plugin-push/www/push.js:57:14)
at Object.cordova.callbackFromNative (file:///android_asset/www/cordova.js:293:52)
at processMessage (file:///android_asset/www/cordova.js:1079:17)
at processMessages (file:///android_asset/www/cordova.js:1102:9)
stateChangeSuccess Object {url: "/params", class: "module-params", views: Object, name: "public.params"} Object {} Object {url: "/posts", class: "module-posts", views: Object, name: "public.posts"} Object {}
[pushNotifications] hasPermission true
stateChangeSuccess Object {url: "/pushNotifications", views: Object, name: "public.params.pushNotifications"} Object {} Object {url: "/params", class: "module-params", views: Object, name: "public.params"} Object {}
loading native show
loading native hide
loading native show
[pushNotifications] init Object {senderID: "892221558055"} Object {badge: true, sound: true, alert: true, clearBadge: true}
stateChangeSuccess Object {url: "/params", class: "module-params", views: Object, name: "public.params"} Object {} Object {url: "/pushNotifications", views: Object, name: "public.params.pushNotifications"} Object {}
[pushNotifications] hasPermission true
stateChangeSuccess Object {url: "/pushNotifications", views: Object, name: "public.params.pushNotifications"} Object {} Object {url: "/params", class: "module-params", views: Object, name: "public.params"} Object {}
loading native show
loading native hide
loading native show
[pushNotifications] init Object {senderID: "892221558055"} Object {badge: true, sound: true, alert: true, clearBadge: true}
Error in Error callbackId: PushNotification1307871848 : TypeError: Cannot read property '$log' of undefined
Uncaught TypeError: Cannot read property '$log' of undefined
Error in Error callbackId: PushNotification1307871855 : TypeError: Cannot read property '$log' of undefined
Uncaught TypeError: Cannot read property '$log' of undefined
Very very thanks!

I have tried your apk but it is not in debug mode. Please send me the debug mode apk so I can debug today.

https://drive.google.com/open?id=0B0IqlPbr_pj0NmIwaFJBUGtaVTg
THANKS SO MUCH!

Seriously dude...
I do not get any json response from http://blogdagente.com.br/pnfw/register
It is written in the docs to test that url first => https://github.com/shprink/wordpress-hybrid-client/blob/develop/PUSHNOTIFICATIONS.md#update-the-local-config
You have a problem with your hosting. Check apache ou nginx setup to have access to pnfw plugin.

Otherwise your app looks good :)

Sorry my friend, it’s because my wordpress in maintenance mode. But   http://blogdagente.com.br/pnfw/register http://blogdagente.com.br/pnfw/register is working and return me for this {"error":"401","reason":"Unauthorized","detail":"Invalid HTTP method”}
I created one user for you.
login:shprink
pass:shprinkpassword
you can login in http://www.blogdagente.com.br/redacao http://www.blogdagente.com.br/redacao
Please take a look because here the app doesn’t work for me and my friends.

Em 5 de abr de 2016, à(s) 12:12, Julien Renaux<EMAIL_ADDRESS>escreveu:
Otherwise your app looks good :)
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub https://github.com/shprink/wordpress-hybrid-client/issues/203#issuecomment-205851293

http://blogdagente.com.br/pnfw/register is not accessible from your device, remove the maintenance mode

Removed, try now!

Em 5 de abr de 2016, à(s) 14:46, Julien Renaux<EMAIL_ADDRESS>escreveu:
http://blogdagente.com.br/pnfw/register http://blogdagente.com.br/pnfw/register is not accessible from your device, remove the maintenance mode
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub https://github.com/shprink/wordpress-hybrid-client/issues/203#issuecomment-205916458

you have this error => https://github.com/shprink/wordpress-hybrid-client/blob/develop/PUSHNOTIFICATIONS.md#parameter-oauth_consumer_key-is-missing

But I I disabled OAuth and the error continues.

Em 5 de abr de 2016, à(s) 14:50, Julien Renaux<EMAIL_ADDRESS>escreveu:
you have this error => https://github.com/shprink/wordpress-hybrid-client/blob/develop/PUSHNOTIFICATIONS.md#parameter-oauth_consumer_key-is-missing https://github.com/shprink/wordpress-hybrid-client/blob/develop/PUSHNOTIFICATIONS.md#parameter-oauth_consumer_key-is-missing
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub https://github.com/shprink/wordpress-hybrid-client/issues/203#issuecomment-205917598

Only in android version.

Em 5 de abr de 2016, à(s) 14:50, Julien Renaux<EMAIL_ADDRESS>escreveu:
you have this error => https://github.com/shprink/wordpress-hybrid-client/blob/develop/PUSHNOTIFICATIONS.md#parameter-oauth_consumer_key-is-missing https://github.com/shprink/wordpress-hybrid-client/blob/develop/PUSHNOTIFICATIONS.md#parameter-oauth_consumer_key-is-missing
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub https://github.com/shprink/wordpress-hybrid-client/issues/203#issuecomment-205917598

I am registered. You can write me a big check => https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=PFP99GE9V56RS

Registered where? I’ll donate you if can you help with this issue.

Em 5 de abr de 2016, à(s) 14:58, Julien Renaux<EMAIL_ADDRESS>escreveu:
I am registered. You can write me a big check => https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=PFP99GE9V56RS https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=PFP99GE9V56RS
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub https://github.com/shprink/wordpress-hybrid-client/issues/203#issuecomment-205920799

lol go check your push notif plugin I am registered.

LOL, you edit the apk ? Because with me and my friends doesn’t work.

Em 5 de abr de 201h6, à(s) 14:58, Julien Renaux<EMAIL_ADDRESS>escreveu:
I am registered. You can write me a big check => https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=PFP99GE9V56RS https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=PFP99GE9V56RS
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub https://github.com/shprink/wordpress-hybrid-client/issues/203#issuecomment-205920799

It does not work because you had a problem with your server. Now toggle the notification back and forth and it will work.
I received the push notif BTW! Now $$$$

How much do you wanna? I don’t have many money, i’m studying app mobiles. But I know that's your job.

Em 5 de abr de 2016, à(s) 15:10, Julien Renaux<EMAIL_ADDRESS>escreveu:
It does not work because you had a problem with your server. Now toggle the notification back and forth and it will work.
I received the push notif BTW! Now $$$$
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub https://github.com/shprink/wordpress-hybrid-client/issues/203#issuecomment-205924523

1 million dollars!!! $$$ lol don't worry bro I am kidding with you :)

hahahaha OMG! Very thanks bro, you’re the best.
e how i can fixe the app ? please tell me -

Em 5 de abr de 2016, à(s) 15:13, Julien Renaux<EMAIL_ADDRESS>escreveu:
1 million dollars!!! $$$ lol don't worry bro I am kidding with you :)
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub https://github.com/shprink/wordpress-hybrid-client/issues/203#issuecomment-205926198

Now toggle the notification back and forth

desactive and active the push plugin?

Em 5 de abr de 2016, à(s) 15:17, Julien Renaux<EMAIL_ADDRESS>escreveu:
Now toggle the notification back and forth
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub https://github.com/shprink/wordpress-hybrid-client/issues/203#issuecomment-205928132

but what’s problem with my server? I need fixe this.
Very thanks bro,I'm learning a lot from you,

Em 5 de abr de 2016, à(s) 15:17, Julien Renaux<EMAIL_ADDRESS>escreveu:
Now toggle the notification back and forth
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub https://github.com/shprink/wordpress-hybrid-client/issues/203#issuecomment-205928132

Hello bro, how are you? I’m here again hehe
Last question, i promise.
Everything is working now, but when i send the app for apple store it is reject by getting a white screen when you use it in TestFlight.
In xcode when i building with my iPhone it’s working normal, but in TestFlight it’s not working.
Am I doing something wrong?
Very Thanks!

2016-04-09 17:01:36.044 Blog da Gente[12413:193709] ERROR: Plugin 'AppRate' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2016-04-09 17:01:36.049 Blog da Gente[12413:193709] ERROR: Plugin 'AppRate' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2016-04-09 17:01:36.050 Blog da Gente[12413:193709] ERROR: Plugin 'File' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2016-04-09 17:01:36.050 Blog da Gente[12413:193709] ERROR: Plugin 'Device' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2016-04-09 17:01:36.051 Blog da Gente[12413:193709] ERROR: Plugin 'NetworkStatus' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.

Em 9 de abr de 2016, à(s) 12:43, Tairone Brito<EMAIL_ADDRESS>escreveu:
Hello bro, how are you? I’m here again hehe
Last question, i promise.
Everything is working now, but when i send the app for apple store it is reject by getting a white screen when you use it in TestFlight.
In xcode when i building with my iPhone it’s working normal, but in TestFlight it’s not working.
Am I doing something wrong?
Very Thanks!


Design Upate

Update the user interface (UI) with the following three color combinations:

Brown: #BEB7A4
Black: #000000
White: #FFFFFC

done under the pr #14


SimpleCompiler.isSureFireBooter() returns false during tests

The surefire jar for me is called surefire-booter and not surefirebooter.

@timowest I am checking now, it might have been a false alarm, but I'll get back to you later.

It was indeed a false alarm, closing this.


problem with get Chinses character content.

Hello guys, just got a character problem.
and I stil think the problem is charaset with PAWN and not a MySQL falut.
in my Mysql table, there is a row named "userName" and saving string.
my filed is just like "金正恩"   (some Chinese characters just like "Kim jong un")
    cache_get_field_content(0, "userName", userName, 1, MAX_CHINSES_NAME);
    printf("%s", userName);

it should print  "金正恩"
but it output "?????"
Who can explain that problem or just give me a referance?
Thank you.

You need to set the correct character set via mysql_set_charset.
Apart from that, you'll need to enable support for your locale in your OS of course.


[Document] Refactor and remove source oneCCL

closes https://github.com/intel/llm-on-ray/issues/28

Issue#28

you can say closes #28 in the above comment then github will link the pr to the issue

Issue#28

you can say "closes #28" in the above comment then github will link the pr to the issue

Updated.

Gentle ping @xwu99 for review, thanks!


add way to expend the param to the description

will make it easier to understand what param caused the test to fail

It would be great if we have this feature implemented ASAP.

+1

In the meanwhile you can do something like this:
const values = [
    {param: 1, result: false},
    {param: 2, result: false},
    {param: 3, result: true},
    {param: 4, result: true},
];

itParam('My test are: ', values, (value) => {
    console.log(value);
    expect(value.param > 2).to.equal(value.result);
});

I submitted a pull request to address this problem, please see https://github.com/mikejsdev/mocha-param/pull/4.

This has beed added in version 2.0.0 which has now been published to npm!


Added support for creating PHP files with auto namespace discovery

The auto namespace discovery will look inside your composer.json and tries to find the correct namespace with autoload->psr-4. Even if you are wanna make a PHP file inside a tests directory it will look inside the your autoload-dev->psr-4 .
I have also added support for making folders when the path begins with a / and is not ending with one Or when a path is not beginning and ending with a / and it has not an extension at the end it will also work.

Thanks for taking the time to make a PR, this looks like a nice feature. However, since most FileManager users don't necessarily use PHP, I think this should be its own package (which would depend on FileManger).


Something bad when creating .tflite file

Hi,
I spend whole weekend trying to train simple 0-9 captcha solver, but I think I got stuck on the last step. I already passed test with high success, but final .tflite model does not work properly. Can you please help a little?
Steps to reproduce:
git clone git@github.com:JanPalasek/ulozto-captcha-breaker.git
cd ulozto-captcha-breaker
python -m venv "venv"
source venv/bin/activate
python -m pip install --upgrade pip
python -m pip install --upgrade wheel setuptools pip-tools
python -m piptools sync
python -m pip install -e .

python bin/simple_captcha_generate.py --height=70 --width=175 --available_chars="0123456789" --captcha_length=4 --dataset_size=10000
python bin/captcha_annotate.py --val_split=0.1 --test_split=0.1

python bin/train.py --available_chars="0123456789" --captcha_length=4

In this moment, I stopped script after a while, 7th epoch had val_all_correct_acc: 0.9453, so for testing purposes enough.
Then I ran test.py:
python bin/test.py --available_chars="0123456789" --captcha_length=4 --weights_file=/home/manas/Projects/2.Other/ulozto-captcha-breaker/out/logs/train.py-2023-09-10_163320-ac=0123456789,bs=32,cl=4,e=1500,fl=0,l=1e-05,od=out,pm=None,rl=False,smp=None,s=42,tih=None,tiw=None,wf=None/cp-07.h5

with result :
32/32 [==============================] - 2s 40ms/step
Test acc: 0.92

And .csv file with results, 92% succesfully as written. After that I have model folder in out directory. I did:
python bin/create_tflite.py --pretrained_model=out/model

with output to terminal (I dont know if it is useful):
2023-09-11 18:07:01.736468: W tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc:362] Ignored output_format.
2023-09-11 18:07:01.736497: W tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc:365] Ignored drop_control_dependency.
2023-09-11 18:07:01.737129: I tensorflow/cc/saved_model/reader.cc:45] Reading SavedModel from: out/model
2023-09-11 18:07:01.753180: I tensorflow/cc/saved_model/reader.cc:89] Reading meta graph with tags { serve }
2023-09-11 18:07:01.753227: I tensorflow/cc/saved_model/reader.cc:130] Reading SavedModel debug info (if present) from: out/model
2023-09-11 18:07:01.785731: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:354] MLIR V1 optimization pass is not enabled
2023-09-11 18:07:01.796363: I tensorflow/cc/saved_model/loader.cc:229] Restoring SavedModel bundle.
2023-09-11 18:07:01.967260: I tensorflow/cc/saved_model/loader.cc:213] Running initialization op on SavedModel bundle at path: out/model
2023-09-11 18:07:02.019981: I tensorflow/cc/saved_model/loader.cc:305] SavedModel load for tags { serve }; Status: success: OK. Took 282855 microseconds.
2023-09-11 18:07:02.140917: I tensorflow/compiler/mlir/tensorflow/utils/dump_mlir_util.cc:268] disabling MLIR crash reproducer, set env var `MLIR_CRASH_REPRODUCER_DIRECTORY` to enable.

After this, model.tflite was created in out directory. I copied randomly a few images from data directory to base directory, renamed them test1.jpg - test5.jpg (which are: 0336, 3185, 7881,  8388, 9977)  and then tried that .tflite model:
python bin/predict.py --model_path=out/model.tflite --available_chars="0123456789" --image_path=test1.png
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
Decoded label is the following:
1117

python bin/predict.py --model_path=out/model.tflite --available_chars="0123456789" --image_path=test2.png
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
Decoded label is the following:
1197

python bin/predict.py --model_path=out/model.tflite --available_chars="0123456789" --image_path=test3.png
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
Decoded label is the following:
1147

python bin/predict.py --model_path=out/model.tflite --available_chars="0123456789" --image_path=test4.png
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
Decoded label is the following:
1147

python bin/predict.py --model_path=out/model.tflite --available_chars="0123456789" --image_path=test5.png
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
Decoded label is the following:
1147

So this seems I do something wrong when I try to create .tflite file, can you please little help?

@jdvorak23 Sorry for the long response :-(. I found the bug: when using predict, image was loaded in a different way than when using test and train. I'll post a fix soon.


Having a bower.json listing all (js) dependencies in a cohesive way ?

Would you be interested in having a bower.json with all dependencies currently used for the frontend code (angular, jquery-ui, etc etc.), potentially smoothing any futur upgrade of some of them ???

Yes, that would be fantastic.  Especially, if they could be automatically minified and put into respond.libs.min.js.  I have been meaning to do that, but I have been working on some other stuff.

If you decide to build it, please submit the PR to the dev branch. Thanks!


502 Bad Gateway Error when Deploying Edge Function

Bug report
Describe the bug
When deploying any of my Supabase Edge Functions, I now receive a 502 error on invoke along with no logs being generated in the Supabase web GUI.
This bug was first noticed when re-deploying a function to change two string literals. However, I was able to reproduce it with edge functions that were not changed at all.
To Reproduce

Deploy Edge Function to Supabase.
Invoke Edge Function either via Node Library or cURL
Get error 502: Bad Gateway (DEPLOYMENT_FAILED)

Expected behavior
I expect to receive my function output. Instead, I receive a 502 error.
System information

OS: macOS
Version of supabase-js: 0.26.1
Version of Node.js: 8.2.0

Additional context
I was successfully using Supabase Edge Functions to integrate with the Stripe API until two days ago. Then, randomly on a re-deploy of my function, I began encountering this error. I have tried reinitializing the Supabase CLI, relinking to my project, re-deploying, deleting the functions, and reverting the Edge Functions back to previous known working versions. All result in 502 error.
I've seen similar Issues in this repo where it was reported to be a script size / memory limit, but I do not see why this would be relevant if I am redeploying the same code.
Can provide any additional information / context required.

Thanks for transferring that, wasn’t quite sure where to leave it.
Project Slug is mhjgqqffbeagyjshgcnr

@kiwicopple Any updates on this? I am still getting 502 errors when deploying my functions via the supabase CLI

Hi, I'm on @RoastedPecans' team trying to get this resolved as well. Having used Deno Deploy before, my guess is the error is coming directly from Deno but Supabase isn't passing along the error message resulting in an arbitrary 502 error.

Can you try wrapping the function body in try/catch and logging the errors? We also have an issue with console.error logs not showing on the dashboard right now, but you can use console.log etc.

Looks like there is an error with Stripe and Deno at the moment. Lets continue the discussion here


⚠ Bofrost.at has degraded performance

In 881071f, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1906 ms

Resolved: Bofrost.at performance has improved in ac0128e after 13 minutes.


Bounded Society

This PR adds bounds to the Society Pallet.
polkadot companion: https://github.com/paritytech/polkadot/pull/2939

/benchmark runtime pallet pallet_society

/cla run-cla-check

low priority, but should be pushed to completion soon.

I feel like the society pallet should be migrated to FRAMEv2 first before we can finish the job, especially when it comes to generate_storage_info.


Report indexing errors from local embeddings failures

If errors arise in local embeddings, symf, etc. how should we surface them?

A standard VS Code error notification (which would have a "Retry" primary & "Help & Support" secondary button), and this perhaps? https://www.figma.com/file/jEsnzgsf0hNuJbqB9pKaGm/VS-Code---Cody---Commands-up-fron[…]ype=design&node-id=1057-31245&mode=design&t=5iru0FZ8A0RiJCf2-4
When indexes complete, make the statusbar disappear and post a standard VS Code information notification (which also auto-dismisses after 30 seconds by default thx VS Code) that has a "Open Chat" button (last active chat?) with the enhanced context popover open.

We are now reporting these since #2265


Deploy error from Travis. Source repository URL is invalid  does not match the expected pattern

So my .travis.yml build usually deploys happily. But after returning to the project after a few months I am finding that I am getting the below error. Looks at the gcloud docs seems to suggest other formats for source repository builds, but I have tried these and have gotten the same error. Please help!
I can manually trigger the build using the UI!
Restarting command:
  $ gcloud --quiet beta functions deploy SpaceXFulfillment --source-url https://source.developers.google.com/p/r-spacex-ai/r/r-SpaceX-AI-google-source-repo --source-path / --trigger-http
WARNING: The --source-url flag is deprecated; use --source instead.
WARNING: The --source-path flag is deprecated; use --source instead.
ERROR: (gcloud.beta.functions.deploy) ResponseError: status=[400], code=[Bad Request], message=[The request has errors
Problems:
Source repository URL is invalid https://source.developers.google.com/p/r-spacex-ai/r/r-SpaceX-AI-google-source-repo/moveable-aliases/master// does not match the expected pattern

I have tried with several other formats!!
Environment details

OS: Ubuntu 14.04.5 LTS
Node.js version: 6.9.1
npm version: 3.10.8
@google-cloud/functions-emulator version:

Google Cloud SDK 180.0.0
bq 2.0.27
core 2017.11.10
gsutil 4.28

Steps to reproduce

https://travis-ci.org/HarvsG/r-SpaceX-AI-Bot/builds/304024024
interestingly if I manually fill in the repository box with the URL instead of just the repo name on the GUI build interface I get the same error. (It works if I just put the repo name).

Thanks!

Fixed by using the new command format as found here, although those docs are very confusing as I did not understand regex. So  I did the below changes. I have noticed it is /moveable-aliases/ for branches and /fixed-aliases/ for tag. So I made the below change to my .travis.yml file.
-      - gcloud --quiet beta functions deploy SpaceXFulfillment --source-url https://source.developers.google.com/p/r-spacex-ai/r/r-SpaceX-AI-google-source-repo --source-path / --source-branch master --trigger-http
+      - gcloud --quiet beta functions deploy SpaceXFulfillment --source https://source.developers.google.com/projects/r-spacex-ai/repos/r-SpaceX-AI-google-source-repo/moveable-aliases/master --trigger-http


chore: enable pipeline build on node 20

Issue
Pipeline build does not run for node version 20
Description
Enable pipeline builds on node 20.
Checklist for Pull Requests

[x] Supplied as many details as possible on this change
[x] Included the link to the associated issue in the Issue section above
[x] The code conforms to the general development guidelines.
[x] The code has unit tests where applicable and is easily unit-testable
[x] This branch is appropriately named for the associated issue

I see a lot of changes from my previous branch which are now in main here as "new changes". are you sure this is up to date from main?

@oliversberzs, merged the latest main branch, now it shows the one change again.


GNOME + Calamares

update nixpkgs and remove KDE
move graphical options into separate file
flake.lock: update RedNix
remove kde files
change xfce to gnome
GTK colors: remove _breeze

Is there any reason why, you'd change to GNOME precisely and not any other WM ? Why not let the user decide, but I'm not sure if it's that easy, there would be the need to provide a configuration for many WM

@unrooted was complaining that KDE is too slow. We still wanted to use Wayland, without using some WM unfamiliar to a majority of users. So we chose GNOME, as it runs decently on relatively new hardware (last 10 years).
Anyone wanting to use something else can either edit these configs or install using Calamares.

Install using Calamares allows you to choose a specific WM ?

Yes.

@AkechiShiro that's a very good question why one would pick specifically Gnome as their DE over anything else
upon very lively discussions with a few current users, who use RednixOS on mainly VMs, as well as @fufexan, the good switch would be to utilize anything using Wayland in order to minimize, if not fully eliminate infamous X11 tearing effects
as of right now there are 2 properly working DEs for NixOS, which can run using Wayland, and those are either KDE or Gnome, and after a few checks on VMs it seems that Gnome is working a bit smoother
you may ask why not to just go with pure WM without DE, the reason is that it would require users to learn most likely totally new WM, at which point they could just go and do changes themselves, instead of leaving them in unfamiliar environment
that's also where Calamares comes into play, as it provides an option to pick your own DE/WM as well makes install process somewhat easier for less experienced users
what is more, approach presented by @fufexan also cleans up the repo significantally and handles configurations in way more elegant way
feel free to ask us any other questions in case those arise, good to see you still being interested in this project's development, it warms my heart


Getting Unreachable browser exception after a while when I am running the TestNG tests. OS : MAC

I am running my tests in MAC as well as in Windows. In windows, the code works like a charm. In MAC OSX, I run the same code and it will be working fine BUT after a while I get unreachable browser exception.
I am running my test through maven surefire plugin.
maven version : 3.3.9
surefire plugin : 2.19.1
testng version : 6.9.10
java.version: 1.8.0_77
Here is my stacktrace
UnreachableBrowserException: Error communicating with the remote browser. It may have died.
Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
System info: host: 'Hemanths-MacBook-Pro.local', ip: '<IP_ADDRESS>', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.4', java.version: '1.8.0_77'
Driver info: driver.version: RemoteWebDriver
Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, chrome={userDataDir=/var/folders/cd/vbgjmfqj67s2_7lxl03xm5wc0000gn/T/.org.chromium.Chromium.uH5fCE}, takesHeapSnapshot=true, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=50.0.2661.94, platform=MAC, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}]
Session ID: 900637934c566c1fb4ddc890c4eaaa10
org.openqa.selenium.remote.UnreachableBrowserException: Error communicating with the remote browser. It may have died.
Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
System info: host: 'Hemanths-MacBook-Pro.local', ip: '<IP_ADDRESS>', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.4', java.version: '1.8.0_77'
Driver info: driver.version: RemoteWebDriver
Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, chrome={userDataDir=/var/folders/cd/vbgjmfqj67s2_7lxl03xm5wc0000gn/T/.org.chromium.Chromium.uH5fCE}, takesHeapSnapshot=true, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=50.0.2661.94, platform=MAC, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}]
Session ID: 900637934c566c1fb4ddc890c4eaaa10
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:665)
    at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:363)
    at org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:500)
    at org.openqa.selenium.By$ByXPath.findElement(By.java:361)
    at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:355)
    at org.openqa.selenium.support.pagefactory.DefaultElementLocator.findElement(DefaultElementLocator.java:69)
    at org.openqa.selenium.support.pagefactory.internal.LocatingElementHandler.invoke(LocatingElementHandler.java:38)
    at com.sun.proxy.$Proxy16.isDisplayed(Unknown Source)
    at org.openqa.selenium.support.ui.ExpectedConditions.elementIfVisible(ExpectedConditions.java:302)
    at org.openqa.selenium.support.ui.ExpectedConditions.access$100(ExpectedConditions.java:41)
    at org.openqa.selenium.support.ui.ExpectedConditions$10.apply(ExpectedConditions.java:288)
    at org.openqa.selenium.support.ui.ExpectedConditions$10.apply(ExpectedConditions.java:285)
    at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:238)
    at org.etna.utils.Waiting.explicitWaitVisibilityOfElement(Waiting.java:36)
    at org.etna.customer.pageobjects.HomePageObjects.waitForProfileDropdownLink(HomePageObjects.java:508)
    at org.etna.modules.LoginModuleTest.TC_Login_009_010_RememberPassword_UserNameAndPasswordRefill(LoginModuleTest.java:115)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:86)
    at org.testng.internal.MethodInvocationHelper$1.runTestMethod(MethodInvocationHelper.java:197)
    at org.etna.maincontroller.MainController.run(MainController.java:208)
    at org.testng.internal.MethodInvocationHelper.invokeHookable(MethodInvocationHelper.java:209)
    at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
    at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:820)
    at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1128)
    at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:129)
    at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:112)
    at org.testng.TestRunner.privateRun(TestRunner.java:782)
    at org.testng.TestRunner.run(TestRunner.java:632)
    at org.testng.SuiteRunner.runTest(SuiteRunner.java:366)
    at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:361)
    at org.testng.SuiteRunner.privateRun(SuiteRunner.java:319)
    at org.testng.SuiteRunner.run(SuiteRunner.java:268)
    at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
    at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
    at org.testng.TestNG.runSuitesSequentially(TestNG.java:1244)
    at org.testng.TestNG.runSuitesLocally(TestNG.java:1169)
    at org.testng.TestNG.run(TestNG.java:1064)
    at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:281)
    at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75)
    at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:121)
    at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
    at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
Caused by: org.openqa.selenium.WebDriverException: java.net.SocketException: Bad file descriptor
Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
System info: host: 'Hemanths-MacBook-Pro.local', ip: '<IP_ADDRESS>', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.4', java.version: '1.8.0_77'
Driver info: driver.version: RemoteWebDriver
    at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:91)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:644)
    ... 45 more
Caused by: java.net.SocketException: Bad file descriptor
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:153)
    at org.apache.http.impl.conn.LoggingOutputStream.write(LoggingOutputStream.java:77)
    at org.apache.http.impl.io.SessionOutputBufferImpl.streamWrite(SessionOutputBufferImpl.java:126)
    at org.apache.http.impl.io.SessionOutputBufferImpl.flushBuffer(SessionOutputBufferImpl.java:138)
    at org.apache.http.impl.io.SessionOutputBufferImpl.flush(SessionOutputBufferImpl.java:146)
    at org.apache.http.impl.io.ContentLengthOutputStream.flush(ContentLengthOutputStream.java:101)
    at org.apache.http.entity.ByteArrayEntity.writeTo(ByteArrayEntity.java:117)
    at org.apache.http.impl.DefaultBHttpClientConnection.sendRequestEntity(DefaultBHttpClientConnection.java:158)
    at org.apache.http.impl.conn.CPoolProxy.sendRequestEntity(CPoolProxy.java:162)
    at org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:237)
    at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:122)
    at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:271)
    at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
    at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
    at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:71)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
    at org.openqa.selenium.remote.internal.ApacheHttpClient.fallBackExecute(ApacheHttpClient.java:144)
    at org.openqa.selenium.remote.internal.ApacheHttpClient.execute(ApacheHttpClient.java:90)
    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)
    at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)

PFB  my TestNG.xml file
<suite name="Etna Automation Suite">
    <listeners>
            <listener class-name="org.etna.maincontroller.MainController"/>
            <listener class-name="org.etna.utils.ReportGenerator"/>
    </listeners>
  <test name="End to End Testing">
    <groups>
    <run>
    <include name="regression"/>
    </run>
    </groups>

    <classes>
      <class name="org.etna.modules.ShopByBrandsModuleTest"/>
      <class name="org.etna.modules.GeneralSearchModuleTest"/>
      <class name="org.etna.modules.PDPModuleTest"/>
      <class name="org.etna.modules.ShopByManufacturersModuleTest"/>
      <class name="org.etna.modules.LoginModuleTest"/>
      <class name="org.etna.modules.MyCartModuleTest"/>
      <class name="org.etna.modules.CategoryModuleTest"/>
      <class name="org.etna.modules.HomePageModuleTest"/>
      <class name="org.etna.modules.APAModuleTest"/>
    </classes>
  </test>
</suite>

*Each class contains atleast 20 test cases each.   OSX version : 10.11.4 . I hope I can get a fix for this.
Also, Right clicking the testng.xml and clicking on run as testng suite IS WORKING FINE.

This has nothing to do with TestNG, file an issue with chrome webdriver: https://bugs.chromium.org/p/chromedriver/issues/list

I don't know if the problem comes from Chrome, but you should ask it on selenium project before here ;)
Feel free to reopen the issue when you will have more detail on a testng issue.

He already did file a bug report with selenium https://github.com/SeleniumHQ/selenium/issues/2049

@Mobrockers  Thank you. :) . I really don't think this is a chromedriver issue because it is not working in firefoxdriver and safari too. The execution simply stops.
@juherr  I wish I had more info :). I have raised it to https://issues.apache.org/jira/browse/SUREFIRE-1245 . Can you please add if you have any inputs on what the developer has replied in the comments section ?

Ok thank, I will try to follow the discussion you have with @Tibor17
The best thing you can do is find a way to reproduce the issue in a project you can share. It will be easier to find where is the problem and how to fiw it.

Perhaps your issue is related to
https://somethingididnotknow.wordpress.com/2014/07/23/forkedbooter-steals-window-focus-on-mac-os-while-maven-is-running/
On Tue, May 10, 2016, 16:52 Hemanth Sridhar<EMAIL_ADDRESS>wrote:

@Mobrockers https://github.com/Mobrockers Thank you. :) . I really
don't think this is a chromedriver issue because it is not working in
firefoxdriver and safari too. The execution simply stops.
@juherr https://github.com/juherr I wish I had more info :). I have
raised it to https://issues.apache.org/jira/browse/SUREFIRE-1245 . Can
you please add if you have any inputs on what the developer has replied in
the comments section ?
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/cbeust/testng/issues/1040#issuecomment-218182388

@hemanthsridhar If the issue is maven related, could you try to run your tests in Windows from your IDE?

@juherr  If you see the first thing that I have mentioned issue, you will get the answer. It is working absolutely fine using windows.

@Mobrockers seems like a long shot. Will try it though.

Yes, sorry. I wanted to say osx.
The goal is to determine between all layers which one is failing.
If the tests are working well from the ide without maven, we will be able to exclude it from the list of suspects.

@juherr No issues :). Anyways, you want me right click and run as testng suite from the IDE?

@juherr  I checked it from the IDE. receiving unreachable browser exception again.

@juherr I ran from testng.xml but it worked fine on that particular day. I really don't know what is going on here now. :(

@juherr  for proof.

Are you not opening too many concurrent browser sessions, grinding your
system to a stop, causing selenium to lose connection to the browser?
On Tue, May 10, 2016, 21:55 Hemanth Sridhar<EMAIL_ADDRESS>wrote:

@juherr https://github.com/juherr for proof.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/cbeust/testng/issues/1040#issuecomment-218271901

I am not doing anything of that sort. It is just a simple execution of test cases.(Like I told you, working like a charm in Windows).@Mobrockers

@Mobrockers  Please see my testng.xml that I have given in the issue.

I was assuming that when you say running on osx you also mean a different
machine. A different machine could mean different hardware limitations
that's why I'm asking. Starting a browser instance is not cheap, but should
not matter unless running tests concurrent. Which is when it adds up. It's
kind of hard to read a pomfile in a github issue on mobile, was easier to
just ask you.
On Tue, May 10, 2016, 22:04 Hemanth Sridhar<EMAIL_ADDRESS>wrote:

I am not doing anything of that sort. It is just a simple execution of
test cases.(Like I told you, working like a charm in Windows).@Mobrockers
https://github.com/Mobrockers
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/cbeust/testng/issues/1040#issuecomment-218274287

@Mobrockers Alright. Did not know that. Ask me anything, I will reply again. Just want this issue to get fixed. If you guys want I can drop a screenshot that it is working fine in windows

check the os.name in every screenshot.

Ok, so if I understand well, now you reproduce the issue with eclipse on Windows too?

The windows screenshot is showing a different error message it seems like.

True, but it is not the same test. Difficult to conclude something.
And on the OSX one, I read "Bad File descriptor".
Definitely, I think the solution will come from the selenium community.

@juherr The error shown in his windows screenshot looks like a selenium TimeoutException on finding an element on the page, as in a normal exception that one would expect while running a selenium test.
Perhaps the screenshot is to show us that it is working fine on windows, not that he can reproduce the same issue on windows.

@Mobrockers You are absolutely right. I wanted to show that the suite executed completely in windows and not in MAC.
@juherr  Hope you got whatever I was trying to intend. And yes, I replicated the same again in windows as well as MAC using the testng.xml inside the IDE(eclipse).

@juherr  If you want I can share the screenshot for the same test case. It is the same suite. In Windows it executed completely. In MAC it stopped. Kindly reply back if you want the screenshot.

@hemanthsridhar It is still a bit confure for me.
No need to have screenshots, but could you just run only 1 test from your suite which is supposed to run well in some cases and fails in some other cases?
I see 4 tests:

windows + maven
windows + eclipse
osx + maven
osx + eclipse

I had a deeper look at your stracktrace and the root issue is:

Caused by: java.net.SocketException: Bad file descriptor
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)
at java.net.SocketOutputStream.write(SocketOutputStream.java:153)

As it is native code, it is not a huge surprise to see some differences between different os.
I found a similar stacktrace somewhere else: https://bugzilla.zimbra.com/show_bug.cgi?id=42870
I suppose osx is more strict than windows... (without surprise)

One thing I would like to see is this same error with a browser that is not
chrome. Because I still think this is an issue with chromedriver
specifically.
On Wed, May 11, 2016, 17:36 Julien Herr<EMAIL_ADDRESS>wrote:

@hemanthsridhar https://github.com/hemanthsridhar It is still a bit
confure for me.
No need to have screenshots, but could you just run only 1 test from your
suite which is supposed to run well in some cases and fails in some other
cases?
I see 4 tests:

windows + maven
windows + eclipse
osx + maven
osx + eclipse

I had a deeper look at your stracktrace and the root issue is:
Caused by: java.net.SocketException: Bad file descriptor
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)
at java.net.SocketOutputStream.write(SocketOutputStream.java:153)
As it is native code, it is not a huge surprise to see some differences
between different os.
I found a similar stacktrace somewhere else:
https://bugzilla.zimbra.com/show_bug.cgi?id=42870
I suppose osx is more strict than windows... (without surprise)
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/cbeust/testng/issues/1040#issuecomment-218497867

@juherr
windows + maven - Working perfectly.
windows + eclipse - Working perfectly.
osx + maven - Getting error.
osx + eclipse - Getting error.
Will send the screenshot for the one which failed in MAC and which passed in Windows.
@Mobrockers  Will try to generate in a different browser by tonight(IST) and will send.

@juherr  then the issue is related to?

For me, it is an osx limitation with its default resources configuration.
But as @Mobrockers proposed, you should try with another selenium driver.

Will try with firefox and get back to you guys.

@Mobrockers It is so weird. I ran my test through Firefoxdriver today and it is working perfectly. The other day I did the same and it didn't work. If I face the same I will get back to you guys.
@Mobrockers and @juherr Can you guys please do me a favour? Can you please ask the selenium developer to open the bug again? I had asked him to open it but he didn't. He felt that it was a tutorial.
Thank you so much for your help guys. Please close this issue.
PS : Will get back to the same bug if I face the same using Firefox.(which I did).

Bug raised : https://github.com/cbeust/testng/issues/1040

Bug raised : https://bugs.chromium.org/p/chromedriver/issues/detail?id=1376

Occurring for firefox now. Please open this issue if required and get this resolved if it is from your end.

As I think it is more a Selenium issue than a TestNG one, I propose you try to find help on its mailing list: https://groups.google.com/forum/#!forum/selenium-users

Since no one else seems to be reporting this particular bug, and you manage to reproduce it consistently across browsers but not systems, I would rather say it's got something to do with your particular hardware + software setup. Have you tried running your testsuite on someone else's mac? In any case like @juherr said you should probably ask in the selenium users group.

@Mobrockers I am using allure reports which is dependent on surefire. Anyways, you are right, I will try to set up in someone else's MAC and see whether it works. Will get back to you guys.

Can I share you guys my repo so that you guys can clone it and check please? This is really important. It would mean alot if you guys helped me with this. I really don't see any issue in configuration. Can you guys please check?

I do not have a mac, sorry.

okay. thank you.

@juherr can you help me with this please?

@juherr https://groups.google.com/forum/#!searchin/selenium-users/unreachable/selenium-users/Hp7MenNlIDU/UBGiTHZlBAAJ
I had done this long back. No one replied though.

@Mobrockers does any problem occur if we delete test-output folder? No right? Because I started getting this issue once I deleted that folder and pushed the code to bitbucket.

https://bitbucket.org/hemanthsridhar/etna if you can help.

I don't see how that could have an effect on selenium, no. Sorry
On Thu, May 19, 2016, 20:46 Hemanth Sridhar<EMAIL_ADDRESS>wrote:

@Mobrockers https://github.com/Mobrockers does any problem occur if we
delete test-output folder? No right? Because I started getting this
issue(firefox) once I deleted that folder and pushed the code to bitbucket.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/cbeust/testng/issues/1040#issuecomment-220415774

Nothing in your configuration or source code stands out to me.

@juherr can you help me with this please?

No, I have no mac :/

@juherr the bug I raised to the  chromedriver guy has a mac. He has my tests, he got the same issue. He's not bothered I guess because it is occurring for Firefox as well. Don't know what is going on.

@hemanthsridhar I just ran your tests and am getting the same error. Were you able to find some sort of pattern in when the exception is thrown. I've been trying and it seems completely random when I run multiple tests. I've changed the order and modules that it runs with no result. However, when I run individual modules they all seem to work.

@remcowesterhoud
You're spot on. No pattern. Occurs randomly. Thank you so much for doing it though.

Any update  on this?

@hemanthsridhar did you ever find a solution for this .Im having the same issue on my mac.

Issue remains same , is suggestion handle the issue ?

@SelvamaniD - This issue has got nothing to do with TestNG. I think you should be posting on the selenium-users forums.

@SelvamaniD @krmahadevan is right. This has nothing to do with TestNG.
The issue was with jdk for Mac.
Problem : I had used alot of statics
Solution : Converted into Objects. Worked like a charm.
Hope it helps.


Test PR H - Orange is the new black

This is a dummy PR as part of testing https://github.com/Expensify/Expensify.cash/pull/3216. It will soon be reverted.
QA Steps
Verify that this PR has been reverted. There should be no orange in the app. You'll definitely notice if it hasn't been reverted.

:warning: :warning: Heads up! This pull request has the CP Staging label. :warning: :warning:
Merging it will cause it to be immediately deployed to staging, even if the open StagingDeployCash deploy checklist is locked.

Skipping tests to test CP flow

🚀 Deployed to staging in version: 1.0.61-8🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

🚀 Deployed to production in version: 1.0.62-0🚀

platform
result

🤖 android 🤖
failure ❌

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅


More settings.

To be more clear, i would be really happy to see speed/carry bonus/weight settings for each level, not for backpack overall.
And speed setting being relative to how many weight backpack actually have, but that seems way too complex to code imo.
Besides that - any way to remove some of backpacks entirely(making them a separate files or something like that maybe?).
But thats my obsessive compulsive disorder speaking - i just really dont like some of models(atm solved that by removing ability to craft for ones i dont like/editing player data and clear recipe data from it).
Thats all i can think of. Thanks for keeping this alive.

Would love to see a property added to the bags that can limit what is put in them. Perhaps a comma delimited list of prefab names?
In addition, I'd like to see the "speed" be able to be a positive number. I realize it doesn't make much sense to go faster with a backpack, but in certain situations it could be interesting. For example, reducing the weight bonus of the Rugged Backpack, limiting the slots in it, limiting the items that could go into it, and adding a speed bonus to it might go along with being nimble and rogue-like.
Finally, As @cowsha already stated, thank you for keeping this project alive, it's an amazing mod that has added a great deal of fun for our group of players.

"i would be really happy to see speed/carry bonus/weight settings for each level, not for backpack overall."
Yeah, me too. I made the Lox pack, the BIG pack. I had to crank up the level 1 speed debuff to 70% just to get it to land at 18% by level 4. It seemed a bit counterintuitive to have the carry bonus auto-increase while the speed debuff auto-decreased.
I also noted that the weight reduction worked regardless if the backpack was worn or not. But, that may be a different thread. This is still the best backpack mod out there.


How does this work?!

Hi,
I have some question about how does this script work?
https://github.com/gkozlenko/node-media-server/issues/2 you say "Please ensure that your MP4 files have H.264/H.265 video codecs and AAC audio codecs.",
This makes me think that this script doesn't come with any kind of "encoding" like convert mkv/mp4 or change video/audio codec but all it does is "convert" mp4 videos to hls format which shouldn't take much resources to do i mean based on what way you do i'm talking about smth like
ffmpeg -i video.mp4 -codec copy -start_number 0 -hls_playlist_type vod -hls_time 3 -hls_list_size 0 -f hls play.m3u8

is this right?!
if that is what it does what happens if some user watches one video and after you generated .m3u8 for that video? do you save the hls files/m3u8 which was generated from first view and provide them to some other user or do you generate a new m3u8/hls i mean converting video everytime a new user tries to open and watch the same video?!

Hi,
You are right, this media server doesn't do any encoding, it just generates .ts and .m3u8 files for viewers. It does it on the fly - without caching for new viewers. It only caches some metadata to parse MP4 files faster.
The media server doesn't use the ffmpeg binaries - everything is written in JavaScript.
Thank you.

@gkozlenko thanks for info adding cache will be better ofcourse for production usage
i'm closing this since i have no issue just asking


Expose the list of supported versions from the API

For the list of versions introduced in #346, let's investigate if it is useful to also expose this from the public API?
For example language.get_supported_versions().

Will look into this next, since it is impacting integrations.


[FEAT]: Generic LLM provider preference

What would you like to see?
I'd like to be able to create "generic" LLM providers.  So, for example, Azure recently introduced pay as you go endpoints for other models where it's basically just a URL + API key with no other configuration bits.

This is the Generic OpenAI provider that we already support. Includes this exact kind of configuration and set up

Hi @timothycarambat. Thanks for the quick reply. The problem with the Generic OpenAI provider appears to be that it requires a model name. What if the endpoint does not accept the model name?

You can just put anything, beccause then your API will probably just ignore it or drop it, like how LMStudio does