Can't play the offline demo.

We appreciate you go through Apollo documentations and search previous issues before creating an new one. If neither of the sources helped you with your issues, please report the issue using the following form. Please note missing info can delay the response time.
System information

OS Platform and Distribution (e.g., Linux Ubuntu 14.04): Linux Ubuntu 14.04
Apollo installed from (source or binary): source
Apollo version (1.0, 1.5, 2.0, 2.5, 3.0): Offline demo

Steps to reproduce the issue:

Please use bullet points and include as much details as possible: I tried to run demo of the Apollo. I installed apollo and apollo-kernel.  But I tried to run demo in code by bash scripts/bootstrap.sh, the program said

nohup: appending output to 'nohup.out'
Could not launch module monitor. Is it already built?
nohup: appending output to 'nohup.out'
Launched module dreamview.
Failed to start Dreamview. Please check /apollo/data/log or /apollo/data/core for more information

Supporting materials (screenshots, command lines, code/script snippets):
I tried in this.

bash docker/scripts/dev_start.sh

fetch: Fetching reference refs/heads/master
[INFO] Start pulling docker image apolloauto/apollo:dev-x86_64-20181210_1500 ...
dev-x86_64-20181210_1500: Pulling from apolloauto/apollo
Digest: sha256:283773f0c1ee31e7615db642f0973a6d443453e335355ca0ac0030d56d2b69f4
Status: Image is up to date for apolloauto/apollo:dev-x86_64-20181210_1500
map_volume-sunnyvale_big_loop-latest: Pulling from apolloauto/apollo
Digest: sha256:4bd59bffdf105c52b11a5663a6342d9f70d42d5f1beb9dc7ae68884ae5ea32fd
Status: Image is up to date for apolloauto/apollo:map_volume-sunnyvale_big_loop-latest
a8ba14e22cd30e3b427a0bc522127d0bb217edb24c0d40dc7d22665774243763
map_volume-sunnyvale_loop-latest: Pulling from apolloauto/apollo
Digest: sha256:1337ca5d357f33318e38368b6218d343f6138c63a9bb491175ca7cdd39c1a789
Status: Image is up to date for apolloauto/apollo:map_volume-sunnyvale_loop-latest
025926d690ea73bbfbba4a1b7fa7a92c0c607ccc007ed642ff487b161898915b
localization_volume-x86_64-latest: Pulling from apolloauto/apollo
Digest: sha256:94af1ac560730db7daf192ebf7b091f88059e62e425ceccd6375fbf4578e7f3f
Status: Image is up to date for apolloauto/apollo:localization_volume-x86_64-latest
7ec1fef1217d441704f5faf16a2b0660369188489fcf305f7e49684a5fcdba5e
yolo3d_volume-x86_64-latest: Pulling from apolloauto/apollo
Digest: sha256:33add717a675be26c86f817d2207c1ab1ec25694f0decb63e55f0fc3d14b1397
Status: Image is up to date for apolloauto/apollo:yolo3d_volume-x86_64-latest
fd16d449f41686f50c61b8620daaa0ed2ab91fab75a37f9369572ffd32120345
[INFO] Starting docker container "apollo_dev_deepdrive" ...
5ea68a7f395120f383bb35d1798e54e04e3d9a37ed305bbbe5e39d5e9269e07c
Adding group deepdrive' (GID 1000) ... Done. Adding user deepdrive' ...
Adding new user deepdrive' (1000) with group deepdrive' ...
The home directory /home/deepdrive' already exists.  Not copying from /etc/skel'.
[ OK ] Finished setting up Apollo docker environment. Now you can enter with:
bash docker/scripts/dev_into.sh
[ OK ] Enjoy!

bash docker/scripts/dev_start.sh

./apollo.sh

Usage:
./apollo.sh [OPTION]
Options:
build: run build only
build_opt: build optimized binary for the code
build_cpu: dbg build with CPU
build_gpu: run build only with Caffe GPU mode support
build_opt_gpu: build optimized binary with Caffe GPU mode support
build_fe: compile frontend javascript code, this requires all the node_modules to be installed already
build_planning: compile planning and its dependencies.
build_control: compile control and its dependencies.
build_prediction: compile prediction and its dependencies.
build_pnc: compile pnc and its dependencies.
build_no_perception [dbg|opt]: run build, skip building perception module, useful when some perception dependencies are not satisified, e.g., CUDA, CUDNN, LIDAR, etc.
build_prof: build for gprof support.
buildify: fix style of BUILD files
check: run build/lint/test, please make sure it passes before checking in new code
clean: run Bazel clean
config: run configurator tool
coverage: generate test coverage report
doc: generate doxygen document
lint: run code style check
usage: print this menu
release: build release version
test: run all unit tests
version: display current commit and date

./apollo.sh clean

System check passed. Build continue ...
[WARNING] ESD CAN library supplied by ESD Electronics does not exist. If you need ESD CAN, please refer to third_party/can_card_library/esd_can/README.md.
INFO: Reading 'startup' options from /apollo/tools/bazel.rc: --batch_cpu_scheduling --host_jvm_args=-XX:-UseParallelGC
INFO: (01-04 13:53:05.026) Starting clean.
INFO: (01-04 13:53:05.034) Output tree moved to /home/deepdrive/.cache/bazel/_bazel_deepdrive/540135163923dd7d5820f3ee4b306b32/execroot_tmp_6234 for deletion

bash apollo.sh build

System check passed. Build continue ...

[WARNING] ESD CAN library supplied by ESD Electronics does not exist. If you need ESD CAN, please refer to third_party/can_card_library/esd_can/README.md.
Running build under GPU mode. GPU is required to run the build.
[INFO] Start building, please wait ...
INFO: Reading 'startup' options from /apollo/tools/bazel.rc: --batch_cpu_scheduling --host_jvm_args=-XX:-UseParallelGC
____Loading package: modules/common/configs/proto
____Loading package: modules/perception/camera/app
____Loading package: modules/dreamview
____Loading package: cyber/timer
____Loading package: cyber/io
[INFO] Building on x86_64...
[INFO] Building with --jobs=8 --ram_utilization_factor 80 for x86_64
INFO: Reading 'startup' options from /apollo/tools/bazel.rc: --batch_cpu_scheduling --host_jvm_args=-XX:-UseParallelGC
INFO: (01-04 14:37:58.360) Found 3211 targets...
INFO: (01-04 14:55:30.722) Elapsed time: 1056.567s, Critical Path: 233.21s
[ OK ] Build passed!
[INFO] Took 1060 seconds

And I opend http://localhost:8888. Selected "Navigation" mode.

Download demo_2.5.bag

rosbag play -l demo_2.5.bag

bash: rosbag: command not found

And I tried "source /home/tmp/ros/setup.bash"

the rosbag played

[ INFO] [1546616066.462483138]: Opening demo_2.5.bag
Waiting 0.2 seconds after advertising topics... done.
Hit space to toggle paused, or 's' to step.
[RUNNING]  Bag Time:<PHONE_NUMBER>.158651   Duration: 12.155525 / 19.995227

But there is no running in "http://localhost:8888".

I don't know where I did wrong.

You use the latest master branch that based on cyber, will not be compatible with the rosbag.  so you can wait for released record file for demo and play .

You use the latest master branch that based on cyber, will not be compatible with the rosbag. so you can wait for released record file for demo and play .

I have questions.

What is the difference with cyber and rosbag?

Then how can I run off-line demo?

In the form shown on the photo, is it impossible to route or do other work without attaching hardware?

Thanks.

Closing this issue as it appears to be resolved. Feel free to reopen if you have additional questions. Thanks!

Hello, I'm trying to launch the offline demo and following this guide:
https://github.com/ApolloAuto/apollo/tree/master/docs/demo_guide
The last line launches a record and everything seems ok but when I try to open UI in chrome I get nothing.

What do I do wrong?
Thanks.


conda virtualenv switcher

Before we go and implement a full package manager: https://github.com/twosigma/beaker-notebook/issues/4399
we could do something much simpler which would also be useful:
allow switching virtualenvs from the language manager.
running "conda info -e" should give a list of available envs.
They would be listed in a pop-up menu in the language manager,
and stored by name in the notebook.
empty would mean to use current env.
if you open a notebook and the env that it requests is not defined then you should get an warning, and it would revert to the default.

Here's a user story:
User installs beaker and installs conda.  User uses conda to create 2 environments:
conda create -n baz python=3 anaconda
conda create -n qux python=3 anaconda

they install various packages into each of these environments.  Then they start Beaker, create a new notebook and add Python3 to it with the language manager.
Python3 loads and in the panel that appears there's a popup menu with the names of these two environments in it, as well as the empty string, which is the default.  if a new environment is selected, then the kernel is restarted (similarly to how the other controls in the panel work) with the chosen environment.
when they evaluate code, the packages from the chosen environment are available.
the notebook is saved, beaker is closed.  they run beaker again, open the same noteobok, and the packages are once again available.


nvidia-docker error: "ldconfig failed with error code: 1: unknown"

Describe the bug
nvidia-docker fails to run any image.
$ sudo -g docker docker run --privileged --gpus all -it --rm hello-world
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running hook #0: error running hook: exit status 1, stdout: , stderr: nvidia-container-cli: ldcache error: process /nix/store/aaaa...-glibc-2.34-210-bin/bin/ldconfig failed with error code: 1: unknown.

Steps To Reproduce

