 If remove (via apt/snap) and reinstall:
root@server:~# lxd list --debug --verbose
DBUG[06-22|19:04:10] Connecting to a local LXD over a Unix socket
DBUG[06-22|19:04:10] Sending request to LXD                   method=GET url=http://unix.socket/1.0 etag=
DBUG[06-22|19:04:10] Got response struct from LXD
DBUG[06-22|19:04:10]
{
// removed
}
EROR[06-22|19:04:10] Failed to start the daemon: LXD is already running
INFO[06-22|19:04:10] Starting shutdown sequence
DBUG[06-22|19:04:10] Not unmounting temporary filesystems (containers are still running)
Error: LXD is already running
If I stop the service, the command hangs:
root@server:~# service lxd stop
root@server:~# /usr/bin/lxd list --debug --verbose
DBUG[06-22|19:08:51] Connecting to a local LXD over a Unix socket
DBUG[06-22|19:08:51] Sending request to LXD                   method=GET url=http://unix.socket/1.0 etag=
INFO[06-22|19:08:51] LXD 3.0.3 is starting in normal mode     path=/var/lib/lxd
INFO[06-22|19:08:51] Kernel uid/gid map:
INFO[06-22|19:08:51]  - u 0 0<PHONE_NUMBER>
INFO[06-22|19:08:51]  - g 0 0<PHONE_NUMBER>
INFO[06-22|19:08:51] Configured LXD uid/gid map:
INFO[06-22|19:08:51]  - u 0<PHONE_NUMBER>6
INFO[06-22|19:08:51]  - g 0<PHONE_NUMBER>6
INFO[06-22|19:08:51] Kernel features:
INFO[06-22|19:08:51]  - netnsid-based network retrieval: no
INFO[06-22|19:08:51]  - unprivileged file capabilities: yes
INFO[06-22|19:08:51] Initializing local database
DBUG[06-22|19:08:51] Initializing database gateway
DBUG[06-22|19:08:51] Start database node                      id=1 address=
DBUG[06-22|19:08:51] Raft: Initial configuration (index=1): [{Suffrage:Voter ID:1 Address:0}]
DBUG[06-22|19:08:51] Raft: Node at 0 [Leader] entering Leader state
DBUG[06-22|19:08:51] Dqlite: starting event loop
DBUG[06-22|19:08:51] Dqlite: accepting connections
DBUG[06-22|19:08:51] Connecting to a local LXD over a Unix socket
DBUG[06-22|19:08:51] Sending request to LXD                   method=GET url=http://unix.socket/1.0 etag=
DBUG[06-22|19:08:51] Detected stale unix socket, deleting
INFO[06-22|19:08:51] Starting /dev/lxd handler:
INFO[06-22|19:08:51]  - binding devlxd socket                 socket=/var/lib/lxd/devlxd/sock
INFO[06-22|19:08:51] REST API daemon:
INFO[06-22|19:08:51]  - binding Unix socket                   socket=/var/lib/lxd/unix.socket
INFO[06-22|19:08:51] Initializing global database
DBUG[06-22|19:08:51] Dqlite: handling new connection (fd=18)
DBUG[06-22|19:08:51] Dqlite: connected address=0 attempt=0
INFO[06-22|19:08:51] Initializing storage pools
DBUG[06-22|19:08:51] No existing storage pools detected
INFO[06-22|19:08:51] Initializing networks
DBUG[06-22|19:08:51] New task operation: babdbd98-d8b1-4e83-a526-9215e0e86329
INFO[06-22|19:08:51] Pruning leftover image files
DBUG[06-22|19:08:51] Started task operation: babdbd98-d8b1-4e83-a526-9215e0e86329
INFO[06-22|19:08:51] Done pruning leftover image files
INFO[06-22|19:08:51] Loading daemon configuration
DBUG[06-22|19:08:51] Success for task operation: babdbd98-d8b1-4e83-a526-9215e0e86329
DBUG[06-22|19:08:51] Initialized inotify with file descriptor 16
DBUG[06-22|19:08:51] New task operation: f447a57b-f4ae-4b65-8a06-47f2ba1133d2
INFO[06-22|19:08:51] Pruning expired images
DBUG[06-22|19:08:51] Started task operation: f447a57b-f4ae-4b65-8a06-47f2ba1133d2
INFO[06-22|19:08:51] Done pruning expired images
DBUG[06-22|19:08:51] Success for task operation: f447a57b-f4ae-4b65-8a06-47f2ba1133d2
DBUG[06-22|19:08:51] New task operation: 7e81e4a1-3132-42a0-b4d7-72babebbf00f
INFO[06-22|19:08:51] Updating images
DBUG[06-22|19:08:51] Started task operation: 7e81e4a1-3132-42a0-b4d7-72babebbf00f
INFO[06-22|19:08:51] Done updating images
DBUG[06-22|19:08:51] New task operation: 19a911f8-c668-4c32-8002-6aef011f49b1
INFO[06-22|19:08:51] Updating instance types
DBUG[06-22|19:08:51] Started task operation: 19a911f8-c668-4c32-8002-6aef011f49b1
INFO[06-22|19:08:51] Done updating instance types
DBUG[06-22|19:08:51] New task operation: 6419f1ea-ffe3-4bd7-846b-c8053aca906d
INFO[06-22|19:08:51] Expiring log files
DBUG[06-22|19:08:51] Started task operation: 6419f1ea-ffe3-4bd7-846b-c8053aca906d
INFO[06-22|19:08:51] Done expiring log files
DBUG[06-22|19:08:51] Success for task operation: 7e81e4a1-3132-42a0-b4d7-72babebbf00f
DBUG[06-22|19:08:51] Success for task operation: 6419f1ea-ffe3-4bd7-846b-c8053aca906d
DBUG[06-22|19:08:54] Success for task operation: 19a911f8-c668-4c32-8002-6aef011f49b1
Steps to reproduce
I have no idea how I got into this state. The last successful operation was to delete a running container with delete --force
Information to attach
LOG:
root@server:~# cat /var/log/lxd/lxd.log
t=2019-06-22T19:07:50-0700 lvl=info msg="LXD 3.0.3 is starting in normal mode" path=/var/lib/lxd
t=2019-06-22T19:07:50-0700 lvl=info msg="Kernel uid/gid map:"
t=2019-06-22T19:07:50-0700 lvl=info msg=" - u 0 0<PHONE_NUMBER>"
t=2019-06-22T19:07:50-0700 lvl=info msg=" - g 0 0<PHONE_NUMBER>"
t=2019-06-22T19:07:50-0700 lvl=info msg="Configured LXD uid/gid map:"
t=2019-06-22T19:07:50-0700 lvl=info msg=" - u 0<PHONE_NUMBER>6"
t=2019-06-22T19:07:50-0700 lvl=info msg=" - g 0<PHONE_NUMBER>6"
t=2019-06-22T19:07:50-0700 lvl=info msg="Kernel features:"
t=2019-06-22T19:07:50-0700 lvl=info msg=" - netnsid-based network retrieval: no"
t=2019-06-22T19:07:50-0700 lvl=info msg=" - unprivileged file capabilities: yes"
t=2019-06-22T19:07:50-0700 lvl=info msg="Initializing local database"
t=2019-06-22T19:07:53-0700 lvl=info msg="Starting /dev/lxd handler:"
t=2019-06-22T19:07:53-0700 lvl=info msg=" - binding devlxd socket" socket=/var/lib/lxd/devlxd/sock
t=2019-06-22T19:07:53-0700 lvl=info msg="REST API daemon:"
t=2019-06-22T19:07:53-0700 lvl=info msg=" - binding Unix socket" inherited=true socket=/var/lib/lxd/unix.socket
t=2019-06-22T19:07:53-0700 lvl=info msg="Initializing global database"
t=2019-06-22T19:07:53-0700 lvl=info msg="Initializing storage pools"
t=2019-06-22T19:07:53-0700 lvl=info msg="Initializing networks"
t=2019-06-22T19:07:53-0700 lvl=info msg="Pruning leftover image files"
t=2019-06-22T19:07:53-0700 lvl=info msg="Done pruning leftover image files"
t=2019-06-22T19:07:53-0700 lvl=info msg="Loading daemon configuration"
t=2019-06-22T19:07:53-0700 lvl=info msg="Pruning expired images"
t=2019-06-22T19:07:53-0700 lvl=info msg="Done pruning expired images"
t=2019-06-22T19:07:53-0700 lvl=info msg="Updating images"
t=2019-06-22T19:07:53-0700 lvl=info msg="Done updating images"
t=2019-06-22T19:07:53-0700 lvl=info msg="Updating instance types"
t=2019-06-22T19:07:53-0700 lvl=info msg="Done updating instance types"
t=2019-06-22T19:07:53-0700 lvl=info msg="Expiring log files"
t=2019-06-22T19:07:53-0700 lvl=info msg="Done expiring log files"
t=2019-06-22T19:08:29-0700 lvl=info msg="Asked to shutdown by API, shutting down containers"
t=2019-06-22T19:08:29-0700 lvl=info msg="Starting shutdown sequence"
t=2019-06-22T19:08:29-0700 lvl=info msg="Stopping REST API handler:"
t=2019-06-22T19:08:29-0700 lvl=info msg=" - closing socket" socket=/var/lib/lxd/unix.socket
t=2019-06-22T19:08:29-0700 lvl=info msg="Stopping /dev/lxd handler"
t=2019-06-22T19:08:29-0700 lvl=info msg=" - closing socket" socket=/var/lib/lxd/devlxd/sock
t=2019-06-22T19:08:29-0700 lvl=info msg="Closing the database"
t=2019-06-22T19:08:29-0700 lvl=info msg="Stopping REST API handler:"
t=2019-06-22T19:08:29-0700 lvl=info msg="Stopping /dev/lxd handler"
t=2019-06-22T19:08:29-0700 lvl=info msg="Stopping REST API handler:"
t=2019-06-22T19:08:29-0700 lvl=info msg="Stopping /dev/lxd handler"
t=2019-06-22T19:08:29-0700 lvl=info msg="Unmounting temporary filesystems"
t=2019-06-22T19:08:29-0700 lvl=info msg="Done unmounting temporary filesystems"
t=2019-06-22T19:08:29-0700 lvl=info msg="Saving simplestreams cache"
t=2019-06-22T19:08:29-0700 lvl=info msg="Saved simplestreams cache"
t=2019-06-22T19:08:36-0700 lvl=info msg="LXD 3.0.3 is starting in normal mode" path=/var/lib/lxd
t=2019-06-22T19:08:36-0700 lvl=info msg="Kernel uid/gid map:"
t=2019-06-22T19:08:36-0700 lvl=info msg=" - u 0 0<PHONE_NUMBER>"
t=2019-06-22T19:08:36-0700 lvl=info msg=" - g 0 0<PHONE_NUMBER>"
t=2019-06-22T19:08:36-0700 lvl=info msg="Configured LXD uid/gid map:"
t=2019-06-22T19:08:36-0700 lvl=info msg=" - u 0<PHONE_NUMBER>6"
t=2019-06-22T19:08:36-0700 lvl=info msg=" - g 0<PHONE_NUMBER>6"
t=2019-06-22T19:08:36-0700 lvl=info msg="Kernel features:"
t=2019-06-22T19:08:36-0700 lvl=info msg=" - netnsid-based network retrieval: no"
t=2019-06-22T19:08:36-0700 lvl=info msg=" - unprivileged file capabilities: yes"
t=2019-06-22T19:08:36-0700 lvl=info msg="Initializing local database"
t=2019-06-22T19:08:36-0700 lvl=info msg="Starting /dev/lxd handler:"
t=2019-06-22T19:08:36-0700 lvl=info msg=" - binding devlxd socket" socket=/var/lib/lxd/devlxd/sock
t=2019-06-22T19:08:36-0700 lvl=info msg="REST API daemon:"
t=2019-06-22T19:08:36-0700 lvl=info msg=" - binding Unix socket" inherited=true socket=/var/lib/lxd/unix.socket
t=2019-06-22T19:08:36-0700 lvl=info msg="Initializing global database"
t=2019-06-22T19:08:36-0700 lvl=info msg="Initializing storage pools"
t=2019-06-22T19:08:36-0700 lvl=info msg="Initializing networks"
t=2019-06-22T19:08:36-0700 lvl=info msg="Pruning leftover image files"
t=2019-06-22T19:08:36-0700 lvl=info msg="Done pruning leftover image files"
t=2019-06-22T19:08:36-0700 lvl=info msg="Loading daemon configuration"
t=2019-06-22T19:08:36-0700 lvl=info msg="Pruning expired images"
t=2019-06-22T19:08:36-0700 lvl=info msg="Done pruning expired images"
t=2019-06-22T19:08:36-0700 lvl=info msg="Updating instance types"
t=2019-06-22T19:08:36-0700 lvl=info msg="Done updating instance types"
t=2019-06-22T19:08:36-0700 lvl=info msg="Updating images"
t=2019-06-22T19:08:36-0700 lvl=info msg="Done updating images"
t=2019-06-22T19:08:36-0700 lvl=info msg="Expiring log files"
t=2019-06-22T19:08:36-0700 lvl=info msg="Done expiring log files"
t=2019-06-22T19:08:49-0700 lvl=info msg="Asked to shutdown by API, shutting down containers"
t=2019-06-22T19:08:49-0700 lvl=info msg="Starting shutdown sequence"
t=2019-06-22T19:08:49-0700 lvl=info msg="Stopping REST API handler:"
t=2019-06-22T19:08:49-0700 lvl=info msg=" - closing socket" socket=/var/lib/lxd/unix.socket
t=2019-06-22T19:08:49-0700 lvl=info msg="Stopping /dev/lxd handler"
t=2019-06-22T19:08:49-0700 lvl=info msg=" - closing socket" socket=/var/lib/lxd/devlxd/sock
t=2019-06-22T19:08:49-0700 lvl=info msg="Closing the database"
t=2019-06-22T19:08:49-0700 lvl=info msg="Stopping REST API handler:"
t=2019-06-22T19:08:49-0700 lvl=info msg="Stopping /dev/lxd handler"
t=2019-06-22T19:08:49-0700 lvl=info msg="Stopping REST API handler:"
t=2019-06-22T19:08:49-0700 lvl=info msg="Stopping /dev/lxd handler"
t=2019-06-22T19:08:49-0700 lvl=info msg="Unmounting temporary filesystems"
t=2019-06-22T19:08:49-0700 lvl=info msg="Done unmounting temporary filesystems"
t=2019-06-22T19:08:49-0700 lvl=info msg="Saving simplestreams cache"
t=2019-06-22T19:08:49-0700 lvl=info msg="Saved simplestreams cache"

