The 'import block' command shows a large gap between the optimal block and the final block

./substrate export-blocks --chain main --to 318450 shuju --base-path db1/ --pruning=archive

./substarte import-blocks --chain main shuju --base-path db-cp --pruning=archive

when i run my local node with ./substratre --chain main --base-path db-cp --pruning=archive,
and there are my log:
 〽 Prometheus server started at <IP_ADDRESS>:9615
Nov 24 01:26:22.339  INFO Listening for new connections on <IP_ADDRESS>:9944.
Nov 24 01:26:27.184  INFO Accepted a new tcp connection from <IP_ADDRESS>:51642.
Nov 24 01:26:27.340  INFO 💤 Idle (0 peers), best: #318450 (0x4fc6…b8d8), finalized #317952 (0x162d…eb7d), ⬇ 0.3kiB/s ⬆ 0.2kiB/s
Nov 24 01:26:32.340  INFO 💤 Idle (0 peers), best: #318450 (0x4fc6…b8d8), finalized #317952 (0x162d…eb7d), ⬇ 0.2kiB/s ⬆ 0.2kiB/s
Nov 24 01:26:37.340  INFO 💤 Idle (0 peers), best: #318450 (0x4fc6…b8d8), finalized #317952 (0x162d…eb7d), ⬇ 0 ⬆ 0
Nov 24 01:26:42.340  INFO 💤 Idle (0 peers), best: #318450 (0x4fc6…b8d8), finalized #317952 (0x162d…eb7d), ⬇ 0.2kiB/s ⬆ 0.3kiB/s

What is the problem here? Were the blocks finalized before?

What is the problem here? Were the blocks finalized before?

I mean, using the './ substrate import block 'command, why would the height of the latest block and the final block normally be different

What is the problem here? Were the blocks finalized before?

I mean, using the './ substrate import block 'command, why would the height of the best block and the final block normally be different

And, the data is exported in a normal database using the command './substrate export-blocks --chain main --to 318450 shuju --base-path db1/ --pruning=archive
'

Were the blocks finalized before?

Can you please answer this.

Were the blocks finalized before?

Can you please answer this.

Yes, the final block of the chain is higher than the best block above, I just want to export the data that already has the final block in front

The final block of the chain was 318,467 when I exported the data. So the expectation is that the final block here is going to be 318450 as is the best block

I think there was probably just no justifications for these blocks. I think grandpa only outputs justifications on authority set changes. @andresilva should be able to answer this concretely.
However, I don't see this as such a big problem, the node would finalize when it connects to other nodes.

I think there was probably just no justifications for these blocks. I think grandpa only outputs justifications on authority set changes. @andresilva should be able to answer this concretely.
However, I don't see this as such a big problem, the node would finalize when it connects to other nodes.

Yes, it's not a big problem. We just want to completely derive the equal final block and the best block. This is sufficient if the data is exported for a node. Thank you！

Then you need to share the db.


readgroup stats

Hi i am looking for a lightwheigt tool to get stats from bam files with multiple readgroups.
I thought you implemented this feature in bamStat.
But when i run bamStat, it complains about:
Only one sample (@RG:SM) is allowed per input BAM file RNA2013.07080910.IL2-1ax.bam
Is this feature still in progress?
Thanks,
michel

bamStats indeed supports multiple RG groups for the same sample (e.g. multiple libraries). I haven't looked into supporting multiple samples (different SM tags) yet because that appeared to me as fairly uncommon. You can of course always split such a multi-sample BAM file into single sample BAM files using samtools.


Traceback Errors in Version 4.12

I have upgraded to version 4.12. I cannot run basic commands anymore.
"gam info user" comes back with
C:\GAM412>gam info user
Traceback (most recent call last):
File "gam.py", line 10871, in
File "gam.py", line 10263, in ProcessGAMCommand
File "gam.py", line 7493, in doGetUserInfo
KeyError: u'email'
Failed to execute script gam
And even trying to add delegates gives a similar error
C:\GAM412>gam user eps_mgr delegate to esedgwick
Giving esedgwick@unknown delegate access to eps_mgr@unknown (1/1)
ERROR: Could not create delegation - 403 -

Invalid domain.

Invalid domain.
Error 403

I can add delegates by adding the full e-mail address into the command line
C:\GAM412>gam user<EMAIL_ADDRESS>delegate to<EMAIL_ADDRESS>I've seen previous threads fixing this is really early versions of GAM.

Set a system environment variable GA_DOMAIN to utah.gov
Ross
On Wed, Mar 22, 2017 at 6:58 AM, esedgwick<EMAIL_ADDRESS>wrote:

I have upgraded to version 4.12. I cannot run basic commands anymore.
"gam info user" comes back with
C:\GAM412>gam info user
Traceback (most recent call last):
File "gam.py", line 10871, in
File "gam.py", line 10263, in ProcessGAMCommand
File "gam.py", line 7493, in doGetUserInfo
KeyError: u'email'
Failed to execute script gam
And even trying to add delegates gives a similar error
C:\GAM412>gam user eps_mgr delegate to esedgwick
Giving esedgwick@unknown delegate access to eps_mgr@unknown (1/1)
ERROR: Could not create delegation - 403 -
Invalid domain. Invalid domain. Error 403
I can add delegates by adding the full e-mail address into the command line
C:\GAM412>gam user<EMAIL_ADDRESS>delegate to<EMAIL_ADDRESS>I've seen previous threads fixing this is really early versions of GAM.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/jay0lee/GAM/issues/449, or mute the thread
https://github.com/notifications/unsubscribe-auth/AIU8L9CnZaTmC2Pzloyb7rzlLd0wG6GUks5roSkigaJpZM4MlPUU
.

--
Ross Scroggs
<EMAIL_ADDRESS>

Am I setting this up right?

Eric,
Yes.
Ross
On Wed, Mar 22, 2017 at 9:00 AM, Eric S<EMAIL_ADDRESS>wrote:

Am I setting this up right?
[image: image]
https://cloud.githubusercontent.com/assets/26601343/24207383/4ca07b28-0ee6-11e7-961e-16256fbed55d.png
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/jay0lee/GAM/issues/449#issuecomment-288447270, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AIU8Lxjx691ogClGfQs54WqzdCLbqlDJks5roUWFgaJpZM4MlPUU
.

--
Ross Scroggs
<EMAIL_ADDRESS>

Same error. Even rebooted since I added the variable.

You are missing the user:
gam info user<EMAIL_ADDRESS>On Wed, Mar 22, 2017 at 9:11 AM Eric S<EMAIL_ADDRESS>wrote:

Same error. Even rebooted since I added the variable.
[image: image]
https://cloud.githubusercontent.com/assets/26601343/24207940/e0160200-0ee7-11e7-95e5-be984919facf.png
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/jay0lee/GAM/issues/449#issuecomment-288451150, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABBF5qL6dYZEePYA8kVVrwpbH7Xh26Pqks5roUgjgaJpZM4MlPUU
.

Yeah missed that...
Everything works great now.
Thank you


No output

Hi,
I tried your code "Read-Data-Python", in my case, nothing is displayed on the graph window. I would like to know which .bin file you flashed to the radar?
Thank you

Hi,
In this case I made it for the mmWave SDK 2.01 demo. Which SDk are you using?

I use mmWave SDK 3.03

Try using my repository for the AWR1843, change the configuration with your own configuration.
Let me know if it works. That program is still in development so it might give errors.

With this repository and my own .conf I have only one point blinking on (0;0)

This is with SDK 2.1
With SDK 3, nothing is displayed

When you use the SDK 2.1, does the sensor start measuring (the LDE DS3 should turn on). If it does, that mean that there is some problem while parsing the data. PLease make a print on byteBuffer and copy it here so I can see what could be the problem.
Thank you

I had the same problem, with my AWR1642 on SDK 3.03 i got no output.
By using your AWR1843 repo, it works, but not all output data is parsed (z and velocity is not parsed).
This is the beginning of my byteBuffer output, i think the zeros in the 4th are parsed as z and velocity values..
btw: where do you got the information about the data stream from?
2   1   4   3   6   5   8   7   3   0   3   3 224   2   0   0  66  22
  10   0  22   0   0   0  37 164   2  77   6   0   0   0   4   0   0   0
   0   0   0   0   1   0   0   0  96   0   0   0 127  10  73 188  91 125
  43  61   0   0   0   0   0   0   0   0  31 243  33 189  54  23 151  60
   0   0   0   0   0   0   0   0  63 140 234  60 236 110 106  63   0   0
   0   0   0   0   0   0 211  82 207 190 164 151 141  63   0   0   0   0
   0   0   0   0 255  96 223  61  51 241 222  63   0   0   0   0   0   0
   0   0 223  33 240 190 210 129 232  63   0   0   0   0   0   0   0   0
   7   0   0   0  24   0   0   0 214   0 254   2 214   0 254   2 153   0
 247   2 205   0 233   2  23   1 240   2 183   0 204   2   2   0   0   0
   0   2   0   0  72  15  86  16  25  16 105  15 254  13 215  13 213  13
 100  12 239  10 173  11 155  12  67  13  35  14 111  13 179  12 186  11
 200  11  70  12 122  12 172  11 125  14  53  15  95  14  37  14 250  13
 197  14 184  15 215  15  37  15  22  14   5  13   1  12  70  11  68  11
 161  11 237  11  80  12  62  12 248  12 217  15  47  17   0  17 226  14
 252  14  81  14 102  14 146  14  45  14  27  13 170  13 170  13 222  12
 178  12 159  12 118  12 131  12 131  12 132  12 166  12  65  12  78  12
 184  12 209  12 228  11 215  11 117  12  54  12 194  11 103  11  37  11
 154  10 248  10  75  10  37  10 227  10  46  11  81  10  30  11 109  12
 121  12  47  12  37  11  12  11  33  11  95  11 241  10  33  11  80  11
 204  10 208  10  42  11 213  10  91  10 217   9  31  10 216  10 238  10
 115  10  58  10 126  10 182   9  84  10  16  10 133  10 153  10  29  10
 111  10 141  10  86  10   4  11 214  10 109  10 139   9 252   9  46  10

I finally made it work using SDK 2.1. I don't know what the problem was before, it probably couldn't read data from Serial Port. I didn't have the problem since it started working so I can't tell you what the problem was so you could fix it.
Thank you for your help

I finally made it work using SDK 2.1. I don't know what the problem was before, it probably couldn't read data from Serial Port. I didn't have the problem since it started working so I can't tell you what the problem was so you could fix it.
Thank you for your help

I am glad to hear it. Let me know if you find any problems again.
Thank you,
Ibai

