hyprpm: failed to install headers with error code 2

Hyprland Version

inxi -S
System:
  Host: terraminator Kernel: 6.8.9-arch1-2 arch: x86_64 bits: 64
  Desktop: Hyprland v: 0.40.0 Distro: Arch Linux
 erik@terraminator  ~  hyprctl systeminfo
Hyprland, built from branch  at commit cba1ade848feac44b2eda677503900639581c3f4  (props: bump version to 0.40.0).
Date: Sat May 4 15:42:32 2024
Tag: v0.40.0, commits: 4606

flags: (if any)

System Information:
System name: Linux
Node name: terraminator
Release: 6.8.9-arch1-2
Version: #1 SMP PREEMPT_DYNAMIC Tue, 07 May 2024 21:35:54 +0000

GPU information:
00:02.0 VGA compatible controller [0300]: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630] [8086:3e9b] (prog-if 00 [VGA controller])

os-release: NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo

plugins:

Bug or Regression?
Bug
Description
hyprpm failed to install headers with error code 2
How to reproduce
run: hyprpm update
Crash reports, logs, images, videos

hyprpm update -v
[v] version returned: Hyprland, built from branch  at commit cba1ade848feac44b2eda677503900639581c3f4  (props: bump version to 0.40.0).
Date: Sat May 4 15:42:32 2024
Tag: v0.40.0, commits: 4606

flags: (if any)

[v] parsed commit cba1ade848feac44b2eda677503900639581c3f4 at branch  on Sat May 4 15:42:32 2024, commits 4606

! Cloning https://github.com/hyprwm/hyprland, this might take a moment.
[v] will shallow since: Sa Apr 27 15:42:32 2024

✔ cloned
[v] git returned (co): Ihr Branch ist auf demselben Stand wie 'origin/main'.

[v] git returned (rs): rm 'subprojects/tracy'
HEAD ist jetzt bei cba1ade props: bump version to 0.40.0

✔ checked out to running ver
! configuring Hyprland
[v] setting PREFIX for cmake to /home/erik/.local/share/hyprpm/headersRoot
[v] cmake returned: Not searching for unused variables given on the command line.
-- The C compiler identification is GNU 14.1.1
-- The CXX compiler identification is GNU 14.1.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Gathering git info
-- Found Python3: /usr/bin/python3.12 (found version "3.12.3") found components: Interpreter
Building itab.c/itab.h...
-- Setting up wlroots
-- Found PkgConfig: /usr/bin/pkg-config (found version "2.1.1")
-- Found WaylandScanner at /usr/bin/wayland-scanner
-- Found wayland-protocols at //usr/share/wayland-protocols
-- Configuring Hyprland in Release with CMake
-- Checking deps...
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found OpenGL: /usr/lib/libOpenGL.so  found components: GLES3
-- Checking for modules 'xkbcommon;uuid;wayland-server;wayland-client;wayland-cursor;wayland-protocols;cairo;pango;pangocairo;pixman-1;libdrm;libinput;hwdata;libseat;libdisplay-info;libliftoff;libudev;gbm;hyprwayland-scanner>=0.3.4;hyprlang>=0.3.2;hyprcursor>=0.1.7'
--   Package 'hyprwayland-scanner', required by 'virtual:world', not found
CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:634 (message):
  The following required packages were not found:

   - hyprwayland-scanner>=0.3.4

Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPkgConfig.cmake:862 (_pkg_check_modules_internal)
  CMakeLists.txt:107 (pkg_check_modules)

-- Configuring incomplete, errors occurred!

[v] meson returned: The Meson build system
Version: 1.4.0
Source dir: /tmp/hyprpm/hyprland-erik/subprojects/wlroots-hyprland
Build dir: /tmp/hyprpm/hyprland-erik/subprojects/wlroots-hyprland/build
Build type: native build
Project name: wlroots
Project version: 0.18.0-dev
C compiler for the host machine: cc (gcc 14.1.1 "cc (GCC) 14.1.1 20240507")
C linker for the host machine: cc ld.bfd 2.42.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C supports arguments -Wundef: YES
Compiler for C supports arguments -Wlogical-op: YES
Compiler for C supports arguments -Wmissing-include-dirs: YES
Compiler for C supports arguments -Wold-style-definition: YES
Compiler for C supports arguments -Wpointer-arith: YES
Compiler for C supports arguments -Winit-self: YES
Compiler for C supports arguments -Wstrict-prototypes: YES
Compiler for C supports arguments -Wimplicit-fallthrough=2: YES
Compiler for C supports arguments -Wendif-labels: YES
Compiler for C supports arguments -Wstrict-aliasing=2: YES
Compiler for C supports arguments -Woverflow: YES
Compiler for C supports arguments -Wmissing-prototypes: YES
Compiler for C supports arguments -Walloca: YES
Compiler for C supports arguments -Wno-missing-braces: YES
Compiler for C supports arguments -Wno-missing-field-initializers: YES
Compiler for C supports arguments -Wno-unused-parameter: YES
Compiler for C supports arguments -fmacro-prefix-map=/prefix/to/hide=: YES
Found pkg-config: YES (/usr/bin/pkg-config) 2.1.1
Run-time dependency wayland-server found: YES 1.22.0
Run-time dependency libdrm found: YES 2.4.120
Run-time dependency xkbcommon found: YES 1.7.0
Run-time dependency pixman-1 found: YES 0.43.4
Library m found: YES
Library rt found: YES
Run-time dependency wayland-protocols found: YES 1.36
Build-time dependency wayland-scanner found: YES 1.22.0
Program /usr/bin/wayland-scanner found: YES (/usr/bin/wayland-scanner)
Has header "linux/dma-buf.h" : YES
Run-time dependency egl found: YES 1.5
Run-time dependency gbm found: YES 24.0.6-arch1.2
Run-time dependency glesv2 found: YES 3.2
Program ./embed.sh found: YES (/tmp/hyprpm/hyprland-erik/subprojects/wlroots-hyprland/render/gles2/shaders/./embed.sh)
Dependency pixman-1 found: YES 0.43.4 (cached)
Dependency gbm found: YES 24.0.6-arch1.2 (cached)
Checking for function "gbm_bo_get_fd_for_plane" with dependency gbm: YES
Run-time dependency libudev found: YES 255
Run-time dependency libseat found: YES 0.8.0
Build-time dependency hwdata found: YES 0.382
Run-time dependency libdisplay-info found: YES 0.1.1
Run-time dependency libliftoff found: YES 0.4.1
Run-time dependency libinput found: YES 1.25.0
Run-time dependency xcb found: YES 1.17.0
Run-time dependency xcb-dri3 found: YES 1.17.0
Run-time dependency xcb-present found: YES 1.17.0
Run-time dependency xcb-render found: YES 1.17.0
Run-time dependency xcb-renderutil found: YES 0.3.10
Run-time dependency xcb-shm found: YES 1.17.0
Run-time dependency xcb-xfixes found: YES 1.17.0
Run-time dependency xcb-xinput found: YES 1.17.0
Run-time dependency wayland-client found: YES 1.22.0
Run-time dependency xwayland found: YES 23.2.6
Dependency xcb found: YES 1.17.0 (cached)
Run-time dependency xcb-composite found: YES 1.17.0
Run-time dependency xcb-ewmh found: YES 0.4.2
Run-time dependency xcb-icccm found: YES 0.4.2
Dependency xcb-render found: YES 1.17.0 (cached)
Run-time dependency xcb-res found: YES 1.17.0
Dependency xcb-xfixes found: YES 1.17.0 (cached)
Run-time dependency xcb-errors found: YES 1.0.1
Checking for function "xcb_xfixes_set_client_disconnect_mode" with dependencies xcb, xcb-composite, xcb-ew erik@terraminator  ~  hyprpm update -v
[v] version returned: Hyprland, built from branch  at commit cba1ade848feac44b2eda677503900639581c3f4  (props: bump version to 0.40.0).
Date: Sat May 4 15:42:32 2024
Tag: v0.40.0, commits: 4606

flags: (if any)

[v] parsed commit cba1ade848feac44b2eda677503900639581c3f4 at branch  on Sat May 4 15:42:32 2024, commits 4606

! Cloning https://github.com/hyprwm/hyprland, this might take a moment.
[v] will shallow since: Sa Apr 27 15:42:32 2024

✔ cloned
[v] git returned (co): Ihr Branch ist auf demselben Stand wie 'origin/main'.

[v] git returned (rs): rm 'subprojects/tracy'
HEAD ist jetzt bei cba1ade props: bump version to 0.40.0

✔ checked out to running ver
! configuring Hyprland
[v] setting PREFIX for cmake to /home/erik/.local/share/hyprpm/headersRoot
[v] cmake returned: Not searching for unused variables given on the command line.
-- The C compiler identification is GNU 14.1.1
-- The CXX compiler identification is GNU 14.1.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Gathering git info
-- Found Python3: /usr/bin/python3.12 (found version "3.12.3") found components: Interpreter
Building itab.c/itab.h...
-- Setting up wlroots
-- Found PkgConfig: /usr/bin/pkg-config (found version "2.1.1")
-- Found WaylandScanner at /usr/bin/wayland-scanner
-- Found wayland-protocols at //usr/share/wayland-protocols
-- Configuring Hyprland in Release with CMake
-- Checking deps...
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found OpenGL: /usr/lib/libOpenGL.so  found components: GLES3
-- Checking for modules 'xkbcommon;uuid;wayland-server;wayland-client;wayland-cursor;wayland-protocols;cairo;pango;pangocairo;pixman-1;libdrm;libinput;hwdata;libseat;libdisplay-info;libliftoff;libudev;gbm;hyprwayland-scanner>=0.3.4;hyprlang>=0.3.2;hyprcursor>=0.1.7'
--   Package 'hyprwayland-scanner', required by 'virtual:world', not found
CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:634 (message):
  The following required packages were not found:

   - hyprwayland-scanner>=0.3.4

Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPkgConfig.cmake:862 (_pkg_check_modules_internal)
  CMakeLists.txt:107 (pkg_check_modules)

-- Configuring incomplete, errors occurred!

