No realsense string observed in install

Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):

Consider checking out SDK examples.
Have you looked in our documentations?
Is you question a frequently asked one?
Try searching our GitHub Issues (open and closed) for a similar issue.

All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)

Required Info

Camera Model
{  D400 }

Firmware Version
(Open RealSense Viewer --> Click info)

Operating System & Version
Linux (Ubuntu 16.04)

Kernel Version (Linux Only)
4.15.0-60

Platform
PC

SDK Version

Language
{C/C#/}

Segment
{Robot }

Issue Description
<Describe your issue / question / feature request / etc..>
In librealsense ubuntu 16.04 installation git, there is a command to check if the realsense string is in. When I run it it does not show any string including realsense.
I am having problems connecting to my realsense due to W10 problem
$ modinfo uvcvideo | grep "version:"
version:        1.1.1
srcversion:     79A49299483C7A964CCC049
I don't have a string in this check. This might be why I am having issues?
This is the link for it I will copy and paste the issue as well
https://github.com/IntelRealSense/librealsense/issues/4794#issuecomment-528487804
Hello I hava a D415 Depth Camera and it won't connect to my laptop.
The main error for this is mentioned below.
I can access the realsense viewer without any problems but when ever I turn my node on by using
roslaunch realsense2_camera rs_camera.launch
it gives this error. Please help me thank you
My kernel version is 4.15.0-60-generic
An exception has been thrown: The requested pixel format 'W10 ' is not natively supported by the Linux kernel and likely requires a patch!
Alternatively please upgrade to kernel 4.12 or later. Last Error: Invalid argument
terminate called after throwing an instance of 'rs2::backend_error'
what(): The requested pixel format 'W10 ' is not natively supported by the Linux kernel and likely requires a patch!
Alternatively please upgrade to kernel 4.12 or later. Last Error: Invalid argument
[camera/realsense2_camera_manager-1] process has died [pid 15139, exit code -6, cmd /opt/ros/kinetic/lib/nodelet/nodelet manager __name:=realsense2_camera_manager __log:=/home/hong/.ros/log/68c59866-ce8c-11e9-8e37-a86daaec59a0/camera-realsense2_camera_manager-1.log].
log file: /home/hong/.ros/log/68c59866-ce8c-11e9-8e37-a86daaec59a0/camera-realsense2_camera_manager-1*.log

@hongluck , there was a breaking kernel change introduced in 4.15.0-58 which broke the DKMS for that branch. We're working on an update.
In the meanwhile for kernels  4.15.0-58+ please use a DKMS package attached in #4669

Still giving me the error as the link
https://github.com/IntelRealSense/librealsense/issues/4794#issuecomment-528487804
[ERROR] [1568036482.236293983]: An exception has been thrown: The requested pixel format 'W10 ' is not natively supported by the Linux kernel and likely requires a patch!
Alternatively please upgrade to kernel 4.12 or later. Last Error: Invalid argument
terminate called after throwing an instance of 'rs2::backend_error'
what():  The requested pixel format 'W10 ' is not natively supported by the Linux kernel and likely requires a patch!
Alternatively please upgrade to kernel 4.12 or later. Last Error: Invalid argument
[camera/realsense2_camera_manager-2] process has died [pid 21254, exit code -6, cmd /opt/ros/kinetic/lib/nodelet/nodelet manager __name:=realsense2_camera_manager __log:=/home/hong/.ros/log/81a4ec90-d307-11e9-83f4-a86daaec59a0/camera-realsense2_camera_manager-2.log].
log file: /home/hong/.ros/log/81a4ec90-d307-11e9-83f4-a86daaec59a0/camera-realsense2_camera_manager-2*.log
^C[camera/realsense2_camera-3] killing on exit
[rosout-1] killing on exit
[master] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
I dont think the deb file you gave made any changes

Can you provide the full installation log of the deb ?

Error log is this
roslaunch realsense2_camera rs_camera.launch
... logging to /home/hong/.ros/log/f84c8fd0-d3d2-11e9-b448-a86daaec59a0/roslaunch-hong-JDL-HELIOS-11324.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://hong-JDL-HELIOS:40281/
SUMMARY
PARAMETERS

/camera/realsense2_camera/accel_fps: 250
/camera/realsense2_camera/accel_frame_id: camera_accel_frame
/camera/realsense2_camera/accel_optical_frame_id: camera_accel_opti...
/camera/realsense2_camera/align_depth: False
/camera/realsense2_camera/aligned_depth_to_color_frame_id: camera_aligned_de...
/camera/realsense2_camera/aligned_depth_to_fisheye1_frame_id: camera_aligned_de...
/camera/realsense2_camera/aligned_depth_to_fisheye2_frame_id: camera_aligned_de...
/camera/realsense2_camera/aligned_depth_to_fisheye_frame_id: camera_aligned_de...
/camera/realsense2_camera/aligned_depth_to_infra1_frame_id: camera_aligned_de...
/camera/realsense2_camera/aligned_depth_to_infra2_frame_id: camera_aligned_de...
/camera/realsense2_camera/allow_no_texture_points: False
/camera/realsense2_camera/base_frame_id: camera_link
/camera/realsense2_camera/calib_odom_file:
/camera/realsense2_camera/clip_distance: -2.0
/camera/realsense2_camera/color_fps: 30
/camera/realsense2_camera/color_frame_id: camera_color_frame
/camera/realsense2_camera/color_height: 480
/camera/realsense2_camera/color_optical_frame_id: camera_color_opti...
/camera/realsense2_camera/color_width: 640
/camera/realsense2_camera/depth_fps: 30
/camera/realsense2_camera/depth_frame_id: camera_depth_frame
/camera/realsense2_camera/depth_height: 480
/camera/realsense2_camera/depth_optical_frame_id: camera_depth_opti...
/camera/realsense2_camera/depth_width: 640
/camera/realsense2_camera/enable_accel: True
/camera/realsense2_camera/enable_color: True
/camera/realsense2_camera/enable_depth: True
/camera/realsense2_camera/enable_fisheye1: True
/camera/realsense2_camera/enable_fisheye2: True
/camera/realsense2_camera/enable_fisheye: True
/camera/realsense2_camera/enable_gyro: True
/camera/realsense2_camera/enable_infra1: True
/camera/realsense2_camera/enable_infra2: True
/camera/realsense2_camera/enable_pointcloud: False
/camera/realsense2_camera/enable_sync: False
/camera/realsense2_camera/filters:
/camera/realsense2_camera/fisheye1_frame_id: camera_fisheye1_f...
/camera/realsense2_camera/fisheye1_optical_frame_id: camera_fisheye1_o...
/camera/realsense2_camera/fisheye2_frame_id: camera_fisheye2_f...
/camera/realsense2_camera/fisheye2_optical_frame_id: camera_fisheye2_o...
/camera/realsense2_camera/fisheye_fps: 30
/camera/realsense2_camera/fisheye_frame_id: camera_fisheye_frame
/camera/realsense2_camera/fisheye_height: 480
/camera/realsense2_camera/fisheye_optical_frame_id: camera_fisheye_op...
/camera/realsense2_camera/fisheye_width: 640
/camera/realsense2_camera/gyro_fps: 400
/camera/realsense2_camera/gyro_frame_id: camera_gyro_frame
/camera/realsense2_camera/gyro_optical_frame_id: camera_gyro_optic...
/camera/realsense2_camera/imu_optical_frame_id: camera_imu_optica...
/camera/realsense2_camera/infra1_frame_id: camera_infra1_frame
/camera/realsense2_camera/infra1_optical_frame_id: camera_infra1_opt...
/camera/realsense2_camera/infra2_frame_id: camera_infra2_frame
/camera/realsense2_camera/infra2_optical_frame_id: camera_infra2_opt...
/camera/realsense2_camera/infra_fps: 30
/camera/realsense2_camera/infra_height: 480
/camera/realsense2_camera/infra_width: 640
/camera/realsense2_camera/initial_reset: False
/camera/realsense2_camera/json_file_path:
/camera/realsense2_camera/linear_accel_cov: 0.01
/camera/realsense2_camera/odom_frame_id: camera_odom_frame
/camera/realsense2_camera/pointcloud_texture_index: 0
/camera/realsense2_camera/pointcloud_texture_stream: RS2_STREAM_COLOR
/camera/realsense2_camera/pose_frame_id: camera_pose_frame
/camera/realsense2_camera/pose_optical_frame_id: camera_pose_optic...
/camera/realsense2_camera/publish_odom_tf: True
/camera/realsense2_camera/rosbag_filename:
/camera/realsense2_camera/serial_no:
/camera/realsense2_camera/topic_odom_in: odom_in
/camera/realsense2_camera/unite_imu_method:
/rosdistro: kinetic
/rosversion: 1.12.14

NODES
/camera/
realsense2_camera (nodelet/nodelet)
realsense2_camera_manager (nodelet/nodelet)
ROS_MASTER_URI=http://localhost:11311
process[camera/realsense2_camera_manager-1]: started with pid [11343]
process[camera/realsense2_camera-2]: started with pid [11344]
[ INFO] [1568123890.269575005]: Initializing nodelet with 12 worker threads.
[ INFO] [1568123890.288584681]: RealSense ROS v2.2.8
[ INFO] [1568123890.288609165]: Running with LibRealSense v2.27.0
[ INFO] [1568123890.884562472]: getParameters...
[ INFO] [1568123890.932714558]: setupDevice...
[ INFO] [1568123890.932759563]: JSON file is not provided
[ INFO] [1568123890.932774223]: ROS Node Namespace: camera
[ INFO] [1568123890.932811638]: Device Name: Intel RealSense D415
[ INFO] [1568123890.932821637]: Device Serial No:<PHONE_NUMBER>29
[ INFO] [1568123890.932832517]: Device FW version: <IP_ADDRESS>
[ INFO] [1568123890.932840313]: Device Product ID: 0x0AD3
[ INFO] [1568123890.932851496]: Enable PointCloud: Off
[ INFO] [1568123890.932861032]: Align Depth: Off
[ INFO] [1568123890.932870085]: Sync Mode: Off
[ INFO] [1568123890.932914925]: Device Sensors:
[ INFO] [1568123890.932986858]: Stereo Module was found.
[ INFO] [1568123890.933000310]: RGB Camera was found.
[ INFO] [1568123890.933024375]: (Fisheye, 0) sensor isn't supported by current device! -- Skipping...
[ INFO] [1568123890.933034726]: (Fisheye, 1) sensor isn't supported by current device! -- Skipping...
[ INFO] [1568123890.933044701]: (Fisheye, 2) sensor isn't supported by current device! -- Skipping...
[ INFO] [1568123890.933054172]: (Gyro, 0) sensor isn't supported by current device! -- Skipping...
[ INFO] [1568123890.933062883]: (Accel, 0) sensor isn't supported by current device! -- Skipping...
[ INFO] [1568123890.933086043]: (Pose, 0) sensor isn't supported by current device! -- Skipping...
[ INFO] [1568123890.933125835]: num_filters: 0
[ INFO] [1568123890.933135987]: Setting Dynamic reconfig parameters.
[ INFO] [1568123891.013950479]: Done Setting Dynamic reconfig parameters.
10/09 09:58:11,015 WARNING [139877144323840] (backend-v4l2.cpp:1148) Pixel format 20303157-0000-0010-8000-00aa003 likely requires patch for fourcc code W10 !
[ INFO] [1568123891.016875650]: depth stream is enabled - width: 640, height: 480, fps: 30
[ INFO] [1568123891.017041915]: infra1 stream is enabled - width: 640, height: 480, fps: 30
[ INFO] [1568123891.017225820]: infra2 stream is enabled - width: 640, height: 480, fps: 30
10/09 09:58:11,017 WARNING [139877144323840] (backend-v4l2.cpp:1148) Pixel format 36315752-1a66-a242-9065-d01814a likely requires patch for fourcc code RW16!
[ INFO] [1568123891.019491069]: color stream is enabled - width: 640, height: 480, fps: 30
[ INFO] [1568123891.019520258]: setupPublishers...
[ INFO] [1568123891.022171042]: Expected frequency for depth = 30.00000
[ INFO] [1568123891.044644522]: Expected frequency for infra1 = 30.00000
[ INFO] [1568123891.063625096]: Expected frequency for infra2 = 30.00000
[ INFO] [1568123891.083253338]: Expected frequency for color = 30.00000
[ INFO] [1568123891.103446397]: setupStreams...
[ INFO] [1568123891.104316629]: insert Depth to Stereo Module
[ INFO] [1568123891.104393574]: insert Color to RGB Camera
[ INFO] [1568123891.104414678]: insert Infrared to Stereo Module
[ INFO] [1568123891.104432722]: insert Infrared to Stereo Module
10/09 09:58:11,110 WARNING [139877144323840] (backend-v4l2.cpp:1148) Pixel format 20303157-0000-0010-8000-00aa003 likely requires patch for fourcc code W10 !
10/09 09:58:11,111 ERROR [139877144323840] (types.h:304) The requested pixel format 'W10 ' is not natively supported by the Linux kernel and likely requires a patch!
Alternatively please upgrade to kernel 4.12 or later. Last Error: Invalid argument
[ERROR] [1568123891.111316431]: An exception has been thrown: The requested pixel format 'W10 ' is not natively supported by the Linux kernel and likely requires a patch!
Alternatively please upgrade to kernel 4.12 or later. Last Error: Invalid argument
terminate called after throwing an instance of 'rs2::backend_error'
what():  The requested pixel format 'W10 ' is not natively supported by the Linux kernel and likely requires a patch!
Alternatively please upgrade to kernel 4.12 or later. Last Error: Invalid argument
[camera/realsense2_camera_manager-1] process has died [pid 11343, exit code -6, cmd /opt/ros/kinetic/lib/nodelet/nodelet manager __name:=realsense2_camera_manager __log:=/home/hong/.ros/log/f84c8fd0-d3d2-11e9-b448-a86daaec59a0/camera-realsense2_camera_manager-1.log].
log file: /home/hong/.ros/log/f84c8fd0-d3d2-11e9-b448-a86daaec59a0/camera-realsense2_camera_manager-1*.log
[camera/realsense2_camera-2] process has finished cleanly
log file: /home/hong/.ros/log/f84c8fd0-d3d2-11e9-b448-a86daaec59a0/camera-realsense2_camera-2*.log
all processes on machine have died, roslaunch will exit
shutting down processing monitor...
... shutting down processing monitor complete
done
The installation log  for deb
hong@hong-JDL-HELIOS:~/Desktop$ sudo dpkg -i librealsense2-dkms_1.3.5-0ubuntu1_all.deb
[sudo] password for hong:
(Reading database ... 332883 files and directories currently installed.)
Preparing to unpack librealsense2-dkms_1.3.5-0ubuntu1_all.deb ...

Deleting module version: 1.3.5
completely from the DKMS tree.
Done.
Unpacking librealsense2-dkms (1.3.5-0ubuntu1) over (1.3.5-0ubuntu1) ...

Loading new librealsense2-dkms-1.3.5 DKMS files...
Building only for 4.15.0-60-generic
Building initial module for 4.15.0-60-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/librealsense2-dkms.0.crash'
Error! Bad return status for module build on kernel: 4.15.0-60-generic (x86_64)
Consult /var/lib/dkms/librealsense2-dkms/1.3.5/build/make.log for more information.
Loading the modified modules into kernel... complete
Current status:
bbswitch, 0.8, 4.15.0-45-generic, x86_64: installed
bbswitch, 0.8, 4.15.0-60-generic, x86_64: installed
bbswitch, 0.8, 4.4.0-161-generic, x86_64: installed
librealsense2-dkms, 1.3.5: added
nvidia-430, 430.26, 4.15.0-45-generic, x86_64: installed
nvidia-430, 430.26, 4.15.0-60-generic, x86_64: installed
nvidia-430, 430.26, 4.4.0-161-generic, x86_64: installed
mod: videodev
mod: uvcvideo 			 version: 1.1.1
mod: hid_sensor_gyro_3d
mod: hid_sensor_accel_3d

This is the make error shown above.
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/librealsense2-dkms.0.crash'
Error! Bad return status for module build on kernel: 4.15.0-60-generic (x86_64)
Consult /var/lib/dkms/librealsense2-dkms/1.3.5/build/make.log for more information.
Below is the make.log file
DKMS make.log for librealsense2-dkms-1.3.5 for kernel 4.15.0-60-generic (x86_64)
Tue Sep 10 10:00:58 EDT 2019
make: Entering directory '/usr/src/linux-headers-4.15.0-60-generic'
CC [M]  /var/lib/dkms/librealsense2-dkms/1.3.5/build/4.15.0/drivers/media/usb/uvc/uvc_driver.o
In file included from ./arch/x86/include/asm/atomic.h:5:0,
from ./include/linux/atomic.h:5,
from /var/lib/dkms/librealsense2-dkms/1.3.5/build/4.15.0/drivers/media/usb/uvc/uvc_driver.c:14:
./arch/x86/include/asm/qspinlock.h: In function ‘native_queued_spin_unlock’:
./arch/x86/include/asm/qspinlock.h:42:25: error: ‘struct qspinlock’ has no member named ‘locked’
smp_store_release(&lock->locked, 0);
^
./include/linux/compiler.h:304:9: note: in definition of macro ‘__compiletime_assert’
if (!(condition))
^
./include/linux/compiler.h:324:2: note: in expansion of macro ‘_compiletime_assert’
_compiletime_assert(condition, msg, _compiletime_assert, LINE)
^
./include/linux/compiler.h:327:2: note: in expansion of macro ‘compiletime_assert’
compiletime_assert(__native_word(t),
^
./include/linux/compiler.h:327:21: note: in expansion of macro ‘__native_word’
compiletime_assert(__native_word(t),
^
./arch/x86/include/asm/barrier.h:97:2: note: in expansion of macro ‘compiletime_assert_atomic_type’
compiletime_assert_atomic_type(*p);
^
/var/lib/dkms/librealsense2-dkms/1.3.5/build/4.15.0/drivers/media/usb/uvc/../../../../include-overrides/asm-generic/barrier.h:157:33: note: in expansion of macro ‘__smp_store_release’
#define smp_store_release(p, v) __smp_store_release(p, v)
^
./arch/x86/include/asm/qspinlock.h:42:2: note: in expansion of macro ‘smp_store_release’
smp_store_release(&lock->locked, 0);
^
./arch/x86/include/asm/qspinlock.h:42:25: error: ‘struct qspinlock’ has no member named ‘locked’
smp_store_release(&lock->locked, 0);
^
./include/linux/compiler.h:304:9: note: in definition of macro ‘__compiletime_assert’
if (!(condition))
^
./include/linux/compiler.h:324:2: note: in expansion of macro ‘_compiletime_assert’
_compiletime_assert(condition, msg, _compiletime_assert, LINE)
^
./include/linux/compiler.h:327:2: note: in expansion of macro ‘compiletime_assert’
compiletime_assert(__native_word(t),
^
./include/linux/compiler.h:327:21: note: in expansion of macro ‘__native_word’
compiletime_assert(__native_word(t),
^
./arch/x86/include/asm/barrier.h:97:2: note: in expansion of macro ‘compiletime_assert_atomic_type’
compiletime_assert_atomic_type(*p);
^
/var/lib/dkms/librealsense2-dkms/1.3.5/build/4.15.0/drivers/media/usb/uvc/../../../../include-overrides/asm-generic/barrier.h:157:33: note: in expansion of macro ‘__smp_store_release’
#define smp_store_release(p, v) __smp_store_release(p, v)
^
./arch/x86/include/asm/qspinlock.h:42:2: note: in expansion of macro ‘smp_store_release’
smp_store_release(&lock->locked, 0);
^
./arch/x86/include/asm/qspinlock.h:42:25: error: ‘struct qspinlock’ has no member named ‘locked’
smp_store_release(&lock->locked, 0);
^
./include/linux/compiler.h:304:9: note: in definition of macro ‘__compiletime_assert’
if (!(condition))
^
./include/linux/compiler.h:324:2: note: in expansion of macro ‘_compiletime_assert’
_compiletime_assert(condition, msg, _compiletime_assert, LINE)
^
./include/linux/compiler.h:327:2: note: in expansion of macro ‘compiletime_assert’
compiletime_assert(__native_word(t),
^
./include/linux/compiler.h:327:21: note: in expansion of macro ‘__native_word’
compiletime_assert(__native_word(t),
^
./arch/x86/include/asm/barrier.h:97:2: note: in expansion of macro ‘compiletime_assert_atomic_type’
compiletime_assert_atomic_type(*p);
^
/var/lib/dkms/librealsense2-dkms/1.3.5/build/4.15.0/drivers/media/usb/uvc/../../../../include-overrides/asm-generic/barrier.h:157:33: note: in expansion of macro ‘__smp_store_release’
#define smp_store_release(p, v) __smp_store_release(p, v)
^
./arch/x86/include/asm/qspinlock.h:42:2: note: in expansion of macro ‘smp_store_release’
smp_store_release(&lock->locked, 0);
^
./arch/x86/include/asm/qspinlock.h:42:25: error: ‘struct qspinlock’ has no member named ‘locked’
smp_store_release(&lock->locked, 0);
^
./include/linux/compiler.h:304:9: note: in definition of macro ‘__compiletime_assert’
if (!(condition))
^
./include/linux/compiler.h:324:2: note: in expansion of macro ‘_compiletime_assert’
_compiletime_assert(condition, msg, _compiletime_assert, LINE)
^
./include/linux/compiler.h:327:2: note: in expansion of macro ‘compiletime_assert’
compiletime_assert(__native_word(t),
^
./include/linux/compiler.h:327:21: note: in expansion of macro ‘__native_word’
compiletime_assert(__native_word(t),
^
./arch/x86/include/asm/barrier.h:97:2: note: in expansion of macro ‘compiletime_assert_atomic_type’
compiletime_assert_atomic_type(*p);
^
/var/lib/dkms/librealsense2-dkms/1.3.5/build/4.15.0/drivers/media/usb/uvc/../../../../include-overrides/asm-generic/barrier.h:157:33: note: in expansion of macro ‘__smp_store_release’
#define smp_store_release(p, v) __smp_store_release(p, v)
^
./arch/x86/include/asm/qspinlock.h:42:2: note: in expansion of macro ‘smp_store_release’
smp_store_release(&lock->locked, 0);
^
./arch/x86/include/asm/qspinlock.h:42:25: error: ‘struct qspinlock’ has no member named ‘locked’
smp_store_release(&lock->locked, 0);
^
./include/linux/compiler.h:275:17: note: in definition of macro ‘WRITE_ONCE’
union { typeof(x) __val; char __c[1]; } __u =
^
/var/lib/dkms/librealsense2-dkms/1.3.5/build/4.15.0/drivers/media/usb/uvc/../../../../include-overrides/asm-generic/barrier.h:157:33: note: in expansion of macro ‘__smp_store_release’
#define smp_store_release(p, v) __smp_store_release(p, v)
^
./arch/x86/include/asm/qspinlock.h:42:2: note: in expansion of macro ‘smp_store_release’
smp_store_release(&lock->locked, 0);
^
./arch/x86/include/asm/qspinlock.h:42:25: error: ‘struct qspinlock’ has no member named ‘locked’
smp_store_release(&lock->locked, 0);
^
./include/linux/compiler.h:276:30: note: in definition of macro ‘WRITE_ONCE’
{ .__val = (__force typeof(x)) (val) };
^
/var/lib/dkms/librealsense2-dkms/1.3.5/build/4.15.0/drivers/media/usb/uvc/../../../../include-overrides/asm-generic/barrier.h:157:33: note: in expansion of macro ‘__smp_store_release’
#define smp_store_release(p, v) __smp_store_release(p, v)
^
./arch/x86/include/asm/qspinlock.h:42:2: note: in expansion of macro ‘smp_store_release’
smp_store_release(&lock->locked, 0);
^
./arch/x86/include/asm/qspinlock.h:42:25: error: ‘struct qspinlock’ has no member named ‘locked’
smp_store_release(&lock->locked, 0);
^
./include/linux/compiler.h:277:22: note: in definition of macro ‘WRITE_ONCE’
__write_once_size(&(x), __u.__c, sizeof(x));
^
/var/lib/dkms/librealsense2-dkms/1.3.5/build/4.15.0/drivers/media/usb/uvc/../../../../include-overrides/asm-generic/barrier.h:157:33: note: in expansion of macro ‘__smp_store_release’
#define smp_store_release(p, v) __smp_store_release(p, v)
^
./arch/x86/include/asm/qspinlock.h:42:2: note: in expansion of macro ‘smp_store_release’
smp_store_release(&lock->locked, 0);
^
./arch/x86/include/asm/qspinlock.h:42:25: error: ‘struct qspinlock’ has no member named ‘locked’
smp_store_release(&lock->locked, 0);
^
./include/linux/compiler.h:277:42: note: in definition of macro ‘WRITE_ONCE’
__write_once_size(&(x), __u.__c, sizeof(x));
^
/var/lib/dkms/librealsense2-dkms/1.3.5/build/4.15.0/drivers/media/usb/uvc/../../../../include-overrides/asm-generic/barrier.h:157:33: note: in expansion of macro ‘__smp_store_release’
#define smp_store_release(p, v) __smp_store_release(p, v)
^
./arch/x86/include/asm/qspinlock.h:42:2: note: in expansion of macro ‘smp_store_release’
smp_store_release(&lock->locked, 0);
^
In file included from ./include/linux/scatterlist.h:8:0,
from ./include/linux/spi/spi.h:23,
from /var/lib/dkms/librealsense2-dkms/1.3.5/build/4.15.0/drivers/media/usb/uvc/../../../../include-overrides/media/v4l2-common.h:195,
from /var/lib/dkms/librealsense2-dkms/1.3.5/build/4.15.0/drivers/media/usb/uvc/uvc_driver.c:26:
./include/linux/mm.h: In function ‘mm_inc_nr_puds’:
./include/linux/mm.h:1685:6: error: implicit declaration of function ‘mm_pud_folded’ [-Werror=implicit-function-declaration]
if (mm_pud_folded(mm))
^
./include/linux/mm.h: In function ‘mm_inc_nr_pmds’:
./include/linux/mm.h:1713:6: error: implicit declaration of function ‘mm_pmd_folded’ [-Werror=implicit-function-declaration]
if (mm_pmd_folded(mm))
^
cc1: some warnings being treated as errors
scripts/Makefile.build:330: recipe for target '/var/lib/dkms/librealsense2-dkms/1.3.5/build/4.15.0/drivers/media/usb/uvc/uvc_driver.o' failed
make[1]: *** [/var/lib/dkms/librealsense2-dkms/1.3.5/build/4.15.0/drivers/media/usb/uvc/uvc_driver.o] Error 1
Makefile:1747: recipe for target 'uvcvideo.ko' failed
make: *** [uvcvideo.ko] Error 2
make: Leaving directory '/usr/src/linux-headers-4.15.0-60-generic'

@ev-mp I'm seeing the same error also for an older kernel - 4.4.0-131-generic.
Info:

SDK version 2.25.0-0~realsense0.1362
Realsense ROS version 2.2.8
Ubuntu 16.04
Kernel: 4.4.0-131-generic
Nvidia driver version: 390.48
DKMS version: 1.3.4-0ubuntu1

Any advice how to workaround the problem?

@fgrzadkowski ,
I've checked SDK 2.25.0 with the kernel version 4.4.0-131-generic and the SDK works properly with no obvious misbehaviors
Some observations:

The message regarding missing W10 descriptor is a warning that can be disregarded - it doesn't affect functionality as this format is not supported by D415/D435 models. And it was actually silenced in later SDK versions.
The DKMS version you're using is not up-to-date. The recommended one is 1.3.5.
Since you're running NVIDIA video driver, which itself is heavily based on DKMS - you should check that installing Librealsense DKMS package goes smooth. You can monitor the installation of sudo apt install librealsense2-dkms with a kernel log opened in another console `dmesg -wT.

With all that said it is not clear what is the issue that you've encountered, so pls attach the exact error for evaluation. Also try to reproduce the issues with SDK demos, such as realsense-viewer to further isolate the issue

This is the log message that I have:
A 2019-09-13T07:56:02.296917635Z  13/09 07:56:02,296 WARNING [140034679183104] (backend-v4l2.cpp:1149) Pixel format 20303157-0000-0010-8000-00aa003 likely requires patch for fourcc code W10 !
A 2019-09-13T07:56:02.298548176Z  13/09 07:56:02,298 ERROR [140034679183104] (types.h:243) The requested pixel format 'W10 ' is not natively supported by the Linux kernel and likely requires a patch!
A 2019-09-13T07:56:02.298550162Z Alternatively please upgrade to kernel 4.12 or later. Last Error: Invalid argument
A 2019-09-13T07:56:02.299257939Z  [31m[ERROR] [1568361362.299137722]: An exception has been thrown: The requested pixel format 'W10 ' is not natively supported by the Linux kernel and likely requires a patch!
A 2019-09-13T07:56:02.299259868Z Alternatively please upgrade to kernel 4.12 or later. Last Error: Invalid argument [0m
A 2019-09-13T07:56:02.299416264Z terminate called after throwing an instance of 'rs2::backend_error'
A 2019-09-13T07:56:02.299436137Z   what():  The requested pixel format 'W10 ' is not natively supported by the Linux kernel and likely requires a patch!
A 2019-09-13T07:56:02.299436648Z Alternatively please upgrade to kernel 4.12 or later. Last Error: Invalid argument
A 2019-09-13T07:56:02.486309146Z  [31m[camera_cart_left/realsense2_camera_manager-1] process has died [pid 104, exit code -6, cmd /opt/ros/kinetic/lib/nodelet/nodelet manager __name:=realsense2_camera_manager __log:=/root/.ros/log/bbbf4e56-d5fb-11e9-b5e1-a0369f04326f/camera_cart_left-realsense2_camera_manager-1.log].
A 2019-09-13T07:56:02.486311496Z log file: /root/.ros/log/bbbf4e56-d5fb-11e9-b5e1-a0369f04326f/camera_cart_left-realsense2_camera_manager-1*.log [0m
A 2019-09-13T07:56:02.975468492Z  [1mprocess[box_placing_depth_baseline_srv-1]: started with pid [438] [0m
A 2019-09-13T07:56:02.976452294Z  [1mprocess[camera_calibration_downloader_eddie_333_1560272407429094588-1]: started with pid [444] [0m
A 2019-09-13T07:56:02.976766641Z  [1mprocess[robot_state_publisher-1]: started with pid [447] [0m
A 2019-09-13T07:56:03.077657230Z shutting down processing monitor...
A 2019-09-13T07:56:03.077775899Z ... shutting down processing monitor complete
A 2019-09-13T07:56:03.077818606Z  [1mdone [0m
A 2019-09-13T07:56:03.200225446Z  [34mSuccessful exit from subprocess: ['roslaunch', 'nomagic_launch', 'camera_calibration_downloader.launch', 'camera_id:=box_placing', 'allow_no_internet:=False', 'camera_serial_no:=810512061758'] [0m

Also, from the code it looks like a regular exception:
https://github.com/IntelRealSense/librealsense/blob/4f2eac248530ef75fb38b95002522aa032165638/src/linux/backend-v4l2.cpp#L663
Am I mising something? @ev-mp

@ev-mp  It turned out to be a problem with not properly installed DKMS for the driver. Thanks!

@fgrzadkowski , thanks for the confirmation.
Also, as noted by @doronhi in that thread the proper solution was already integrated into the ROS repository so the new version will run correctly even on "unpatched" Ubuntu machines.
@hongluck, to avoid the error please install DKMS or run the patches script. #4794

@hongluck, did you manage to resolve it as suggested?
We'll close this if no further questions.


Message editor with formatting

I don't know if this is posible in Andstatus, I mean, it's something that just Dianara doest right now (I don't know Pumpa do it too or it's something that Sazius is going to do now). Maybe it would need change something deeper the code, I mean, AS doesn't even recognise the bold or italic words, I think it should implement Markdown and the possibility of editing posts.
I know that some GNU social servers allow Markdown too, but it's not the usual, so it would be really nice to have the option but it probably better for Pump.io users.
That's probably a difficult think to improve, but it's really useful too, maybe you could add it in one of the next versions of AndStatus (like all the features: add it when you see you can, it's not necessary and there's no hurry)
Sorry for this big text xD

I renamed this issue to be more focused and hence implementable + system independent.
For the second part of initial request I created a separate issue: #221 "Edit message [Pump.io]"


Implement form tag helpers

Reduce boilerplate entry with ABP-style tag helpers:
UI/AspNetCore/Tag Helpers/Form elements | Documentation Center | ABP.IO

Maybe for a more complex project, but too much work for little reward here.


powerline theme is a little bit lag.

I'm not sure if this is normal or not. Basically, the powerline theme has around 200~500ms lag to prompt. It is somehow understandable as it requires more actions. But I'm wondering if it is solvable?
I'm using the latest bashit on Linux Mint 19

That really depends on how you're using it. It does a lot of guesswork/parsing to detect things like Git, SVN, Python environment - all of these come at a cost.
There have been several tickets that addressed individual items to speed up things, but it still does a lot, that's right.
You can try to disable some of the items of the theme to see if that helps - see the README.md file in the Powerline theme folder.
Or switch to another theme to see if it is any faster...

Thanks for your reply. Changing to even simple theme also causes like 50ms lag. Guess it is normal.


Remove deprecated fees API (closes #2077)

[ ] Notify FE Team about fees API drop.

Locked by: #2051

@ysv ready.


Consider changing package name

Current package name might be a bit too short. We should consider making it more qualified for 0.1.

Currently candidate #1 is "scala.offheap".


ZFS(?) mounts on mountpoints with spaces in the name fail

Issue description
Consider a hardware-configuration.nix containing this:
  fileSystems."/var/lib/plex/Plex Media Server" =
    { device = "stash/plex-media";
      fsType = "zfs";
    };

This fails to mount, apparently due to the spaces in the filename. I'm not sure if the problem might be in the ZFS-specific scripts, though my intuition says no; the systemd unit names are wrong.
Relevant log output:
Oct 23 15:47:21 tsugumi systemd[1]: Mounting /var/lib/plex/Plex...
Oct 23 15:47:21 tsugumi systemd[1]: Starting Import ZFS pool "stash"...
Oct 23 15:47:21 tsugumi systemd[1]: Started Create list of required static device nodes for the current kernel.
Oct 23 15:47:21 tsugumi mount[127144]: mount: /var/lib/plex/Plex: unknown filesystem type 'Media'.
Oct 23 15:47:21 tsugumi systemd[1]: var-lib-plex-Plex.mount: Mount process exited, code=exited status=32
Oct 23 15:47:21 tsugumi systemd[1]: var-lib-plex-Plex.mount: Failed with result 'exit-code'.
Oct 23 15:47:21 tsugumi mount[127138]: filesystem 'stash/home/svein/Anime' cannot be mounted, unable to open the dataset
Oct 23 15:47:21 tsugumi systemd[1]: Failed to mount /var/lib/plex/Plex.
Oct 23 15:47:21 tsugumi systemd[1]: Dependency failed for Local File Systems.
Oct 23 15:47:21 tsugumi systemd[1]: local-fs.target: Job local-fs.target/start failed with result 'dependency'.

Technical details
svein@tsugumi> nix-shell -p nix-info --run 'nix-info -m'                                               ~
these paths will be fetched (0.06 MiB download, 0.31 MiB unpacked):
  /nix/store/glnk048cqva0ig8yrjfw140z2r2v18b4-stdenv-linux
  /nix/store/kmahgaxz39r6zdq9p3jhc67gyqr7kxkk-bash-interactive-4.4-p23-dev
copying path '/nix/store/kmahgaxz39r6zdq9p3jhc67gyqr7kxkk-bash-interactive-4.4-p23-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/glnk048cqva0ig8yrjfw140z2r2v18b4-stdenv-linux' from 'https://cache.nixos.org'...
 - system: `"x86_64-linux"`
 - host os: `Linux 4.14.76, NixOS, 19.03pre-git (Koi)`
 - multi-user?: `yes`
 - sandbox: `relaxed`
 - version: `nix-env (Nix) 2.1.3`
 - channels(root): `"nixos-19.03pre155751.45a419ab5a2"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Does it work if you use
fileSystems.mediaserver =
    { device = "stash/plex-media";
      fsType = "zfs";
      mountPoint = "/var/lib/plex/Plex Media Server";
    };

?

Duplicate of #29273.
Wrote a fix for it but do not understand how to properly write a NixOS test for this scenario.
See fix: https://github.com/NixOS/nixpkgs/compare/master...aanderse:fstab-escaping
See question asking how I can write a test for this: https://discourse.nixos.org/t/dynamically-modifying-a-machine-during-a-nixos-test/1262
Would really appreciate answers on how I can write a NixOS test for this.
NOTE: i have not tested my patch yet, as I'm waiting to test it via a NixOS test instead of manually.

Have a look at a simple test script such as nixos/tests/fsck.nix.
A possible test strategy might be to create two mount points that mount the same file system. The first one is simple (without spaces in the name). Just create an empty file with touch in that path. The second mount point contains spaces. Then check with (1) systemctl if the mount unit has been successfully load and (2) if you find the file that you have created earlier under the new mount point.

@azslig left a perfect example of how to achieve this on my discord thread so I'll probably get around to writing the test today.

https://github.com/NixOS/nixpkgs/pull/49354

@Baughn This issue has now been fixed in master and back ported to 18.09 so you can close please.


Fixed testNonGenericParameter

Issue:
The testNonGenericParameter test method is verifying specific properties of the auxiliaryType class. Some of the checks (Line 84, 85) are to check if the generic type of 2nd declared field is of type Object.class and 3rd declared field is of type Number.class. However, the getDeclaredFields() used to access the 2nd and 3rd class fields is a non-deterministic function which doesn't guarantee a specific order of fields (Source). As there is no guarantee regarding the order of the returned fields, the test is failing due to differences in fields' ordering.
Solution:
The last 2 assert statement where the test is failing is trying to check if the class has one field of type Object.class and one field of type Number.class. To achieve this target, rather than explicitly accessing specific index of list returned by getDeclaredFields, we are checking if the list of fields' type contains the 2 mentioned types. This removes the dependency of a field being at a specific index and thus, fixes the test.
Steps to reproduce the error that causes the testNonGenericParameter to fail:
Install nondex tool. Installation instructions can be found at https://github.com/TestingResearchIllinois/NonDex.
git clone https://github.com/saurabh-shetty/byte-buddy/
cd byte-buddy
mvn install -pl byte-buddy-dep -am -DskipTests (BUILD SUCCESS)
mvn -pl byte-buddy-dep edu.illinois:nondex-maven-plugin:2.1.1:nondex -Dtest=net.bytebuddy.implementation.auxiliary.MethodCallProxyTest#testNonGenericParameter
Please review and consider merging this pull request.

Issue:
The testNonGenericParameter test method is verifying specific properties of the auxiliaryType class. Some of the checks (Line 84, 85) are to check if the generic type of 2nd declared field is of type Object.class and 3rd declared field is of type Number.class. However, the getDeclaredFields() used to access the 2nd and 3rd class fields is a non-deterministic function which doesn't guarantee a specific order of fields (Source).  As there is no guarantee regarding the order of the returned fields, the test is failing due to differences in fields' ordering.
Solution:
The last 2 assert statement where the test is failing is trying to check if the class has one field of type Object.class and one field of type Number.class. To achieve this target, rather than explicitly accessing specific index of list returned by getDeclaredFields, we are checking if the list of fields' type contains the 2 mentioned types. This removes the dependency of a field being at a specific index and thus, fixes the test.
Steps to reproduce the error that causes the testNonGenericParameter to fail.

Install nondex tool. Installation instructions can be found at https://github.com/TestingResearchIllinois/NonDex.
git clone https://github.com/saurabh-shetty/byte-buddy/
cd byte-buddy
mvn install -pl byte-buddy-dep -am -DskipTests (BUILD SUCCESS)
mvn -pl byte-buddy-dep edu.illinois:nondex-maven-plugin:2.1.1:nondex -Dtest=net.bytebuddy.implementation.auxiliary.MethodCallProxyTest#testNonGenericParameter

Please review and consider merging this pull request.

Please update the PR addressing the comments above.

I don't think adding Vector as a dependency is a problem. ContainsInAnyOrder will eliminate the need to iterate through fields


[Doc] Tutorial 12 - NAS with stacked LSTM

Link to the page to edit

[ ] describe the geophysical use case (SC20)
[ ] describe the stacked LSTM search space
[ ] shows a figure of the search space (figure from SC20)
[ ] shows an example architecture (figure from SC20)
[x] review what @Romit-Maulik started
[ ] add a test script

This tutorial was published during the DeepHyper Workshop at ANL in August 2022.
https://github.com/deephyper/anl-22-summer-workshop/blob/main/notebooks/2-Neural-Architecture-Search.ipynb


Replacement instead of insertion on acceptSelectedSuggestion

When I select something from the IntelliSense suggestions while the cursor is in the middle of a word, hitting Tab or Enter will both insert selected text to current cursor's position, so I have to delete the rest. Is there a way to configure Tab to use replacement mode?

/duplicate of #10266


Build failed with an exception in V0.0.4

Hey
So I updated to the last version(0.0.4) but when Im trying to build, an exception occurs.
e: E:\Flutter\flutter\.pub-cache\hosted\pub.dartlang.org\signalr_flutter-0.0.2\android\src\main\kotlin\dev\asdevs\signalr_flutter\SignalR.kt: (11, 12): Redeclaration: CallMethod
e: E:\Flutter\flutter\.pub-cache\hosted\pub.dartlang.org\signalr_flutter-0.0.2\android\src\main\kotlin\dev\asdevs\signalr_flutter\SignalR.kt: (19, 8): Redeclaration: SignalR
e: E:\Flutter\flutter\.pub-cache\hosted\pub.dartlang.org\signalr_flutter-0.0.2\android\src\main\kotlin\dev\asdevs\signalr_flutter\SignalRFlutterPlugin.kt: (13, 14): Redeclaration: SignalRFlutterPlugin
e: E:\Flutter\flutter\.pub-cache\hosted\pub.dartlang.org\signalr_flutter-0.0.4\android\src\main\kotlin\dev\asdevs\signalr_flutter\SignalR.kt: (12, 12): Redeclaration: CallMethod
e: E:\Flutter\flutter\.pub-cache\hosted\pub.dartlang.org\signalr_flutter-0.0.4\android\src\main\kotlin\dev\asdevs\signalr_flutter\SignalR.kt: (13, 20): Cannot access '<init>': it is private in 'CallMethod'
e: E:\Flutter\flutter\.pub-cache\hosted\pub.dartlang.org\signalr_flutter-0.0.4\android\src\main\kotlin\dev\asdevs\signalr_flutter\SignalR.kt: (14, 14): Cannot access '<init>': it is private in 'CallMethod'
e: E:\Flutter\flutter\.pub-cache\hosted\pub.dartlang.org\signalr_flutter-0.0.4\android\src\main\kotlin\dev\asdevs\signalr_flutter\SignalR.kt: (15, 9): Cannot access '<init>': it is private in 'CallMethod'
e: E:\Flutter\flutter\.pub-cache\hosted\pub.dartlang.org\signalr_flutter-0.0.4\android\src\main\kotlin\dev\asdevs\signalr_flutter\SignalR.kt: (16, 22): Cannot access '<init>': it is private in 'CallMethod'
e: E:\Flutter\flutter\.pub-cache\hosted\pub.dartlang.org\signalr_flutter-0.0.4\android\src\main\kotlin\dev\asdevs\signalr_flutter\SignalR.kt: (17, 23): Cannot access '<init>': it is private in 'CallMethod'
e: E:\Flutter\flutter\.pub-cache\hosted\pub.dartlang.org\signalr_flutter-0.0.4\android\src\main\kotlin\dev\asdevs\signalr_flutter\SignalR.kt: (20, 8): Redeclaration: SignalR
e: E:\Flutter\flutter\.pub-cache\hosted\pub.dartlang.org\signalr_flutter-0.0.4\android\src\main\kotlin\dev\asdevs\signalr_flutter\SignalRFlutterPlugin.kt: (13, 14): Redeclaration: SignalRFlutterPlugin
e: E:\Flutter\flutter\.pub-cache\hosted\pub.dartlang.org\signalr_flutter-0.0.4\android\src\main\kotlin\dev\asdevs\signalr_flutter\SignalRFlutterPlugin.kt: (44, 25): Type mismatch: inferred type is Map<String, String>? but MethodChannel.Result? was expected
e: E:\Flutter\flutter\.pub-cache\hosted\pub.dartlang.org\signalr_flutter-0.0.4\android\src\main\kotlin\dev\asdevs\signalr_flutter\SignalRFlutterPlugin.kt: (44, 25): Type mismatch: inferred type is Map<String, String> but MethodChannel.Result was expected
e: E:\Flutter\flutter\.pub-cache\hosted\pub.dartlang.org\signalr_flutter-0.0.4\android\src\main\kotlin\dev\asdevs\signalr_flutter\SignalRFlutterPlugin.kt: (44, 25): Type mismatch: inferred type is Map<???, ???> but MethodChannel.Result was expected
e: E:\Flutter\flutter\.pub-cache\hosted\pub.dartlang.org\signalr_flutter-0.0.4\android\src\main\kotlin\dev\asdevs\signalr_flutter\SignalRFlutterPlugin.kt: (45, 36): Type mismatch: inferred type is Map<???, ???> but MethodChannel.Result was expected
e: E:\Flutter\flutter\.pub-cache\hosted\pub.dartlang.org\signalr_flutter-0.0.4\android\src\main\kotlin\dev\asdevs\signalr_flutter\SignalRFlutterPlugin.kt: (45, 48): Too many arguments for public final fun connectToServer(url: String, hubName: String, queryString: String, result: MethodChannel.Result): Unit defined in dev.asdevs.signalr_flutter.SignalR
e: E:\Flutter\flutter\.pub-cache\hosted\pub.dartlang.org\signalr_flutter-0.0.4\android\src\main\kotlin\dev\asdevs\signalr_flutter\SignalRFlutterPlugin.kt: (45, 79): Too many arguments for public final fun connectToServer(url: String, hubName: String, queryString: String, result: MethodChannel.Result): Unit defined in dev.asdevs.signalr_flutter.SignalR
e: E:\Flutter\flutter\.pub-cache\hosted\pub.dartlang.org\signalr_flutter-0.0.4\android\src\main\kotlin\dev\asdevs\signalr_flutter\SignalRFlutterPlugin.kt: (65, 28): Not enough information to infer type variable T

FAILURE: Build failed with an exception.

Below is my code:
SignalR signalR;
 final GlobalKey<ScaffoldState> _scaffoldKey = new GlobalKey<ScaffoldState>();

 @override
 void initState() {
   // TODO: implement initState
   super.initState();
   initPlatformState();
 }

 Future<void> initPlatformState() async {
   signalR = SignalR('http://xxxxxxx/', "notificationHub",
       statusChangeCallback: _onStatusChange,
       hubCallback: _onNewMessage,
       );
 }

 _onStatusChange(String status) {
   if (mounted) {
     setState(() {
       _signalRStatus = status;
     });
   }
 }

 _onNewMessage(dynamic message) {
   print(message);
 }

 _buttonTapped() async {
   final res =
       await signalR.invokeMethod("sendNotifications", arguments: [null]);
   final snackBar =
       SnackBar(content: Text('SignalR Method Response: ${res.toString()}'));
   _scaffoldKey.currentState.showSnackBar(snackBar);
 }

How can I fix this?!

Please Do a flutter clean and try again.

Did the trick
Thanks.


Add an integration test for the 'first-operator' example

What type of PR is this?
/kind enhancement
/kind test
What this PR does / why we need it:
This ensures that changes in KUDO are reflected in this example.
Which issue(s) this PR fixes:

Fixes #827
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

NONE

So what do I have to do instead? Is the test documentation not up-to-date and needs to be changed?

I'm now scaling like it's done in operator-test.


enderpearl

when i throw an enderpearl my server lag and send alot of error msgs in console (server version paperspigot 1.8.8)

i found what is the problem if i remove this plugin EPearlCooldown the problem is fixing but can you do something about that?

What version of RealScoreboard are you using?

What version of RealScoreboard are you using?

25-12-2019 Build 1 you can see it in the picture

Please try the latest version


Adding in color name setting

This setting wasn't included in the doc

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

@mattwojo
Can you review the proposed changes? IMPORTANT: When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"

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

#sign-off


samples/xml-config/pom.xml doesn't work

Description
Steps to reproduce:
git clone https://github.com/fabric8io/fabric8-maven-plugin.git
cd fabric8-maven-plugin
mvn install
cd samples/xml-config/
mvn -Pnew fabric8:resource

[ERROR] Failed to execute goal io.fabric8:fabric8-maven-plugin:3.5.38:resource (default-cli) on project fabric8-maven-sample-xml-config: Unable to parse configuration of mojo io.fabric8:fabric8-maven-plugin:3.5.38:resource for parameter group: Cannot find 'group' in class io.fabric8.maven.core.config.MetaDataConfig
This can be fixed by adding <all> to  <label><group>.
Then the error is:
[ERROR] Failed to execute goal io.fabric8:fabric8-maven-plugin:3.5.38:resource (default-cli) on project fabric8-maven-sample-xml-config: Unable to parse configuration of mojo io.fabric8:fabric8-maven-plugin:3.5.38:resource for parameter deployment: Cannot find 'deployment' in class io.fabric8.maven.core.config.ResourceConfig -> [Help 1]
This, in fact, reduces to #1249, except hereby I suggest to fix the documentation.
Or is it in the roadmap? Is it in any branch?
How about putting this docs to a branch and removing the elements which don't work from master?
Thanks :)
Info

f-m-p version : 3.5.38
Maven version (mvn -v) :

Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T21:39:06+02:00)
Maven home: /sw/prog/maven-3.5.0
Java version: 1.8.0_144, vendor: Oracle Corporation
Java home: /sw/prog/jdk/1.8.0_144/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.13.0-37-generic", arch: "amd64", family: "unix"

Kubernetes / OpenShift setup and version :  minikube version: v0.25.0

@rhuss @nicolaferraro : I think we need to take a look at samples which might have gotten deprecated. Even I have some problems in running some of samples. It would be nice if each sample has a README for easier usage.

@rohanKanojia yes, that makes sense for sure. Actually, I'm not sure whether we run all samples during integration tests, but might make sense to have them tested automatically, too. Doesnt have to be for every PR, but at least periodically would be a nice to have.

@rohanKanojia @rhuss The samples POM use fmp 3.2 as dependencies even though we are on 4.0 now. Should I look into the deprecated samples and send a PR for what can be done?

@dev-gaur : Sounds good. :+1:


⚠ Bofrost.be has degraded performance

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

HTTP code: 200
Response time: 1559 ms

Resolved: Bofrost.be performance has improved in 4f1dbeb after 6 minutes.


Deprecate Old Processing Class

The new mt_metadata processing class is implemented (#153).  Both types of configs are currently supported.

merged into main with PR-179


Hyc 114 landing page

What does it do?
Any helpful background information?
Any new dependencies? Why were they added?
Relevant screenshots/gifs
Does it close any issues?
Closes #...

When using smartphone resolutions, text is displayed weirdly in this section.
When there is a line break, text appear to be centralized, when text fits in a single line it appears left aligned (notice "Profile Analysis " and "Front-run").
Everything should display the same format, which I believe should be center aligned in this case.

HYC logo looks distorted. Image is probably in wrong resolution.


[BUG]

Describe the bug
Cannot move beyond service selection. Every time I select amazon music and sign in, it just opens amazon music web player and when you check the extension, it is still asking to connect a service.
Music service
Amazon music
To Reproduce
Steps to reproduce the behavior:

Click continue with Amazon music
Sign in to Amazon

Device (please complete the following information):

OS: Windows 11
Browser : Chrome
Version: 129.0.66

Thanks for the report, and sorry you're facing this issue! I just gave this a try on my mac as I'm currently traveling, and it seems to work for me still. i'll check it out on my Windows desktop tomorrow.


MUIDatePicker can be a controled componenet, and has an implicit property of value

Material-ui's DatePicker looks for value (and valueLink) in its props, even though these are not listed in its propTypes.
However, DatePicker uses props.hasOwnProperty('value') to test whether the component is controlled, so an UndefOr[Date] might not be the appropriate way to add value to MuIDatePicker.
Edit: if UndefOr are added to a js.Dynamic using foreach, it should be OK.
For what it's worth, TimePicker does not support the value property (!)

value prop is now added to Mui[Time|Date]Picker


Multiple pipes broke fzf?

Checklist

[X] I have read through the manual page (man fzf)
[X] I have searched through the existing issues

Output of fzf --version
0.45.0
OS

[ ] Linux
[X] macOS
[ ] Windows
[ ] Etc.

Shell

[ ] bash
[X] zsh
[ ] fish

Problem / Steps to reproduce
I have this:
# __fzf_git_commit () {
echo '7e0fb03\n665581a' | fzf --bind=ctrl-u:accept
# <..> -- get $key and $commit here, $commit is commit hash same as one of two above
if [[ "$key" == "ctrl-u" ]]; then
    git show $commit | delta --no-gitconfig | bat --pager "less -R" --file-name "diff commit $commit"
    zle redisplay
    __fzf_git_commit   # --> call this script again, I want to re-list commit hash to select again after `git show above`
# idea is after "git show" I can just select another git commit hash to ctrl-u again.
# }

But I got the issue that I after press ctrl-u, git show show correct contents, then normally I will just press q to exit less to drop to __fzf_git_commit again, but it stuck, I can't exit.
How to exit git show <..> and drop back to `__fzf_git_commit

https://github.com/junegunn/fzf/issues/2579


fix: update all deps to latest versions

Pulls in changes from @libp2p/interface-transport, @libp2p/components etc.

Superseded by https://github.com/libp2p/js-libp2p/pull/1411


Fixed grammar issue

Replaced / with .

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

@jweissig : Thanks for your contribution to the Azure documentation! The author, @rwike77, has been notified to review your proposed change.

@jweissig  Looks good, thanks.

#sign-off


How can I provide access to lib .less files in a published package?

Type of Issue
[ ] Bug Report
[ x ] Feature Request

Description
We developed an UI Framework that contains Angular components as well as standalone *.less files that are exported by a styles.less in the root of the library
What is the best aproach to provide this styles.less file (maybe with the content of all @import style files) when publishing a library with ng-packagr?
Is this even possible or should I add a custom step in my build process after ng-packagr finished it's build?

@kroeder at the moment you will have to run a script to copy the files after the build is complete.

Thanks!


Improve failure message for failure.assertHas{Description,Cause}

We now show what description/cause was searched instead of only showing the existing descriptions/causes.

@bot-gradle test and merge

OK, I've already triggered a build for you.


A J: Watch qualitiasoft.com

A J requests the watch of the watch_keyword qualitiasoft.com. See the Metasmoke search here and the Stack Exchange search here.

!!/approve


Phenomenon: WebGL Residue / Resident RAM Leak

I develop a game that's left open 24/7 in a browser, so even the slightest memory leaks or bugs causing leaks stack up and crash things - previous examples include an early PIXI.Text texture destroy issue, and a temporary Chrome bug, tiniest issue, and the game catches it like a bug catcher :|
Latest issue I've been facing is an invisible increase in memory usage in Chrome, JS Heap is 24MB's and stable, yet the actual memory usage increases from 100-150MB's to 400+MB's
What makes things bizarre is that even after the tab is refreshed, that additional 300MB's is resident
As I don't know the inner workings of the WebGL system, can you give me any clues as to what could be the cause?

which version of pixi do you use?

I was using 4.6.2, and indeed that's probably it - going to test spamming Graphics on monday to verify (I've spammed pretty much everything else, but graphics didn't occur to me)

Spammed creating and destroying lines, compared 4.6.2 and 4.8.1 - couldn't reproduce the resident leak issue I mentioned
However, during this test, 4.6.2 produced 4fps, while 4.8.1 was 44fps - so there was a change
I'll keep an eye on the issue

Closing for now. We'll re-open if there's any more info on a recent version :)


Docker: can't reach Martin server

Hi there,
I wanted to try out Martin server and deployed it as Docker image to a K8s cluster.
Things seem to work alright, in the log messages I can see the auto-discovery of my geospatial tables.
But I can't reach the Martin server.
Could the problem be related to the last log entry?
WARN martin::pg::config] Discovering tables in PostgreSQL database 'xyz' is taking too long. Make sure your table geo columns have a GIS index, or use --disable-bounds CLI/config to skip bbox calculation.

All tables have a geo column...

Yes, you can't reach it because it hasn't started yet - it is still trying to find the tables/functions you have in your postgres, and it is taking too long (good thing we added that warning :)) -- i would suggest to follow the suggestion, but before that - when martin is just starting, check which queries are currently running in postgres, esp the long running ones, and see why it is taking so long.

I will close the question.
Thanks!

yeah, clearly something is wrong with your data - check the long running queries, you will know which table has no GIS index.


Picovoice Console Issue:

Hi, I am using a PsoC6 with a Rhino Speech-to-Intent context (EN). My problem is $pv.Percent and $pv.TwoDigitInteger return the number's literal rather than the number itself. My version of picovoice is 2.1.0.

@Uwita082, all slot values are strings because we don't want to influence the data type that the application has to use to store the number. Therefore, the number string should be parsed at the application level to the desired number type. The built-in slots simply convert something like 'twenty-five' to '25' so that it can be parsed directly.

Yea, I get that it returns a string, of course. I was expecting that the parsed value would be '25' and not 'twenty five'. Or am I missing something here?

Ah, okay, well that's not expected. We've just tried the built-ins here and can confirm that we're getting the correct number values. Are you seeing this when you test your context in Picovoice Console as well or does it just occur on PsoC6? If you feel comfortable sharing your context, we can see if there are any problems with the context itself.

Hi, it just occurs on PsoC6.
My context is:
context:
  expressions:
    changeColor:
      - "@turn (all, the) lights (to) $color:color"
      - "@turn (the) [color, @lights] (to) $color:color"
    changeLightState:
      - "@switch $state:state (all, the) @lights"
      - "@switch (all, the) @lights $state:state"
    changeLightStateOff:
      - shut off (all, the) @lights
      - shut (all, the) @lights off
    changeBrightnessState:
      - "@dim (the, all) lights"
      - "@dim (the, all) @lights ($optionBrightness:option) $pv.Percent:percent"
      - "@turn (the) (@lights) @brightness ($optionBrightness:option)
        $stateBrightness:brightness"
      - "@turn (the) (@lights) @brightness $stateBrightness:brightness
        ($optionBrightness:option) $pv.Percent:percent"
      - "@turn (the) (@lights) @brightness ($optionBrightness:option)
        $pv.Percent:percent"
  slots:
    color:
      - blue
      - green
      - orange
      - pink
      - purple
      - red
      - white
      - yellow
    state:
      - off
      - on
    stateBrightness:
      - up
      - down
    optionBrightness:
      - to
      - by
      - at
  macros:
    lights:
      - lights
      - light
    turn:
      - turn
      - make
      - change
      - set
      - switch
    switch:
      - switch
      - turn
    dim:
      - dim
    brightness:
      - brightness

@Uwita082 - thanks for reporting. We've reproduced it on PsoC6 and are actively working on a fix.

Hey @Uwita082 I've pushed a library with a patch, could you update the PSoC6 Picovoice library to v2.1.3 and let me know if that resolves the issue?

Hello. Yea, it now shows the numbers correctly. I only tested with $pv.Percent, but I suppose it will work with the others as well. Thanks!

Great! Thank you for the report.
I'm closing this issue as fixed but feel free to open another if you run into any more problems.


Create run_tsets.yaml

Please always provide the GitHub issue(s) your PR is for, as well as test URLs where your change can be observed (before and after):
Fix #
Test URLs:

Before: https://main----.hlx.page/
After: https://----.hlx.page/

https://vvedagiri-patch-1--fhelix--vvedagiri.hlx.page/


Link icon disappears when reloading the page

Describe the bug
When reloading the page, the link icon disappears but the actual link stays attached to the node. This makes it impossible to actually open the link, even though the icon in the toolbar still says "Remove a link"
To Reproduce
Steps to reproduce the behavior:

Add a link to any node
Reload the page
Watch the icon below the node disappear, even though the link is still attached to the node

Expected behavior
The <text> block should remain visible even when reloading a page so the link remains always accessible.

I cant reproduce this on teammapper.org

I cant reproduce this on teammapper.org

I'll see if I can reproduce this on main, but I assume not.

Was an error in #325 and not on main.


Strange behavior on coercing typeof T to generic constructor interface

Can anyone shed a bit of light on the following behavior
interface Constructor<T> {
	new(...args): T;
	prototype: T;
}

class A<T> { a: T; }
class B<T> extends A<T> { b: T; }
var c:Constructor<B<boolean>> = B; // error here

class A1 { a: boolean; }
class B1 extends A1 { b: boolean; }
var c1:Constructor<B1> = B1; // no error here

The error is:
Type 'typeof B' is not assignable to type 'Constructor<B<boolean>>'.
  Type 'A<any>' is not assignable to type 'B<boolean>'.
    Property 'b' is missing in type 'A<any>'.

I suspect that it is a correct behavior in the current design of the type system, I just don't understand two things:

How the error is inferred
Can my sample be fixed somehow without killing actual types with <any>

@JsonFreeman, @ahejlsberg?

Playing with the repro, this really looks like a bug to me. I can't see any reason this should happen.

The example I gave @sandersn for why I consider this a bug
interface Constructor<T> {
    new(...args): T;
}

class A<T> { }
class B<T> extends A<T> {
	b: T;
	// This line shouldn't do anything, but its presence removes the error
	// constructor() {super(); }
}
var c:Constructor<B<boolean>> = B; // error here

I agree with Ryan. Looking at the error, I imagine that in the inherited constructor for typeof B, the return type A<any> fails to be replaced with B<any>

Maybe. So far I've tracked it back to that the construct signature for the generic B<T> has the target A<T>, and when getErasedSignature is called to convert B<T> to B<any>, it follows the target chain back to A.
I don't understand what the meaning of Signature.target is -- the comment says "instantiation target", and I don't think that A<T> (base constructor) should be an instantation target of B<T> (derived constructor) for construct signatures. That's what I'm looking at now.

I think it is the instantiation target. Suppose it was A<U> and B<T> extends A<T>. Then B would have to inherit A's signatures, but replace all the U's with T's. In other words, it has to instantiate the signatures of A with a mapping U -> T, and the A signature becomes the target. Check out the function getDefaultConstructSignatures, in particular, the line that says

const sig = typeParamCount ? getSignatureInstantiation(baseSig, typeArguments) : cloneSignature(baseSig);

Calling getSignatureInstantiation will make A's signature the target.
I think I am right about this.

Hmm. If I understand your hypothesis, it's that the signature that B inherits from A should have its return type replaced, but does not.
However, I can see that getDefaultConstructSignatures does this right after calling getSignatureInstantiation. A<U> gets replaced with B<V> as the return type. (I renamed the type variables to be unique -- see the renamed repro below.) So I think this hypothesis is false.
If getDefaultConstructSignatures is correct, is the answer for getErasedSignature not to follow the target chain back?
Renamed Repro
interface Constructor<T> {
    new(...args: any[]): T;
    prototype: T;
}

class A<U> { a: U; }
class B<V> extends A<V> { b: V; }
var c:Constructor<B<boolean>> = B; // error here

I have a feeling that the bug has to do with this line in getErasedSignature.

signature.erasedSignatureCache = instantiateSignature(getErasedSignature(signature.target), signature.mapper);

Because the signature in B has a target, it erases the target, but forgets about the changed return type. So you may be on the right track about not following the target chain. I think that signatures that get instantiated multiple times should be taken care of in instantiateSignature already (the block that creates freshTypeParameters). There are two reasons that a signature might be multiply instantiated: one of them is this generic inheritance case where the type parameters from the base type get overwritten by the derived type's type parameters. The other is when the signature references type parameters from outside. I think some of the core instantiation code fails to treat the former case properly.
One other thing to look at is in getReturnTypeOfSignature, where there is a similar phenomenon that may also cause an issue:
if (signature.target) {
    type = instantiateType(getReturnTypeOfSignature(signature.target), signature.mapper);
}

So first I tried the nuclear option: I deleted the target-following code in getErasedSignature, which fixes this test and doesn't cause any other test to fail. But I don't trust that our test suite has this much detail, and I don't think the target-following code exists by mistake.
@ahejlsberg, can you take a look at this? @mhegazy says that he thinks you wrote this code. And I don't know enough about instantiation in general to understand single vs multiple instantiation, etc.

I took a look, and the issue does indeed appear to be caused by the target-following code in getErasedSignature. It's been a while since I wrote that code and I think it was intended as an optimization. But, it obviously doesn't work and I think it is fine to remove it. The target and mapper properties are there to remember the original signature and mapper in cases where we instantiate a signature for which we haven't yet computed the return type. getReturnTypeOfSignature then ends up going back to the original signature, getting its return type, and instantiating that. That code all looks good. But the check for target in getErasedSignature doesn't make sense because erasing the signature has nothing to do with whether the return type is deferred.
So, summing up, I'm fine with removing the target-following code and I just confirmed that our tests all run fine.

I agree, I can't think of any reason why removing this would cause a problem.

All right, I'll publish the PR that deletes the target-following code.

Pull request is up


A0-3225: Add nightly update tests

Description
Add two nightly pipelines that will test updating testnet and mainnet to the latest commit.
Type of change

CI change not breaking anything

This is superseded by https://github.com/Cardinal-Cryptography/aleph-node/pull/1489 .


Cannot resolve symbol 'File' in settings.gradle

I have an android project and now after updating to gradle 6.5.1 I see this error message on android studio. Although the project still builds OK.
Earlier with gradle 6.1.1 I never encountered this problem.

Error message is not shown anymore on Android studio 4.1.2. So closing the issue.

Error message is not shown anymore on Android studio 4.1.2. So closing the issue.

I have the bug in just installed Android 4.2

I have the same bug in Android 4.2. For URL same - Cannot resolve symbol.

Grzegorz,
I tried everything to resolve it ... the final thing that worked- uninstall 4.2.0 or 4.2.1 and re-install 4.1.3. All those issues went away.
Used gradle 4.1.3 and gradle wrapper 6.5 in the working 4.1.3 solution.
Brian

From: Grzegorz Ołówka @.>
Sent: Friday, May 14, 2021 5:09 AM
To: gradle/gradle @.>
Cc: Brian Reinhold @.>; Comment @.>
Subject: Re: [gradle/gradle] Cannot resolve symbol 'File' in settings.gradle (#15363)
I have the same bug in Android 4.2. For URL same - Cannot resolve symbol.
[Przechwytywanie]https://user-images.githubusercontent.com/14806683/118248647-d9676400-b4a4-11eb-936e-4a8f340148dc.PNG
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/gradle/gradle/issues/15363#issuecomment-841119162, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJMDO64ZCQU3ZW4FVPKYP6DTNTSF3ANCNFSM4UGCSGSA.

@brianreinhold unfortunately this is the only solution at the moment :(
The second problem is red lines that display in the IDE for all generated Navigation Component (directions, args etc.) classes from the JetPack. Problem is only inside java classes. Everything is displayed correctly in Kotlin classes. Adds attachments with screenshots.

Tried everything mentioned above. Uninstalled, deleted all associated files and folders, reinstalled different versions of Android Studio and gradle. Still, no luck.
Finally fixed by changing JDK version to corretto-1.8.0_292.

i think you are using IDEA that is not support Enterprise IDE features....

@brianreinhold @esiek
I found a solution. File -> project structure，switch annother jdk location，click "apply"，and then resume origin jdk location, and click "apply".
It work for me and  mine friends.

@ChenJunXu Need to try that should it happen again. I just switched to OpenJDK and that solved it. Perhaps that is a manifestation of your solution!

Is this a bug on gradle or on android studio?

I'm running Android Studio 2020.3.1 and I'm also having this error. Although I can build without problems, it is just annoying to see the errors in the editor.

Don't worry about this problem

Just run your app as it is.

big thank you for answering on my questions)


Broken urls for javacc releases | Error no main manifest attribute, in target/javacc.jar

Hello,
Can you tell why all download url are broken? It is impossible to download javacc at least 7.0+ releases.
Exemple for last release 7.0.8: 404 Not found
https://github.com/javacc/javacc/archive/7.0.8.zip
Also with installation guide i am getting this error even with a fresh build from the source:
this error each time
no main manifest attribute, in target/javacc.jar

Hello...
Yes since 7.0.7 links are broken... Anyway, you can use and download here: javacc-7.0.8
" Error no main manifest attribute, in target/javacc.jar" This is not an error because ther are multiples "main" classes in the javacc jar: javacc, jjtree and jjdoc

You have to run javacc from the scripts folder of the javacc repository. Not execute the build jar with java -jar
 D:\SyntaxChecker> javacc .\SyntaxChecker.jj


related content causing a weird date issue

@marieconnelly spotted this:

The date started acting strange after that article was assigned to be the related post for a blog post from today. Very weird.

Closed in favor of #287.


Seperate resolves for each entry

Right now I have managed to setup a single webpack configuration and webpack-dev-server (hotload) that managing all my subprojects/plugins at the same time.
However, I would like to be able to resolve folders for each subproject, such as /components, so as to avoid long relative paths. Is this possible?
I have the following folder structure
    -/ MyProject
      -/ node_modules
      -/ plugin1
        -/ node_modules
        - package.json
        ...
      -/ plugin2
      -/ plugin3

    -/ shared (styles etc)
    - webpack.config.js
    - package.json

My webpack conf:
var webpack = require('webpack');
var path = require('path');
var ExtractTextPlugin = require('extract-text-webpack-plugin')

var env = process.env.NODE_ENV;
var isProduction = env === 'production'
var host = 'http://localhost:4000';
var socketHost = 'ws://localhost:4000';

    module.exports = {
      devtool: 'source-map',
      entry: {
        script: ['webpack-hot-middleware/client', './js/script/src/index.js'],
        app: ['webpack-hot-middleware/client', './js/site/index.js'],
      },
      output: {
        path: path.join(__dirname , 'dist'),
        filename: '[name].js',
        publicPath: '/static/'
      },
      resolve: {
        root: path.resolve(__dirname),
        alias: {
          styles: path.join(__dirname, 'styles'),
          app: path.join(__dirname, 'js', 'site'),
          script: path.join(__dirname, 'js', 'script'),
        }
      },
      module: {
        loaders: [
          {
            test: /\.jsx?$/,
            exclude: /node_modules/,
            loader: 'babel-loader',
          },
          {
            test: /\.scss$/,
            loaders: ["style", "css", "sass"]
          },
          {
            test: /\.(otf|eot|svg|ttf|woff|woff2)(\?.+)$/,
            loader: 'url-loader?limit=8192',
            include: /node_modules/
          }
        ]
      },
      plugins: [
        new webpack.DefinePlugin({ PRODUCTION: false, APP_HOST: JSON.stringify(host), WS_HOST: JSON.stringify(socketHost) }),
        new webpack.optimize.OccurenceOrderPlugin(), // recommanded by webpack
        // new webpack.HotModuleReplacementPlugin(),
        new webpack.NoErrorsPlugin(), // recommanded by webpack
        // new ExtractTextPlugin('bundle.css')
      ]
    };

Maybe the solution is to use webpack in multicompiler mode. You could end up with something like this:
module.exports = [{...}, {...}]; // configuration per entry

Setting up resolve rules per entry should achieve what you want.
Feel free to re-open at Stack Overflow for more options.

I have a similar issue.
Hope you can help me with it :)
http://stackoverflow.com/questions/39386394/webpack-resolve-per-entry-with-commonschunkplugin-enabled


Computation with distributed arrays results in unexpected PartitionSpec

Description
Computation with distributed arrays seems to normalize PartitionSpec in at least three ways:

Leading axes of length 1 are replaced by None.
Trailing axes of length 1 are removed.
Strings are replaced by tuples of strings.

I found this behavior rather unexpected, because this normalization is applied and validated somewhat inconsistently:

PartitionSpec objects don't get normalized when put into a NamedSharding.
Partition specs on arrays created with device_put also are not get normalized.
Differently normalized NamedSharding objects sometimes (but not always) compare equal.
Differently normalized PartitionSpec objects never compare equal.

Example code:
import chex
import jax
import jax.numpy as jnp
import numpy as np

chex.set_n_cpu_devices(8)
P = jax.sharding.PartitionSpec

mesh = jax.sharding.Mesh(jax.devices(), axis_names=['x'])
spec = P('x')
sharding = jax.sharding.NamedSharding(mesh, spec)

x = jax.device_put(jnp.arange(32), sharding)
y = x + 1

print('example one:')
print(f'{x.sharding=}')
print(f'{y.sharding=}')
print(x.sharding == y.sharding)
print(x.sharding.spec == y.sharding.spec)

devices = np.reshape(jax.devices(), (1, 8, 1))
mesh = jax.sharding.Mesh(devices, axis_names=['x', 'y', 'z'])
spec = P('x', 'y', 'z')
sharding = jax.sharding.NamedSharding(mesh, spec)

x = jax.device_put(jnp.arange(32).reshape(1, -1, 1), sharding)
y = x + 1

print()
print('example two:')
print(f'{x.sharding=}')
print(f'{y.sharding=}')
print(x.sharding == y.sharding)
print(x.sharding.spec == y.sharding.spec)

Prints:
example one:
x.sharding=NamedSharding(mesh={'x': 8}, spec=PartitionSpec('x',))
y.sharding=NamedSharding(mesh={'x': 8}, spec=PartitionSpec(('x',),))
True
False

example two:
x.sharding=NamedSharding(mesh={'x': 1, 'y': 8, 'z': 1}, spec=PartitionSpec('x', 'y', 'z'))
y.sharding=NamedSharding(mesh={'x': 1, 'y': 8, 'z': 1}, spec=PartitionSpec(None, ('y',)))
False
False

What jax/jaxlib version are you using?
No response
Which accelerator(s) are you using?
No response
Additional system info
No response
NVIDIA GPU info
No response

I think normalization is fine, but it's less suprising to users if it's done consistently, e.g., JAX should either never normalize, or normalize in every case where it's possible.
As a concrete suggestion, normalizing strings to length 1 tuples of strings could be done every time a PartitionSpec is created, and removing length 1 dimensions could be done every time a partition spec is put inside a NamedSharding.

If you want to compare 2 shardings, you can use == or is_equivalent_to for comparison which will do all the necessary canonicalizations for you.

As noted above (see my "example two"), this is currently not true. Equivalent NamedSharding objects do not always compare as equal. I think this is probably a bug? My guess is that it may result in some unexpected cache misses.

Equivalent NamedSharding objects do not always compare as equal.

They do. The equality is not implemented by comparing the PartitionSpecs. Try doing x.sharding == y.sharding instead of accessing spec.

Ohh sorry.. I missed that you were doing that. Hmm.. let me check

I think this is WAI. There won't be any cache misses though. You can test that by running it via jit and check that the compilation cache is hit.

I can probably fix the tuple thing for you though. That is a reasonable request. Let me send a CL for it.
Fun fact, I tried to fix it almost 1 year ago to normalize everything but don't remember why I never submitted that CL.

Building on my second example, I do see a cache miss if you try to pass an equivalent sharding that does not compare as equal as a static argument to jit:
import chex
import jax
import jax.numpy as jnp
import numpy as np
import functools

@functools.partial(jax.jit, static_argnames=['sharding'])
def f(x, sharding):
  print('compiling')
  return x

chex.set_n_cpu_devices(8)
P = jax.sharding.PartitionSpec

devices = np.reshape(jax.devices(), (1, 8, 1))
mesh = jax.sharding.Mesh(devices, axis_names=['x', 'y', 'z'])
spec = P('x', 'y', 'z')
sharding = jax.sharding.NamedSharding(mesh, spec)

x = jax.device_put(jnp.arange(32).reshape(1, -1, 1), sharding)
y = x + 1

f(x, x.sharding)  # prints "compiling"
f(x, y.sharding)  # prints "compiling" again

Good point. About the cache miss, I meant that without the static_argnames you won't see a cache_miss.
I'll try to fix this (but I don't guarantee anything :)). Thanks for the repro!

I would definitely fix the equality comparison for NamedSharding.
I'm less sure it would be a win to partially normalize PartitionSpec. Possibly normalizing length 1 tuples to strings instead would actually be more readable/less surprising.

There is probably also room to improve the docs here to note this equivalence, e.g., on the PartitionSpec docstring :)


OR operator

Hi whyboris, I think it would be useful to have an OR operator.

I added circles around them to indicate that they are clickable elements, alternatively underlining would also indicate interactivity.

Interesting idea!
Note: at the moment there is an or search - you just have to enable it in the settings (1st tab) "File name with each" vs "File name with any".
As soon as you start mixing "and" & "or" in one sentence, I think you need parentheses for clarity, which would complicate things.
At the moment in the app there isn't a way to perform a complex search that mixes "and" & "or" - but allowing toggling of the and/or would be quite a large rewrite I think 🤔 so I'm reluctant to try at this time.
In the example case you give, the closest we could do is perform two searches "mario and luigi" and later, independently, clearing the search results, search for "bowser". It's not as good as what you propose, but I hope it works well enough when the desire strikes 😅

Oh you're right, I can use the any function to get the same outcome of what I was trying to do.
thanks!


Bump prost to 0.11.0 and tonic to 0.8

This also removes the build dependencies on prost-build and tonic-build
because of the new requirement for protoc to be installed. Instead,
the generated code is committed as part of this PR, with instructions on
how to regenerate it in Cargo.toml. The build script is still present
but disabled using build = false in Cargo.toml.
This should speed up build times and reduces our dependencies, which is
great!

Marking as draft until https://github.com/hyperium/tonic/pull/1065/ is merged and released, and I can remove the patches.


fix: 🐛 Select all option not hidden when filtering

When both includeSelectAll and includeFilter are passed and a filter
is entered by the user, the select all option does not initially
disappear.  If the user clicks the select all option it selects all
options (not just all filtered options) and then disappears.

:tada: This PR is included in version 4.4.5 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Abstract / Derived Class Deserialization

Hello. I have model binding problem, like this. Can I make such binding with json api and saule?

It doesn't really seem to fit very nicely in the JSON api spec to do such a thing. Especially since the $type value must be the first value in the object. Perhaps it could work if you create an attribute named $type?
public class MyResource : ApiResource
{
  public MyResource()
  {
    Attribute("$type");
  }
}

then in your payload:
{
  "data": {
    "type": "my-type",
    "attributes": {
      "$type": "MyApp.Api.ConcreteType"
    }
  }
}

I suppose the "recommended" way to do it using JSON API is to set different types for the different subclasses under the data hash.

I came here to ask something very similliar. Right now iirc the "type" parameter sent by the client is not interpreted at all in the deserialization. It would be great if we had a way to do this. ALSO it would be great to be allowed to return multiple APIResources that are derived from each other from a webapi action.
~Cheers

Just came back to tell @aariabov that he probably can make use of the Default settings for the used Newtonsoft serializer. I just added these lines:
JsonConvert.DefaultSettings = () => new JsonSerializerSettings
{
    TypeNameHandling = TypeNameHandling.Auto,
};

and was able to use derived classed in nested attributes. To use derived classes in top level (ApiResources) would probably require a lot of work on Saule and should be really thought about as it seems to go against the RESTful philosphy and actually would be better suited for RPC.
~Cheers


Expire OTP tokens after a configurable threshold for consent requests

Code Changes

[x] Stores an attempt_count alongside the verification code for a consent request
[x] Increments the attempt_count each time a verification attempt is made
[x] Compares attempt_count to the CONFIG.security.identity_verification_attempt_limit var at verification time
[x] If the code is correct, allow
[x] If incorrect, disallow
[x] When attempt_count is reached, or verification succeeds, remove verification code from the cache so it can't be used again

Steps to Confirm

[ ] nox -s test_env
[ ] navigate to the privacy centre, and begin a consent request
[ ] send an invalid verification code to /api/v1/consent-request/{consent_request_id}/verify three times
[ ] send the valid verification code to /api/v1/consent-request/{consent_request_id}/verify once, and confirm the request fails

The consent request verification data is in the format
{
  "code": "12345",
  "identity": {"email"<EMAIL_ADDRESS>  "consent": [{"data_use": "email", "opt_in": True}],
}

Pre-Merge Checklist

[ ] All CI Pipelines Succeeded
Documentation Updated:

[ ] documentation complete, or draft/outline provided (tag docs-team to complete/review on this branch)
[ ] documentation issue created (tag docs-team to complete issue separately)

[ ] Issue Requirements are Met
[ ] Relevant Follow-Up Issues Created
[ ] Update CHANGELOG.md

Description Of Changes
This change stops bad actors from brute force attacking the consent request endpoint until they successfully guess the verification code and falsely add consent preferences.

Now that the verification code is being purged on that first successful POST, it's failing on the second and we can't retrieve the preferences.

Great spot — will address.


Documentation: Add an example configuration for running via VSCode (backend only)

Moving this issue along with #14


Add users class to schema file in init process

If the init process php artisan propel:laravel:init is changing Laravel Auth to Propel it should also add the tables users and password_reminders to the default database/schema.xml file while creating it.
https://github.com/propelorm/PropelLaravel/blob/develop/resources/auth_schema.xml
(this link might be outdated in the future because it links to the develop branch)

@JHGitty , it's enough just copy that schema and it will take in account of ORM, isn't it? I was sure that it's so. That auth schema copies to your database directory during propel:laravel:init


No floats

from https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#primitive-types

Float changes LGTM


Find a way to link errors to page with explanations

It would be nice if we could overwrite the behavior of the "Show Error Help" command in the context menu of the error pane (see this example image) to open the page http://doc.rust-lang.org/error-index.html with the appropriate anchor (e.g. this for E0297). We already forward the error codes, but probably something needs to be done within the actual VS extension (as opposed to the MSBuild module, which only outputs text that is then automatically parsed by VS).

Quick note: the DocumentTask (used in IDEBuildLogger.cs) has a Help event (see MSDN). This is fired when clicking on the entry in the context menu, but seems to be not fired when F1 is pressed (which should do the same thing) ...


contramap on Subscriber

We have contramap for Consumer, now we also have Profunctor instance for Subject and it might be useful to have Contravariant for Subscriber.
Implementation of Consumer.contramap

👍

@alexandru I went ahead and implemented it for both Observer and Subscriber but I have trouble testing the laws because I have to write Eq instance for Observer. Usually it's tested using side-effects but here I don't know implementations. Any ideas?


Provide better error messages when invalid values are passed

It appears I can't use a Bucket where an IBucket is expected. Example:
"$schema": "./cdk.schema.json"
Resources:
  MyBucket:
    Type: aws-cdk-lib.aws_s3.Bucket
  MyDist:
    Type: aws-cdk-lib.aws_cloudfront.Distribution
    Properties:
      defaultBehavior:
        origin:
          aws-cdk-lib.aws_cloudfront_origins.S3Origin:
            bucket: MyBucket

throws the error:
Error: Cannot parse class type aws-cdk-lib.aws_s3.IBucket with value MyBucket

Current error for this is:
Error: Expected object, got: {"type":"string","value":"MyBucket"}


Set info parameters to what the old standard defined

This fixes the problem I have with the https://github.com/marco-c/web-push library and the latest version of this library.
https://tools.ietf.org/html/draft-thomson-http-encryption-01

The info parameter is set to the ASCII-encoded string "Content-Encoding: aesgcm128".

https://tools.ietf.org/html/draft-ietf-httpbis-encryption-encoding-00

The info parameter to HKDF is set to the ASCII-encoded string "Content-Encoding: aesgcm128", a single zero octet and an optional context string.

Thanks @marco-c, it's hard to track the changes when you make them months apart.

No problem! Could you release a new version of the package on npm? I'd like to update the dependency in web-push.

Ack, inbound.


{AKS} Format aks run command test case

Description

Format aks run command test case.
Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature

This checklist is used to make sure that common guidelines for a pull request are followed.

[ ] The PR title and description has followed the guideline in Submitting Pull Requests.

[ ] I adhere to the Command Guidelines.

[ ] I adhere to the Error Handling Guidelines.

AKS


heimer: 2.4.0 -> 2.5.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/juzzlin/heimer/releases.
meta.description for heimer is: "Simple cross-platform mind map and note-taking tool written in Qt"
meta.homepage for heimer is: "https://github.com/juzzlin/Heimer"
meta.changelog for heimer 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

/nix/store/inryyvzww55dlgbrbwns9qjh013q89jp-heimer-2.5.0/bin/heimer passed the binary check.

/nix/store/inryyvzww55dlgbrbwns9qjh013q89jp-heimer-2.5.0/bin/.heimer-wrapped passed the binary check.

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

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

found 2.5.0 with grep in /nix/store/inryyvzww55dlgbrbwns9qjh013q89jp-heimer-2.5.0

found 2.5.0 in filename of file in /nix/store/inryyvzww55dlgbrbwns9qjh013q89jp-heimer-2.5.0

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

du listing: https://gist.github.com/92c11422033bb53fe93cdca2493fdba6

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

3 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
0 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
heimer

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/inryyvzww55dlgbrbwns9qjh013q89jp-heimer-2.5.0 \
  --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 heimer https://github.com/r-ryantm/nixpkgs/archive/bd5633856fe49ec50d8e0f9708b06f0cb7cb6c41.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/inryyvzww55dlgbrbwns9qjh013q89jp-heimer-2.5.0
ls -la /nix/store/inryyvzww55dlgbrbwns9qjh013q89jp-heimer-2.5.0/bin

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

1 package built:

heimer

Maintainer pings
cc @dtzWill for testing.

Result of nixpkgs-review pr 120951 at bd563385 run on x86_64-linux 1

1 package built successfully:

heimer

1 suggestion:

warning: unclear-gpl
gpl3 is a deprecated license, please check if project uses gpl3Plus or gpl3Only and change meta.license accordingly.
Near pkgs/applications/misc/heimer/default.nix:20:5:
   |
20 |     license = licenses.gpl3;
   |     ^


ç

Describe the bug
A clear and concise description of what the bug is.
Dejavu Version
Your version of Dejavu and how you're running it: Web, Chrome Extension or as a Docker Image.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

@marcgise I don't see a description of the issue you are facing here.
Can you update the description?

Please close this Issue, was created by mistake


Adding attribution text

This PR addresses #25 by adding add_attribution to the plotting module. By default, all plotting functionality will add an attribution statement equal to:
("Map tiles by Stamen Design, under CC BY 3.0. "\
  "Data by OpenStreetMap, under ODbL.")

but can be changed anywhere in the plotting methods across the library.

@ljwolf if this looks good and passess tests (pending on #42), I'll cut a release candidate this week so it's pip installable

Coverage increased (+0.3%) to 93.86% when pulling 5e9709f6240f7e7e5c2fcaa681fe1f39c7ea1202 on add#25 into 8e5039b5ceb66e36f089cec3bd90ad0c7e91fbb2 on master.

Merging to push new release in time for semester


React Tutorial: Disallow a gamer from editing current game while viewing historical moves

Currently the final code version of the tutorial allows you to edit historical games moves. Added a small section and applicable code which would stop users from being able to edit a game while viewing history.

The current behavior is intentional. You must have overlooked the following paragraph in the tutorial:

We will also replace reading this.state.history with this.state.history.slice(0, this.state.stepNumber + 1). This ensures that if we “go back in time” and then make a new move from that point, we throw away all the “future” history that would now be incorrect.

Clearly, this game allows the user to overwrite the past history.

@smikitky
Ah, you're absolutely right. I was able to finish the tutorial. I didn't originally have that line of code in my version either. I must have missed the bottom part of the tutorial or something. Thanks for pointing that out.
It's a little strange to be intentional, but you're absolutely right that it was intentional based on that last paragraph.