Set virtualisation.docker = { enable = true; enableNvidia = true; } in system configuration.nix`
Rebuild and switch to new profile.
Ensure plain docker works by running
sudo -g docker docker run -it --rm hello-world
If not, you may need to set virtualisation.docker.storageDriver explicitly, depending on your filesystem setup.
Run sudo -g docker docker run --privileged --gpus all -it --rm hello-world

Expected behavior
For docker to run the hello-world container in privileged mode with host GPUs exposed.
Additional context
This appears to be at least partly an upstream bug, going by some issue reports I found.

"The newest version of nvidia-docker should resolve these issues with ldconfig not properly setting up the library search path on debian systems before a container gets launched."
Same comment as above, but on a different ticket
nvidia-container-cli: ldcache error: process /sbin/ldconfig.real failed with error code: 1: unknown #1616

I cannot tell whether the NixOS package/module simply needs to be updated, or whether there is NixOS-specific work that needs to be done in upstream.
Notify maintainers

@averelld (author of commit that added the virtualisation.docker.enableNvidia option)
@cpcloud (nvidia-docker maintainer)

Metadata
$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.39, NixOS, 22.05 (Quokka), 22.05.20220518.48037fd`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.8.1`
 - channels(aidan): `"nixpkgs-22.05pre378171.ff691ed9ba2"`
 - channels(root): `"nixos"`
 - nixpkgs: `/home/aidan/.nix-defexpr/channels/nixpkgs`

I have a similar issue, unsure if it's related; I'm using podman as well, but I can see it's related to UIDs and permissions and the ldcache error is similar, so I hope it might provide a hint.
I can run an nvidia container with the nvidia runtime:
$ podman run -it --rm --runtime nvidia docker.io/nvidia/cudagl:11.4.2-devel id
uid=0(root) gid=0(root) groups=0(root)

but I cannot do so if uids are mapped in a different way:
$ podman run -it --rm --runtime nvidia --uidmap 1000:0:1 --uidmap 0:1:1000 docker.io/nvidia/cudagl:11.4.2-devel id
Error: OCI runtime error: nvidia: time="2022-06-30T12:31:20+02:00" level=error msg="runc create failed: unable to start container process: error during container init: error running hook #0: error running hook: exit status 1, stdout: , stderr: nvidia-container-cli: ldcache error: process /nix/store/<hash>-glibc-2.34-210-bin/bin/ldconfig failed with error code: 1\n"

Regarding docker itself, I can also reproduce the error using the hello-world image:
sudo -g docker docker run --privileged --gpus all -it --rm hello-world
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running hook #0: error running hook: exit status 1, stdout: , stderr: nvidia-container-cli: ldcache error: process /nix/store/h0cnbmfcn93xm5dg2x27ixhag1cwndga-glibc-2.34-210-bin/bin/ldconfig failed with error code: 1: unknown.

but I can run nvidia-smi with docker by using the nvidia image instead
$ sudo -g docker docker run --privileged --gpus all -it --rm docker.io/nvidia/cudagl:11.4.2-devel nvidia-smi
Thu Jun 30 10:50:40 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.48.07    Driver Version: 515.48.07    CUDA Version: 11.7     |
|-------------------------------+----------------------+----------------------+

I hope it helps.
$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.49, NixOS, 22.05 (Quokka), 22.05.20220626.cd90e77`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.9.1`
 - channels(root): `"nixos-22.05"`
 - channels(akiross): `""`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Are there any workarounds to this?
I'm still getting this issue.
I can use the ubuntu NVIDIA containers, but I cannot run a nix docker container built with pkgs.dockerTools, even if the container is just bash.
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running hook #0: error running hook: exit status 1, stdout: , stderr: nvidia-container-cli: ldcache error: process /nix/store/lp8qrhb6hs42jwbapzq20l05jf4kyicq-glibc-2.35-224-bin/bin/ldconfig failed with error code: 1: unknown.

The only workaround I was able to do was using the NVIDIA ubuntu docker images as a base image.
        nvidiaUbuntuImage = pkgs.dockerTools.pullImage {
          imageName = "nvidia/cuda";
          imageDigest = "sha256:1d36277d7f886815b2548cc457e3d510006c0252359e9b28c92ed617f28edd72";
          sha256 = "sha256-jX1QspVF2XIpdth13TECICeJut53oDEMOvi2Z8ySo88=";
        };
      in
      {
        packages.devContainer = pkgs.dockerTools.buildLayeredImage {
          name = "transformers-dev";
          tag = "latest";
          fromImage = nvidiaUbuntuImage;
          contents = commonPackages ++ transformersDependencies ++ devDependencies;
          config = {
            Cmd = [ "/bin/bash" ];
            Env = [
              "LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu:${pkgs.ncurses}/lib:${pkgs.glibc}/lib:${pkgs.zlib}/lib:${pkgs.cudatoolkit}/lib64:${pkgs.cudatoolkit.lib}/lib:${pkgs.linuxPackages.nvidia_x11}/lib"
            ];
          };
        };
      }

This only applies if you're trying to access your gpu in the "old". With CDI, you should run your image with:
docker run --rm --device=nvidia.com/gpu=all -it image-name:latest bash

if you're using nixos, you can enable support for this with   hardware.nvidia-container-toolkit.enable = true;. You will no longer need   virtualisation.docker.enableNvidia = true;


⚠ Bofrost.be has degraded performance

In 257e26b, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 2013 ms

Resolved: Bofrost.be performance has improved in 6effe22.


Remove testing on power and z for ODLM

What this PR does / why we need it:
Since the ODLM testing requires the kubebuilder and there is no proper kubebuilder binary on power (no etcd binary) and Z environment, I create this PR to remove the testing on them.
/assign @morvencao
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Specify your PR reviewers:

/cc @gyliu513 @morvencao
Special notes for your reviewer:

Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

Release note:

/assign @chenzhiwei

/lgtm

/approve
You guys can also approve these PRs because your github IDs are in corresponding OWNER file: https://github.com/IBM/test-infra/blob/master/prow/cluster/jobs/IBM/operand-deployment-lifecycle-manager/OWNERS


A Faster Version even though with a bad clustering algorithm

I am not sure if the problem is with React or the algorithm but the app crashes (or becomes very slow) with 50K+ objects. Can you explain if the problem is with React.  For example, show only the markers on the map that are in the boundary of your view. Your question is not related to this package so I'm closing the issue.


:memo: add missing "show your style" badges

Codecov Report

Merging #99 (281cd53) into release-candidate (15324bc) will not change coverage.
The diff coverage is n/a.

@@                 Coverage Diff                 @@
##           release-candidate       #99   +/-   ##
===================================================
  Coverage             100.00%   100.00%
===================================================
  Files                     45        45
  Lines                    958       958
===================================================
  Hits                     958       958


Block doesn't display in CreativeTab

Block have been registered, and it can be found in NEI or use /give command to get.
But it doesn't display in CreativeTab.
code:
BlockGti.java
GtiBlocks.java

@liach Do you have any good solution


hard-coded '100' caused garbled map when MAX_MOBS < 100; this is not …

bug fix

Closing this because it was on master and my repo got all sideways.


Add new event before a customer is actually registered

1. Why is this change necessary?
Because there is currently no clean way to abort a registration process beside the form validation. You can decorate the RegisterService but since this does not return anything you can not pass back any information to the register controller to initiate a custom handling. I had the need to do this because I wanted to abort registrations after the form validation is run but before the customer is actually saved.
2. What does this change do, exactly?
Add a new event to handle custom errors (or messages in general) during the registration process.
3. Describe each step to reproduce the issue or behaviour.
Try to abort a registration before a customer is saved to the database.
Example subscriber that could make use of the new event:
class Test implements SubscriberInterface {
    public static function getSubscribedEvents()
    {
        return [
            'Shopware_Modules_Admin_SaveRegister_BeforeRegister' => 'onBeforeRegister',
        ];
    }

    public function onBeforeRegister(\Enlight_Event_EventArgs $args) {
        $errors = $args->getReturn();
        $customer = $args->get('customer');
        $billing = $args->get('billing');
        $shipping = $args->get('shipping');

        // Do some custom validation stuff with the customer or the addresses
        // e.g. sync them with another system and react to API errors of that system.

        // Merge to make sure you keep errors that may have been added by other plugins previously.
        return array_merge($errors, [
           'occurred' => true,
           'personal' => [
               //reuse error structure from register controller which will be displayed in the frontend form
               'firstname' => 'Something is wrong here',
           ],
           'my_custom_errors' => [
               // Add your own errors. They will be passed to the view and you can handle them there.
           ]
        ]);
    }
}

4. Please link to the relevant issues (if any).
5. Which documentation changes (if any) need to be made because of this PR?
6. Checklist

[ ] I have written tests and verified that they fail without my change
[x] I have squashed any insignificant commits
[ ] This change has comments for package types, values, functions, and non-obvious lines of code
[x] I have read the contribution requirements and fulfil them.

@t2oh4e ping

@shopwareBot Sorry I was on vacations :) I added the missing subject requested by shyim.

shouldn't we avoid to add subject to events? so in case of refactoring, it would be easier to move the code :wink:

@mitelg sounds legit. I found both ways (with and without subject) in the existing code. I can remove it again. Shall I?

Thanks for your Contribution! :blue_heart:


Error in 'ansible.posix.sysctl' due to Ansible migrations?

Issuing ansible-playbook playbook/site.yml -i inventory.yml on a freshly installed ansible-core 2.16.4  using Python 3.10.12 on Ubuntu 22.04 gives:
ERROR! couldn't resolve module/action 'ansible.posix.sysctl'. This often indicates a misspelling, missing collection, or incorrect module path.

The error appears to be in '/home/simon/Code/github/k3s-io/k3s-ansible/roles/prereq/tasks/main.yml': line 14, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

- name: Enable IPv4 forwarding
  ^ here

Could this be due to https://github.com/ansible/ansible/issues/68416#issuecomment-602867015 ?

Fixed by doing: ansible-galaxy collection install ansible.posix

Probably because I only installed ansible-core...
pipx install ansible-core


Login Btn Changed #42

fixes#42
changed the UI of login and logout btn and added scale property to the footer at linkedin,twitter and github icon
login btn

footer icon

let me know if you want any changes

The button isn't looking good. Can you provide some other designs?

sure

Now i taken the same color for btn but added same theme color on text of btn on hovering which make it more professional and user friendly now on hovering on each text on navbar give same color like fork and login

Now i taken the same color of btn as it was before but added color to the  text of login btn which match the theme of your website now both fork  text and login text on hover  have same color
should i delete this pr and create new one? or any suggestion

Now i taken the same color of btn as it was before but added color to the text of login btn which match the theme of your website now both fork text and login text on hover have same color
should i delete this pr and create new one? or any suggestion

Keep the text color white and on hover you can change it to some grayish color. The blue color isnt looking good


Downloading Dupe

So I was testing this to see if it would actually work and when it started to download the pictures/videos it downloaded them twice not sure if its something im doing or what

Hi my friend, this is strange.
Did you checked that maibe in the selected fapello page there are multiple photos that are the same?

Hello srry for late response I checked it multiple times even had a buddy try it and it did the same for him

This is super weird D:
Do these doubled files have the same name and extension (.jpg / .png)?

They have the same name so it would be like this example [fistname-lastnme_number].png

Update I did get it to work now I just redownloaded it and tried again.. Not sure what was going on with it


slackware package problem

Hi, i did the Slackware Felix package but i have this problem: Slackware 15 stable use rust version 1.58.1 and i got this
error: failed to parse manifest at /tmp/SBo/felix-1.0.1/Cargo.toml

Caused by:
  feature strip is required

  The package requires the Cargo feature called strip, but that feature is not stabilized in this version of Cargo (1.58.0).
  Consider trying a newer version of Cargo (this may require the nightly release).
  See https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#profile-strip-option for more information about the status of this feature.

in Slackware current with rust version 1.62.1 i dont get this problem and build fine.
how could i patch the Slackbuild to be able to build with cargo 1.58.1? is that strip feature a must?
is there a way to tell cargo not to use strip?
best regards!

Not so necessary: With this option the binary's size is 2MB in my environment (Linux), while without it 6MB, which is not really heavy I think.
It seems we cannot change the profile according to Rust version, so I'm going to delete these lines in the next release (Already deleted in develop branch 1deb2ff840e29305f646ada4954d18d875acea0b ). If you'd like, please do as this commit.

cf: https://github.com/rust-lang/cargo/issues/4897

Thanks i ll try that!!

Thanks, at first i thought it was just to change strip=true to false in the source s Cargo.toml but was not the case. Not able to change the profile according to Rust version is not nice. Lots of distros that use a stable release wont be able to build the packages. Thank you very much for changing the profile in the next release of Felix!!.

You probably can change Cargo.toml by some patch or sed script, to solve this problem.
Globally rust has many stable releases, it's evolving too fast for some distros. We can find msrv(minimal support rust verison) and point it in Cargo.toml to lower expectation of compiler/toolchain.
Check https://foresterre.github.io/cargo-msrv/index.html to more details. And probably you want to strip fx binary by yourself if Slackware don't do it by default.

is available now on Slackware
https://slackbuilds.org/repository/15.0/system/felix/?search=FELIX
i have to send an update for the latest version
best regards!


dsview: 1.3.1 -> 1.3.2

Use Qt5 for now as Qt6 is not properly supported yet https://github.com/DreamSourceLab/DSView/issues/777#issuecomment-2144118728
Description of changes
Update to latest version and use Qt5.
Closes #319411
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 319641 run on x86_64-linux 1

1 package built:

dsview


Can't remove a specific custom rule error programatically using errors.remove()

It appears we can't specify a custom rule to remove using remove() from the error bag for a given field.

I think the issue is the meaning of scope is unclear. You can look up an error in the bag with a custom rule name e.g. "auth" like this... has('field:auth') or first('field:auth')... but you can't do remove('field:auth')... I think that's confusing and isn't clear in the docs.
Also a scope appears to be ambiguous as a result as you can set a scope explicitly but a scope can also be a custom rule name in the has() and first() use cases, as per docs.

You are right, the selectors are not consistent across the VeeValidate APIs, which will be corrected.
I don't follow the second point, can you elaborate more? ideally, the selector looks like {scope?}.{field}:{rule?}.  where the scope and rule components are optional. It doesn't behave like this currently but that will be fixed soon as I'm working on it.


Added support for the built-in tags attribute so that tags can be set on pkg rules

I'd like to set tags, specifically no-remote-cache, on my use of the pkg_tar rule. This is a built-in rule from Bazel, but it seems it needs to be connected to the associated action in the custom rule. I've created a small utility to generate execution requirements based on ctx.attr.tags if it is present, which allows the attribute to be set on a rule.
I've added this for all pkg_* rules, please let me know if you have any feedback.

Can you create an issue about this which describe the exact problem and intent.
I am not understanding what is going on here.  It seems to conflate execution requirrements and tags.
Most tags should just work, because we pass through kwargs.  The bit about computing execution requirements from tags seems strange. It seems like we should just have an ability to set execution requirements.

Yeah, I'll create an issue ticket

Alright, I created an issue describing my use case and the issue. I agree, it's a bit strange to need to set execution-requirements with the tags. The tags attribute is built-in and inherently available on the pkg_tar rule, but in my testing it didn't seem to have any affect on the execution of the rule.
The Bazel documentation describes this feature here:

Bazel modifies the behavior of its sandboxing code if it finds the following keywords in the tags attribute of any test rule or genrule, or the keys of execution_requirements for any Starlark action.

So it seems the tags only apply if they are passed in to execution_requirements.

This would forward all tags as execution requirements. That is just not right. It subverts the meaning of tags.

To be fair, the bazel behaviour seems inconsistent, w.r.t. tags applying for tests but not rules, but let's get to the bottom of that.  I want to examine what other rule sets are doing in this space and find some unified expectations.
We can't forward every tag as an exec requirement - that has potential to cause clashes with common uses and future executor features. And most of the onese mentioned in the bazel docs are about running the test program rather than executing the action which builds the test, so it is not obvious they apply. Exclusive and manual, for example are meaningless except for a test.
FWIW: For the most part, you want the rule author to set action execution requirements rather than let individual users do it. But that is a discussion for bazel-discuss rather than this rule set.


[Help on PR] Generete automatically partials for enabled payments after child theme is created.

As discussed here:
https://forum.tastyigniter.com/d/2293-payment
Please point me in the right direction. Part of the code to edit, examples of similar code, etc...

You can start with this within the payregister/Extension file, let me know if you need me to explain what the code does ;)
public function boot()
{
    Themes_model::extend(function ($model) {
        $model->bindEvent('model.afterSave', function () use ($model) {
            if (!$model->wasRecentlyCreated)
                return;

            // Logic here.
        });
    });
}

You can start with this within the payregister/Extension file, let me know if you need me to explain what the code does ;)
public function boot()
{
    Themes_model::extend(function ($model) {
        $model->bindEvent('model.afterSave', function () use ($model) {
            if (!$model->wasRecentlyCreated)
                return;

            // Logic here.
        });
    });
}

Is this be done here? https://github.com/tastyigniter/ti-ext-payregister/blob/a0509e053600140886484e7e2d309590341bbd00/Extension.php#L71

Yup

Closing since now it is merged


Issue number 345 - Barcode Generator API

🎯 Title and Issue Number
Issue number 345 - Barcode Generator API

Closes #345

🗒 Checklist:

[x] I have mentioned the issue number in my Pull Request.
[x]  I have gone through rules of when PR will get merged.
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have created a helpful and easy to understand README.md
[x] I have followed proper file structure.
[x] I have gone through CONTRIBUTING GUIDELINES.md.

Thank you for contributing!❤
Don't forget to show some love by ⭐ the repository!

Hey @PradnyaGaitonde, Thank you for creating PR! We will review it super soon. 😇❣
As we continue to evolve and innovate, we encourage you to share your ideas, feedback, and code to help us push the boundaries of what's possible in the world of APIs🚀.
We hope you have followed CONTRIBUTING GUIDELINES.
Thank you for being an essential part of our community. Together, we'll keep building amazing things!
Don’t forget to ⭐ our repository!
Happy Coding!✨
Will See you soon❣

@dinxsh @dishamodi0910 Hello, could you please merge it.

@PradnyaGaitonde We're thrilled to inform you that your pull request has been successfully merged into the APIverse🚀🎁
Your hard work, dedication, and expertise have made a significant impact on our project, and we couldn't be more grateful for your contributions.😇
Your code will now be a part of our growing ecosystem, helping developers worldwide to create exceptional APIs.❣🔥
Happy Coding! ✨
Will See you soon❣


boundary_conditions.copy() no longer skips disallowed entries

🔍 Before submitting the issue

[X] I have searched among the existing issues
[X] I am using a Python virtual environment

🐞 Description of the bug
Copying one boundary conditions to other boundary conditions in the GUI or alternatively, calling <solver_session>.setup.boundary_conditions.copy() in the Fluent 23R2 API, automatically skips any boundary conditions that can't be copied to (e.g. itself).
However, this no longer works with the Fluent 24R1 API. Instead, this throws RuntimeError: Values contain disallowed entries. This requires workarounds such as that seen here: https://github.com/ansys/pyfluent-examples/pull/96#discussion_r1383453820
📝 Steps to reproduce

Select a boundary condition.
Copy it to every other boundary condition (or to a 'disallowed' boundary condition) by calling <solver_session>.setup.boundary_conditions.copy().
PyFluent will throw RuntimeError: Values contain disallowed entries.

💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
24R1
🐍 Which Python version are you using?
3.11
📦 Installed packages
ansys-api-fluent==0.3.18
ansys-api-platform-instancemanagement==1.0.0
ansys-api-systemcoupling==0.1.0
-e git+https://github.com/ansys/pyfluent.git@c812ed4ce4fd03c4c02af9d88a2d47912c2c38a5#egg=ansys_fluent_core
ansys-platform-instancemanagement==1.1.2
-e git+https://github.com/ansys/pysystem-coupling.git@82e50fe7c81a1d59c888df28a99760e4b64bb614#egg=ansys_systemcoupling_core
appdirs==1.4.4
asttokens==2.4.1
certifi==2023.7.22
charset-normalizer==3.3.2
colorama==0.4.6
comm==0.1.4
debugpy==1.8.0
decorator==5.1.1
docker==6.1.3
executing==2.0.1
googleapis-common-protos==1.61.0
grpcio==1.59.2
grpcio-health-checking==1.48.2
grpcio-status==1.48.2
idna==3.4
importlib-metadata==6.8.0
ipykernel==6.26.0
ipython==8.17.2
jedi==0.19.1
jupyter_client==8.5.0
jupyter_core==5.5.0
lxml==4.9.3
matplotlib-inline==0.1.6
nest-asyncio==1.5.8
numpy==1.26.1
packaging==23.2
pandas==2.1.2
parso==0.8.3
platformdirs==3.11.0
prompt-toolkit==3.0.39
protobuf==3.20.3
psutil==5.9.6
pure-eval==0.2.2
Pygments==2.16.1
python-dateutil==2.8.2
pytz==2023.3.post1
pywin32==306
PyYAML==6.0.1
pyzmq==25.1.1
requests==2.31.0
six==1.16.0
stack-data==0.6.3
tornado==6.3.3
traitlets==5.13.0
tzdata==2023.3
urllib3==2.0.7
wcwidth==0.2.9
websocket-client==1.6.4
zipp==3.17.0

@gyeole @h-krishnan  it seems that this is probably an intended change without any need for further changes?
@ansjsia

@gyeole @h-krishnan it seems that this is probably an intended change without any need for further changes?
@ansjsia

If so, what would be the appropriate user action if they wanted to copy a BC to every other BC except for the ones which are disallowed?

@gyeole Maybe we should remove the defaults for "from" and "to" arguments of the "copy' command.

@ansjsia Does your case have both two-sided and one-sided walls?

@h-krishnan I'm not sure because I filed this bug so long ago. But one of the reasons that a BC may be disallowed is that Fluent doesn't allow you to copy a BC to itself, and I imagine that doesn't depend on whether it's a two-sided or one-sided wall.
This is the case in which I discovered the bug: https://examples.fluent.docs.pyansys.com/version/dev/examples/00-released_examples/05-radiation_headlamp.html


ISV enablement for shark-sept24-release

TBD

Some initial thoughts.
Abstract:
This project is positioned well to serve as an endpoint for folks who are interested in deploying generative AI applications. We have used it with SHARK-Studio for demonstrations of multi-device pipelining and for the bring-up of a few image generation / language modeling workflows, but there is a layer emerging from the modeling pursuits that defines a flexible abstracted pipeline and components, their compilation instructions, and allows for any level of customization of hardware backends and extensive features, which can serve as a foundation for inference solutions in our near future.
Goals:

Define and make robust two API layers:

A core modeling/pipelining flow that utilizes the latest innovations contributing to flexibility of the IREE/Turbine stack
APIs for generative AI inference workloads (SD variants, LLM inference, ...) that, either natively or through compatiblity APIs, extend to integrations with existing solutions or applications.

Lay out a framework for continuous integration across this project, its dependents, and IREE (perhaps via interface with the SHARK-TestSuite CI) that provides:

Presubmit (fast) / Nightly (slow) : Regression testing for an extensive suite of model exports, compilation flows, inference modes
Nightly: Artifact uploading to turbine-tank for export-and-compile-free deployment of IREE module executables and parameter archives.
Unified testing framework for regression tests that makes use of the pipeline tooling, so we can run a set of similar configurations through a pytest/unittest class that efficiently validates the export, compilation, and runtime output of different inference modes of e2e pipelines and their submodels on a range of hardware targets.
^ this may look like a long nightly export/compile job for turbine-models that uploads to turbine-tank and is fetched by SHARK-TestSuite for inference validation, as long as we have a clearly documented flow of setting up new cross-project tests.


any idea for a search engine?

Hello.
I'd like to integrate a search engine in pico, any hint where to look at to be more efficient than adding a full parsing of the pages tree content via php?

Regarding the philosophy of the project, I would stick with a flat-file storage search engine, like the one provided by http://framework.zend.com/manual/1.12/fr/zend.search.lucene.html

Regarding the philosophy of the project, I would stick with a flat-file storage search engine, like the one provided by http://framework.zend.com/manual/1.12/fr/zend.search.lucene.html

will have a look, thanks.
In the meanwhile stumbled upon https://github.com/mwgg/Pico-Search too.


#551 AAF Adapter creates ExternalReference for UNC Path

Moved from a closed PR (had trouble with the cxx-to-master rebase). Unittest added. Sorry for any confusion.

Codecov Report

Merging #560 into master will increase coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #560      +/-   ##
==========================================
+ Coverage   81.28%   81.29%   +<.01%
==========================================
  Files          72       72
  Lines        2731     2726       -5
==========================================
- Hits         2220     2216       -4
+ Misses        511      510       -1

Flag
Coverage Δ

#py27
?

#py36
?

#py37
81.29% <ø> (ø)
:arrow_up:

Impacted Files
Coverage Δ

...eio/opentimelineio-bindings/otio_anyDictionary.cpp
100% <0%> (ø)
:arrow_up:

...elineio/opentimelineio-bindings/otio_anyVector.cpp
100% <0%> (ø)
:arrow_up:

...ntimelineio/opentimelineio-bindings/otio_utils.cpp
85.88% <0%> (+0.65%)
:arrow_up:

Continue to review full report at Codecov.

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


Provide a way to setup storage in basic authentication mode

According to issue #4001, for basic authentication, we don't have a way to create group and add user to such group.
Storage config rely on user/group feature. To make sure storage feature works in basic auth mode we need to :

Figure out how to create group in basic auth mode
Test setup storage config in basic auth mode, provide clear doc about how to use storage in basic auth mode.

Current doc for setup storage config can be found at https://github.com/microsoft/pai/tree/master/contrib/storage_plugin, but it only works for aad auth mode

begin after the refactoring of OpenPAI storage support

Close this issue since #4161 is merged


[Samples] Consider adding authentication sample

.NET differs from other languages because it's missing a sample showing how to authenticate to Azure, using both key and AAD. However, we do have a section in our README that illustrates how authentication works.
We must decide whether we should include this new sample or not. Points to consider:

Do other services in the .NET SDK provide authentication samples?
If we decide to include an authentication sample, should we remove the authentication section in the README?

If we opt for not including the sample, no action is needed and this issue can be closed.

Following the pattern of other .NET SDK projects, we'll stick to what we're already doing: keeping the section in our README with no additional authentication sample. We haven't seen negative feedback related to customers struggling to authenticate in the Form Recognizer space.


fixed a bug #748

#748 resolved the issue.

I was expecting skipTests.ps1 to be renamed runTests.ps1.

Whoops, sorry about that I just restored.


False Positive KEPW.org

KEPW is a Low Power public radio station in Eugene Oregon, not an advertising network

Thank you for this @agrovista.
The domain kepw.org comes to us from upsteam.
Please make this request as an issue at the following URL: https://github.com/FiltersHeroes/KADhosts/issues
Ping @krystian3w thank you!

Will do Thank You !

Page was infected: https://github.com/FiltersHeroes/KADhosts/issues/56

Thank you @krystian3w.
Closing.


Provide an easy to enlarge/shrink the size of an array data variable in linear view

This is the residual of https://github.com/Vector35/binaryninja-api/issues/1937. I previously suggested that we should provide a way to enlarge/shrink the size of an array using the +/- key, but - is already used for switching the sign of an integer variable. So we will need to pick a different key. Nevertheless, I think the functionality is worthy to have.

+ and SHIFT + (or =) maybe?

Related: when we have "hotkey layers" selectable at startup in the welcome wizard the "ida compatibility mode" should be able to set these as an IDA user would expect.


ReferencesGitHub/CompanyGitHub: (extended description)

| opentraffic | A free, global traffic speed data set linked to OpenStreetMap. |
Renesas Electronics

#3048 merged into #3068


visionlan gpu updates

Thank you for your contribution to the MindOCR repo.
Before submitting this PR, please make sure:

[x] You have read the Contributing Guidelines on pull requests
[x] Your code builds clean without any errors or warnings
[x] You are using approved terminology
[ ] You have added unit tests

Motivation
Visionlan training (on GPU, amp_level=O0), evaluation, and readme, docs.

mindocr/models目录下，没有rec_visionlan.py，请参考其他模型。

rec_visionlan已经更新，build_model(*visionlan_resnet45", pretrained=True) 没问题


Added generated files

I think these two files need to be committed.
@xavijam right?

Frontend tests were OK :+1: (details)

:es:


Use device test to check if tempdir can be used

I'm not sure if this is correct, but if it is then it's a simplification and speed improvement.
Basically, instead of creating a test temporary file and trying to rename it to determine if the return value of os.TempDir() can be used, we directly compare the device numbers and use the returned value if the device numbers are the same.
The original code has some behaviors that are not reflected in this approach. For example, the original code would fallback to filepath.Dir(dest) if it encountered any errors. Errors that might be encountered include not having permission to write to either directory (os.TempDir() or filepath.Dir(dest)) or disk full situations. Whether it is correct to fallback to filepath.Dir(dest) in these situations is debatable.

I’m not a fan of this change — the current code is more portable and determines eligibility by performing exactly the operations we need. I think that’s more elegant than checking whether files reside on the same device.
Given that performance-sensitive users are encouraged to explicitly call TempDir once and re-use the result, I don’t think performance is important here.

OK, fair enough.


fixed flex basis bug in ff 34

When u set fixed flex-basis and content is bigger than that value, column or row will has behaviour like table without table-layout: fixed;
http://stackoverflow.com/questions/27424831/firefox-flexbox-overflow

I'm not sure there's actually a bug here. The Firefox change was due to the spec change mentioned in flexbug 1 that was updated in FF.
As far as I can tell, the input should be the size FF is setting it, since that's the width its UA stylesheet gives it.
@gregwhitworth can I get a second opinion?

I don't think the bug is the input. The size of the input is not being set by anything and is a replaced element and all UAs will have different sizes for that replaced element.
The bug that I see has to do with the size of the border-box and subsequent boxes not flexing to contain the input. My guess is that #flex is set and does not account for the width of the replaced input. This can actually be seen by introducing another replaced element (an image in this case) and get the same results: http://jsfiddle.net/944tL115/9/ The actual root cause is that it seems that FF is not using the flex-basis to calculate the end main-size of the flex container, which it should. You can see this by removing the css for the label

Width of flex container when flex basis is applied to label: 166px
Width of flex container when flex basis is not applied to the label: 166px

Technically they may be not waiting for the replaced elements to be calculated to increase the width of the flex container, or they aren't allowing the flex basis of the item to increase the size of the flex container. At any rate, since the container has no max limit, the flex container should shrink to the max of it's content with both the replaced elements and basis taken into account to compute that max.
Per what @philipwalton stated regarding the spec change, it had to do with changing auto -> main-size but even with that change (assuming you set flex: 0 1 main-size) the box should still be shrinking down to the max of the content which in this case is (80px + inputWidth).
For things that overflow (in FF case) I would avoid using an outline as FF places the outline around everything while Chrome/IE outline around the border-box (http://jsfiddle.net/50aadr5u/2/)
Please open up a bug against Firefox so that they can fix this.

@Krekotun Don't open a bug just yet - I found one that may fix this. @philipwalton Daniel's test on that page shows at times Blink doesn't take flex-basis into account when computing the hypothetical main-size of the items. Can you get a bug open for Blink?

@Krekotun Also, and this isn't the best workaround. But given your example, using width (based on the info from Daniel that they use width instead of flex-basis) you can set both the width and flex-basis the same and you'll get cross browser compatibility (http://jsfiddle.net/944tL115/15/).

So yes, the bug I linked to is indeed a flex bug in FF, as well as Chrome. Daniel made one that shows the Chrome bug (https://bug972595.bugzilla.mozilla.org/attachment.cgi?id=8549866) as Chrome is flexing the input instead of growing the container to the max of its contents as well. Chrome hasn't done the spec updates yet so this will probably get fixed during that. @philipwalton can you or @tabatkins speak to when Blink will be updating to the latest spec, especially since it's stabilizing.

I filed a bug against Chrome:
https://code.google.com/p/chromium/issues/detail?id=449417
I'm not sure when Chrome will implement the new spec changes, but (as I say in the bug), I'm not 100% that's the root of this problem.

Scratch that, the bug here now here:
https://code.google.com/p/chromium/issues/detail?id=464210

@philipwalton so what's happening with this one? If you don't feel it needs to be addressed on this repo I suggest we just close it - we have too many issues open as it is and you do have a bug filed on it. @dholbert do you know if you all have a similar bug for this one?

@dholbert do you know if you all have a similar bug for this one?

If I'm understanding correctly, I think "yes", and our bug on this is
https://bugzilla.mozilla.org/show_bug.cgi?id=1055887

@gregwhitworth, agreed, closing. Folks can continue to comment if new info comes up and we can re-open if needed.


Backspace key isn't clearing content

The backspace key isn't deleting text in the Editor component as expected

@abilash-sajeev can you please post a video?

@abilash-sajeev the issue can no longer be reproduced now. We have reverted the neetoEditor's beta version on Friday. Can you please verify if the issue is still reproducible and close the issue?

This issue is not reproducible now.


examples: Enable to run anywhere

Now the current directory must be $GOPATH/go/src/github.com/hajimehoshi/ebiten/examples, but it is not friendly. I'd like to fix this to enable examples to be executed anywhere.
Related to #394

Probably embedding the resources is the only way to go...

Now specifying -tags=example is not needed as long as go run is used.
The remaining task is to use embeded images.

Fixed!


tcp_server checking if port is free fails in windows

Godot version:
3.2 RC1
OS/device including version:
Windows 10
Issue description:
When doing a TCP_Server.listen(somePort) in windows it fails to check if the port is already in use. Therefore, there is no way to know if a port can be used or not. In the attached project 2 TCP_Server instances are starting at the same port (80) and both start without an error.
PS: This has been tested in Linux also and it works as expected. An error is being displayed that the port is already in use.
Steps to reproduce:
func _ready():
	var tcp_server = TCP_Server.new()
	var tcp_server2 = TCP_Server.new()
	var err = tcp_server.listen(80)
	yield(get_tree().create_timer(1), "timeout")
	var err2 = tcp_server2.listen(80)

	print("Server 1: " + str(err), "\n", "Server 2: " + str(err2))
        # Prints:
        # Server 1: 0
        # Server 2: 0

Minimal reproduction project:
DebugProject.zip

I was under the impression that the socket APIs are mostly shared between Linux and Windows (see net_socket_posix.cpp for the implementation); regardless, on the latest Godot I cannot reproduce this. Your project, when run on my Windows 10 system, returns:
Server 1: 0
Server 2: 22

This is, of course, different from the Linux results (where both cases return error code 22), but a similar example coded using pure WinSock also returns the same result.

Results seem to be the same for me with the latest stable version:

What version of windows are you using? I'm on Version 1909 (OS Build 18363.592)

I'm on version 1809 (OS build 17763.973).

I'm on version 1809 (OS build 17763.973).

Just tested this on 1809:

Port 80 is correctly giving me an error since i'm running an apache server on that PC but port 7899 for example is giving me the same results as Version 1909. So i assume its not a windows issue?

I just tested this with C# code just to make sure its a not an issue with my PC:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net;
using System.Net.Sockets;

namespace WebServerTest
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                TcpListener server = new TcpListener(IPAddress.Any, 1111);
                server.Start();

            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }

            try
            {
                TcpListener server2 = new TcpListener(IPAddress.Any, 1111);
                server2.Start();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
            Console.ReadKey();
        }
    }
}

And i get an error as expected:
Only one usage of each socket address (protocol/network address/port) is normally permitted

@zaksnet can you try out #36321 ?

Fixed by #36321 🎉🎈


[Week 9] Feature - Tags

Functionalities of tags:

[ ] Add predefined tag
[ ] List predefined tags
[ ] Delete tag (Justin)
[ ] Tag a food item
[ ] Untag a food item
[ ] Edit tag (Justin)
[ ] List by tag (Justin)
[ ] Delete by tag (Justin)

edit tag - removed from implementing
testing brings forward to v1.3b


html5 input email should be added

html5 input email should be added: http://dev.w3.org/html5/markup/input.email.html

This issue was imported from Google Moderator
Moderator votes: +84
Issue added by Thomas Güttler on 2012-03-01
To vote this issue up or down, simply include +1 or -1 in your comment.

+1

Added at http://caniuse.com/#feat=input-email-tel-url


Remove leading underscores in classification project from member variables

Closing this issue, as it has been superseded by #422


Vagalume API dont work anymore

There are error in Vagalume API. They dont work anymore ?
(https://prnt.sc/19fx1h7)

I also have problems with Vagalume and in my case and a Cors error. Check if yours is not also with this error. Right click on the player and select "inspect" or "ctrl+shift+i" and see the browser error logs.


Multi-Asset Coin Selection

Issue Number
ADP-605
Overview
This PR implements the Random-Round-Robin coin selection algorithm for multi-asset UTxO sets.
The Random-Round-Robin algorithm is inspired by the Random-Improve algorithm, but with some differences to accommodate UTxO sets with multiple assets.
Top-Level Algorithm Description
The Random-Round-Robin algorithm considers the sum of all outputs collectively, selecting inputs to cover the total sum of all asset quantities, rather than running a separate selection for each input. It therefore drops the cardinality restriction of the original Random-Improve algorithm implementation.
Steps

When selecting inputs, consider tokens in round-robin fashion, selecting one input per token before moving to the next token, to reduce the chance of over-selecting for any particular token.
For each token quantity under consideration, select enough inputs to cover at least 100% of that quantity, but aim to get as close to a target of 200% as possible. When we can make no further improvement for a given token, we eliminate that token from the round-robin selection process. An improvement is defined as an additional selection that takes the total selected token quantity closer to 200% of the output token quantity, but not further away.
The round-robin selection phase terminates when we can make no further improvement for any token in the set under consideration.
After the selection phase is over, divide any excess token quantities (inputs − outputs) into change bundles, where:

there is exactly one change bundle for each output.
the quantity of a given token in a change bundle is proportional to the quantity of that token in the corresponding output (modulo rounding).
the total quantity of a given token across all change bundles is equal to the total excess quantity of that token.

Redistribute additionally-selected tokens not present in the original outputs to the change bundles, where:

if there are fewer quantities for a given token than the number of change bundles, include these quantities without changing them.
if there are more quantities for a given token than the number of change bundles, repeatedly coalesce the smallest pair of quantities together until the total number of quantities is exactly equal to the number of change bundles.

bors r+

bors r+

bors r+

bors r+

bors r+

bors r+


Write a comprehensive guide to using configs

Some config information has been included in the README, but we should have a second document that has everything that someone might want to know about using configs.

This should be on the Wikipages and the basics mentioned in the README.md
On Fri, Oct 9, 2015 at 2:37 PM, ehankland<EMAIL_ADDRESS>wrote:

Some config information has been included in the README, but we should
have a second document that has everything that someone might want to know
about using configs.
—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/issues/525.

--
Anthony F. Voellm (aka Tony)
Google Voice:<PHONE_NUMBER>
https://www.google.com/voice/b/0?pli=1#phones
Blog: http://perfguy.blogspot.com/
Benchmark like a pro... PerfKitBenchmarker
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker

The guide to configs should also explain benchmark specific flags and how to specify them in configs

I'm planning to start the release tomorrow. Any chance of getting a start on this by then? At minimum we should document incompatible changes.

I'm working on it now. I need to double check, but I think the only real breaking change was the move from --zones to --zone.

Not done, but here's a start: https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/wiki/PerfkitBenchmarker-Configurations

Nice. Could you add some examples and links wherever there's a "see python class x"?

Cool... I added it to the "how to's / FAQ" here ...
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/wiki/FAQ
You can also link the external design doc here -
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/wiki/FAQ
On Fri, Oct 23, 2015 at 10:07 AM, Connor McCoy<EMAIL_ADDRESS>wrote:

Nice. Could you add some examples and links wherever there's a "see python
class x"?
—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/issues/525#issuecomment-150635292
.

--
Anthony F. Voellm (aka Tony)
Google Voice:<PHONE_NUMBER>
https://www.google.com/voice/b/0?pli=1#phones
Blog: http://perfguy.blogspot.com/
Benchmark like a pro... PerfKitBenchmarker
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker

I took a look at the wiki page above and I see a description of configs and several examples. Can we close this issue, or is there more to do?

I just talked with Eric. We can always expand our documentation, but we already have a good amount up. I'm marking this as complete. If anything is missing from the docs, we should file specific issues about the missing pieces.


Add two configuration options nvim-edit.terminalSendTextValue and nvim-edit.terminalLocation

Also fixed escaping filename argument for shell

Looks good


Config changes to reflect the default branch from master to main. Please merge to complete the default branch renaming job.

Auto branch renaming content.

Docs Build status updates of commit 9912b8f:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.publish.config.json
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Standardize Image Tests

Is your feature request related to a problem?

Currently some transformation methods in the _image.py file construct a new image using the Bytestream and therefore have to cover every file format individually. We would like to use a deep copy instead.

The tests in the test_image file have duplicate test cases for both .png and .jpg files. We would like to standardize those tests as well so we dont have to implement a test case for each file format.

Desired solution
Go through the transformation methods in _image.py and change the functionality of each method to use a deep Copy instead of a bytestream.
Go through the tests in test_image.py and remove every redundant test, that only test a different file format
The desired solution is already implemented in the methods Image.flip_vertically and Image.flip_horizontally as well as test_image.TestFlipVertically and test_image.TestFlipHorizontally
Possible alternatives (optional)
No response
Screenshots (optional)
No response
Additional Context (optional)
No response

:tada: This issue has been resolved in version 0.14.0 :tada:
The release is available on:

v0.14.0
GitHub release

Your semantic-release bot :package::rocket:


Unable to run the restler Build command from the Base repository

Description
Hi Team,
When we are trying to run the Restler "python fuzz/build-restler.py" from our repository , having ( reslter exe files) , its throwing out an error about the restoring the nuget packages .
Tried clearing the nuget cache, and restoring the nuget.

Maybe you can check the .NET version installed, you need to be in .NET 6.0

I have .Net 6 and higher version installed

Im not a Windows user, so why you don't use the docker image ? It should work normaly


Create local map layers

Right now the system is totally dependent on outside layers to build system maps. Recommend providing a means to import a file, which will then be hosted on the local system as a layer, with the layer object created upon import and optionally assigned to a Job. As a first pass, we'll provide an import page that will allow the user to drag&drop a kmz layer into the page, assign a name, and optionally choose Jobs that will use this Layer. Upon completion of the form, the system will upload the kmz file, expand it to a local directory, create a kml object in the database for this layer, and assign it to the appropriate Jobs.

This has been implemented in the latest upgrade. On the Layers list page, there's a menu function for to 'Import KML/KMZ' files. The File import page allows a user to specify a KML/KMZ file and a name; upon import the file will be uploaded to the server and a new layer created automatically. Where these files are stored will be specified by the 'KML_REPOSITORY_ROOT' path specified in the settings file


Should MQTT message include appEUI?

Hi,
As we parse sensor data depend on node's application, it need get appEUI at first. So should we add appEUI in MQTT message for convenient?
Thanks!

Please note that the purpose of the appEUI is not specify the application of your node (e.g. what it does). From the specs:

The AppEUI is a global application ID in IEEE EUI64 address space that uniquely identifies
the entity able to process the JoinReq frame.

Therefore the application entity in LoRa App Server was added. As long as you have full control over your nodes appEUI, you could use it the way you want, but this will break when you buy a node where this would not be possible.
You could end up with two nodes:

with different appEUI values doing exactly the same
with to equal appEUI values doing something completely different

Therefore it is better to use the applicationID.

Hi brocaar,
Thanks for your quick reply. En... Do you means LoRa alliance can't control this appEUI uniquely? And you think we should abandon appEUI to use applicationID?

You said:

As we parse sensor data depend on node's application

What I mean is that the appEUI might not be the right source to decide how to parse your sensor data. When you have everything under your own control, this is fine but I don't think the appEUI is there to facilitate this usage. Instead it is used the identify the entity to be able to process the JoinReq frame.

Thanks brocaar, I understand now.


Obsolete version of net-ssh doesn't work with Ruby 2.4

@petrblaho found that there is an issue with https://github.com/net-ssh/net-ssh/issues/535 on Ruby 2.4.
There is already a merged PR https://github.com/ManageIQ/linux_admin/pull/195, but it is needed to bump the gem version in manageiq-gems-pending repo too to get https://github.com/ManageIQ/manageiq/pull/16216 passing tests.
The thing of having requirement from main repo is not ideal, but has lower priority, than updating net-ssh itself IMO.

@agrare Hi, yesterday I forgot mention issue we're facing, see above and https://github.com/ManageIQ/linux_admin/pull/195

All of the required PRs seem to be merged. Can this be closed @aufi ?

Version bump in LinuxAdmin: https://github.com/ManageIQ/linux_admin/pull/195
Remove dependency from ManageIQ: https://github.com/ManageIQ/manageiq/pull/16347
Version bump in manageiq-gems-pending: https://github.com/ManageIQ/manageiq-gems-pending/pull/303

Can this be closed now?

Yes, thank you!


chore: DT Kit r23-09 clarification

minor changes on DTR EDC data asset structure. No changes in "next" since entire structure will change significantly in R23-12 anyway.

@gerbigf - please review.

@danielmiehle ready for merge


Consolidate multiple bot changes into a single change for regression bugs

If you file a bug that's regressed by another bug but don't correctly fill in all the fields, you then get at least three separate updates from the release management bot.
For example, bug 1766234 just got multiple updates:

Release status flags
Needinfo of author
Regression range set

This is causing more visual noise and unnecessary email spam spread over a longer period. Please could we consider somehow consolidating these changes into one?

With #1419, we'll at least consolidate the three into two.

We are no longer setting the "Has Regression Range" field (actually, we have decided to drop it completely), so this is already better than it was.
We should now consolidate the rest of the changes (if "regressed by" is set, we should at the same time set "regression" keyword if missing, needinfo regression author, and set status flags).


Shimmie model.xml is outdated

What steps will reproduce the problem?
1. Add a new Shimmie site
2. Search anything

What is the expected output? What do you see instead?
Anything at all; no output is generated.

What version of the product are you using? On what operating system?
Shimmie version 2.5.1-e9d8ae7; Grabber version 4.0.a

Please provide any additional information below if necessary.
I am trying to download all images from my own Shimmie install with tags in the
filenames, and while Shimmie has an admin function for this, it can only do
this with MD5 hashes. I had tried using model.xml files from
http://code.google.com/p/imgbrd-grabber/issues/detail?id=244 and
http://code.google.com/p/imgbrd-grabber/issues/detail?id=149 and neither fix
the problem.

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 16 Aug 2014 at 8:15

Fixed by 4.1.4


Build error iOS

Hi,
I'm having an annoying issue building out one of my projects. I get the following error (posted at the bottom).
It seems that GTMSessionFetcher can't be copied and I'm 90% sure this worked before as I managed to do a build yesterday without the issue.
I'm building from a Mac and have uninstalled and reinstalled cocoa pods and have attempted another build from another project that seems to work.
Just wondered if there were any obvious steps for me to take?
Thanks,

iOS framework addition failed due to a CocoaPods installation failure. This will will likely result in an non-functional Xcode project.

After the failure, "pod repo update" was executed and succeeded. "pod install" was then attempted again, and still failed. This may be due to a broken CocoaPods installation. See: https://guides.cocoapods.org/using/troubleshooting.html for potential solutions.
pod install output:
Analyzing dependencies
Downloading dependencies
Installing Firebase (6.14.0)
Installing FirebaseAnalytics (6.1.7)
Installing FirebaseCore (6.5.0)
Installing FirebaseCoreDiagnostics (1.2.0)
Installing FirebaseCoreDiagnosticsInterop (1.2.0)
Installing FirebaseInstanceID (4.2.8)
Installing GoogleAppMeasurement (6.1.7)
Installing GoogleDataTransport (3.3.1)
Installing GoogleDataTransportCCTSupport (1.3.1)
Installing GoogleUtilities (6.5.1)
Installing nanopb (0.3.9011)
Generating Pods project
 MARKDOWN TEMPLATE
Command
/usr/local/bin/pod install

Report

What did you do?

What did you expect to happen?

What happened instead?

Stack
   CocoaPods : 1.8.4
        Ruby : ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18]
    RubyGems : <IP_ADDRESS>
        Host : Mac OS X 10.14.6 (18G103)
       Xcode : 11.3 (11C29)
         Git : git version 2.21.0 (Apple Git-122.2)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib
Repositories : cocoapods - git - https://github.com/CocoaPods/Specs.git @ a723d4a0679fe48ed976f881a66f9a1fc7ff9201

Plugins
cocoapods-deintegrate : 1.0.4
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.1.0
cocoapods-trunk       : 1.4.1
cocoapods-try         : 1.1.0

Podfile
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '12.0'

target 'Unity-iPhone' do
  pod 'Firebase/Analytics', '6.14.0'
  pod 'Firebase/Core', '6.14.0'
  pod 'GVRSDK', '~> 1.170'
end

Error
Errno::EACCES - Permission denied @ rb_sysopen - /Users/dev/Test3/Pods/Target Support Files/GTMSessionFetcher/GTMSessionFetcher.xcconfig
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/installer/xcode/pods_project_generator/target_installer_helper.rb:21:in `initialize'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/installer/xcode/pods_project_generator/target_installer_helper.rb:21:in `open'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/installer/xcode/pods_project_generator/target_installer_helper.rb:21:in `update_changed_file'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:570:in `create_xcconfig_file'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:60:in `block in install!'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/user_interface.rb:145:in `message'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:32:in `install!'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/installer/xcode/pods_project_generator.rb:114:in `block in install_pod_targets'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/installer/xcode/pods_project_generator.rb:111:in `map'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/installer/xcode/pods_project_generator.rb:111:in `install_pod_targets'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/installer/xcode/single_pods_project_generator.rb:32:in `block in install_all_pod_targets'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/user_interface.rb:145:in `message'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/installer/xcode/single_pods_project_generator.rb:31:in `install_all_pod_targets'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/installer/xcode/single_pods_project_generator.rb:19:in `generate!'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:308:in `block in create_and_save_projects'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:303:in `create_and_save_projects'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:294:in `generate_pods_project'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:173:in `integrate'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:162:in `install!'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/command/install.rb:52:in `run'
/Library/Ruby/Gems/2.3.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:22:in `load'
/usr/local/bin/pod:22:in `<main>'

 TEMPLATE END