EDIT: Found the data structure of SDK2.1 and SDK3.3...
EDIT2: ok, im just stupid...it gives zeros because of no moving objects 🤣
I had the same problem, with my AWR1642 on SDK 3.03 i got no output.
By using your AWR1843 repo, it works, but the velocity is not sent. z is zero because the 1642 is not capable of calculating it, right?!
This is the beginning of my byteBuffer output, the zeros in the 4th line are parsed as the velocity values..
Any ideas why the velocity is not sent?
   2   1   4   3   6   5   8   7   3   0   3   3 224   2   0   0  66  22
  10   0  22   0   0   0  37 164   2  77   6   0   0   0   4   0   0   0
   0   0   0   0   1   0   0   0  96   0   0   0 127  10  73 188  91 125
  43  61   0   0   0   0   0   0   0   0  31 243  33 189  54  23 151  60
   0   0   0   0   0   0   0   0  63 140 234  60 236 110 106  63   0   0
   0   0   0   0   0   0 211  82 207 190 164 151 141  63   0   0   0   0
   0   0   0   0 255  96 223  61  51 241 222  63   0   0   0   0   0   0
   0   0 223  33 240 190 210 129 232  63   0   0   0   0   0   0   0   0
   7   0   0   0  24   0   0   0 214   0 254   2 214   0 254   2 153   0
 247   2 205   0 233   2  23   1 240   2 183   0 204   2   2   0   0   0
   0   2   0   0  72  15  86  16  25  16 105  15 254  13 215  13 213  13

Hi,
If I understand correctly, I think all your questions are solved. If you have any problems with the SDK 3, please write an issue in the other repository.
Thank you


fix : removed extra blank link between sections

Checklist:

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

Closes #XXXXX

Hey @shubham-singh-748
Thank you for opening this pull request.
This is a standard message notifying you that we've reviewed your pull request and have decided not to merge it. We would welcome future pull requests from you.
Thank you and happy coding.


amdvlk: 2022.Q2.2 -> 2022.Q2.3

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for amdvlk is: "AMD Open Source Driver For Vulkan"
meta.homepage for amdvlk is: "https://github.com/GPUOpen-Drivers/AMDVLK"
meta.changelog for amdvlk is: "https://github.com/GPUOpen-Drivers/AMDVLK/releases/tag/v-2022.Q2.3"
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 2022.Q2.3 with grep in /nix/store/smhdq5xcklzfj2k1dxs2i4mv45l0wlwr-amdvlk-2022.Q2.3
found 2022.Q2.3 in filename of file in /nix/store/smhdq5xcklzfj2k1dxs2i4mv45l0wlwr-amdvlk-2022.Q2.3

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

2 total rebuild path(s)

2 package rebuild(s)

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

First fifty rebuilds by attrpath
amdvlk
driversi686Linux.amdvlk

Instructions to test this update (click to expand)

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

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

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/smhdq5xcklzfj2k1dxs2i4mv45l0wlwr-amdvlk-2022.Q2.3
ls -la /nix/store/smhdq5xcklzfj2k1dxs2i4mv45l0wlwr-amdvlk-2022.Q2.3/bin

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

2 packages built:

amdvlk
driversi686Linux.amdvlk

Maintainer pings
cc @Flakebi for testing.

Note that this is previously reverted in #180121.

Right, closing because this version has bugs.

I think r-ryantm will keep opening the same PR if this is closed...

The next – fixed – update is out in #181964, so I hope we can close this now.


CUDA virtual package not found in docker build

Checks

[X] I have checked that this issue has not already been reported.

[X] I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example
My pixi.toml looks like this:
[project]
name = "pixi-cuda"
channels = ["conda-forge"]
platforms = ["linux-64"]

[host-dependencies]
python = "<=3.11"

[feature.cuda]
platforms = ["linux-64"]
system-requirements = {cuda = "12"}

[environments]
default = {features = ["cuda"], solve-group = "default"}

First attempt for Dockerfile:
# syntax=docker/dockerfile:1
# check=skip=JSONArgsRecommended

# official pixi image with cuda
FROM ghcr.io/prefix-dev/pixi:0.29.0-jammy-cuda-12.1.1 as build

WORKDIR /app/code/

# get pixi
RUN apt-get update && apt-get install -y gcc

# copy code
COPY pixi.lock pixi.toml ./

# install dependencies
RUN pixi install -e default --frozen
RUN pixi shell -e default && python -c "import torch; print(torch.cuda.is_available())"

Second attempt for Dockerfile:
# syntax=docker/dockerfile:1
# check=skip=JSONArgsRecommended

# official pixi image with cuda
FROM pytorch/pytorch:2.4.1-cuda12.1-cudnn9-runtime as build

WORKDIR /app/code/

# get pixi
RUN apt-get update && apt-get install -y curl gcc && \
    curl -fsSL https://pixi.sh/install.sh | bash

    # copy code
COPY pixi.lock pixi.toml ./

# install dependencies
RUN /root/.pixi/bin/pixi install -e default --frozen
RUN /root/.pixi/bin/pixi shell -e default && python -c "import torch; print(torch.cuda.is_available())"

Issue description
With either of the Dockerfile provided the command DOCKER_BUILDKIT=1 docker build  --network=host . results in:
 > [6/6] RUN /root/.pixi/bin/pixi shell -e default && python -c "import torch; print(torch.cuda.is_available())":
0.073   × The platform you are running on should at least have the virtual package
0.073   │ __cuda on version 12, build_string: 0
0.073

When I run locally pixi install && pixi shell, it works without a problem.
Output of pixi info:
      Pixi version: 0.29.0
          Platform: linux-64
  Virtual packages: __unix=0=0
                  : __linux=5.15.0=0
                  : __glibc=2.35=0
                  : __cuda=12.4=0
                  : __archspec=1=zen3
         Cache dir: /home/szabi/.cache/rattler/cache
      Auth storage: /home/szabi/.rattler/credentials.json
  Config locations: No config files found

Project
------------
              Name: pixi-cuda
     Manifest file: /home/szabi/repos/mvrepo/pixi.toml
      Last updated: 18-09-2024 09:20:54

Environments
------------
       Environment: default
          Features: cuda, default
       Solve group: default
          Channels: conda-forge
  Dependency count: 1
      Dependencies: python
  Target platforms: linux-64

Output of RUN pixi info | while IFS= read -r line; do printf "%s\n" "$line"; done inside the Dockerfile, which confirms that cuda is indeed not available:
#12 [6/7] RUN pixi info | while IFS= read -r line; do printf "%s\n" "$line"; done
#12 0.204       Pixi version: 0.29.0
#12 0.204           Platform: linux-64
#12 0.204   Virtual packages: __unix=0=0
#12 0.204                   : __linux=5.15.0=0
#12 0.204                   : __glibc=2.35=0
#12 0.204                   : __archspec=1=zen3
#12 0.204          Cache dir: /root/.cache/rattler/cache
#12 0.204       Auth storage: /root/.rattler/credentials.json
#12 0.204   Config locations: No config files found
#12 0.204
#12 0.204 Project
#12 0.204 ------------
#12 0.204               Name: pixi-cuda
#12 0.204      Manifest file: /app/code/pixi.toml
#12 0.204       Last updated: 18-09-2024 06:20:54
#12 0.204
#12 0.204 Environments
#12 0.204 ------------
#12 0.204        Environment: default
#12 0.204           Features: cuda, default
#12 0.204        Solve group: default
#12 0.204           Channels: conda-forge
#12 0.204   Dependency count: 1
#12 0.204       Dependencies: python
#12 0.204   Target platforms: linux-64
#12 0.204
#12 0.204
#12 DONE 0.2s

The output of nvidia-smi:
Wed Sep 18 09:32:05 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.90.07              Driver Version: 550.90.07      CUDA Version: 12.4     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 3090        On  |   00000000:05:00.0 Off |                  N/A |
|  0%   34C    P8             16W /  300W |      31MiB /  24576MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
|   1  NVIDIA GeForce RTX 3090        On  |   00000000:0F:00.0 Off |                  N/A |
|  0%   37C    P8             14W /  300W |      11MiB /  24576MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A      1424      G   /usr/lib/xorg/Xorg                             14MiB |
|    0   N/A  N/A      1739      G   /usr/bin/gnome-shell                            8MiB |
|    1   N/A  N/A      1424      G   /usr/lib/xorg/Xorg                              4MiB |
+-----------------------------------------------------------------------------------------+

Output of nvcc --version:
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Thu_Nov_18_09:45:30_PST_2021
Cuda compilation tools, release 11.5, V11.5.119
Build cuda_11.5.r11.5/compiler.30672275_0

Docker version:
Docker version 27.1.2, build d01f264

Also tried setting system-requirements = {cuda = "11"} based on the nvcc --version output, still no luck.
Similar issues I found was: #1355  and #294
Expected behavior
I wouldn't expect that the official ghcr.io/prefix-dev/pixi:0.29.0-jammy-cuda-12.1.1 or the official pytorch image wouldn't contain CUDA, and if CUDA is available, I would expect that pixi would be able to recognize it.

If you actually need to run cuda code in the build step you might want to take a look at this: https://stackoverflow.com/a/61737404
Otherwise you can spoof the existence of a CUDA driver by setting the CONDA_OVERRIDE_CUDA variable. Here is an example that worked for me based on your input:
The pixi.toml:
[project]
name = "pixi-cuda"
channels = ["conda-forge"]
platforms = ["linux-64"]

[host-dependencies]
python = "<=3.11"

[feature.cuda]
platforms = ["linux-64"]
system-requirements = {cuda = "12.1"}

[environments]
default = {features = ["cuda"], solve-group = "default"}

[dependencies]
pytorch = ">=2.4.0,<3"

The Dockerfile
# syntax=docker/dockerfile:1
FROM ghcr.io/prefix-dev/pixi:0.29.0-jammy-cuda-12.1.1 AS build

COPY pixi.lock pixi.toml ./

# Spoof the existence of a CUDA driver (otherwise this gets tested by running `nividia-smi` in the image which doesn't exist)
ENV CONDA_OVERRIDE_CUDA=12.1

# Install dependencies and make the layer cacheable, run with '--locked' to get an error before installing unnecessary dependencies
RUN pixi install --locked
# Run with `--frozen` or `--locked` to avoid two installations
RUN pixi run --frozen python -c "import torch; print(torch.cuda.is_available())"

The command I used:
DOCKER_BUILDKIT=1 docker build  --network=host .

Thanks for the quick feedback!
I don't necessarily need to run cuda code during build time, I just ended up with images that didn't have cuda available according to torch.cuda.is_available()), so I though I would check it in the build stage, but seems like that wouldn't help me. 🤔
I also had nvidia-container-runtime enabled, so not sure why cuda wasn't available without the trick during build time.
Still the original issue persists, in the final images I end up with no cuda available, should I create a new issue for that, or is it something that is completely out of scope of pixi?
Thanks again!

