[PyTorch] Reduce the CPU overheads of GroupedLinear

Description
Try to reduce the CPU overheads of GroupedLinear by:

Using fused_multi_cast_transpose instead of iterating cast_transpose_fused in a for-loop.
a. Changed the API of fused_multi_cast_transpose to avoid index-select ops in PyTorch.
b. Allocate output tensors in CPP.
Use at::cuda::current_device(), which has a cache, to get current device id to avoid cudaGetDriverEntryPoint calls.
Reduce torch.Tensor() calls.
TODO.

Fix:

Zero grad_bias in fused_cast_transpose_bgrad when input is empty.
Typos.

Type of change

[ ] Documentation change (change only to the documentation, either a fix or a new content)
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Infra/Build change
[ ] Code refractor

Checklist:

[ ] I have read and followed the contributing guidelines
[ ] The functionality is complete
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes

/te-ci pytorch

Overall LGTM. What kinds of speedups are you seeing? It would be helpful to see what optimizations had the biggest impact so we can apply it to other PyTorch modules.

Here're some numbers for num_gemms=6 and small gemm sizes.

fwd (us)
fwd speedup

baseline
750.075
/

+fused_multi_cast_transpose
662.756
1.13

+cpp alloc
615.818
1.22

+Reduce cudaGetDriverEntryPoint and torch.Tensor()
604.722
1.24

/te-ci pytorch


[sdg] update homepage styling

udpate according to mocks

can you adjust the search bar to match the Seach.tsx page?

thanks for the reviews!


Create account screen needs keyboard aware functionality

The create account screen view needs to scroll up when the user taps on the confirm password text input.  The keyboard covers the input field.  Also need to dismiss the keyboard when tapping outside the keyboard.

Use keyboardawarescrollview

https://www.npmjs.com/package/react-native-keyboard-aware-scroll-view
Check for proper Android setup.

PR completes this issue.

Need to check with Android.

seems to work ok with Android simulator using Google Pixel 2 and 8.  Has native keyboard scroll functionality.  No extra height added.


chore(deps): bump ini from 1.3.5 to 1.3.8

github's dependabot has a few security warnings for the examples:
Would it be possible to have these github dependabot alerts turned on from this repo in addition to the renovate alerts?  If not is it ok to submit these minor patches?

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

@alexanderchan I appreciate opening the PR but these Dependabot security warnings for this repo are useless in my opinion and just create noise. This action should run as part of your dev build steps, so the fact that ini NPM module has an edge case does not create a security hole in your production system.

makes sense, thanks for the feedback.


Fix CORS-related issues in Web API

This pull request fixes issues caused by incomplete Access-Control-* headers and not handling OPTIONS method.

OK thanks.


Object loaded does not contain any SVG at HTMLObjectElement.onLoad

Hi there,
first of all, thanks for this awesome library!
Vivus is working like a charm with local files, but I'm trying to load a file from a server like the following:

new Vivus('my-svg', {
  duration: 200,
  type: 'oneByOne',
  file: image.sizes.medium,
  animTimingFunction: Vivus.EASE
})

while file: image.sizes.medium equals https://my-url.file.svg for example.
The file gets displayed on the website and also in the DOM, an it is a SVG.
Somehow Vivus tries to create the instance before it is actually loaded i assume.
Is there a known way to achieve this or is it not possible at the moment?
Thanks! 🙏🏻

Hi there :)
Do you get any errors from the console? I suspect the problem to be due to
cross-origin issues.

@maxwellito
Thanks, i'll check it out!
But, the thing is if i take the same file and load it locally from a normal folder it works just fine, so i think the file should be valid :-/ (also works in the nice Vivus Instant when i drop it there)

You need to use an  in your markup, not a div for the ID vivus uses.

I just got the same problem but when I open the page like this: file:///user/mike/blah.html if I open the page on a server, eg http://localhost/blah.html it works.


DeserializationError cannot deserialize: unknown error handler name 'rosmsg' --- husky_velocity_controller spawn

Working on a husky and getting the following error when trying to launch the startup file which contains the velocity controller command. I really don't even know where to start with this, but I see https://github.com/husky/husky/issues/139 recently got a similar type of error message, maybe they are unrelated, I can't really say
This error began to occur exactly after I updated and upgraded using apt-get. I am running on a real Husky with kinetic and 16.04.
The entire script from the terminal when I try to launch the start script is pasted below the launch file.
`

`
` roslaunch cus_main ros_d_base.launch
... logging to /home/administrator/.ros/log/0b5425c6-ec9a-11ea-83be-00e04c71ce5c/roslaunch-cpr-aus05-5349.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.
inconsistent namespace redefinitions for xmlns:xacro:
old: http://ros.org/wiki/xacro
new: http://www.ros.org/wiki/xacro (/opt/ros/kinetic/share/lms1xx/urdf/sick_lms1xx.urdf.xacro)
started roslaunch server http://cpr-aus05:35725/
SUMMARY
PARAMETERS

/diagnostic_aggregator/analyzers/husky/expected: ['husky_base: pow...
/diagnostic_aggregator/analyzers/husky/find_and_remove_prefix: husky_base:
/diagnostic_aggregator/analyzers/husky/path: Husky A200
/diagnostic_aggregator/analyzers/husky/timeout: 5.0
/diagnostic_aggregator/analyzers/husky/type: diagnostic_aggreg...
/husky_joint_publisher/publish_rate: 50
/husky_joint_publisher/type: joint_state_contr...
/husky_node/control_frequency: 10.0
/husky_node/diagnostic_frequency: 1.0
/husky_node/max_acceleration: 3.0
/husky_node/max_speed: 1.0
/husky_node/polling_timeout: 10.0
/husky_node/port: /dev/prolific
/husky_node/wheel_diameter: 0.3302
/husky_velocity_controller/angular/z/has_acceleration_limits: True
/husky_velocity_controller/angular/z/has_velocity_limits: True
/husky_velocity_controller/angular/z/max_acceleration: 6.0
/husky_velocity_controller/angular/z/max_velocity: 2.0
/husky_velocity_controller/base_frame_id: base_link
/husky_velocity_controller/cmd_vel_timeout: 0.25
/husky_velocity_controller/enable_odom_tf: False
/husky_velocity_controller/estimate_velocity_from_position: False
/husky_velocity_controller/left_wheel: ['front_left_whee...
/husky_velocity_controller/linear/x/has_acceleration_limits: True
/husky_velocity_controller/linear/x/has_velocity_limits: True
/husky_velocity_controller/linear/x/max_acceleration: 3.0
/husky_velocity_controller/linear/x/max_velocity: 1.0
/husky_velocity_controller/pose_covariance_diagonal: [0.001, 0.001, 0....
/husky_velocity_controller/publish_rate: 50
/husky_velocity_controller/right_wheel: ['front_right_whe...
/husky_velocity_controller/twist_covariance_diagonal: [0.001, 0.001, 0....
/husky_velocity_controller/type: diff_drive_contro...
/husky_velocity_controller/velocity_rolling_window_size: 2
/husky_velocity_controller/wheel_radius_multiplier: 1.0
/husky_velocity_controller/wheel_separation_multiplier: 1.875
/joy_teleop/joy_node/autorepeat_rate: 20
/joy_teleop/joy_node/deadzone: 0.1
/joy_teleop/joy_node/dev: /dev/input/js1
/joy_teleop/teleop_twist_joy/axis_angular: 0
/joy_teleop/teleop_twist_joy/axis_linear: 1
/joy_teleop/teleop_twist_joy/enable_button: 0
/joy_teleop/teleop_twist_joy/enable_turbo_button: 2
/joy_teleop/teleop_twist_joy/scale_angular: 0.6
/joy_teleop/teleop_twist_joy/scale_angular_turbo: 1.2
/joy_teleop/teleop_twist_joy/scale_linear: 0.4
/joy_teleop/teleop_twist_joy/scale_linear_turbo: 1.0
/robot_description: <?xml version="1....
/rosdistro: kinetic
/rosversion: 1.12.16
/twist_mux/locks: [{'topic': 'e_sto...
/twist_mux/topics: [{'topic': 'joy_t...

NODES
/joy_teleop/
joy_node (joy/joy_node)
teleop_twist_joy (teleop_twist_joy/teleop_node)
/
base_controller_spawner (controller_manager/spawner)
diagnostic_aggregator (diagnostic_aggregator/aggregator_node)
husky_node (husky_base/husky_node)
robot_state_publisher (robot_state_publisher/robot_state_publisher)
twist_marker_server (interactive_marker_twist_server/marker_server)
twist_mux (twist_mux/twist_mux)
ROS_MASTER_URI=http://localhost:11311
process[husky_node-1]: started with pid [5394]
process[base_controller_spawner-2]: started with pid [5395]
process[twist_marker_server-3]: started with pid [5396]
process[robot_state_publisher-4]: started with pid [5404]
process[twist_mux-5]: started with pid [5415]
process[joy_teleop/joy_node-6]: started with pid [5433]
process[joy_teleop/teleop_twist_joy-7]: started with pid [5455]
process[diagnostic_aggregator-8]: started with pid [5485]
[ INFO] [/husky_node] [reconnect]: Connecting to Husky on port /dev/prolific...
[ INFO] [/husky_node] [reconnect]: Connected
[ INFO] [/twist_marker_server] [MarkerServer]: [twist_marker_server] Initialized.
[ERROR] [/joy_teleop/joy_node] [main]: Couldn't open joystick force feedback!
[INFO] [/base_controller_spawner] [main]: Controller Spawner: Waiting for service controller_manager/load_controller
[INFO] [/base_controller_spawner] [main]: Controller Spawner: Waiting for service controller_manager/switch_controller
[INFO] [/base_controller_spawner] [main]: Controller Spawner: Waiting for service controller_manager/unload_controller
[INFO] [/base_controller_spawner] [main]: Loading controller: husky_velocity_controller
[ INFO] [/husky_node] [DiffDriveController::init]: Controller state will be published at 50Hz.
[ INFO] [/husky_node] [DiffDriveController::init]: Wheel separation will be multiplied by 1.875.
[ INFO] [/husky_node] [DiffDriveController::init]: Left wheel radius will be multiplied by 1.
[ INFO] [/husky_node] [DiffDriveController::init]: Right wheel radius will be multiplied by 1.
[ INFO] [/husky_node] [DiffDriveController::init]: Velocity rolling window size of 2.
[ INFO] [/husky_node] [DiffDriveController::init]: Velocity commands will be considered old if they are older than 0.25s.
[ INFO] [/husky_node] [DiffDriveController::init]: Allow mutiple cmd_vel publishers is enabled
[ INFO] [/husky_node] [DiffDriveController::init]: Base frame_id set to base_link
[ INFO] [/husky_node] [DiffDriveController::init]: Odometry frame_id set to odom
[ INFO] [/husky_node] [DiffDriveController::init]: Publishing to tf is disabled
[ INFO] [/husky_node] [DiffDriveController::setOdomParamsFromUrdf]: left wheel to origin: 0.256,0.2854, 0.03282
[ INFO] [/husky_node] [DiffDriveController::setOdomParamsFromUrdf]: right wheel to origin: 0.256,-0.2854, 0.03282
[ INFO] [/husky_node] [DiffDriveController::init]: Odometry params : wheel separation 1.07025, left wheel radius 0.1651, right wheel radius 0.1651
[ INFO] [/husky_node] [DiffDriveController::init]: Adding left wheel with joint name: front_left_wheel and right wheel with joint name: front_right_wheel
[ INFO] [/husky_node] [DiffDriveController::init]: Adding left wheel with joint name: rear_left_wheel and right wheel with joint name: rear_right_wheel
[ WARN] [/husky_node] [Server::updateConfig]: updateConfig() called on a dynamic_reconfigure::Server that provides its own mutex. This can lead to deadlocks if updateConfig() is called during an update. Providing a mutex to the constructor is highly recommended in this case. Please forward this message to the node author.
[ INFO] [/husky_node] [DiffDriveController::reconfCallback]: Dynamic Reconfigure:
DynamicParams:
Odometry parameters:
left wheel radius: 1
right wheel radius: 1
wheel separation: 1.875
Publication parameters:
Publish executed velocity command: 0
Publication rate: 50
Publish frame odom on tf: 0
Traceback (most recent call last):
File "/opt/ros/kinetic/lib/controller_manager/spawner", line 207, in
if name == 'main': main()
File "/opt/ros/kinetic/lib/controller_manager/spawner", line 185, in main
resp = load_controller(name)
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/impl/tcpros_service.py", line 435, in call
return self.call(*args, *kwds)
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/impl/tcpros_service.py", line 525, in call
raise ServiceException("transport error completing service call: %s"%(str(e)))
rospy.service.ServiceException: transport error completing service call: receive_once[/controller_manager/load_controller]: DeserializationError cannot deserialize: unknown error handler name 'rosmsg'
[INFO] [/base_controller_spawner] [shutdown]: Shutting down spawner. Stopping and unloading controllers...
[INFO] [/base_controller_spawner] [shutdown]: Stopping all controllers...
[WARN] [/base_controller_spawner] [shutdown]: Controller Spawner error while taking down controllers: transport error completing service call: receive_once[/controller_manager/switch_controller]: DeserializationError cannot deserialize: unknown error handler name 'rosmsg'
[base_controller_spawner-2] process has died [pid 5395, exit code 1, cmd /opt/ros/kinetic/lib/controller_manager/spawner husky_velocity_controller husky_joint_publisher __name:=base_controller_spawner __log:=/home/administrator/.ros/log/0b5425c6-ec9a-11ea-83be-00e04c71ce5c/base_controller_spawner-2.log].
log file: /home/administrator/.ros/log/0b5425c6-ec9a-11ea-83be-00e04c71ce5c/base_controller_spawner-2.log
`