[v] meson returned: The Meson build system
Version: 1.4.0
Source dir: /tmp/hyprpm/hyprland-erik/subprojects/wlroots-hyprland
Build dir: /tmp/hyprpm/hyprland-erik/subprojects/wlroots-hyprland/build
Build type: native build
Project name: wlroots
Project version: 0.18.0-dev
C compiler for the host machine: cc (gcc 14.1.1 "cc (GCC) 14.1.1 20240507")
C linker for the host machine: cc ld.bfd 2.42.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C supports arguments -Wundef: YES
Compiler for C supports arguments -Wlogical-op: YES
Compiler for C supports arguments -Wmissing-include-dirs: YES
Compiler for C supports arguments -Wold-style-definition: YES
Compiler for C supports arguments -Wpointer-arith: YES
Compiler for C supports arguments -Winit-self: YES
Compiler for C supports arguments -Wstrict-prototypes: YES
Compiler for C supports arguments -Wimplicit-fallthrough=2: YES
Compiler for C supports arguments -Wendif-labels: YES
Compiler for C supports arguments -Wstrict-aliasing=2: YES
Compiler for C supports arguments -Woverflow: YES
Compiler for C supports arguments -Wmissing-prototypes: YES
Compiler for C supports arguments -Walloca: YES
Compiler for C supports arguments -Wno-missing-braces: YES
Compiler for C supports arguments -Wno-missing-field-initializers: YES
Compiler for C supports arguments -Wno-unused-parameter: YES
Compiler for C supports arguments -fmacro-prefix-map=/prefix/to/hide=: YES
Found pkg-config: YES (/usr/bin/pkg-config) 2.1.1
Run-time dependency wayland-server found: YES 1.22.0
Run-time dependency libdrm found: YES 2.4.120
Run-time dependency xkbcommon found: YES 1.7.0
Run-time dependency pixman-1 found: YES 0.43.4
Library m found: YES
Library rt found: YES
Run-time dependency wayland-protocols found: YES 1.36
Build-time dependency wayland-scanner found: YES 1.22.0
Program /usr/bin/wayland-scanner found: YES (/usr/bin/wayland-scanner)
Has header "linux/dma-buf.h" : YES
Run-time dependency egl found: YES 1.5
Run-time dependency gbm found: YES 24.0.6-arch1.2
Run-time dependency glesv2 found: YES 3.2
Program ./embed.sh found: YES (/tmp/hyprpm/hyprland-erik/subprojects/wlroots-hyprland/render/gles2/shaders/./embed.sh)
Dependency pixman-1 found: YES 0.43.4 (cached)
Dependency gbm found: YES 24.0.6-arch1.2 (cached)
Checking for function "gbm_bo_get_fd_for_plane" with dependency gbm: YES
Run-time dependency libudev found: YES 255
Run-time dependency libseat found: YES 0.8.0
Build-time dependency hwdata found: YES 0.382
Run-time dependency libdisplay-info found: YES 0.1.1
Run-time dependency libliftoff found: YES 0.4.1
Run-time dependency libinput found: YES 1.25.0
Run-time dependency xcb found: YES 1.17.0
Run-time dependency xcb-dri3 found: YES 1.17.0
Run-time dependency xcb-present found: YES 1.17.0
Run-time dependency xcb-render found: YES 1.17.0
Run-time dependency xcb-renderutil found: YES 0.3.10
Run-time dependency xcb-shm found: YES 1.17.0
Run-time dependency xcb-xfixes found: YES 1.17.0
Run-time dependency xcb-xinput found: YES 1.17.0
Run-time dependency wayland-client found: YES 1.22.0
Run-time dependency xwayland found: YES 23.2.6
Dependency xcb found: YES 1.17.0 (cached)
Run-time dependency xcb-composite found: YES 1.17.0
Run-time dependency xcb-ewmh found: YES 0.4.2
Run-time dependency xcb-icccm found: YES 0.4.2
Dependency xcb-render found: YES 1.17.0 (cached)
Run-time dependency xcb-res found: YES 1.17.0
Dependency xcb-xfixes found: YES 1.17.0 (cached)
Run-time dependency xcb-errors found: YES 1.0.1
Checking for function "xcb_xfixes_set_client_disconnect_mode" with dependencies xcb, xcb-composite, xcb-ewmh, xcb-icccm, xcb-render, xcb-res, xcb-xfixes, xcb-errors: YES
Configuring config.h using configuration
Configuring version.h using configuration
Configuring config.h using configuration
Message: Patches found. Applying...
Build targets in project: 136

wlroots 0.18.0-dev

    drm-backend     : YES
    x11-backend     : YES
    libinput-backend: YES
    xwayland        : YES
    gles2-renderer  : YES
    vulkan-renderer : NO
    gbm-allocator   : YES
    session         : YES
    xcb-errors      : YES
    egl             : YES
    libliftoff      : YES

  User defined options
    examples        : false
    renderers       : gles2

Found ninja-1.12.0 at /usr/bin/ninja