Pretty sure you want to run lxc list, not lxd list.
lxd list causes the snap to attempt to start a second instance of the daemon which then fails as there's one running already.

Ah. Thanks.
The root problem is that it seems I am unable to create a new container.
If I stop the service (I guess this should be the state right?) and I try it still hangs:
root@server:~/bfts# lxd launch Ubuntu:16.04 newcontainer --debug --verbose
INFO[06-23|11:30:19] LXD 3.0.3 is starting in normal mode     path=/var/lib/lxd
INFO[06-23|11:30:19] Kernel uid/gid map:
INFO[06-23|11:30:19]  - u 0 0<PHONE_NUMBER>
INFO[06-23|11:30:19]  - g 0 0<PHONE_NUMBER>
INFO[06-23|11:30:19] Configured LXD uid/gid map:
INFO[06-23|11:30:19]  - u 0<PHONE_NUMBER>6
INFO[06-23|11:30:19]  - g 0<PHONE_NUMBER>6
INFO[06-23|11:30:19] Kernel features:
INFO[06-23|11:30:19]  - netnsid-based network retrieval: no
INFO[06-23|11:30:19]  - unprivileged file capabilities: yes
INFO[06-23|11:30:19] Initializing local database
DBUG[06-23|11:30:19] Initializing database gateway
DBUG[06-23|11:30:19] Start database node                      id=1 address=
DBUG[06-23|11:30:19] Raft: Initial configuration (index=1): [{Suffrage:Voter ID:1 Address:0}]
DBUG[06-23|11:30:19] Raft: Node at 0 [Leader] entering Leader state
DBUG[06-23|11:30:19] Dqlite: starting event loop
DBUG[06-23|11:30:19] Dqlite: accepting connections
INFO[06-23|11:30:19] Starting /dev/lxd handler:
INFO[06-23|11:30:19]  - binding devlxd socket                 socket=/var/lib/lxd/devlxd/sock
INFO[06-23|11:30:19] REST API daemon:
INFO[06-23|11:30:19]  - binding Unix socket                   socket=/var/lib/lxd/unix.socket
INFO[06-23|11:30:19] Initializing global database
DBUG[06-23|11:30:19] Dqlite: handling new connection (fd=18)
DBUG[06-23|11:30:19] Dqlite: connected address=0 attempt=0
INFO[06-23|11:30:19] Initializing storage pools
DBUG[06-23|11:30:19] No existing storage pools detected
INFO[06-23|11:30:19] Initializing networks
DBUG[06-23|11:30:19] New task operation: c2185da7-e466-4373-9aa1-2c6fa05bb214
INFO[06-23|11:30:19] Pruning leftover image files
DBUG[06-23|11:30:19] Started task operation: c2185da7-e466-4373-9aa1-2c6fa05bb214
INFO[06-23|11:30:19] Done pruning leftover image files
INFO[06-23|11:30:19] Loading daemon configuration
DBUG[06-23|11:30:19] Success for task operation: c2185da7-e466-4373-9aa1-2c6fa05bb214
DBUG[06-23|11:30:19] Initialized inotify with file descriptor 17
DBUG[06-23|11:30:19] New task operation: 9804a8c6-6b7e-4951-8696-d9d8d3a83a75
INFO[06-23|11:30:19] Pruning expired images
DBUG[06-23|11:30:19] Started task operation: 9804a8c6-6b7e-4951-8696-d9d8d3a83a75
INFO[06-23|11:30:19] Done pruning expired images
DBUG[06-23|11:30:19] Success for task operation: 9804a8c6-6b7e-4951-8696-d9d8d3a83a75
DBUG[06-23|11:30:19] New task operation: 15d5d2fc-2e0f-4197-b7e8-dff12abfea8b
INFO[06-23|11:30:19] Updating images
DBUG[06-23|11:30:19] Started task operation: 15d5d2fc-2e0f-4197-b7e8-dff12abfea8b
INFO[06-23|11:30:19] Done updating images
DBUG[06-23|11:30:19] New task operation: 8b74dad2-31b1-460d-a806-0c872738312f
INFO[06-23|11:30:19] Expiring log files
DBUG[06-23|11:30:19] Started task operation: 8b74dad2-31b1-460d-a806-0c872738312f
INFO[06-23|11:30:19] Done expiring log files
DBUG[06-23|11:30:19] Success for task operation: 15d5d2fc-2e0f-4197-b7e8-dff12abfea8b
DBUG[06-23|11:30:19] New task operation: a5a17322-69e4-4dcb-9b35-629183e6d5db
INFO[06-23|11:30:19] Updating instance types
DBUG[06-23|11:30:19] Started task operation: a5a17322-69e4-4dcb-9b35-629183e6d5db
INFO[06-23|11:30:19] Done updating instance types
DBUG[06-23|11:30:19] Success for task operation: 8b74dad2-31b1-460d-a806-0c872738312f
DBUG[06-23|11:30:23] Success for task operation: a5a17322-69e4-4dcb-9b35-629183e6d5db

If I try to create the new container while LXD service is running, it fails because "LXD is already running"
I am still puzzled to what should be the normal state of the LXD service, as "lxd init" won't run if the service is stopped.

Same issue, it's 'lxc launch' not 'lxd launch'.

facepalm

I was thinking a bit, but I see that lxd list or launch should cause an error instead of launching the daemon.
This would be an actionable task. What do you think? I can open a separate issue to track it.

Yeah, that should be returning an error. We can use this issue for that.

I opened a new, more relevant one:
https://github.com/lxc/lxd/issues/5876


Update renovatebot/github-action action to 32.241.5

This PR contains the following updates:

Package
Type
Update
Change

renovatebot/github-action
action
minor
v32.240.5 -> v32.241.5

Release Notes

renovatebot/github-action
v32.241.5
Compare Source
See the the changelog for changes in all releases.
32.241.5 (2022-10-21)
Bug Fixes

deps: update renovate/renovate docker tag to v32.241.5 (6075bd1)

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by Renovate Bot.

@balena-ci I self-certify!


Custom Turbo Modules don't load in Android

Description
I have been able to get Codegen to work on the Android side but am unable to actually use my custom turbo module in my app. Calling my function just does nothing in Android. Everything works as expected in iOS
Version
0.68.2
Output of npx react-native info
System:
    OS: macOS 12.4
    CPU: (8) arm64 Apple M1 Pro
    Memory: 113.91 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 18.0.0 - /opt/homebrew/bin/node
    Yarn: 1.22.18 - /opt/homebrew/bin/yarn
    npm: 8.6.0 - /opt/homebrew/bin/npm
    Watchman: 2<IP_ADDRESS> - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.11.2 - /Users/dfriyia/.gem/ruby/2.7.4/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.4, iOS 15.4, macOS 12.3, tvOS 15.4, watchOS 8.5
    Android SDK:
      API Levels: 29, 30, 31, 32
      Build Tools: 28.0.3, 29.0.2, 30.0.2, 30.0.3, 31.0.0, 32.0.0, 32.1.0
      System Images: android-29 | Google APIs ARM 64 v8a, android-29 | Google APIs Intel x86 Atom_64, android-30 | ARM 64 v8a, android-30 | Intel x86 Atom_64, android-30 | Google TV Intel x86 Atom, android-30 | Google APIs ARM 64 v8a, android-30 | Google APIs Intel x86 Atom, android-30 | Google APIs Intel x86 Atom_64, android-30 | Google Play ARM 64 v8a, android-30 | Google Play Intel x86 Atom, android-30 | Google Play Intel x86 Atom_64, android-32 | Google APIs ARM 64 v8a
      Android NDK: Not Found
  IDEs:
    Android Studio: 2021.1 AI-211.7628.21.2111.8309675
    Xcode: 13.3/13E113 - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.14 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2
    react-native: 0.68.2 => 0.68.2
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps to reproduce
Steps to reproduce:

Build the app to generate Cpp classes and Java interface for NativeCalendarModule
Make an implementation for NativeCalendarModule
Add this module to the MainApplicationReactNativeHost.java
Run the app