After the build you need to tell docker to use the nvidia runtime:
$ docker run --rm -it --runtime=nvidia --gpus all cuda-pixi-torch
root@c19afbe7a7e4:/# pixi run --frozen python -c "import torch; print(torch.cuda.is_available())"
True
root@c19afbe7a7e4:/# nvidia-smi
Wed Sep 18 08:06:08 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 555.58.02              Driver Version: 555.58.02      CUDA Version: 12.5     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 3050 ...    Off |   00000000:01:00.0  On |                  N/A |
| N/A   68C    P0             11W /   40W |    3355MiB /   4096MiB |     12%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
+-----------------------------------------------------------------------------------------+

Ah, my bad. Thank you again! Issue can be closed :)


Advanced Copy as SQL doesn't copy table name as case sensitive

System information:

Operating system (distribution) and version: MacOS Monterey
DBeaver version: 21.3.2 Community

Connection specification:

Database name and version: Postgres 12
Driver name: PostgreSQL JDBC Driver
Do you use tunnels or proxies (SSH, SOCKS, etc)? No

Describe the problem you're observing:
When copying result row in order to get an insert SQL statement the table name is not copied with double quotes and proper (case sensitive) table name.
Example table name "investmentRounds" is copied as "investmentrounds" and without quotes. This kind of statement doesn't work and the name of the table must be corrected.
Steps to reproduce, if exist:

Select some data
Highlight a row in the results tab
Right click -> Advanced Copy -> Copy as SQL
Paste in editor and notice the table name to be all lower case

Hello @alesito85
Have you tried to change Copy settings?

Ok. Can you please test the Early Access version? https://dbeaver.io/files/ea/
Maybe it was fixed here - https://github.com/dbeaver/dbeaver/issues/15059

I've tried, but dmg file seems incomplete (using MacBook Air M1) and .tar.gz doesn't appear to work either. I've tried downloading same arch.

@LonwoLonwo I've tried it using this method and it worked (I was able to launch this version of DBeaver - verified in about, build number). However the issue with advance copy persists, I've verified that case is set to "as is".

Can you please provide a screen of your Export SQL settings?
I can't reproduce, unfortunately.

Here you have.

Hmm... Ok. And what about table DDL?

Here's the DDL:

-- Drop table

-- DROP TABLE public."walletTrackingAddresses";