✔ configured Hyprland
[v] installation will run: sed -i -e "s#PREFIX = /usr/local#PREFIX = /home/erik/.local/share/hyprpm/headersRoot#" /tmp/hyprpm/hyprland-erik/Makefile && cd /tmp/hyprpm/hyprland-erik && make installheaders
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╍━━━━━━━━━  4 / 5  Installing sources[v] installer returned: rm -fr /home/erik/.local/share/hyprpm/headersRoot/include/hyprland
mkdir -p /home/erik/.local/share/hyprpm/headersRoot/include/hyprland
mkdir -p /home/erik/.local/share/hyprpm/headersRoot/include/hyprland/protocols
mkdir -p /home/erik/.local/share/hyprpm/headersRoot/include/hyprland/wlroots-hyprland
mkdir -p /home/erik/.local/share/hyprpm/headersRoot/share/pkgconfig
find src -name '*.h*' -print0 | cpio --quiet -0dump /home/erik/.local/share/hyprpm/headersRoot/include/hyprland
cd subprojects/wlroots-hyprland/include && find . -name '*.h*' -print0 | cpio --quiet -0dump /home/erik/.local/share/hyprpm/headersRoot/include/hyprland/wlroots-hyprland && cd ../../..
cd subprojects/wlroots-hyprland/build/include && find . -name '*.h*' -print0 | cpio --quiet -0dump /home/erik/.local/share/hyprpm/headersRoot/include/hyprland/wlroots-hyprland && cd ../../../..
cp ./protocols/*.h /home/erik/.local/share/hyprpm/headersRoot/include/hyprland/protocols
cp: der Aufruf von stat für './protocols/*.h' ist nicht möglich: Datei oder Verzeichnis nicht gefunden
make: *** [Makefile:101: installheaders] Fehler 1

✖ failed to install headers with error code 2
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━  5 / 5  Failed

✖ Headers missing. Please run hyprpm update to fix those.

#5896 #6008

I think this is a seperate issue as this crashed on
cp: der Aufruf von stat für './protocols/*.h' ist nicht möglich: Datei oder Verzeichnis nicht gefunden

So seemingly the headers weren't in /home/erik/.local/share/hyprpm/headersRoot/include/hyprland/protocols as wehre they propably should be. I don't see this line appearing in one of the issues you mentioned

ah yes sorry
you didnt read the output, it's clear on the error:
  The following required packages were not found:

   - hyprwayland-scanner>=0.3.4

regards


Selecting attributes

I'm trying to parse an Amazon wishlist, for example https://www.amazon.co.uk/hz/wishlist/ls/1IVZSOPV0TPMB
The selector for each wishlist item is li.g-item-sortable, but some key attributes are stored in the li element itself, for example, data-itemid and data-reposition-action-params. How can I pull these as named attributes?

In [1]: from selectorlib import Extractor

In [2]: import requests

In [3]: yaml_schema = """
   ...: product:
   ...:     css: li.g-item-sortable
   ...:     multiple: true
   ...:     type: Attribute
   ...:     attribute: data-itemid
   ...:     children:
   ...:         data_id:
   ...:             css: ""
   ...:             type: Attribute
   ...:             attribute: data-id
   ...:         data_reposition_action_params:
   ...:             css: ""
   ...:             type: Attribute
   ...:             attribute: data-reposition-action-params
   ...:  """

In [4]: res = requests.get('https://www.amazon.co.uk/hz/wishlist/ls/1IVZSOPV0TPMB')

In [5]: extractor = Extractor.from_yaml_string(yaml_schema)

In [6]: extractor.extract(res.text)
Out[6]:
{'product': [{'data_id': '1IVZSOPV0TPMB',
   'data_reposition_action_params': '{"itemExternalId":"ASIN:B00DN43PQ6|A1F83G8C2ARO7P","listType":"wishlist","sid":"000-0000000-0000000"}'},
  {'data_id': '1IVZSOPV0TPMB',
   'data_reposition_action_params': '{"itemExternalId":"ASIN:B00H859M36|A1F83G8C2ARO7P","listType":"wishlist","sid":"000-0000000-0000000"}'},
  {'data_id': '1IVZSOPV0TPMB',
   'data_reposition_action_params': '{"itemExternalId":"ASIN:B00062RLZO|A1F83G8C2ARO7P","listType":"wishlist","sid":"000-0000000-0000000"}'},
  {'data_id': '1IVZSOPV0TPMB',
   'data_reposition_action_params': '{"itemExternalId":"ASIN:B005RUPID2|A1F83G8C2ARO7P","listType":"wishlist","sid":"000-0000000-0000000"}'}]}

Thank you! It was the css: "" I missed. Couldn't figure out how to reference the same node.


cdk --help has issues

It still states:
--json, -j            Use JSON output instead of YAML
[boolean] [default: false]
Which makes no sense as it output JSON anyway. We need a -y (YAML) flag for those who want YAML
It also states:
--app, -a             REQUIRED: command-line for executing your app or a cloud
assembly directory (e.g. "node bin/my-app.js")  [string]
Which is also incorrect. The example should be "npx ts-node bin/my-app.ts"
Version:

Windows
TypeScript
0.34.0

Which makes no sense as it output JSON anyway. We need a -y (YAML) flag for those who want YAML

Is that true? I was under the impression we were outputting YAML.

Which is also incorrect. The example should be "npx ts-node bin/my-app.ts"

What it should be is discutable. At the very least it's incorrect to say that the example is incorrect. It's a matter of workflow and preference.

Any ideas on how to set yaml output? Just updated to 0.34.0 and there seems to be no way to output in yaml as already mentioned by @Doug-AWS

Sorry, I was completely wrong. The cdk commands output YAML by default and you need only use the -j flag to get JSON.

I'm getting Json output only in 0.34.0. No chance to switch to yaml.

Really? Here's the first 4 lines of cdk synth for the code created in the https://docs.aws.amazon.com/cdk/latest/guide/ecs_example.html:
  MyVpcF9F0CA6F:
    Type: AWS::EC2::VPC
    Properties:```

And with the -j flag:

```{
  "Resources": {
    "MyVpcF9F0CA6F": {
      "Type": "AWS::EC2::VPC",```

Yes, Console output seems to be YML but looking into folder cdk.out only contains json files.

Excellent point. @rix0rrr?

since 0.34, the yaml seems to be output to console (even when --output is specified) and the output folder always contains json.  Previously if --output was specified no stacks were output in console. These are both problems - I would much prefer yaml file outputs, and I don't want to spam my console with stacks everytime I synth.

cdk.out should be treated as a CLI-internal directory, and should not be treated as the final output directory.

I'm going to close this issue as the title no longer covers its contents. Please use #2965 to discuss the output of YAML/JSON to output directories.


Help about  database

after we you close and reopen the browser, we want the data not to be lost.
Can you help us about how to register the data

Hi, see @cowbjt's unofficial fork at https://github.com/cowbjt/openface/tree/demo-web-stand-alone for a version of the web demo that saves trained faces in a SQLite database.
-Brandon.


Share and download maticas not work after switching between servers behind velocity

When using this mod in server which is behind velocity 's proxy, it only works correctly at the case that you connect to the target sub-server directly without using the command /server abc.
Even that you should never change your server which will make this mod not work again.

Hello I do not know the proxies that you speak of.
Syncmatica has a statefil communication which needs to happen in a precise order.
Deviating from this order in ways which I did not foresee may cause unintended side effects.
Generally though I need more information about the other mod to devide how to handle this case.
That being said though I will not be able to handle this case as I won't have any internet until the 8th of december. (Apparently Germany is not a country that has reached the digital age yet)

here shows what is the proxy we use

My assumption is that the proxy you use performs the full server-client handshake with your client.
Your client then assumes it is authorized.
When switching the server using a proxy, the client only sees thar the dimension changed while the new server sees an unauthorized client.
The solution possibly is to enable a new message type in the client/server that allows the client to check if it is still authorized and reauthorize if necessary.
That way each server would have its own syncmatics.
But this is what I think happens before checking the source.
What happens if you reconnect after you switched servers - is the last selected server still active and does syncmatica work if you are still connected?

Yes, reconnect after switch server will make it work again, and that's exactly the method we use now.

My assumption is that the proxy you use performs the full server-client handshake with your client. Your client then assumes it is authorized. When switching the server using a proxy, the client only sees thar the dimension changed while the new server sees an unauthorized client. The solution possibly is to enable a new message type in the client/server that allows the client to check if it is still authorized and reauthorize if necessary. That way each server would have its own syncmatics.
Got the point, reasonable assumption

I just realized that the solution is way easier.
The server initializes communication by sending a message.
As such the client receives that message but doesn't handle it because it is unexpected.
I just need to properly implement the handling for the case when the client receives a hello but thinks it is verified on the server.
Im also picking up developing this mod again despite my lack of internet since Im less busy now and will have it in about a week or 2.
This fix might be part of the next release but no promises

Hey this might work with this update.

It works!

pog


docs(hierarchical-injector): improve chapter

Hey @wardbell,
here is the awaited PR. Not only does that bring the proper runnable example code it also replaces all the old fashioned code with more modern one using providers: [...], @Input(), @Output() and also dropping @View().
Maybe we can get this PR in before we look at the other rough spots of the chapter?
/cc @PascalPrecht

Good idea. Done.


Using MvRx and Epoxy for the view that is not a typical list?

Let's say, I need to implement a login screen like:

Is there a way to create a non-scrollable fragment with views aligned to the bottom like that using Epoxy / RecyclerView? Or is it overkill and is it better to use normal ConstraintLayout for that?

I wouldn't use Epoxy, use a normal layout. You can use MvRx fine though, not sure why this is a MvRx question - you can use databinding or whatever you want


feat: add "register here" button for workshops on the Initiatives page (resolves #441)

[X] This pull request has been linted by running npm run lint without errors
[X] This pull request has been tested by running npm run start and reviewing affected routes
[X] This pull request has been built by running npm run build without errors
[X] This isn't a duplicate of an existing pull request

Description
Add "register here" button for workshops on the Initiatives page. The design for it can be found in the figma
Steps to test

Check Airtable "wecount_dev" base. In the "workshops" table, some workshops have URLs defined in "registration_url" field, some don't have;
Go to the Initiatives page, workshops have "registration_url" defined in Airtable have "register here" buttons displayed. The style of this button should match the design;
Test with UIO and the button should respond correctly.

Expected behavior:
See above.

When using UIO themes the border around the "Register here" button that shifts during hover/focus does not change colour to match current UIO theme colour. Instead it remains the default colour.

A really good catch. Thanks, @TeddTech.
It has been addressed. Ready for another review.


How to get the paper?

Hi Dootmaan , thank you for making the code public, but where can I get this paper?

Hi Dootmaan , thank you for making the code public, but where can I get this paper?

Thank you for your interest in our work. MICCAI 2021 will be held from September 27th to October 1st as a virtual event. Our paper will then be published along with other papers on the book of MICCAI 2021 (probably in part4). MICCAI committee recommended us not submitting the paper to arXiv so im sorry currently you have to wait for the final publlication.


SPIKE: Add routes for legacy org-related redirects

Trello: https://trello.com/c/sajxUZnZ
This would be used in conjunction with something like this whitehall spike which changes the main route for an organisation content item to be a "prefix" route rather than a "exact" route. This change would mean that the router would send the relevant URLs to collections instead of whitehall-frontend. This PR adds the necessary routes which are closely based on those currently in whitehall so that collections can do the redirects.
Notes/Questions

Adding the redirects to /government/publications in the collections app Rails routes doesn't seem great, because that path to the publications index page is handled by a different app (finder-frontend), but maybe it's not a big deal.
We can't easily re-use the valid_locales_regex constraint from the whitehall routes, because it's generated by Locale data from the whitehall database. However, it doesn't seem too terrible to do with out it for these redirects.
The optional locale suffix is not preserved in the redirect for the individual "series" but it wasn't being preserved by the redirect in whitehall anyway.

⚠ This repo is Continuously Deployed: make sure you follow the guidance ⚠
Follow these steps if you are doing a Rails upgrade.

I'm closing this draft PR - I'm planning to open a new PR to actually make the change.


Is it possible to include callbacks (tensorboard) to GANs?

I am trying the DCGAN for my project. I am wondering if there is any way callbacks can be included in the Keras model.train_on_batch so that I can trace G-loss and D-loss in the tensorboard?

Since you are already in control of the training loop, you can directly log the required values for tensorboard as shown in this gist
The relevant parts are summarized below.
Define the logging function
def write_log(callback, names, logs, batch_no):
    for name, value in zip(names, logs):
        summary = tf.Summary()
        summary_value = summary.value.add()
        summary_value.simple_value = value
        summary_value.tag = name
        callback.writer.add_summary(summary, batch_no)
        callback.writer.flush()

Setup the callback
log_path = './logs'
callback = TensorBoard(log_path)
callback.set_model(model)

Call the log function after training
d_loss = discriminator.train_on_batch...
g_loss = combined.train_on_batch...

write_log(callback, ['g_loss'], [g_loss], batch_no)
write_log(callback, ['d_loss'], [d_loss], batch_no)

Got this error
g_loss is adding properly but causing problem with d_loss
            d_loss_real = self.discriminator.train_on_batch(imgs, np.ones((half_batch, 1)))
            d_loss_fake = self.discriminator.train_on_batch(gen_imgs, np.zeros((half_batch, 1)))
            d_loss = 0.5 * np.add(d_loss_real, d_loss_fake)

TypeError: only size-1 arrays can be converted to Python scalars

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "D:/Research/Generative_adversarial_networks/dcgan/keras_degan.py", line 196, in <module>
    dcgan.train(callback, epochs=4000, batch_size=32, save_interval=200)
  File "D:/Research/Generative_adversarial_networks/dcgan/keras_degan.py", line 163, in train
    write_log(callback, ['d_loss'], [d_loss], epoch)
  File "D:/Research/Generative_adversarial_networks/dcgan/keras_degan.py", line 22, in write_log
    summary_value.simple_value = value
  File "C:\Users\bikas\Anaconda3\lib\site-packages\numpy\core\arrayprint.py", line 1379, in array_repr
    if type(arr) is not ndarray:
SystemError: <class 'type'> returned a result with an error set

@ShuvenduBikash from the error message it seems that the loss contains multiple values (did you specify metrics in the model.compile function?).
You can change the call to the log function to write_log(callback, ['d_loss'], [d_loss[0]], batch_no) if you only want to log the loss.
You should also be able to log the loss and other metrics by changing it to write_log(callback, ['d_loss', 'other_metric_name', ...], d_loss, batch_no)

@GerrieCrafford Thanks. I got the problem
Could you please give me some reference to learn details about this in details. I don't quite like the tensorflow's own website.

@ShuvenduBikash Glad I could help.
Unfortunately, I don't know of a reference other than TensorFlow's website (or maybe Keras' website).


Can't sync tables in dynamics-nav:2018-fr docker

Hi,
After deploying a new doker from microsoft/dynamics-nav:2018-fr I can't sync tables (despite the Windows client is working so the NST).
...any idea ?

Microsoft Dynamics NAV Development Environment
Unable to process table changes because the Microsoft Dynamics NAV Development Environment cannot connect to the specified Microsoft Dynamics NAV Application Server instance:
Server Name: nav2018-fr-2
Server Instance: nav
Management Port: 7045
Microsoft Dynamics NAV Development Environment will automatically detect and connect to a Microsoft Dynamics NAV Server instance that is running.
Check the following:

The Application Server is running
The management service on the server instance is enabled and assigned a valid port.
If Microsoft Dynamics NAV Development Environment connects to Microsoft Dynamics NAV Server on a remote computer, then the management services port is open in Windows Firewall of the remote computer.

OK

Please specify how you deployed the NAV Development Environment and please include docker logs for your environment

$username = 'admin'
$password = 'ZZZZZZZZZZZ'

$secpasswd = ConvertTo-SecureString $password -AsPlainText -Force
$mycreds = New-Object System.Management.Automation.PSCredential ($username, $secpasswd)

New-NavContainer `
 -licenseFile 'C:\DEMO\license.flf' `
 -containerName 'Nav2018-fr-2' `
 -ImageName microsoft/dynamics-nav:2018-fr `
 -IncludeCSide `
 -Credential $mycreds `
 -memoryLimit 3G `
 -updateHosts `
 -auth NavUserPassword `
 -accept_eula `
 -Verbose

Creating Nav container Nav2018-fr-2
Using image microsoft/dynamics-nav:2018-fr
Using license file C:\DEMO\license.flf
NAV Version: 11.0.19394.0-fr
Generic Tag: <IP_ADDRESS>
Creating container Nav2018-fr-2 from image microsoft/dynamics-nav:2018-fr
Waiting for container Nav2018-fr-2 to be ready, this shouldn't take more than a few minutes
Time:          ½              1              ½              2
...................................................................................Ready
Read CustomSettings.config from Nav2018-fr-2
Create Desktop Shortcuts for Nav2018-fr-2
Welcome to the NAV Container PowerShell prompt
Export Objects to C:\ProgramData\NavContainerHelper\Extensions\Original-11.0.19394.0-fr.txt
Split C:\ProgramData\NavContainerHelper\Extensions\Original-11.0.19394.0-fr.txt to C:\ProgramData\NavContainerHelper\Ext
ensions\Original-11.0.19394.0-fr
Export Objects (new syntax) to C:\ProgramData\NavContainerHelper\Extensions\Original-11.0.19394.0-fr-newsyntax.txt
Split C:\ProgramData\NavContainerHelper\Extensions\Original-11.0.19394.0-fr-newsyntax.txt to C:\ProgramData\NavContainer
Helper\Extensions\Original-11.0.19394.0-fr-newsyntax
Nav container Nav2018-fr-2 successfully created

I don't think you can modify tables when running NavUserPassword auth and Classic Development Environment. If you switch to Windows Auth. and remove the Credentials parameter, then the script will ask you for you Windows Credentials - that should work.

I'm also running into this problem.
I understood from an earlier conversation we had, that I had to use -auth NavUserPassword because this was the only way to make a connection possible between a separate navision container and a separate sql container.  So how can we solve this. At this moment I seem to be unable to add a windows login to the SQL container.
At this moment I'm using this script, where $Auth='NavUserPassword':
New-NavContainer -containerName $ContainerName                  -imageName $ImageName
-licenseFile $Licensefile                  -Credential $MyCredential
-memoryLimit $MemoryLimit                  -auth $Auth
-databaseServer $DatabaseServer                  -databaseName $DatabaseName
-databaseCredential $MyDatabaseCredential                  -shortcuts $Shortcuts
-includeCSide                  -updateHosts
-accept_eula                  -doNotExportObjectsToText
-AdditionalParameters @($AdditionalParameters) `
-myScripts @($DockerNAVScript)

If you setup gMSA (requires AD admin) then it should be possible to use "real" windows auth.
The current way is just by adding the host windows user to the container and that seems to work fine when the domain controller is in reach. Not sure why it doesn't on your machine.

A quicker(?) solution: open Command Prompt on  theDocker container, switch to PowerShell, cd to the NAV Service folder, import all *.ps* modules, then run:
Sync-NAVTenant -ServerInstance NAV -Mode Force

That sorted it for me - more tedium, but works at least!

using open-bccontainer, enter-bccontainer or invoke-scriptinbccontainer will auto-load all NAV PS modules.

I don't think you can modify tables when running NavUserPassword auth and Classic Development Environment. If you switch to Windows Auth. and remove the Credentials parameter, then the script will ask you for you Windows Credentials - that should work.

Thanks a lot for the tip! I had the same issue (though with a BC14 container) and could successfully sync the objects after recreating the container to use Windows auth. :-)


fix(createElement): ignore prop value with null and undefined

Please describe the changes this PR makes and why it should be merged:
Status

[x] Code changes have been tested against prettier, or there are no code changes
[x] I know how to update typings and have done so, or typings don't need updating

Semantic versioning classification:

[x] This PR changes the codebase

[ ] This PR includes breaking changes (methods removed or renamed, parameters moved or removed)
[x] This PR changes the internal workings with no modifications to the external API (bug fixes, performance improvements)

[ ] This PR only includes non-code changes, like changes to documentation, README, etc.

I am using JSX with babel automatic runtime transformation and got Uncaught TypeError: setting getter-only property "children". It is caused by jsx function that set props.children to undefined:
https://github.com/aidenybai/million/blob/e0896e69ecbed516c7e2c77dbe8c0fe7fca0a32e/src/jsx-runtime/jsx.ts#L12
However, createElement will always set prop (including children) even if the prop is read-only and the prop value is undefined. The PR adds an additional null and undefined check before applying props. The corresponding test case has also been added as well.

Looks good, could you also make this change in useProps.ts as well?

Looks good, could you also make this change in useProps.ts as well?

I have checked useProps, it has already included a prop value check:
https://github.com/aidenybai/million/blob/e0896e69ecbed516c7e2c77dbe8c0fe7fca0a32e/src/million/drivers/useProps.ts#L47

Cool, thanks for the help! Will be pushed out in the next patch

Hey!


Is there any document for a developer?

ZStack is very impressing opensource project about IAAS.
I am trying to learn this project and try to became a  developer by building it from source and deploying the service manually using the distribution from the build.
Currently I build the project by: mvn clean install package assembly:single -DskipTests and got a zstack.war. But I don't know how to start the service?  The installation document is about deploying from a zstack ISO and I can not find the zstack-ctl  in the community version.
Is there any document for a developer? Thanks~

Navigate to the "Resource Download" section from ZStack, and under TAB "Documentation" there are

Installation Guide
zstack-ctl/cli Manual
API reference

The missing "zstack-ctl" is really a chicken-egg problem for you.  The initial deployment is expected to be ISO based (which contains all required packages/dependencies - this is due to the fact that a production deployment might not have an internet connection).  The war file is designed to upgrade the management node and agents, but not for the purpose of a fresh installation.


Attempting to avoid data races in async_traversal while evaluating dataflow()

@Naios please verify that this does not break anything

Ouch these typos..., thanks for correcting it. @hkaiser I think your change doesn't make any difference to the current revision because detach() just sets the bool detached_; member inside the async_traversal_point class rather than altering the control flow directly and thus the order of both calls doesn't matter.
As I remind there was a check that should prevent that the finalizer of dataflow was called more than once: https://github.com/STEllAR-GROUP/hpx/commit/c852439e57ab689640083572e669b30f081681eb#diff-040de9e61eef02088de58b48a421a1e5L514 .
While having a Skype conversation we went through this section and came to the conclusion that it could be dropped because we thought that there is no possibility the continuation of the future will be executed more than once. Maybe this has something to do with our issue here, but I'm not sure.

@Naios unfortunately this patch does not fix the problem (it makes it appear less often, though - but this could be coincidental). My current theory is that the container the iterators in https://github.com/STEllAR-GROUP/hpx/blob/master/hpx/util/detail/pack_traversal_async_impl.hpp#L232 refer to goes out of scope too early. It might be noteworthy that I move the container into dataflow() which might be a use case we have not tested thoroughly enough. I will investigate further.

Also, I think setting the flag before actually attaching a continuation to the current future changes the behavior as under certain circumstances the continuation might be executed during async_continue in which case the next async-traversal is started even before the detached flag might be reset,

I think in principle, setting the detached flag before executing async_continue is correct. A race might still occur since detached_ is not synchronized in any way. It should be either protected by a lock or changed to be std::atomic_flag (or similar).

The detached variable isn't shared across threads, because we create a new variable for every resumed traversal.

Don't the completion handlers concurrently access the variable?

No the only state which is shared across the suspensions are the async_traversal_frame which is stored on the heap and the iterators of the current traversal hierarchy.
See the arguments of frame_->async_continue(*current, std::move(state)); and its implementation:
            template <typename T, typename Hierarchy>
            void async_continue(T&& value, Hierarchy&& hierarchy)
            {
                // Create a self reference
                boost::intrusive_ptr<async_traversal_frame> self(this);

                // Create a callable object which resumes the current
                // traversal when it's called.
                auto resumable = make_resume_traversal_callable(
                    std::move(self), std::forward<Hierarchy>(hierarchy));

                // Invoke the visitor with the current value and the
                // callable object to resume the control flow.
                util::invoke(visitor(), async_traverse_detach_tag{},
                    std::forward<T>(value), std::move(resumable));
            }

where the make_resume_traversal_callable transfers the current state to the next resumption.

Whatever causes the problem, the current code clearly exposes data races in some way. For me the iterators to the shared data start to point into nowhere if dataflow is used when running on more than one thread.

A minimal testcase would help. Did you try using std::atomic_flag instead
of bool for detached_?
Am 15.11.2017 4:56 nachm. schrieb "Hartmut Kaiser"<EMAIL_ADDRESS>
:

Whatever causes the problem, the current code clearly exposes data races
in some way. For me the iterators to the shared data start to point into
nowhere if dataflow is used when running on more than one thread.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/STEllAR-GROUP/hpx/pull/3001#issuecomment-344637088,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AADRl3OHY20l2Yf9p1l1WAMAkewA8T4Nks5s2wmTgaJpZM4Qap0E
.

I don't have a minimal use-case at the moment. Also, I have not tried using a std::atomic_flag.

@Naios I think I understand what is going on now. I however have a hard time changing the code to fix it, maybe you can help.
The issue is that the current code creates a detached flag for each iteration level, attempting to propagate the status of the child back up on exit. This causes subtle data race problems caused by futures becoming ready out of order. For this reason, the old dataflow code had exactly one flag to track the 'ready' state. I believe the problems should go away if the new code is changed such that it will use just one Boolean to track the readiness (instead of one per iteration level).

@hkaiser I'm not sure what is going on there, are you open for a call tomorrow?
I'm trying to get my phylanx installation ready meanwhile.
Theoretically every future should be traversed only once, thus the traversal order is stricly ordered.
The detached bool variable is only used for marking the current execution context as abadoned.
When the last future is traversed the final handler is called, thus I think that a global detached variable would be a workaround for an issue we currently don't know about.

@Naios the latest commit fixes the issue I was seeing. Please verify that I have not broken anything.

@hkaiser I was able to reproduce the Issue, see my comments above.
I would like to put a little bit more time investigating into this.

@hkaiser I added assertions to ensure that the traversel is finished only once and it seems that the final handler is called at least twice which is probably the main reason of the iterator dereferencation error:

Especially see:

What I'm wondering here about, is that the iterator isn't modified inside async_traverse_one. When !range.is_finished() it should be perfectly valid to increment the iterator.  In the worst case we finish the range but in this case it should never yield an iterator dereferencation error.

I think I addressed this concern above.

@hkaiser I added assertions to ensure that the traversel is finished only once and it seems that the final handler is called at least twice which is probably the main reason of the iterator dereferencation error

This might explain things. Will you investigate this?

@Naios I think the finished_ flag is the one which needs to be an atomic. We've had similar issues with dataflow, where we had to protect finalize from being called more than once with such a flag.

@Naios please see my latest patch adding an atomic finished flag and demoting the detached flag to a plain Boolean.

We could wrap the finished_ flag with #ifndef _NDEBUG, when it is only used by an assertion.

We could wrap the finished_ flag with #ifndef _NDEBUG, when it is only used by an assertion.

I mainly prevents from calling the finalize code more than once.

@Naios are you ok with this change now?

@hkaiser I'm not sure whether this is the correct solution. Yesterday I spent more time on this and at least for me it seems like the memory of the traversal frame got corrupted. Or the pointer is freed too early.
I added a breakpoint to the finish method and the first time the method is called the debugger shows strange values and the assertion is triggered as well.
Maybe it would be helpful to inspect this with asan and ubsan.

@Naios Here is what I know. The main problem is that under certain circumstances, finalize might be called more than once. I have not been able to think of a scenario how this could happen, but apparently - in concurrent scenarios only - there is a chance of this occurring. Now, the first invocation of finalize moves the vector into the function invoked by dataflow. This invalidates the iterators into said vector - which is flagged as an error by the iterator checking facilities.
This PR proposes to fix this by changing three things:

Introduce an atomic finalized flag that prevents from executing the finalize functionality more than once. From introspecting the code, I'm convinced that it is safe to let all subsequent invocations of finalize just skip calling into the dataflow code. Those invocations could only come from the 'tail-end' of an asynchronous recursive execution of the iteration code.
Slightly change the dynamic range iteration such that the iterators themselves are not touched any more as soon as a particular asynchronous recursive execution of the iteration code has been detached. Those iterators could have become invalid because of finalize being called in a separate thread (see point 1).
Make the detached flag 'global' to a particular asynchronous recursive execution of the iteration code. That should guarantee to reliably detach any execution once one of the futures was not ready to begin with. This flag does not need to be atomic as it is sitting on the stack of the execution and can't be accessed by more than one thread concurrently. Also, this flag is now set to true 'before' a continuation is attached to the current future. This prevents races from the continuation being executed out of order.

I have not been able to think of a scenario how this could happen

There is an issue somewhere else, maybe we could just merge this workaround, since it was present in the original code too.
Did you test whether the async_complete handler is executed more than once through setting breakpoints?
Because in my scenario the frame was corrupted from the first invocation.

There is an issue somewhere else, maybe we could just merge this workaround, since it was present in the original code too.

Ok, I take this as you accepting this PR ;-)

Did you test whether the async_complete handler is executed more than once through setting breakpoints? Because in my scenario the frame was corrupted from the first invocation.

This is an assumption on my end as I have no other explanation for the things going on.


Secure the "List spaces" endpoint

fixes #1334

Codecov Report

Merging #1337 into master will increase coverage by 0.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #1337      +/-   ##
==========================================
+ Coverage   60.11%   60.12%   +0.01%
==========================================
  Files         119      119
  Lines       10653    10656       +3
==========================================
+ Hits         6404     6407       +3
  Misses       3606     3606
  Partials      643      643

Impacted Files
Coverage Δ

controller/space.go
81.56% <100%> (+0.19%)
:arrow_up:

Continue to review full report at Codecov.

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


[WIP] Rename opendistro_security to opendistro-security in build repo

Issue #, if available:
V313270097
Description of changes:
This PR is to rename opendistro_security to opendistro-security in build repo
We will only merge this PR if the security PR is merged: https://github.com/opendistro-for-elasticsearch/security/pull/1030
Test Results:
No Need.
Note: If this PR is related to Helm, please also update the README for related documentation changes. Thanks.
https://github.com/opendistro-for-elasticsearch/opendistro-build/blob/master/helm/README.md
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Close this one as we have renamed in OpenSearch.


Bug: Incorrect Guidance on the Action Plan Spreadsheet Analysis

Describe the bug
I am conducting a WARA for a CX and ran the collector script using Cloud Shell due to certain limitations of the cxs environment.
Using the Data Analyzer script, the Action Plan spreadsheet was generated.
Now, as per the guidance, under " Local Machine - Action Plan Analysis" - 2nd point:
_Go to the “ImpactedResources” worksheet, filter Column “B” by “IMPORTANT”, and validate manually the remaining resource configurations for reliabilty patterns.
    “IMPORTANT - Query under development”
    “IMPORTANT - Recommendation cannot be validated with ARGs - Validate Resources manually”
    “IMPORTANT - ServiceType Not Available in APRL - Validate Resources manually if Applicable, if not delete this line”__

When I follow the guidance, I cant find:
“IMPORTANT - Query under development”
“IMPORTANT - Recommendation cannot be validated with ARGs - Validate Resources manually”
I tried filtering all the columns not just "Cloumn B".
Also,  “IMPORTANT - ServiceType Not Available in APRL - Validate Resources manually if Applicable, if not delete this line” is under Column A not B.
To Reproduce
Steps to reproduce the behaviour:
You can run the script and find similar behavior. In case of any challenges, please feel free to loop me in to demonstrate.
Screenshots 📷

Any update on this issue?
I have received no response, and this is impacting my ongoing assessment.

Hey @jeetgarg
Can you confirm this still occurs on version 2.0.9?

Closing this due to no response. Please reach out internally if this is still ongoing and we will address.


Update

Please update this script :(
I'd be sooo so grateful, there isn't any other script like this on GitHub.
Thank you

yeah. I'm currently writing it right now. Should be ready soon.


Improve the PackageLoader error message

Explain why the PackageLoader failed when the package_path directory is missing.

fixes #1705

Checklist:

[ ] Add tests that demonstrate the correct behavior of the change. Tests should fail without the change.
[ ] Add or update relevant docs, in the docs folder and in code.
[ ] Add an entry in CHANGES.rst summarizing the change and linking to the issue.
[ ] Add .. versionchanged:: entries in any relevant code docs.
[x] Run pre-commit hooks and fix any issues.
[x] Run pytest and tox, no tests failed.

@davidism Here's that PR.

I split this into two messages: the original if no search paths are found in the package spec, and the new one if no search path contains the templates directory. Added a test for the new message, a test for the original message will take some thought since it would be a very rare situation.


Refactor and nested types support for Parquet Reader

This PR refactors and extends the Parquet reader. A major feature addition is the support for nested types in Parquet files, which are mapped to DuckDB's STRUCT and LIST types. Under the hood the Parquet reader now does zero-copy of strings, which should increase performance.  While I was at it, I also added DATE support to Parquet, should improve the TPCH timings ^^

Performance went down ~10% so need to investigate what's going on there.

Performance went down ~10% so need to investigate what's going on there.

CC @oerling

CC @oerling

@apkwan @dforsber this changes quite a lot in the parquet reader, perhaps you can try the latest master before we release.

@apkwan @dforsber this changes quite a lot in the parquet reader, perhaps you can try the latest master before we release.

It seems that there is a bug: after all data has been Fetched, the parquet reader returns nullptr instead of an empty DataChunk

It seems that there is a bug: after all data has been Fetched, the parquet reader returns nullptr instead of an empty DataChunk

It seems that there is a bug: after all data has been Fetched, the parquet reader returns nullptr instead of an empty DataChunk

Could you please post a full example of what goes wrong in a new issue? Not sure I understand.

It seems that there is a bug: after all data has been Fetched, the parquet reader returns nullptr instead of an empty DataChunk

Could you please post a full example of what goes wrong in a new issue? Not sure I understand.

It seems that there is a bug: after all data has been Fetched, the parquet reader returns nullptr instead of an empty DataChunk

Could you please post a full example of what goes wrong in a new issue? Not sure I understand.

Ah, actually, disregard that, it seems that the behaviour of duckdb has changed
in query-result:
Used to be:
	//! Fetches a DataChunk from the query result. Returns an empty chunk if the result is empty, or nullptr on failure.
	virtual unique_ptr<DataChunk> Fetch() = 0;

Now:
	//! Fetches a DataChunk of normalized (flat) vectors from the query result.
	//! Returns nullptr if there are no more results to fetch.
	DUCKDB_API virtual unique_ptr<DataChunk> Fetch();

So, it used to return an empty chunk, now it returns a nullptr.

It seems that there is a bug: after all data has been Fetched, the parquet reader returns nullptr instead of an empty DataChunk

Could you please post a full example of what goes wrong in a new issue? Not sure I understand.

Ah, actually, disregard that, it seems that the behaviour of duckdb has changed
in query-result:
Used to be:
	//! Fetches a DataChunk from the query result. Returns an empty chunk if the result is empty, or nullptr on failure.
	virtual unique_ptr<DataChunk> Fetch() = 0;

Now:
	//! Fetches a DataChunk of normalized (flat) vectors from the query result.
	//! Returns nullptr if there are no more results to fetch.
	DUCKDB_API virtual unique_ptr<DataChunk> Fetch();

So, it used to return an empty chunk, now it returns a nullptr.


[BUG] Disconnect-PnPOnline Documentation doesn't match Connect-PnPOnline operation (Ambiguous docco)

Expected behavior
As documented for Disconnect-PnPOnline docco;
"If instead you simply want to connect to another site collection within the same tenant using the same credentials you used previously, do not use this cmdlet but instead use Connect-PnPOnline -Url https://tenant.sharepoint.com/sites/othersite instead without disconnecting. It will try to reuse the existing authentication method and cached credentials."
Extra Question (for bonus points)
Is there a method of accessing and re-using the Authentication Details with an -interactive MFA connection?
I want to:

Connect to site A -interactively using the Web/MFA Dialog
Connect to site B using the same credentials but not having to re-enter them via a second Web/MFA Dialog

Actual behavior
IF you're using the Connect-PnPOnline -Interactive method, you're prompted for credentials again on attempting to connect to second site.
Steps to reproduce behavior
# First connection Displays Web Auth dialog box for MFA Authentication as expected
$ProjectSiteConn = Connect-PnPOnline -URL $ProjectsURL -interactive -ReturnConnection

# Second connection Displays Windows Authentication Dialog - not as described in Disonnect-PnPOnline docco above
$SharedSiteConn = Connect-PnPOnline -URL $SharedURL -ReturnConnection

Including -interactive on the second connection string prompts for Web/MFA Authentication again.
(inclusion or omission of -ReturnConnection is irrelevant).
What is the version of the Cmdlet module you are running?
1.11.0
Which operating system/environment are you running PnP PowerShell on?

[x] Windows
[ ] Linux
[ ] MacOS
[ ] Azure Cloud Shell
[ ] Azure Functions
[ ] Other : please specify

Have you tried connecting to a site, then using Get-PnPAccessToken to fetch the current access token? You could then use that access token to connect again:
Connect-PnPOnline -Url https://contoso.sharepoint.com -AccessToken $token
These tokens do tend to expire after an hour, so it may or may not be suitable for your use case.

Have you tried connecting to a site, then using Get-PnPAccessToken to fetch the current access token? You could then use that access token to connect again

...no I haven't. I wasn't aware of that Cmdlet.

😲 OMG it worked.
Thankyou @CallumCrowley !


Escape disallowed tags

Added the option to escape disallowed tags instead of stripping or discarding them.
Escaping is a rather common use-case (a user naively sending hello would expect it to render like that, and not stripped down to hello), which is also referenced in #57 .

@boutell
Hey, I have rebased my PR so it's no longer conflicting.
Would appreciate some feedback.

Hmm, I don't get why you would want to escape non-whitelisted child elements. I would not expect that, if I was a semi-naive HTML user "hoping for the best."

Coincidentally just posted an issue about this exact thing.
I would love to render blacklisted tags as text. In fact, that's exactly what github does.

I'm persuaded there's value here in this as an optional behavior activated by a flag, but it looks like the PR has some conflicts that need to be resolved.

Hey, rebased my changes again several days ago, but for some reason the circleci check is still waiting.
Any ideas?

Went ahead and created a PR to DefinitelyTyped to handle the TypeScript-friendly stuff.

@boutell any movement on this?

I had to revert this. Your tests failed for me with "npm test". Indeed it doesn't seem to work.
Maybe you had trouble running "npm test" because of the issues that crept in with the frontend build. I just fixed that in master, so merge latest master into your branch and try again? Thanks.

As a matter of fact, I did have troubles running "npm test", but I ran the tests manually and everything seemed fine.
I'll have time to look into it and fix it in November.

Seems like npm test is broken on master in a way unrelated to this PR.
Please review #311 , if and when it is merged, I'll rebase this PR.


SGSparseMatrix unit test

I have add two unit tests for SGSparse matrix, for from_dense and get_transpose member function. Also changed access_by_index to test non square matrix.
The tests follow the SGSparse matrix pattern sparseMatrix(colIndex, rowIndex) rather than dense matrix pattern denseMatrix(rowIndex, colIndex)
may add more test later.. feel free to inform me if need further modification.

Also, I think it is easier to think about sparse matrices in terms of features and vectors instead of rows and columns.


add MySQL extension assignment support for VariableAssignment

What problem does this PR solve?
Support MySQL extension := syntax in variable assignment.
What is changed and how it works?
Modified parser.y
Check List
Tests

Unit test
Integration test

Code changes

Has exported function/method change

Side effects
Related changes

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@tiancaiamao @kennytm PTAL


Unlist NLog 5.0 packages in favor of NLog 4.5 / Drop support for NLog 5

As NLog 4.5 now supports (practically) all the platforms added in NLog 5 - without breaking changes - NLog 4.5 should be used instead of NLog 5.

done, see also https://twitter.com/NLogOfficial/status/943256216616173568


fix & upd(freetube-deb): 0.17.1 -> 0.18.0

Added Repology info for easy update, and updated it to latest beta 0.18.0

@WRM-42, Do you wish to keep maintaining this pacscript?

@WRM-42, Do you wish to keep maintaining this pacscript?

Not now, may be later

Wizard was asking WRM..

Wizard was asking WRM..

LOL! Noob me

Merging it for now, @WRM-42 can respond later.


AudioEncoder, AudioDecoder, Serialize to JSON, Deserialize JSON to EncodedAudioChunk, Play Music

I already wrote the code and am hosting the code experimenting with WebCodecs. It would probably be helpful to your audience to disclose actual field usage results, including implementation restrictions, limitations. A fair amount of advertising and claims have been proffered re WebCodecs, I present my results for playing audio, serializing, deserializing audio from field in the wild. A short list of improvements that cannot be set aside as TODO are

Hardcoded 48000 kHz, 60ms, Opus
Concluding a AudioEncoder and AudioDecoder process on an error for "reclaiming" the code
No way to stream from AudioDecoder directly to MediaStreamTrackGenerator due to incompatible callback output and expected input of MediaStreamTrackGenerator.writable - the generator is faster than the decoder
You do not get out from AudioDecoder what you input to AudioEncoder - when I get output from espeak-ng 'Test' as a 1 channel, 22050 WAV, it is currently impossible to get that same output back from AudioDecoder using 'opus' codec.

If your talk involves the features advertised and claimed and worked on, it is fair for the listeners to be exposed to the shortcomings, else, you cannot improve the API if your system is closed-looped, without external verification from developers that have a stake in the product actually working as advertised, re "flexible", not a stake in advertising the product.
Simple close the PR if you are not interested in the field experiments I have performed. I will keep the PR open in the fork if you reconsider your decision, whatever that may be.

We've already filled our allotted talk time with demos, but please feel free to host this in your fork.
As for the issues, generally speaking, issues should be filed in either our WC github (for API shape) or crbug.com (for impl bugs).

Hardcoded 48000 kHz, 60ms, Opus

For samplerate, I've just filed https://github.com/w3c/webcodecs/issues/370 (TL;DR WC may resample)
For 60ms, I've filed https://github.com/w3c/webcodecs/issues/371 (TL;DR WC should should offer more customization)

Concluding a AudioEncoder and AudioDecoder process on an error for "reclaiming" the code

Already tracked https://bugs.chromium.org/p/chromium/issues/detail?id=1242178

No way to stream from AudioDecoder directly to MediaStreamTrackGenerator due to incompatible callback output and expected input of MediaStreamTrackGenerator.writable - the generator is faster than the decoder

Sorry, I don't follow.

You do not get out from AudioDecoder what you input to AudioEncoder - when I get output from espeak-ng 'Test' as a 1 channel, 22050 WAV, it is currently impossible to get that same output back from AudioDecoder using 'opus' codec.

Duplicate of your first bullet. https://github.com/w3c/webcodecs/issues/370 (TL;DR WC may resample)

As for the issues, generally speaking, issues should be filed in either our WC github (for API shape) or crbug.com (for impl bugs).

WICG and W3C banned me https://github.com/w3c/mediacapture-screen-share/issues/141. I have no means to file specification issues.

No way to stream from AudioDecoder directly to MediaStreamTrackGenerator due to incompatible callback output and expected input of MediaStreamTrackGenerator.writable - the generator is faster than the decoder

Sorry, I don't follow.

Media Capture Transform MediaStreamTrackGenerator consumes WebCodecs AudioData. AudioDecoder.output is too far too slow (partially due to 60ms hardcoded Chromium implementation, partially due to the callback function) for AudioDecoder (e.g, input from serialized EncodedAudioChunk) => MediaStreamTrackGenerator => stream to peer or playback.
AudioDecoder.output should be compatible with MediaStreamTrackGenerator and MediaStreamTrackGenerator.
If your API does not really support
const config = {
    numberOfChannels: 1,
    sampleRate: 22050, // Chrome hardcodes to 48000
    codec: 'opus',
    bitrate: 16000,
  };

then AudioEncoder.isConfigSupported and AudioDecoder.isConfigSupported should not be fulfilling.
Again, I get 1 channel, 22050 WAV output from espeak-ng https://github.com/guest271314/native-messaging-espeak-ng/blob/master/AudioStream.js. I never set 48000 sample rate, Opus codec supports sample rates other than 48000.

(TL;DR WC may resample)

That is very problematic, and dissolves the concept of "flexibility" advertised. It does not matter what the implementation does intrernally, just don't tell me the API is flexible, and output what I expect, not Chromium-implementers and specification authors know-best, and that is it. I can just stream input to opusenc using Native Messaging, when I should not have to resample at all.

For example libopus only supports a handful of rates.

That is simply not true.
$ opusenc --raw-rate 22050 --raw-chan 1 input.wav output.opus

No way to stream from AudioDecoder directly to MediaStreamTrackGenerator due to incompatible callback output and expected input of MediaStreamTrackGenerator.writable - the generator is faster than the decoder

Sorry, I don't follow.

We know we can stream real-time using Opus codec becuase .opus files can be concatenated and played consecutively and becuase WebRTC streams Opus codec. AudioDecoder waits for an arbitrary frame size, 60ms, thus is not real-time. For real-time streaming from AudioDecoder resampling is necessary because I am expecting 22050 kHz, 1 channel, extactly what I input, to be output, which does not happen.
 const TARGET_FRAME_SIZE = 220;
  const TARGET_SAMPLE_RATE = 22050;
  // ...
  const config = {
    numberOfChannels: 1,
    sampleRate: 22050, // Chrome hardcodes to 48000
    codec: 'opus',
    bitrate: 16000,
  };
  encoder.configure(config);
  const decoder = new AudioDecoder({
    error(e) {
      console.error(e);
    },
    async output(frame) {
      ++chunk_length;
      const { duration, numberOfChannels, numberOfFrames, sampleRate } = frame;
      const size = frame.allocationSize({ planeIndex: 0 });
      const data = new ArrayBuffer(size);
      frame.copyTo(data, { planeIndex: 0 });
      const buffer = new AudioBuffer({
        length: numberOfFrames,
        numberOfChannels,
        sampleRate,
      });
      buffer.getChannelData(0).set(new Float32Array(data));
      // https://stackoverflow.com/a/27601521
      const oac = new OfflineAudioContext(
        buffer.numberOfChannels,
        buffer.duration * TARGET_SAMPLE_RATE,
        TARGET_SAMPLE_RATE
      );
      // Play it from the beginning.
      const source = new AudioBufferSourceNode(oac, {
        buffer,
      });
      oac.buffer = source;
      source.connect(oac.destination);
      source.start();
      const ab = (await oac.startRendering()).getChannelData(0);
      for (let i = 0; i < ab.length; i++) {
        if (channelData.length === TARGET_FRAME_SIZE) {
          const floats = new Float32Array(
            channelData.splice(0, TARGET_FRAME_SIZE)
          );
          decoderController.enqueue(floats);
        }
        channelData.push(ab[i]);
      }
      if (chunk_length === len) {
        if (channelData.length) {
          const floats = new Float32Array(TARGET_FRAME_SIZE);
          floats.set(channelData.splice(0, channelData.length));
          decoderController.enqueue(floats);
          decoderController.close();
          decoderResolve();
        }
      }
    },
  });

should not be necessary, though is, when the client wants back exactly what they input.

AudioDecoder waits for an arbitrary frame size, 60ms, thus is not real-time.

Got it. Fixing this is tracked in https://github.com/w3c/webcodecs/issues/371

For example libopus only supports a handful of rates.

That is simply not true.
$ opusenc --raw-rate 22050 --raw-chan 1 input.wav output.opus

The source line I linked rejects anything outside of the handful of supported rates. The library documentation matches the source code. "Sampling rate of input signal (Hz) This must be one of 8000, 12000, 16000, 24000, or 48000".
I can't tell from your command line what is actually happening. How did you determine that your encoding actually uses 22050? Could it be that this is just the input rate, and the opusenc opus-tool is actually resampling prior to feeding it to the opus library?

I can't tell from your command line what is actually happening. How did you determine that your encoding actually uses 22050? Could it be that this is just the input rate, and the opusenc opus-tool is actually resampling prior to feeding it to the opus library?

Nevermind. I see your comments on the chrome bug.
https://bugs.chromium.org/p/chromium/issues/detail?id=1254496#c1
I'll investigate there.


Sometimes  does not work but  does.

Describe the bug
I have a big C++ code that I can't share. There is a if, then inside range loop declaring a variable, and this variable is used 2 times inside a loop.
I can use <a-p> to switch between all 3 references (declaration, 2 uses) of variable but <a-n> works only when cursor is on uses.
I verified that it's not problem with shortcuts - giving command :lua require('illuminate').goto_prev_reference() works like <a-p>, with :lua require('illuminate').goto_next_reference() works like <a-n>.
To Reproduce
open big C++ code base... and function with range loop... I can't really narrow it down further. I'm forbidden from sharing the code or what it does.
Note Omitting a minimal init.vim/init.lua/.vimrc will likely result in the issue being closed without explanation.
Output from :IlluminateDebug
will see what :IlluminateDebug does tomorrow. I could not find info about debugging before reporting this bug.
Expected behavior
behavior of <a-n> should be reverse of <a-p>

:IlluminateDebug:
buf_should_illuminate 1 true
config {
   case_insensitive_regex = false,
   delay = 100,
   filetype_overrides = {},
   filetypes_allowlist = {},
   filetypes_denylist = { "dirbuf", "dirvish", "fugitive" },
   min_count_to_highlight = 1,
   modes_allowlist = {},
   modes_denylist = {},
   providers = { "lsp", "treesitter", "regex" },
   providers_regex_syntax_allowlist = {},
   providers_regex_syntax_denylist = {},
   under_cursor = true
}
started true
provider table: 0x7f36079ee650 lsp
`termguicolors` true

Note Omitting a minimal init.vim/init.lua/.vimrc will likely result in the issue being closed without explanation.

I am unable to reproduce. A minimal init.lua and a minimal C++ file is required. There is likely an interaction going on with another plugin since the goto code has no knowledge about declaration/use for references https://github.com/RRethy/vim-illuminate/blob/5eeb7951fc630682c322e88a9bbdae5c224ff0aa/lua/illuminate/goto.lua#L1-L63.

@RRethy I created repo with code that represents the problem. Could you take a look at it?
https://github.com/CapSel/vim-iluminate-bug


Implement Tensor Broadcasting

Both matlab and python do multi-dimensional array broadcasting to allow you to perform element-wise operations on arrays with similar dimensions.
We should decide if we want to support something similar on Tensor.
We should also decide if we want it to happen automatically or require an explicit transformation.  If it happens automatically we could potentially do it without introducing any allocation at the cost of complexity to our index math in the element wise operations.
If we do add an explicit API it might look something like:
Tensor BroadcastTo(params int[] newDimensions)
Tensor BroadcastCompatibleWith(Tensor other)
static int[] GetBroadcastDimensions(Tensor left, Tensor right)

Dependent on #1798


Query::leftJoin - a simpler way to quote join column?

use Yiisoft\Db\Connection\ConnectionInterface;
use Yiisoft\Db\Expression\Expression;
use Yiisoft\Db\Query\Query;

/**
 * @var ConnectionInterface $database
 * @var string $tableName
 * @var string $childrenTableName
 */