Expected result:
5. I can call TurboModule From React Native
Actual Result
6. Module is null on react native side and does nothing
Snack, code example, screenshot, or link to a repository
Go to this repo and check out android-attempt - https://github.com/friyiajr/turbomoodule-sample-scratchpad/tree/android-attempt

Closing as I believe this is answered. If not, feel free to re-open or follow up 👍

@cortinico GitHub won't let me re-open the issue but I am still having issues. The generated Android.mk you talked about it looks like this:
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := react_codegen_AppSpec

LOCAL_C_INCLUDES := $(LOCAL_PATH)

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp) $(wildcard $(LOCAL_PATH)/react/renderer/components/AppSpec/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH) $(LOCAL_PATH)/react/renderer/components/AppSpec

LOCAL_SHARED_LIBRARIES := libjsi libglog libfolly_json libyoga libreact_nativemodule_core librrc_view libreact_render_core libreact_render_graphics libfbjni libturbomodulejsijni libreact_codegen_rncore libreact_debug libreact_render_debug

LOCAL_CFLAGS := \
  -DLOG_TAG=\"ReactNative\"

LOCAL_CFLAGS += -fexceptions -frtti -std=c++17 -Wall

include $(BUILD_SHARED_LIBRARY)

I assume it means the name of the library should be react_codegen_AppSpec but when I try and add it in the main Android.mk a .so file is never created and I am still unable to use my function in the app. See: https://github.com/friyiajr/turbomoodule-sample-scratchpad/blob/android-attempt/android/app/src/main/jni/Android.mk#L29

@friyiajr Sorry for my initial response, I overlooked your project. It seems like there were a series of problems. I also realized one of our comment in the doc was confusing, so we're going to fix it (thanks for reporting this issue though).
As a side note: I invite you to take a look at our New Architecture sample project here:
https://github.com/react-native-community/RNNewArchitectureApp
It contains step-by-step instructions on how to create TurboModule and Fabric components.
Getting back to your project. Here the list of problems:

You mixed the TurboModule between CalendarModule and NativeCalendarImpl. This made impossible for your TM to be retrieved.
You placed your spec files inside the ios folder. As a rule of thumb, we suggest to place them inside a /js folder, so you can access it from both Android & iOS. Moreover what was happening in your case, the Codegen was picking up file from the node_modules folder, re-generating classes from React Native Core (this would have caused a duplicate symbols compilation error)
On the native side, you missed two steps. First, you should either link agains the generated library (libreact_codegen_AppSpec) OR extend the source macros to include the generated source file. Essentially you should uncomment either line 7 or line 23-25 in the Android.mk file. Not both as you'll have duplicated symbols. This is our fault in the comments, I will clarify it.
You have to extend the MainApplicationModuleProvider.cpp file to make sure you include the generated AppSpec.h header file and query the AppSpec_ModuleProvider for a TurboModule.

I've tested it and it works, hence I'm re-closing. Sorry for the confusion, but this helped us spot a problem in our comments 👍
The patch file that solves your setup is:
From fb85a6a2746775d89adc6dc8165957b12ed65493 Mon Sep 17 00:00:00 2001
From: Nicola Corti<EMAIL_ADDRESS>Date: Fri, 17 Jun 2022 13:45:05 -0700
Subject: [PATCH] Fix turbomodule setup

---
 android/app/build.gradle                                 | 4 ++++
 .../newarchitecture/MainApplicationReactNativeHost.java  | 2 +-
 .../newarchitecture/modules/NativeCalendarImpl.java      | 2 +-
 android/app/src/main/jni/Android.mk                      | 8 ++++----
 .../app/src/main/jni/MainApplicationModuleProvider.cpp   | 9 +++++----
 5 files changed, 15 insertions(+), 10 deletions(-)

diff --git a/android/app/build.gradle b/android/app/build.gradle
index 46f9824..deb8fa7 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -83,6 +83,10 @@ project.ext.react = [
     enableHermes: true,  // clean and rebuild if changing
 ]