It appears there was a bug in genpy that could cause this error.  The issue has since been resolved in genpy 0.6.13.
Can you please check if there are updates available on your system and if so, install them?

I have 0.6.14 installed already.

Can you please share the contents of the log file mentioned at the end of your initial post?

[rospy.client][INFO] 2020-09-01 17:33:05,515: init_node, name[/base_controller_spawner], pid[3079]
[xmlrpc][INFO] 2020-09-01 17:33:05,515: XML-RPC server binding to <IP_ADDRESS>:0
[xmlrpc][INFO] 2020-09-01 17:33:05,515: Started XML-RPC server [http://cpr-aus05:35779/]
[rospy.init][INFO] 2020-09-01 17:33:05,515: ROS Slave URI: [http://cpr-aus05:35779/]
[rospy.impl.masterslave][INFO] 2020-09-01 17:33:05,516: _ready: http://cpr-aus05:35779/
[rospy.registration][INFO] 2020-09-01 17:33:05,516: Registering with master node http://localhost:11311
[xmlrpc][INFO] 2020-09-01 17:33:05,516: xml rpc node: starting XML-RPC server
[rospy.init][INFO] 2020-09-01 17:33:05,616: registered with master
[rospy.rosout][INFO] 2020-09-01 17:33:05,616: initializing /rosout core topic
[rospy.rosout][INFO] 2020-09-01 17:33:05,625: connected to core topic /rosout
[rospy.simtime][INFO] 2020-09-01 17:33:05,631: /use_sim_time is not set, will not subscribe to simulated time [/clock] topic
[rosout][INFO] 2020-09-01 17:33:05,644: Controller Spawner: Waiting for service controller_manager/load_controller
[rosout][INFO] 2020-09-01 17:33:05,651: Controller Spawner: Waiting for service controller_manager/switch_controller
[rosout][INFO] 2020-09-01 17:33:05,658: Controller Spawner: Waiting for service controller_manager/unload_controller
[rosout][INFO] 2020-09-01 17:33:05,665: Loading controller: husky_velocity_controller
[rospy.internal][INFO] 2020-09-01 17:33:05,801: topic[/rosout] adding connection to [/rosout], count 0
[rospy.msg][ERROR] 2020-09-01 17:33:05,807: cannot deserialize message: EXCEPTION Traceback (most recent call last):
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/msg.py", line 223, in deserialize_messages
msg_queue.append(data.deserialize(q))
File "/opt/ros/kinetic/lib/python2.7/dist-packages/controller_manager_msgs/srv/_LoadController.py", line 195, in deserialize
codecs.lookup_error("rosmsg").msg_type = self._type
LookupError: unknown error handler name 'rosmsg'
[rospy.internal][ERROR] 2020-09-01 17:33:05,807: Traceback (most recent call last):
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/impl/tcpros_base.py", line 728, in receive_once
p.read_messages(b, msg_queue, sock)
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/impl/tcpros_service.py", line 354, in read_messages
rospy.msg.deserialize_messages(b, msg_queue, self.recv_data_class, queue_size=self.queue_size, max_msgs=1, start=1) #rospy.msg
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/msg.py", line 245, in deserialize_messages
raise genpy.DeserializationError("cannot deserialize: %s"%str(e))
DeserializationError: cannot deserialize: unknown error handler name 'rosmsg'
[rospy.core][INFO] 2020-09-01 17:33:05,807: signal_shutdown [atexit]
[rosout][INFO] 2020-09-01 17:33:05,807: Shutting down spawner. Stopping and unloading controllers...
[rosout][INFO] 2020-09-01 17:33:05,807: Stopping all controllers...
[rospy.msg][ERROR] 2020-09-01 17:33:05,906: cannot deserialize message: EXCEPTION Traceback (most recent call last):
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/msg.py", line 223, in deserialize_messages
msg_queue.append(data.deserialize(q))
File "/opt/ros/kinetic/lib/python2.7/dist-packages/controller_manager_msgs/srv/_SwitchController.py", line 298, in deserialize
codecs.lookup_error("rosmsg").msg_type = self._type
LookupError: unknown error handler name 'rosmsg'
[rospy.internal][ERROR] 2020-09-01 17:33:05,906: Traceback (most recent call last):
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/impl/tcpros_base.py", line 728, in receive_once
p.read_messages(b, msg_queue, sock)
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/impl/tcpros_service.py", line 354, in read_messages
rospy.msg.deserialize_messages(b, msg_queue, self.recv_data_class, queue_size=self.queue_size, max_msgs=1, start=1) #rospy.msg
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/msg.py", line 245, in deserialize_messages
raise genpy.DeserializationError("cannot deserialize: %s"%str(e))
DeserializationError: cannot deserialize: unknown error handler name 'rosmsg'
[rosout][WARNING] 2020-09-01 17:33:05,906: Controller Spawner error while taking down controllers: transport error completing service call: receive_once[/controller_mana$
[rospy.internal][INFO] 2020-09-01 17:33:05,916: topic[/rosout] removing connection to /rosout
[rospy.impl.masterslave][INFO] 2020-09-01 17:33:05,916: atexit
[rospy.client][INFO] 2020-09-01 17:43:08,166: init_node, name[/base_controller_spawner], pid[5395]
[xmlrpc][INFO] 2020-09-01 17:43:08,166: XML-RPC server binding to <IP_ADDRESS>:0
[xmlrpc][INFO] 2020-09-01 17:43:08,166: Started XML-RPC server [http://cpr-aus05:38859/]
[rospy.init][INFO] 2020-09-01 17:43:08,166: ROS Slave URI: [http://cpr-aus05:38859/]
[rospy.impl.masterslave][INFO] 2020-09-01 17:43:08,167: _ready: http://cpr-aus05:38859/
[rospy.registration][INFO] 2020-09-01 17:43:08,167: Registering with master node http://localhost:11311
[xmlrpc][INFO] 2020-09-01 17:43:08,167: xml rpc node: starting XML-RPC server
[rospy.init][INFO] 2020-09-01 17:43:08,267: registered with master
[rospy.rosout][INFO] 2020-09-01 17:43:08,267: initializing /rosout core topic
[rospy.rosout][INFO] 2020-09-01 17:43:08,276: connected to core topic /rosout
[rospy.simtime][INFO] 2020-09-01 17:43:08,278: /use_sim_time is not set, will not subscribe to simulated time [/clock] topic
[rosout][INFO] 2020-09-01 17:43:08,282: Controller Spawner: Waiting for service controller_manager/load_controller
[rosout][INFO] 2020-09-01 17:43:08,283: Controller Spawner: Waiting for service controller_manager/switch_controller
[rosout][INFO] 2020-09-01 17:43:08,284: Controller Spawner: Waiting for service controller_manager/unload_controller
[rosout][INFO] 2020-09-01 17:43:08,286: Loading controller: husky_velocity_controller
[rospy.msg][ERROR] 2020-09-01 17:43:08,438: cannot deserialize message: EXCEPTION Traceback (most recent call last):
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/msg.py", line 223, in deserialize_messages
msg_queue.append(data.deserialize(q))
File "/opt/ros/kinetic/lib/python2.7/dist-packages/controller_manager_msgs/srv/_LoadController.py", line 195, in deserialize
codecs.lookup_error("rosmsg").msg_type = self._type
LookupError: unknown error handler name 'rosmsg'
[rospy.internal][ERROR] 2020-09-01 17:43:08,439: Traceback (most recent call last):
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/impl/tcpros_base.py", line 728, in receive_once
p.read_messages(b, msg_queue, sock)
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/impl/tcpros_service.py", line 354, in read_messages
rospy.msg.deserialize_messages(b, msg_queue, self.recv_data_class, queue_size=self.queue_size, max_msgs=1, start=1) #rospy.msg
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/msg.py", line 245, in deserialize_messages
raise genpy.DeserializationError("cannot deserialize: %s"%str(e))
DeserializationError: cannot deserialize: unknown error handler name 'rosmsg'
[rospy.core][INFO] 2020-09-01 17:43:08,467: signal_shutdown [atexit]
[rosout][INFO] 2020-09-01 17:43:08,467: Shutting down spawner. Stopping and unloading controllers...
[rosout][INFO] 2020-09-01 17:43:08,468: Stopping all controllers...
[rospy.msg][ERROR] 2020-09-01 17:43:08,536: cannot deserialize message: EXCEPTION Traceback (most recent call last):
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/msg.py", line 223, in deserialize_messages
msg_queue.append(data.deserialize(q))
File "/opt/ros/kinetic/lib/python2.7/dist-packages/controller_manager_msgs/srv/_SwitchController.py", line 298, in deserialize
codecs.lookup_error("rosmsg").msg_type = self._type
LookupError: unknown error handler name 'rosmsg'
[rospy.internal][ERROR] 2020-09-01 17:43:08,536: Traceback (most recent call last):
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/impl/tcpros_base.py", line 728, in receive_once
p.read_messages(b, msg_queue, sock)
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/impl/tcpros_service.py", line 354, in read_messages
rospy.msg.deserialize_messages(b, msg_queue, self.recv_data_class, queue_size=self.queue_size, max_msgs=1, start=1) #rospy.msg
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/msg.py", line 245, in deserialize_messages
raise genpy.DeserializationError("cannot deserialize: %s"%str(e))
DeserializationError: cannot deserialize: unknown error handler name 'rosmsg'
[rosout][WARNING] 2020-09-01 17:43:08,537: Controller Spawner error while taking down controllers: transport error completing service call: receive_once[/controller_mana$
[rospy.impl.masterslave][INFO] 2020-09-01 17:43:08,546: atexit

Please ensure that you've done an apt dist-upgrade so that you have the latest of all packages, including genmsg.

As of Monday I had run apt dist-upgrade, all packages are fully up to date.

The issue may to be related to https://github.com/ros/genpy/issues/132.  Please let us know if the problem persists after re-checking for updates and installing them.

There was a near-identical issue reported for Ridgeback too, which was successfully resolved by installing the latest updates.
https://github.com/ridgeback/ridgeback_robot/issues/29

I have run sudo apt-get update and sudo apt-get dist-upgrade and the problem still persists. My genmsg is version 0.5.11 which is the up to date version for Kinetic I guess?
What confuses me is why on the kinetic-devel branch https://github.com/ros/genmsg/commit/f9b1abe91e5c4742516c13124c9b8f7909aa98b2 it says it is 5.16.  But i guess its a core package so if updates don't absolutely have to be made they shouldn't?
But at this point I am no more close to the solution then before, with both genmsg and genpy up to date. Also I just want to say thank you guys so much for troubleshooting this!

It appears there was a bug in genpy that could cause this error. The issue has since been resolved in genpy 0.6.13.
Can you please check if there are updates available on your system and if so, install them?

This error doesn't show again after updating genpy. Thanks!

I upgraded the Husky to 18 and Melodic and everything works as normal, and the controllers spawn as expected. I would have liked to figure out the original problem but deadlines cant wait :)


[Codegen][GPU] Handle dynamic and unaligned cases in DerivedThreadConfig

This adds a default set of tile sizes for any dynamically shaped copy/linalg ops that just uses the preferred vector size based on the element type bitwidth of the linalg op. This same logic might also be worth applying in aligned cases, but this patch is opting not to change pre-existing behavior without proper benchmarking.
Additionally cleans up the tiling tests.

This adds a default set of tile sizes for any dynamically shaped copy/linalg ops that just uses the preferred vector size based on the element type bitwidth of the linalg op. This same logic might also be worth applying in aligned cases, but this patch is opting not to change pre-existing behavior without proper benchmarking.
Additionally cleans up the tiling tests.

I don't see anything in the the cpp file that references the element type bitwidth, I assume I'm just missing some context, and one of the function arguments happens to represent that?

I'm expecting the logic here to evolve over time so I am going to land this as is for now as it's not clear to me what the TODO: improve tile size selection logic would mean (the same could be said about anything in KernelConfig).


Update package.json

Updated semantic version number and allowed more variance on preprocess binary, to prevent having to make so many merge requests.

I think there is no need in bumping major version. May be bump minor version instead?

Well, preprocess bumped a major, so I figured the same should carry over.  Either way the version in the package.json file will likely get overridden when running the npm version command.


new plugin upload to s3 presigned_url

I needed a postrender upload plugin which uploads using https (for s3 presigned_url)
https://github.com/oreporan/nexrender-action-upload-s3-presigned

Oh, an amazing addition! Thanks for the package, adding it to the readme! :)


Variables available for the "Invoke REST API" check

What variables are available in the REST API check? I would like to get the build number of the build in the environment. It seems there is no documentation of these new checks yet.  In a Release Gate I could use $(Release.Artifacts.release.BuildNumber)

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: b067a175-f640-7503-9c1e-f0130c6dbeda
Version Independent ID: ff743c7b-a103-eae6-4478-62ba995a4b36
Content: Pipeline deployment approvals - Azure Pipelines
Content Source: docs/pipelines/process/approvals.md
Product: devops
Technology: devops-cicd-process
GitHub Login: @azooinmyluggage
Microsoft Alias: shashban

Thanks for your question. It looks like you're working through an issue with your scenario or implementation. Here are a couple of options where you might consider asking your question:

Azure DevOps Support Bot
Azure DevOps on Stack Overflow

cc @azooinmyluggage for awareness

No, I'm asking for better documentation.  There should be documentation for what variables are available to you.

I should not have to go to support for what variables are available.  Please reopen.

@WilliamAntonRohm I do agree with @jamers99 , you need to add what variables are accessible in REST Api check, I am trying to access my one of the pipeline variable in checks but it is not working.
Please reopen this issue

@Nirav-Bhadradiya I opened another, better worded issue that is getting more attention: #8091

@jamers99 -- James, thank you for clarifying further in your new issue.
@Nirav-Bhadradiya -- Nirav, please let us know (in that issue) if it addresses your concern.


Creating an attractive logo for the website

I would like to redesign the logo to make it more appealing.
Kindly assign this issue to me under GSSOC'24

This issue will be resolved by https://github.com/abhijeetnishal/URLShortener/issues/70
Contribute to others issues, good luck.
closing this issue


feat: expose accessor functions for control parameters

Fixes #295
This changes the code gen to emit 3 new accessors that allow the runtime and runtime-async packages to more easily read the control parameters (INITIAL TIME, FINAL TIME, and SAVEPER) prior to running the model for correctly sizing the allocated buffers that hold output values.  See issue for more details.
There are no tests included here, but I've already verified that this works on my other branch for #291, and that branch also includes automated JS-level integration tests that verify the behavior.
@ToddFincannonEI: It would be great if you could review this change if you've got time.  I decided to split it out from my other changes for #291 (supporting non-1 SAVEPER values in the runtime packages) because these 2 files are the only ones that I touched in the cli and compile packages.  That way you only have to review 2 files, and I'll submit/merge the other build/runtime changes once this PR is merged.  Also, having these changes broken out makes it easier to highlight this as a separate "feature" in the changelog that's independent from the other changes.

This worked fine for me in some tests on a simple model. The correct values were written into the generated accessors.
I see that TIME STEP is not surfaced in an accessor, so I assume that is unnecessary for the build and runtime packages .
The assumptions about the possible values of SAVEPER seem correct to me.

I see that TIME STEP is not surfaced in an accessor, so I assume that is unnecessary for the build and runtime packages.

That's correct, I decided not to expose it because it's not needed by those packages, and I couldn't think of a use case where a developer would need access to it (since it mainly controls the internal behavior of the model).  We could always add it later if we find a need for it.


Error building in NixOS (file not found)

I've been trying to build the minegrub theme using the instructions on the readme (which has a typo btw, "minegrub" should be "minegrub-theme" in the flake.nix). Whenever I put the splash splash: "100% Flakes!" (or any other string), I get the following error:
[root@nixxie:/etc/nixos]# nixos-rebuild switch
building the system configuration...
error: builder for '/nix/store/y3fq5081yashw377h0mcs7cgxlxyfpy0-minegrub-theme.drv' failed with exit code 1;
       last 9 log lines:
       > Running phase: unpackPhase
       > unpacking source archive /nix/store/863c8c1dwsaspli6hrjkn31hps8wxiib-source
       > source root is source
       > Running phase: patchPhase
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase
       > no configure script, doing nothing
       > Running phase: buildPhase
       > ERROR: The file 100% Flakes! does not exist.
       For full logs, run 'nix log /nix/store/y3fq5081yashw377h0mcs7cgxlxyfpy0-minegrub-theme.drv'.
error: 1 dependencies of derivation '/nix/store/37676acmhsvq6vlz3bpkv9rg00wbc9lp-grub-config.xml.drv' failed to build
error: 1 dependencies of derivation '/nix/store/02809bi6jgvz5il1jwhry7kz5irmks5v-install-grub.sh.drv' failed to build
error: 1 dependencies of derivation '/nix/store/aky4cpwmdd1z257xjkdbr3lcjkgcdb9a-nixos-system-nixxie-24.05.20240422.1e1dc66.drv' failed to build

Then when I try to comment out the line with the splash, the following occurs:
[root@nixxie:/etc/nixos]# nixos-rebuild switch
building the system configuration...
error: builder for '/nix/store/ncqpcwlc7ani3d207sb690sfrczv5if8-minegrub-theme.drv' failed with exit code 1;
       last 9 log lines:
       > Running phase: unpackPhase
       > unpacking source archive /nix/store/863c8c1dwsaspli6hrjkn31hps8wxiib-source
       > source root is source
       > Running phase: patchPhase
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase
       > no configure script, doing nothing
       > Running phase: buildPhase
       > ERROR: The file deleting garbage... does not exist.
       For full logs, run 'nix log /nix/store/ncqpcwlc7ani3d207sb690sfrczv5if8-minegrub-theme.drv'.
error: 1 dependencies of derivation '/nix/store/2y97rzr329q9y6f3rwj60wnmpd09fs8f-grub-config.xml.drv' failed to build
error: 1 dependencies of derivation '/nix/store/k2s8dnh2cps5aqpg62l7s05mydbhkbfg-install-grub.sh.drv' failed to build
error: 1 dependencies of derivation '/nix/store/lxz9amb9lzh3i2mjlvqi68aw3pnyayih-nixos-system-nixxie-24.05.20240422.1e1dc66.drv' failed to build

I am not very knowledgable on NixOS, so if I'm doing anything wrong, please tell me.

Same for me, happened after I updated my system flake:
$ sudo nix flake update
warning: updating lock file '/home/andrew/nixos/flake.lock':
• Updated input 'home-manager':
    'github:nix-community/home-manager/1c2acec99933f9835cc7ad47e35303de92d923a4' (2024-03-20)
  → 'github:nix-community/home-manager/0c5704eceefcb7bb238a958f532a86e3b59d76db' (2024-04-25)
• Updated input 'minegrub':
    'github:Lxtharia/minegrub-theme/ef835b35115ff70b9a1be02a89660bf8b60b721a' (2023-10-03)
  → 'github:Lxtharia/minegrub-theme/08fe7f2b07e0f39426d53e1a1ab5b071e77b9e39' (2024-04-21)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/b06025f1533a1e07b6db3e75151caa155d1c7eb3' (2024-03-19)
  → 'github:NixOS/nixpkgs/7bb2ccd8cdc44c91edba16c48d2c8f331fb3d856' (2024-04-25)

The error message I get:
error: builder for '/nix/store/vci1bdm0cizjw8gfv8jbhb6dav4ygpng-minegrub-theme.drv' failed with exit code 1;
       last 9 log lines:
       > Running phase: unpackPhase
       > unpacking source archive /nix/store/863c8c1dwsaspli6hrjkn31hps8wxiib-source
       > source root is source
       > Running phase: patchPhase
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase
       > no configure script, doing nothing
       > Running phase: buildPhase
       > ERROR: The file 100% Flakes! does not exist.
       For full logs, run 'nix log /nix/store/vci1bdm0cizjw8gfv8jbhb6dav4ygpng-minegrub-theme.drv'.
error: 1 dependencies of derivation '/nix/store/hmij1v0l5d8hpx0hf0923may5lvysp2k-grub-config.xml.drv' failed to build
error: 1 dependencies of derivation '/nix/store/r4fxjb3bihqq41cszgvc0dzbz782hncw-install-grub.sh.drv' failed to build

Full log from nix log:
$ nix log /nix/store/vci1bdm0cizjw8gfv8jbhb6dav4ygpng-minegrub-theme.drv
@nix { "action": "setPhase", "phase": "unpackPhase" }
Running phase: unpackPhase
unpacking source archive /nix/store/863c8c1dwsaspli6hrjkn31hps8wxiib-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Running phase: configurePhase
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
Running phase: buildPhase
ERROR: The file 100% Flakes! does not exist.

If there is anything else I can provide, I'd be happy to do so. I really enjoy this grub theme, and don't like the idea of removing it from my setup

For now, the only solution I see is not updating the minegrub input in my flake:
$ sudo nix flake lock --update-input home-manager
$ sudo nix flake lock --update-input nixpkgs
warning: updating lock file '/home/andrew/nixos/flake.lock':
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/b06025f1533a1e07b6db3e75151caa155d1c7eb3' (2024-03-19)
  → 'github:NixOS/nixpkgs/7bb2ccd8cdc44c91edba16c48d2c8f331fb3d856' (2024-04-25)

This doesn't break the minegrub for me, so if you're using flake, this is a viable workaround for now.

Hey, can someone confirm if #63 fixes this issue, so I can close this?
Thanks!

Hey, can someone confirm if #63 fixes this issue, so I can close this? Thanks!

Sorry, I've moved to Pop_os for now, and I have no idea when I'm going back to nix yet

Hey, can someone confirm if #63 fixes this issue, so I can close this? Thanks!

There is an error in the flake.nix file on line 28 it should be pkgs.fastfetch not fastfetch builds fine after this.

There is an error in the flake.nix file on line 28 it should be pkgs.fastfetch not fastfetch builds fine after this.

Does #65 fix that?

There is an error in the flake.nix file on line 28 it should be pkgs.fastfetch not fastfetch builds fine after this.

Does #65 fix that?

Yeah builds correctly now

Cool, thanks!
Will close this then :)


Documentation improvements

Added custom modules entry, custom.md and entered into docsify files
Fixed broken tables
Changed image from html to markdown.

https://github.com/goodrobots/maverick/issues/797


Make bdbCacheSize global across all graphs

Currently, the bdbCacheSize configuration parameter in ParliamentKbConfig.txt controls the size of a cache that is dedicated to a single graph.  This should instead configure one cache that is used across all graphs.
Implementation:  Create a static BDB environment object into which every graph's b-tree is enlisted when it is initialized.  Then move the cache configuration to the environment object.

Implemented in pull request #48.


Add JS_ArrayGetLength and JS_FreePropertyEnum for external iterators

See #408

Can you please split this into 2 commits at least? We can keep 1 PR, but the 2 are unrelated.

Can you please split this into 2 commits at least? We can keep 1 PR, but the 2 are unrelated.

Of course, done

@chqrlie can you take a quick look at?

@chqrlie can you take a quick look at?

Sometime tonight.


Improve how we detect and can configure DSE/HCD

Fixes copying of etc/* files (can't use glob).
Fixes running checks from a macos bastion

CI finally green.
Had to make a few adjustments:

install docker-compose in gha
only build integration-cassandra.docker once

Also

added tests that the collected tarballs can be untarred
separate gzipping of tarball
default cqlshUsername and cqlshPassword to unset, and don't specify them if not set,
fail-fast if cqlshUsername is set but not cqlshPassword
remove append-redirect when redirecting to /dev/null
more fixes around the etc/* files


Scanning is slower in 2.12.0

When scanning with 2.11.1 it takes 150ms and with 2.12.0 takes 450ms.
2.11.1.txt
2.12.0.txt

@natros sorry for the delay on this. I think I may have found what was causing the slowdown. Can you please test 2.19.0? I will be pushing it out shortly. Thank you!

@natros I have gone in to profile this performance regression several times, with two different profiler tools, and couldn't figure out the problem until now. I looked at detailed profiling information and code diffs, couldn't find the source of the problem until now, since the profiling information wasn't telling me the right place to look (the timing values for the offending operation were being not properly captured, or something).
Good news though, I finally figured out what was causing the regression. I added some code that skipped ZipSFX headers if present, initially for #171 -- this required each zipfile to be opened twice (once as a byte stream, to check for the position of the "PK" header, and once az a ZipFile. My own testing and profiling indicated a negligible performance penalty for doing so, but it was affecting scan times quite a lot.
Bug #171 turned out to be solvable without skipping ZipSFX headers in the end, so I have disabled the ZipSFX skipping code by default.
In even better news, profiling the code helped me find another major performance problem -- it turns out File#toURI()#toURL() is a very expensive operation (taking ~10% of overall scanning time). I deferred this work until the point where the user requests URLs, so that most of the time this work is not done. So FCS is actually even faster now than it was in version 2.11.1.
The fixed code will be released in version 2.20.0. Sorry this took so long to resolve. Thank you for this bug report, and thank you for your patience!

Just tested and I can see considerable improvements.
Thank you for your work on this one.

@natros great, thank you. Is it faster than even 2.11.1 was for you now?


ISPN-11851 FD_SOCK should use the same bind address as TCP

https://issues.redhat.com/browse/ISPN-11851
Also deprecate system properties jgroups.tcp.address
and jgroups.udp.address

Updated to remove the bind_addr attribute from all non-transport protocols like FD_SOCK and MPING.

JsonSerializationTest.testJGroups:346 expected:<9> but was:<10>

Updated to fix JsonSerializationTest.


Simplify generated config for tslint -i

What do you guys think of changing the initial tslint.json file to just:
{
  "extends": "tslint:recommended",
}

right now what get generated is an old set of rules that never gets updated. The only reason I can think of to write a list of rules is so that it acts as a template for users to edit. In that case, can can just generate using the contents of the recommended list

sgtm :+1:


[Discussion] Architecture with separate frontend and backend

Hey all,
I'm currently thinking about separating my frontend (user interface) and backend.
Is there currently a way to authorize the frontend to make requests to the backend?

Like Vue -> backend for example?
Hmm. If they're logged in/authed then any standard xhr request should work given the xhr request has access to cookies for the session.

Exactly. What about auth via a JWT?

That's certainly possible.
Could use tymon/jwt-auth but that requires its own setup and could conflict with someone's code.
If it were to be a part of this package it would have to be something baked in..
Certainly worth exploring. What sort of flow and use case do you see for it?

Why use Vue with Shopify has React/Polaris?

Why use Vue with Shopify has React/Polaris?

True! Still was looking into best implementation for this. I'd rather not include another package as that would be odd and also mean more setup.

What sort of flow were you invisioning for using frontend/backend

I'm not sure what this question is asking? Deeper Polaris integration from the outset?

Closing for now as I dont have a good solution to offer. @tobiasdalhof  If you have more insight, feel free to reopen :)


Add special show for Projected with Shift

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

Project coverage is 96.88%. Comparing base (443c8a5) to head (0198438).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #162      +/-   ##
==========================================
+ Coverage   96.86%   96.88%   +0.01%
==========================================
  Files          26       26
  Lines        1116     1123       +7
==========================================
+ Hits         1081     1088       +7
  Misses         35       35

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Incorrect date value is returned if year is greater than 4000.

If date value has year greater than 4000, parsed date is incorrect. e.g. If date value is 31DEC9999 in SAS dataset then parser returns 29DEC9999, whereas it should 31DEC9999.

Hi, @verma2869
If it is possible could you please share a file with a such date?
I've just tried to reproduce something similar using limited access to SAS environment.
See, this SAS program parses the same date and outputs it as seconds since 01JAN1960
data test;
    dtime = '31DEC9999:00:00:00'dt;
    put dtime;
run;

It outputs:<PHONE_NUMBER>00
Then I put this value into the plain Java program:
long sasSecondsOf31Dec9999 =<PHONE_NUMBER>00L;
long secondsSince1960Till1970 = 315619200L;
long javaMillisFor9999 = sasSecondsOf31Dec9999 * 1000 - secondsSince1960Till1970 * 1000;
System.out.println(Instant.ofEpochMilli((long) javaMillisFor9999));

And it outputs: 9999-12-29T00:00:00Z
The same invalid date as you reported.
Not sure why this difference happens...
And you are right, the same problems for dates after 4000 year.
Sounds like SAS uses some secret information that Earth will rotate a bit faster after 4000 )
Actually, need some time to investigate.

Hi @xantorohara,
date_data.zip
Attached file contains a sas7bdat and a csv file. CSV file is just a test format of sas7bdat.
What I found is Java & Python does not consider year 4000 & 8000 as leap year whereas SAS consider them as leap year and hence adds leap days into their records.
I fixed this issue by adding those leap days into java result and returned the result. The same can be done here also.
Let me know if you want me to add that fix here.

Indeed, it's very interesting: https://en.wikipedia.org/wiki/Year_1900_problem#Year_4000_problem

Hi, @verma2869
You are right, it is related to Y4K and Y8K leap days.
I've prepared the fix here: https://github.com/epam/parso/compare/master...xantorohara:bugfix/81-leap-y4k-y8k-day-fix?expand=1
For now it also contains small unit test based on the SAS file you send before.
But i think it would be better to cover more dates in the unit tests before the merge-request into epam/parso
So, may I ask you to add these additional dates into the your "date_data.sas" file:
28FEB4000
01MAR4000
31DEC4000
28FEB8000
01MAR8000
31DEC8000

if it is possible?
Then I can add the file and these dates into the unit tests.
Thanks!

Hi @xantorohara,
date_data.zip
Attached is the updated SAS dataset.
Thanks!

Thanks, @verma2869
I've included this file into unit tests and created a pull-request.

Thanks, @verma2869
I've included this file into unit tests and created a pull-request.

closed thanks to xantorohara

closed thanks to xantorohara


Install only python_utils as package

setup.py:
Provide an include list for setuptools.find_packages() [1], which is called
within setuptools.setup()'s packages parameter.
This prevents the tests being picked up as a package and installed
top-level in the site-packages directory (conflicting with other
packages, that also make this mistake).
Fixes #11
[1] https://packaging.python.org/guides/distributing-packages-using-setuptools/#packages

Ah lol, just realized that this is a dup implementation of #10

Ah lol, just realized that this is a dup implementation of #10

Guess you can now decide whether you would like your glass "half full" or "half empty" :laughing:

Guess you can now decide whether you would like your glass "half full" or "half empty" :laughing:

Coverage remained the same at 100.0% when pulling 632a90dfbf9195cb67ea9e8c7248b31ecf88af6d on dvzrv:issues/11 into f65dd4b86c8fb7575e8b52855139d883baffcd89 on WoLpH:develop.

Coverage remained the same at 100.0% when pulling 632a90dfbf9195cb67ea9e8c7248b31ecf88af6d on dvzrv:issues/11 into f65dd4b86c8fb7575e8b52855139d883baffcd89 on WoLpH:develop.

Coverage remained the same at 100.0% when pulling 632a90dfbf9195cb67ea9e8c7248b31ecf88af6d on dvzrv:issues/11 into f65dd4b86c8fb7575e8b52855139d883baffcd89 on WoLpH:develop.

Coverage remained the same at 100.0% when pulling 632a90dfbf9195cb67ea9e8c7248b31ecf88af6d on dvzrv:issues/11 into f65dd4b86c8fb7575e8b52855139d883baffcd89 on WoLpH:develop.

Haha, great minds think alike.
I've already made this change for several of my other packages but I forgot about this one. I'll merge one of the fixes and create a new release :)

Haha, great minds think alike.
I've already made this change for several of my other packages but I forgot about this one. I'll merge one of the fixes and create a new release :)

When creating new packages I often simply copy one of my "base" packages which makes the exclude much more convenient. Thank you for the help in any case!

When creating new packages I often simply copy one of my "base" packages which makes the exclude much more convenient. Thank you for the help in any case!

In case you are using vim: I can recommend creating a snippet for ultisnips for this use-case! :)
Glad it's solved!

In case you are using vim: I can recommend creating a snippet for ultisnips for this use-case! :)
Glad it's solved!

I am :)
I guess I'll have to give that a try. Somehow I've got a whole snippets configuration in my vimrc but I never actually use it: https://github.com/WoLpH/dotfiles/blob/1e2dc9946237e5f98f587703fd5bbac18bb34008/_vimrc#L477-L493
I just need to add it to my workflow I guess

I am :)
I guess I'll have to give that a try. Somehow I've got a whole snippets configuration in my vimrc but I never actually use it: https://github.com/WoLpH/dotfiles/blob/1e2dc9946237e5f98f587703fd5bbac18bb34008/_vimrc#L477-L493
I just need to add it to my workflow I guess


Migration Fails: Foreign key constraint is incorrectly formed

This is for the 4.0 branch. When I attempt to create the social_profiles table, the following occurs:
Welcome to CakePHP v3.1.2 Console
---------------------------------------------------------------
App : src
Path: /var/www/blah/src/
PHP : 5.6.4-4ubuntu6.3
---------------------------------------------------------------
using migration path /var/www/blah/vendor/admad/cakephp-hybridauth/config/Migrations
using environment default
using adapter mysql
using database nom_dev

 ==<PHONE_NUMBER>0000 CreateSocialProfiles: migrating

  [PDOException]
  SQLSTATE[HY000]: General error: 1005 Can't create table `blah`.`social_profiles` (errno: 150 "Foreign key constraint is incorrectly formed")

migrate [-t|--target TARGET] [-d|--date DATE] [-p|--plugin PLUGIN] [-c|--connection CONNECTION] [-s|--source SOURCE]

Looks like this was because my Users table had the id field set to int(10) unsigned.


Can't get it to work

I have this in my controller search.php
return function ($site) {

  $query   = get('q');
  $results = $site->index()->listed()->bettersearch($query, 'title|text');
  $results = $results->paginate(5);

  return [
    'query'   => $query,
    'results' => $results,
    'pagination' => $results->pagination()
  ];

};

but not getting any results, in fact kirby (3.3.2 with php 7.3.7) throws a "Call to a member function paginate() on null" error? Even when removing the pagination, it still does not return any results.
Query is "http://mysite.com/search?q=the"
changing bettersearch back to the inbuilt function "search" works.

Sorry, it's working fine. It was a silly file permission issue on my end.
Thanks for the nice plugin.


Menu is hidden when user releases mouse click

Is your feature request related to a problem? Please describe.
Currently the menu closes immediately when the user clicks on a menu item. This takes away time for the user process the experience.
Describe the solution you'd like
Hide the menu when the user releases the mouse after clicking the menu option.

@jason-capsule42 correct me if I am wrong, but this feels like the responsibility of auro-dropdownmenu?


Want API for changing the cursor blink rate

I don't see any documentation for this, so maybe it's my fault, but I would like an API for changing the cursor blink speed. It's faster than most other apps on OS X, and the inconsistency squicks my CDO. I definitely don't need or want it changed in the base app, but would like the ability to make a package for it. I am aware of ease-blink but I don't see the API it uses in the documentation, and the search isn't finding it. I will freely admit that I am brand new to Atom and thus am probably missing something; pointers to the manual would be greatly appreciated, if that's what I'm missing!

There is a topic on Discuss, the official Atom forum, that talks about the feature you're asking for and suggests a hack for a workaround:
https://discuss.atom.io/t/how-to-set-cursorblinkperiod-in-new-react-js-editor/11064

I knew there was a hackish way to do it--that's what ease-blink does--but I'd like something documented so that it survives implementation changes.

:+1:

It's already possible to customize the cursor blink rate or style using the styles.less. You can see examples here:

Make the cursor pulse instead of blink
Stop the cursor from blinking

Since we aren't intending to add a feature for this to the Atom API, I'm going to close this issue. Thanks very much for the feedback!


Updating with new JS SDK and SpinKube deployment for Magic-8-ball

There is a problem with the dev container to be looked at...


Added 'firmware' section to docs

This is again some changes to the docs. Can be seen on my forked repo leonhma/infidel-sensor. I also deleted the gh-pages workflow, in favor of hosting the docs on rtd. This is also linked in the forked repo and the pullrequest preview as in #44 can be seen in leonhma/infidel-sensor#2 (click on 'show all checks' and then 'details'). To add this feature either an existing maintainer has to link to rtd and set stuff up, or i can do it and will have to be made maintainer.

@leonhma I don't mind making you a maintainer.

@drspangle cool, i can add it this afternoon.

Hopefully the discussion in https://github.com/drspangle/infidel-sensor/pull/48 will help move this forwards

@drspangle already set up the docs on RTD (you can see them here: https://infidel-sensor.readthedocs.io/, maybe add that link as the homepage). So everything is set up, but you may want to merge this pr anyways (it contains some improvements to the docs and issue forms). It seems like @CCMCAGP noticed some unclear instructions, maybe he will help rephrase some of them.
Sorry if you may not hear back from me for the next week, I'm on vacation with my family and mobile network is kinda spotty here :/

All good, thanks @leonhma for the context & no worries if you're on holiday. I would suggest then @drspangle to merge this pull request if you're happy. @CCMCAGP can make a pull request on the latest version when merged & I can update the documentation link from the readme in another pull request.
@drspangle does this work for you?

Link to the docs has been updated via #61 . @drspangle can you advise on the above?

I see the link is updated, I guess I've got to edit the URL in the repo
configuration?
On Sat, Nov 20, 2021, 3:15 PM Darigov Research @.***>
wrote:

Link to the docs has been updated via #61
https://github.com/drspangle/infidel-sensor/pull/61 . @drspangle
https://github.com/drspangle can you advise on the above?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/drspangle/infidel-sensor/pull/54#issuecomment-974705877,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAU4ISZ6KPKE6BPRVK464BDUM76W5ANCNFSM5AFFSJ2A
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.


Reprocessed Error streams do not disappear if no Events streams generated.

stroom v6.0.7
If an error stream with no associated Events stream is reprocessed after fixing the reason for the error and the resulting processing doesn't output any error or event streams, then the original error stream does not appear to get deleted.

This is fixed in v7


aligner = pybel.ob.OBAlign() AttributeError: module 'openbabel.openbabel' has no attribute 'OBAlig

Dear author
When I run the program, a bug occurred, how I solve this problem "
aligner = pybel.ob.OBAlign()
AttributeError: module 'openbabel.openbabel' has no attribute 'OBAlig"
“.
Thanks for your help

Thanks for your reply.
My Python version is "3.9.12", and  openbabel version is <IP_ADDRESS>. However, the error still report as above mentioned.

Thank you for the feedback!
This is interesting.  To make sure your openbabel and auto3d are in the same environment, could you try the following commands in your terminal and share the output?
conda list Auto3D
conda list openbabel
python
from openbabel import pybel
aligner = pybel.ob.OBAlign()

The output will help me to reproduce your bug and figure out what is going on.  Thanks!
Here is my output when trying the above commands:
(py39) liu5$conda list Auto3D
# packages in environment at /opt/anaconda3/envs/py39:
#
# Name                    Version                   Build  Channel
auto3d                    1.13                     pypi_0    pypi
(py39) liu5$conda list openbabel
# packages in environment at /opt/anaconda3/envs/py39:
#
# Name                    Version                   Build  Channel
openbabel                 3.1.1            py39hb4f85b1_4    conda-forge
(py39) liu5$python
Python 3.9.13 (main, Aug 25 2022, 18:29:29)
[Clang 12.0.0 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from openbabel import pybel
>>> aligner = pybel.ob.OBAlign()
>>>

Thanks for your kindly suggestions. I have reinstall the software as the tutorial you writed and the software works. The  error I mentioned above possible due to I use the virtualenv software to conduct the environment.

Great to know that it worked out! Thanks for supporting Auto3D. Since the issue is solved, I will close it for now.  Feel free to open issues if you have further questions.


Add missing example files

The README file mentions two small functional examples that should be provided: exemple1.json and exemple2.json.
Is it possible to add these files?
(exemple1.json, exemple2.json, output1.txt, output2.txt)

Hello,
The file were added to the repository.


Subject Name (CN) with special characters

Our {{OnPrem_Distinguished_Name}} value is having a comma and hence it's not able to generate the certificate. Our DN looks like below
Example DN: CN="LastName, FirstName,OU=UserAccounts,DC=corp,DC=contoso,DC=com"
I found below an article that says to add quotes in CN value but not able to find a way to use it as the value for {{OnPrem_Distinguished_Name}} is generating automatically from AD connect.
https://docs.microsoft.com/en-us/mem/intune/protect/certificates-profile-scep#avoid-certificate-signing-requests-with-escaped-special-characters
So now I know that I need to pass value like below to make it work but the question is how to pass that value?
CN=""LastName, FirstName”,OU=UserAccounts,DC=corp,DC=contoso,DC=com"
Many organizations using LastName, FirstName format so it's a very common situation so can we include a way to generate the certificate in such scenarios?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 9f709fd4-0b5d-b238-4060-222d550cd538
Version Independent ID: fb3f29da-2236-c47d-6bea-8efbcec8d7d3
Content: Using Certificates for AADJ On-premises Single-sign On single sign-on - Microsoft 365 Security
Content Source: windows/security/identity-protection/hello-for-business/hello-hybrid-aadj-sso-cert.md
Product: w10
GitHub Login: @mapalko
Microsoft Alias: mapalko

Able to fix the issue. Can you please consider adding below two points in the DOC so it helps everyone in future.
Main credit goes to Cici Wu-MSFT : https://docs.microsoft.com/en-us/answers/questions/364488/windows-hello-for-business-certificate-issue.html
Point 1: If {{OnPrem_Distinguished_Name}} is having comma in CN value then Subject name format must be CN="{{OnPrem_Distinguished_Name}}"
Point 2: If the subject name lenght is more than 64 characters , need to disable name length enforcement using command "certutil -setreg ca\EnforceX500NameLengths 0" on Internal CA server
Reference: https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2003/cc784789(v=ws.10)?redirectedfrom=MSDN#disable-dn-length-enforcement

Closing via #9455
Thank you


Inheritdoc fixes

This should fix StyleCI failing on you.

Ping @wachterjohannes. Please review https://styleci.io/analyses/8PBxPq. You appear to have a bug in your code. StyleCI is now picking this up for you. :)

Looks like there was a lot changed in StyleCI... Thank you for the fix, I will do the other ones in a separate PR.

Great. :)

@GrahamCampbell looks good ... seems like that inheritdoc was generated by an older intellij version with an uppercase D. but now its generated correct ...


firecracker: 0.24.5 -> 0.25.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/firecracker-microvm/firecracker/releases.
meta.description for firecracker is: "Secure, fast, minimal micro-container virtualization"
meta.homepage for firecracker is: "http://firecracker-microvm.io"
meta.changelog for firecracker 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/x0jj8jr4f7yfgp6y024w6amzr7lqlxs3-firecracker-0.25.0/bin/firecracker passed the binary check.

/nix/store/x0jj8jr4f7yfgp6y024w6amzr7lqlxs3-firecracker-0.25.0/bin/jailer passed the binary check.

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

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

found 0.25.0 with grep in /nix/store/x0jj8jr4f7yfgp6y024w6amzr7lqlxs3-firecracker-0.25.0

found 0.25.0 in filename of file in /nix/store/x0jj8jr4f7yfgp6y024w6amzr7lqlxs3-firecracker-0.25.0

directory tree listing: https://gist.github.com/87b18368172e68ae597109a6af1557ff

du listing: https://gist.github.com/b4d2c04ad2101c8e1b9d1362312973f4

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

4 total rebuild path(s)

2 package rebuild(s)

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

First fifty rebuilds by attrpath
firecracker
ignite

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/x0jj8jr4f7yfgp6y024w6amzr7lqlxs3-firecracker-0.25.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 firecracker https://github.com/r-ryantm/nixpkgs/archive/1876680e12eeda31706082acfbf61624024168bf.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/x0jj8jr4f7yfgp6y024w6amzr7lqlxs3-firecracker-0.25.0
ls -la /nix/store/x0jj8jr4f7yfgp6y024w6amzr7lqlxs3-firecracker-0.25.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

2 packages built:

firecracker
ignite

Maintainer pings
cc @thoughtpolice @endocrimes for testing.

Done in #156130


System.TypeLoadException: 'Could not resolve type with token 010000e0 from typeref (expected class 'FftSharp.FFT' in assembly 'FftSharp, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null')'

Hello,
I've just updated to the latest version 2.0.0 and came across this error. I also used the new code as in the README.md to get the magnitude.
The program breaks at this line from another file before it came to the process of FFT.
AudioService.cs
float[] magnitude = fftService.GetMagnitude(signalBlock);

FftService.cs
public float[] GetMagnitude(double[] signal)
        {
            var windowedSignal = WINDOW.Apply(signal); // WINDOW is Hanning and is created in the constructor.
            var spectrum = FftSharp.FFT.Forward(windowedSignal);
            var magnitude = FftSharp.FFT.Magnitude(spectrum);

            // Convert to float and calculate data loss
            List<float> res = new List<float>();
            foreach (var item in magnitude)
            {
                res.Add((float)item);
            }
            return res.ToArray();

Please help me with this. Thank you in advance.

That error message with a number (010000e0) instead of a valid type name indicates an assembly version conflict. There is either a mismatch between projects in your app, or outside the IDE, a mismatch between what is available at runtime versus what it was compiled against.

Thanks for your answer MV10!

The TypeLoadException with a number token (instead of a type name) usually indicates that the assembly used at runtime is different than the one used at compile time.
Make sure all of your projects are aligned in version, and that you do not have stale ones lying around (do a git clean -xfd, or remove the packages folder, restore the nugets, and make sure there's only one XF version pulled from nuget.org)
source: https://stackoverflow.com/a/42511504


Feature Request: Run each spec in a separate process

We use Gauge to automate a Java desktop application that can only support one running instance on a given system. Our Gauge steps actually launch the application via a dependent JAR and interact with the application using Java APIs.
This works fine when we run one spec at a time, but due to all specs running in the same runner process, it does not work when running multiple specs. There's no way to terminate the application that we have launched in Gauge. We explored several options:

Have the application issue a System.exit() when a spec is done (by closing the application). Unfortunately, this kills the gauge process as well, so we get no reports and subsequent specs don't run.

Start the application in a separate process. But this would require coming up with a communication mechanism between the Gauge steps and the application's separate process.

Have an option for gauge core to run each spec in a separate runner process. The application goes away when this process ends, which allows us to restart the application in subsequent specs.

I have created a local version of Gauge that does just that, so I can submit a PR if this is something you're willing to introduce into Gauge. I created a new flag --isolated that would use a new execution type (instead of parallelExecution or simpleExecution).
I'm also open to other suggestions to accomplish the same thing.
Gauge version
1.0.5

Our Gauge steps actually launch the application via a dependent JAR

seems to suggest that your test is launching the application-to-be-tested inProcess? i.e. your tests and the application to be tested are the same process? Is this correct?

Have an option for gauge core to run each spec in a separate runner process. The application goes away when this process ends, which allows us to restart the application in subsequent specs.

I am guessing here that you have enable_multithreading set to true. If you set this to faise, gauge should use a separate process for each stream when run in parallel and each runner executes one spec at a time. Note that the runner is not recycled, and hence this isn't exactly what you request - 'one process per spec'.
Is this acceptable?

Thanks for your response. I forgot to mention that the first thing we tried was to use parallel runs, but unfortunately that didn't work for our case either.

seems to suggest that your test is launching the application-to-be-tested inProcess? i.e. your tests and the application to be tested are the same process? Is this correct?

That's correct. It's a desktop application that doesn't have a means to drive it from a separate process, so we launch it via the tests in the same process.

I am guessing here that you have enable_multithreading set to true. If you set this to faise, gauge should use a separate process for each stream when run in parallel and each runner executes one spec at a time. Note that the runner is not recycled, and hence this isn't exactly what you request - 'one process per spec'.

I did not have multithreading set to true (though it's good to know it exists - I wasn't aware of that). The problem is as you mentioned - that the runner isn't recycled.
I don't know how often Gauge is used to test a desktop application. It works really well, but I haven't found a way to terminate the application without killing Gauge itself. Killing the runner does terminate the application.
We did entertain lifting the requirement that only one instance of our application can run at a time in automation, but that causes other problems. Either we launch numerous instances of the application if each spec launches one, which causes machine resource and Java static variable issues, or each spec needs to leave the application in a state that works for the subsequent spec, which is difficult to maintain.

Thanks for the additional information. It helps.
I guess we are in agreement that launching too many instances of the application will drain the system resources. In fact, we added the multithreading ability to allow users to avoid jvm overhead for every parallel stream.

I don't know how often Gauge is used to test a desktop application
I reckon not a lot! You are probably the first person on the community to have declared it. Thank you, it helps a lot when we know what sort of use cases our users seek and envision.

haven't found a way to terminate the application without killing Gauge itself. Killing the runner does terminate the application.

I still get a feeling that this feature could not be Gauge's concern, because it is more to do with the way the application is run and shutdown rather than it being tested.

That's basically what we do. We actually trap the kill request at this point and do nothing with it. The root problem is that I don't think there's any way to gracefully shut down the application. Because the test process and the application's process are one and the same, even gracefully shutting down the application ends up killing Gauge. "Gracefully shutting down" could mean, I suppose, simply hiding the application window and doing some cleanup, but again, then we have to make sure we clean up everything and get the application back to an initial state. Easier said than done, and involves application code that is now different under test.
It's possible I didn't understand what your thoughts were regarding gracefully shutting down. Did you have something else in mind?

I still get a feeling that this feature could not be Gauge's concern, because it is more to do with the way the application is run and shutdown rather than it being tested.

I do understand and appreciate this viewpoint. In thinking about this more, I think anybody trying to automate a desktop application would run into a similar problem, unless they have a way to drive the application running as a separate process. Perhaps rather than thinking of it solely as an "isolated process" feature, maybe it's more of a "desktop mode"?

Because the test process and the application's process are one and the same

I was wondering if this could be split? i.e. have a wrapper java project that is executable, which can include all the dependencies that your application may have. and on launching this, it could bring up your application. Gauge tests can invoke this wrapper as a sub process/ sub shell and run tests.
This way you could perhaps kill the application without killing gauge-java (or gauge). Or am I missing something here?

I assume your application is not publicly shareable, but if you have a sample app that mimics the behaviour of your application's launching, that'll help troubleshoot better.

I assume your application is not publicly shareable, but if you have a sample app that mimics the behaviour of your application's launching, that'll help troubleshoot better.

While you're correct that our application isn't publicly shareable, I can definitely create a smaller app that mimics it. It will take me a little time to do it - I'm out of the office for most of this week.

I was wondering if this could be split?

Yes, it can be split, and I'm sure I could launch and terminate the application in that case without issue. The issue then is driving the launched application via the tests. We're basically using the Java Robot API (via TestFX) to drive the application, which is what is forcing the tests and the application to be the same process. The wrapper application would have to somehow forward these requests on to the application.
In any case, your idea of sharing the application is a good one. I'll start working on that.

Closing this as Gauge will not be implementing this feature.


Using Gemini with Electron

I'm designing an image viewing application in Electron, and I'm not sure if I'm setting up Gemini incorrectly, or it's simply not the right tool to use.
My app is designed, in part, to display images at 100% size with the application window perfectly proportionally scaled to them. However, the default chromium scrollbar creates a track ~20 pixels wide outside the DOM (# 1), and when I try to restyle it, I can't overlay the scrollbar over the image content.
Section # 2 is the app with scrollbars disabled, # 3 is the kind of scrollbar style I'd like to use but with the ugly track visible, and # 4 is what I'd like the end result to look like.

Can Gemini overlay the scrollbar over an image element like this? Here's a jsfiddle containing the relevant elements from my app, but it doesn't seem to work (I very likely set it up wrong): https://jsfiddle.net/devedge/fc5ad2fw/

hi @devedge, added some CSS to make it work https://jsfiddle.net/4cqbj8c0/9/

Thanks! Yes that fixes my issue.


Offboarding Metrics

Do we have any stats to support the current state of offboarding?
Perhaps the number of individuals removed annually, or NOT removed... I defer to your expertise ;)
Context: For slide 22

@jaimiebutton unfortunately, we don't any stat and it is hard to measure that stat and the issue itself can be the problem state.


Call out ExO cmdlets when being used

This is a long article and a customer has asked for us to add the need to use Exchange Online Powershell alongside SCC Powershell in the examples where ExO cmdlets are being used. The general need for ExO PS is written at the top of the article, but it would help to call-out where ExO cmdlets are being used in the examples, e.g. examples that call $DG = Get-DistributionGroup. The confusion has been that SCC also contains/contained the same PS cmdlets as ExO, but that those did not work from the SCC side.

@JohanFreelancer9 - kindly do the copy editor review for this PR. Thanks.

@AndySDay PR merged. Thanks for submitting.
@JohanFreelancer9  Thanks for editing.


autorandr freezes Hyprland

When autorandr is present on the system (the service must not even be enabled) Hyprland freezes after some time. Music keeps playing and the hotkey demon does still work, since I can close and reopen Hyprland with a key bind.
I experienced that on Sway as well, but only1–2 times a month. Hyprland freezes nearly every time after 5-10 min.
This was already posted here as comment:
https://github.com/hyprwm/Hyprland/issues/1491#issuecomment-1418258350
The log does not show anything relevant besides:
Window ca4d3040 set title to [intel/iris] [backend/drm/atomic.c:55] eDP-1: Atomic commit failed (modeset): Permission deni[98902:98902:0321/151713.114557:ERROR:wayland_frame_manager.cc(512)] The server has buggy presentation feedback. Discarding all presentation feedback requests in all frames except the last 3.
[98902:98902:0321/151713.915428:ERROR:wayland_frame_manager.cc(512)] The server has buggy presentation feedback. Discarding all presentation feedback requests in all frames except the last 3.

These are the last two lines, followed by many 0x00 bytes.

autorandr is for X11. Use kanshi instead.

If anyone has figured out how to disable autorandr without actually uninstalling it, I'm all ears. It's not a normal systemd service so I still tries to run when I switch monitors. I'm rm'd the udev rule in /usr/lib/udev/rules.d but somehow it miraculously still runs and crashes Hyprland.


Update security.md

Hello!  Found a minor typo

later iOS versions (iOS 11) where the instituted a first-come-first-served principle

I changed "the instituted" to "they instituted".

Excellent! Thanks for catching this!


Tuning with different tuning set crashes

When tuning my engine on a different tuning set other than the corpus MMT (0.13) created when preprocessing the training files, I get the following error:
ERROR Unexpected exception:         Command '/home/sariyildiznureddin/mmt/opt/bin/moses-mmt-dev_2c29__c231/scripts/mert-moses.pl /home/sariyild iznureddin/mmt/runtime/ende/tmp/tuning/corpus.en /home/sariyildiznureddin/mmt/runtime/ende/tmp/tuning/corpus.de /ho me/sariyildiznureddin/mmt/scripts/mertinterface.py /tmp/tmpnTh3jy --threads 8 --mertdir /home/sariyildiznureddin/mm t/opt/bin/moses-mmt-dev_2c29__c231/bin --mertargs '--binary --sctype BLEU' --working-dir /home/sariyildiznureddin/m mt/runtime/ende/tmp/tuning/mert --nbest 100 --decoder-flags "--port 8045" --nonorm --closest --no-filter-phrase-tab le' failed with exit code 2 Traceback (most recent call last):   File "./mmt", line 440, in <module>     main()   File "./mmt", line 416, in main     main_tune(args)   File "./mmt", line 109, in main_tune     node.tune(corpora=corpora, debug=args.debug, context_enabled=args.context_enabled)   File "/home/sariyildiznureddin/mmt/scripts/cluster.py", line 381, in tune     shell.execute(' '.join(command), stdout=log, stderr=log)   File "/home/sariyildiznureddin/mmt/scripts/libs/shell.py", line 55, in execute     raise ShellError(str_cmd, returncode, stderr_dump) scripts.libs.shell.ShellError: Command '/home/sariyildiznureddin/mmt/opt/bin/moses-mmt-dev_2c29__c231/scripts/mert- moses.pl /home/sariyildiznureddin/mmt/runtime/ende/tmp/tuning/corpus.en /home/sariyildiznureddin/mmt/runtime/ende/t mp/tuning/corpus.de /home/sariyildiznureddin/mmt/scripts/mertinterface.py /tmp/tmpnTh3jy --threads 8 --mertdir /hom e/sariyildiznureddin/mmt/opt/bin/moses-mmt-dev_2c29__c231/bin --mertargs '--binary --sctype BLEU' --working-dir /ho me/sariyildiznureddin/mmt/runtime/ende/tmp/tuning/mert --nbest 100 --decoder-flags "--port 8045" --nonorm --closest  --no-filter-phrase-table' failed with exit code 2
This is the dev set I used:
http://data.statmt.org/wmt16/translation-task/dev.tgz

Hi @mehmedes
I've just fixed issue https://github.com/ModernMT/MMT/issues/207 can you check if that solved the issue? Just pull master branch and try tuning again.
Davide

Thanks Davide!
Cleaning up the dev set did the trick.


Change Subresource and ImageCopy to match Vulkan API

As discussed on Gitter, this changes the Subresource and ImageCopy structs to match the Vulkan API.
Subresource is Copy because it's just three ints, and because the previous Subresource type (a tuple of two ints), was also copy and some existing code assumes this.
I had to change the DirectX and Vulkan code blind as I can't compile them, so as well as the CI, perhaps @kvark and/or @msiglreith can take a look at that especially.
PR checklist:

[x] make succeeds (on *nix)
[ ] make reftests succeeds (no, but Metal reftests didn't work before anyway)
[ ] tested examples with the following backends:

Let's have CI passing and @msiglreith peeking at it.


Investigate using libappstream to parse AppStream

          > Website is likely also fine https://github.com/flathub-infra/website/blob/main/backend/app/utils.py#L216

Hmm... A bit OT, but did you know that you could get appstream2dict relatively efficiently via AppStream directly?
import gi
import yaml

gi.require_version('AppStream', '1.0')
from gi.repository import AppStream

def appstream2dict(xml_fname) -> dict[str, dict]:
    mdata = AppStream.Metadata()
    mdata.set_locale('ALL')
    mdata.set_format_style(AppStream.FormatStyle.CATALOG)
    mdata.set_parse_flags(AppStream.ParseFlags.IGNORE_MEDIABASEURL)

    with lzma.open(xml_fname, 'r') as f:
        xml_catalog_data = str(f.read(), 'utf-8')

    mdata.clear_components()
    mdata.parse_data(xml_catalog_data, AppStream.FormatKind.YAML)

    return yaml.safe_load(mdata.components_to_catalog(AppStream.FormatKind.YAML))

You might not want that for various reasons, but it would be dramatically less code ^^
Originally posted by @ximion in https://github.com/flathub-infra/flat-manager-hooks/issues/101#issuecomment-1931073229

Advantages

Always parse with the latest AppStream version and have any differences between specification revisions automatically normalized into one canonical form
Very fast XML parser
Lots of utility functions readily available to validate, transform markup or query additional information
Extremely well tested
Could reduce the amount of custom code drastically

Disadvantages

PyGObject dependency, GIR and dependency on a C library is annoying to handle and could make upgrading a bit harder
Some porting effort
Drags in a few dependencies (xmlb, libyaml, curl, potentially snowball)


Added a timeout argument to execute

a timeout option to specify what is the maximum time allowed to execute for each cell before it times out. The default specified here is 30s, which is also the default value of ExecutePreProcessor.

As in https://nbsphinx.readthedocs.io/en/0.6.0/timeout.html#Cell-Execution-Timeout,
this should this also be controlled by notebook level metadata, i.e. there would be a global value (which for myst-nb could be an option in conf.py) which is used by default, but would be superseded by a value set in the notebook metadata, if present.

Great. So, we will need to read the timeout metadata information somewhere in that loop before https://github.com/ExecutableBookProject/jupyter-cache/blob/517366e31adeafd4818fb40f7c85a364e44f600b/jupyter_cache/executors/basic.py#L159.
I  will update this PR for this, and the one in myst-nb to check for conf variable

Hey @chrisjsewell , a quick question. Where do you think the timeout keyword should reside here in the metadata. Like in the example above it is inside "nbsphinx" object.
We don't have any objects at present in metadata where timeout would fit. Nor I guess, it makes sense to create a new one unless we plan to have more variables.
Top-level sounds good enough?

Where do you think the timeout keyword should reside here in the metadata.

Not quite sure TBH, maybe execution/timeout rather than "polluting" the base namespace.
Would also be nice if it was something agreed on in nbclient
cc'in @choldgraf

I opened up https://github.com/jupyter/nbclient/issues/45 to see if others in the nbclient repo have thoughts

@choldgraf should we just create an object like nbsphinx does to store the timeout.
"mystnb": {
   "timeout": 60
}

No one seems to be replying in that thread.Probably there is no jupyter-standard, else nbsphinx might have used it as well?

I think that you're right that there isn't really a standard, so let's just go with something that seems reasonable to us and we can support a new standard later on if we wish

jupyter-client doesn't/shouldn't have any direct ties to mystnb though, so it would be better to use a more generic top level key like execution or nbclient

jupyter-client doesn't/shouldn't have any direct ties to mystnb though, so it would be better to use a more generic top level key like execution or nbclient which we would then suggest in jupyter/nbclient#45

ok, so committing again with timeout key then

Just a note that matt did have some thoughts in https://github.com/jupyter/nbclient/issues/45 he just posted...it mostly comes down to "there is no current standard" but I think nbclient folks are open to agreeing on a metadata spec that is reasonable.

@choldgraf that's great. So, basically he prefers to have separate metadata for execution as well instead of namespaced subsection. Then we can ditch the option of putting timeout  in nbclient and can use execution instead in the top-level?

I'm not entirely sure - but feel free to throw out some ideas in the nbclient thread and perhaps we can come to a quick agreement

@AakashGfude this looks good from a functionality standpoint, two major points:

Could you document the timeout parameter in the docstring of one of those classes? E.g. make it clear that the number is in seconds, and also add to the docs of jupyter-cache about how to control this?
Could you add a test to make sure that this works as expected. Maybe just add the notebook timeout metadata to one of the test notebooks and make sure there's a computation in there that both: 1. breaks the timeout, and 2. happens underneath the timeout
I think it should also be possible to control the timeout globally from, say, the command line or the Python API. That way downstream in Jupyter Book, we could set a single config like execution_timeout: 60 and it would then set the timeout for every notebook execution, rather than requiring us to put the metadata in every notebook.

Does that all make sense? Lemme know what you think.

@choldgraf  have added tests and also added this as an option in cli commands, coz it might come handy?
usage example (for 10 second timeout):-
jb execute --timeout 10 or jb execute -t 10

Could you document the timeout parameter in the docstring of one of those classes? E.g. make it clear that the number is in seconds, and also add to the docs of jupyter-cache about how to control this?

have added a line in python API section of the docs. But, the execute command line option has none of its parameters specified in the docs, so, was not sure where to put it.
would like to know your thoughts.

Could you add a test to make sure that this works as expected. Maybe just add the notebook timeout metadata to one of the test notebooks and make sure there's a computation in there that both: 1. breaks the timeout, and 2. happens underneath the timeout

Thanks. Have added the tests now.

I think it should also be possible to control the timeout globally from, say, the command line or the Python API. That way downstream in Jupyter Book, we could set a single config like execution_timeout: 60 and it would then set the timeout for every notebook execution, rather than requiring us to put the metadata in every notebook.

Yup, this one has already been implemented.

This is so weird. Not sure, what got updated, but pre-commit tests are failing for files in Travis in which I did not work on.

not sure why complex_outputs*.ipynb files are failing in Travis CI. Probably because of lack of installed packages in the server. I will have a deeper look later.

Have added the same files complex_outputs_unrun and complex_outputs_unrun_metadata ad MyST-NB tests. and also the same extra testing dependencies.

nice! is this ready for a review or merge?

@choldgraf  yes

ok this LGTM and the integration tests are passing, so I'll give it a merge!

thanks very much @AakashGfude for working on this one! 👍


Not working when opening a story in a new tab

Hi,
I'm having an issue with your addon when I do this:

Open any story.
Click on "open in new tab".

It justs renders "no theme" in the new tab.
It works fine when using inside the Storybook UI (Canvas + Docs tabs), although I have an annoying warning.
For info, I'm using these versions (+ emotion):
{
    "@react-theming/storybook-addon": "^1.0.2",
    "@storybook/addon-actions": "^5.3.14",
    "@storybook/addon-docs": "^5.3.14",
    "@storybook/addon-knobs": "^5.3.14",
    "@storybook/addon-viewport": "^5.3.14",
    "@storybook/addons": "^5.3.14",
    "@storybook/react": "^5.3.14",
    "@storybook/theming": "^5.3.14",
}

And using it like this
import { ThemeProvider } from 'emotion-theming';
import { withThemes } from '@react-theming/storybook-addon';

// Emotion theming.
const loadThemes = () => {
  const req = require.context('../src/config/style/themes/', true, /\.jsx?$/i);
  return req.keys().map(filename => pick(req(filename), ['name', 'theme']));
};

const themes = loadThemes();

addDecorator(
  withThemes(
    // I need to pass the themes to withThemes as { theme: {}, name: string },
    // but I only want to pass the theme to my ThemeProvider, so this is just a proxy component.
    ({ theme: { theme }, ...props }) => (
      <ThemeProvider
        {...props}
        theme={theme}
      />
    ),
    themes,
  ),
);

Hi @gautier-lefebvre
Thanks for reporting this!
it's solved in v1.0.3


Feature: An Endpoint to verify thing channel connection

Is your feature request related to a problem? Please describe.
In Bootstrap, for the request to change the state to 1, we need to send request to things service to connect the thing and channel from bootstrap service using SDK. If the thing and channel are already connected, things service returns an error.
Therefore, we should check if the thing and channel are connected before sending the connect request from Bootstrap.
To check if the thing and channel are connected, the only way we have now is to list the channels to which the thing is connected and then check if the channel ID is present in that list.
Listing is not an efficient process. For example, if the thing has 100 channel connections, we need to retrieve the entire list of 100 channels and then check if the connection requested channel ID is present in that list.
Describe the feature you are requesting, as well as the possible use case(s) for it.
One solution to this problem is implementing a feature, specifically an endpoint in the Things service, to verify if a thing and a channel are connected. This will streamline the process and avoid the inefficiency of listing all channels to which a thing is connected. Here's a detailed outline of this solution:
Endpoint: GET /verify-connection
Request Parameters:

thing_id: The ID of the thing.
channel_id: The ID of the channel.

Response:

200 OK: If the thing is connected to the channel.
204 No Content or 401 or 403: If the thing is not connected to the channel.

Indicate the importance of this feature to you.
Must-have
Anything else?
No response

This one is musted need for this ticket https://github.com/absmach/magistrala/issues/2302

Example ;
Request : http://localhsot/things/verify-connections
Body :
{ "thing_ids" : ["thing_id_1", "thing_id_2"] , "channel_ids" : [ "channel_id_1" ,"channel_id_2" ] }

Response :
{
  "status": "all_connected" , // all_disconnected or partially
  "connection_status":  [
         {
             "thing_id" : "thing_id_1",
             "channel_id" : "channel_id_1" ,
             "status" : "connected",
         },
          {
             "thing_id" : "thing_id_1",
             "channel_id" : "channel_id_2" ,
             "status" : "disconnected",
         },
          {
             "thing_id" : "thing_id_2",
             "channel_id" : "channel_id_1" ,
             "status" : "disconnected",
         },
          {
             "thing_id" : "thing_id_2",
             "channel_id" : "channel_id_2" ,
             "status" : "connected",
         }
    ]
}


[BEAM-4242] Fixes O(n) complexity of Wait.on() due to combiner lifting

Fixes Wait implementation to not depend on combiner lifting happening
Fixes the condition for combiner lifting to only account for the trigger in streaming

R: @chamikaramj
CC: @mairbek

Run Java PreCommit

Precommit failure was an existing failing test; rebased anyway to pick up the blacklisting of that test, PTAL.

Run Java PreCommit


Float values in refinement list don't sort properly.

Describe the bug 🐛
Float values in refinement list don't sort properly.
To Reproduce 🔍
Steps to reproduce the behavior:

Pick a test index
Add size attribute and put values like 9, 9.5, 10, 10.5, 11…
Add size as a facet filter
Add refinement list to your page:

search.addWidget(
  instantsearch.widgets.refinementList({
    container: '#brand-list',
    attributeName: 'size',
    sortBy: ['size:asc'],
  })
);

https://codesandbox.io/s/420yp9lyn0
Expected behavior 💭
Should be sorted 9, 9.5, 10. It's 9, 10, 9.5 instead.
Screenshots 🖥

Environment:

OS: Mac
Browser: Chrome
Version 68.0.3440.106

Additional context
Please ping me back when it's solved so I can contact the customer who reported it.

Thanks @noclat that's indeed an annoying problem and definetely unexpected. We should be able to do better.
Looking at a response from Algolia, we can notice two things:

the facet values are strings whatever the number they are in the engine
if the values are numbers, the facet stats will give us some statistics which is a strong signal about the type.

{
  "results": [
    {
      "hits": [...],
      "nbHits": 15297,
      "page": 0,
      "nbPages": 50,
      "hitsPerPage": 20,
      "processingTimeMS": 11,
      "facets": {
        "price": {
          "39.99": 731,
          "49.99": 699,
          "19.99": 680,
          "29.99": 624,
          "99.99": 590,
          "59.99": 454,
          "24.99": 404,
          "34.99": 354,
          "199.99": 342,
          "79.99": 342
        }
      },
      "facets_stats": {
        "price": {
          "min": 1,
          "max": 4999.99,
          "avg": 258.651,
          "sum": 3956580
        }
      },
      "exhaustiveFacetsCount": true,
      "exhaustiveNbHits": true,
      "query": "h",
      "params": "query=h&maxValuesPerFacet=10&page=0&facets=%5B%22price%22%5D&tagFilters=",
      "index": "instant_search"
    }
  ]
}

We should be able to leverage that information to infer the type of the facet and apply a correct sort but it implies a lot of magic behind the scene.
On the other hand, the user knows better and could easily implement a custom sort function:
search.addWidget(
  instantsearch.widgets.refinementList({
    container: '#brand-list',
    attributeName: 'price',
    sortBy: function(a, b) {
      return Number.parseFloat(a.name) - Number.parseFloat(b.name);
    },
  })
);

@bobylito I think this issue should be addressed in the JavaScript helper since we leverage the getFacetValues() method in connectRefinementList (see corresponding line →).

@bobylito I think this issue should be addressed in the JavaScript helper since we leverage the getFacetValues() method in connectRefinementList (see corresponding line →).

Yes that seems to be the place to fix 👍
Let's keep this issue for keeping track of the implementation at the IS.js level.

Thanks for the effort in handling this folks! I understand, super clear answers 🙌.

This can be solved by using sortBy with a parseFloat (otherwise it sorts alphabetically). As using numerical values for facets is not the main use case (because it usually will explode quickly in number of values, making a range more interesting), I'll close this issue for now.


Request Error:Failed to connect to api.openai.com port 443 after 21066 ms: Timed out

Describe the bug
When I use a third-party Python library for OpenAI, it can return results normally. However, when I run PHP, it returns false. When I checked with curl_errno(), I found the error mentioned above. Both situations are under the same network conditions, and I have ruled out the issue of SSL certificate expiration. What could be the problem?
To Reproduce

Code snippets
No response
OS
Windows
PHP version
php 8.2
Library version
4.7

Sorry for bothering you, the problem has been resolved. I carefully checked your documentation and found out that I needed to set up a proxy.

Sorry for bothering you, the problem has been resolved. I carefully checked your documentation and found out that I needed to set up a proxy.

Please check
https://github.com/orhanerday/open-ai/issues/44#issuecomment-1399185556

This is perfect, I think you called the Use Proxy method for solving issues,
Closing now.


the @scroll event of  in android

the @scroll event of  in android
it triggered only once when  it's offset in android
but it's effective in ios
what will cause this situation？
Thanks for your help🙏

Could you please provide a demo
I will just close the issue, feel free to reopen it when you are ready.
I only response to issues that are open.


Model setup

Looks good - did we end up saying the CC number had to be a string? or is integer still OK?

@blakebequette Ya needs to be string... i've made the update in the conflict resolution but looks like we're going to use stripe anyway


About the variance of 0.016

Hi, authors. In your paper, you mentioned:

Specifically, we set $\epsilon$ to the mean $\mathcal{l}_\infty$ norm of embedding differences between five captions that correspond to the same image. We estimated this based on captions of only 15 MS-COCO images.

I would like to know, have you released the corresponding code detail of the estimate of the variance?

Hi,
Yes. We calculate it using the predictions_runner.py script with the flag --ablation_dist and the flag --text_autoencoder (which specify to use CLIP text encoder rather than an image encoder, see its main method there: calc_distances_of_ready_embeddings).
This will print the results of the average max norm of 900 samples but it will also save the 900 values to a pickle file so you can make sure this estimation could be done also with only 15 samples with high confidence (i.e. the variance of the max norm of different sets is negligible).

Thanks for your reply, I calc the average result on val set, and it seems normal. But something confused me: you mentioned $l_\infty$ norm in your paper, but it seems that the $l1$ norm result is adopted. Is there anything I missed or mistake?

It prints a few different metrics though the infinity norm is the one that is printed here in line 86.