$quoter = $database->getQuoter();
$quotedJoinColumn = $quoter->quoteTableName($tableName)  . '.' . $quoter->quoteColumnName('name');
$rawItems = (new Query($database))
    ->select($tableName . '.*')
    ->from($tableName)
    ->leftJoin($childrenTableName, [$childrenTableName . '.child' => new Expression($quotedJoinColumn)])
    ->all();

Column quoting (in example it is $childrenTableName . '.child'):

We can split $column by dot and first part quote as table name, and second part as column name. Here:
https://github.com/yiisoft/db/blob/fb4c084f5389cc1cd6718f8c74989601506f993c/src/QueryBuilder/Condition/Builder/HashConditionBuilder.php#L55

Suggest add new method to QuoterInterface that will be quote table name with column (for example, MyTable.age).

This could be done by one of the following ways:

By default process condition of associative array as "column name" => "column name" for ...Join() methods,
e.g. ['parent.id' => 'child.parent_id']  quote key and value of the associative array as column names.
Use Expression or parameters if needs to pass value (not "column name"),
e.g. ['parent.id' => 'child.parent_id', 'child.has_parent' => new Expression('1'), 'child.has_parent' => ':param']

Add one more condition type, e.g. column: ['column', 'parent.id' => 'child.parent_id']
and quote key and value as column names.
This condition can be used in other places (not only in ...Join()),
e.g. ->where(['column', 'parent.id' => 'child.parent_id'])