+react {
+    jsRootDir = rootProject.file("../ios/CalendarModule/")
+}
+
 apply from: "../../node_modules/react-native/react.gradle"

 /**
diff --git a/android/app/src/main/java/com/myawesomeproject/newarchitecture/MainApplicationReactNativeHost.java b/android/app/src/main/java/com/myawesomeproject/newarchitecture/MainApplicationReactNativeHost.java
index 34ff04a..0b4c206 100644
--- a/android/app/src/main/java/com/myawesomeproject/newarchitecture/MainApplicationReactNativeHost.java
+++ b/android/app/src/main/java/com/myawesomeproject/newarchitecture/MainApplicationReactNativeHost.java
@@ -84,7 +84,7 @@ public class MainApplicationReactNativeHost extends ReactNativeHost {
                   NativeCalendarImpl.NAME,
                   new ReactModuleInfo(
                           NativeCalendarImpl.NAME,
-                          "NativeCalendarImpl",
+                          NativeCalendarImpl.NAME,
                           false, // canOverrideExistingModule
                           false, // needsEagerInit
                           true, // hasConstants
diff --git a/android/app/src/main/java/com/myawesomeproject/newarchitecture/modules/NativeCalendarImpl.java b/android/app/src/main/java/com/myawesomeproject/newarchitecture/modules/NativeCalendarImpl.java
index 7e73517..663101c 100644
--- a/android/app/src/main/java/com/myawesomeproject/newarchitecture/modules/NativeCalendarImpl.java
+++ b/android/app/src/main/java/com/myawesomeproject/newarchitecture/modules/NativeCalendarImpl.java
@@ -9,7 +9,7 @@ import com.facebook.react.bridge.ReactApplicationContext;

 public class NativeCalendarImpl extends NativeCalendarModuleSpec {

-    public static String NAME = "NativeCalendarModule";
+    public static String NAME = "CalendarModule";

     public NativeCalendarImpl(ReactApplicationContext reactContext) {
         super(reactContext);
diff --git a/android/app/src/main/jni/Android.mk b/android/app/src/main/jni/Android.mk
index ee60315..a06b018 100644
--- a/android/app/src/main/jni/Android.mk
+++ b/android/app/src/main/jni/Android.mk
@@ -20,13 +20,13 @@ LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
 # will have to uncomment those lines to include the generated source
 # files from the codegen (placed in $(GENERATED_SRC_DIR)/codegen/jni)
 #
-LOCAL_C_INCLUDES += $(GENERATED_SRC_DIR)/codegen/jni
-LOCAL_SRC_FILES += $(wildcard $(GENERATED_SRC_DIR)/codegen/jni/*.cpp)
-LOCAL_EXPORT_C_INCLUDES += $(GENERATED_SRC_DIR)/codegen/jni
+# LOCAL_C_INCLUDES += $(GENERATED_SRC_DIR)/codegen/jni
+# LOCAL_SRC_FILES += $(wildcard $(GENERATED_SRC_DIR)/codegen/jni/*.cpp)
+# LOCAL_EXPORT_C_INCLUDES += $(GENERATED_SRC_DIR)/codegen/jni

 # Here you should add any native library you wish to depend on.
 LOCAL_SHARED_LIBRARIES := \
-  react_codegen_AppSpec \
+  libreact_codegen_AppSpec \
   libfabricjni \
   libfbjni \
   libfolly_futures \
diff --git a/android/app/src/main/jni/MainApplicationModuleProvider.cpp b/android/app/src/main/jni/MainApplicationModuleProvider.cpp
index 0ac23cc..34dfff8 100644
--- a/android/app/src/main/jni/MainApplicationModuleProvider.cpp
+++ b/android/app/src/main/jni/MainApplicationModuleProvider.cpp
@@ -1,6 +1,7 @@
 #include "MainApplicationModuleProvider.h"

 #include <rncore.h>
+#include <AppSpec.h>

 namespace facebook {
 namespace react {
@@ -12,10 +13,10 @@ std::shared_ptr<TurboModule> MainApplicationModuleProvider(
   // either your application or from external libraries. The approach to follow
   // is similar to the following (for a library called `samplelibrary`:
   //
-  // auto module = samplelibrary_ModuleProvider(moduleName, params);
-  // if (module != nullptr) {
-  //    return module;
-  // }
+  auto module = AppSpec_ModuleProvider(moduleName, params);
+  if (module != nullptr) {
+     return module;
+  }
   // return rncore_ModuleProvider(moduleName, params);
   return rncore_ModuleProvider(moduleName, params);
 }
--
2.31.1

Thanks for the help @cortinico! Would have been completely lost without you on this one. Looking forward to cleaning up this project and making it nice.
Looking forward to when the documentation is finalized.

Custom turbomodule doesn't load in new version 0.70.0

Integrated react-native-gesture-handler and it is using rn-cli_moduleProvider.
But need to add the custom module_provider as well.
Please let me know where i can sample project or tutorials for define of custom turbo module in MainApplicationModuleProvider.cpp file.

#include "MainApplicationModuleProvider.h"

#include <rncli.h>
#include <rncore.h>
#include <sample_library.h>
namespace facebook {
namespace react {

std::shared_ptr<TurboModule> MainApplicationModuleProvider(
    const std::string &moduleName,
    const JavaTurboModule::InitParams &params) {
  // Here you can provide your own module provider for TurboModules coming from
  // either your application or from external libraries. The approach to follow
  // is similar to the following (for a library called `samplelibrary`:
  //

    // Module providers autolinked by RN CLI
    auto rncli_module = rncli_ModuleProvider(moduleName, params);
    if (rncli_module != nullptr) {
        return rncli_module;
    }

   auto module = sampleLibrary_ModuleProvider(moduleName, params);
   if (module != nullptr) {
      return module;
   }

  return rncore_ModuleProvider(moduleName, params);
}

} // namespace react
} // namespace facebook

Actually can not load the module providers at the same time

Custom turbomodule doesn't load in new version 0.70.0

@cortinico same issue am also facing on 0.70.0

Integrated react-native-gesture-handler and it is using rn-cli_moduleProvider. But need to add the custom module_provider as well. Please let me know where i can sample project or tutorials for define of custom turbo module in MainApplicationModuleProvider.cpp file.

if you have any dummy project of turbomodule please share your repo here so i will look into that

Custom turbomodule doesn't load in new version 0.70.0

@cortinico same issue am also facing on 0.70.0

Please, don't keep on pinging people on closed issues.
Open a new issue, provide a reproducer and we can help you over there 👍


[PKG-5559] Initial build 1.2.2 ❄

libsndfile 1.2.2 :snowflake:
Destination channel: Snowflake
Links

PKG-5559
Upstream repository
Upstream changelog/diff

Explanation of changes:

Skipping Windows and s390x for missing dependencies (libflac, lame, mpg123, libopus)
Removed patch connected to issue fixed in 1.2.0.
Added mpg123 to run as test command failed without it.

Linter check found the following problems:
ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_03zimt3xfb/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:42: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
clone/recipe/meta.yaml:41: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
clone/recipe/meta.yaml:43: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
clone/recipe/meta.yaml:40: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
clone/recipe/meta.yaml:45: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
clone/recipe/meta.yaml:44: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.

===== ERRORS =====

clone/recipe/meta.yaml:38: patch_must_be_in_build: patch must be in build when source/patches is set.
clone/recipe/meta.yaml:38: patch_must_be_in_build: patch must be in build when source/patches is set.
===== Final Report: =====
2 Errors and 6 Warnings were found

Linter check found the following problems:
ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_5bf5sdy4u7/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:43: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
clone/recipe/meta.yaml:45: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
clone/recipe/meta.yaml:44: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
clone/recipe/meta.yaml:46: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
clone/recipe/meta.yaml:42: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
clone/recipe/meta.yaml:47: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
===== Final Report: =====
0 Errors and 6 Warnings were found

Linter check found the following problems:
ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_5ezdr2qx_j/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:48: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
clone/recipe/meta.yaml:47: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
clone/recipe/meta.yaml:43: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
clone/recipe/meta.yaml:45: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
clone/recipe/meta.yaml:44: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
clone/recipe/meta.yaml:46: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
===== Final Report: =====
0 Errors and 6 Warnings were found

Linter check found the following problems:
ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_7a9a3o8rt8/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:42: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
clone/recipe/meta.yaml:40: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
clone/recipe/meta.yaml:41: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
clone/recipe/meta.yaml:43: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
clone/recipe/meta.yaml:44: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
clone/recipe/meta.yaml:45: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
===== Final Report: =====
0 Errors and 6 Warnings were found

Linter check found the following problems:
ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_fdutixgv8e/clone` failed. (See above for error)
The following problems have been found:
===== ERRORS =====

clone/recipe/meta.yaml:28: patch_unnecessary: patch should not be in build when source/patches is not set
===== Final Report: =====
1 Error and 0 Warnings were found

LGTM after Charles' suggestion


Can't set influxd to run at boot

Bug report
System info:
Influx v1.1.1, Ubuntu 16.04
$ uname -a
Linux localhost 4.8.6-x86_64-linode78 #1 SMP Tue Nov 1 14:51:21 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux

Steps to reproduce:

systemctl enable influxd

Expected behavior: [What you expected to happen]
influxd is set to start at boot
Actual behavior: [What actually happened]

Failed to execute operation: Too many levels of symbolic links

Hi! We try and keep GitHub Issues for  actionable bug reports or feature requests. Please send general questions to the<EMAIL_ADDRESS>mailing list.
Thanks.

Didn't get any help on the group.
The inability to set influx to run at boot is pretty critical IMO, to consider this a bug,

Still seeing this issue with Influx v1.4.2.
# uname -a
Linux localhost 4.4.0-104-generic #127-Ubuntu SMP Mon Dec 11 12:16:42 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux


ref impl: main node process (connect with RPC, start drivers, handle shutdown)

Part of #119: staging -> main migration
This:

Defines the run subcommand, a.k.a. go run ./opnode/cmd run
Connects with L1 and L2 RPC connections (or at least creates client binding, initial connection may be broken)
Initializes everything
Runs node process
Handles Close of the node
readme how to run the reference implementation, explaining the options

Depends on #131
Review: systems team preferred. No spec affected.

TODO: rebase on main once other PRs are merged. And adapt to minor interface changes. E.g. ctx addition to Drive method and removal from EngineDriver struct (153473aac2f602a0e5e7e524011d7f726ae84726)

Rebased on top of the driver PR (all dependencies rebased on main)

Rebased on main + made minor changes to adapt to the separated state/actions of the driver in PR 131


fix: MetaProps typing

I'm sorry, but i just realized that while #138 works fine the correct way of extending two classes should be this one.
Sorry again for the double PR 🙏🏼

:rocket: PR was released in v4.0.5 :rocket:


As a Data user I want to be able to login on all pages/sections of site (including the spatial distribution page) ..so that I can save my searches/download/request permission without having to leave the page (and lose my place/filters)

original id#54
If there is a log in, who will be data controller or data processor. Legal considerations around managing data.

It is costly to develop this, there is a user login but saving all the data and steps the user does on line is costly and the advantages are not enormous.

@LynnHeeley and @kellymacleod
the compromise solution would be what we do for some other portals. that the user can send themselves a link to their search so that they can refer/recall it.

@LynnHeeley and @kellymacleod
the compromise solution would be what we do for some other portals. that the user can send themselves a link to their search so that they can refer/recall it.

@neil-ices-dk a permalink was suggested by Carlos at Steering Group Jan2020 - which is an extra step to just copying a URL. Will you provide a button/pop-up for the correct, cleaned URL?

@neil-ices-dk a permalink was suggested by Carlos at Steering Group Jan2020 - which is an extra step to just copying a URL. Will you provide a button/pop-up for the correct, cleaned URL?

@cmspinto care to comment?

@cmspinto can we have a permalink as you suggested (button to provide a shortened, tidy link to the map with the filters etc) or is this out of scope?


test: Upgrade UA parser to differentiate Chromecasts

This uses a preview of https://github.com/faisalman/ua-parser-js/pull/724 to differentiate between Chromecast models in Karma.

@shaka-bot please test


ra-multiplex on nvim with rust-tools.nvim

I couldnt get this to work and wasn't sure what steps to take to investigate.
Running the ra-multiplex-server  doesn't read the config in my home directory (~/config/ra-multiplex/config.toml)
❯ ra-multiplex-server -h
[WARN ] cannot load config: cannot read config file `/Users/tonyalaribe.parity/Library/Application Support/ra-multiplex/config.toml`

    Caused by:
        No such file or directory (os error 2)
^C

From readme

Configuration is stored in a TOML file in your system's default configuration directory, for example ~/.config/ra-multiplex/config.toml.

ra-multiplex is using the directories crate to determine your system's default configuration directory, the ~/.config/... path is just an example that happens to be the default on linux.
You seem to be running MacOS and for your system the default configuration directory is /Users/<username>/Library/Application Support/ra-multiplex/config.toml. Just move your configuration file to the appropriate path where the error message says it's expecting it.


Links not working in example code of "Video Classification with Transformers"

The download links in
!wget -q https://git.io/JGc31 -O ucf101_top5.tar.gz
!tar xf ucf101_top5.tar.gz

!wget -q https://git.io/JZmf4 -O top5_data_prepared.tar.gz
!tar xf top5_data_prepared.tar.gz

are not working. Can someone please fix this. Thanks!

Hi. I am the author of that example. I just verified that the links are working. Maybe some rate-limiting issues?

@wayneshi08 , I was able to run the example with latest TensorFlow version, I did not observe any failures.
Attaching the working Gist for reference https://gist.github.com/sachinprasadhs/42abc049f2508b831a12d1bffe9dee60


Issue with Daylight Saving Time (DTS) when i have to display some meetings

Problem
Hi everyone!
I have this kind of problem. Some meetings have correct start date and end date but, when the DTS comes or expires, they would get the wrong hour. I will show you some examples:

As you can see, this appointment starts at 10.30 and ends at 11.30 as it should be because it was saved with that particular start date/hour and end date/hour. But if I take another meeting in November, that is what is happening:

Even if in the DB we got the meeting starting at 6.00 and ending at 7.00, the calendar displays the wrong hour. I think that happen because of the DTS.

This has already been touched on here: https://github.com/nhn/tui.calendar/issues/423
Just log what offset u have and what time it should be and adjust the if-statement and the hours added or removed accordingly.
var today=new Date();
if(today.getTimezoneOffset()===-60 && event.start._date.getTimezoneOffset()===0) {
//We need to hack the time setting. We may need to still do this after end of BST as well.
event.start.setHours(event.start.getHours()-2);
event.end.setHours(event.end.getHours()-2);
}
....rest of my event handler....
}
Regards


3d bounding boxes format mapping

Hi,
Thank you for your great work. I am quite confused as to how the 3d bounding boxes are mapped to the individual frames. I'm attempting to plot all the 3d bounding boxes given a specific frame (image) from a sequence and I am not sure how to retrieve the 3d bounding boxes corresponding to that frame. Thanks for your help!

Hi, thank you for your interest in the dataset! You can retrieve the 3D bounding boxes of each frame based on the semanticId and instanceId. We provide semanticId and instanceId of each 3D bounding box in the data_3d_bboxes, this allows for retrieving the corresponding objects from the instance labels in the data_2d_semantics. We provide a script for this:
https://github.com/autonomousvision/kitti360Scripts/blob/1e5d6371440c6c1b6d2e6d86d9a2869fe5ced45c/kitti360scripts/helpers/annotation.py#L318-L347
You can try it out via the kitti360Viewer.
.

great, thank you! this worked for me - closing this issue


Swipe views up and down

Is it possible that we could extend the lib to support swiping up and down?
I'm looking into the source now but am not sure where to begin. My use case is to swipe views left to right, then swipe up to show the present slides details, then swipe down to go back to the left to right swipe flow.
Happy to fork and try it out, but keen to know your thoughts first

👍 to this, looking for a similar feature myself.

I have done a first implementation for the browser platform.

As I believe the feature is requested for this platform, I'm closing the issue.


Terminal Comes Up on Every Remote SSH Session on Specific Host

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version: 1.78.0 (user setup)
OS Version: Windows_NT x64 10.0.19045

Steps to Reproduce:

Connect to my remote SSH VS Code session
Session connects without problems, but terminal window pops up with a little exclamation, but no error in the log. The log contains the following:

.
*

Checking server status on port 45807 with wget
4b8f157aa4c5: start
SSH_AUTH_SOCK====
webUiAccessToken====
listeningOn==45807==
osReleaseId==linuxmint==
arch==x86_64==
vscodeArch==x64==
bitness==64==
tmpDir==/run/user/1000==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
extInstallTime====
serverStartTime====
connectionToken==0c6e788b-10c4-4661-9033-74939b492ccd==
4b8f157aa4c5: end

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.78.1. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!

Hello - I am having the latest version on mac os x; however, upon vscode ssh remote connection, it interrupts my other ssh connection (to the same server) in terminal window (similarly causing rsync operation fail as no longer to connect to remote through ssh in terminal) ...
Something seems wrong with the latest vscode:
Version: 1.78.1 (Universal)
Commit: 6a995c4f4cc2ced6e3237749973982e751cb0bf9
Date: 2023-05-04T09:57:42.343Z
Electron: 22.5.1
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: <IP_ADDRESS>-electron.0
OS: Darwin arm64 22.4.0
Sandboxed: No

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.78.1. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!

The issue remains. I'm connecting from my Windows 10 computer to my Linux machine running Linux Mint 21.1. I've also tried removing the ~/.vscode-server/ folder to see if that helps but the pane comes back.
Here's another full output with items anonymized:
`bdc63967df86: running
Acquiring lock on /home/michel/.vscode-server/bin/6a995c4f4cc2ced6e3237749973982e751cb0bf9/vscode-remote-lock.michel.6a995c4f4cc2ced6e3237749973982e751cb0bf9
Found existing installation at /home/michel/.vscode-server/bin/6a995c4f4cc2ced6e3237749973982e751cb0bf9...
Checking /home/michel/.vscode-server/.6a995c4f4cc2ced6e3237749973982e751cb0bf9.log and /home/michel/.vscode-server/.6a995c4f4cc2ced6e3237749973982e751cb0bf9.pid for a running server
Looking for server with pid: 1640710
Running ssh connection command... /home/michel/.vscode-server/bin/6a995c4f4cc2ced6e3237749973982e751cb0bf9/bin/code-server --start-server --host=<IP_ADDRESS> --accept-server-license-terms --enable-remote-auto-shutdown --port=0 --telemetry-level all   &> "/home/michel/.vscode-server/.6a995c4f4cc2ced6e3237749973982e751cb0bf9.log" < /dev/null
printenv:
SHELL=/usr/bin/zsh
LANGUAGE=en_CA:en
PWD=/home/michel
LOGNAME=michel
XDG_SESSION_TYPE=tty
MOTD_SHOWN=pam
HOME=/home/michel
LANG=en_CA.UTF-8
VSCODE_AGENT_FOLDER=/home/michel/.vscode-server
SSH_CONNECTION=
XDG_SESSION_CLASS=user
USER=michel
SHLVL=0
XDG_SESSION_ID=505
XDG_RUNTIME_DIR=/run/user/1000
SSH_CLIENT=
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
OLDPWD=/home/michel
_=/usr/bin/printenv
Removing old logfile at /home/michel/.vscode-server/.6a995c4f4cc2ced6e3237749973982e751cb0bf9.log
Spawned remote server: 1845749
Waiting for server log...
Waiting for server log...

Visual Studio Code Server

By using the software, you agree to
the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and
the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement).

bdc63967df86: start
SSH_AUTH_SOCK====
webUiAccessToken====
listeningOn==37283==
osReleaseId==linuxmint==
arch==x86_64==
vscodeArch==x64==
bitness==64==
tmpDir==/run/user/1000==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
extInstallTime====
serverStartTime==69==
connectionToken==116eee21-2db1-43f9-bff9-dc27f0833e71==
bdc63967df86: end
`
And here's a screenshot:


Add allow(unused_braces, unused_parens) attribute

This fixes false positive warnings for the stable compiler.
This can probably be removed once https://github.com/rust-lang/rust/pull/70789 lands on stable?

Thank you very much.


showLabels & showLegend options for all charts

We have the showLabels and showLegend options for radar chart. It will be great if other charts support these options too

@timqian I can pick this for some charts, let me see if i can raise PR sometime this week

@ajduke Glad to hear that 😊


Error installing rasterizer [warning: GCC]

Hi @Nik-V9 great work! I'm getting this issue while installing the requirements.txt with pip install -r requirements.txt, do you know how to fix it?
Building wheels for collected packages: diff-gaussian-rasterization
  Building wheel for diff-gaussian-rasterization (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [33 lines of output]
      running bdist_wheel
      /home/gberton/anaconda3/envs/splatam/lib/python3.10/site-packages/torch/utils/cpp_extension.py:411: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
        warnings.warn(msg.format('we could not find ninja.'))
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-310
      creating build/lib.linux-x86_64-cpython-310/diff_gaussian_rasterization
      copying diff_gaussian_rasterization/__init__.py -> build/lib.linux-x86_64-cpython-310/diff_gaussian_rasterization
      running build_ext
      /home/gberton/anaconda3/envs/splatam/lib/python3.10/site-packages/torch/utils/cpp_extension.py:820: UserWarning: There are no g++ version bounds defined for CUDA version 11.6
        warnings.warn(f'There are no {compiler_name} version bounds defined for CUDA version {cuda_str_version}')
      building 'diff_gaussian_rasterization._C' extension
      creating build/temp.linux-x86_64-cpython-310
      creating build/temp.linux-x86_64-cpython-310/cuda_rasterizer
      /home/gberton/anaconda3/envs/splatam/bin/nvcc -I/home/gberton/anaconda3/envs/splatam/lib/python3.10/site-packages/torch/include -I/home/gberton/anaconda3/envs/splatam/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I/home/gberton/anaconda3/envs/splatam/lib/python3.10/site-packages/torch/incl
ude/TH -I/home/gberton/anaconda3/envs/splatam/lib/python3.10/site-packages/torch/include/THC -I/home/gberton/anaconda3/envs/splatam/include -I/home/gberton/anaconda3/envs/splatam/include/python3.10 -c cuda_rasterizer/backward.cu -o build/temp.linux-x86_64-cpython-310/cuda_rasterizer/backward.o -D__CUDA_NO_HALF_OPERA
TORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options '-fPIC' -I/tmp/pip-req-build-fzmhzv59/third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD
_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
      cuda_rasterizer/auxiliary.h(151): warning #177-D: variable "p_proj" was declared but never referenced

      /home/gberton/anaconda3/envs/splatam/bin/nvcc -I/home/gberton/anaconda3/envs/splatam/lib/python3.10/site-packages/torch/include -I/home/gberton/anaconda3/envs/splatam/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I/home/gberton/anaconda3/envs/splatam/lib/python3.10/site-packages/torch/incl
ude/TH -I/home/gberton/anaconda3/envs/splatam/lib/python3.10/site-packages/torch/include/THC -I/home/gberton/anaconda3/envs/splatam/include -I/home/gberton/anaconda3/envs/splatam/include/python3.10 -c cuda_rasterizer/forward.cu -o build/temp.linux-x86_64-cpython-310/cuda_rasterizer/forward.o -D__CUDA_NO_HALF_OPERATO
RS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options '-fPIC' -I/tmp/pip-req-build-fzmhzv59/third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_A
BI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
      cuda_rasterizer/auxiliary.h(151): warning #177-D: variable "p_proj" was declared but never referenced

      /home/gberton/anaconda3/envs/splatam/bin/nvcc -I/home/gberton/anaconda3/envs/splatam/lib/python3.10/site-packages/torch/include -I/home/gberton/anaconda3/envs/splatam/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I/home/gberton/anaconda3/envs/splatam/lib/python3.10/site-packages/torch/incl
ude/TH -I/home/gberton/anaconda3/envs/splatam/lib/python3.10/site-packages/torch/include/THC -I/home/gberton/anaconda3/envs/splatam/include -I/home/gberton/anaconda3/envs/splatam/include/python3.10 -c cuda_rasterizer/rasterizer_impl.cu -o build/temp.linux-x86_64-cpython-310/cuda_rasterizer/rasterizer_impl.o -D__CUDA
_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options '-fPIC' -I/tmp/pip-req-build-fzmhzv59/third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -D
PYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
      cuda_rasterizer/auxiliary.h(151): warning #177-D: variable "p_proj" was declared but never referenced

      /usr/include/c++/11/bits/std_function.h:435:145: error: parameter packs not expanded with ‘...’:
        435 |         function(_Functor&& __f)
            |                                                                                ^
      /usr/include/c++/11/bits/std_function.h:435:145: note:         ‘_ArgTypes’
      /usr/include/c++/11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘...’:
        530 |         operator=(_Functor&& __f)
            |                                                                                ^
      /usr/include/c++/11/bits/std_function.h:530:146: note:         ‘_ArgTypes’
      error: command '/home/gberton/anaconda3/envs/splatam/bin/nvcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for diff-gaussian-rasterization
  Running setup.py clean for diff-gaussian-rasterization
Failed to build diff-gaussian-rasterization
ERROR: Could not build wheels for diff-gaussian-rasterization, which is required to install pyproject.toml-based projects

The solution based on this issue in the original 3DGS repo: https://github.com/graphdeco-inria/gaussian-splatting/issues/662#issue-2140483919
Extra steps to install the submodules diff-gaussian-rasterization and simple-knn:

install the updated cudatoolkit: conda install -c conda-forge cudatoolkit-dev==11.6
install the g++-10: sudo apt install gcc-10 g++-10
update environment variables to use g++-10: export CC=/usr/bin/gcc-10, export CXX=/usr/bin/g++-10
cd to submodules directory and install: pip install .


[Documentation] Fix broken link in README

I noticed a few small documentation issues while reading the docs to get started with contributing to SwiftPM. I figured I'd put up a fix while I wait for Xcode beta to download. 😄
Note: the broken link on the main README points to a file that is noted as "for historical purposes only", so perhaps the correct fix is to the content of the README itself, not just the link. But I figure a working link is better than a broken one.

@richellis This is awesome, thank you so much!!

Skipping CI as this has no code change.


BUG: Conditional python 3.8 code optional

Make code imported from Python 3.8+ features an
optional testcase.
Resolves: #2963.

Failing mac test fixed upstream.


Azure - Question answering using embeddings-based search

I'm using python 3.11.3
Windows
Question answering using embeddings-based search
Looks like the embedding are different for Azure becuase the code
`def strings_ranked_by_relatedness(
query: str,

df: pd.DataFrame,

relatedness_fn=lambda x, y: 1 - spatial.distance.cosine(x, y),

top_n: int = 100

) -> tuple[list[str], list[float]]:
"""Returns a list of strings and relatednesses, sorted from most related to least."""

query_embedding_response = openai.Embedding.create(

    model=EMBEDDING_MODEL,

    deployment_id=EMBEDDING_MODEL,

    input=query,

)

query_embedding = query_embedding_response["data"][0]["embedding"]

strings_and_relatednesses = [

    (row["text"], relatedness_fn(query_embedding, row["embedding"]))

    for i, row in df.iterrows()

]

strings_and_relatednesses.sort(key=lambda x: x[1], reverse=True)

strings, relatednesses = zip(*strings_and_relatednesses)

return strings[:top_n], relatednesses[:top_n]

`
I'm using the deployment_id as part of the call.
Is returning some different answers
Can you confirm?

How different are they? I believe there's some small variability for each request. Not sure if this explains the difference you see.


Correctly color text in the variable view

For #4499

[x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR).
[x] Title summarizes what is changing.
[x] Has a news entry file (remember to thank yourself!).
[x] Appropriate comments and documentation strings in the code.
[ ] Has sufficient logging.
[ ] Has telemetry for enhancements.
[ ] Unit tests & system/integration tests are added/updated.
[ ] Test plan is updated as appropriate.
[ ] package-lock.json has been regenerated by running npm install (if dependencies have changed).

New variable view text was all just normal editor foreground color. Now it matches what the old variable used to do:

Was missing the style div to pick up the variables that we load here from the Css message: https://github.com/microsoft/vscode-jupyter/blob/08b8a44ddee7cb0298e7fcf198579b10ffab0d3c/src/client/datascience/codeCssGenerator.ts#L215

Squashing over current Insiders + VSCode API test failures


Same name resource files are overwritten by upstream deps

Reproduce example: https://github.com/tanishiking/bazel-playground/tree/main/13-bazel-resources

We have 2 targets, foo and base.
Both targets have a resource a.txt
foo depending on base

.
|-- base
|   |-- BUILD
|   |-- base.scala
|   `-- resources
|       `-- a.txt
`-- foo
    |-- BUILD
    |-- foo.scala
    `-- resources
        `-- a.txt

# base/BUILD
load("@io_bazel_rules_scala//scala:scala.bzl", "scala_library")
scala_library(
    name = "base",
    srcs = ["base.scala"],
    resources = glob(["resources/**"]),
    visibility = ["//visibility:public"],
)

# foo/BUILD
load("@io_bazel_rules_scala//scala:scala.bzl", "scala_binary")
scala_binary(
    name = "foo",
    srcs = ["foo.scala"],
    main_class = "foo.Foo",
    deps = ["//scala/base"],
    resources = glob(["resources/**"]),
)

❯ cat base/resources/a.txt
I'm from a.txt under base

❯ cat foo/resources/a.txt
I'm from a.txt under foo

Problem
When we build bazel build //scala/foo the generated jar file contains one a.txt in jar, that's ok
❯ jar tf bazel-bin/scala/foo/foo.jar
META-INF/
META-INF/MANIFEST.MF
a.txt
foo/
foo/Foo$.class
foo/Foo.class

The problem is it's from base, instead of foo
❯ bazel-bin/scala/foo/foo
I'm from a.txt under base

It looks like the upstream resources are prioritized when the resource name crashes.
Expectation
❯ bazel-bin/scala/foo/foo
I'm from a.txt under foo

Or is there a workaround for this?

Another example (comparing to sbt) with typesafe config https://github.com/tanishiking/typesafeconfig-sbt-bazel

@tanishiking could you clarify what would be an expected behavior for you?

@liucijus Sorry, I was struggling to explain the expected behavior 😅
Let's say we have targets A and B (where A depends on B), and both targets have the same name resource a.txt.
In this case, when we read a.txt from target A, we should read a resource a.txt defined in A.
However, it looks like we're reading a.txt defined in B instead.
(so, when the resource name crashes in A -> B, it looks like B wins. While I expect A to win).

This looks like a bug, and probably happens here. Fix should be as trivial as reordering those lines. @tanishiking, would you be interested in sending a PR with a fix and a related test?

Thank you for the pointer @liucijus Sure! I'll take a look probably later this week :)


Cancel in-progress runs on PR when new run is triggered from action

Currently, if an Azure Pipelines CI run is triggered by this action, and then a new commit is pushed on a pull request that triggers a 2nd CI run, instead of canceling the 1st CI run, both runs will continue to completion.
Is there any way to signal to Azure Pipelines that subsequent triggers should cancel in-progress runs for the current branch?

This is possible if you directly integrated the GitHub repo with Azure Pipelines. https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/github?view=azure-devops&tabs=yaml#multiple-pr-updates. This is not supported through the action.

I realize it's not currently possible with this action - I'm requesting that the action add support for canceling in-progress runs on a PR.


Improve LogBox error and warning tester in RNTester

Overview
In RNTester we have a surface to test crashes, however this only handles a few cases.
Let's improve this screen to cover all cases:
Logging

Native log warnings (e.g. calls RCTLogWarn)
Native log errors (e.g. calls RCTLogError)
Native log fatals (e.g. calls RCTLogFatal)
console errors
console warnings
React warnings

Syntax Errors

LogBox syntax errors
Native syntax errors

JavaScript Errors

Unhandled JavaScript errors
JavaScript errors thrown in render with no error boundary
JavaScript errors thrown in render with an error boundary

Native crashes

Native module errors (e.g. invalid method argument)

I have run into a couple cases where it would be nice to be able to simply inspect native RedBox state.
Something like RedBox.isShowing(): boolean - for library maintainers this would allow e2e harnesses to catch native errors that otherwise are invisible, e.g. https://github.com/invertase/notifee/issues/212
I can slice in my own observing implementation of LogBox.addLog and LogBox.addException but there's no way in javascript to slice in to the RedBox things at the native level, and no way to inspect RedBox state that I know of?
Something like that would allow that surface area to be more testable, along with the already-exported dismiss method and maybe in tandem with an exported "trigger redbox" method

@mikehardy that seem tricky - if the JS thread is running, then native errors should almost all go to LogBox. If they don't, we should make them. If the JS thread isn't running then you can't call something like RedBox.isShowing().
Long term, I'd like to see LogBox moved to a separate bundle/VM so that it's stable and can be used for all errors, even when the JS thread for the application has crashes. If we do that, then there would be no native "Redbox" only LogBox.


Add admin user control APIs

Pull Request
Title
Admin APIs for User Management
Description
Admins have control over the user with the following APIs
CRUD Operations: Allow admins to create, update, delete, and view users.
Role and Permission Update: APIs to modify roles and permissions of users based on admin inputs.
Account Status Updates: Enable toggling account states (e.g., active, suspended).
Related Issues
fixes #913
Checklist

[X] I have tested the changes locally
[X] Documentation has been updated (if necessary)
[X] Changes are backward-compatible

Screenshots (if applicable)

@manikumarreddyu Please increase the level of the PR!

@manikumarreddyu why changed the label bro...they are so many endpoints.


Use var_value<matrix_cl> in normal_id_glm_lpdf

Summary
Changes GPU implementation normal_id_glm_lpdf to accept var_value inputs, allowing diferentiation of x and y.
New interface still requires x and beta to be matrix_cls. All other arguments can be either matrix_cls or scalars. (Anything that can be matrix_cl can also be var_value<matrix_cl>.)
This includs a number of smaller changes:

Added support for matrix_cl to various functions and metaprograms: is_constant, size, sum, arena_t (returning a class derived from matrix_cl and chainable_alloc), operands_and_partials, to_arena, dims
Reworked is_matrix_cl to also return true for classes derived from matrix_cl
Some kernel generator expressions now also accept scalars (checks, colwise reductions) and references to scalars (operator*)
A number of files now only include headers they need instead of more general ones
elt_divide now also accepts two scalar arguments
bugfixed is_stan_scalar to return false for var_value<matrix>
replaced += in precomputed_gradients with = and + to make it work with matrix_cl
added .rows() and .cols() to var_value
is_matrix_cl is moved to prim/meta

Tests
Modified the tests to test the new interface of normal_id_glm_lpdf.
Side Effects
Interface of GPU normal_id_glm_lpdf is completly changed - previous signatures (accepting EIgen types and std vectors) are not accepted anymore.
Release notes
GPU implementation normal_id_glm_lpdf can also be used when derivatives of x or y are needed.
Checklist

[x] Math issue #2013

[x] Copyright holder: Tadej Ciglarič
The copyright holder is typically you or your assignee, such as a university or company. By submitting this pull request, the copyright holder is agreeing to the license the submitted work under the following licenses:
- Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
- Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

[x] the basic tests are passing

unit tests pass (to run, use: ./runTests.py test/unit)
header checks pass, (make test-headers)
dependencies checks pass, (make test-math-dependencies)
docs build, (make doxygen)
code passes the built in C++ standards checks (make cpplint)

[x] the code is written in idiomatic C++ and changes are documented in the doxygen

[x] the new changes are tested

Ok, just to clarify. Given that the supported signatures in Stan are
real normal_id_glm_lpdf(real, matrix, real, vector, vector)
real normal_id_glm_lpdf(real, matrix, vector, vector, vector)
real normal_id_glm_lpdf(vector, row_vector, real, vector, vector)
real normal_id_glm_lpdf(vector, row_vector, vector, vector, vector)
real normal_id_glm_lpdf(vector, matrix, real, vector, real)
real normal_id_glm_lpdf(vector, matrix, vector, vector, real)

this means that any of these signatures can now use the matrix_cl version, regardless whether they are data or parameters?
x and beta are not scalars in any of these.

And a follow-up, scalars do not have to be copied with to_matrix_cl() right? They are handled by the kernel generator if I recall correctly.

Right. Just if any argument is matrix_cl/var_value<matrix_cl> all must be scalar/matrix_cl/var_value<matrix_cl> (no Eigen or std vector arguments)

Also row_vector x is still not supported on GPU.

So the rule is,
If x is not a row_vector:

scalar arg -> leave as is
else -> to_matrix_cl-it (data is moved in the model constructor, params just before the call)

Correct.

Just an FYI: the stanc3 update for GPU GLMs will be done at once for all GLMs so we either merge this to develop and once all are in also update stanc3 or we merge all of it together. Stanc3 side of this is mostly ready so just let me know how you want to do this @SteveBronder @t4c1

Does this have to wait for the changes to the stanc3 compiler?

I would prefer to have all the GLMs modified before opening the stanc3 PR because it will be very annoying to special-case just a few GLMs to var_value. So if we dont want to have a develop where GPU GLMs dont work, we need to have all math PRs done and merge everything together.

I need to move the source branch to stan_dev repo (now it is on fork) so that jenkins will run on other PRs pointing into it.


Docker is missing

Neither a Dockerfile, nor a docker-compose.yml could be found.
This is unacceptable in a modern webdev environment.
I'm at a loss. I have no clue on how to run or deploy this.
Can someone please fix this?
Keep up the good work!

We will deploy soon our kubernetes Cluster with CephOS Storage - after that and after creating 420 Jenkins Integration Tests we can hope that our copy&paste dockerfile starts! Just some clicks, and also the cloudflare Protection is ready...


Add sr-7s model

thanks @jbemmel
does it make sense to use linecard_config func for this new variant?
https://github.com/hellt/vrnetlab/blob/068820187d62863d26ca1a4f52c193daa211245f/sros/docker/launch.py#L39

Not currently, because of the 'sfm' config lines
The whole thing could be cleaned up a bit - but for now I'd just like to add sr-7s support (needed for a customer demo)


Add a command to view all branches in git CheatSheet

Hi !! ..
In Git CheatSheet for Developers in section of Branching & Merging it will be great if we add how we can view all the list of Branches
If you Think this can be added I am ready to work on that issue.
Thankyou.

Carry on. @hemant-sw

@crescentpartha I am about to push my work  but here you marked as closed ??


Timeline items don't alternate on either side when using *ngFor

There was a problem with the inclusion of the provided .css on my end.
It works as intended.


actor state get and save should return 404 if actor doesn't exist

Description
The api spec says state get/save calls should return 404 if the actor does not exist.  That error code is not returned today.
Issue reference
We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.
Please reference the issue this PR will close: #1991
Checklist
Please make sure you've  completed the relevant tasks for this PR, out of the following list:

[x] Code compiles correctly
[x] Created/updated tests
[x] Unit tests passing
[ ] End-to-end tests passing
[ ] Extended the documentation / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]
[ ] Specification has been updated / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]
[ ] Provided sample for the feature / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]

This is actually a docs issue. We made a blanket decision in the past to not use 404 for the server APIs.
This change will make this API different from the other endpoints.

What should it return in this case then? 500?

The other APIs return 400 which signals a bad request, for missing entities.

Ok I'll leave it at 400.  The get api still needs the change there though it'll change it to 400.  Without it, it returns 204 today for "key not present".  I think an actor not being there supersedes the key not being there.


Add customization to disable max char warning

Completions work well enough for me even when the file is truncated. Getting a warning every time is therefore unecessary.

This has been suggested and rejected in #273.
However I also came here with the intent to ask for this sort of feature. My problem is that I get warnings like the below when I update packages via e.g. package-update-all.
⛔ Warning (copilot):  *temp*-529187 size exceeds 'copilot-max-char' (100000), copilot completions may not work

I am activating copilot-mode in prog-mode-hook, so I assume that it's catching large Elisp files that are opened at package install time. I do want copilot-mode in regular Elisp files, so I don't think it's feasible to be more selective about what hook I put it on.
Would it make sense to have copilot ignore buffers with the *temp*- prefix?

Got it. I missed that this has already been addressed. I'll close this here. Thanks for pointing out.
I think you could disable copilot for such buffers, as @emil-vdw suggested in the original issue thread. Maybe you could modify it slightly to handle your case specifically. Something like:
(defun my/activate-copilot ()
  (if (or (> (buffer-size) copilot-max-char)
          (string-prefix-p "*temp*-" (buffer-name)))
      ;; Or don't even warn to get rid of it.
      (warn "Buffer size exceeds copilot max char limit or buffer is temporary. Copilot will not be activated.")
    (copilot-mode)))

My position is that I shouldn't have to concoct my own custom activation mechanism to avoid warnings during normal Emacs operations like updating a package. I think that's something that copilot should handle out of the box.

Understand what you're saying now. I suppose this could be discussed in a dedicated issue of it's own.


export query interface/parameters to allow dynamic query building

Hello, I noticed that query parameters are not exported which restricts query building to only XIfPresent methods.
Is it possible to export the interfaces/structs used to build the query so that we can constantly append the query to a slice of parameters and then do a variadic spread of the slice onto the find/update method itself?
e.g.
currentUser := getUserFromCtx(ctx)
createParams := []db.UserSetParams{}

if currentUser.Role == foo {
  createParams = append(createParams, bar)
} else {
  createParams = append(createParams, baz)
}

db.User.CreateOne(createParams...)

This would allow for even greater flexibility in building queries dynamically in addition to the new XIfPresent methods.
Thanks!

We do want to export those methods, but want to think of proper naming first. Some of those types might not have ideal names right now, and we don't want to make breaking changes around those types if we can avoid it.
As a temporary workaround, you can create a new go file in the package where the Prisma client is generated (default is db), and manually export the types you need to use by re-exporting the type via type IUserSetParams = iUserSetParams.

We do want to export those methods, but want to think of proper naming first. Some of those types might not have ideal names right now, and we don't want to make breaking changes around those types if we can avoid it.
As a temporary workaround, you can create a new go file in the package where the Prisma client is generated (default is db), and manually export the types you need to use by re-exporting the type via type IUserSetParams = iUserSetParams.

Ah have not thought of this, thanks for the workaround!

Sure; just remember that we will change the names at some point.

For the export of the interfaces to build dynamic queries, I’m not sure what to name them. There are also major differences to the JS client.
There are basically two major types, one to query for something (find or building up there “where” part for update/delete) and one to write something (create & update).
So we could name them something like:
<Model>FindParams
<Model>SetParams

Other options could be Read/Write or Query/Mutate. Find Set is what I did previously, for Read/Write I don’t like the read so much since I’d rather have it called “query” or “find”).
Another option could be Query/Mutate, I like this one, but maybe reminds too much of GraphQL?

For the export of the interfaces to build dynamic queries, I’m not sure what to name them. There are also major differences to the JS client.
There are basically two major types, one to query for something (find or building up there “where” part for update/delete) and one to write something (create & update).
So we could name them something like:
<Model>FindParams
<Model>SetParams

Other options could be Read/Write or Query/Mutate. Find Set is what I did previously, for Read/Write I don’t like the read so much since I’d rather have it called “query” or “find”).
Another option could be Query/Mutate, I like this one, but maybe reminds too much of GraphQL?

How about where for queries and set for create and update?

How about where for queries and set for create and update?


rework 'assembly' grammar

e.g. simplify sets
set <register> <value>
index set <value>
timer sound <value>
timer set <value>

could become
set <register|index|sound|timer> <value>

maybe even set pc <value> instead of jmp <value> but that could be a bad idea

Set
set <target> <source>

  <target>: VX | delay | sound
  <source>: VY | NN

Notes:

this allows set timer NN which isn't an actual opcode
we don't allow setting the index since then the value needs to be 12 bit vs 8 bit for all the others


Can't rezise image stored in a string.

I have a PNG stored in a string taken from mysql BLOB. I do not want the image on the servers file system due to plan on using AES_ENCRYPT/DECRYPT to protect the image (user signature).
I get the following error:
Warning: is_file() expects parameter 1 to be a valid path, string given in /var/www/html/signature/ImageResize.php on line 108

If possible, could you provide your sample code?
I can try to reproduce your issue and find where the problem is.

It seems to be a feature because the ImageResize class constructor supports file name, not image binary string at this moment.

I think, you can use something like this:
'data://image/png;base64,' . base64_encode($blob_data);

as resource filename

$str = file_get_contents(__DIR__ . '/test_in.jpg'); // get data from file or BLOB
$str = 'data://image/jpeg;base64,' . base64_encode( $str ); // also, you will store mime type of your image near BLOB data

$image = new \Gumlet\ImageResize($str);
$image->scale(50)->save('test_out.png', IMAGETYPE_PNG);


Add health mapping to readme

Hi there,
I thought I should add the information I got by asking to the place I anticipated it to be so that other clueless people like me may find the same info easier.
Feel free to reject if it's not helpful at all :)

Thanks for the PR @DanielMSchmidt

You are very welcome, thank you for helping me earlier :)


Add Strava to HA will not work

Hi, when i´m trying to add the github https://github.com/codingcyclist/ha_strava i ge this error msg:
<Integration codingcyclist/ha_strava> Repository structure for 0.1.1 is not compliant
What am i doing wrong.?

the same...

Yeah same for me. I don't think we are doing anything wrong. It is as the error reports: "the folder structure is not compliant". So the OP will need to update it. Fingers crossed he sees this thread 🤞

@codingcyclist

This repo is abandoned. I recommend you try @craibo's fork at https://github.com/craibo/ha_strava which is actively maintained.

Hello,
Any idea how uninstall Strava HA from HACS? I tried to delete the app from hacs directory and did not work.
Regards.

Hi @jjmateof

From Settings -> Devices & Integrations find the Strava integration.
1.1. Select the 3 dots menu bottom right and select the Delete menu item
Navigate to HACS -> Integrations view and select the HA Strava tile.
2.1. In the HA Strava view, select the 3 dots menu top right and select Remove menu item
Go back to HACS -> Integrations view
3.1. Select the 3 dots menu and select Custom repositories menu item
3.2. Find the Strava repository and delete it.
Finally go to Settings -> System and select  Restart top right

As mentioned previously, the repo https://github.com/craibo/ha_strava is a currently maintained and working version of HA Strava


Upgrading to v2

Hello, with latest v2 release, I am not quite sure how to migrate to it.
The newly introduced operations property seem require passing in all the queries and mutations.
However, these queries and mutations resides in many separated files in my project.
I am using graphql-codegen to generate the schema.ts file:
const config: CodegenConfig = {
  overwrite: true,
  schema: `${process.env.VITE_API_URL}/graphql`,
  documents: [resolve(__dirname, 'src/graphql/**/*.gql')],
  generates: {
    [resolve(__dirname, 'src/graphql/schema.ts')]: {
      plugins: [
        {
        'typescript',
        'typescript-operations',
      ],
    },
  },
};