CREATE TABLE public."walletTrackingAddresses" (
	id serial4 NOT NULL,
	"name" varchar(255) NOT NULL,
	address varchar(255) NOT NULL,
	"lastEntryDate" timestamptz NOT NULL,
	"createdAt" timestamptz NULL DEFAULT CURRENT_TIMESTAMP,
	"updatedAt" timestamptz NULL DEFAULT CURRENT_TIMESTAMP,
	CONSTRAINT "walletTrackingAddresses_pkey" PRIMARY KEY (id)
);```

thanks for the report and clarification

When identifier case is set to lower, it doen't work. Upper case works only for table name, but not for table names

Identifier was set to "as is".

Verified


SW-5103 Remove 'Accelerator' feature flag and bake it in

This feature flag was hiding the console and deliverables.

#2374  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @nickgraz and the rest of your teammates on  Graphite

Do we need to remove featureFlagAccelerator from useAccelerator?

I am blind, please ignore.


Rule Idea: Pipeline Type Checking against Output

This is just a spitball idea to contribute feedback if it is maybe feasible, I might consider attempting a PR
Problem
Often when writing a pipeline you may pipe an incompatible type, and you won't find out until runtime.
Proposed solution
If the output type of a function can be explicitly determined by:

Use the .OUTPUT comment based help section to define the output type of a function
Take all explicit return keywords that explicitly cast to a type e.g. return [MyType]@{} or can be simply derived from a typed variable e.g. $f = [MyType]::new();return $f

And the function being called either to or from meets the following criteria:

Has strictly typed non-primitive parameter or ValueFromPipeline

Then we should be able to safely issue a warning or error stating something like "MyFunction expected [MyType] but is receiving [WrongType] via the pipeline" as a static analysis.
#Issues

Easily castable types like string we have to exclude, they will basically always match
Probably should support/detect explicit casts or interfaces

Prior Art
How JSDoc can be used to test for type safety in normally-untyped javascript.

This will be very challenging to implement and not able to analyse most cases due to the need to determine the output type. PSSA just parses the AST so if the function's output that is being piped is not defined in the file being analyzed, then how would PSSA know? In some rules, PSSA makes Get-Command calls to get information about cmdlets available on the system, this is a very expensive operation though. Therefore only with the last suggestion, would PSSA be able to determine the output type in some cases.
Powershell is dynamic by design and therefore  analysis is limited as it is not strongly typed and compiled like C#. I feel like the effort might be not in relation to the value here, given that the rule won't be able to analyse many cases due to lack of information.

Appreciate the feedback, and I'm aware of this aspect, hence why I was trying to limit the scope. Analysis across multiple files is an issue as mentioned, and the goal wouldn't be for it to be foolproof, it would only be in the specific circumstances where it could make the reasonable assertion, basically to catch obvious mistakes during write-time rather than run-time.

@JustinGrote - Output Type can also be defined as an attribute of the function/cmdlet as per this doc and I had suggested (& wanted to work on adding functionality into the core engine) via this Issue


Unable to load the requested language file: language/english/general_lang.php

Hi Waifung..thanks for the great code.. may i know why i face this problem if i want to access the frontend.
Unable to load the requested language file: language/english/general_lang.php

Hi CdaGanache,
Did you make any changes after the first clone?
You can check if the value from your config file (applications/frontend/config/config.php) and find out this line: $config['language']	= 'en';
The value above should match with the language name under: applications/frontend/language/
Alternatively, you can also create a folder as: "applications/frontend/language/english/" and create an empty file "general_lang.php" inside that folder, then see if the problem can be solved.

ok..thanks it's work.. by the way i have so much problem with my system that i developed right now.. i'm using grocery crud and have so much problem to integrate with  login and  pdf to generate reports.. i'm using mpdf library to create .pdf file. but it won't works.. i failed to call some field from database also failed to create login page.. the login must not integrate with emel just a simple login but i failed to do the best..i'm stuck right now and the dateline is around the corner. do you have any good idea how can i try to solve it . ='(

First of all, I suggest you need to figure out the problem causes and know how to debug at this first steps, as you are telling quite a lots of problems here, and you better handle them one by one.
When you say something doesn't work, I think at least you need to describe the error you are encountering (even a blank page, or 403 error, etc.), and I suggest you to make use of Developer Tool from browser (e.g. Firefox, Chrome) to see if they provide more messages to you.
If you need to see more PHP error messages, you can call some functions like this:
ini_set('display_errors',1);
ini_set('display_startup_errors',1);
error_reporting(E_ALL);

Back to your question, Grocery Crud should have nothing done with your login page, and you should solve the login issue without using Grocery Crud first. Right now I don't have any good suggestion on PDF export library yet, so sorry for this.

ok.. thanks so much then.. i will try phase by phase after this.. thanks yaa =')

Hi there.. i had fixed the problem 70% and success to combine your codes and mine. =')
Before this in my page i have export and print button..but when i combine the button doesn't appear.. can you please help me to explain how to make the button appear again? thanks in advance =')

You will find some code from: applications/backend/helpers/crud_helper.php where I have disabled them by calling unset_print() and unset_export() by default. To enable them again, just comment out the lines and should be fine.

yeayyyyyyyyyyyy!!!!!!!!!!!!! i found it and it works!! thanksssssss Michael Chan!! =')

You're welcome :)
I am closing this issue now and hope you will do well in your project.


fix name style to reflect actual name in code

Calling it literally teardown() when it is actually tearDown() confused me and probably others. Fixes #190

rad, thanks!  I also aliased it to teardown in case anyone has out of date docs or something :)


[Hacktoberfest] React + Material UI | Feel free to find issues and fix them

We are a small project but with a great desire to inspire people.
💡 Think simple and do great things. 🎉
Fork the repository and try to include new features.
If you find 🔍  something that needs adjustment, please feel free to fix it. 🔧

Hi @AndrGab I just opened #51, could you check if that's a valid issue?

Hi @AndrGab I opened #57, would you please check and assign the issue to me.


Remove various return annotations that were stifling type inference.

Overview: What does this pull request change?
Changes the type annotations of methods on Mobject and VMobject
Motivation and Explanation: Why and how do your changes improve the library?
Code like the following is very common when using manim.
rect = Rectangle(width=1.0, height=4.0).shift(RIGHT)

You really want type inference to realize that rect is of type Rectangle to get good auto completion
The current annotations explicitly force the return type to MObject, which is far less useful.
I've simply removed all the annotations, as mypy inference is perfectly capable of realizing the correct return type by inspecting the function body, and the docs generally explicitly say "returns self".
Alternatively, we could use a TypeVar, which is what Mobject.copy does. But I felt that was unneccessary.
I've only attacked the two largest classes - the same issue is all over the code base. I've not touched methods that don't return self, though I suspect a few of them could have more specific return types.
I've also updated the docstrings to be more consistent about what is returned.
Links to added or changed documentation pages
https://manimce--2408.org.readthedocs.build/en/2408/

Further Information and Comments
You may want to create an issue to update the rest of the codebase in a similar fashion.

Reviewer Checklist

[ ] The PR title is descriptive enough for the changelog, and the PR is labeled correctly
[x] If applicable: newly added non-private functions and classes have a docstring including a short summary and a PARAMETERS section
[x] If applicable: newly added functions and classes are tested

In terms of documentation you are right, nothing changes. I've also tested the behavior of this locally in my VS Code, and I can confirm that the type inference improves.

Alternatively, we could use a TypeVar, which is what Mobject.copy does. But I felt that was unneccessary.

I somewhat dislike going for two different type hint approaches simultaneously. Could you maybe elaborate why you felt that adding a return type via a TypeVar was unneccessary?

In terms of documentation you are right, nothing changes. I've also tested the behavior of this locally in my VS Code, and I can confirm that the type inference improves.

Alternatively, we could use a TypeVar, which is what Mobject.copy does. But I felt that was unneccessary.

I somewhat dislike going for two different type hint approaches simultaneously. Could you maybe elaborate why you felt that adding a return type via a TypeVar was unneccessary?

I somewhat dislike going for two different type hint approaches simultaneously.

So do I.
We're already defining T, so my first idea was to do something like this:
def add(self, *mobjects: T) -> T:

The problem with that is:
s = Square()
t = Circle()
a = s.add(t)

Here the inferred type of a is Circle. And if you do
a = s.add(s, t)

instead, you end up with a Square | Circle type.
So this can't be done.
But what about this:
def add(self: T, *mobjects: "Mobject") -> T:

This should always work, right?

I somewhat dislike going for two different type hint approaches simultaneously.

So do I.
We're already defining T, so my first idea was to do something like this:
def add(self, *mobjects: T) -> T:

The problem with that is:
s = Square()
t = Circle()
a = s.add(t)

Here the inferred type of a is Circle. And if you do
a = s.add(s, t)

instead, you end up with a Square | Circle type.
So this can't be done.
But what about this:
def add(self: T, *mobjects: "Mobject") -> T:

This should always work, right?

I just realized, that's exactly how Mobject.copy does it and I reinvented the wheel...

I just realized, that's exactly how Mobject.copy does it and I reinvented the wheel...

copy needs annotations as type inference isn't capable of figuring it out. That's not the case for return self methods, which are easily inferred. Of which there are millions (the vast majority of return self methods in the code base have no return annotation).
I feel adding type hints would be a large change, and a lot of extra code, for no tangible benefit.

copy needs annotations as type inference isn't capable of figuring it out. That's not the case for return self methods, which are easily inferred. Of which there are millions (the vast majority of return self methods in the code base have no return annotation).
I feel adding type hints would be a large change, and a lot of extra code, for no tangible benefit.

[...] no tangible benefit.

I do think there's an advantage to being more explicit: Without having to dive into anything else, I can tell by just looking at this one line
def add(self: T, *mobjects: "Mobject") -> T:

that this method returns self (or something of that type).
If we don't have that, it'd be very easy for a forgotten return self to slip through the cracks and end up in production.

I feel adding type hints would be a large change [...]

That kind of change is exactly what we need moving forward with Manim. Everything has to be more explicit, better checked and less inferred or implicit.

[...] no tangible benefit.

I do think there's an advantage to being more explicit: Without having to dive into anything else, I can tell by just looking at this one line
def add(self: T, *mobjects: "Mobject") -> T:

that this method returns self (or something of that type).
If we don't have that, it'd be very easy for a forgotten return self to slip through the cracks and end up in production.

I feel adding type hints would be a large change [...]

That kind of change is exactly what we need moving forward with Manim. Everything has to be more explicit, better checked and less inferred or implicit.

Without having to dive into anything else, I can tell by just looking at this one line

It's already in the docstring.

That kind of change is exactly what we need moving forward with Manim. Everything has to be more explicit, better checked and less inferred or implicit.

Ok, have fun doing that. I am no longer interested enough in this PR to push it further.

It's already in the docstring.

Yes it is, but it isn't enforced:

If we don't have that, it'd be very easy for a forgotten return self to slip through the cracks and end up in production.

And I think everything that can easily be expressed in code (which this in my opinion can) should be, rather than in comments.

I am no longer interested enough in this PR to push it further.

I'm very sorry to hear that. Thanks for your contribution, anyway!

If we don't have that, it'd be very easy for a forgotten return self to slip through the cracks and end up in production.

I don't see how something like that can realistically happen with tests and our review process. IMO, return self methods are common and simple enough that adding explicit typehints adds no real benefit. But if someone takes the time to do it, I won't oppose.

I personally want Manim to use type hints everywhere. I think that would generally improve the code a lot.
It's true that types are a pain most of the time. But the few times when they do save your butt, you're damn glad you have them.
So I think there should be a very good reason for not using that safety net, and I don't think return self methods offer such a reason.
But yeah, that's just my opinion: I use C++ everywhere I can because of it's amazing static typing, I use TypeScript rather than JavaScript even if it takes +5h to set up and I use Python typehints for everything that I care about in the slightest.


How to delete a previous instance?

Thank you for the awesome work.
I'm using meteor-now with my toy project.
Is there any standard way to re-deploy my project? When I just deploy again through meteor-now,  It seems just create another instance which is I'm not going to use anymore.
Thank you for your help, in advance.

Since your Meteor app was deployed to now, you can use their commands to manage your deployment. See this blog post on their site.
In short, you can do now ls to get a listing of all your deployments.
$ now ls

  homepage

      Ai6etlM1hCS6urt      41m ago      https://homepage-jciasjead.now.sh
      0Z6uRTyEs3z8IKD       2h ago      https://homepage-kugudsvdc.now.sh

and then run now rm <id> to remove any instance you want
$ now rm 0Z6uRTyEs3z8IKD
  > The following deployment will be permanently removed:
    0Z6uRTyEs3z8IKD  	  2h ago      https://homepage-kugudsvdc.now.sh
    Are you sure? [Y/N]

As a side note, now will always deploy and give you a new instance with a unique url. You can point your deployment to a different url using now alias.
$ now alias 0Z6uRTyEs3z8IKD abc123
  > Success! Alias created (nC378596z8ArZz7EkfI0z3Rq):
https://abc123.now.sh now points to https://homepage-kugudsvdc.now.sh (0Z6uRTyEs3z8IKD) [copied to clipboard]

Wonderful!! It works beautifully.. Thank you for the answer @purplecones  🙏 🙏 🙏


Move ChannelMessage to chain.rs and rename

as discussed on https://github.com/shotover/shotover-proxy/pull/652

Should it be named BufferedChainMessages (with a plural) due to containing a Messages not a Message?


CREATE SCHEMA IF NOT EXISTS | Mis-translated?

What happens?

CREATE SCHEMA IF NOT EXISTS ... on an attached PostgreSQL DB seems to be translated to CREATE SCHEMA ....
The IF NOT EXISTS "segment" is not respected.

To Reproduce
SETUP:

Set the PostgreSQL libpq env vars to successfully connect to a DB.
Ensure permissions to CREATE SCHEMA on that DB are given.
Ensure that DB is empty.

SQL SCRIPT:
ATTACH '' AS psql (TYPE postgres);

CREATE SCHEMA IF NOT EXISTS psql.s;

RESULT:

Works on the first run, when the s schema is non-existent on the PostgreSQL DB.
Fails on the second because it attempts to create the already-present s schema on the PostgreSQL DB.

OBSERVATION:

Interestingly, a CREATE TABLE IF NOT EXISTS seems to be respected.

CLI SESSION:
$ duckdb < ups.sql
Invalid Error: Failed to execute query "BEGIN TRANSACTION;
CREATE SCHEMA "s"": ERROR:  schema "s" already exists
$

OS:
macOS (likely irrelevant)
PostgreSQL Version:
13 (likely irrelevant)
DuckDB Version:
v0.10.1 4a89d97db8
DuckDB Client:
macOS CLI
Full Name:
Tiago Montes
Affiliation:
Freelance Consultant
Have you tried this on the latest main branch?

[X] I agree

Have you tried the steps to reproduce? Do they include all relevant data and configuration? Does the issue you report still appear there?

[X] I agree

(heads-up: my C++ skills are severely outdated, last time I worked with it was nearly 20 years ago!!! yeah, early days!)
FURTHER DIAGNOSTIC:

The relevant code seems to be PostgresSchemaSet::CreateSchema.
A hard-coded CREATE SCHEMA is used.
Seems to disregard the CreateSchemaInfo's on_conflict member.

WHERE I LEARNED THIS:
(Digged through duckdb's code and found)

CreateSchemaInfo with its on_conflict member...
...that seems to be used here to adequately generate the correct CREATE SCHEMA statements (within DuckDB, I suppose!).

MY FEEL:

Adapting the same on_conflict-based CREATE SCHEMA generation code on this extension should be easy to accommodate -- from the inspiration in DuckDB's code.

MY (failed) ATTEMPT:
(not that I feel very confident in submitting a PR for this!)

Tried building from source:

Builds ok.
Runtime failure when connecting to PostgreSQL.

Using macOS 12.7.4 + Xcode tools + brew-installed CMake.
Cloned this repo + followed guidance in the README.
I get a (very) interesting failure in connecting to PostgreSQL:

$ ./build/release/duckdb -unsigned
v0.10.1 4a89d97db8
Enter ".help" for usage hints.
D LOAD 'build/release/extension/postgres_scanner/postgres_scanner.duckdb_extension';
D ATTACH '' AS psql (TYPE postgres);
IO Error: Unable to connect to Postgres at : connection to server at "psql.lan.tmont.es" (<IP_ADDRESS>), port 5432 failed: FATAL:  no PostgreSQL user name specified in startup packet
connection to server at "psql.lan.tmont.es" (<IP_ADDRESS>), port 5432 failed: FATAL:  no PostgreSQL user name specified in startup packet

(same shell, brew installed CLI)
tiago.montes (~/Temp/x-ddb-psql/postgres_scanner): duckdb
v0.10.1 4a89d97db8
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
D ATTACH '' AS psql (TYPE postgres);
D .exit

THOUGHTS:

Something must be wrong in my build process...
...but I could not figure out what, after having strictly followed the README.

PARTING WORDS:

Thanks for acknowledging (or not!) that this is a bug.
Happy to contribute with a fix PR, but I will need hand holding...
...happy to review PRs once I get my build process working.

All in all, thanks for a wonderful project!
Cheers

Thanks for the report! I have a fix open at https://github.com/duckdb/postgres_scanner/pull/199

Wow, thanks for the quick response!... :-)
In wanting to try your proposed change, I built it locally with:
$ git clone git@github.com:Mytherin/postgres_scanner.git
$ cd postgres_scanner
$ git checkout -b createschemaifnotexists origin/createschemaifnotexists
$ git submodule init
$ git pull --recurse-submodules
$ make
...
$ echo $?
0

Running it fails on attach with a "no PostgreSQL user name specified in startup packet" error message:
$ ./build/release/duckdb -unsigned
v0.10.1 4a89d97db8
Enter ".help" for usage hints.
D LOAD 'build/release/extension/postgres_scanner/postgres_scanner.duckdb_extension';
D ATTACH '' AS psql (TYPE postgres);
IO Error: Unable to connect to Postgres at : connection to server at "psql.lan.tmont.es" (<IP_ADDRESS>), port 5432 failed: FATAL:  no PostgreSQL user name specified in startup packet
connection to server at "psql.lan.tmont.es" (<IP_ADDRESS>), port 5432 failed: FATAL:  no PostgreSQL user name specified in startup packet

D .exit
$

This is no different from what I experienced yesterday -- running the brew-installed version works:
$ duckdb
v0.10.1 4a89d97db8
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
D ATTACH '' AS psql (TYPE postgres);
D .exit
$

I understand this is a different topic -- but could you share any hint as to how I can diagnose my non-working builds?
Again, thanks a lot.

I'm not sure what's going wrong there. Maybe just try the nightly build in a few hours when CI finishes building it:
INSTALL postgres FROM 'http://nightly-extensions.duckdb.org';

I'm not sure what's going wrong there. Maybe just try the nightly build in a few hours when CI finishes building it:

Thanks, I'll do just that!


Discussion for Windows Terminal Status Updates

Please use this issue to comment on or ask questions about status updates posted in #3600

I see you missing this feature in Terminal 1911 changelog (or is it not release in this ver?)
Increase left padding around tabs

The list of changes in the status update is intended to be a broad overview. The fine-grained changelog will be available on the Releases page with the release.

What are the keybinds for opening a new pane and splitting vertically or horizontally?

I would suggest linking to the relevant commits/pull requests/issues inside the status update messages.

@JushBJJ they can be found here: #3544 😊

The new wt open new terminal and split commands look great. I've often wanted this so that I can boot up a project consisting of multiple servers all at once. Will we be able to run arbitrary commands in each pane in addition to choosing a profile?

@mnpenner Yep! Both new-tab and split-pane support passing a commandline. See this doc for details.

@DHowett Maybe update #3600 or if not atleast unpin/close it...

@AnuthaDev I’m not the person who updates #3600. What info are you looking for, specifically?

@DHowett Not anything in particular, its just... weird that a pinned issue has outdated info...

I have a .exe application that right now opens with the regular powershell. Is there a way to make it open with the new windows terminal? Can I ship it with this new app?

@Ricardonacif The work that's being done in #492 will let any application open in the Terminal window by default, instead of the vintage console. So hopefully in the near future, you won't have to do anything at all.

@Ricardonacif The work that's being done in #492 will let any application open in the Terminal window by default, instead of the vintage console. So hopefully in the near future, you won't have to do anything at all.

But if I need it right now, do you suggest me anything? My idea was to ship the Windows Terminal with the application, and ship a .ps1 file that would open the Windows Terminal with parameters to run my .exe file. Makes sense?

We've kinda gone in another direction with posting status updates. I'm gonna close this one out for now.


struggle testing

Add a script to get the Cilium version to downgrade to instead of
hardcoding it in the workflow file. The script uses the top-level
VERSION file to infer the previous version.
Check out the git branch to get the Helm chart instead of doing a wget
to download the source archive.

Signed-off-by: Michi Mutsuzaki<EMAIL_ADDRESS>

/test

/ci-ipsec-upgrade

/ci-ipsec-upgrade

/test


change go version in github action

Signed-off-by: Chen Jing<EMAIL_ADDRESS>Change the go verison to 1.19 in github action

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@770ce94). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #38   +/-   ##
=======================================
  Coverage        ?   57.21%
=======================================
  Files           ?        4
  Lines           ?      575
  Branches        ?        0
=======================================
  Hits            ?      329
  Misses          ?      222
  Partials        ?       24

Flag
Coverage Δ

unittests
57.21% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Use async/await in project-loader in docs

Fixes #266.
We can leave this until #263 gets merged.

We're working on refactoring the docs, and this would be covered by that. Thanks!


Local plugins

Hello,
I'm going through the example in https://buildkite.com/docs/plugins/writing and trying to create the plugin in my existing local codebase.
Below is the directory structure
file-counter-buildkite-plugin ➤ tree
.
├── README.md
├── hooks
│   └── post-command
├── package.json
├── plugin.yml
└── tests
    └── post-command.bats

In order to use this plugin, I have to add this to my pipeline
steps:
  - command: ls
    plugins:
      - ./ci/buildkite/plugins/file-counter-buildkite-plugin#v1.0.0:
          pattern: '*.md'

Therefore, I want to add that to my README as well.
However, plugin-linter-buildkite-plugin doesn't like my command when I try to validate my plugin
file-counter-buildkite-plugin ➤ docker run -it --rm -v "$(PWD):/plugin:ro" buildkite/plugin-linter --id ./ci/buildkite/plugins/file-counter-buildkite-plugin                                                              git:scratch/changd/buildkite*
lint

Lint a buildkite plugin

Options:
  --id, --name  Id of the plugin (e.g. my-org/my-plugin)     [string] [required]
  --path        Path to the plugin                           [string] [required]
  --readme      Readme filename                  [string] [default: "README.md"]
  --help        Show help                                              [boolean]

--id can not end with -buildkite-plugin. Did you mean ./ci/buildkite/plugins/file-counter?

I also tried versioning it.
steps:
  - command: ls
    plugins:
      - ./ci/buildkite/plugins/file-counter-buildkite-plugin#v1.0.0:
          pattern: '*.md'

file-counter-buildkite-plugin ➤ docker run -it --rm -v "$(PWD):/plugin:ro" buildkite/plugin-linter --id ./ci/buildkite/plugins/file-counter-buildkite-plugin\#v1.0.0
TAP version 13
ok 1 - plugin.yml is valid
not ok 2 - No readme config examples found with plugin id './ci/buildkite/plugins/file-counter-buildkite-plugin#v1.0.0'. Have you configured the linter with the correct plugin id?
ok 3 - Readme version numbers are up-to-date (undefined)
1..3
# failed 1 of 3 tests
# time=50.012ms

@changusmc first and foremost, we're so sorry for the delay on getting back to you!
The issue you mention has a lot of pointy edges. To start with:

there is an issue with the --id validation that makes it invalid for it to end with buildkite-plugin unless it is a URL
the --id option should not have the versioning added to it
there is a bug in the linter that forces the version in the examples even when it is a local plugin

Finally, most of the issues arise from the fact that the documentation now states that you create a folder called file-counter-buildkite-plugin so that you have a git repository with that name afterwards. That is because of agent logic that will add the buildkite-plugin suffix if you specify a plugin as GITHUB_USER/PLUGIN_ID. But you don't have that scenario: your folder is part of a bigger repository and you are using it as part of the repository (in the lingo: a vendored  plugin), so it should not have the buildkite-plugin suffix in the folder name. That is what is causing you to run into these (somewhat) bugs.
With all that said, there are several steps that need to be taken:

make the documentation to write plugins a little bit better for the use-case you are mentioning
review and correct the bugs in the linter code (note that the last one I mentioned is already solved, but not released)

Once again, we regret it has taken us sooo long to take a look at this, we hope we will do better in the future :)


Merge to publish

Removed unused file
Updated Node and Python REST tutorials

Docs Build status updates of commit 6b73f5c:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/rest/node-tutorial.md
:white_check_mark:Succeeded

docs/rest/python-tutorial.md
:white_check_mark:Succeeded

docs/rest/terms-of-use.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


push notification production problem

hi
i have problem in push notification when using production environment . the out put is :
INFO: Trying tls://gateway.push.apple.com:2195...
INFO: Connected to tls://gateway.push.apple.com:2195.
INFO: Sending messages queue, run #1: 1 message(s) left in queue.
ApnsPHP[5792]: STATUS: Sending message ID 1 [custom identifier: Message-Badge-3] (1/3): 167 bytes.
ApnsPHP[5792]: INFO: Disconnected.
why i cant receive any notification ? what's steps i must follow for production ?

check your device token.
if you are using old APNS protocol (v1), APNS disconnects you when you pass invalid device token.
Make sure the token is in format [a-f0-9]{64} (inside php code)

I also have this problem. Apnsphp dont working, but simple ruby script work. Why so?
#!/usr/bin/env ruby

require 'openssl'
require 'socket'
require 'json'

token = "XXX"
cert = File.read("XXX/production.pem")
ctx = OpenSSL::SSL::SSLContext.new
ctx.key = OpenSSL::PKey::RSA.new(cert, '') #set passphrase here, if any
ctx.cert = OpenSSL::X509::Certificate.new(cert)

sock = TCPSocket.new('gateway.push.apple.com', 2195) #development gateway
ssl = OpenSSL::SSL::SSLSocket.new(sock, ctx)
ssl.connect

payload = {"aps" => {"alert" => "Oh hai!", "badge" => 1, "sound" => 'default'}}
json = payload.to_json()
token =  [token.delete(' ')].pack('H*') #something like 2c0cad 01d1465 346786a9 3a07613f2 b03f0b94b6 8dde3993 d9017224 ad068d36
apnsMessage = "\0\0 #{token}\0#{json.length.chr}#{json}"
ssl.write(apnsMessage)

ssl.close
sock.close

puts "End"


RichTextDemo Fonts Don't Display Correctly

The RichTextDemo does not display different font families correctly. Symptoms are not consistent -- I can't figure out what pattern the symptoms follow, but applying a different font family to selected text results in a different font being used, but not the one selected. For example, choosing Century Gothic results in some serif font being used. I have confirmed symptoms under both Windows and Linux Mint 21.
Below is a screenshot demonstrating the symptoms along with how the same text appears in LibreOffice Writer for comparison purposes.

It almost appears that Arial is being used by RichTextDemo for both Arial and Wingdings, but some kind of serif font for Century Gothic.

Expected Behavior
Select text, apply font family, and selected text is changed to selected font family
Actual Behavior
Select text, apply font family, and selected text is changed to some other font than what is chosen
Reproducible Demo
Run the RichTextDemo from current on the main branch, type in some text and select it, and choose a different font from the dropdown.
Environment info:

RichTextFX Version: 0.11.0
Operating System: Windows 10, Linux Mint Cinnamon 21
Java version: Java 17

It might be due to javafx.
There is no simple solution for the font issue in javafx.

I can confirm that it isn't JavaFX -- I have a different project which uses just a regular JavaFX TextArea and Century Gothic looks like it should.


DELL Unity CSI v2.7.0 - Incompatible helm values file specified - expected: , found: v2.7.0

Hi,
We are currently using dell unity csi version 1.6.0 offline installation  driver. We were in k8s version 1.19 and now upgraded it to 1.25 version. We tried upgrading the CSI version to v2.7.0 as below in offline installation mode and have been getting the error " Incompatible helm values file specified - expected: , found: v2.7.0" when we verify the driver. We have copied the values.yaml file from the csi-unity/csi-unity-bundle-2.7.0/helm/csi-unity/values.yaml
Can we directly upgrade from 1.6.0 to 2.7.0? If not possible, can we uninstall 1.6.0 and install 2.7.0 directly? will the volumes be impacted when we uninstall and reinstall the driver?
`./verify.sh --namespace unity --values ./values.yaml