In current implementation to $on bind params and used result string. And this OK for me, $on is not so often be a column name.
3th way from @Tigrov looks fine solution for this case.


[Feature] Display the model-level constraints in the documentation generated by dbt, also put multiple primary key constraint for dbt-bigquery

Is this your first time submitting a feature request?

[X] I have read the expectations for open source contributors
[X] I have searched the existing issues, and I could not find an existing issue for this feature
[X] I am requesting a straightforward extension of existing dbt functionality, rather than a Big Idea better suited to a discussion

Describe the feature
When I run dbt docs generate, it fails to include constraints defined at the model level in the documentation. For instance, if I establish a primary key at the model level, this information isn't reflected in the documentation. Instead, it only appears when I define the primary key at the column constraint level. However, because I'm utilizing dbt-bigquery, I'm restricted to declaring only one primary key field at the column level. This necessitates the declaration of primary keys at the model level, thereby creating a discrepancy in the documentation.
Describe alternatives you've considered
To enhance the documentation process in dbt for dbt-bigquery, consider implementing the ability to define multiple primary key constraints at the column level while also ensuring that primary key constraints established at the model level are accurately reported in the documentation. This improvement would streamline the documentation process and provide comprehensive information about the primary keys used in the data models.
Who will this benefit?
No response
Are you interested in contributing this feature?
No response
Anything else?
No response