Do you have any idea how to generate a single graphql file containing all operations?
I am not sure why the operations is needed in v2 because v1 works fine

Hey @nodegin the operations are only needed if you are using field aliases.
Lets say you have the following schema
type Book {
   name: String!
   publishedAt: DateTime!
}

type Query {
   book: Book!
}

and the following operation with an alias
query getBook {
   book {
      name
      publishedAt: releaseDate
   }
}

now the response will be something like this
{
   "book": {
      "name": "Book 1"
      "releaseDate": "2024-01-01..."
   }
}

now i cannot map the value of releaseDate to a Date object, since i can't map this field name to anything in the schema. Thats why operations are needed, to know about the aliases.

For your issue: You can just use https://github.com/isaacs/node-glob to read all your operation files with the gql extension and then join them with '\n\n' and pass to the constructor. Should be only 2 lines.

@co-sic Hello, thank you for reply.
Sorry it have been a while until I come back to this again,
I am currently using transform scalars in frontend query client,
therefore, I am not sure how can I glob all operation files in frontend...

I hope the lib can make the operations parameter become optional considering some user who are not using the alias feature

Hey @nodegin i added a flag for the constructor you can use to skip operations. This is intentionally prefixed with __ and not mentioned in the docs, since i think i can lead to hard to spot production bugs if you do not supply the operations and then later on somebody adds an field alias.
With the new flag the constructor will look like this:
new TransformCustomerScalars({
   ...
   operations: '',
   __skipOperations: true
   ...
})

