Building error with catin build

Hi There,
When trying to build the package I get the following error:
Errors     << lidar_align:make /home/vinz/catkin_ws/logs/lidar_align/build.make.001.log                               In file included from /usr/include/flann/util/serialization.h:9:0,                  from /usr/include/flann/util/matrix.h:35,                  from /usr/include/flann/flann.hpp:41,                  from /usr/include/pcl-1.8/pcl/kdtree/flann.h:50,                  from /usr/include/pcl-1.8/pcl/kdtree/kdtree_flann.h:45,                  from /home/vinz/catkin_ws/src/lidar_align/include/lidar_align/sensors.h:8,                  from /home/vinz/catkin_ws/src/lidar_align/include/lidar_align/loader.h:7,                  from /home/vinz/catkin_ws/src/lidar_align/src/loader.cpp:5: /usr/include/flann/ext/lz4.h:196:57: error: conflicting declaration ‘typedef struct LZ4_stream_t LZ4_stream_t’  typedef struct { long long table[LZ4_STREAMSIZE_U64]; } LZ4_stream_t;                                                          ^~~~~~~~~~~~ In file included from /opt/ros/melodic/include/roslz4/lz4s.h:38:0,                  from /opt/ros/melodic/include/rosbag/stream.h:46,                  from /opt/ros/melodic/include/rosbag/chunked_file.h:46,                  from /opt/ros/melodic/include/rosbag/bag.h:41,                  from /home/vinz/catkin_ws/src/lidar_align/src/loader.cpp:2: /usr/include/lz4.h:196:57: note: previous declaration as ‘typedef struct LZ4_stream_t LZ4_stream_t’  typedef struct { long long table[LZ4_STREAMSIZE_U64]; } LZ4_stream_t;                                                          ^~~~~~~~~~~~ In file included from /usr/include/flann/util/serialization.h:9:0,                  from /usr/include/flann/util/matrix.h:35,                  from /usr/include/flann/flann.hpp:41,                  from /usr/include/pcl-1.8/pcl/kdtree/flann.h:50,                  from /usr/include/pcl-1.8/pcl/kdtree/kdtree_flann.h:45,                  from /home/vinz/catkin_ws/src/lidar_align/include/lidar_align/sensors.h:8,                  from /home/vinz/catkin_ws/src/lidar_align/include/lidar_align/loader.h:7,                  from /home/vinz/catkin_ws/src/lidar_align/src/loader.cpp:5: /usr/include/flann/ext/lz4.h:249:72: error: conflicting declaration ‘typedef struct LZ4_streamDecode_t LZ4_streamDecode_t’  typedef struct { unsigned long long table[LZ4_STREAMDECODESIZE_U64]; } LZ4_streamDecode_t;                                                                         ^~~~~~~~~~~~~~~~~~ In file included from /opt/ros/melodic/include/roslz4/lz4s.h:38:0,                  from /opt/ros/melodic/include/rosbag/stream.h:46,                  from /opt/ros/melodic/include/rosbag/chunked_file.h:46,                  from /opt/ros/melodic/include/rosbag/bag.h:41,                  from /home/vinz/catkin_ws/src/lidar_align/src/loader.cpp:2: /usr/include/lz4.h:249:72: note: previous declaration as ‘typedef struct LZ4_streamDecode_t LZ4_streamDecode_t’  typedef struct { unsigned long long table[LZ4_STREAMDECODESIZE_U64]; } LZ4_streamDecode_t;                                                                         ^~~~~~~~~~~~~~~~~~ make[2]: *** [CMakeFiles/lidar_align.dir/src/loader.cpp.o] Error 1 make[1]: *** [CMakeFiles/lidar_align.dir/all] Error 2 make: *** [all] Error 2 cd /home/vinz/catkin_ws/build/lidar_align; catkin build --get-env lidar_align | catkin env -si  /usr/bin/make --jobserver-fds=6,7 -j; cd -
Do you have any suggestions on how I could fix this?
Thanks

``

Errors     << lidar_align:make /home/vinz/catkin_ws/logs/lidar_align/build.make.001.log
In file included from /usr/include/flann/util/serialization.h:9:0,
from /usr/include/flann/util/matrix.h:35,
from /usr/include/flann/flann.hpp:41,
from /usr/include/pcl-1.8/pcl/kdtree/flann.h:50,
from /usr/include/pcl-1.8/pcl/kdtree/kdtree_flann.h:45,
from /home/vinz/catkin_ws/src/lidar_align/include/lidar_align/sensors.h:8,
from /home/vinz/catkin_ws/src/lidar_align/include/lidar_align/loader.h:7,
from /home/vinz/catkin_ws/src/lidar_align/src/loader.cpp:5:
/usr/include/flann/ext/lz4.h:196:57: error: conflicting declaration ‘typedef struct LZ4_stream_t LZ4_stream_t’
typedef struct { long long table[LZ4_STREAMSIZE_U64]; } LZ4_stream_t;
^~~~~~~~~~~~
In file included from /opt/ros/melodic/include/roslz4/lz4s.h:38:0,
from /opt/ros/melodic/include/rosbag/stream.h:46,
from /opt/ros/melodic/include/rosbag/chunked_file.h:46,
from /opt/ros/melodic/include/rosbag/bag.h:41,
from /home/vinz/catkin_ws/src/lidar_align/src/loader.cpp:2:
/usr/include/lz4.h:196:57: note: previous declaration as ‘typedef struct LZ4_stream_t LZ4_stream_t’
typedef struct { long long table[LZ4_STREAMSIZE_U64]; } LZ4_stream_t;
^~~~~~~~~~~~
In file included from /usr/include/flann/util/serialization.h:9:0,
from /usr/include/flann/util/matrix.h:35,
from /usr/include/flann/flann.hpp:41,
from /usr/include/pcl-1.8/pcl/kdtree/flann.h:50,
from /usr/include/pcl-1.8/pcl/kdtree/kdtree_flann.h:45,
from /home/vinz/catkin_ws/src/lidar_align/include/lidar_align/sensors.h:8,
from /home/vinz/catkin_ws/src/lidar_align/include/lidar_align/loader.h:7,
from /home/vinz/catkin_ws/src/lidar_align/src/loader.cpp:5:
/usr/include/flann/ext/lz4.h:249:72: error: conflicting declaration ‘typedef struct LZ4_streamDecode_t LZ4_streamDecode_t’
typedef struct { unsigned long long table[LZ4_STREAMDECODESIZE_U64]; } LZ4_streamDecode_t;
^~~~~~~~~~~~~~~~~~
In file included from /opt/ros/melodic/include/roslz4/lz4s.h:38:0,
from /opt/ros/melodic/include/rosbag/stream.h:46,
from /opt/ros/melodic/include/rosbag/chunked_file.h:46,
from /opt/ros/melodic/include/rosbag/bag.h:41,
from /home/vinz/catkin_ws/src/lidar_align/src/loader.cpp:2:
/usr/include/lz4.h:249:72: note: previous declaration as ‘typedef struct LZ4_streamDecode_t LZ4_streamDecode_t’
typedef struct { unsigned long long table[LZ4_STREAMDECODESIZE_U64]; } LZ4_streamDecode_t;
^~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/lidar_align.dir/src/loader.cpp.o] Error 1
make[1]: *** [CMakeFiles/lidar_align.dir/all] Error 2
make: *** [all] Error 2
cd /home/vinz/catkin_ws/build/lidar_align; catkin build --get-env lidar_align | catkin env -si  /usr/bin/make --jobserver-fds=6,7 -j; cd -

Sorry for late reply. I have hit this issue before and honestly don't really have a good fix.
The problem is that when you install ros you get two separate and incompatible versions of LZ4. One is used by ros for serialization and the other by the flann kdtree in pcl. It seems only some combinations of OS, workspace and ros versions have this issue. I remember when I hit it on one computer I just went in and hack fixed the flann version by commenting out the functions, though this isn't really a suggested solution.

@ZacharyTaylor Hi, I'm having the same problem here. You mentioned you hack fixed it. Could you please share how you did it?

System: Ubuntu 18.04
ROS: melodic
Reason: /usr/include/lz4.h conflict with /usr/include/flann/ext/lz4.h
I thing this will be fixed in next release version of system or ROS.
But you could try these commands to fix this problem.
sudo mv /usr/include/flann/ext/lz4.h /usr/include/flann/ext/lz4.h.bak
sudo mv /usr/include/flann/ext/lz4hc.h /usr/include/flann/ext/lz4.h.bak

sudo ln -s /usr/include/lz4.h /usr/include/flann/ext/lz4.h
sudo ln -s /usr/include/lz4hc.h /usr/include/flann/ext/lz4hc.h

a temporary fix that worked for us:
In /usr/include/flann/util/serialization.h at the top change the corresponding lines to:
#include "lz4.h"
#include "lz4hc.h"

Thank you very much. Got it working!

System: Ubuntu 18.04
ROS: melodic
Reason: /usr/include/lz4.h conflict with /usr/include/flann/ext/lz4.h
I thing this will be fixed in next release version of system or ROS.
But you could try these commands to fix this problem.
sudo mv /usr/include/flann/ext/lz4.h /usr/include/flann/ext/lz4.h.bak
sudo mv /usr/include/flann/ext/lz4hc.h /usr/include/flann/ext/lz4.hc.bak  (correction at .h to .hc)

sudo ln -s /usr/include/lz4.h /usr/include/flann/ext/lz4.h
sudo ln -s /usr/include/lz4hc.h /usr/include/flann/ext/lz4hc.h

and
https://github.com/ethz-asl/lidar_align/issues/16#issuecomment-505393420
also does works.
thanks to @KevinLADLee  @Eeppii

In case you need a solution that does not require modification of system wide files is the following:
#define LZ4_stream_t LZ4_stream_t_deprecated
#define LZ4_resetStream LZ4_resetStream_deprecated
#define LZ4_createStream LZ4_createStream_deprecated
#define LZ4_freeStream LZ4_freeStream_deprecated
#define LZ4_loadDict LZ4_loadDict_deprecated
#define LZ4_compress_fast_continue LZ4_compress_fast_continue_deprecated
#define LZ4_saveDict LZ4_saveDict_deprecated
#define LZ4_streamDecode_t LZ4_streamDecode_t_deprecated
#define LZ4_compress_continue LZ4_compress_continue_deprecated
#define LZ4_compress_limitedOutput_continue LZ4_compress_limitedOutput_continue_deprecated
#define LZ4_createStreamDecode LZ4_createStreamDecode_deprecated
#define LZ4_freeStreamDecode LZ4_freeStreamDecode_deprecated
#define LZ4_setStreamDecode LZ4_setStreamDecode_deprecated
#define LZ4_decompress_safe_continue LZ4_decompress_safe_continue_deprecated
#define LZ4_decompress_fast_continue LZ4_decompress_fast_continue_deprecated
#include <rosbag/bag.h>
#undef LZ4_stream_t
#undef LZ4_resetStream
#undef LZ4_createStream
#undef LZ4_freeStream
#undef LZ4_loadDict
#undef LZ4_compress_fast_continue
#undef LZ4_saveDict
#undef LZ4_streamDecode_t
#undef LZ4_compress_continue
#undef LZ4_compress_limitedOutput_continue
#undef LZ4_createStreamDecode
#undef LZ4_freeStreamDecode
#undef LZ4_setStreamDecode
#undef LZ4_decompress_safe_continue
#undef LZ4_decompress_fast_continue

I know it's ugly, but modifying system wide files is not ideal sometimes.