[!] Oh no, an error occurred.
Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=Permission+denied+%40+rb_sysopen+-+%2FUsers%2Fdev%2FTest3%2FPods%2FTarget+Support+Files%2FGTMSessionFetcher%2FGTMSessionFetcher.xcconfig&type=Issues
If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new
Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md
Don't forget to anonymize any private data!
Looking for related issues on cocoapods/cocoapods...
Found no similar issues. To create a new issue, please visit:
https://github.com/cocoapods/cocoapods/issues/new
WARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
Consider adding the following to ~/.profile:

export LANG=en_US.UTF-8

pod repo update output:
Updating spec repo cocoapods
WARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
Consider adding the following to ~/.profile:

export LANG=en_US.UTF-8

UnityEngine.Debug:LogError(Object)
Google.Logger:Log(String, LogLevel) (at Z:/tmp/tmp.c5cHAkrYVv/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/Logger.cs:127)
Google.IOSResolver:Log(String, Boolean, LogLevel) (at Z:/tmp/tmp.Q78nyHwtKI/third_party/unity/unity_jar_resolver/source/IOSResolver/src/IOSResolver.cs:1007)
Google.IOSResolver:OnPostProcessInstallPods(BuildTarget, String) (at Z:/tmp/tmp.Q78nyHwtKI/third_party/unity/unity_jar_resolver/source/IOSResolver/src/IOSResolver.cs:2331)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Hi @LukasRoper
Could you give as more information as the template asked for? Ex. Unity version, Firebase version.
Thank you,
Shawn