I'm currently only using this in the backend, but maybe in the future i will supply a build in option to get all the operation files with a glob for backend and frontend projects.

@co-sic Thank you for the solution! I will give it a try.


Universal Media Player is not ignoring paused children

Home Assistant release (hass --version): 0.65
Python release (python3 --version): 3.6
Component/platform: media_player.universal
**Description of problem: If one of the children goes inactive, idle or paused, the universal media player should look for the next child that is playing. However, currently it does not skip paused media players. **
Expected: Paused media player children should be skipped so that the next active player ('playing' state) is picked up instead
Problem-relevant configuration.yaml entries and steps to reproduce:
if A,B are the children (in order), then pause A and start playing B. Universal Media Player should switch to B as the active child but it doesn't

Looking at the code, it seems that OFF_STATES includes IDLE and OFF (not Paused).
Don't know if PAUSED is a valid value or of IDLE should be set on the media player when paused (which is not happening possibly and is a bug elsewhere).

My change doesn't change the off states, however you'd be able to ignore paused children (and bypass / reimplement the off states logic) using its active child template.

IMO, paused shouldn't be considered an off state by default.
A common scenario that would get screwed up is where a user is watching media on the current player and another player like a TV for instance is playing in the background.  Temporarily pausing the current player would switch to the TV every time, regardless of intention.