In case you need a solution that does not require modification of system wide files is the following:
#define LZ4_stream_t LZ4_stream_t_deprecated
#define LZ4_resetStream LZ4_resetStream_deprecated
#define LZ4_createStream LZ4_createStream_deprecated
#define LZ4_freeStream LZ4_freeStream_deprecated
#define LZ4_loadDict LZ4_loadDict_deprecated
#define LZ4_compress_fast_continue LZ4_compress_fast_continue_deprecated
#define LZ4_saveDict LZ4_saveDict_deprecated
#define LZ4_streamDecode_t LZ4_streamDecode_t_deprecated
#define LZ4_compress_continue LZ4_compress_continue_deprecated
#define LZ4_compress_limitedOutput_continue LZ4_compress_limitedOutput_continue_deprecated
#define LZ4_createStreamDecode LZ4_createStreamDecode_deprecated
#define LZ4_freeStreamDecode LZ4_freeStreamDecode_deprecated
#define LZ4_setStreamDecode LZ4_setStreamDecode_deprecated
#define LZ4_decompress_safe_continue LZ4_decompress_safe_continue_deprecated
#define LZ4_decompress_fast_continue LZ4_decompress_fast_continue_deprecated
#include <rosbag/bag.h>
#undef LZ4_stream_t
#undef LZ4_resetStream
#undef LZ4_createStream
#undef LZ4_freeStream
#undef LZ4_loadDict
#undef LZ4_compress_fast_continue
#undef LZ4_saveDict
#undef LZ4_streamDecode_t
#undef LZ4_compress_continue
#undef LZ4_compress_limitedOutput_continue
#undef LZ4_createStreamDecode
#undef LZ4_freeStreamDecode
#undef LZ4_setStreamDecode
#undef LZ4_decompress_safe_continue
#undef LZ4_decompress_fast_continue

I know it's ugly, but modifying system wide files is not ideal sometimes.

I also see this error, when build my project. completed it as @ KevinLADLee commented on Jun 21, 2019


hwdata: 0.335 -> 0.343

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/vcrhonek/hwdata/releases.
meta.description for hwdata is: "Hardware Database, including Monitors, pci.ids, usb.ids, and video cards"
meta.homepage for hwdata is: "https://github.com/vcrhonek/hwdata"
meta.changelog for hwdata is: ""
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

directory tree listing: https://gist.github.com/f0be26b6045b01cbe392eb03dfd9929d

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

345 total rebuild path(s)

121 package rebuild(s)

121 x86_64-linux rebuild(s)
112 i686-linux rebuild(s)
4 x86_64-darwin rebuild(s)
108 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
adapta-gtk-theme
aircrack-ng
bolt
chrome-gnome-shell
cinnamon.cinnamon-common
cinnamon.cinnamon-control-center
cinnamon.cinnamon-gsettings-overrides
cinnamon.cinnamon-screensaver
cinnamon.cinnamon-session
cinnamon.cinnamon-settings-daemon
colord
colord-gtk
darktable
dropbox-cli
eolie
fprintd
fusionInventory
fwupd
gnome-firmware-updater
gnome-multi-writer
gnome-photos
gnome3.file-roller
gnome3.gnome-books
gnome3.gnome-boxes
gnome3.gnome-color-manager
gnome3.gnome-control-center
gnome3.gnome-disk-utility
gnome3.gnome-documents
gnome3.gnome-photos
gnome3.gnome-session
gnome3.gnome-settings-daemon
gnome3.gnome-shell
gnome3.gnome-software
gnome3.gnome-terminal
gnome3.gnome-tweak-tool
gnome3.gnome-tweaks
gnome3.gnome-user-share
gnome3.gnome_control_center
gnome3.gnome_session
gnome3.gnome_settings_daemon
gnome3.gnome_shell
gnome3.gnome_terminal
gnome3.gpaste
gnome3.mutter
gnome3.mutter334
gnome3.nautilus
gnome3.nautilus-python
gnome3.pomodoro
gnome3.simple-scan
gnome3.tracker-miners

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/4wvrq51h1liqr150hhk0al22g5wdhlsp-hwdata-0.343 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

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

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/4wvrq51h1liqr150hhk0al22g5wdhlsp-hwdata-0.343
ls -la /nix/store/4wvrq51h1liqr150hhk0al22g5wdhlsp-hwdata-0.343/bin

Pre-merge build results
NixPkgs review skipped

Maintainer pings

@ryantm This is missing an update to outputHash.
checking for references to /build/ in /nix/store/4wvrq51h1liqr150hhk0al22g5wdhlsp-hwdata-0.343...
hash mismatch in fixed-output derivation '/nix/store/23wdd0c9ndxzah9srva1pbf2wr7d6h8k-hwdata-0.343':
  wanted: sha256:101lppd1805drwd038b4njr5czzjnqqxf3xlf6v3l22wfwr2cn3l
  got:    sha256:0zxypzwncx2ql06f19wrm315fn7x2lfsrg9fhl3nr4zwvdksf7jw
error: build of '/nix/store/mh3kczw7mh3r7v9zxd1p0mk3mis7cf1r-hwdata-0.343.drv' failed

@ryantm This is missing an update to outputHash.
checking for references to /build/ in /nix/store/4wvrq51h1liqr150hhk0al22g5wdhlsp-hwdata-0.343...
hash mismatch in fixed-output derivation '/nix/store/23wdd0c9ndxzah9srva1pbf2wr7d6h8k-hwdata-0.343':
  wanted: sha256:101lppd1805drwd038b4njr5czzjnqqxf3xlf6v3l22wfwr2cn3l
  got:    sha256:0zxypzwncx2ql06f19wrm315fn7x2lfsrg9fhl3nr4zwvdksf7jw
error: build of '/nix/store/mh3kczw7mh3r7v9zxd1p0mk3mis7cf1r-hwdata-0.343.drv' failed


Not able to install netopeer2: make: *** [Makefile:100: install] Error 1

i am getting the some error while building netopeer2
below is my terminal output
I am using Ubuntu 22.04 LTS, and i have downloaded all the prerequisites for netopeer2
Added the modules in this order libyang->libnetconf2->sysrepo->netopeer2.
Please help
rishi@rishi:~/netopeer2/build$ sudo make install
[ 44%] Built target serverobj
[ 61%] Built target netopeer2-server
[100%] Built target netopeer2-cli
Install the project...
-- Install configuration: "Debug"
-- Up-to-date: /usr/local/share/yang/modules/netopeer2
-- Up-to-date<EMAIL_ADDRESS>-- Up-to-date<EMAIL_ADDRESS>-- Up-to-date<EMAIL_ADDRESS>-- Up-to-date<EMAIL_ADDRESS>-- Up-to-date<EMAIL_ADDRESS>-- Up-to-date<EMAIL_ADDRESS>-- Up-to-date<EMAIL_ADDRESS>-- Up-to-date<EMAIL_ADDRESS>-- Up-to-date<EMAIL_ADDRESS>-- Up-to-date<EMAIL_ADDRESS>-- Up-to-date<EMAIL_ADDRESS>-- Up-to-date<EMAIL_ADDRESS>-- Up-to-date<EMAIL_ADDRESS>-- Up-to-date<EMAIL_ADDRESS>-- Up-to-date<EMAIL_ADDRESS>-- Up-to-date: /usr/local/share/netopeer2/scripts
-- Up-to-date: /usr/local/share/netopeer2/scripts/common.sh
-- Up-to-date: /usr/local/share/netopeer2/scripts/merge_config.sh
-- Up-to-date: /usr/local/share/netopeer2/scripts/remove.sh
-- Up-to-date: /usr/local/share/netopeer2/scripts/setup.sh
-- Up-to-date: /usr/local/share/netopeer2/scripts/merge_hostkey.sh
-- Up-to-date: /usr/local/sbin/netopeer2-server
-- Up-to-date: /usr/local/share/man/man8/netopeer2-server.8
-- Up-to-date: /usr/local/lib/systemd/system/netopeer2-server.service
-- Up-to-date: /etc/pam.d/netopeer2.conf
-- Installing missing sysrepo modules...
-- Generating a new RSA host key "genkey" if not already added...
CMake Error at cmake_install.cmake:141 (message):
scripts/merge_hostkey.sh failed: 1
make: *** [Makefile:100: install] Error 1

Please use the latest devel netopeer2 version or at least take the last commit, some error output should now be printed.


API hooks to detect if a third-party iframe/embed is compliant or not, so first-party apps can show provide fallback options

Per Ben Kelly<EMAIL_ADDRESS>on Wed, 27 Mar 2024 at 15:03 filing here.
Expanding on Adam Gertenbach’s excellent feedback, we’re wondering what options we have as a first-party web app, in the likely scenario that a third-party app doesn’t update their iframe/embeds, and we’re  past the deprecation trail (DT) period with third-party cookies phased out?
We’re concerned about the customer experience and reputation impact to our first-party app, hosting the third-party iframe. We’re hoping for some programmatic hooks or options we can leverage as a first-party, so we can provide some affordance to educate our customers.

For example, you could imagine similar to the Google new sign-in page notice or older Google chrome plug-in crash butter bar — see screenshots below, we show a similar notice for third-party iframes/embeds that are out of compliance or some other experience e.g., break glass, so we have an opportunity to customers and set expectations accordingly.
image.pngimage.png
We wanted to call out this scenario and see if we missed options here we can leverage as this feature rolls out to all chrome users.

Hi @johannhof,

When you say "programmatic hooks", what exactly would you like to learn about a third-party iframe?

We'd like to programmatically know if the third-party moved the newer APIs / changes or not? We don't need to know which ones, just that we can quickly answer what may be causing issues a customer would report.

I'd like to understand better why, as a 1P site owner, you would not be able to know which 3P embeds are broken from testing or user reports and give those the UI treatment you mention in this issue.

it's question of scale and support. We could do this and started from this position for our existing infrastructure. That said, some of the challenges we've seen:

Spending support cycles on things we already have the answer to.
Taking a trust and reputation hit since people generally assume it's the first-party app with issues and open tickets with us versus starting from the third-party.
Every new embed we hear about or people want to try needs a pass from us to confirm whether "it should works" or not.
People reporting things or finding in testing requires they cross the inertia threshold to report (sometimes they just assume the first-party app doesn't work for anything), or you're aware of the third-party (we continue to learn of new third-party embeds).

Considering the amount of third-party experiences that could be an iframe, rather than rely on testing an ever expanding set or waiting for reports, if we can programmatically catch issues like this upfront, it gives us an opportunity to set expectations in the first-party experience accordingly.
Any opportunity we have to reliably know of issues and provide any guidance — even if just, "Hey, you may see X and it's a known issue. Learn more.", our customers have found valuable.
Please let me know what questions you have and many thanks for engaging!

Thanks for the feedback, though I want to be clear that this sounds very difficult to do for a variety of reasons - one being that there's no clear indicator for whether a third party moved to a new API vs. not, another being that this kind of information is separated by the same-origin-policy and thus not available to the embedding party.


[QUESTION] Is FixCursorHold.nvim still required?

The installation instructions still declare FixCursorHold.nvim as a dependency, which has been deprecated two years ago as it is no longer needed.
Is it still required for some obscure reason or does the README need to be updated? I've removed the dependency from my local installation and have not noticed any difference

See https://github.com/antoinemadec/FixCursorHold.nvim/issues/13


Fix ryu installation

Fixing ryu installation, installation instructions are from Ryubook

Can you confirm that this works on Ubuntu 16.04?

Hmm, this is not what it says on the ryu web site, but it seems like it might work.

I read it from Ryubook (Ryu 4.2 official book) and i worked for me


WIP on time sources

Signed-off-by: Adam Dabrowski<EMAIL_ADDRESS>

I think it would be the best to add some kind of TimeSourceFactory and let users choose which time source to use while creating a node.

@pijaro review the new version now - candidate to merge.

lgtm


Add wallpanel to latest

Please add my adapter ioBroker.wallpanel to latest.
This pull request was created by https://www.iobroker.dev 79ffd9b.

RE-CHECK!

Hi, than you for the adapter submission,

Your name replace function goes a bit short ,... https://github.com/xXBJXx/ioBroker.wallpanel/blob/7fb304f444eb03722747b948db212fe8a219735a/build/lib/replaceFunktion.js#L23 maybe check the official one :-) https://github.com/ioBroker/ioBroker.js-controller/blob/master/packages/common/src/lib/common/tools.ts#L54 you get this in adapter.FORBIDDEN_CHARS
Getting the loglevel from that state https://github.com/xXBJXx/ioBroker.wallpanel/blob/main/src/main.ts#L116 must not be accurate, especially not when started on CLI with debug loglevel. But there is no easy way right now to get the real loglevel :-(

Rest looks fine. Please adjust the replace logic and we can merge

Hello Apollon77,

Your name replace function goes a bit short ,...

I don't quite understand this, what should be too short I replace all ä ö ü ß with ae oe ue ss and with /[^a-z0-9]/g all special characters with _.
Only letters and numbers allowed, everything else is replaced by a _

maybe check the official one

// We allow:
// · Ll = lowercase letters
// · Lu = uppercase letters
// · Nd = numbers
// · ".", "_", "-" (common in IDs)
// · "/" (required for designs)
// · " :!#$%&()+=@^{}|~" (for legacy reasons)
//
/** All characters that may not appear in an object ID. */
export const FORBIDDEN_CHARS = /[^._\-/ :!#$%&()+=@^{}|~\p{Ll}\p{Lu}\p{Nd}]+/gu;

I don't understand that, above in We allow are all things that are allowed and below in the regEx FORBIDDEN_CHARS then again FORBIDDEN_CHARS should be things that are not allowed or am I wrong there

The FORBIDDEN_CHARS lists basically anything which is allowed but then it is all "negated" with the first ^ in the character group, so matches all characters except te listed allowed ones. When you are sure that all characters allowed by the wallpanel devices are the normal ones then your regex might be ok ... else the official one is "the better"

just tried again to replace the special characters with the FORBIDDEN_CHARS and what can I say, it doesn't really work with it was only *<>?,;[] replaced all other characters stayed there with /[^a-z0-9]/ was all replaced

Formally the other characters are allowed, but maybe I did not saw something ... so which replace you like to keep?

I would leave the method that is now in there so far I have had no problems.

Then welcome in the repository


Fixes DiscoveryViewModelTest.testClearingPages

how
The clearPages output Emits a list of pages that should be cleared of all their content. which translates to all of the pages but the current one. Since we got rid of the last sort, our indices went from [0,1,2,3,4] to [0,1,2,3]. Doing this.vm.inputs.discoveryPagerAdapterSetPrimaryPage(null, 4) is an illegal condition since position 4 doesn't exist and it will never get "cleared" because it doesn't actually exist.

 Remove Most Funded from sorts


Analytics access

Motivation and context

Checkbox for granting access to /analytics
How has this been tested?

Checklist

[ ] I submit my changes into the develop branch
[ ] I have created a changelog fragment
[ ] I have updated the documentation accordingly
[ ] I have added tests to cover my changes
[ ] I have linked related issues (see GitHub docs)
[ ] I have increased versions of npm packages if it is necessary
(cvat-canvas,
cvat-core,
cvat-data and
cvat-ui)

License

[ ] I submit my code changes under the same MIT License that covers the project.
Feel free to contact the maintainers if that's a concern.

Summary by CodeRabbit
Release Notes

New Features

Introduced a new property, hasAnalyticsAccess, in user profiles to manage access to analytics features.
Expanded criteria for displaying the "Analytics" button in the header to include users with analytics access.

Bug Fixes

Improved permission checks to include hasAnalyticsAccess, enhancing access control for analytics features.

Documentation

Updated inline admin interface for user profiles to allow direct editing of the hasAnalyticsAccess field.

These updates enhance user experience by providing better access management and visibility of analytics features.

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

Project coverage is 74.10%. Comparing base (1285858) to head (c891cd0).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #8509   +/-   ##
========================================
  Coverage    74.09%   74.10%
========================================
  Files          396      396
  Lines        42768    42778   +10
  Branches      3897     3897
========================================
+ Hits         31691    31701   +10
  Misses       11077    11077

Components
Coverage Δ

cvat-ui
78.75% <100.00%> (+<0.01%)
:arrow_up:

cvat-server
70.09% <100.00%> (+0.01%)
:arrow_up:


inital commit with a working implementation

This PR implements reference validation - a new feature whereby lightbeam validate will attempt to resolve Reference properties within a payload by first looking up the natural key values in local JSONL files for the referenced resource ("local references"), and if none are found, then doing a GET against the Ed-Fi API with the same natural key values ("remote references"). If a given reference is neither local nor remote, the payload will fail validation.
Because this feature can be slow (see comment 1 below), by default it is disabled. This is achieved by adding a new optional structure in lightbeam.yaml as follows:
validate:
  methods:
    - schema # checks that payloads conform to the Swagger definitions from the API
    - descriptors # checks that descriptor values are either locally-defined or exist in the remote API
    - uniqueness # checks that local payloads are unique by the required property values
    - references # NEW checks that references resolve

(In addition to the above, one more basic validation method is done before any of these: that the payload is valid JSON. This validation method cannnot be disabled because all the others require a valid JSON payload.) Default validate.methods (if unspecified by the user in lightbeam.yaml are ["schema", "descriptors", "uniqueness"].
I've tested the functionality and it works, however I'm leaving this PR as a draft for several reasons:

The feature is slow - due to the serial nature of lookups, it took 3+ minutes to validate the schoolReferences and studentReferences in 954 studentSchoolAssociation payloads. I have a few ideas for how to improve performance, but I'm unsure how much effort to invest in this optimization work.

Because of 1 above, it seems prudent to try to allow reference validation to fail quickly, when some user-specifiable threshold is reached. I propose a configuration structure (in lightbeam.yaml) like this:

validate:
  references:
    max_failures: 10 # stop testing after 10 failed payloads ("fail fast")

An open question is whether a default value of 10 max_failures is reasonable.
Another open question is whether we should also "succeed fast": if

An unresolved issue is how to handle "typed" resources. For example, in studentEducationOrganizationAssociation the educationOrganizationReference property may be

{
  "educationOrganizationId": 255901,
  "link": {
    "rel": "LocalEducationAgency",
    "href": "/ed-fi/localEducationAgencies/5ec280c188db4f0bae9ef60e2ae5c231"
  }
}

or
{
  "educationOrganizationId": 255901044,
  "link": {
    "rel": "School",
    "href": "/ed-fi/school/7381540c0eff4b778d0399ce8b397c9a"
  }
}

Currently, this reference validation implementation determines what resource is being referenced based on the reference property name, i.e., schoolReference must be a reference to a school. For educationOrganizationReference, in principle one could derive the resource from link.rel which more specifically denotes the type of educationOrganization (localEducationAgency, school, etc.). However lightbeam JSON payloads created with earthmover often omit the link property and instead simply look like
{
  "educationOrganizationId": 255901044
}

from where it is impossible to determine what type of educationOrganization is being referenced. Possible solutions might be

having lightbeam know internally which Ed-Fi resources are members of what "type" and iteratively looks for the referenced values across all of them - so first look for schools with schoolId=255901, then for localEducationAgencies with localEducationAgencyId=255901, etc.
requiring link.rel (at least) to be present in JSONL payloads when using reference validation

I welcome feedback on the above questions and this PR in general.

Per the team discussion yesterday, I've made further changes to this branch, including:

performance improvements on local references checks: load relevant properties of relevant ref'd endpoints from local files into an in-memory cache once, rather than looping over and reading files with every payload
performance improvements on remote reference checks: (asynchronously) GETting remote references in batches and caching responses
implement both "fail fast" and "succeed fast" features

Details including configuration options can be found in the updated README.
I've tested this, it works and is significantly faster (same processing of ~960 stuSchoolAssns that took 3+ mins before marking the above performance changes now takes <1.5 mins). Marking the PR ready for review.


monom repo coverage is not working properly

OS : win 10`
vs code version : 1.71.2
Flutter Coverage version  : 0.0.4

settings.json
  "flutter-coverage.coverageFilePaths": ["coverage", "packages/**/coverage"]

related to #5
code to re produce  https://github.com/maxzod/queen
it should group each package coverage by the package

instead it group them all in single group named after the root directory file name

by clicking on any one of them it cant open the source of the selected file and show this message

I'm fairly certain this is due to the fact that in the coverage files generated by 'flutter test --coverage' use relative file paths.  If you look in the lcov files, each file record starts with 'lib/<rest_of_file_name>'.
I'm currently using a customized version of a dart package called 'combine_coverage' to generate an lcov file for my entire monorepo and have it working with this extension.  In the lcov files generated there, it includes the '/packages/<package_name>/' in the relative file path which fixes both the issues of all tests being grouped into lib in the extension display and the editor not being able to find the file.
I would definitely prefer monorepo support in this extension though so I don't have to run extra commands to get my coverage, but it works for now.  Hope this helps!

Although this issue is rather old, I wanted to add that for me, it works!

I have the same extension version and my coverageFilePath setting is identical.

indeed it works now  ,
thanks , @xeladu


Social login doesn't work

Using exact same stormpath.yml in this app and express-stormpath-sample-project. There I get a Social Login button, here I don't.

It seems that Stormpath broke their React library... so now you can't do social logins.
And, it has been broken for a month or more.
Anyways, the older version DOES work. Just use react-stormpath 1.3.3.
The commit of this project that DOES work as expected is:
9c99f365a404bf1f0aefa3d1ada5e02097496bc4
So feel free to try there.

I'll be honest.. this makes me question using Stormpath and instead use Auth0.
If you can't rely on their libraries working, how can you put your entire production using their login services? :(


Issue with testing nsrllookup

I'm using python 3.7 and tried to write the command
sudo docker-compose -f docker-compose.build.yml up --build api-test &&  docker-compose -f docker-compose.build.yml rm -fsv
Building svr-test

and this is what I got

Hi, this is very likely an issue with your docker installation. Please use your favourite search engine to find a solution.


Add autoCloseable field to ApiTypeInfo and corresponding tests

Signed-off-by: Rb Krishna<EMAIL_ADDRESS>

it needs to work with java.lang.AutoCloseable

I was having the same doubt. Can you let me know how I can do that, I'm a bit new to the vertx-codegen project 😅

it seems quite obvious that you need to use java.lang.AutoCloseable as type

are you going to finish this PR or should we close it right away ?

have you signed the Eclipse Contributor Agreement @krishnarb3 ?

@krishnarb3 actually we should have this on ClassTypeInfo and not ApiTypeInfo

but I think for now it will be ok


Length to str conversion

Description
Convert a length to a string.
I assume we'd convert the floating-point part as a regular float, and then add the trailing unit.
One could add the unit itself as a parameter to the str(..) call, to allow the user more control over their conversions.
Use Case
logging positions of generated content (though dependent on RFC 5), and any kind of string manipulations on length.

Yes that would work! Though the documentation says:

This function is for debugging purposes. Its output should not be considered stable and may change at any time!

So I don't think the two of them (that is str(l) and repr(l)) fulfill quite the same needs?

Hm. I guess that's a valid point, so maybe str(length) should just return its current repr output.

If https://github.com/typst/typst/pull/790 were merged you can also do l.cm()+"cm" or something.

#790 was merged.


Improvement: Setup packaging for project - single binary distribution

A user should be able to download a release and be able to distribute that binary, while maintaining operability thereof.
Packaging should be configured and deployed to achieve the above.

Realistically, a single package would be best.

https://pyinstaller.org/en/stable/usage.html

Even on first use the user will need to download the appropriate models for transcription and binaries for web/ebook conversion.
Most likely others as well for marker.
When it was just pyannote at 20/30mb thats whatever, but now its several gigs.
When the project hits a v1.0 release I will release docker images with everything downloaded already/instructions on where to place the models so for those interested they can download a singular dockerfile that will let them build an 'offline' image of it.


Fix installation text

Thanks for the PR 👍🏻 However, I've now updated this for v2.0.0, so going to close this PR 🙂


BarcodesDetected fires twice upon reading the barcode - .NET MAUI android app

I've added in the barcode scanning code to my .NET Maui android application, followed all of the instructions, and the BarcodesDetected event fires twice upon scanning.
What I need to do is capture the value, and then navigate to another page (pass the result value). I have two windows that open as noted above, it fires twice.
Is there a way to have it fire only once?
Thank you.
IDE: Visual Studio 2022 V. 17.4.5
Platform Target Frameworks: .NET FW 4.7, Support 7.0
Android: Android 12.0 API 31
NuGet Packages: Latest ZXing.NET.Maui packages
Affected Devices: Using Samsung S10 phone

Same problem.
Framework .net 7.0

I solved this problem with a check on a boolean variable. On the first call, I check if this variable is false, and then I set it to true, and I no longer process subsequent requests.

Thanks for this.


Issue108: Implement PatternDayTraderMarginModel and its Unit Test

This was merged (with edits) in https://github.com/QuantConnect/Lean/commit/770dd714bdc22e9a4dd2a01cd77ea082f56734fc


bug/checkbox

the extrainfo or checkboxcomponent does not check when clicked
it might change color on click

fixed when changing componentlib in feature/change-componentlib


User-specified offset

I would like to integrate hexyl in GDB using the python API. Therefore it would be useful if I could supply a different offset, so that input offsets in hexyl matches with the addresses in virtual memory in the process.

This is what I currently came up with:
class Hexyl(gdb.Command):
    """
       Run hexyl on provided symbol/address. Takes the number of bytes to print as an optional parameter
    """
    def __init__(self):
        super(Hexyl, self).__init__("hexyil", gdb.COMMAND_USER)
        self.long_int = gdb.lookup_type("long")

    def invoke(self, arg, from_tty):
        argv = gdb.string_to_argv(arg)
        count = 0x100
        if argv and len(argv) > 0:
            address = argv[0]
            if len(argv) > 1:
                count = argv[1]
        else:
            address = "$sp"

        with tempfile.NamedTemporaryFile(suffix='.bin', delete=True) as f:
            gdb.execute("dump binary memory %s %s (%s + %s)" % (f.name, address, address, count))
            subprocess.call(["hexyl", f.name])

        return False

Thank you very much for your feedback! Integrating hexyl in gdb sounds like a very cool idea!
Can you go into a little bit more detail what kind of feature you would like to see in hexyl to make this easier?

A parameter that allows to add an offset to the number reported by hexyl on the left-side would be sufficient. This way the addresses by gdb would match up with hexyl offsets.

Ok, so this would be similar to xxds -o <offset> option. Sounds good to me!

So, if I understand it correctly, this is just a display option, right? i.e. hexyl still reads the binary from the start of the file, but it display them as if the file is started from a certain virtual address.
For example:
File content: [ 7f 45 4c 46 02 01 01 00 ]
$ hexyl foo
┌────────┬─────────────────────────┬─────────────────────────┬────────┬────────┐
│00000000│ 7f 45 4c 46 02 01 01 00 ┊                         │•ELF•••0┊        │
└────────┴─────────────────────────┴─────────────────────────┴────────┴────────┘
$ hexyl --display-offset 0x408000 foo  # just for example
┌────────┬─────────────────────────┬─────────────────────────┬────────┬────────┐
│00408000│ 7f 45 4c 46 02 01 01 00 ┊                         │•ELF•••0┊        │
└────────┴─────────────────────────┴─────────────────────────┴────────┴────────┘

closed via #72 by @tommilligan


drivers/i2c:  Reset the i2c for STM32F1 series to enter master mode properly

This pr fixes the I2C issue mentioned in #33196
Recreated a pr to squash the commits in #33900.
Signed-off-by: Yong Cong Sin<EMAIL_ADDRESS>

ping @erwango @FRASTM @tagunil

I don't understand, what commit message should I fix?

I don't understand, what commit message should I fix?

Look at details in Compliance checks that are reported "Failed":
Error: See https://docs.zephyrproject.org/latest/contribute/#commit-guidelines for more details

571f38edd1bf63607252cf0f9eefe4ad1d50c6b5: author email (Yong Cong Sin<EMAIL_ADDRESS>needs to match one of the signed-off-by entries.
Error: See https://docs.zephyrproject.org/latest/contribute/#commit-guidelines for more details

1: UC2 Body does not contain a 'Signed-off-by:' line
1: UC5 Title exceeds max length (76>75): "drivers/i2c:  Reset the i2c for STM32F1 series to enter master mode properly"
1: UC6 Body has no content, should at least have 1 line.
3: B6 Body message is missing
Error: Process completed with exit code 1.

I see, is there a way to fix the commit message without doing a new PR?

Yes, you just need to amend your change.
cf git amend or click the amend button on git giu

EDIT: I've already deleted the repo that has that commit, I think I have to recreate a new PR

Ok, this is getting harder :-).
So, FYI, you don't need to create a new PR:
In theory, you just need to use the same branch name and force push git -f <your_repo> <branch_name>.
Last, it is a good practice to avoid using master as branch name to push pull request.
Also, it is recommended not to delete branch before the PR is merged...

Thanks for the patience and guidance, I will take note of these next time.
Will have to find some free time to learn how to force push something.

Can't seem to have the deleted branch back, created yet another one (#34241) and therefore closing this, sorry for 'littering' the PR section!


Add word 'Solace'

Add all the definitions of Solace in a file named Solace_noun.json in folder S
Add all the definitions of Solace in a file named Solace_verb.json in folder S

I'll work on this issue

i am interested for this issue


Various cleanups

[x] Remove snake.html file
[x] Remove jQuery file
[x] #44
[x] #45
[x] Remove assets folder to only have css and js inside the client dir

Fixed by #110


edit sentence in README.md

"Aim of this repo" -> "This repo aims to": changed sentence format to remove nominalized form of the verb "aim"
The expression " give you a feeling about how...." was used in the previous sentence. The expression was substituted with "help you keep up with .." to remove monotony.

thanks@melongbob


feature: use cypress, browserstack, github workflows instead of travis

Alright, we cool with merging?


bdc subcommnad was missing in few places

bdc subcommnad was missing in few places

@rl-msft : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@rl-msft Thanks for this update, but something happened in your PR where it is pulling in thousands of files rather than just the updates you intended. I apologize for the inconvenience, but could you make these changes again in a new PR and we'll see if that corrects the problem. Let me know if you have any questions. @MikeRayMSFT FYI.


NavMeshAgent Research

https://www.youtube.com/watch?v=dHYcio6fRI4 NavMeshAgent Avoidance in Depth - 5 Key Takeaways for Optimal Avoidance | AI Series Part 32

https://github.com/jconstable/HexGridManager


node 0.12.8 python 2.7 mdb 3.2 ubuntu 14.03: ss don't works

node 0.12.8 python 2.7 mongodb 3.2 ubuntu 14.03 doesn't works the installation of superscript last version.

This is not very helpful, and you have created 5 issues that are almost identical. Perhaps you should have a conversation in the slack channel to help walk though the issues you are seeing. I would also recommend setting up superscript locally (preferably on a mac) to start then try it again on ubuntu.


remove_unused_eff_variables_in_CompAbilityUserMagic

IDE shows these are not being used and a search including the xml files shows nothing as well.

Old way of doing things that Ive removed


Please provide a text guide to creating wardrobe assets for UMA 2.5

I have followed the video tutorials and what document that is available to create my first asset for UMA 2.5. However, after working through this and creating both a slot and wardrobe recipe, and then adding the recipe to an UMADynamicCharacterAvatar, nothing shows up in the scene on run. There are no error messages or helpful feedback to show what is missing from my asset that causes it not to add to the character mesh and become part of the UMA avatar.
I would love to start creating assets for the UMA 2.5 system, but I cannot find a complete and helpful documentation that shows all the required steps going from Blender with a base model -> importing into Unity -> creating the UMA specific components like recipes, slots, overlays as are needed to make a working asset in Unity.
UMA is a very nice system for modular assets and characters, but I think the lack of assets and help to get new users started are a barrier to making this a more popular character system in the Unity Asset Store and with general users.
Please provide a non-video, text-based documentation and tutorial that walks through creating assets new meshes or from taking a piece of the base character asset and scaling up (useful for shirts and pants, etc).
Thanks!

Added Content Creation PDF to UMA asset folder.

Hey, I'm encountering an issue and wondering if there is a way to fix this-
I'm using UMA to create a customizable character, the character has all its mesh slots in place and several wardrobe recipes, the mesh is being exported from Blender as an FBX. During my workflow I do new FBX exports and overwrite the current FBX file in my unity project, although the FBX itself seems to update correctly to the new export, the UMA character does not seem to receive the updates. For example: some of the meshes have blendshapes exported with them, in blender I add a new blendshape to that mash and re-export the FBX file, going back into unity the exported mesh/FBX shows the new blendshape but the UMA character (UMARenderer) doesn't show the new blendshape, anyone have this issue or know of any solution?

The UMA character is built from mesh parts called "slots".  To get the updated blendshapes, you have to regenerate the slots.

You may want to join the discord for a better method of communicating with devs and members:
https://discord.gg/5b39djg

Thank you so much this helped me a lot, I joined the discord as well


How to handle if we have multiple DataGridViw controls on window and we have to loop through each cell element in secod datagridview.

Just giving heading as a problem statement does not help. What have you already tried and what is not working.


Future plans on implementation of query verifiers

I am currently trying to test queries in offline settings.
While looking into verifier.py I realized few functions(q2c, q3, q6a, q6b/ q7~10) haven't been implemented yet.
Would it be possible to know any future plans for those verifier functions, if any?
Best regards

Thanks for the question!  It looks like a few of the query verifications didn't make it over to the release version because of various code cleanup issues.  I'll look at getting them ported over as quickly as possible.  (I just pushed q2c, but will need to do some testing on it to make sure it's still compatible with the released version.)


Fixed Error

I got the following error message and thus I tried to fix it by referring other dune files.
File "dune", line 5, characters 7-22:
5 |   (pps ppx_deriving.eq ppx_deriving.show)))
^^^^^^^^^^^^^^^
Hint: try:
dune external-lib-deps --missing @runtest
make: *** [Makefile:4: test] Error 1

This was fixed by updating the test runner: https://github.com/exercism/ocaml-test-runner/pull/33


Tag 0.2.1

Primarily addressing critical error reported in #15, which is currently preventing successful execution of participant level analysis with FreeSurfer parcellation schemes.

@chrisfilo: What's the procedure for getting updates pulled to OpenNeuro?

Make a release on GitHub ( or push a tag), wait until CircleCi pushes a new image to Docker Hub and then email or message me to update the app on OpenNeuro.

@chrisfilo @ddshin: Version 0.2.1 is now up on Docker Hub.

Deployed!
On Sun, Sep 17, 2017 at 5:49 PM, Robert Smith<EMAIL_ADDRESS>wrote:

@chrisfilo https://github.com/chrisfilo @ddshin
https://github.com/ddshin: Version 0.2.1 is now up on Docker Hub.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/BIDS-Apps/MRtrix3_connectome/pull/18#issuecomment-330106365,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAOkp09tp-udd6hINh0V67lc37bCR3NWks5sjb4MgaJpZM4PYV9n
.

@Lestropie - Thanks... but I am getting an error at the very beginning. Please see below:

ARGH... That'll teach me to test the script using test data! CircleCI's test limitations are a real bummer. I'll need to run through the full pipeline on full data to make sure that's the only remaining glitch (it's the result of needing to tow along various MRtrix3 updates as I make changes / fixes to this script)... gimme a couple of days...

No problem. Happy to iterate as many times as necessary... so long as we converge to a solution.

Hi Robert,
Checking in to find out when we can get a newer release for testing. Thanks.
David
On Sep 18, 2017 12:56 AM, "Robert Smith"<EMAIL_ADDRESS>wrote:
ARGH... That'll teach me to test the script using test data! CircleCI's
test limitations are a real bummer. I'll need to run through the full
pipeline on full data to make sure that's the only remaining glitch (it's
the result of needing to tow along various MRtrix3 updates as I make
changes / fixes to this script)... gimme a couple of days...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/BIDS-Apps/MRtrix3_connectome/pull/18#issuecomment-330150939,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJfYvAvybOSotMDhq9gQMqaYltARs9acks5sjiJDgaJpZM4PYV9n
.

@ddshin: The necessary changes have been made over at #20, and it runs though the test data OK; but I want to run through the script with non-preprocessed data and a FreeSurfer parcellation to make sure that there aren't any remaining gotchas. Because I've had to make changes to MRtrix3 to support that script, and these changes then get merged with other MRtrix3 changes, I then have to update this script to be compatible with those other MRtrix3 changes as well. Once I've done that test, I'll commit and tag, and it then takes a half day or so to appear on Docker Hub.


light-java performance

I was looking at the web framework benchmark (https://www.techempower.com/benchmarks/previews/round14). light-java has really good performances in Fortune & Single Query. But in Multiple Queries & Data Updates light-java's performances are less than exemplary, falling behind even some Ruby & Python frameworks. Any particular reasons why that is so?

@selforganized Thanks for the link. I created these test cases in a weekend and never test them myself as I am not familiar with the toolset and environment. Multi-Queries/Updates need some optimization to maximize utilization of all cores(I don't know how many cores they have). The plaintext and json results are surprise for me as the numbers are lower than my laptop. Fortunately, there are logs available and I am looking into it now.

Submitted a pull request to tune the performance of multiple queries/updates but there are still a lot of things to do. I just learned that multiple updates batch is allowed from the spec. Need to read the spec. carefully:)

This should be addressed in round 15 as a new pull request has been submitted to techempower.


Understanding the directory structure

Hey Peters!
I managed to successfully import this project in eclipse but it then further divided in 4 separate projects:

alfresco-bulk-import
alfresco-bulk-import-api
alfresco-bulk-import-parent
alfresco-bulk-import-source

Basically I want to change into some UI and procedure like:

showing the progress of files uploading
showing the files failed during operation

It would be great if I understand which project(s) I need to play with. Also after code editing, the build order in which I would get a right .amp and .war files. Also the goals that I need to assign each project.
Thanks in advance.

The mailing list would be a better place for this discussion - would you mind reposting there?  Thanks!


tap method blocks the main thread

It should create two subscriptions, it rather creates one subscription bcoz the thread is blocked:
shouldn't start a new thread here? https://github.com/Einabit/client.java/blob/main/src/main/java/com/einabit/client/EinabitClient.java#L87-L90
sample code:
import com.einabit.client.EinabitClient;
import com.einabit.client.EinabitServerListener;

public class Main {

  private static final String[] VARIABLES = {"temp1", "crg1"};
  private static final String ENV_HOST = "HOST";

  public static void main(String[] args) {

    final EinabitClient client = EinabitClient.builder().host(System.getenv(ENV_HOST)).build();

    for (String auxvarname: VARIABLES) {

      client.tap(auxvarname, new EinabitServerListener () {
        @Override
        public void onSubscribe(String auxval) {
          System.out.println(auxvarname + " updated, value: " + auxval);
        }
      });
      System.out.println("Successfully subscribed to " + auxvarname);
    }
  }
}

expected output
demo-java-postgre-sandbox-1      | Server started
demo-java-postgre-sandbox-1      | New connection started
demo-java-postgre-sandbox-1      | Received command tap,temp1
demo-java-postgre-sandbox-1      | New connection started
demo-java-postgre-sandbox-1      | Received command tap,crg1
demo-java-postgre-application-1  | Successfully subscribed to temp1
demo-java-postgre-application-1  | Successfully subscribed to crg1
demo-java-postgre-application-1  | temp1 updated, value:<PHONE_NUMBER>941,2
demo-java-postgre-application-1  | temp1 updated, value:<PHONE_NUMBER>141,1
demo-java-postgre-application-1  | crg1 updated, value:<PHONE_NUMBER>141,3
demo-java-postgre-application-1  | crg1 updated, value:<PHONE_NUMBER>141,3
demo-java-postgre-application-1  | temp1 updated, value:<PHONE_NUMBER>141,1

received output
demo-java-postgre-sandbox-1      | Server started
demo-java-postgre-sandbox-1      | New connection started
demo-java-postgre-sandbox-1      | Received command tap,temp1
demo-java-postgre-application-1  | temp1 updated, value:<PHONE_NUMBER>941,2
demo-java-postgre-application-1  | temp1 updated, value:<PHONE_NUMBER>141,1
demo-java-postgre-application-1  | temp1 updated, value:<PHONE_NUMBER>542,2
demo-java-postgre-application-1  | temp1 updated, value:<PHONE_NUMBER>942,1
demo-java-postgre-application-1  | temp1 updated, value:<PHONE_NUMBER>543,2
demo-java-postgre-application-1  | temp1 updated, value:<PHONE_NUMBER>945,1
demo-java-postgre-application-1  | temp1 updated, value:<PHONE_NUMBER>548,2
demo-java-postgre-application-1  | temp1 updated, value:<PHONE_NUMBER>749,3
... it never releases main thread

if useful
docker-compose.yml
version: "3.9"
services:
  application:
    build:
      context: app/
      dockerfile: Dockerfile.app
    environment:
      HOST: sandbox
    depends_on:
      - sandbox
  sandbox:
    image: einabit/sandbox
    environment:
      CONFIG: |
        crg1:
          value:
            min: 20
            max: 40
            step: 2
          interval:
            ms: 1200
            skip: .5
        temp1:
          value:
            min: 1
            max: 50
            step: 1
          interval:
            ms: 200
            skip: .3

Should get fixed by https://github.com/Einabit/client.java/pull/5

closed by #5


Simplify RpcClient

I'm wondering if we can simplify the client usage. Since every request should have it's own queue and should be cleaned up after every request, I'm thinking we should modify this method in rpc_client.rb
  def remote_call(remote_method, params)
    start
    correlation_id = SecureRandom.uuid
    params = self.class.before_request.call(params) if self.class.before_request
    publish(correlation_id: correlation_id, method: remote_method, params: params.rename_keys("_", "-"))
    wait_for_result(correlation_id)
  ensure
    @channel.close
  end

Then you can use the client like this
  foo_client = FooClient.new
  foo_client.remote_call(:index, {})

Not need to call start or client.close. And it will account for closing the channel after an exception is raised on Exception::RpcClientTimeout

Ok I'll give that a shot then.

You just reinvented gen:call, which is what gen_server:call (GenServer.call in Elixir) uses internally:
 try erlang:monitor(process, Process) of
	Mref ->
	    %% If the monitor/2 call failed to set up a connection to a
	    %% remote node, we don't want the '!' operator to attempt
	    %% to set up the connection again. (If the monitor/2 call
	    %% failed due to an expired timeout, '!' too would probably
	    %% have to wait for the timeout to expire.) Therefore,
	    %% use erlang:send/3 with the 'noconnect' option so that it
	    %% will fail immediately if there is no connection to the
	    %% remote node.

	    catch erlang:send(Process, {Label, {self(), Mref}, Request},
		  [noconnect]),
	    receive
		{Mref, Reply} ->
		    erlang:demonitor(Mref, [flush]),
		    {ok, Reply};
		{'DOWN', Mref, _, _, noconnection} ->
		    exit({nodedown, Node});
		{'DOWN', Mref, _, _, Reason} ->
		    exit(Reason)
	    after Timeout ->
		    erlang:demonitor(Mref),
		    receive
			{'DOWN', Mref, _, _, _} -> true
		    after 0 -> true
		    end,
		    exit(timeout)
	    end

Mref = correlation_id
erlang:send = publish
receive ... after Timeout = wait_for_result

Improved by #27


Postgres transport: "relation "dbo.wolverine_incoming_envelopes" does not exist" even when not using dbo.

Describe the bug
Using postgres transport, after sending a command my console continues to display errors:
MessageText: relation "dbo.wolverine_incoming_envelopes" does not exist
To Reproduce

Configure a "host" console application:

            options.Durability.Mode = DurabilityMode.Solo;
            options.DefaultExecutionTimeout = TimeSpan.FromSeconds(90);

            var connectionString = GetConnectionString(dbName);
            options.UsePostgresqlPersistenceAndTransport(connectionString, transportSchema: "compounderplus")
                .AutoProvision()
                .AutoPurgeOnStartup(); //May not want this in a real environment, but useful while developing
            options.PublishAllMessages().ToPostgresqlQueue("ui");
            options.ListenToPostgresqlQueue("api");

Configure your "ui" application:

            options.Durability.Mode = DurabilityMode.Solo;
            options.DefaultExecutionTimeout = TimeSpan.FromSeconds(90);

            var connectionString = GetConnectionString(dbName);
            options.UsePostgresqlPersistenceAndTransport(connectionString, transportSchema: "my application")
                .AutoProvision();
            options.PublishAllMessages().ToPostgresqlQueue("api");
            options.ListenToPostgresqlQueue("ui");

Have a simple command shared by both, and a handler in the host application.
Send a command to the host:

var @command = new SampleCommand();
await host.SendAsync(@command);

Observe that the handler IS called correctly and executed.
Observe the console in the client application displays errors repeating every second or so.

Expected behavior
I'd expect the client to send the command and complete work without error.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS (Windows 11)

Additional context
Even though I specified the transportSchema, the error mentions "dbo".

@JakeStevenson Finally getting to work on this today and there's some egg on my face. Apparently never got tested using a separate schema name from the envelope persistence, or maybe that got broken. Gotta push this to a client now too.
Fix coming, but it will be in 3.0-alpha/rc-1

@JakeStevenson After a touch more investigation, the postgresql transport was tested harder in combination with Marten, and that's partially how this leaked through.


base.lua: fix tree folding lookup on missing keys.

Since _G.fold is generic, it can't tell whether the function it
calls will try to do something illegal with the values it is
passed. So, it's possible to get a stack dump with:
$ lua -lstd

x = tree.new ()
return x[{1,2}]
because the second fold iteration calls _G.op["[]"] (nil, 2)' when there is no match from the earlier _G.op["[]"] ({}, 1)'.
The easiest way to prevent that is in the operator function
itself.

src/base.lua (op["[]"]): Don't try to take the index of a
non-table.

Pity that this fix spoils the symmetry of the code :( Maybe there's a cleaner way to fix the bug?  I poked around the relevant code in lua-stdlib for half an hour and couldn't find anything that wouldn't impact the general case, but this patch still feels a little like papering over the cracks for this one corner case.  None-the-less, have Lua dump stack when looking for a table key with more than two elements not present in the tree being searched (per the example in the commit log above) is a real bug, and was breaking my syntax highlighter until I applied this patch.


Adding a space at the end of a redirect source address makes the rule fail

Before opening, please confirm:

[X] I have checked to see if my question is addressed in the FAQ.
[X] I have searched for duplicate or closed issues.
[X] I have read the guide for submitting bug reports.
[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

App Id
No response
Region
ca-central-1
Amplify Console feature
Redirects
Describe the bug
In the Amplify console Rewrites & redirects section, rules are not trimmed when entered. In particular, if a space is inadvertently added add the end of a source address, then that rewrite rule will fail. This was observed on the recommended SPA rewrite rule </^[^.]+$\|\.(?!(css\|gif\|ico\|jpg\|js\|png\|txt\|svg\|woff\|woff2\|ttf\|map\|json)$)([^.]+$)/>  (notice the space at the end).
Expected behavior
The redirect rule should forward normal URLS like /about, /settings, etc. to the desired source address. This does not occur if there is a space character at the end of the source address.
Reproduction steps

Add a rewrite rule with a space character at the end (I have only tested this with the recommended SPA redirect source address).
Test it!

Build Settings
No response
Additional information
No response

Hi @tmoran-stenoa following up on this issue. I'm able to reproduce this issue, if I have a space at the end of my Rewrites as you have mentioned. I'm discussing this with the team and leaving it as a bug and will follow up soon.
Thanks!


[Docs] The return type of DATE_SUB is wrong

File: /docs/sql-reference/sql-functions/date-time-functions/date_sub.md

The return type of DATE_SUB is INT in the docs. It's wrong.
The data type of the first parameter of DATE_ADD and DATE_SUB should support both DATE and DATETIME, not only DATETIME.

maybe we should check the detail.

fixed in #3614


Improving macOS support

I've been using ONNX MLIR on macOS 10.15.6 for a few weeks now.
Basic functionality works correctly on my machine.
It looks like macOS is already supported but there are few areas which I can do to improve macOS support.
The following are my ideas.

[ ] Add macOS CI pipeline

If it's ok, I'll start working on it soon.

Hi @mshr-h thanks for reaching out!
Some of us use macOS as our primary development platform so using onnx-mlir on macOS should be supported most of the time (however, as you obviously noted, it does break from time to time because we don't have CI testing for it). I'm fine with the proposed work items; as for

Add macOS CI pipeline,

could you make it happen on Travis?

could you make it happen on Travis?
Ok.

10.15.5 seems to be the latest version of OSX that Travis has. I can add that to our TravisCI build if there is a consensus.

Here is the macOS versions which is supported by Travis.
https://docs.travis-ci.com/user/reference/osx#jdk-and-macos
There are two type of the latest osx_image, osx_image: xcode12u and osx_image: xcode12.
I'm not sure which one should be used for onnx-mlir.

I looked at README and I noticed that there is already a chapter Installation on UNIX which include macOS installation.
So we don't need to do Add build instruction on macOS to document.

@mshr-h to add travis support for osx, you'll need to have:

A docker file for building dependent software (mostly llvm/mlir like here: https://github.com/onnx/onnx-mlir/blob/master/docker/prereq.amd64.Dockerfile), we call this docker image prereq image.
You'll need another much simpler dockerfile using the prereq image as a starting point to build onnx-mlir (like this one: https://github.com/onnx/onnx-mlir/blob/master/docker/x86.Dockerfile). The second image is used to build onnx-mlir every time Travis-CI is invoked.

This way, we effectively re-use llvm/mlir build across multiple Travis-CI runs, saving time & compute resources. The prereq image needs to be uploaded to docker hub (https://hub.docker.com/r/onnxmlirczar/onnx-mlir-llvmimage) once it's built, in order for Travis to access it and I can help you with the upload if you show me the dockerfile.

@tjingrant Thank you for your comment. I just noticed it after I sent PR. So I closed the PR.
I googled about macOS on Docker and I think it's not possible to use Docker for macOS CI.
Because:

Docker doesn't support macOS as a guest OS. (I'm not a docker professional so it may be wrong.)
Travis doesn't currently support Docker on macOS. (https://docs.travis-ci.com/user/docker/)

So we need to think of alternative ways of build caching mechanism.

GitHub Actions supports caching mechanism. (Caching dependencies to speed up workflows - GitHub Docs)
I think this could be an option for macOS CI.
But there is limitations:

TTL is 7 days

maybe too short?

The total size of all caches in a repository is limited to 5 GB

llvm-project directory after building llvm/mlir is 4.2GB on my macOS machine, so it could be ok?

@mshr-h Github Action sounds like a reasonable choice! 7 days doesn't too bad and if the size of the cache is big enough then we should be okay!

@tjingrant I'll check Github Actions caching mechanism and see if it works.

@tjingrant I used utils/build-mlir.sh which CMAKE_BUILD_TYPE is Release. I'll try MinSizeRel.

I tried actions/cache@v2 on onnx-mlir compilation. I noticed that the cache targets are compressed when caching.
I cheched the compressed cache file size on different caching configuration (build type / cache target). The result is as follows:

Cache target
CMAKE_BUILD_TYPE=Release
CMAKE_BUILD_TYPE=MinSizeRel

llvm-project (including build directory)
1814 MB
1658 MB

llvm-project/build
629 MB
681 MB

The result shows that both Release and MinSizeRel are less than 5GB.

I see two merged PRs for this, has the original issue been solved? Please close if so otherwise please let us know what's missing. Thanks a lot.


tokenizers package conflicting

Hi, I'm not sure this is the problem. my environment is an anaconda with python 3.7 fresh environment. I try to install your package from pip install with the command pip install thai2transformers==0.1.0. so I got the error

thanks.

Hello @p4l3k1n6,
We would like to thank for the issue you reported and sorry for the late reply. We will solve the issue and update to the next release 0.1.1 soon,
For the current release thai2transformers==0.1.0, the hotfix to the package conflicting issues is to install tokenizers separately with the following commend.
pip install thai2transformers==0.1.0 --no-deps
pip install torch>=1.5.0 \
transformers==3.5.0 \
sentencepiece==0.1.91 \
emoji pythainlp>=2.2.4 \
tqdm datasets>=1.2.1 \
sefr_cut \
seqeval \
pytorch-lightning \
pydantic \
jsonlines \
ssg==0.0.6 \
tokenizers==0.9.3 \
pandas==1.1.4

Hi @artificiala,
I just came to say thank you, pip install thai2transformers==0.1.1 It works perfectly for me.


Single registry for all commands

create a registry of all commands where each command will be a struct with name and args and other (group, plugin etc.).
allow run all commands from : command (similar to vim command model) with auto-completions taken from args description
share this commands with plugins (download_file and start_lsp should be a lapce command not lapce-proxy)

It would be great if some part of lapce code will migrate into plugins:

Language Integrations (syntax, preferences etc.)
Themes

Some of these features have been implemented


Feature/328 show template files

Closes #328

Coverage decreased (-0.2%) to 88.385% when pulling 90ce4a355d9c6a769a192194905f0909d3fe8f6f on feature/328-show-template-files into 48f2a5c7ba64a11dc34b5371794d77130e1f7b58 on master.


Replace consul-wait-for-leader.sh with smlr

Untested, waiting on CI build.

[ ] Installs cleanly on a fresh build of most recent master branch (waiting for CI build)
[x] Upgrades cleanly from the most recent release (no changes except during installation)
[x] Updates documentation relevant to the changes (n/a)

Fixes #1299

This needs more work


libapron does not exist on recent Debian-based distributions

Debian maintainers have removed support for apron-related packages in unstable; it has been removed after ubuntu 21.10 for example. I'm running Ubuntu 22.04 and thus have some issues using apronpy.
On way to sidestep this issue is to install apron through opam. However, Python's ctypes library, used by apronpy requires the SONAME field of shared libraries to exist in order to load the library, which is currently not the case in libapron.so, see related issue on apron.

Yes, it now works, but no new apron package has been released on the opam repository. You can still clone apron, and then use apron to install this version. Have you tried that?


Get rid of that pesky yellow note in speedlify?

Sorry for the extra work, Zach. Should have added the site with the www prefix in the first place.

Thank you!


questions about pubtabnet

after run python ./table_recognition/data_preprocess.py
then, i want to train it
sh ./table_recognition/table_text_line_recognition_dist_train.sh
but in ./configs/textrecog/master/masterv2_ResnetExtra_tableRec_dataset_dynamic_mmfp16.py
alphabet_file = '/data_0/pubtabnet/processed_data/recognitionAlphabet.txt'
however the processed data didn't exist recognitionAlphabet.txt' and other files that mentioned in xxxxmmfp16.py.
Also, files mentioned in ohter py files didn't satisfied to the data_preprocess.py file

after run python ./table_recognition/data_preprocess.py
then, i want to train it
sh ./table_recognition/table_text_line_recognition_dist_train.sh
but in ./configs/textrecog/master/masterv2_ResnetExtra_tableRec_dataset_dynamic_mmfp16.py
alphabet_file = '/data_0/pubtabnet/processed_data/recognitionAlphabet.txt'
however the processed data didn't exist recognitionAlphabet.txt' and other files that mentioned in xxxxmmfp16.py.
Also, files mentioned in ohter py files didn't satisfied to the data_preprocess.py file

Hi.
'/data_0/pubtabnet/processed_data/recognitionAlphabet.txt‘ is the path I use in the experiment.
The alphabet will generate by 'data_preprocess.py', see here
The alphabet path is set by here

after run python ./table_recognition/data_preprocess.py
then, i want to train it
sh ./table_recognition/table_text_line_recognition_dist_train.sh
but in ./configs/textrecog/master/masterv2_ResnetExtra_tableRec_dataset_dynamic_mmfp16.py
alphabet_file = '/data_0/pubtabnet/processed_data/recognitionAlphabet.txt'
however the processed data didn't exist recognitionAlphabet.txt' and other files that mentioned in xxxxmmfp16.py.
Also, files mentioned in ohter py files didn't satisfied to the data_preprocess.py file

Hi.
'/data_0/pubtabnet/processed_data/recognitionAlphabet.txt‘ is the path I use in the experiment.
The alphabet will generate by 'data_preprocess.py', see here
The alphabet path is set by here

maybe just the name is different, later you use test_ann_files = {'table_Rec_val_debug_0': '/data_0/pubtabnet/processed_data/recognition_val.txt'} and so on but after i run data_preprocess.py , I only get the structure like the readme.


Doc/add cheat sheet links

Per Landon’s request in the PyAnsys Global AFT on 7/26/23, add links to the PyMotorCAD cheat sheet from this library's documentation.
Note: This library doesn't reuse the README content in the overall index.rst file for documentation. Consequently, I revised the "Documentation and issues" section in both the README and the overall index.rst file.

@ansys/pyansys-core Any chance someone could review and merge this PR as well?

@JackB-Ansys @jgsdavies, @ravi-ansys It looks like one of your three must approve this PR for me to be able to merge it. Would you be able to do this soon? I'd like to close out all the PRs I created to add cheat sheet links. Thanks!


Latest version of PiOS has broken LED control

The latest PiOS kernel 6.1.19-v8+ #1637 (both 32-bit and 64-bit) has renamed the file to control the power LED to /sys/class/leds/PWR/brightness from /sys/class/leds/led1/brightness.
Consequently, Homebridge RPi and rpi can no longer retrieve nor control the power LED.  On the local Pi, you'll see the following error:
[Mar 18 10:50:21] [RPi] pi4: warning: heartbeat error: /sys/class/leds/led1/brightness: cannot open: ENOENT no such file or directory

For a remote Pi, the LED will silently be reported as off.  You will see an error, when trying to change the LED:
[Mar 18 10:04:05] [RPi] pi1 Power LED: On: changed to true (from false)
[Mar 18 10:04:05] [RPi] pi1 Power LED: On: warning: set: FO (104): no permission to access file (-137)

While the fix is easy enough, it needs to be applied to Raspberry Pi being monitored remotely by Homebridge RPi, as it involves updating both /opt/pigpio/access and /opt/pigpio/cgi/getState.

Fixed in v1.8.0.

In your README you specify; "This script needs to be installed to /opt/pigpio/cgi/getState" and "/opt/pigpio/access"
but now you speak about "/opt/pigpiod/..." . This last directory is also not on my system.

Typo, sorry.

Sorry  I steel have  this  issue  . How  to correct it ?  I have  change  sudo sh -c 'cat - > /opt/pigpio/access' <<+
/sys/class/leds/PWR/brightness w

to     sudo sh -c 'cat - > /opt/pigpio/access' <<+
/sys/class/leds/led1/brightness w

After executing   rip  info on my local raspberry  i steel have  the  same error

Are you on the latest Pi OS kernel?

J'Cordialement / Best Regards / ﺍﺍﺴﻼﻢﻋﺍﯾﮑﻡ / 此致敬意ERIC GAGOUMSent from my iPhone XII Pro MaxOn 9 May 2023, at 18:57, Erik Baauw @.***> wrote:
Are you on the latest Pi OS kernel?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

I got  it .
My  PI Os was very hold   .Just updated  it  and  now  your plugins  is  swiping  .
But  my Pi have  restored   twice  i do not know why .

On 9 May 2023, at 20:19, ERIC G @.***> wrote:
J'
Cordialement / Best Regards / ﺍﺍﺴﻼﻢﻋﺍﯾﮑﻡ / 此致敬意
ERIC GAGOUM
Sent from my iPhone XII Pro Max

On 9 May 2023, at 18:57, Erik Baauw @.***> wrote:

Are you on the latest Pi OS kernel?
—
Reply to this email directly, view it on GitHub https://github.com/ebaauw/homebridge-rpi/issues/157#issuecomment-1540618168, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7TKAUSC3XLZDPGW6BN376TXFKAPFANCNFSM6AAAAAAV7LLRNY.
You are receiving this because you commented.


fix: fixed calls to restartPreview for Helm and Kustomizations

This PR...
Changes

Fixes

How to test it

Screenshots

Checklist

[ ] tested locally
[ ] added new dependencies
[ ] updated the docs
[ ] added a test

lgtm!


Conversations history

Thanks for supporting local storage,
I would like to ask if you are interested in enable conversations history like most of LLM UIs, so we can switch between conversations or start a new one while keeping all the conversations storied in the local cache.
Best,

No, that's useless for now.

For now you can copy your conversations in Markdown format for pasting into some other editors, etc.


Ignore a non-existent module as it is included in the webpage

Hello,
I am using your template to generate a UserScript from the TypeScript code and I would like to use a module provided by the webpage that the UserScript will run at. The script is already included there, so there won't be any problem to access it.
Now, the webpack won't compile the script as it gives the error: TS2304: Cannot find name 'Timing'.
Is there any possibility to make the compiler think that everything is okay and compile the code? Or I have to copy that code and include in my script?
Thanks.

In the webpage, there is the game.js file imported which contains the object named Timing. And I would like to run a method from this object like: Timing.getCurrentServerTime().

The problem is that, depending on the world you are playing on, the url to the file differs a bit. In the other case I could just require it inside my script.

In the webpage, there is the game.js file imported which contains the object named Timing. And I would like to run a method from this object like: Timing.getCurrentServerTime().

If it comes from the source page, you need to check how Tampermonkey's document references these contents. If this is a global object, I think you can try using unsafeWindow object.

You can define global objects through the type definition file.

I have created the globals.d.ts file in the src directory with content as following:
interface Window {
    unsafeWindow: any;
}

I have also added unsafeWindow in the grant property in the package.json file.
"userscript": {
    //...
    "grant": [
      "unsafeWindow"
    ],
  }

And when I am using the unsafeWindow property to access the Timing object, everything works fine.
window.unsafeWindow.Timing.getCurrentServerTime()

Thank you for your help.


Rename "Seeed Arduino LSM6DS3"

Resolves https://github.com/arduino/library-registry/issues/929

Backend work done 🎉
2022/01/21 14:27:41 Loaded 4557 libraries from DB
Removing Accelerometer And Gyroscope LSM6DS3
Success!


Bug ?

version 1.5.0 reconnect every second with Cygar. I temporarily rollback to 1.4.8 (07-01).

Paste a part of the log when you try connecting to the server. It might give us an idea why does the socket close.

Problem was by my hands. Close.

same problem is with me too.
when i connect without a name i keep reconnecting every min or sec.
when i join with a name that doesn't happen!


win32: Remove old code for VC++ 6.0 or older

There were many #ifdefs for VC6. Make the code cleaner.

Maybe we can also remove the code for VC++ 7.0/7.1 (VS 2002/2003)?

I can include this one first.  I think the oldest that still works in VC 2008, or studio 9.0..  Haven't tried it though.
Supporting older versions can be useful in some cases, newer versions tend to drop support for older MS-Windows.

VC 2005 is the last version that supports building for Windows 9x.
VC 2010 is the last version that supports building for Windows XP without adding the /subsystem linker option. Also, this is the last version that doesn't support the C99 style variable declaration.
VC 2013 is the last version before switching to Universal CRT.
VC 2015 is the last version that includes Windows SDK 7.1 that supports building for Windows XP.
VC 2008 and VC 2012 are not so notable, I think.
We use VC 2010 on AppVeyor, so it might be better to make VC 2010 as the oldest support version?

Ken Takata wrote:

VC 2005 is the last version that supports building for Windows 9x.
VC 2010 is the last version that supports building for Windows XP without adding the /subsystem linker option. Also, this is the last version that doesn't support the C99 style variable declaration.
VC 2013 is the last version before switching to Universal CRT.
VC 2015 is the last version that includes Windows SDK 7.1 that supports building for Windows XP.
VC 2008 and VC 2012 are not so notable, I think.
We use VC 2010 on AppVeyor, so it might be better to make VC 2010 as
the oldest support version?

That makes sense.  I suppose there are not so many differences betwen VC
2008 and 2010.
We should also update INSTALLpc.txt.  I actually can't find the place
where to download older versions now.
--
Why don't cannibals eat clowns?
Because they taste funny.
/// Bram Moolenaar -- @.*** -- http://www.Moolenaar.net   \
///                                                                      \
\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///


Navigation View Visual Bugs

Description

Handful of Nav View visual bug fixes:

Hamburger button placement off centre on load
Hamburger button focus rect
Search button style and focus rect
Top Nav footer alignment
Expanded pane to be transparent
Remove NegativeSplitViewWidthMinusCompactLengthProperty
Update NavigationBackButton CornerRadius to ControlCornerRadius

Motivation and Context

Closes #4321
Screenshots (if appropriate):

The back and toggle buttons are off by 1px with the navigation items. Also, why are they using OverlayControlRadius? Wasn't it only meant for floating controls?

The back and toggle buttons are off by 1px with the navigation items. Also, why are they using OverlayControlRadius? Wasn't it only meant for floating controls?

@gabrielconl Good catch! I've updated for the back button to use ControlCornerRadius. As for the back and toggle buttons being off with the navigation items, is it the buttons or the icons that are off?

/azp run

The back and toggle buttons are off by 1px with the navigation items. Also, why are they using OverlayControlRadius? Wasn't it only meant for floating controls?

@gabrielconl Good catch! I've updated for the back button to use ControlCornerRadius. As for the back and toggle buttons being off with the navigation items, is it the buttons or the icons that are off?

The collapsed menu has a width of 45px + 1 for the right border, and the items are 37px wide so that they're centered, but the buttons are 38px.

@karenbtlai need to update baselines.

/azp run


Port number not set

When the upload url contains a port number that is not set correctly by the _parseUri function. I have created a pull request with the very simple fix for this issue.

Not sure why but I don't see the pull request anymore... This is the change needed to make it work:
Uri _parseUrl(String urlStr) {
    if (urlStr.contains(",")) {
      urlStr = urlStr.substring(0, urlStr.indexOf(","));
    }
    Uri uploadUrl = Uri.parse(urlStr);
    if (uploadUrl.host.isEmpty) {
      uploadUrl = uploadUrl.replace(host: url.host, **port: url.port**);
    }
    if (uploadUrl.scheme.isEmpty) {
      uploadUrl = uploadUrl.replace(scheme: url.scheme);
    }
    return uploadUrl;
  }

Thanks for the input @mqaa. I really wish you could get that pull request? Otherwise I can make the change and add test for this case a bit later.

@jjmutumi I have created a pull request with the required change to make the client work with urls containing a port number.

Fixed by #20


cleanup copied tokens

we make a copy of our token because the submission monkeys with it, but
we weren't cleaning it up...

Sorry, @shreyb  I thought I pushed it...  too many balls in the air this week... sigh.


ceph-iscsi: notify rbd target services

When the iscsi gateway configuration file changes then we need to notify
the rbd target api/gw services to be restarted.
Signed-off-by: Dimitri Savineau<EMAIL_ADDRESS>

@mikechristie there's not rbd-target-[api|gw] service restart on ceph.conf modification as well. Should we notify those services too ? or only the api ? (I don't know if both service are using the ceph configuration file)

Patch LGTM.
I think it would be ok to restart the daemon if there are ceph.conf changes.

jenkins test centos-non_container-collocation


Article on "Functions and Scope Chaining in JavaScript"

Functions and Scope Chaining in JavaScript
Aman Kumar Dewangan(AkD)
The Blog is in Continuation to the previous blog on "Adding Basic Complexity To Javascript", here we introduce you to the functions in JavaScript and Scope Chaining in JavaScript.
My name is Aman Kumar Dewangan, currently pursuing my B.Tech in Electrical Engineering at the National Institute of Technology Raipur. I am a proficient IoT Developer, Electronics Enthusiast, worked with no. of Micro-controllers including Arduino and Raspberry Pi. I am also a Frontend Developer and beginner in Cloud Engineering. I have recently started working on Open-Source and generally program in C++. I have participated in many Hackathons as well.

[x] I've read and complied with the rules mentioned in the Readme.md.

It's actually the whole JavaScript Tutorial, in order to keep the readers engaged it has been broken down to 10 modules, alongside 3 fun minor projects soon coming up. This blog is complete in itself.
If you would like I can share the topics discussed in each module.

You can add a table of content. This PR will be merged when you have completed all the 10 modules.

Please provide me some guidelines for the table of content should I Attach it with my first article or a new one

In next commit, add a table of content in the first article.

Okay, so I had a plan, from my side I will add a table and along with it the blogs up to the first minor project, that will be 1 pull request means this on, so don't close this one, review and merge it after I bring all blogs up to 1st minor project.

The Minor project in itself would be a pull request as it is quite difficult and lengthy and then I will be continuing with further tutorials.


⚠ api.piste.gouv.fr healthcheck has degraded performance

In 8ec8f68, api.piste.gouv.fr healthcheck (https://api.piste.gouv.fr/cassation/judilibre/v1.0/healthcheck) experienced degraded performance:

HTTP code: 200
Response time: 2655 ms

Resolved: api.piste.gouv.fr healthcheck performance has improved in 72bd33e.


Release version psd1 missing closing bracket

In the latest release you are missing the closing bracket in the psd1 file.  Gives a hashing error.

Ran into this myself.

Code in the repo doesn't have this issue. The releases were several years old so I removed them to avoid confusion.


[Bug report] In Gravitino Web UI error occurs when clicking on any table

Describe what's wrong
Clicking on a table causes an error. Both Hive and PostgreSQL tables cause an error.
Error message and/or stacktrace

How to reproduce
Start up the playground, click on metalake, expand a catalog, and click on a table.
Additional context
Was working yesterday, so must be a bug introduced in the last couple of days.

Could you provide the data from your departments table?
curl http://localhost:8090/api/metalakes/metalake_demo/catalogs/catalog_postgres/schemas/hr/tables/departments

I guess the issue is that the column type is not in the enums list. I adds a default color when the type is not in the enums. PR: #1542

It's the playground so it shouldn't contain anything that is not supported.
{"code":0,"table":{"name":"departments","columns":[{"name":"department_id","type":"integer","nullable":true},{"name":"department_name","type":"varchar(100)","nullable":true}],"properties":{},"audit":{},"distribution":{"strategy":"hash","number":0,"funcArgs":[]},"sortOrders":[],"partitioning":[]}}%

But does look like there is an extra % at the end?

It's the playground so it shouldn't contain anything that is not supported.
{"code":0,"table":{"name":"departments","columns":[{"name":"department_id","type":"integer","nullable":true},{"name":"department_name","type":"varchar(100)","nullable":true}],"properties":{},"audit":{},"distribution":{"strategy":"hash","number":0,"funcArgs":[]},"sortOrders":[],"partitioning":[]}}%

But does look like there is an extra % at the end? Or perhaps the newer distribution content?

This data is already useful enough for me, thank you!
BTW, the % symbol was generated by terminal, means that the response data follows immediately after the command prompt. Its not a problem.


Update UI.

Coverage increased (+0.002%) to 16.825% when pulling b822c7b66d12877d2e18a58f52433f81cdc565e0 on ui-update into effe49a102e94d4473f49bdb5d29107631fd02b5 on master.


Cannot find module 'walk-sync'

Following the instructions in the readme:

clone
npm install
bower install
ember server

https://github.com/chancancode/hn-reader#installation
I get the following output
edge/hn-reader[master]% ember server
version: 0.1.12
Cannot find module 'walk-sync'
Error: Cannot find module 'walk-sync'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/Users/josh/code/js/edge/hn-reader/lib/fixtures-packer/lib/broccoli-packer.js:3:16)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)

I think I did something wrong with the in-repo-add-ons (in lib)! You need to cd into each of them and run npm install in those. @stefanpenner do you know why?

I should probably get rid of them anyway, or extract them into proper add ons

@jish which version of NPM are you on?
likely solution
npm install -g npm #install latest npm
rm -rf node_modules
npm cache clean
npm install

checking out the app now to see

ah, ya in-app addon's package json isn't really supposed to have dependencies, unless you ad a script to handle that,we don't support it out of the box.

@stefanpenner great! so I should move those dependencies to the root package.json, right? (at least until I get rid of those)
Related #6

unsure, but i added this: https://github.com/chancancode/hn-reader/pull/4

Cool, @jish, so I think that fixes the problem! Let me (us?) know if it's not the case :smile:

$ npm --version
2.1.9
$ npm install -g npm
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
<EMAIL_ADDRESS>/usr/local/lib/node_modules/npm
$ npm --version
2.6.1
$ rm -rf node_modules
$ npm cache clean
$ npm install

Gives the same error
$ cd lib/fixtures-packer
$ npm install
$ cd ../sass-assets
$ npm install
$ cd ../..
$ ember server

Works. Thanks! :)


Add pprof capabilities to the operator

There have been several instances where users have reported OOM kills of the operator pod without any obvious causes (#585, #612). Diagnosing such failures and determining a cause just from logs is basically impossible. I propose we add a pprof endpoint to the operator (exposed only on localhost for security, maybe even disabled by default and add a toggle to the helm values) and add documentation how users can pull a memory dump.

I linked this as memory leaks are observed in both 2.5.1 and 2.6.0 versions of the operator. This could help determine root cause so the leaks can be resolved.


Package Review

There's been a fair amount of issues regarding the permissions with this package and it's been painful to keep up with (especially with a mostly unfamiliar codebase to me).
My plan is as follows and I'd like to get opinions before proceeding

Rip out all permissions and shift the responsibility to the user (we'll add best practices
Modernise and clean up the code base (enforcing some standards too)
Getting additional maintainers onboard

It's a big ask now but the package has been stale for too long.  the alternative is to completely drop this package in favour of expo-image-picker.
Suggestions welcome

I like your plan 👍

Leaving it to the user to sort out permissions is the way to go! There's lots of packages providing assistance, e.g. react-native-permissions.
Would be a real shame seeing this package be dropped just because the permissions jungle is getting in the way!

I agreed with you.

Also agree 100%. Permissions is a thing almost every serious app is going to deal with so it might as well be handled properly by react-native-permissions - this is a community project now so I think it's safe to depend on it & link to it.

I started a fresh package a while ago that will eventually replace this (haven't committed it yet) that has the following opinions (created using react-native-community/bob:

Swift for the iOS Package
Kotlin for the Android Package
TypeScript for the JavaScript package

That being said, I don't have the time to fully commit to this now.  If you are keen to assist, please reach out.

It's best if permissions are left for users in this case; which is what I'm about to implement. I'll paste my snippet here when done; you can add it to docs and use as an example.

@Johan-dutoit appreciate your effort. But trying to completely rewrite the library will take huge effort and has high percentage of failure to complete.
I have the following recommendation,

Let permission be within the library for iOS, for android we have permission android built in to react-native. We should not force lib users to add another third party library for the sake of permission.
Lets rewrite file by file from objective C to swift. Swift is far-far better language to grasp than objective c.
Whereas in case of Android lets stick with Java because there is not much advantage you gain on moving to Kotlin from what I know just few syntactic sugars.

I and many others are ready to contribute if there is guarantee that the pull request will be reviewed, merged to master or rejected in quick time. It should not be left stale.
I am keen to assist, how do we move forward?

@ravirajn22 some good points brought up.
I created a new branch for you (and whoever wants to help), called vnext.
PR's into this branch will be reviewed and merge if all looks good.

About expo-image-picker, I don't think that is a good idea for bare React Native projects, because it require react-native-unimodules.

@Johan-dutoit I suggest we remove ImagePicker.showImagePicker, people if they want can show menu of their choice like using ActionSheetIOS from react-native or simple buttons etc. It's a burden for this library.
Community your thoughts?

@ravirajn22 Totally agree.
Especially with trying to support all the theming of the action sheet.
Having the following two functions would suffice:

launchCamera, and
launchImageLibrary

As a nice to have, I'll add an example to the example project that uses react-native-action-sheet.
Let's do this on the vnext branch.

Other suggestions to improve, the use of the camera when it is in video mode, the only data we give is the video file but it would also be necessary to know the format, the video quality, resolution and more parameters

For those interested @ravirajn22 has done a ton of work related to this (which is highly appreciated).  These changes live on the vnext branch.
Testing and feedback is greatly welcomed!
Once sufficient feedback has been received (and testing of course), then we can promote to master and release an alpha on npm (to reach a wider audience).

Also list here any master branch feature unable on vnext branch which is a deal breaker to upgrade. We will brainstorm and consider to add to vnext.

@Johan-dutoit there is no comments from users (I think no one has tried vnext branch). What shall we plan next? release a new major beta version using the vnext branch. We should maintain both branches parallel and release versions for sometime and update master docs to both releases.

@Johan-dutoit can you provide manage issue, write permission (for vnext branch) for me. So that I can push my changes and handle issues promptly. Any major API changes will obviously go through review process.

Hi, what about adding a customButton to the vnext as that seems currently the way to allow users to have an option to upload an image alongside e.g. a pdf document through react-native-document-picker

@AronBe I don't get your feature request. What customButton?

@ravirajn22
it is in the response object of ImagePicker, but based on vnext documentation, it is missing
ImagePicker.showImagePicker(options, (response) => {
  console.log('Response = ', response);

  if (response.didCancel) {
    console.log('User cancelled image picker');
  } else if (response.error) {
    console.log('ImagePicker Error: ', response.error);
  } else if (**response.customButton**) {
    console.log('User tapped custom button: ', response.customButton);
  } else {
    const source = { uri: response.uri };

    // You can also display the image using data:
    // const source = { uri: 'data:image/jpeg;base64,' + response.data };

    this.setState({
      avatarSource: source,
    });
  }
});

@AronBe please create a new issue with as much detail as possible.  It's off topic for this issue and won't easily be able to manage/track it in here.

Closing this, as tons of progress has been made regarding this issue.
Many thanks to everyone involved, especially @ravirajn22.


UnicodeDecodeError by load_pfm()

Hi!  I am trying to implement this project.
But when I use the function load_pfm(), I got
UnicodeDecodeError: 'gbk' codec can't decode byte 0xa5 in position 16: illegal multibyte sequence
in line
header = str(file.readline()).rstrip().
I've tryed many encoding type and all of them didn't work.
So I want to ask did you guys get this error when load the pfm file ?
I still don't know whether it's the matter though I can ignore the errors.

Ok, I changed the fucntion and it worked :
`def load_pfm(path,debug=False):
from struct import unpack
with open(path,'rb') as f:
header=f.readline().decode('latin-1')
if 'PF' in header:
channels = 3
elif 'Pf' in header:
channels = 1
else:
raise Exception('Error: Not a Valid pfm file')
if debug:
print('channels: {}'.format(channels))
line=f.readline().decode('latin-1')
width,height=re.findall('\d+',line)
width,height = int(width),int(height)
if debug:
print('width: {} height: {}'.format(width,height))
    line=f.readline().decode('latin-1')
    big_endian = True
    if '-' in line:
        big_endian = False
    if debug:
        print('big_endian: {}'.format(big_endian))

    samples = width*height*channels
    buffers = f.read(samples*4)
    if big_endian:
        fmt = '>'
    else:
        fmt = '<'
    fmt = fmt + str(samples) + 'f'
    data = unpack(fmt,buffers)
    shape = (height,width,channels)
    data = np.reshape(data,shape)
    data = cv2.flip(data,0)
return data`