Thanks for reaching out @salimmoulouel !
It sounds like you have two asks (please correct me if I'm misunderstanding!):

Display the model-level constraints in the documentation generated by dbt
Ability to define multiple primary key constraints at the column level

Assuming that complete documentation is your main ask here, I'm going to transfer this issue to dbt-docs for further consideration.
1. Display the model-level constraints in the documentation generated by dbt
You want the documentation website (dbt docs generate && dbt docs serve) to display a "PK" label for each of those columns, possibly like this?

2. Multiple primary key constraints at the column level
I don't remember off the top of my head, but I think there are technical reasons for us not supporting this. Feel free to open up a separate issue for this one if you'd like, but I'm guessing we'd close as "won't do".

Reprex

models/my_model.sql
select 1 as pk_1, 2 as pk_2

models/_models.yml
models:
  - name: my_model

    config:
      materialized: table

      contract:
        enforced: true

    # model-level constraints
    constraints:
      - type: primary_key
        columns: [pk_1, pk_2]

    # column-level constraints
    columns:
      - name: pk_1
        data_type: int
        constraints:
          - type: not_null
      - name: pk_2
        data_type: int
        constraints:
          - type: not_null

Build and launch the dbt project docs:
dbt docs generate && dbt docs serve


Tests without WebGL Context

@google/model-viewer v4.0.0 (also tried v3.5.0)
When running tests in CI (GitHub Actions, without a screen), there seems to be an issue i was not having before:
TypeError: this.threeRenderer is undefined thrown

and
Uncaught TypeError: Cannot read properties of undefined (reading 'xr') thrown

which come together with (it seems):
Chrome Headless <IP_ADDRESS> (Mac OS 10.15.7) WARN: Error: Error creating WebGL context.
Error: Error creating WebGL context.
    at new WebGLRenderer (http://localhost:9876/_karma_webpack_/webpack:/node_modules/three/build/three.module.js:14906:13)
    at new Renderer (http://localhost:9876/_karma_webpack_/@google/webpack:/node_modules/@google/model-viewer/lib/three-components/Renderer.js:73:34)
    at Function.singleton (http://localhost:9876/_karma_webpack_/@google/webpack:/node_modules/@google/model-viewer/lib/three-components/Renderer.js:103:31)
    at new LoadingModelViewerElement (http://localhost:9876/_karma_webpack_/@google/webpack:/node_modules/@google/model-viewer/lib/features/loading.js:177:22)
    at new ARModelViewerElement (http://localhost:9876/_karma_webpack_/@google/webpack:/node_modules/@google/model-viewer/lib/features/ar.js:58:13)
    at new ControlsModelViewerElement (http://localhost:9876/_karma_webpack_/@google/webpack:/node_modules/@google/model-viewer/lib/features/controls.js:178:13)
    at new EnvironmentModelViewerElement (http://localhost:9876/_karma_webpack_/@google/webpack:/node_modules/@google/model-viewer/lib/features/environment.js:37:13)
    at new StagingModelViewerElement (http://localhost:9876/_karma_webpack_/@google/webpack:/node_modules/@google/model-viewer/lib/features/staging.js:42:13)
    at new SceneGraphModelViewerElement (http://localhost:9876/_karma_webpack_/@google/webpack:/node_modules/@google/model-viewer/lib/features/scene-graph.js:41:13)
    at new AnnotationModelViewerElement (http://localhost:9876/_karma_webpack_/@google/webpack:/node_modules/@google/model-viewer/lib/features/annotation.js:35:13)

Hmm, I haven't seen that - I'm guessing something else is different, since our CI is not having this problem. Would you mind sending a PR to see if you can trigger the problem here on our CI?

Oh yeah, Karma is dead. We moved to web-test-runner; it's way better.


wallet balance check doesn't work

There is a balance of 0.19sol. 0.1sol are needed to mint one. If I increase the balance to 0,5sol it works
Whitelisteprice 0.1 public price 0.5

Thats odd, I haven't been able to replicate. Are you using the same RPC cluster on Phantom?

I am having the same issue.

Thats odd, I haven't been able to replicate. Are you using the same RPC cluster on Phantom?

No. Used a custom RPC from quicknode and tried it with the normal mainnet RPC.
What can I provide to help you?

Were you able to resolve the issue?

not tried. used another frontend, but this is my favorite ... will try again in some days, maybe update solved it

Well the current update still has the issue. My whitelist price is 0.25 but people could not mint with 0.33 in their wallet. It said insufficient funds but when they had much more like 0.5 or something they could mint and it charged 0.25 only. So the bug is still there. @alvinsga Can you help? If you need anything I can share it with you. I am currently using a different front end but if you want to test I can put this one up. This is on the mainnet BTW. Let me know. thx

@gremsee @Web3Pro90 Apologies for the delay. I have released a fix for this issue in the latest commit, let me know if this resolves your issues.

@alvinsga Thx mate. The issue appears to be resolved. I tested with 0.27 SOL and it went throught. thanks again.


Add git-commit to set of spell checked languages

Currently, only two languages are spell checked by default:

Markdown
Plain text

The developer can customize this using a workspace specific spell.json file. This, however, doesn't work well for cases where one uses Code in the context of git as git will open Code without a directory and thus the workspace specific spell.json will never be used.
This could be also be addressed by #7 but it seems commit messages --when edited in Code -- should get spell checking by default anyways.

This extension has had a large number of stability issues based on the availability of the underlying service.  Today I published an update which points users to another extension for Spell Checking.
I'm closing the majority of issues as development on the extension has stopped. Sorry for any inconvenience this caused anyone, the good news is that there are better options out there now that don't require the service.
Sean


All commands should print nice error for corrupt meta.json

Previously idl only printed a nice error message due to a corrupt meta.json file for idl update. This change makes it so we get a nice error message regardless of the command being run.
Closes https://github.com/uber/idl/issues/43
cc/ @Raynos @kriskowal

lgtm.


Encryption status output enriched with IPsec details

Expected IPsec key count, IPsec key type and IPsec key rotation in progress status added to the encrypt output.

Looks good. Then we should consider using cilium-cli to perform key rotation in ci-ipsec-e2e, (and even in the ipsec doc).

@jschwinger233 I've refactored expectedIPsecKeyCount function, could you please double check?
Thanks!

@brb kind ping )


PadstackInstance.component getter return broken component object

🔍 Before submitting the issue

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

🐞 Description of the bug

I checked the pin has net and all looks ok.
📝 Steps to reproduce
NA
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
No response
🐍 Which Python version are you using?
3.10
📦 Installed packages
NA

ConnObj.component method is incorrectly returning ComponentGroup instead of Component

@svandenb-dev Is the pin in question part of a component? If not, the behavior you are seeing is expected since the ComponentGroup returned by the component property is null and therefore throws an exception when a method is called on it

We can close issue. This was open long time ago.


feat(service): Add Google Chat Service

Fixes issue #459
Description

Implements Google Chat Service integration.
Motivation and Context

This PR solves Issue #459
How Has This Been Tested?

Decent unit test coverage
gocov test | gocov report
ok      github.com/nikoksr/notify/service/googlechat    0.384s  coverage: 85.2% of statements

github.com/nikoksr/notify/service/googlechat/mock_create_call.go                 newMockCreateCall               100.00% (4/4)
github.com/nikoksr/notify/service/googlechat/mock_spaces_message_creator.go      newMockSpacesMessageCreator     100.00% (4/4)
github.com/nikoksr/notify/service/googlechat/mock_create_call.go                 @55:12                          100.00% (1/1)
github.com/nikoksr/notify/service/googlechat/mock_spaces_message_creator.go      @41:12                          100.00% (1/1)
github.com/nikoksr/notify/service/googlechat/googlechat.go                       Service.AddReceivers            100.00% (1/1)
github.com/nikoksr/notify/service/googlechat/googlechat.go                       Service.Send                    88.89% (8/9)
github.com/nikoksr/notify/service/googlechat/mock_spaces_message_creator.go      mockSpacesMessageCreator.Create 85.71% (6/7)
github.com/nikoksr/notify/service/googlechat/mock_create_call.go                 mockCreateCall.Do               81.25% (13/16)
github.com/nikoksr/notify/service/googlechat/googlechat.go                       newMessageCreator               80.00% (4/5)
github.com/nikoksr/notify/service/googlechat/googlechat.go                       New                             80.00% (4/5)
github.com/nikoksr/notify/service/googlechat/googlechat.go                       messageCreator.Create           0.00% (0/1)
github.com/nikoksr/notify/service/googlechat                                     ------------------------------- 85.19% (46/54)

Total Coverage: 85.19% (46/54)

Manual Testing

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Documentation (no code change)
[ ] Refactor (refactoring production code)
[ ] Other

Checklist:

[x] My code follows the code style of this project.
[x] I have updated the documentation accordingly.
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.

Codecov Report
Base: 73.43% // Head: 73.39% // Decreases project coverage by -0.03% :warning:

Coverage data is based on head (c417b70) compared to base (48e0255).
Patch coverage: 72.83% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #501      +/-   ##
==========================================
- Coverage   73.43%   73.39%   -0.04%
==========================================
  Files          37       40       +3
  Lines        1148     1229      +81
==========================================
+ Hits          843      902      +59
- Misses        228      241      +13
- Partials       77       86       +9

Impacted Files
Coverage Δ

service/googlechat/mock_create_call.go
68.96% <68.96%> (ø)

service/googlechat/googlechat.go
71.42% <71.42%> (ø)

service/googlechat/mock_spaces_message_creator.go
82.35% <82.35%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

Hey @nikoksr I'm having some trouble trying to resolve my dependencies with the main branch. I've tried resolving the conflicts by editing the go.mod file directly and running go mod tidy, but whenever I run the tidy command, my changes to the mod file are removed. I've tried updating the oauth package using go get golang.org/x/oauth2 but this upgrades the package to v0.4.0. I've also tried targeting the v.0.0.0 but this didn't work either. Any advise you can give to point me in the right direction?

@EthanEFung sure thing! Should be resolved now. Could you please verify that everything's still working as intented? Tests and linter are happy.

@nikoksr Works well on my end


Document all injected environment variables on checker pods

We should add KH_CHECK_RUN_DEADLINE to this doc along with all the other environment variables that are loaded into pods by KH by default.

have to rework PR #443 and could add this in my PR if you want?

Sure!  Up to you.  I tend not to keep adding into PRs because things go wrong and the extraneous changes get dropped by accident.  More smaller PRs is normally better practice, I think.
Either way is fine here, though.

All the crucial ones are documented (all the ones check implementers should be aware about)


[util] Allow specifying hjson file in current directory

Specifying a hjson in the current directory
(e.g. ../../../../util/regtool.py uart.hjson) causes a pathlib error
because parents[1] doesn't exist.
Signed-off-by: Olof Kindgren<EMAIL_ADDRESS>

Haha. It was my first hands-on experience with pathlib and I'm not yet convinced either tbh :)


Invoke-PsRule throw a System.InvalidCastException when a Rule send 2 objects into the pipeline.

Invoke-PsRule throw a System.InvalidCastException when a Rule send 2 objects into the pipeline.
To reproduce the error :
$Path='C:\temp'
$File='Test.Rule.ps1'
@'
Rule Test {
  'test' #or a return value of a method call
  $true
}
#same error with this code
# Rule Test2 {
#   $true
#   'test'

#No error with this code
# Rule Test2 {
#   $true
#   $true
}
'@ >"$Path\$File"

'data'|Invoke-PSRule -Path "$Path\$File"
#Invoke-RuleBlock : Le cast spécifié n'est pas valide.
# Au caractère C:\....\Modules\psrule\0.7.0\PSRule.psm1:171 : 17
# +                 $pipeline.Process($InputObject);
# +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#     + CategoryInfo          : NotSpecified: (:) [Invoke-RuleBlock], InvalidCastException
#     + FullyQualifiedErrorId : System.InvalidCastException,PSRule.Commands.InvokeRuleBlockCommand

The details of the exception :
$e=$error[0]
$e|select *

# PSMessageDetails      :
# Exception             : System.InvalidCastException: Le cast spécifié n'est pas valide.
#                            à PSRule.Rules.RuleConditionResult.Create(IEnumerable`1 value)
#                            à PSRule.Commands.InvokeRuleBlockCommand.ProcessRecord()
#                            à System.Management.Automation.CommandProcessor.ProcessRecord()
# TargetObject          :
# CategoryInfo          : NotSpecified: (:) [Invoke-RuleBlock], InvalidCastException
# FullyQualifiedErrorId : System.InvalidCastException,PSRule.Commands.InvokeRuleBlockCommand
# ErrorDetails          :
# InvocationInfo        : System.Management.Automation.InvocationInfo
# ScriptStackTrace      :
# PipelineIterationInfo : {}

$e.Exception|select *

# Message        : Le cast spécifié n'est pas valide.
# Data           : {}
# InnerException :
# TargetSite     : PSRule.Rules.RuleConditionResult Create(System.Collections.Generic.IEnumerable`1[System.Object])
# StackTrace     :    à PSRule.Rules.RuleConditionResult.Create(IEnumerable`1 value)
#                     à PSRule.Commands.InvokeRuleBlockCommand.ProcessRecord()
#                     à System.Management.Automation.CommandProcessor.ProcessRecord()
# HelpLink       :
# Source         : PSRule
# HResult        : -2147467262

Expected behaviour
The documentation for the word Rule does not specify whether a rule should issue a single return value of type boolean ($true or $false) or multiple values of type boolean.
In this case it is the last issued value that takes precedence.

@LaurentDardenne :) you are testing my documentation, thanks keep it up.
Rule conditions can only return $True or $False, so the string test is not valid. Good catch.
When more then condition is defined if any return $False then the rule failed. If all return $True then the rule passed.
So, the following would always fail, regardless of the $True being the last condition.
Rule 'Test' {
$False
$True
}

As you have pointed out, the rule keyword documentation isn't clear. Thanks. I'll look to correct that.
The walkthrough is hopefully a little clearer.

[ ] Improve messaging for non-boolean return types from conditions.
[ ] Fix rule keyword documentation.

The walkthrough is hopefully a little clearer.

Rome wasn't built in a day :-)
Thanks.

Thanks for this fix. I have just one remark.
With the version 0.7.0-B190633 :
$r='data'|Invoke-PSRule -Path "$Path\$File" -Outcome all
# Invoke-PSRule : An invalid rule result was returned for Test.Rule.ps1/Test. Conditions must return boolean $True or $False.
#...
#     + FullyQualifiedErrorId : PSRule.Runtime.InvalidRuleResult,Invoke-PSRule

$r|select *
# Outcome        : Fail
# OutcomeReason  : Processed
#...
# RuleId         : Test.Rule.ps1/Test
# RuleName       : Test

In this case I have a Powershell error, but the OutCome content is 'fail'
What difference do you make here between 'Fail' and 'Error' ?
Or under what conditions do I have the OutCome content at 'Error'?

@LaurentDardenne Good call out. Agreed it should return the error status instead of fail. I think it is fair to say that if an error in rule or in engine occurs during an rule execution then the Error outcome should be returned.


MHW:I - Activities: Broken Botanical Box Counter

My botanical box is stuck at 1/50 and regardless of what I do it won't go away. Whenever something would cultivate, instead of being 4/50 in the game. The counter for the botanical box would display 5/50 and will be stuck at 49/50 whenever the box gets full.

Can you provide some screenshot and more details about the issue? I just tested it locally and it's working just fine.

Thank you for the quick response, I have tried many things to sort of fix it but it still persisted.

Are you using the slot 1 for your character save?
What are you harvesting?
Does it also happen in HunterPie v1?

I am indeed using slot 1 for my character save.
I am harvesting mandragoras
The issue does not persist on HunterPie v1

Will look into it

I've managed to make the displays match but after taking and selling some of the botanical box's contents, the display still went back 1/50.

Fixed in #461


Transfer Learning (WIP)

@myleott Hi Myle, I would like to continue contributing to this branch. I haven't done much open-source contributions before, so I would really appreciate any help with this process. Thank you!

@lajanugen  can you please clarify what are you trying to do now? This pull request is to merge your branch into master, which doesn't seem to be your intention given the description.
Why don't you fork this branch into your own github and work there until it is ready to be merged back to fairseq master?

@edunov Hi Sergey, thank you for the suggestion. That makes a lot of sense! I will create a fork and continue development there. Thank you!


enable manual triggering for the workflow

docs for manual triggering
Sometimes useful for debugging the workflow (like this run)

Now, when it is merged into master, finally manual triggering has been enabled 🎆


Add support for precompiled modules

We should add a way to pre-compile wasm modules and load them directly or using the manifest. Similar to https://github.com/extism/extism/pull/596 but for wazero.

We're tracking this as #9 – this slots into both the Observe SDK integration & Cloudflare Workers support.