The current logic treats all active states the same. Playing, paused and on. I've proposed a hierarchy of playing>paused because the playing player is most likely to be the one being used right then.
I see you point and propose that the hierarchy be changed to playing>paused>on. So in your use case, the paused player will be picked up instead of the just on TV


Package.json error

I'm getting this error when trying to use particle dev with my Redbear, I'm teaching a class using this board and Particle dev in Atom, and I'm getting this error on about 10% of my students machines when I try to open the Serial Port.
Can any one point me to a solution?

Hi Hamish! If you rename ~/.particledev directory to something else (but not remove it) and start the Desktop IDE again, does it makes the error disappear?

That fixed it, thanks!

That's great! Could you zip the contents of it and send it to me at<EMAIL_ADDRESS>?


Response without data field, how to handle?

Hello!
In my case I have no data field in server response.
This causes an error:
Payload is not an array! Your server response for a FETCH action
          should be in one of the following forms:

          { data: [ ... ] }

          or

          [ ... ]

          Here are the contents of your action:

What is the best way to use custom response schema? It seems like I just can override something, but I didn't understood if you have any API for it.

Can you post the shape of your server response?
Thrre may be a clever way to do it, or maybe we can improve the library, but the short answer is to copy the ApiClient out of this repo into your codebase and modify as needed.
But yeah, post an example of your server response and I can let you know if there's an easier way

@devvmh thank you! Here is an example:
{
  "page": 1,
  "perPage": 20,
  "sort": "email",
  "order": "asc",
  "_embedded": {
    "count": 1,
    "pages": 1,
    "patients": [
      {
        "id": "2b275cc8-698e-4da7-bd51-d710461cd074",
        [[[...other fields here...]]]
        "_type": "patient",
        "_links": {
          "read": {
            "href": "/api/patients/2b275cc8-698e-4da7-bd51-d710461cd074",
            "method": "GET"
          },
          "update": {
            "href": "/api/patients/2b275cc8-698e-4da7-bd51-d710461cd074",
            "method": "PATCH"
          },
          "delete": {
            "href": "/api/patients/2b275cc8-698e-4da7-bd51-d710461cd074",
            "method": "DELETE"
          }
        }
      }
    ]
  },
  "_links": {
    "self": {
      "href": "/api/patients?page=1&perPage=1&order=asc",
      "method": "GET"
    },
    "create": {
      "href": "/api/patients",
      "method": "POST"
    }
  },
  "_type": "patient-search"
}