Verifying Kubernetes and driver configuration

|- Kubernetes Version: 1.24
|
|- Driver: csi-unity
|
|- Verifying Kubernetes version
|
|--> Verifying minimum Kubernetes version                         Success
|
|--> Verifying maximum Kubernetes version                         Success
|
|- Verifying that required namespaces have been created             Success
|
|- Verifying that required secrets have been created                Success
|
|- Verifying that optional secrets have been created                Success
|
|- Verifying alpha snapshot resources
|
|--> Verifying that alpha snapshot CRDs are not installed         Success
|
|- Verifying sshpass installation..                                 |
|- Verifying iSCSI installation
Enter the root password of 10.x.x.x:
Success
|
|- Verifying snapshot support
|
|--> Verifying that snapshot CRDs are available                   Success
|
|--> Verifying that the snapshot controller is available          Success
|
|- Verifying helm version                                           WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /home/admin/dr-sanbox-cluster/dr-sanbox-cluster-kubeconfig.yml
WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /home/admin/dr-sanbox-cluster/dr-sanbox-cluster-kubeconfig.yml
Success
|
|- Verifying helm values version                                    Failed

Verification Complete - With Errors

Errors:

Incompatible helm values file specified - expected: , found: v2.7.0
`
The values.yaml file content is as below:

`cat csi-unity-bundle-2.7.0/helm/csi-unity/values.yaml
K8S/DRIVER ATTRIBUTES
########################
version: version of this values file
Note: Do not change this value
Examples : "v2.7.0" , "nightly"
version: "v2.7.0"
LogLevel is used to set the logging level of the driver.
Allowed values: "error", "warn"/"warning", "info", "debug"
Default value: "info"
logLevel: "info"
certSecretCount: Represents number of certificate secrets, which user is going to create for
ssl authentication. (unity-cert-0..unity-cert-n)
Allowed values: n, where n > 0
Default value: None
certSecretCount: 1
imagePullPolicy: Policy to determine if the image should be pulled prior to starting the container.
Allowed values:
Always: Always pull the image.
IfNotPresent: Only pull the image if it does not already exist on the node.
Never: Never pull the image.
Default value: IfNotPresent
imagePullPolicy: Always
Specify kubelet config dir path.
Ensure that the config.yaml file is present at this path.
Default value: None
kubeletConfigDir: /var/lib/kubelet
fsGroupPolicy: Defines if the underlying volume supports changing ownership and permission of the volume before being mounted.
Allowed values:
ReadWriteOnceWithFSType: supports volume ownership and permissions change only if the fsType is defined
and the volume's accessModes contains ReadWriteOnce.
File: kubernetes may use fsGroup to change permissions and ownership of the volume
to match user requested fsGroup in the pod's security policy regardless of fstype or access mode.
None: volumes will be mounted with no modifications.
Default value: ReadWriteOnceWithFSType
fsGroupPolicy: ReadWriteOnceWithFSType
#To set nodeSelectors and tolerations for controller.
controller: configure controller pod specific parameters
controller:
controllerCount: defines the number of csi-unity controller pods to deploy to
the Kubernetes release.
Allowed values: n, where n > 0
Default value: None
controllerCount: 1
volumeNamePrefix: Prefix of PersistentVolume names created
Allowed values: string
Default value: None
volumeNamePrefix: csivol
snapshot:
# enabled: Enable/Disable volume snapshot feature
# Allowed values:
#   true: enable volume snapshot feature(install snapshotter sidecar)
#   false: disable volume snapshot feature(do not install snapshotter sidecar)
# Default value: None
enabled: true
# snapNamePrefix: Prefix to apply to the names of a created snapshots
# Allowed values: string
# Default value: None
snapNamePrefix: csi-snap