Sorry, I've included more details below.
Please fill in the following fields:
Unity editor version: 2019.1.14f1
Firebase Unity SDK version: 6.10
Firebase plugins in use (Auth, Database, etc.): Analytics. Also using Cardboard (outside of Firebase).
Platform you are using the Unity editor on (Mac, Windows, or Linux): Max
Platform you are targeting (iOS, Android, and/or desktop): iOS
Scripting Runtime (Mono, and/or IL2CPP): IL2CPP
Please describe the issue here:
Use case: Just trying to build
Current behavior: Error on build completion (see initial post above). I feel like a file is being locked and not sure why.
Have you been able to reproduce this issue with just the Firebase Unity quickstarts (this GitHub project)?
Not tried with the quickstart, also not with another project. I've managed to successfully build previously too.
What's the issue repro rate? (eg 100%, 1/5 etc)
90%

Hi @LukasRoper,
Could this be a file open permissions error, something similar to this rb-sysopen owner permissions problem?  Thanks!

I'll try that, thanks for your response!


integration_test: Can't run XCode "Product" --> "Test"

Description
I tried to set up XCTest with the integration_test package. What I did is:

Create a new fresh flutter project with flutter create
Add integration test (I copied the widget test as integration test)
Run integration test with flutter drive --driver=test_driver/integration_test.dart --target=integration_test/app_test.dart -d 63B1E047-86E5-462C-9B49-16E6FD9F131D --> everything worked ✅
Now I followed the steps to set tup the XCTests: https://github.com/flutter/flutter/tree/master/packages/integration_test#ios-device-testing
For this I created a new target, which I called RunnerTests
Added this to my Podfile:

target 'RunnerTests' do
    inherit! :search_paths
  end

Replaced RunnerTests.m with:

@import XCTest;
@import integration_test;

INTEGRATION_TEST_IOS_RUNNER(RunnerTests)

And finally I tried to run the test via XCode: "Product" --> "Test" (or the shortcut: Command + U)

Problem
XCode started building, but I got this expection:
can't link with a main executable file '/Users/nils/Library/Developer/Xcode/DerivedData/Runner-agxmbwcpuxvqzdbzeonhnekntuhm/Build/Products/Debug-iphonesimulator/Runner.app/Runner' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Tested device
Running build from MacBook Pro M1, macOS 11.3. Tried to build for iOS Simulator.
Code to reproduce
I published all my Code in this Repo: https://github.com/nilsreichardt/integration_test_problem

Flutter Doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.2.2-0.0.pre.1, on macOS 11.3 20E232 darwin-arm, locale en-DE)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2021.1.2)
[✓] VS Code (version 1.58.0-insider)
[✓] Connected device (4 available)
    ! Error: iPhone von Roland is not connected. Xcode will continue when iPhone von Roland is connected. (code -13)

! Doctor found issues in 1 category.

@nilsreichardt
Thanks for the detailed report.
Does it build for you from command line if you try: flutter build ios --config-only integration_test/foo_test.dart
And can you also please provide the entire exception log here ?