Ah yes, then you're precisely the case identified in this open issue:
https://github.com/devvmh/redux-crud-store/issues/6
The quick fix is to fork ApiClient and copy into your codebase
If you come up with a nice generalized way of doing it that would be
amazing and i could help review a pull request to get this merged in for
future users.
On Wed, Oct 4, 2017, 12:46 AM Nikolay Aleshkovskiy, <
<EMAIL_ADDRESS>wrote:

@devvmh https://github.com/devvmh thank you! Here is an example:
{
"page": 1,
"perPage": 20,
"sort": "email",
"order": "asc",
"_embedded": {
"count": 1,
"pages": 1,
"patients": [
{
"id": "2b275cc8-698e-4da7-bd51-d710461cd074",
[[[...other fields here...]]]
"_type": "patient",
"_links": {
"read": {
"href": "/api/patients/2b275cc8-698e-4da7-bd51-d710461cd074",
"method": "GET"
},
"update": {
"href": "/api/patients/2b275cc8-698e-4da7-bd51-d710461cd074",
"method": "PATCH"
},
"delete": {
"href": "/api/patients/2b275cc8-698e-4da7-bd51-d710461cd074",
"method": "DELETE"
}
}
}
]
},
"_links": {
"self": {
"href": "/api/patients?page=1&perPage=1&order=asc",
"method": "GET"
},
"create": {
"href": "/api/patients",
"method": "POST"
}
},
"_type": "patient-search"
}
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/devvmh/redux-crud-store/issues/60#issuecomment-334075689,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABVELFjlF71yGmfgXmiDnaYX7upP5yJ-ks5sozfwgaJpZM4PszPW
.

I'm closing this issue; feel free to re-open or open a new issue if you have more questions


Remote into a session's second screen

I have a remote pc with a dual monitor setup. I want to remote into the second screen while the the remote pc stays on the main screen. How can that be done? I am able to connect to the remote pc but first of all, I cannot connect to the same session from differnt computers. Then aslo conecting to the remote pc only shows the first monitor. There are options for session shadowing but I cannot seen to get it to work.

Rdp adapts to the graphics setup of the remote system, although I don't
know what it would do on a two monitor remote system.
To use the system remotely and locally at the same time, create a second
user account on the system, and log in to that.
Session shadowing isn't something i have done. I believe it requires both a
domain login, and a "trusted ip address". I've read that people get around
that be making a vpn connection to the computer and connecting from there.
On Sun, 26 Jul 2020 01:03 joecrt<EMAIL_ADDRESS>wrote:

I have a remote pc with a dual monitor setup. I want to remote into the
second screen while the the remote pc stays on the main screen. How can
that be done? I am able to connect to the remote pc but first of all, I
cannot connect to the same session from differnt computers. Then aslo
conecting to the remote pc only shows the first monitor. There are options
for session shadowing but I cannot seen to get it to work.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/stascorp/rdpwrap/issues/1133, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAMCGIQLK7II2HY4YYCY7ADR5LX3BANCNFSM4PHP4FFQ
.

Rdp adapts to the graphics setup of the remote system, although I don't know what it would do on a two monitor remote system. To use the system remotely and locally at the same time, create a second user account on the system, and log in to that. Session shadowing isn't something i have done. I believe it requires both a domain login, and a "trusted ip address". I've read that people get around that be making a vpn connection to the computer and connecting from there.
…
On Sun, 26 Jul 2020 01:03 joecrt, @.***> wrote: I have a remote pc with a dual monitor setup. I want to remote into the second screen while the the remote pc stays on the main screen. How can that be done? I am able to connect to the remote pc but first of all, I cannot connect to the same session from differnt computers. Then aslo conecting to the remote pc only shows the first monitor. There are options for session shadowing but I cannot seen to get it to work. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#1133>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMCGIQLK7II2HY4YYCY7ADR5LX3BANCNFSM4PHP4FFQ .

I can already do that- using the system Remtely and locally. Just that I want to have the same session on both computers. The remote pc and local pc are already on the same LAN. Doesn't this scenario make a vpn unccessary?

On Sun, 26 Jul 2020 at 14:04, joecrt<EMAIL_ADDRESS>wrote:

Rdp adapts to the graphics setup of the remote system, although I don't
know what it would do on a two monitor remote system. To use the system
remotely and locally at the same time, create a second user account on the
system, and log in to that. Session shadowing isn't something i have done.
I believe it requires both a domain login, and a "trusted ip address". I've
read that people get around that be making a vpn connection to the computer
and connecting from there.
… <#m_-2116279207119565596_>
On Sun, 26 Jul 2020 01:03 joecrt, @.***> wrote: I have a remote pc with
a dual monitor setup. I want to remote into the second screen while the the
remote pc stays on the main screen. How can that be done? I am able to
connect to the remote pc but first of all, I cannot connect to the same
session from differnt computers. Then aslo conecting to the remote pc only
shows the first monitor. There are options for session shadowing but I
cannot seen to get it to work. — You are receiving this because you are
subscribed to this thread. Reply to this email directly, view it on GitHub <
#1133 https://github.com/stascorp/rdpwrap/issues/1133>, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAMCGIQLK7II2HY4YYCY7ADR5LX3BANCNFSM4PHP4FFQ
.
I can already do that- using the system Remtely and locally. Just that I
want to have the same session on both computers. The remote pc and local pc
are already on the same LAN. Doesn't this scenario make a vpn unccessary?

Yes, that is session shadowing. Some people here are doing it by making a
vpn connection to the remote machine, so their connection comes from
localhost.
I haven't used windows networking enough to know how to set up a trusted
machine, so that shadowing works. It is used by in-house tech support all
over the world, however, so it is doable.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/stascorp/rdpwrap/issues/1133#issuecomment-663932932,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAMCGIQRIF4A3VRAHNGAEPLR5OTMTANCNFSM4PHP4FFQ
.

Alright. Thanks lot for the feedback. I'm just confused as to why there is the need for a vpn since the pcs are both on the same LAN.  Anyway let me just add that I am able to achieve shadowing if I first remote into the pc and then use Mstsc.exe /shadow: to get a shadow session of one of the sessions. So then I have a shadow session of one of the sessions running inside another rdp session. This is not ideal for me and could put to much load on system resources. When I try to specify the shadow the remote pc directly using Mstsc.exe /shadow: /v: I get "access denied".
I think it is also worthy of mention that when I run RDPCheck.exe with the single session per user option ticked, I get "access denied" upon entering my password. It only worksd when unticked, or after I have preciously connected with it untick, because by then another session would have been running so it remotes into that. So I'm thinking there is something wrong with my RDPwrap configuration which is not allowing shadowing to work properly


Add support for unistd's rmdir call

At the moment unlink and unlinkat are supported by nix, but I can't find any support for rmdir call to remove dirs.
According to unlink docs:

The path argument shall not name a directory unless the process has appropriate privileges and the implementation supports using unlink() on directories.

So mostly rmdir should be used for directory removal.
I suppose something like this should be added to unistd.rs:
pub fn rmdir<P: ?Sized + NixPath>(path: &P) -> nix::Result<()> {
    let res = path.with_nix_path(|cstr| {
        unsafe {
            libc::rmdir(cstr.as_ptr())
        }
    })?;
    Errno::result(res).map(drop)
}

I can submit such PR if there are no objections

Just one question: what advantage does nix::unistd::rmdir have over https://doc.rust-lang.org/std/fs/fn.remove_dir.html ?  If the standard library suffices, then we don't need to duplicate its functionality in Nix.

As I can see there is no any advantage, so PR and issue could be closed I suppose.
And if Nix shouldn't duplicate standard library then unlink must be removed as well because it duplicates remove_file


Update zio version to 1.0.6

Just found ZIO 1.0.6 is too new to be supported in IntelliJ:

Thank you! Can you also bump the Scala 3 version to RC2? In the yaml and wherever else it's defined.

Sure! Let me make the change

Cheers! I'm not on the computer right now, I'll tag this with 1.0.6 when CI passes!

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: alphaho:x: Alpha HoAlpha Ho seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

No hurry. Feel free to do it at your convenience :-)

Looks great! Thanks again!

Thanks! Now the test runner can be successfully downloaded!


Unexpected end of JSON input

Any time that I make a call through aurelia-api/aurelia-orm, if I have the Chrome Sources tab open, it pauses on a promise rejection SyntaxError: Unexpected end ofJSON input
Everything actually works just fine.  It's just that this exception is thrown for every api call made even when there is no actual issue.  However, when debugging, this become cumbersome as it is always  thrown if an api call is made.  The json looks just fine:
{"email":"Greg2@gmail.com","password":"Test","confirmPassword":"Test","appUserId":null}
It would make debugging easier to resolve this. I have "Pause on Exception" selected, but not "Pause on caught exceptions" in the chrome debugger options. Any advice on this would be appreciated.
It breaks on this method in the debugger:
Rest.prototype.request = function request(method, path, body, options) {
    var requestOptions = (0, _extend2.default)(true, { headers: {} }, this.defaults, options || {}, { method: method, body: body });
    var contentType = requestOptions.headers['Content-Type'] || requestOptions.headers['content-type'];

    if ((typeof body === 'undefined' ? 'undefined' : _typeof(body)) === 'object' && body !== null && contentType) {
      requestOptions.body = /^application\/json/.test(contentType.toLowerCase()) ? JSON.stringify(body) : (0, _aureliaPath.buildQueryString)(body);
    }

    return this.client.fetch(path, requestOptions).then(function (response) {
      if (response.status >= 200 && response.status < 400) {
        return response.json().catch(function () {  //Debugger stops here.
          return null;
        });
      }

      throw response;
    });
  };

google reveals some results on fetch and this measage. happens either when the server returned null or cors settings don't match. nothing we can do here


assimp543 still stuck

Solution to issue cannot be found in the documentation.

[X] I checked the documentation.

Issue
The assimp543 migration is still stuck, and the bot error is:

        linux_aarch64_: Cannot solve the request because of: No candidates were found for dartpy *.

linux_ppc64le_: Cannot solve the request because of: No candidates were found for dartpy *.

osx_arm64_: Cannot solve the request because of: No candidates were found for dartpy *.

win_64_: Cannot solve the request because of: No candidates were found for dartpy *.

See https://conda-forge.org/status/migration/?name=assimp543 and the failing log at https://github.com/regro/cf-scripts/actions/runs/11095180883/job/30823495821 .
Installed packages
.

Environment info
.

@traversaro Do you have any idea how to resolve this issue? It appears that it fails to resolve for platforms where dartpy is not built (i.e., aarch64, ppc64le, osx_arm64, and win).

@traversaro Do you have any idea how to resolve this issue? It appears that it fails to resolve for platforms where dartpy is not built (i.e., aarch64, ppc64le, osx_arm64, and win).

No idea, I opened https://github.com/regro/cf-scripts/issues/3014 to track the problem.

It seems https://github.com/conda-forge/dartsim-feedstock/pull/105 resolved it! dartsim is no longer a blocker in https://conda-forge.org/status/migration/?name=assimp543

Good catch!


Escape curly braces to prevent Angular XSS

To prevent Angular's greedy evaluation of {{/}}, curly braces are escaped with their HTML entity alternatives.
I'm not really sure what the best way to test this is?

have you thrown a translation in with some {{ to see what happens?

Is there a way to get the build process to use a branch instead of master?