resizer:
# enabled: Enable/Disable volume expansion feature
# Allowed values:
#   true: enable volume expansion feature(install resizer sidecar)
#   false: disable volume snapshot feature(do not install resizer sidecar)
# Default value: None
enabled: true
nodeSelector: Define node selection constraints for controller pods.
For the pod to be eligible to run on a node, the node must have each
of the indicated key-value pairs as labels.
Leave as blank to consider all nodes
Allowed values: map of key-value pairs
Default value: None
nodeSelector:
Uncomment if nodes you wish to use have the node-role.kubernetes.io/master taint
node-role.kubernetes.io/master: ""
Uncomment if nodes you wish to use have the node-role.kubernetes.io/control-plane taint
node-role.kubernetes.io/control-plane: ""
tolerations: Define tolerations for the controllers, if required.
Leave as blank to install controller on worker nodes
Default value: None
tolerations:
Uncomment if nodes you wish to use have the node-role.kubernetes.io/master taint
- key: "node-role.kubernetes.io/master"
operator: "Exists"
effect: "NoExecute"
Uncomment if nodes you wish to use have the node-role.kubernetes.io/control-plane taint
- key: "node-role.kubernetes.io/control-plane"
operator: "Exists"
effect: "NoSchedule"
healthMonitor:
# enabled: Enable/Disable health monitor of CSI volumes- volume state, volume condition
# Allowed values:
#   true: enable checking of health condition of CSI volumes
#   false: disable checking of health condition of CSI volumes
# Default value: None
enabled: false
# interval: Interval of monitoring volume health condition
# Allowed values: Number followed by unit of time (s,m,h)
# Default value: 60s
interval: 60s