Hi @darshankawar, thanks for the quick response!
flutter build ios --config-only integration_test/app_test.dart seems to work for me.
flutter build ios --config-only integration_test/app_test.dart
Running "flutter pub get" in integration_test_problem...         1,549ms
Building com.example.integrationTestProblem for device (ios-release)...
Signing iOS app for device deployment using developer identity: "3rd Party Mac Developer Application: Nils
Reichardt (AJ3PMPVZ7H)"
Running pod install...                                             969ms

I tried also to do this:

Run flutter build ios --config-only integration_test/app_test.dart
Run in XCode "Product" -> "Test"

This does also not work for me.

Ah, we haven't updated the integration_test docs for M1.  Flutter apps don't set support the arm64 iOS simulator (soon to be fixed with https://github.com/flutter/flutter/pull/85059).
There are a few ways around this.
Option A
In your RunnerTests target, find the Excluded Architectures (EXCLUDED_ARCHS) build setting. Click the right arrow disclosure indicator icon to expand the available build configurations. Hover over Debug and click the plus icon. Change Any SDK to Any iOS Simulator SDK. Add arm64 and i386 to the build settings value. (note this screenshot shows Runner but do it for your RunnerTests test target).

Option B
Inherit the Flutter base xcconfig in the RunnerTests target.  In Runner (PROJECT, not TARGET) > Info expand Configurations.  Make the RunnerTests target inherit from Debug, Release, and Release.

I recommend trying Option A.

This should be fixed by https://github.com/flutter/flutter/pull/87244.


Support for binary string (bytes())

Describe the bug
Lark fails to parse Python3 binary strings. IMHO the following code should work:
import lark
print(lark.Lark('''
start: token
token: "a"+ | "b"+
''').parse(b'aabb'))

Currently running parse on a binary string results in a TypeError, since lark tries to apply an str typed regex to the binary input:
    return self.regexps[term.name].match(text, index)
TypeError: cannot use a string pattern on a bytes-like object

Expected result
Lark should be able to parse binary strings. It should check whether the input is a byte object and apply the regexps with a bytes pattern if needed.

That's an interesting thought. I suppose there's a good reason you can't just convert the binary string to a unicode string?
If it was implemented, seems to me like the grammar would have to be a binary string as well.

Yes, I'm not able to convert to unicode as some fields might contain binary data in my input.
I've given it some thought and I don't think that the grammar itself should be a byte string.  If the whole grammar is a byte object, you lose the ability to specify unicode characters directly.
Terminals and regexp patterns could have a b'whatever' and b/.*/ notation similar to Python to indicate byte sequences.
The other solution I was thinking about is that you could decode a pattern or terminal using latin1 encoding to produce a bytes object when needed (when input is a bytes object). In this case you also have to account for unicode characters implementing something along the lines of:
def encode_bytes(xs):
  def encode_byte(x):
    try:
      return x.encode('latin1')
    except UnicodeError:
      return x.encode('utf-8')
  return b''.join([encode_byte(x) for x in xs])

>>> encode_bytes("ŵ:\xc5\xb5")
b'\xc5\xb5:\xc5\xb5'

Solved. The following works:
import lark
print(lark.Lark('''
start: token+
token: "a" | "b"
''', use_bytes=True).parse(b'aabb'))

Awesome! Thank you very much.


Can't search vods by streamer name: Error "The remote server returned an error: (400) Bad Request."

Windows 11 64 bit, using most recent version of Twitch Leecher.
When I open the program I get an error message.  I can't search for videos by streamer name.  All the streamer names are red in the drop-down list on the search page, using the channel tab.  I can, however, search for videos and download them if using the URLs tab.
When I hover over the channel name from the drop down menu, there is a message, "The specified channel does not exist on Twitch!"
But these are all channels that exist and were working just fine in Twitch Leecher a few days ago.
I uninstalled and reinstalled.  I logged out and logged in.
Here is the error log:
System.AggregateException: One or more errors occurred. ---> System.Net.WebException: The remote server returned an error: (400) Bad Request.
at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
at System.Net.WebClient.DownloadString(Uri address)
at TwitchLeecher.Services.Services.ApiService.SearchChannel(String channel, VideoType videoType, LoadLimitType loadLimit, DateTime loadFrom, DateTime loadTo, Int32 loadLastVods)
at TwitchLeecher.Services.Services.ApiService.Search(SearchParameters searchParams)
at System.Threading.Tasks.Task1.InnerInvoke()    at System.Threading.Tasks.Task.Execute()    --- End of inner exception stack trace --- ---> (Inner Exception #0) System.Net.WebException: The remote server returned an error: (400) Bad Request.    at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)    at System.Net.WebClient.DownloadString(Uri address)    at TwitchLeecher.Services.Services.ApiService.SearchChannel(String channel, VideoType videoType, LoadLimitType loadLimit, DateTime loadFrom, DateTime loadTo, Int32 loadLastVods)    at TwitchLeecher.Services.Services.ApiService.Search(SearchParameters searchParams)    at System.Threading.Tasks.Task1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()<---

Same here

See #800
Twitch API seems to currently be experiencing issues, nothing to do but wait.

Same problem too

Should be working by now. If still not, restarting TL and retrying a few times should help, but possibly the latter is enough.

Yep it's working again.  Will try to close issue.


Update external-resources.md

updated mining pools, exchanges and added a miner program and a "mining operating systems" list.

Looks good to me. Thanks!

when does it get published? i don't see the updated version.

The service we use for hosting the docs has some pretty heavy caching, so you may need to close and re-open your browser. We're working on a fix for this. It looks like your changes are showing now though.


Update Lato to fix vertical metrics

To fix rendering issues on Windows/Linux we need to update the Lato typeface to a new set of fonts which include fixed vertical metrics on the typeface.
Lato (fixed font metrics).zip

#141


[Finetune] Should I reduce cfg.max_steps when using more GPUs?

Under the setting of DDP, when I use more GPU. I have to reduce the batch_size to maintain a fixed global batch size. However, when I reduce batch_size, there's a lot GPU memory wasted.  So I'm thinking keep the batch size while reduce the cfg.max_steps.  Can I get same or similar results?
    # Train!
    with tqdm.tqdm(total=cfg.max_steps, leave=False) as progress:
           ...

Hi @KaijingOfficial,
If you use more GPUs, I would recommend that you keep the batch size the same as before. You will have a larger total batch size, and you should observe faster training convergence with better gradients. Yes, you should be able to reduce cfg.max_steps given faster training, though it may be hard to predict how much faster training will convergence.
-Moo Jin


Leverage Schema API interface

For brands, and anything else? 🤔

https://discord.com/channels/795981131316985866/1218626687546294386/1218792384976912426


Support passing a commit comment

Add support to pass a commit comment to the underlying netmiko ssh device.
Update requirements.txt to require a more recent version of netmiko (3.3.2 supports passing a commit comment).

Related issue https://github.com/napalm-automation-community/napalm-panos/issues/77

The pylama dependency is not compatible with newest versions of pytest, which is why travis is failing. Pylama already seems to have a pending PR to fix that. Even with a downgraded version of pylama, something in the tests seems to break, but I don't think it is because of my changes. Perhaps the reviewer can try to run the tests too, and verify if its something because of my changes, or yet more dependency issues?

Figured it out. Has to do with NAPALM version, their modules are imported in a different way in different versions. I'll see if I can sort that out too.

Hi,
Investigating the version issues, I found out that latest NAPALM 2.x version - 2.5 - requires netmiko 2.4.2. The support for passing a commit comment came into netmiko in 3.3.2, which is supported in NAPALM in a later version. Starting from NAPALM 3.0 however, support for Python version <3.6 is dropped. Therefore in order to make passing commit comments work, I upgraded the minimum required versions of NAPALM and netmiko, while modifying the napalm-panos plugin to also drop support for Python <3.6, similar to NAPALM. Additionally, in requirements-dev.txt, the pytest version has to be downgraded for now, until its dependency version issues are resolved.
The latest commit includes a few upgrades to method signatures (even if the parameter itself is not yet supported/functional. The tests require the method signatures to be matching), which are compliant with newest version of NAPALM, so test would be already passing if minimumn NAPALM version was raised to 3.2.0.
The drop of Python version <3.6 can be a rather major change (although NAPALM already went there), what do you think of this proposal?

Hi,
Investigating the version issues, I found out that latest NAPALM 2.x version - 2.5 - requires netmiko 2.4.2. The support for passing a commit comment came into netmiko in 3.3.2, which is supported in NAPALM in a later version. Starting from NAPALM 3.0 however, support for Python version <3.6 is dropped. Therefore in order to make passing commit comments work, I upgraded the minimum required versions of NAPALM and netmiko, while modifying the napalm-panos plugin to also drop support for Python <3.6, similar to NAPALM. Additionally, in requirements-dev.txt, the pytest version has to be downgraded for now, until its dependency version issues are resolved.
The latest commit includes a few upgrades to method signatures (even if the parameter itself is not yet supported/functional. The tests require the method signatures to be matching), which are compliant with newest version of NAPALM, so test would be already passing if minimumn NAPALM version was raised to 3.2.0.
The drop of Python version <3.6 can be a rather major change (although NAPALM already went there), what do you think of this proposal?

I like it, I did not even realize the sanitized parameter was added. Give me a few days to spin up and give it a try, but looks straight forward overall.

I like it, I did not even realize the sanitized parameter was added. Give me a few days to spin up and give it a try, but looks straight forward overall.

I like it, I did not even realize the sanitized parameter was added. Give me a few days to spin up and give it a try, but looks straight forward overall.

Hello, have you had the time to review the PR? Anything you would like to change or discuss?

I like it, I did not even realize the sanitized parameter was added. Give me a few days to spin up and give it a try, but looks straight forward overall.

Hello, have you had the time to review the PR? Anything you would like to change or discuss?

Apologies, a few busy weekends in a row, should have time this weekend.

Apologies, a few busy weekends in a row, should have time this weekend.

Hello, any progress or comments on this PR?


Adding Random Generator feature

Signed-off-by: praveen4g0<EMAIL_ADDRESS>
And also ignoring lint failure

/rerun

/retest

/retest


gibbing ian wont give you the prime cut meat

Description

if you gib ian, with either brute force or a minibomb there will be no prime cut corgi meat
Reproduction

just give ian a minibomb
Screenshots

N/A
Additional context

with how it is currently if you gib ian you will never be able to get the prime cut corgi meat, making the objective impossible

how does exploding your target into a red smear constitute a "prime cut"

well then dont explode a dog with a bomb

now you see, the bomb's fragmentation acts as tiny knives that expertly cut the meat into kitchen-grade meat

i don't know what to say, hunter hunts with grenades and C4 in my country


introduce tab isolation mode

Type of PR (feature, enhancement, bug fix, etc.)
Enhancement
Description
Pass isolate: true to the SR initialization to put the library in tab isolation mode. SR-initiated CableReady events will only fire in the tab that created them.
StimulusReflex.initialize(application, { isolate: true })
Why should this be added
Some developers have users with multiple tabs open at once. This will ensure that those developers have a mechanism to restrict Reflex execution to only the tab which initiated them.
Checklist

[x] My code follows the style guidelines of this project
[x] Checks (StandardRB & Prettier-Standard) are passing

This is so good. Thank you so much for this feature!


Package tslib has been ignored because it contains invalid configuration

When launching React Native app, I have a warning which says that tslib package is ignored :
warn Package tslib has been ignored because it contains invalid configuration. Reason: Package subpath './package.json' is not defined by "exports" in /Users/xxx/node_modules/tslib/package.json

Any plan to fix this warning ? It happens on some NodeJS libs.

This is happening for me as well!

Getting:
(node:52405) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /gfgfdgfd/node_modules/tslib/package.json.
Update this package.json to use a subpath pattern like "./*".

macOS | Node 16


Enable assertions in Gradle's run configuration

Enable the assertions as required in the tP tracker.
When executing gradle's run method, assertions will be enabled now.

Codecov Report

Merging #101 into master will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #101   +/-   ##
=========================================
  Coverage     72.29%   72.29%
  Complexity      454      454
=========================================
  Files            79       79
  Lines          1462     1462
  Branches        151      151
=========================================
  Hits           1057     1057
  Misses          359      359
  Partials         46       46

Continue to review full report at Codecov.

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


Override scm vendor fetch (git, hg ect).

I have a custom url that does not have git in the url that is hosting private repositories. I am working on a PR that would add this feature. As I am struggling to build / test I wanted to make sure something like this would be accepted before I put more time into it. Currently I was thinking something like this:
gb vendor fetch -scm git mysource.lhj.me/private/stuff

Yeah, that sounds fine, but it will need to be a complete URL, Including the scheme.

On 30 Oct 2015, at 14:49, Lateef Jackson<EMAIL_ADDRESS>wrote:
I have a custom url that does not have git in the url that is hosting private repositories. I am working on a PR that would add this feature. As I am struggling to build / test I wanted to make sure something like this would be accepted before I put more time into it. Currently I was thinking something like this:
gb vendor fetch -scm git mysource.lhj.me/private/stuff
—
Reply to this email directly or view it on GitHub.


Beautify ignoring indent_size parameter

Description
The results of beautification are not what I expect.
Input Before Beautification
This is what the code looked like before:
unsigned short fletcher16( unsigned char *data, short len ) {
        unsigned short check;
        unsigned short sum1 = 0xff, sum2 = 0xff;

        while (len) {
                short tlen = len > 21 ? 21 : len;
                len -= tlen;

                do {
                        sum1 += *data++;
                        sum2 += sum1;
                } while (--tlen);

                sum1 = (sum1 & 0xff) + (sum1 >> 8);
                sum2 = (sum2 & 0xff) + (sum2 >> 8);
        }

        // Second reduction step to reduce sums to 8 bits
        sum1 = (sum1 & 0xff) + (sum1 >> 8);
        sum2 = (sum2 & 0xff) + (sum2 >> 8);

        check = (unsigned short)(sum1 << 8) | (unsigned short)(sum2);

        return check;
}

Expected Output
The beautified code should have looked like this:
unsigned short fletcher16( unsigned char *data, short len ) {
  unsigned short check;
  unsigned short sum1 = 0xff, sum2 = 0xff;

  while (len) {
    short tlen = len > 21 ? 21 : len;
    len -= tlen;

    do {
      sum1 += *data++;
      sum2 += sum1;
    } while (--tlen);

    sum1 = (sum1 & 0xff) + (sum1 >> 8);
    sum2 = (sum2 & 0xff) + (sum2 >> 8);
  }

  // Second reduction step to reduce sums to 8 bits
  sum1 = (sum1 & 0xff) + (sum1 >> 8);
  sum2 = (sum2 & 0xff) + (sum2 >> 8);

  check = (unsigned short)(sum1 << 8) | (unsigned short)(sum2);

  return check;
}

Actual Output
The beautified code actually looked like this:
unsigned short fletcher16( unsigned char *data, short len ) {
        unsigned short check;
        unsigned short sum1 = 0xff, sum2 = 0xff;

        while (len) {
                short tlen = len > 21 ? 21 : len;
                len -= tlen;

                do {
                        sum1 += *data++;
                        sum2 += sum1;
                } while (--tlen);

                sum1 = (sum1 & 0xff) + (sum1 >> 8);
                sum2 = (sum2 & 0xff) + (sum2 >> 8);
        }

        // Second reduction step to reduce sums to 8 bits
        sum1 = (sum1 & 0xff) + (sum1 >> 8);
        sum2 = (sum2 & 0xff) + (sum2 >> 8);

        check = (unsigned short)(sum1 << 8) | (unsigned short)(sum2);

        return check;
}

Steps to Reproduce

Add code to Atom editor
Run command Atom Beautify: Beautify Editor
Add following to .jsbeautifyrc in projecthome

{
  "indent_size": 2,
  "indent_char": " ",
  "other": " ",
  "indent_level": 0,
  "indent_with_tabs": false,
  "preserve_newlines": true,
  "max_preserve_newlines": 2,
  "jslint_happy": true,
  "indent_handlebars": true
}

This beautified code does not look right!

Debug
Pre-Transformed Options:

**Pre-Transformed Options**:
Combined options before transforming them given a beautifier's specifications
```json
{
    "indent_size": 2,
    "indent_char": " ",
    "indent_with_tabs": false,
    "configPath": "",
    "disabled": false,
    "default_beautifier": "Uncrustify",
    "beautify_on_save": false,
    "other": " ",
    "indent_level": 0,
    "preserve_newlines": true,
    "max_preserve_newlines": 2,
    "jslint_happy": true,
    "indent_handlebars": true
}

### Final Options

### Final Options

Final combined and transformed options that are used
{
    "indent_size": 2,
    "indent_char": " ",
    "indent_with_tabs": false,
    "configPath": "",
    "disabled": false,
    "default_beautifier": "Uncrustify",
    "beautify_on_save": false,
    "other": " ",
    "indent_level": 0,
    "preserve_newlines": true,
    "max_preserve_newlines": 2,
    "jslint_happy": true,
    "indent_handlebars": true
}

Checklist
I have:

[x] Tried uninstalling and reinstalling Atom Beautify to ensure it installed properly
[x] Reloaded (or restarted) Atom to ensure it is not a caching issue
[ ] Searched through existing Atom Beautify Issues at https://github.com/Glavin001/atom-beautify/issues
so I know this is not a duplicate issue
[x] Filled out the Input, Expected, and Actual sections above or have edited/removed them in a way that fully describes the issue.
[x] Generated debugging information by executing Atom Beautify: Help Debug Editor command in Atom and added link for debug.md Gist to this issue

Can you run the debug command within Atom?  It should generate a text file that you can create a gist from to link to in this issue.