node: configure node pod specific parameters
node:
dnsPolicy : Define the DNS Policy of the Node service.
ClusterFirstWithHostNet is the recommended and default DNS policy for the driver.
Prior to v1.6 of the driver, the default DNS policy was ClusterFirst.
In certain scenarios, users might need to change the default dnsPolicy.
Default value: None
dnsPolicy: "ClusterFirstWithHostNet"
healthMonitor:
# enabled: Enable/Disable health monitor of CSI Volumes - volume usage
# Allowed values:
#   true: enable checking of health condition of CSI volumes
#   false: disable checking of health condition of CSI volumes
# Default value: None
enabled: false
nodeSelector: Define node selection constraints for node pods.
For the pod to be eligible to run on a node, the node must have each
of the indicated key-value pairs as labels.
Leave as blank to consider all nodes
Allowed values: map of key-value pairs
Default value: None
nodeSelector:
Uncomment if nodes you wish to use have the node-role.kubernetes.io/master taint
node-role.kubernetes.io/master: ""
Uncomment if nodes you wish to use have the node-role.kubernetes.io/control-plane taint
node-role.kubernetes.io/control-plane: ""
tolerations: Define tolerations for the node daemonset, if required.
Default value: None
tolerations:
Uncomment if nodes you wish to use have the node-role.kubernetes.io/master taint
- key: "node-role.kubernetes.io/master"
operator: "Exists"
effect: "NoExecute"
Uncomment if nodes you wish to use have the node-role.kubernetes.io/control-plane taint
- key: "node-role.kubernetes.io/control-plane"
operator: "Exists"
effect: "NoExecute"
- key: "node.kubernetes.io/memory-pressure"
operator: "Exists"
effect: "NoExecute"
- key: "node.kubernetes.io/disk-pressure"
operator: "Exists"
effect: "NoExecute"
- key: "node.kubernetes.io/network-unavailable"
operator: "Exists"
effect: "NoExecute"
Uncomment if CSM for Resiliency and CSI Driver pods monitor are enabled
- key: "offline.vxflexos.storage.dell.com"
operator: "Exists"
effect: "NoSchedule"
- key: "vxflexos.podmon.storage.dell.com"
operator: "Exists"
effect: "NoSchedule"
- key: "offline.unity.storage.dell.com"
operator: "Exists"
effect: "NoSchedule"
- key: "unity.podmon.storage.dell.com"
operator: "Exists"
effect: "NoSchedule"
- key: "offline.isilon.storage.dell.com"
operator: "Exists"
effect: "NoSchedule"
- key: "isilon.podmon.storage.dell.com"
operator: "Exists"
effect: "NoSchedule"
CSM module attributes
service to monitor failing jobs and notify
podmon:
enabled - flag to enable or disable podmon
allowed values : boolean
defaule value : None
Examples : true , false
enabled: false
image - image name
allowed values - string
default value : None
Example : "podman:latest", "pod:latest"
image: dr-registry.xyz.in/dell-csi-2.7/podmon:v1.6.0
controller:
args:
- "--csisock=unix:/var/run/csi/csi.sock"
- "--labelvalue=csi-unity"
- "--driverPath=csi-unity.dellemc.com"
- "--mode=controller"
- "--skipArrayConnectionValidation=false"
- "--driver-config-params=/unity-config/driver-config-params.yaml"
- "--driverPodLabelValue=dell-storage"
- "--ignoreVolumelessPods=false"
node:
args:
- "--csisock=unix:/var/lib/kubelet/plugins/unity.emc.dell.com/csi_sock"
- "--labelvalue=csi-unity"
- "--driverPath=csi-unity.dellemc.com"
- "--mode=node"
- "--leaderelection=false"
- "--driver-config-params=/unity-config/driver-config-params.yaml"
- "--driverPodLabelValue=dell-storage"
- "--ignoreVolumelessPods=false"
The below parameters have been discontinued for configuration from secret.yaml and will have to be configured only in values.yaml
syncNodeInfoInterval - Time interval to add node info to array. Default 15 minutes. Minimum value should be 1.
Allowed values: integer
Default value: 15
Examples : 0 , 2
syncNodeInfoInterval: 15
allowRWOMultiPodAccess - Flag to enable sharing of volumes across multiple pods within the same node in RWO access mode.
Allowed values: boolean
Default value: "false"
Examples : "true" , "false"
allowRWOMultiPodAccess: "false"
maxUnityVolumesPerNode - Maximum number of volumes that controller can publish to the node.
Allowed values: integer
Default value: 0
Examples : 0 , 1
maxUnityVolumesPerNode: 0
tenantName - Tenant name that need to added while adding host entry to the array.
Allowed values: string
Default value: ""
Examples : "tenant2" , "tenant3"
tenantName: ""
images:
"driver" defines the container image, used for the driver container.
driverRepository: dr-registry.xyz.in/dell-csi-2.7
`

registry.xyz

Hi @anieshmathew I would suggest uninstalling 1.6.0 and installing 2.7.0. This will not have any impact on the volumes created. Thanks.


Extra Energy Bomb knocks out Electrode before effect

While this is probably the better solution for now. I think prize taking should be delayed until after the effect is finished. Prize taking should never happen until all what's stated in an ability/power/body is finished.
There are rulings regarding the electrode discard, saying you can attach the energy discarded with it, so current implementation is ideal in most cases. But in a situation where the opponent knows what its prizes are ("Here Comes Team Rocket!" from TRR), picking the prizes before the ability effect is finished could have a negative impact on said player.
@axpendix is there some method to stop and queue (not prevent) prize-taking events someone receives, and execute them only when another method re-enables them? Discard should still happen. (Alternatively, since it's a KO by its own ability and there's no modifier for prizes for something like that, that I'm aware of; it could prevent the prizes and just give 2 prizes at the end)

Here Comes Team Rocket! is the only card I know of in the EX format that looks at prizes, and it's unplayable. I agree that the effect should take place before the knockout but I am 99% sure it will never be relevant. I think an easy fix could be discarding all energy from Electrode ex before checking the discard pile for energy to attach.

Yup, it's a niche fix at best; not really a priority :P
That could be an option, and assuming what I'm working on for another card functions correctly, it could also allow to select a new active as if electrode was knocked out already. Might test with it more, but once the update is pushed (current behavior here is more than enough!)


Building VI tester results in missing VI

I have built vi tester ogp using build.vi and installed it. Right now during LV open or VI tester GUI launch lv cannot load some VI tester vis.

Did you build VI Tester toolkit itself? Or what exactly did you build?

Yes, VI Tester toolkit itself using build.vi


why Placeholders in Git URI the{application} matching spring.cloud.config.name?

Placeholders in Git URI the{application} matching spring.application.name or spring.cloud.config.name
this is my config:
client config

server config

when I start server config and client config , the server config clone git repository using
2018-04-13 13:58:46.856 DEBUG 255696 --- [io-9090-exec-10] .m.m.a.ExceptionHandlerExceptionResolver : Resolving exception from handler [public org.springframework.cloud.config.environment.Environment org.springframework.cloud.config.server.environment.EnvironmentController.labelled(java.lang.String,java.lang.String,java.lang.String)]: org.springframework.cloud.config.server.environment.NoSuchRepositoryException: Cannot clone or checkout repository: https://gitee.com/zhongzunfa/config-info

If this is the case, you must ask for a git repository name as well as the configuration file name.
such as : repository name is config-info, the yml file is config-info-dev.yml etc

It matches spring.cloud.config.name which defaults to spring.application.name.


Added Instrumentation for ServletContextListener#contextInitialized

What does this PR do?
Improves service name and version auto detection
Checklist

[x] This is an enhancement of existing features, or a new feature in existing plugins

[ ] I have updated CHANGELOG.asciidoc
[x] I have added tests that prove my fix is effective or that my feature works
[ ] Added an API method or config option? Document in which version this will be introduced
[ ] I have made corresponding changes to the documentation

:grey_exclamation: Build Aborted

The PR is not allowed to run in the CI yet

the below badges are clickable and redirect to their specific view in the CI or DOCS

Expand to view the summary

Build stats

Reason: The PR is not allowed to run in the CI yet

Start Time: 2022-02-03T12:38:47.110+0000

Duration: 4 min 47 sec

Commit: d14f33ec6c5bd82107e471ec2f29949624b09a99

:robot: GitHub comments
To re-run your PR in the CI, just comment with:

/test : Re-trigger the build.

run benchmark tests : Run the benchmark tests.

run jdk compatibility tests : Run the JDK Compatibility tests.

run integration tests : Run the Agent Integration tests.

run end-to-end tests : Run the APM-ITs.

run windows tests : Build & tests on windows.

run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

run elasticsearch-ci/docs

Thank You!

Thank you too!
Do you still have a need for Tomcat, JBoss/WildFly specific instrumentations to init earlier and to make it work for JMS? I think now that we have more fundamentals in place, such asServletServiceNameHelper as well as generic instrumentation via the Servlet API, I'm also more comfortable with adding container-specific instrumentations. That's because if they don't work in a new version of the container, we at least have a fallback that's good enough for most cases.
To make these container-specific instrumentations even more lightweight, I'd just add them in the apm-servlet-plugin. For example under co.elastic.apm.agent.servlet.init or co.elastic.apm.agent.servlet.servicename.

Yes, at the moment I still prefer having the "correct" service name/version early in the process.


fixed species sorting, added query to footer

Big step forward with species seaching - once the existing fsort parameter is removed, the search works as expected.  Have added the API query to the footer for reference.

Good idea about adding the query to the footer. I wonder if it's possible to log debug messages like this out to the CI debug bar thingy?

Why does removing the fsort fix the issue?

Absolutely no idea 😊  I’m not sure what fsort is intended to do – not documented – wondered if it was facet sort, but not sure what that would actually do.
Just leaves sort=year which then seems to work properly.
From: Charles Roper @.>
Sent: 15 April 2021 14:20
To: jdrever/ShropBotSoc @.>
Cc: James Drever @.>; State change @.>
Subject: Re: [jdrever/ShropBotSoc] fixed species sorting, added query to footer (#92)
Why does removing the fsort fix the issue?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHubhttps://github.com/jdrever/ShropBotSoc/pull/92#issuecomment-820416283, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAPKYJMPMSIXLLFJQSAPFDDTI3RXRANCNFSM4267JYYA.

The CI debug bar thingy already has $queryUrl, plus all current variables – very helpful, actually.
From: Charles Roper @.>
Sent: 15 April 2021 13:57
To: jdrever/ShropBotSoc @.>
Cc: James Drever @.>; State change @.>
Subject: Re: [jdrever/ShropBotSoc] fixed species sorting, added query to footer (#92)
Good idea about adding the query to the footer. I wonder if it's possible to log debug messages like this out to the CI debug bar thingy?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHubhttps://github.com/jdrever/ShropBotSoc/pull/92#issuecomment-820400622, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAPKYJJJD36YPN3C5RTA6D3TI3PA5ANCNFSM4267JYYA.


Update ukelele to 3.2.5

After making all changes to the cask:

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} left no offenses.
[x] The commit message includes the cask's name and version.

Thank you for the contribution. It was merged directly as 339f58627067b2a0c8868fc14cd9b7506b593123 to keep commit history cleaner. Your contribution is still credited to you.


Make getVariationPathFromComponentPath a shared util

Had to remove dependency on path so it worked on the frontend too, we now do that manually on the server.

👍

Doing further cleanup, don't merge yet please


Celery and RabbitMQ checks enabled concurrently results in errors

Using:

Python 3.6 and 3.7
Django 2.1.4
django-health-check 3.8.0
celery 4.2.1
RabbitMQ 3.3.5 and 3.6.16 (clustered)

With a fresh instance of RabbitMQ having both health checks enabled at the same time:

health_check.contrib.celery
health_check.contrib.rabbitmq

...results in celery workers erroring out with the following:
Traceback (most recent call last):
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/query.py", line 486, in get_or_create
    return self.get(**lookup), False
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/query.py", line 399, in get
    self.model._meta.object_name
django_celery_results.models.TaskResult.DoesNotExist: TaskResult matching query does not exist.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/celery/worker/worker.py", line 205, in start
    self.blueprint.start(self)
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/celery/bootsteps.py", line 119, in start
    step.start(parent)
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/celery/bootsteps.py", line 369, in start
    return self.obj.start()
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/celery/worker/consumer/consumer.py", line 317, in start
    blueprint.start(self)
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/celery/bootsteps.py", line 119, in start
    step.start(parent)
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/celery/worker/consumer/consumer.py", line 593, in start
    c.loop(*c.loop_args())
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/celery/worker/loops.py", line 88, in asynloop
    update_qos()
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/kombu/common.py", line 417, in update
    return self.set(self.value)
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/kombu/common.py", line 410, in set
    self.callback(prefetch_count=new_value)
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/celery/worker/consumer/tasks.py", line 47, in set_prefetch_count
    apply_global=qos_global,
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/kombu/messaging.py", line 558, in qos
    apply_global)
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/amqp/channel.py", line 1812, in basic_qos
    wait=spec.Basic.QosOk,
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/amqp/abstract_channel.py", line 59, in send_method
    return self.wait(wait, returns_tuple=returns_tuple)
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/amqp/abstract_channel.py", line 79, in wait
    self.connection.drain_events(timeout=timeout)
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/amqp/connection.py", line 491, in drain_events
    while not self.blocking_read(timeout):
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/amqp/connection.py", line 497, in blocking_read
    return self.on_inbound_frame(frame)
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/amqp/method_framing.py", line 77, in on_frame
    callback(channel, msg.frame_method, msg.frame_args, msg)
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/amqp/connection.py", line 501, in on_inbound_method
    method_sig, payload, content,
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/amqp/abstract_channel.py", line 128, in dispatch_method
    listener(*args)
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/amqp/channel.py", line 1597, in _on_basic_deliver
    fun(msg)
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/kombu/messaging.py", line 624, in _receive_callback
    return on_m(message) if on_m else self.receive(decoded, message)
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/celery/worker/consumer/consumer.py", line 567, in on_task_received
    callbacks,
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/celery/worker/strategy.py", line 157, in task_message_handler
    if (req.expires or req.id in revoked_tasks) and req.revoked():
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/celery/worker/request.py", line 280, in revoked
    'expired' if expired else 'revoked', False, None, expired,
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/celery/worker/request.py", line 263, in _announce_revoked
    self.id, reason, request=self, store_result=self.store_errors,
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/celery/backends/base.py", line 191, in mark_as_revoked
    traceback=None, request=request)
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/celery/backends/base.py", line 322, in store_result
    request=request, **kwargs)
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django_celery_results/backends/database.py", line 35, in _store_result
    task_kwargs=task_kwargs,
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django_celery_results/managers.py", line 50, in _inner
    return fun(*args, **kwargs)
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django_celery_results/managers.py", line 126, in store_result
    obj, created = self.get_or_create(task_id=task_id, defaults=fields)
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/manager.py", line 82, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/query.py", line 488, in get_or_create
    return self._create_object_from_params(lookup, params)
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/query.py", line 521, in _create_object_from_params
    params = {k: v() if callable(v) else v for k, v in params.items()}
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/query.py", line 521, in <dictcomp>
    params = {k: v() if callable(v) else v for k, v in params.items()}
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/celery/app/trace.py", line 642, in __protected_call__
    return orig(self, *args, **kwargs)
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/celery/app/task.py", line 375, in __call__
    return self.run(*args, **kwargs)
TypeError: add() missing 2 required positional arguments: 'x' and 'y'
[2019-01-11 13:32:06,454: DEBUG/MainProcess] | Worker: Closing Hub...
[2019-01-11 13:32:06,455: DEBUG/MainProcess] | Worker: Closing Pool...
[2019-01-11 13:32:06,456: DEBUG/MainProcess] | Worker: Closing Consumer...
[2019-01-11 13:32:06,458: DEBUG/MainProcess] | Worker: Stopping Consumer...
[2019-01-11 13:32:06,459: DEBUG/MainProcess] | Consumer: Closing Connection...
[2019-01-11 13:32:06,460: DEBUG/MainProcess] | Consumer: Closing Events...
[2019-01-11 13:32:06,461: DEBUG/MainProcess] | Consumer: Closing Mingle...
[2019-01-11 13:32:06,463: DEBUG/MainProcess] | Consumer: Closing Gossip...
[2019-01-11 13:32:06,464: DEBUG/MainProcess] | Consumer: Closing Tasks...
[2019-01-11 13:32:06,465: DEBUG/MainProcess] | Consumer: Closing Control...
[2019-01-11 13:32:06,466: DEBUG/MainProcess] | Consumer: Closing Heart...
[2019-01-11 13:32:06,467: DEBUG/MainProcess] | Consumer: Closing event loop...
[2019-01-11 13:32:06,468: DEBUG/MainProcess] | Consumer: Stopping event loop...
[2019-01-11 13:32:06,469: DEBUG/MainProcess] | Consumer: Stopping Heart...
[2019-01-11 13:32:06,471: DEBUG/MainProcess] | Consumer: Stopping Control...
[2019-01-11 13:32:06,472: INFO/MainProcess] Received task: health_check.contrib.celery.tasks.add[c3d288cc-523d-4831-a788-35ba68375516]   expires:[2019-01-11 18:12:22.144025+00:00]
[2019-01-11 13:32:06,474: INFO/MainProcess] Discarding revoked task: health_check.contrib.celery.tasks.add[c3d288cc-523d-4831-a788-35ba68375516]
[2019-01-11 13:32:06,480: ERROR/MainProcess] Error on stopping Control: TypeError("add() missing 2 required positional arguments: 'x' and 'y'",)
Traceback (most recent call last):
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/query.py", line 486, in get_or_create
    return self.get(**lookup), False
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/query.py", line 399, in get
    self.model._meta.object_name
django_celery_results.models.TaskResult.DoesNotExist: TaskResult matching query does not exist.

During handling of the above exception, another exception occurred:

...<snip>...```

If I disable either of the checks the other works just fine.

I was able to get both working concurrently by going through a few iterations of enabling one, then the other, then finally both at the same time so it seems that there's some sort of race condition.

Sorry for the late response. Yes I think if you need help with celery, you should visit their GH page. I think they also have a IRC channel.


'ordNub' is now stable and lazy

New implementation of ordNub which produces elements in their original order and is also lazy.
These two things are important for some QuickCheck stuff I'm doing where I want to filter out duplicate shrinks.
It requires a dependency on containers which we already have transitively via bifunctors.
/cc @nhibberd @markhibberd @charleso

Makes sense to me.
👍  on 📗

(and agree deepseq change is legit)

any chance of an nubSorted :: Eq a => [a] -> [a] which takes an already sorted list and nubs only consecutive elements?
I suppose that is really just concat . group though, isn't it?

I suppose that is really just concat . group though, isn't it?

Yep, with take 1 that would do it: concat . take 1 . group


Immediate switch off and strobe

Hey!
I'm currently tweaking the code a bit to add more functionality to the GUI.
I wanted to add an Off and a Strobe function. I have the buttons etc all hooked up and displaying correctly on the GUI.
For the Off function I copied the scroll functions but just set the array values to 0 which gradually turns off the LEDs. Does anyone know how I might be able to completely switch off all the LEDs from the context of the GUI?
Also I want to try build a strobe type function into the visualization.py code. I tried reworking the spectrum function to output an array of 255, 255, 255 but it didn't really work. Has anyone any ideas how I might accomplish that kind of functionality?
Thanks!

Hi, this numpy function is probably what you're looking for
https://stackoverflow.com/a/20606278
On Thu, 14 May 2020, 14:06 knichol<EMAIL_ADDRESS>wrote:

Hey!
I'm currently tweaking the code a bit to add more functionality to the GUI.
I wanted to add an Off and a Strobe function. I have the buttons etc all
hooked up and displaying correctly on the GUI.
For the Off function I copied the scroll functions but just set the array
values to 0 which gradually turns off the LEDs. Does anyone know how I
might be able to completely switch off all the LEDs from the context of the
GUI?
Also I want to try build a strobe type function into the visualization.py
code. I tried reworking the spectrum function to output an array of 255,
255, 255 but it didn't really work. Has anyone any ideas how I might
accomplish that kind of functionality?
Thanks!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/scottlawsonbc/audio-reactive-led-strip/issues/267,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHXFVTF65FHDG7ARH5WPGYDRRPUDZANCNFSM4NAVOU3A
.

nailed it. got both functions working, thanks!


Bug Fix wrong type in TimestampArithmeticExpr

Proposed changes
Issue Number: close #12726
Problem summary
Describe your changes.
Checklist(Required)

Does it affect the original behavior:

[ ] Yes
[ ] No
[ ] I don't know

Has unit tests been added:

[ ] Yes
[ ] No
[ ] No Need

Has document been added or modified:

[ ] Yes
[ ] No
[ ] No Need

Does it need to update dependencies:

[ ] Yes
[ ] No

Are there any changes that cannot be rolled back:

[ ] Yes (If Yes, please explain WHY)
[ ] No

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

This fix is OK for TimestampArithmeticExpr. Is it possible that other exprs may have similar issue?

This fix is OK for TimestampArithmeticExpr. Is it possible that other exprs may have similar issue?

Actually, this problem will only occur for datetimev2 and decimalv3 type. For datetimev2, I think its related expression should be used only by FunctionCallExpr and TimestampArithmeticExpr.  And this logics has already in FunctionCallExpr.


[codespell] Ignore "SME"

Issue #, if available:
Description of changes:

Ignore "SME" in codespell, false positive, was causing codespell to fail for timeseries.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Previous CI Run
Current CI Run


Notify system update in realtime to connected user

Notification system in real-time

When character jump in new wormhole then add system in other character maps if system not exist (localy, no db update)
Where character delete system or link then send delete infos to other character and delete elements (localy, no db update)


Error when working with org babel:  "Lisp nesting exceeds ‘max-lisp-eval-depth"

Emacs 27.1 Org 9.4 Manjaro
(use-package xenops   :ghook ('(org-mode-hook latex-mode-hook LaTeX-mode-hook)))
Everytime I open my main org file with source blocks, e.g
** gnupg
:PROPERTIES:
:header-args: :tangle ~/.gnupg/gpg-agent.conf
:header-args+: :mkdirp yes
:END:
#+BEGIN_SRC conf
allow-emacs-pinentry
#+END_SRC
The error occurs.   Customize the value of file-name-at-point-functions'\nor set it to nil, if you want only the visited file name and the\ncurrent directory to be available on first \[next-history-element]\nrequest.\n\nYou can visit files on remote machines by specifying something\nlike /ssh:SOME_REMOTE_MACHINE:FILE for the file name.  You can\nalso visit local files as a different user by specifying\n/sudo::FILE for the file name.\nSee the Info node (tramp)File name Syntax' in the Tramp Info\nmanual, for more about this.\n\nInteractively, or if WILDCARDS is non-nil in a call from Lisp,\nexpand wildcards (if any) and visit multiple files.  You can\nsuppress wildcard expansion by setting find-file-wildcards' to nil.\n\nTo visit a file without any kind of conversion and without\nautomatically choosing a major mode, use \[find-file-literally]." (interactive #f(compiled-function () #<bytecode 0x156e0a066a1d>)) #<bytecode 0x1fe088297379>)("~/.emacs.d/i.org")
apply(#f(compiled-function (filename &optional wildcards) "Edit file FILENAME.\nSwitch to a buffer visiting file FILENAME,\ncreating one if none already exists.\nInteractively, the default if you just type RET is the current directory,\nbut the visited file name is available through the minibuffer history:\ntype \[next-history-element] to pull it into the minibuffer.\n\nThe first time \[next-history-element] is used after Emacs prompts for\nthe file name, the result is affected by file-name-at-point-functions',\nwhich by default try to guess the file name by looking at point in the\ncurrent buffer.  Customize the value of file-name-at-point-functions'\nor set it to nil, if you want only the visited file name and the\ncurrent directory to be available on first \[next-history-element]\nrequest.\n\nYou can visit files on remote machines by specifying something\nlike /ssh:SOME_REMOTE_MACHINE:FILE for the file name.  You can\nalso visit local files as a different user by specifying\n/sudo::FILE for the file name.\nSee the Info node (tramp)File name Syntax' in the Tramp Info\nmanual, for more about this.\n\nInteractively, or if WILDCARDS is non-nil in a call from Lisp,\nexpand wildcards (if any) and visit multiple files.  You can\nsuppress wildcard expansion by setting find-file-wildcards' to nil.\n\nTo visit a file without any kind of conversion and without\nautomatically choosing a major mode, use \[find-file-literally]." (interactive #f(compiled-function () #<bytecode 0x156e0a882c1d>)) #<bytecode 0x1fe088297379>) "~/.emacs.d/i.org")
evil-swap-keys--file-input-around-advice(#f(compiled-function (filename &optional wildcards) "Edit file FILENAME.\nSwitch to a buffer visiting file FILENAME,\ncreating one if none already exists.\nInteractively, the default if you just type RET is the current directory,\nbut the visited file name is available through the minibuffer history:\ntype \[next-history-element] to pull it into the minibuffer.\n\nThe first time \[next-history-element] is used after Emacs prompts for\nthe file name, the result is affected by file-name-at-point-functions',\nwhich by default try to guess the file name by looking at point in the\ncurrent buffer.  Customize the value of file-name-at-point-functions'\nor set it to nil, if you want only the visited file name and the\ncurrent directory to be available on first \[next-history-element]\nrequest.\n\nYou can visit files on remote machines by specifying something\nlike /ssh:SOME_REMOTE_MACHINE:FILE for the file name.  You can\nalso visit local files as a different user by specifying\n/sudo::FILE for the file name.\nSee the Info node (tramp)File name Syntax' in the Tramp Info\nmanual, for more about this.\n\nInteractively, or if WILDCARDS is non-nil in a call from Lisp,\nexpand wildcards (if any) and visit multiple files.  You can\nsuppress wildcard expansion by setting find-file-wildcards' to nil.\n\nTo visit a file without any kind of conversion and without\nautomatically choosing a major mode, use \[find-file-literally]." (interactive #f(compiled-function () #<bytecode 0x156e0d2202a9>)) #<bytecode 0x1fe088297379>) "~/.emacs.d/i.org")
apply(evil-swap-keys--file-input-around-advice #f(compiled-function (filename &optional wildcards) "Edit file FILENAME.\nSwitch to a buffer visiting file FILENAME,\ncreating one if none already exists.\nInteractively, the default if you just type RET is the current directory,\nbut the visited file name is available through the minibuffer history:\ntype \[next-history-element] to pull it into the minibuffer.\n\nThe first time \[next-history-element] is used after Emacs prompts for\nthe file name, the result is affected by file-name-at-point-functions',\nwhich by default try to guess the file name by looking at point in the\ncurrent buffer.  Customize the value of file-name-at-point-functions'\nor set it to nil, if you want only the visited file name and the\ncurrent directory to be available on first \[next-history-element]\nrequest.\n\nYou can visit files on remote machines by specifying something\nlike /ssh:SOME_REMOTE_MACHINE:FILE for the file name.  You can\nalso visit local files as a different user by specifying\n/sudo::FILE for the file name.\nSee the Info node (tramp)File name Syntax' in the Tramp Info\nmanual, for more about this.\n\nInteractively, or if WILDCARDS is non-nil in a call from Lisp,\nexpand wildcards (if any) and visit multiple files.  You can\nsuppress wildcard expansion by setting find-file-wildcards' to nil.\n\nTo visit a file without any kind of conversion and without\nautomatically choosing a major mode, use \[find-file-literally]." (interactive #f(compiled-function () #<bytecode 0x156e0d7fa129>)) #<bytecode 0x1fe088297379>) "~/.emacs.d/i.org")
find-file("~/.emacs.d/i.org")
(lambda nil (interactive) (find-file "~/.emacs.d/i.org"))()
funcall-interactively((lambda nil (interactive) (find-file "~/.emacs.d/i.org")))
call-interactively((lambda nil (interactive) (find-file "~/.emacs.d/i.org")) nil nil)
command-execute((lambda nil (interactive) (find-file "~/.emacs.d/i.org")))

Thanks @duzaichuan. I've pushed a fix to master, which will be available in MELPA in a few hours. Could you confirm that this fixes the problem at your end?

Fixed! Thanks~ @dandavison