text:
Where is grip_ready pose defined?

After fixing another minor issue in the panda_mvp_grasp.py file regarding logging, I'm facing this error:
$ rosrun mvp_grasping panda_mvp_grasp.py
[ INFO] - [/moveit_python_wrappers_1579259656982902166::core::RobotModel::buildModel::93]: Loading robot model 'panda'...
[ INFO] - [/moveit_python_wrappers_1579259656982902166::core::RobotModel::buildModel::93]: Loading robot model 'panda'...
[ INFO] - [/moveit_python_wrappers_1579259656982902166::planning_interface::MoveGroupInterface::MoveGroupInterfaceImpl::MoveGroupInterfaceImpl::178]: Ready to take commands for planning group panda_arm_hand.
No weight. Success? [1/0]0
Name of this experiment? asdasd
Press Enter to Start.
[ERROR] - [/moveit_python_wrappers_1579259656982902166::planning_interface::MoveGroupInterface::setNamedTarget::1690]: The requested named target 'grip_ready' does not exist
Traceback (most recent call last):
  File "/home/ap/mvp_ws/src/mvp_grasp/mvp_grasping/ros_nodes/panda_mvp_grasp.py", line 62, in <module>
    agc.go()
  File "/home/ap/mvp_ws/src/mvp_grasp/mvp_grasping/src/mvp_grasping/panda_base_grasping_controller.py", line 307, in go
    self.pc.goto_named_pose('grip_ready', velocity=0.25)
  File "/home/ap/mvp_ws/src/mvp_grasp/franka_control_wrappers/src/franka_control_wrappers/panda_commander.py", line 146, in goto_named_pose
    self.active_group.set_named_target(pose_name)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/moveit_commander/move_group.py", line 326, in set_named_target
    raise MoveItCommanderException("Unable to set target %s. Is the target within bounds?" % name)
moveit_commander.exception.MoveItCommanderException: Unable to set target grip_ready. Is the target within bounds?

My best guess is you having this pose defined somewhere else on your system, possibly via the MoveIt Setup Assistant. The same is probably true of  the drop_box pose.
Maybe we could set them inside PandaCommander instead of there, so they're available here as well for configuration?

I noticed few things:
to pass number of argument error we need to use self.active_group.remember_joint_values( 'grip_ready', pose). So there is no need to use self.
this_pose = self.active_group.get_current_pose(); doesn't work because of panda I believe. Because eef_link = self.active_group.get_end_effector_link() doesn't return anything. I could pass it by writing something like this this_pose = self.active_group.get_current_pose(end_effector_link = "panda_link8").pose
But now I'm confused because get_current_pose return a pose but in self.active_group.remember_joint_values we talk about join instead of pose.
So I thought to use something like this:
this_pose = self.active_group.get_current_joint_values()
self.active_group.remember_joint_values("grip_ready", this_pose) #)
self.active_group.remember_joint_values("drop_box", this_pose)
It throw following error:
catkin_ws/src/mvp_grasp/franka_control_wrappers/src/franka_control_wrappers/panda_commander.py", line 165, in goto_named_pose
self.active_group.set_named_target(pose_name)
File "/opt/ros/melodic/lib/python2.7/dist-packages/moveit_commander/move_group.py", line 326, in set_named_target
raise MoveItCommanderException("Unable to set target %s. Is the target within bounds?" % name)
moveit_commander.exception.MoveItCommanderException: Unable to set target grip_ready. Is the target within bounds?
Any Idea @aPonza @dougsm

I can see where my error was: I wasn't including the two joint values for the fingers. Anyways it's weird, because it goes to "ready" but not to "grip_ready"... and then again, after going to "ready" I get a similar error to the previous one about the end effector, so maybe that part still has to be fixed before anything works. Maybe @dougsm has made edits to their panda_moveit_config?

The only changes that I would have made to the panda_moveit_config would be to add the named poses to the srdf, and nothing else.
Regarding the other issues, I have to admit that I'm unsure.  However, do keep in mind that the franka_ros and panda_moveit_config code have undergone fairly major changes in the last ~12 months.  If you're having problems with the moveit interface, it might be better to ask over on their repo.
Also, see my above post with the ACRV panda control wrappers which may simplify things for you by abstracting some of the franka libraries.

I checked panda_moveit_config and I only see trajopt changes and a couple extra default poses, but nothing that would bother a missing end effector. Similarly, for franka_ros, I can see tens of commits regarding dual arm usage, the services being moved, but nothing which should affect the end effector. Are you referring to something in particular? I tried rebuilding with an updated franka_ros (both 0.7.0 and master) and panda_moveit_config (master) but nothing seemed to change.

@aPonza I fixed the end effector error. The error has something to do with group_name in the panda_commander.py. Here what I did:

def init(self, group_name='panda_arm_hand'):
self.robot = moveit_commander.RobotCommander()
self.scene = moveit_commander.PlanningSceneInterface()
self.groups = {}
self.active_group = None

  self.set_group("panda_arm")

Mmm you might actually want to change this line https://github.com/dougsm/mvp_grasp/blob/48330d45a135a5cf1bb058909ed1323be200069f/mvp_grasping/src/mvp_grasping/panda_base_grasping_controller.py#L170 to say 'panda_arm', instead of the other two edits you made.
It does do more than before, but since method go is not implemented in MVPGraspController it goes to call BaseGraspController's go which uses its own __velo_control_loop() instead of MVPGraspController's. Some methods need to be overridden, you can temporarily copy MVPGraspController's body in BaseGraspController's method.
This leads to tensorflow issues, which is what I suspected would happen installing tensorflow instead of tensorflow-gpu. Not sure this one is solvable:
[ERROR] - [/ap_grasping_velo::_invoke_callback::753]: bad callback: <bound method MVPGraspController.__update_callback of <__main__.MVPGraspController object at 0x7f5b41563550>>
Traceback (most recent call last):
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/topics.py", line 750, in _invoke_callback
    cb(msg)
  File "/home/ap/mvp_ws/src/mvp_grasp/mvp_grasping/src/mvp_grasping/panda_base_grasping_controller.py", line 226, in __update_callback
    res = self.entropy_srv()
  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 515, in call
    responses = transport.receive_once()
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/impl/tcpros_base.py", line 727, 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 353, in read_messages
    self._read_ok_byte(b, sock)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/impl/tcpros_service.py", line 336, in _read_ok_byte
    raise ServiceException("service [%s] responded with an error: %s"%(self.resolved_name, str))
ServiceException: service [/grasp_entropy_node/update_grid] responded with an error: error processing request: Error while reading resource variable conv2d_transpose_3/bias from Container: localhost. This could mean that the variable was uninitialized. Not found: Resource localhost/conv2d_transpose_3/bias/N10tensorflow3VarE does not exist.
	 [[{{node conv2d_transpose_3/BiasAdd/ReadVariableOp}}]]

[...similar errors follow...]

@aPonza I'm in the same stage with following error:
the grasp_entropy_service node returns errors like:
[ERROR] [1581593428.562427]: Error processing request: 2 root error(s) found.
(0) Failed precondition: Error while reading resource variable cos_out/bias from Container: localhost. This could mean that the variable was uninitialized. Not found: Resource localhost/cos_out/bias/N10tensorflow3VarE does not exist.
[[{{node cos_out/BiasAdd/ReadVariableOp}}]]
[[sin_out/BiasAdd/_39]]
(1) Failed precondition: Error while reading resource variable cos_out/bias from Container: localhost. This could mean that the variable was uninitialized. Not found: Resource localhost/cos_out/bias/N10tensorflow3VarE does not exist.
[[{{node cos_out/BiasAdd/ReadVariableOp}}]]
0 successful operations.
0 derived errors ignored.
['Traceback (most recent call last):\n', '  File "/opt/ros/melodic/lib/python2.7/dist-packages/rospy/impl/tcpros_service.py", line 629, in _handle_request\n    response = convert_return_to_response(self.handler(request), self.response_class)\n', '  File "/home/seivazi/catkin_ws/src/mvp_grasp/mvp_grasping/ros_nodes/grasp_entropy_node.py", line 128, in update_service_handler\n    points, angle, width_img, _ = predict(depth_crop, process_depth=False, depth_nan_mask=depth_nan_mask)\n', '  File "/home/seivazi/catkin_ws/src/mvp_grasp/ggcnn/src/ggcnn/ggcnn.py", line 67, in predict\n    pred_out = model.predict(depth.reshape((1, 300, 300, 1)))\n', '  File "/home/seivazi/.local/lib/python2.7/site-packages/tensorflow/python/keras/engine/training.py", line 1078, in predict\n    callbacks=callbacks)\n', '  File "/home/seivazi/.local/lib/python2.7/site-packages/tensorflow/python/keras/engine/training_arrays.py", line 363, in model_iteration\n    batch_outs = f(ins_batch)\n', '  File "/home/seivazi/.local/lib/python2.7/site-packages/tensorflow/python/keras/backend.py", line 3292, in call\n    run_metadata=self.run_metadata)\n', '  File "/home/seivazi/.local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1458, in call\n    run_metadata_ptr)\n', 'FailedPreconditionError: 2 root error(s) found.\n  (0) Failed precondition: Error while reading resource variable cos_out/bias from Container: localhost. This could mean that the variable was uninitialized. Not found: Resource localhost/cos_out/bias/N10tensorflow3VarE does not exist.\n\t [[{{node cos_out/BiasAdd/ReadVariableOp}}]]\n\t [[sin_out/BiasAdd/_39]]\n  (1) Failed precondition: Error while reading resource variable cos_out/bias from Container: localhost. This could mean that the variable was uninitialized. Not found: Resource localhost/cos_out/bias/N10tensorflow3VarE does not exist.\n\t [[{{node cos_out/BiasAdd/ReadVariableOp}}]]\n0 successful operations.\n0 derived errors ignored.\n']
@dougsm any suggestion?

$ git diff ggcnn/src/ggcnn/ggcnn.py
diff --git a/ggcnn/src/ggcnn/ggcnn.py b/ggcnn/src/ggcnn/ggcnn.py
index 396e627..8a49dc5 100644
--- a/ggcnn/src/ggcnn/ggcnn.py
+++ b/ggcnn/src/ggcnn/ggcnn.py
@@ -8,10 +8,17 @@ import tensorflow as tf
 from tensorflow.keras.models import load_model

 from dougsm_helpers.timeit import TimeIt
+from tensorflow.python.keras.backend import set_session

+session = tf.keras.backend.get_session()
+init = tf.global_variables_initializer()
+session.run(init)
+
+graph = tf.get_default_graph()
+
+set_session(session)
 MODEL_FILE = 'models/epoch_29_model.hdf5'
 model = load_model(path.join(path.dirname(__file__), MODEL_FILE))
-graph = tf.get_default_graph()

 TimeIt.print_output = False  # For debugging/timing

@@ -58,12 +65,16 @@ def process_depth_image(depth, crop_size, out_size=300, return_mask=False, crop_

 def predict(depth, process_depth=True, crop_size=300, out_size=300, depth_nan_mask=None, filters=(2.0, 1.0, 1.0)):
+    global sess
+    global graph
+
     if process_depth:
         depth, depth_nan_mask = process_depth_image(depth, crop_size, out_size, True)

     # Inference
     depth = np.clip((depth - depth.mean()), -1, 1)
     with graph.as_default():
+        set_session(session)
         pred_out = model.predict(depth.reshape((1, 300, 300, 1)))

     points_out = pred_out[0].squeeze()

as per this, which then leads to this:
[ERROR] - [/ap_grasping_velo::_invoke_callback::753]: bad callback: <bound method MVPGraspController.__update_callback of <__main__.MVPGraspController object at 0x7fd5dfc2fb10>>
Traceback (most recent call last):
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/topics.py", line 750, in _invoke_callback
    cb(msg)
  File "/home/ap/mvp_ws/src/mvp_grasp/mvp_grasping/src/mvp_grasping/panda_base_grasping_controller.py", line 226, in __update_callback
    res = self.entropy_srv()
  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 515, in call
    responses = transport.receive_once()
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/impl/tcpros_base.py", line 727, 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 353, in read_messages
    self._read_ok_byte(b, sock)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/impl/tcpros_service.py", line 336, in _read_ok_byte
    raise ServiceException("service [%s] responded with an error: %s"%(self.resolved_name, str))
ServiceException: service [/grasp_entropy_node/update_grid] responded with an error: error processing request: Weights sum to zero, can't be normalized

Please note I'm not used to tensorflow, the code can be improved.

Ok, actually it seems to almost work, I did not have any pickable under the camera, but adding one started moving the robot and the eef went some centimeters off of it. Now it's likely just a matter of publishing the correct transform from the flange to the camera, which is bound to be wrong since we're using panda_arm instead of panda_arm_hand.
I'm guessing the division by zero errors are due to not having anything pickable, they could be handled more gracefully, I'll try tomorrow.

Looking forward to test your solution tomorrow. I also noticed about offset of transformation. I couldn't figure out where should I changed it.

Hi @aPonza I tried your changes to session but still get the same error as before  Error processing request: 2 root error(s) found....
Could you check once again what was your last changes? I can see for example a problem with global sess (which is unused).
Could you tell me which version of tensorflow and cuda are you using? I use tf 14 and Cuda 10 an wonder whether that is the problem.

I don't have a gpu on my workbench at the moment (hence

This leads to tensorflow issues, which is what I suspected would happen installing tensorflow instead of tensorflow-gpu

from here). The global sess is a mistake (use global session instead), might be useless since it's probably in the same thread as where the global variable is declared and overall is a copy-paste job at best.
I'm on tensorflow==1.14.0, no CUDA here since the GPU is elsewhere at the moment.
I have other changes on mvp_grasping/ros_nodes/panda_mvp_grasp.py and mvp_grasping/src/mvp_grasping/panda_base_grasping_controller.py but I thought they were mostly cosmetic (it's what I did instead of copying MVPController's body into the base controller). I'll send a PR with everything as soon as I can get the transform right on the final bit before the grasp, setting it up so that whoever uses panda_arm_hand gets it right still.
Can you maybe post the 2 errors you get, see if I had them and didn't realize?

Thank you for your point. The problem could be tensorflow-gpu. I'm now trying to play with different version of tf. The 2 Error is as below:
[ERROR] [1581673861.842248]: Error processing request: 2 root error(s) found.
(0) Unknown: Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was printed above.
[[{{node conv2d_1/Conv2D}}]]
(1) Unknown: Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was printed above.
[[{{node conv2d_1/Conv2D}}]]
[[sin_out/BiasAdd/_351]]
0 successful operations.
0 derived errors ignored.
['Traceback (most recent call last):\n', '  File "/opt/ros/melodic/lib/python2.7/dist-packages/rospy/impl/tcpros_service.py", line 629, in _handle_request\n    response = convert_return_to_response(self.handler(request), self.response_class)\n', '  File "/home/seivazi/catkin_ws/src/mvp_grasp/mvp_grasping/ros_nodes/grasp_entropy_node.py", line 128, in update_service_handler\n    points, angle, width_img, _ = predict(depth_crop, process_depth=False, depth_nan_mask=depth_nan_mask)\n', '  File "/home/seivazi/catkin_ws/src/mvp_grasp/ggcnn/src/ggcnn/ggcnn.py", line 100, in predict\n    pred_out = model.predict(depth.reshape((1, 300, 300, 1)))\n', '  File "/home/seivazi/.local/lib/python2.7/site-packages/tensorflow_core/python/keras/engine/training.py", line 908, in predict\n    use_multiprocessing=use_multiprocessing)\n', '  File "/home/seivazi/.local/lib/python2.7/site-packages/tensorflow_core/python/keras/engine/training_arrays.py", line 723, in predict\n    callbacks=callbacks)\n', '  File "/home/seivazi/.local/lib/python2.7/site-packages/tensorflow_core/python/keras/engine/training_arrays.py", line 394, in model_iteration\n    batch_outs = f(ins_batch)\n', '  File "/home/seivazi/.local/lib/python2.7/site-packages/tensorflow_core/python/keras/backend.py", line 3476, in call\n    run_metadata=self.run_metadata)\n', '  File "/home/seivazi/.local/lib/python2.7/site-packages/tensorflow_core/python/client/session.py", line 1472, in call\n    run_metadata_ptr)\n', 'UnknownError: 2 root error(s) found.\n  (0) Unknown: Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was printed above.\n\t [[{{node conv2d_1/Conv2D}}]]\n  (1) Unknown: Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was printed above.\n\t [[{{node conv2d_1/Conv2D}}]]\n\t [[sin_out/BiasAdd/_351]]\n0 successful operations.\n0 derived errors ignored.\n']

@aPonza with tensorflow-cpu I don't get the error as above anymore. but then I get a similar error as yours with ZeroDivisionError but for me is like even with object located under camera view.
seivazi/catkin_ws/src/mvp_grasp/mvp_grasping/ros_nodes/grasp_entropy_node.py", line 231, in update_service_handler\n    d_from_prev_view += np.clip(1 - (np.sqrt((self._xv - x)**2 + (self._yv - y)*2 + 0(cam_p.z - z)**2)/self.dist_from_prev_view_scale), 0, 1) * (1-kl)\n', 'ValueError: operands could not be broadcast together with shapes (72,68) (68,72) (72,68) \n']

The distance from previous view was an extra loss for the next best view calculation which favoured viewpoints which were different from the current viewpoint (hence the x,y,z distance calculation), though we didn't end up using this in order to simplify the controller.  You can comment out that line if you want and set d_from_prev_view to zero, or as I assume you've done, set the config value to a non-zero number.

with tensorflow-cpu I don't get the error as above anymore

You might have an incompatible cuDNN, maybe?

Thank you @aPonza
do you have any idea which version of cuDNN should I use? @dougsm

@seivazi @aPonza
I have replied in the other issue which was about tensorflow versions.  (I have also pushed some small updates that fix things that you were discussing).
Are the moveit related issues here fixed?
Now that I have some time, I am updating the mvp_grasping package to work with our in-house panda controllers (https://roboticvisionorg.github.io/) which should help abstract away a lot of the issues that you have been having, and will definitely then be working with the newest libfranka and moveit configs.

Cheers! I should probably push a PR with the changes before you start then.

@aPonza it will be great if you could push your changes any time soon. I have a problem with franka movement commands:
at panda_base_grasping_controller.py when I try to use self.pc.goto_named_pose('grip_ready', velocity=0.25) or any other goto pose method from panda commander (to bring the robot in top of the picking and dropping box) franka shakes a lot and stop. Somehow it works for one iteration and then such behaviour appear. I tried different poses but no chance yet.

The implemented panda controller is a demo one, they probably have a better controller on their own repository as Doug suggests. I suggest you use your own (or theirs), which is what I'll do as soon as I can finish these changes.

@aPonza I'm not sure I understand what you mean by the controller being a demo one.  We don't have anything particularly special control wise implemented here, just a nicer wrapper around the franka ros api and moveit.
@seivazi Those commands are just direct calls to moveit. There definitely should be nothing causing them to make the robot shake.  That sounds like it could be a much more low level problem with the robot.

I look to the (https://roboticvisionorg.github.io/). It is similar to the panda_commander.py in this git. It is normal Moveit commands so it should work as @dougsm pointed out.
Strange enough it always works in first run of the program but then it fails. I try to use rospy.sleep() or .stop but problem still stay the same. @dougsm do you use any specific moveit planner?
@aPonza have run the program for several iteration? is it working for you with moveit commands or do you use something else for moving the robot?

The controller can be improved, as you say yourself, and I haven't checked your company's implementation, I had assumed it would be an improved version. I apologize, it all came out rougher than I meant to.
I see the same oscillations/shaking Shahram sees, but it's independent of the run, it happens on the first as well. I resolved the issue in the past by enforcing some stricter soft joint limits: the oscillations happen because the robot is nearby the joint limits which triggers the safeties. You can do so in two ways:

(easy) change the limits in franka_description/robots/panda_arm.xacro;
(less easy) you can rebuild the JointModelGroup for Panda from scratch at runtime (I still haven't got around to doing it myself).

I'm referring to e.g. lines 64, 97 of that file, just using lower numbers for the soft limits. This however doesn't always work and sometimes it really seems to depend on the starting position of the arm and the starting position(s) of the object(s) to pick.

You are right it really depends on the arm position.
A the end I use RV driver for panda. https://roboticvisionorg.github.io/

Hi, thank you for your contribution. I am new to this error
moveit_commander.exception.MoveItCommanderException: Unable to set target grip_ready. Is the target within bounds?
Tried to follow what has been discussed here but still not work. I was wondering what would be the suggested solution to this "grip_ready" issue? Thank you so much!

Hi, thank you for your contribution. I am new to this error
moveit_commander.exception.MoveItCommanderException: Unable to set target grip_ready. Is the target within bounds?
Tried to follow what has been discussed here but still not work. I was wondering what would be the suggested solution to this "grip_ready" issue? Thank you so much!

authors: HanwenCao aPonza dougsm seivazi


text:
Beta Page is down since July/09/2017

Hi.
I love your page. But since your update for stormblood is the site not available. Please check it out.
Bye

The page is just white with google chrome. With microsoft edge it just works fine.

Try holding down Ctrl and Shift and clicking the Reload button in Chrome.

working here.

working in Chrome here also.

[Error] Error: null is not an object (evaluating 'response.data.action') http://ffxiv-beta.lokyst.net/js/services/xivdbtooltips.js:42:39 [native code] K@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.32/angular.min.js:102:156 https://ajax.googleapis.com/ajax/libs/angularjs/1.2.32/angular.min.js:103:322 $digest@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.32/angular.min.js:111:173 https://ajax.googleapis.com/ajax/libs/angularjs/1.2.32/angular.min.js:114:186 e@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.32/angular.min.js:37:502 https://ajax.googleapis.com/ajax/libs/angularjs/1.2.32/angular.min.js:41:362 	(anonymous function) (angular.min.js:69) 	K (angular.min.js:102:184) 	(anonymous function) (angular.min.js:103:323) 	$digest (angular.min.js:111:174) 	(anonymous function) (angular.min.js:114:187) 	e (angular.min.js:37:503) 	(anonymous function) (angular.min.js:41:363)
[Error] Failed to load resource: the server responded with a status of 404 (HTTP/2.0 404) (angular-ui-router.js.map, line 0) https://cdnjs.cloudflare.com/ajax/libs/angular-ui-router/1.0.0-rc.1/angular-ui-router.js.map
XMLHttpRequest cannot load https://secure.xivdb.com/tooltip?language=en&list[action]:=100090,100030,100015,100001,100105,100075,100045,100060,100096,100037,100021,100007,100111,100080,100051,100067,100083,100063,100069,100039,100033,100091,100031,100016,100002,100106,100076,100046,100061,100093,100034,100018,100004,100109,100078,100048,100064,100097,100038,100022,100008,100112,100081,100052,100068,100108,100009,286,276,100092,100032,100017,100003,100107,100077,100047,100062,100094,100035,100019,100005,100110,100079,100049,100065,279,285,278,258,254,253,252,259,255,257,256,250,246,245,244,251,247,249,248,281,277,283,266,262,261,260,267,263,265,264,284,100098,100126,100122,100121,100120,100127,100123,100124,100125,100134,100130,100129,100128,100135,100131,100132,100133,100178,100136,100175,100171,100170,100169,100176,100172,100173,100174,100193,100189,100188,100187,100194,100190,100191,100192,100143,100139,100138,100137,100144,100140,100141,100142,100159,100155,100154,100153,100160,100156,100157,100158,100151,100147,100146,100145,100152,100148,100149,100150,100167,100163,100162,100161,100168,100164,100165,100166,100050,100020,100036,100066,100095,100006,4571,4569,4570,4572,4573,4568,100201,100197,100196,100195,100202,100198,100199,100200,100209,100205,100204,100203,100210,100206,100207,100208,100217,100213,100212,100211,100218,100214,100215,100216,100225,100221,100220,100219,100226,100222,100223,100224,4580,4576,4575,4574,4581,4577,4578,4579,100233,100229,100228,100227,100234,100230,100231,100232,100241,100237,100236,100235,100242,100238,100239,100240,100249,100245,100244,100243,100250,100246,100247,100248,100257,100253,100252,100251,100258,100254,100255,100256,100265,100261,100260,100211,100259,100262,100263,100264,100273,100269,100268,100267,100274,100270,100271,100272,100281,100277,100276,100275,100282,100278,100279,100280,50356,50352,50351,50350,50357,50353,50354,50355,100099,100040,100023,100010,100113,100082,100053,100070 due to access control checks.

That looks like it's failing to load tooltips from XIVDB. I'll have a look.

Probably unrelated, but the entire page is down as of 07/16/2017:

@Fenrirthviti We recently changed webhosts so you may still be getting the old DNS. You could try running ipconfig /flushdns from a command window if you're on Windows, but I'm not really sure if that will help. I had to restart my own router to get it to pick up the new DNS after we moved the site.

I think the tooltip issue is because you're not running the beta page http://ffxiv-beta.lokyst.net/#/simulator on https. You either need to load the http tooltip lib, or setup a free https://letsencrypt.org/ https on your server.

The issue is intermittent. If it was because of http vs https it would occur more consistently.
My suspicion is that there's a bug or some other unexplained behavior in the XIVDB API server which causes it to return a 404 Not Found response sometimes when the app requests all the tooltips.
Have you seen this issue recently?

I had a similar issue, my server was https and the default example was http, plus he had to tweak a few things related to reading his own api.

Embed the script: http://xivdb.com/tooltips.js anywhere in your code. eg:

<html>
    <head>
        ...
    </head>
    <body>
        ...
        <script src="https://secure.xivdb.com/tooltips.js"></script>
    </body>
</html>

Note his initial quote is not from secure, try using that url.

Ah, I see. I'm not using http://xivdb.com/tooltips.js -- I wrote my own Javascript (as an AngularJS service) which fetches the tooltip data from the XIVDB API using the same method that http://xivdb.com/tooltips.js does.
This was mainly because the majority of what http://xivdb.com/tooltips.js does is implement the necessary DOM hijinks to create the effect of tooltips -- I have AngularJS and Angular-Bootstrap-UI to do that. :)
My service could probably be a bit smarter about fetching tooltip contents on-demand though. Right now it fetches everything in one request, which takes a noticeable amount of time, and may be too much data to ask for in one request.

I've reworked the way tooltips are loaded from XIVDB, so hopefully this problem should be resolved.

source: gharchive/issue

authors: Battler624 Cleanse Fenrirthviti SophieFields belazor danj2k doxxx

repo: doxxx/ffxiv-craft-opt-web

license: Zlib

license_type: permissive

license_source: github-api


text:
SDPA-5615 Test PR for OpenForms | Ripple Theme issue

Motivation and Context

JIRA issue: https://digital-engagement.atlassian.net/browse/SDPA-5615
Note
Delete this PR after the ticket is complete

How Has This Been Tested?

Types of changes

[ ] 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)
[ ] Improvement/refactoring (non-breaking change that doesn't add any features but makes things better)

Checklist

[ ] I've added relevant changes to the documentation.
[ ] I have added tests to cover my changes (if not applicable, please state why)
[ ] My change requires a template update for create-ripple-app.
[ ] I have added template update script for next release.

https://digital-engagement.atlassian.net/browse/SDPA-5615 complete. Testing env not required.

source: gharchive/pull-request

repo: dpc-sdp/ripple


text:
Adds additional e2e tests and fixes existing ones

JIRA issue: https://digital-engagement.atlassian.net/browse/SDPA-
Changed

Screenshots

@tim-yao have updated again

Hey @dylankelly This is a milestone of e2e tests. Just need CI passed. Somehow it's timeout at the moment.

authors: dylankelly tim-yao


text:
🛑 Servidor Web1 is down

In e8fafa5, Servidor Web1 (https://w1.indap.cl/chk_status) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Servidor Web1 is back up in 50335bd after 9 minutes.

repo: dperezindap/upptime

license: MIT


text:
🛑 Invoice Chile is down

In 9c157bb, Invoice Chile ($INVOICE_CHILE) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Invoice Chile is back up in 39012c1 after 15 minutes.

repo: dpkg-i-foo-deb/upptime


text:
🛑 File Service is down

In 30df7e4, File Service (https://files.dplayzgames06.tk) was down:

HTTP code: 530
Response time: 1011 ms

Resolved: File Service is back up in 91da576 after 18 minutes.

repo: dplayz/status


text:
Matching fails with ValueError: The first argument of bincount must be non-negative

Dan Schultz reports:
I wanted to let you know I'm seeing an error from audfprint:
Traceback (most recent call last):
File "/usr/local/bin/audfprint/audfprint.py", line 482, in
main(sys.argv)
File "/usr/local/bin/audfprint/audfprint.py", line 465, in main
strip_prefix=args['--wavdir'])
File "/usr/local/bin/audfprint/audfprint.py", line 155, in do_cmd
msgs = matcher.file_match_to_msgs(analyzer, hash_tab, filename, num)
File "/usr/local/bin/audfprint/audfprint_match.py", line 326, in file_match_to_msgs
rslts, dur, nhash = self.match_file(analyzer, ht, qry, number)
File "/usr/local/bin/audfprint/audfprint_match.py", line 317, in match_file
rslts = self.match_hashes(ht, q_hashes)
File "/usr/local/bin/audfprint/audfprint_match.py", line 272, in match_hashes
results = self._approx_match_counts(hits, bestids, rawcounts)
File "/usr/local/bin/audfprint/audfprint_match.py", line 228, in _approx_match_counts
allbincounts = np.bincount((allids << timebits) + alltimes)
ValueError: The first argument of bincount must be non-negative

The problem was in the way _approx_match_counts uses np.bincount to quickly count the most popular combinations of IDs and time offsets (to identify the reference files with the best match).  It combines them into a single int by shifting the IDs up by enough bits to make them clear of all the time offsets.  In this case, the input file was very long (7 hours), to to be clear of all the time offsets, timebits was 21.  Then allids included numbers up to 2973 (i.e., 11 bits wide).  Shifting these values up by 21 bits caused bit 32 to be set; because the values had been taken out of the big hash table, they were 32 bit ints, so when the top bit was set, they flipped to become negative.
Converting allids and alltimes to default (64 bit) ints seems to fix the problem.

closed via a076c60

repo: dpwe/audfprint

license: mit

license_source: bigquery


text:
Add 1990-11-12 and 1993-06-09 into Japan

Adding 2 days into Japan because these 1990-11-12 and 1993-06-09 are also national holidays in Japan according to CSV file published by Cabinet Office, Government of Japan.
Check before code change
(ENV) C:\Users\sakurai\git\python-holidays>git rev-parse HEAD
3b24dcb11eab639ac7833d5ac95413b858f510a2

(ENV) C:\Users\sakurai\git\python-holidays>flake8 holidays\countries\japan.py tests.py

(ENV) C:\Users\sakurai\git\python-holidays>coverage run --omit=*site-packages* tests.py TestJapan
..................
----------------------------------------------------------------------
Ran 18 tests in 0.015s

OK

(ENV) C:\Users\sakurai\git\python-holidays>coverage report -m -i holidays\countries\japan.py
Name                          Stmts   Miss  Cover   Missing
-----------------------------------------------------------
holidays\countries\japan.py     113      0   100%

Check after code change
(ENV) C:\Users\sakurai\git\python-holidays>git rev-parse HEAD
05dcd2480523807dda2cf2f104384e93d836ccec

(ENV) C:\Users\sakurai\git\python-holidays>flake8 holidays\countries\japan.py tests.py

(ENV) C:\Users\sakurai\git\python-holidays>coverage run --omit=*site-packages* tests.py TestJapan
..................
----------------------------------------------------------------------
Ran 18 tests in 0.016s

OK

(ENV) C:\Users\sakurai\git\python-holidays>coverage report -m -i holidays\countries\japan.py
Name                          Stmts   Miss  Cover   Missing
-----------------------------------------------------------
holidays\countries\japan.py     117      0   100%

Pull Request Test Coverage Report for Build 930

7 of 7 (100.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build 928:
0.0%

Covered Lines:
9224

Relevant Lines:
9224

💛  - Coveralls

Hey @sakurai-youhei
brilliant! Merged in beta, thank you very much.
Cheers,
dr-p

authors: coveralls dr-prodigy sakurai-youhei

repo: dr-prodigy/python-holidays


text:
🛑 gorzdrav.org is down

In d439fa8, gorzdrav.org (https://gorzdrav.org) was down:

HTTP code: 0
Response time: 0 ms

Resolved: gorzdrav.org is back up in 3c1fb45.


text:
Feat:  Logic to show placeholder on inputs conditionally.

The goal of this pull request is mostly to support what a dynamic placeholder is. By default it would be '0' in my implementation, but of course you can choose another character by default.
One of my motivations was what @hailwood mentioned
in issue #43

Hi @francmarin98, thanks for submitting the PR, I left a comment there

Changes applied in #49


text:
Error while connecting to Drachtio Server

Hi,
I am using Docker Image to run Drachtio Server by the following command
docker pull drachtio/drachtio-server:latest
after adding image I run the image using name:tag
Now when I try to connect to drachtio server from my node application using 'drachtio-srf' package
with following configuration
const Srf = require('drachtio-srf');
const srf = new Srf();
srf.connect({
"host": "127.0.0.1",
"port": 9022,
"secret": "cymru"
});
I get continuous following error in src.on('error')
{"level":50,"time":1571690489862,"pid":18227,"hostname":"Shaibiii-HP-Probook","errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":9022,"msg":"connect ECONNREFUSED 127.0.0.1:9022","stack":"Error: connect ECONNREFUSED 127.0.0.1:9022\n    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1106:14)","type":"Error","v":1}
if i remove on('error') event, i get following error when i start my node app
Error: connect ECONNREFUSED 127.0.0.1:9022
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1106:14)
Emitted 'error' event at:
at Immediate.setImmediate (/home/shaibiii/Documents/Project/node_modules/drachtio-srf/lib/srf.js:60:64)
at runCallback (timers.js:705:18)
at tryOnImmediate (timers.js:676:5)
at processImmediate (timers.js:658:5)

Your drachtio app is trying to connect to localhost (127.0.0.1) port 9022, and failing, so we can infer that nothing is listening on that port.
You say you are running the drachtio server in a docker container.  Are you running with host networking mode ?  I'm guessing not, and that is your problem.

Your drachtio app is trying to connect to localhost (127.0.0.1) port 9022, and failing, so we can infer that nothing is listening on that port.
You say you are running the drachtio server in a docker container. Are you running with host networking mode ? I'm guessing not, and that is your problem.

I will look upon it, I also tried the through source build, but it gives couple of error although i tried it step by step, was stuck on "./bootstrap.sh file not found while trying to install sofia-sip" is there any error guide?

Your drachtio app is trying to connect to localhost (127.0.0.1) port 9022, and failing, so we can infer that nothing is listening on that port.
You say you are running the drachtio server in a docker container. Are you running with host networking mode ? I'm guessing not, and that is your problem.

So pulled image of 'nginx' and running on port 80, checked from browser, Running Drachtio server from docker, but node still refused to connect with following error
Error: connect ECONNREFUSED 127.0.0.1:9022
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1106:14)
Emitted 'error' event at:
at Immediate.setImmediate (/home/shaibiii/Documents/Project/node_modules/drachtio-srf/lib/srf.js:60:64)
at runCallback (timers.js:705:18)
at tryOnImmediate (timers.js:676:5)
at processImmediate (timers.js:658:5)
nginx is running at port 80, so i changed configuration of drachtio-srf to following
const Srf = require('drachtio-srf');
const srf = new Srf();
srf.connect({
"host": "127.0.0.1",
"port": 80,
"secret": "cymru"
});
and got 400 error code with error message "invalid message from server, did not start with length specifier: HTTP/1.1 400 Bad Request
Server: nginx/1.17.4"
Sorry for any blunder, i am new to drachtio

Got it fixed, was not adding IP lookup between Docker and Windows .. Added docker IP range in Windows IP lookup, Now i can access Drachtio Container using Container IP

can we close this issue now?
BTW, as to the problem you had building from source, it seems you forgot to do this after cloning the repo:
git submodule update --init --recursive

I ran that command, basically faced different issue everytime i tried to build from source, got libtool version issue although latest version was installed, and sometime bootstrap.sh issue
and yes, can close this issue now,

what linux distro are you using, and what branch of drachtio server are you trying to build?

me too.

authors: davehorton prawee shaibiii9777

repo: drachtio/drachtio-server


text:
fzf theme

Just created a fzf theme, would be happy to transfer it to the org!
https://github.com/caarlos0/dracula-fzf

Hey @caarlos0, that's awesome man.
All of our themes follow the same template: https://github.com/dracula/template
Can you please update the repo before we start the transfer?

Sure @zenorocha, done: https://github.com/caarlos0/dracula-fzf
Also tried to send the transfer request, but it seems I need some sort of permission on the dracula org...

Awesome! You should be able to transfer now @caarlos0

done!
https://github.com/dracula/fzf
Thanks @zenorocha 🖤

I had to rename main to master in order to follow the organization standard and for the website to be able to fetch it correctly, okay?
It's live now, thanks @caarlos0 for building this theme!
https://draculatheme.com/fzf 🎉

no problem at all, thanks @zenorocha ! 🚀

repo: dracula/dracula-theme


text:
some questions about the implement's details

First, thanks for your easily understand coding work.
Question1:
in your meta.py program:
`
for k in range(1, self.update_step_test):
# 1. run the i-th task and compute loss for k=1~K-1
logits = net(x_spt, fast_weights, bn_training=True)
loss = F.cross_entropy(logits, y_spt)
# 2. compute grad on theta_pi
grad = torch.autograd.grad(loss, fast_weights)
# 3. theta_pi = theta_pi - train_lr * grad
fast_weights = list(map(lambda p: p[1] - self.update_lr * p[0], zip(grad, fast_weights)))
logits_q = net(x_qry, fast_weights, bn_training=True)
# loss_q will be overwritten and just keep the loss_q on last update step.
loss_q = F.cross_entropy(logits_q, y_qry)

with torch.no_grad():
    pred_q = F.softmax(logits_q, dim=1).argmax(dim=1)
    correct = torch.eq(pred_q, y_qry).sum().item()  # convert to numpy
    corrects[k + 1] = corrects[k + 1] + correct

`
why this fast_weight backpropogation part required to be uodated update_step times?
Question2:
in omniglotNShot.py, function load_data_cache()'s definition,
for sample in range(10):  # num of episodes
it's that means an episode contains batchse(here is 32) tasks?
aren't a task equal to an episode?
I see, in function next(), I can't understand why you set:
if self.indexes[mode] >= len(self.datasets_cache[mode]):             self.indexes[mode] = 0             self.datasets_cache[mode] = self.load_data_cache(self.datasets[mode])
I think it means when epoch turn to the multiple of 10, function next() will generate 10 times of 32 tasks, and every epoch use one(32 tasks) of them(10)?
so why not remove it, and remove the 'for' loop that above mentioned, just use function load_data_cache() in next() function?
Question3:
every time using fine-tuning aren't producing a new fine-tuned model?
I thought it was just using support set to calculate loss then backpropagation, which results in the fine-tuned model then evaluation in query set.
I see it use the same update parameters strategy as meta procedure, and just calculate the accuracy of the query set.

Hey!
My understanding is that:
Question1:
With MAML you can choose to do one inner loop gradient update or multiple ones, which is what the update_step loop here represents. In the reported results, you also get the accuracies you obtain after allowing one, two three ect gradient updates.
Question2: Not sure, haven't looked at the data generation very closely.
Question3 : It is not to ruin the batch_norm state which calculates the mean and variance of the hidden layers on forward passes as well.


text:
compressed blob cache is broken

The blob cache can't be stored as compressed in both v2.1 and the master branch.
When working on a compressed blob cache, IO errors show up. Will raise a PR to fix it thus negotiating resources overhead and local storage efficiency tradeoff.

I have tested compressed blob cache with master a while ago, it should work. I will double check.

Will be fixed by https://github.com/dragonflyoss/image-service/pull/934

I have tested compressed blob cache with master a while ago, it should work. I will double check.

No IO error happens on master branch, but seems it still dose not work. I add some instrumented and debug code. It does not goes into decompress local cache code path
index d4546d14..82b7ddcf 100644
--- a/storage/src/cache/cachedfile.rs
+++ b/storage/src/cache/cachedfile.rs
@@ -1174,10 +1174,13 @@ impl FileCacheEntry {
             };
             let mut reader = FileRangeReader::new(&self.file, offset, size);
             if !chunk.is_compressed() {
+                info!("read uncompressed");
                 reader.read_exact(buffer)?;
             } else if self.blob_compressor() == compress::Algorithm::Lz4Block {
                 let mut buf = alloc_buf(size as usize);
                 reader.read_exact(&mut buf)?;
+
+                info!("read compressed cache");
                 let size = compress::decompress(&buf, buffer, self.blob_compressor())?;
                 if size != buffer.len() {
                     return Err(einval!(
@@ -1189,6 +1192,7 @@ impl FileCacheEntry {
                 decoder.read_exact(buffer)?;
             }
         } else {
+            info!("read compressed cache zstd");
             let offset = chunk.uncompressed_offset();
             let size = chunk.uncompressed_size() as u64;
             FileRangeReader::new(&self.file, offset, size).read_exact(buffer)?;

The code below line 1174 is for compressed cache file, and code below 1189 is for uncompressed cache file. Could you please help to verify again?

The code below line 1174 is for compressed cache file, and code below 1189 is for uncompressed cache file. Could you please help to verify again?

Yes. It should work for master branch

duplicated with #902 ， so close it.

authors: changweige jiangliu

repo: dragonflyoss/image-service


text:
如果Nydus Snapshotter挂掉了，containerd还可以降级到拉取普通的OCI镜像嘛

如果Nydus Snapshotter挂掉了，containerd还可以降级到拉取普通的OCI镜像嘛

Currently containerd does not have a snapshotter fallback mechanism, so containers that use nydus images cannot be created when the nydus snapshotter does not work.
It is recommended that adding a health check to the nydus snapshotter, so that if the node's snapshotter goes down, scheduling to this node should be avoided.

authors: imeoer xianlubird

repo: dragonflyoss/nydus


text:
Fix spacing when just optional arguments are present

Seems like the spacing could be better for the following output. One space between preamble and flag description with an extra space after the flag description.
Usage: /home/dali/source/zphd/zphd-core/.libs/lt-wisdomgenerator <--output=value-o=value|--help|-h>

  Optional flags:
    --output=value/-o=value   The output file to write wisdom to
    --help/-h                 Print usage and options information

Fixed the spacing to be allocated when the "  Required" text is printed instead of after the "Usage: " line.

repo: drali/sargs


text:
ECONNREFUSED

My code (portions are taken from your example):
    let a = {}
    try {
        a.data = {
            sku:'192503120522',
            quantity:{
                unit: 'EACH',
                amount: 0
            }
        }
        a.result = await walmartMws.inventory.updateItemInventory( '192503120522', a.data )
        res.json( a.result )
    } catch ( e ) {
        log( `updateItemInventory e: `, e )
        res.status( 400 ).json( { error: e } )
    }

So, after running that, I got the following error...
{
    "error": {
        "message": "connect ECONNREFUSED 127.0.0.1:80",
        "name": "Error",
        "stack": "Error: connect ECONNREFUSED 127.0.0.1:80\n    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16)",
        "config": {
            "url": "VERSION/token",
            "method": "post",
            "data": "grant_type=client_credentials",
            "headers": {
                "Accept": "application/json",
                "Content-Type": "application/x-www-form-urlencoded",
                "WM_SVC.NAME": "NAME",
                "WM_QOS.CORRELATION_ID": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
                "Authorization": "Basic xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
                "User-Agent": "axios/0.19.2",
                "Content-Length": 29
            },
            "baseURL": "HOST",
            "transformRequest": [
                null
            ],
            "transformResponse": [
                null
            ],
            "timeout": 0,
            "xsrfCookieName": "XSRF-TOKEN",
            "xsrfHeaderName": "X-XSRF-TOKEN",
            "maxContentLength": -1
        },
        "code": "ECONNREFUSED"
    }
}

What am I doing wrong?

@doverradio Hi are you passing these values https://github.com/drbarzaga/walmart-mws/blob/master/src/walmart-mws.js#L5 ?

Ah I see I failed to put any value to replace HOST.
What is the Walmart API URL?  Can you please share it or where I can locate it?

@doverradio When you create a Developer Account in Walmart you have access to this URL in your dashboard.

Thank you for that, I was just in the "Try it now" API explorer and found this https://marketplace.walmartapis.com.
I immediately tested this as the base url so my config is now;
var walmartMws = require("../node_modules/walmart-mws/src/walmart-msw")(
    'xxxxxxxCLIENTIDxxxxxx',
    'xxxxCLIENTSECRETxxxxxxxxxxxxxxxxxxxxxxxxxx',
    'https://marketplace.walmartapis.com/',
    'VERSION',
    'NAME'
);

The result is I am still getting error:
{
    "error": {
        "message": "Request failed with status code 400",
        "name": "Error",
        "stack": "Error: Request failed with status code 400\n    at createError (C:\\Users\\project\\backend\\node_modules\\walmart-mws\\node_modules\\axios\\lib\\core\\createError.js:16:15)\n    at settle (C:\\Users\\project\\backend\\node_modules\\walmart-mws\\node_modules\\axios\\lib\\core\\settle.js:17:12)\n    at IncomingMessage.handleStreamEnd (C:\\Users\\project\\backend\\node_modules\\walmart-mws\\node_modules\\axios\\lib\\adapters\\http.js:236:11)\n    at IncomingMessage.emit (node:events:402:35)\n    at IncomingMessage.emit (node:domain:475:12)\n    at endReadableNT (node:internal/streams/readable:1343:12)\n    at processTicksAndRejections (node:internal/process/task_queues:83:21)",
        "config": {
            "url": "VERSION/token",
            "method": "post",
            "data": "grant_type=client_credentials",
            "headers": {
                "Accept": "application/json",
                "Content-Type": "application/x-www-form-urlencoded",
                "WM_SVC.NAME": "NAME",
                "WM_QOS.CORRELATION_ID": "xxxxxxxxxxxxxxxxxxxxxxxxxx",
                "Authorization": "Basic xxxxxxxxxxxxxxxxxxxxxxxxxx",
                "User-Agent": "axios/0.19.2",
                "Content-Length": 29
            },
            "baseURL": "https://marketplace.walmartapis.com/",
            "transformRequest": [
                null
            ],
            "transformResponse": [
                null
            ],
            "timeout": 0,
            "xsrfCookieName": "XSRF-TOKEN",
            "xsrfHeaderName": "X-XSRF-TOKEN",
            "maxContentLength": -1
        }
    }
}

@doverradio The problem is that you are using the wrong URL https://marketplace.walmartapis.com/ the host is another no this.

Ok, I'm totally lost then.
Upon viewing the Walmart Developer Portal items guide, I find they give an example endpoint like so:
https://marketplace.walmartapis.com/v3/feeds?feedType=MP_ITEM_MATCH
I am continuing to search further for the correct url but, if you know it, please can you share it?  I am willing to try anything at this point because I have around 340,000 items I am trying to post.

@doverradio Ok no problem.

See below please:

Please see screenshot:
https://freeimage.host/i/VaGle4

Solved it!
Here's my final code which generated a valid access_token:
// using express.js, this is a single controller method...
exports.walmartApiGetToken = async ( req, res ) => {
    try {
        let endpoint = `https://marketplace.walmartapis.com/v3/token`
        let headers = {
            Accept: "application/json",
            "Content-Type": "application/x-www-form-urlencoded",
            Authorization: `Basic ${Buffer.from(
                `${ CLIENT_ID` }:${ `CLIENT_SECRET` }`
                ).toString('base64')}`,
            "WM_QOS.CORRELATION_ID": uuidv4(),
            "WM_SVC.NAME": "Walmart Marketplace",
        }
        let method = `POST`
        let body = new URLSearchParams();
        body.append('grant_type', 'client_credentials');
        let result = await fetch( endpoint, { method, headers, body } )
        result = await result.json()
        console.log( `result...`, result )
        res.json(result)
    } catch ( e ) { console.log( `Got an error in walmartApiGetToken...`, e ); res.json( { error: e } ) }
}

Got the result...
{
    "access_token": "XXXXXXXXXXXXXXXXSUPERLONGACCESSTOKENXXXXXXXXXXXXXXXXXXXXXX",
    "token_type": "Bearer",
    "expires_in": 900
}

@doverradio Cool!

authors: doverradio drbarzaga

repo: drbarzaga/walmart-mws


text:
The pool cannot pay out the coin to the owner.

An error occurs when paying out a coin.
`2024/02/21 11:37:22 Awarding 6.1875 litecoin SOLO reward to miner tltc1q7yk4ujy6kazqhh2jzw9c0eewm732ghnulc3m7u-naKUcrqLXL74dAjKRUD1cTtp5gA9s5A4sL for work on litecoin block 3168261
2024/02/21 11:37:22 Awarding 6.1875 litecoin SOLO reward to miner tltc1q7yk4ujy6kazqhh2jzw9c0eewm732ghnulc3m7u-naKUcrqLXL74dAjKRUD1cTtp5gA9s5A4sL for work on litecoin block 3168265
2024/02/21 11:37:22 Valid share for block 3168367 from 172.16.5.1 [fenix]
panic: assignment to entry in nil map
goroutine 23 [running]:
designs.capital/dogepool/payouts.bitcoinTryManyPayments({0xc0007600e0, 0x1, 0x17?}, 0xc0000fc280, 0x8?)
/home/fenix/mining/merged-mining-pool-master/payouts/payer.go:34 +0x12b
designs.capital/dogepool/payouts.payoutBalances(0xc0000fc280, 0xc00050de48?)
/home/fenix/mining/merged-mining-pool-master/payouts/payer.go:27 +0x2ce
designs.capital/dogepool/payouts.RunManager(0xc0000fc280, 0x0?, 0x0?)
/home/fenix/mining/merged-mining-pool-master/payouts/manager.go:55 +0x6d1
created by main.startPayoutService in goroutine 1
/home/fenix/mining/merged-mining-pool-master/main.go:64 +0x9a
exit status 2`
If you fix the code in this line.
https://github.com/dreams-money/merged-mining-pool/blob/25cd2f8b3754802bf6002487d34484b254c0f7cc/payouts/payer.go#L31
Let's fix it like this.
func bitcoinTryManyPayments(balances []persistence.Balance, config *config.Config, rpcManagers map[string]*rpc.Manager) error {  transactionsGroupedByChain := make(map[string]map[string]float32)  for _, balance := range balances {   if transactionsGroupedByChain[balance.Chain] == nil {    transactionsGroupedByChain[balance.Chain] = make(map[string]float32)   }   transactionsGroupedByChain[balance.Chain][balance.Address] = balance.Amount  }
A new error occurs: invalid wallet address Dogecoin.
2024/02/22 14:28:28 HTTP 500: Invalid Dogecoin address: tltc1qjrew2rt9ukv27xv9cw7zlddht3dqqm49tvetmm-ngTpVqeCoPizCNn741cT887TfbMh1CC4of 2024/02/22 14:28:38 HTTP 500: Dummy value must be set to ""

Thank you so much for testing this.   The issue has been corrected with 5fd1852f4256c893163129348064ba702ae21b8f and 9eb3edef6cf8db57cce2f55213000e0b31f94af9 respectively.

Thank you so much for testing this. The issue has been corrected with https://github.com/dreams-money/merged-mining-pool/commit/5fd1852f4256c893163129348064ba702ae21b8f and https://github.com/dreams-money/merged-mining-pool/commit/9eb3edef6cf8db57cce2f55213000e0b31f94af9 respectively.

Thank you so much for testing this. The issue has been corrected with https://github.com/dreams-money/merged-mining-pool/commit/5fd1852f4256c893163129348064ba702ae21b8f and https://github.com/dreams-money/merged-mining-pool/commit/9eb3edef6cf8db57cce2f55213000e0b31f94af9 respectively.

repo: dreams-money/merged-mining-pool


text:
TypeError: 'float' object cannot be interpreted as an integer

Windows 10, python 3.6.3
Full error when trying to run main.py:
 Using TensorFlow backend.
 Traceback (most recent call last):
   File "\speech-denoising-wavenet-master\main.py", line 169, in <module>
     main()
   File "speech-denoising-wavenet-master\main.py", line 163, in main
     training(config, cla)
   File "\speech-denoising-wavenet-master\main.py", line 72, in training
     model = models.DenoisingWavenet(config, load_checkpoint=cla.load_checkpoint, print_model_summary=cla.print_model_summary)
   File "speech-denoising-wavenet-master\models.py", line 50, in __init__
     self.samples_of_interest_indices = self.get_padded_target_field_indices()
   File "speech-denoising-wavenet-master\models.py", line 184, in get_padded_target_field_indices
     target_sample_index + self.half_target_field_length + self.target_padding + 1)
 TypeError: 'float' object cannot be interpreted as an integer

It causes, because you use python3, this project uses python2

I have encountered the same problem, but python2.7 does not support GPU on windows. Have you solved this problem?

I have encountered the same problem, but python2.7 does not support GPU on windows. Have you solved this problem?

No, @huihui890 unfortunately not. This is, I believe, the only one I got at least running on my computer but I created another issue on there because it was taking a ridiculous amount of time to run. Good look, and if you find a repository that does allow you to train and denoise your audio files link me to it because I would like to use it as well!

@huihui890 I now use Google Colab for many of my neural network needs and it seems to work better. I would recommend you give this repository a try with Google Colab. I might link a notebook here if I can get it working.

@GrahamboJangles  Thank you very much for your recommendation, I will go to run Google Colab model as soon as possible.

@huihui890 I started one here but couldn't quite get it working. I get this error.

@GrahamboJangles I will go to run this model as soon as possible.

authors: GrahamboJangles huihui890 pKrysenko

repo: drethage/speech-denoising-wavenet


text:
brew remove options on installation

check pr for more details https://github.com/Homebrew/homebrew-core/pull/34422

Please create this PR against powerlevel10 branch. I will check it out.

Also, there is no drew-kun.homebrew role anymore (it is outdated and was just a quick workaround for geerlingguy's one). Just use geerlingguy.homebrew - it seems fixed now...

@caduri Never mind, I just had time recently, so kinda implemented your changes. It's in the powerlevel10k branch for now, so testing... Once I'm happy with that, I will merge it to master. Thank you.

authors: caduri drew-kun

repo: drew-kun/ansible-ohmyzsh


text:
Install failure on OpenBSD

There are a couple problems with getting this to install on OpenBSD:

symbols from ncurses need to be loaded before symbols from readline can be used
some of the symbols the library uses don't exist in the default readline library, but do in ereadline (the readline library installed with pkg or from ports)

I made a gist with the default test output, test output when loading ncurses symbols, test output when loading ncurses symbols and using ereadline, a diff of the changes I made to get the tests to pass, and the output of nm -g for the default readline library, in case they help.

Closing as the Perl library now checks the OS it's running on and loads ereadline rather than readline, and uses the code from your gist. Please retest when you get a chance.

The install still fails with this error:
# Cannot locate native library 'libereadline.so.7': File not found

The fix is fairly simple though, I'll pullreq it

authors: Kaiepi drforr


text:
localStorage lost after updating from WK 2.0 to WK 3.0

Is this a bug or accepted behaviour like #28?

@uaza Could be either, but you shouldn't use localStorage at all in iOS as it can be wiped by the system in case it decides that it needs more space (from experience, any device with less than 1/3 free space could be wiped).
I suggest you have a look at Cordova Native Storage.

Native Storage has been very problematic for us. All crashes of our app on IOS come from failure in this plugin and quality control on it is pretty questionable (2.2 reliably triggered syntax error on start).

Ok, thank you for your answers, I close this issue.

authors: kristfal samastur uaza


text:
Create Notion of Production/Release Build

Discuss removing minificaction from development build to device
Include sourcemap for development build to device
Create a --release or --prod argument that does minification, etc.

Questions:
Should we always do AoT when deploying to device?

Is AoT always necessary on debug / dev build, if we had a switch, this would be nice.
i mean you will definitely have the ability to test it, but for faster development, i would like to skip this compiling stuff.
is this related to the issue with the 0.39 app-script Version issue that emulate builds are always Production
ionic emulate android --debug --dev
--------------------------------

Running 'emulate:before' npm script before emulate

> ionic-hello-world@ build /Volumes/DATEN/repositorys/tmp/httpGettest/httpGetTest
> ionic-app-scripts build

[09:15:35]  ionic-app-scripts 0.0.39
[09:15:35]  build prod started ...

@rathgeber2, you can pass the --dev option to skip AoT which will speed things up. We are working with Angular on getting an incremental AoT build in place. Google internally has sub-second AoT builds so some members of the Angular team are going to be working on better tooling to make this possible for the broader community. Fingers crossed that is happens soon!
Thanks,
Dan

Google internally has sub-second AoT builds so some members of the Angular team are going to be working on better tooling to make this possible for the broader community.

Wow! that incremental sub-second AoT builds is a must! Excited to have this!

Questions:
Should we always do AoT when deploying to device?

Yes, I think it's a good idea to default to that. The difference between an AoT compiled app and a normal one is huge on older devices which can make testing really painful.
Our current process is to test with AoT (I mean clicking around and using features) and when we find a bug we simply fix it in the browser environment and verify that fix when a few other bug was fixed as well. This approach is a way more faster for us than reloading the app all the time.

This is resolved.
Thanks,
Dan

Does app-scripts supports incremental builds now?

No, ngc does not support incremental builds and there is no timeline for that. Production builds are going to be slow for awhile so the best bet is to just use development builds as much as possible.
Thanks,
Dan

authors: NoNameProvided danbucholtz rathgeber2

repo: driftyco/ionic-app-scripts


text:
Cant upload my app to appstore. "Unable to lookup the settings for submission"

I have
➜  cordova --version
6.4.0
➜  ionic --version
2.1.18

Xcode 8.2.1, OSX 10.11.6

After ionic build, I go to Xcode and make Archive. Then click Validate in Organize.
And have this kink of error in logs.
2017-01-06 15:32:11 +0000  The store submission configuration response failed with errors: (
    "Error Domain=ITunesConnectionOperationErrorDomain Code=1614 \"Unable to lookup the settings for submission for the application at this time due to a general error\" UserInfo={NSLocalizedRecoverySuggestion=Unable to lookup the settings for submission for the application at this time due to a general error, NSLocalizedDescription=Unable to lookup the settings for submission for the application at this time due to a general error, NSLocalizedFailureReason=iTunes Store operation failed.}"
), warnings: (
), info messages: (
).
2017-01-06 15:32:13 +0000 [MT] Presenting: Error Domain=ITunesConnectionOperationErrorDomain Code=1614 "Unable to lookup the settings for submission for the application at this time due to a general error" UserInfo={NSLocalizedRecoverySuggestion=Unable to lookup the settings for submission for the application at this time due to a general error, NSLocalizedDescription=Unable to lookup the settings for submission for the application at this time due to a general error, NSLocalizedFailureReason=iTunes Store operation failed.}

I just ran into this same issue. In my case it was because I hadn't created the app in iTunes Connect yet.

I have application created in iTunes Connect, and it have same bundle id. :(

My fault, I have recreated bundle ID in iTunesConnect, now it upload success. Many thanks to @excaliburHisSheath

Thanks boskiv... For your reply in above comment as It worked when I checked it as you applied.

I also encounter the issue. And my case is ,my another account include an app with the same bundle id, even the app is in deleted status. The apple error tip is really ambiguous.

authors: Mr-Pixel boskiv excaliburHisSheath vikrammsp

repo: driftyco/ionic-cli


text:
Request: Multiple slider range input

http://forum.ionicframework.com/t/multiple-range-input-request

+1

why would @dracula359 vote up on this request and then unassign @ajoslin ?

Hi,
In case someone would be interested, here is a simple solution:
http://codepen.io/shaoner/pen/ZWoYgE

+1

authors: dracula359 jbelelieu shaoner softBarbarian tlancina

repo: driftyco/ionic


text:
ionic2 -  sometimes simulates two clicks?

Short description of the problem:
When using multiple ion-toggles, which are conditionally shown using ngIf, the next item in a list in sometimes clicked when one if the ion-toggles is hidden. This is better explained with the plunker given below.
Note: This only happens SOME of the time. It's quite random. I'll switch the toggles a couple of times and it will work fine, but then after a bit it'll start clicking things where the hidden toggle used to be
What behavior are you expecting?
I expect clicking something to not generate two clicks, or at least click-block should block the second click.
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
Environment: Chrome w/ ionic serve
Could it have something to do with click-block not being activated? Even so, I don't think there should be any reason to have two clicks fire.
Which Ionic Version? 2.x beta.7
Plunker that shows an example of your issue
Note: This plunker is set up the exact same way as my own personal code, but I could not get it to reproduce the bug for whatever reason
https://plnkr.co/edit/FNUxp4LFDvYAL2YwijUq?p=preview
Run ionic info from terminal/cmd prompt: (paste output below)
Cordova CLI: 6.0.0
Gulp version:  CLI version 3.9.1
Gulp local:   Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.7
Ionic CLI Version: 2.0.0-beta.25
Ionic App Lib Version: 2.0.0-beta.15
ios-deploy version: 1.8.4
ios-sim version: 5.0.6
OS: Mac OS X El Capitan
Node Version: v4.4.4
Xcode version: Xcode 7.3 Build version 7D175

Hello, thanks for opening an issue with us! Would you mind trying this on your device with a fresh starter project and seeing if you get the same issue? I have been using toggles over the past couple of days and have not seen anything like this. Thanks for using Ionic!

Sure thing. I'll try that out and get back to you

Thanks!

Hello! As it seems it has been a while since there was any activity on this issue i will be closing it for now. Feel free to comment if you are still running into this issue. Thanks for using Ionic!

Hi @jgw96 ! I am still seeing this issue. What happens is: if a toggle is clicked, and then UI elements are displayed above that toggle (such as an ion-select) which push the toggle down, then another click will happen where the toggle used to be. The result: the select's alert will open.
Here is a demo repo: https://github.com/zakton5/ionic2-toggle-click-bug


text:
v2 Feature Request: Manually refresh virtual-scroll display.

Short description of the problem:
I have a use case that requires me to automagically scroll a list to a specific point when the page is loaded. The list in question is using the virtual-scroll directive to manage its data. I'm able to calculate the position and scroll the viewport just fine. However, the virtual-scroll does not seem to pick up on the fact that the page has moved, and does not refresh its display. I can trick it by slowing down the scrolling animation, but this is unreliable on desktop and even more unreliable on devices. Research tells me that handling scroll events is tricky, especially on iOS, so it would be really nice if I could just manually tell the thing to refresh its display and not have to try to outsmart it.

Hello! Thanks for the feature request. I'm going to move this issue over to our internal list of feature requests for evaluation. We are continually prioritizing all requests that we receive with outstanding issues. We are extremely grateful for your feedback, but it may not always be our next priority. I'll copy the issue back to this repository when we have begun implementation. Thanks!

This issue was moved to driftyco/ionic-feature-requests#163


text:
ion-navbar disappears with input keyboard

Short description of the problem:
When you have a long form with text inputs, and you go to one of the last inputs the ion-navbar pushes outside the screen with the keyboard
What behavior are you expecting?
the ion-navbar should not disappear
Steps to reproduce:

start a new conference app ionic start Test conference --v2
Go to file signup.html and copy and paste the username item 15 times
run the app on an iOS 9.3.1
Go to the signup page, click on the first input and try to scroll to the bottom

Which Ionic Version? 1.x or 2.x
Ionic 2 beta 10
Run ionic info from terminal/cmd prompt: (paste output below)
Your system information:
Cordova CLI: 6.0.0
Gulp version:  CLI version 3.9.1
Gulp local:   Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.10
Ionic CLI Version: 2.0.0-beta.31
Ionic App Lib Version: 2.0.0-beta.17
ios-deploy version: Not installed
ios-sim version: 5.0.6
OS: Mac OS X El Capitan
Node Version: v5.5.0

Seeing this issue as well.

Any news on this?

I'm seeing this issue as well. Does someone in ionic have news on this. I don't know why there is so many keyboard issues in iOS

Is there anyone know how to deal with this problem?

Hello all! We are currently looking into the scrolling issues with iOS. Would you all mind testing this issue with our fork of the wkwebview plugin. Thanks!


text:
Ionic2 - navCtrl.setRoot does not work for Tab pages

In Ionic 2.0.0-beta.11, If you setRoot to a different page from the tabs page initially, setRoot back to tabs page from that page brings a blank page.
One use case for this scenario is user login. Imagine you want to send the user to a login page if they are not already logged in. And after logging in, you want to send them back to the main page.
Here are the steps to reproduce from scratch with a simplified flow.
Step 1 Start a new project with "ionic start TestApp --ts --v2"
Step 2 Change the constructor section of "app/pages/tabs/tabs.ts" to following:
constructor(navCtrl: NavController) {
    let username = window.localStorage.getItem('username');
    if (username) {
        // this tells the tabs component which Pages
        // should be each tab's root Page
        this.tab1Root = HomePage;
        this.tab2Root = AboutPage;
        this.tab3Root = ContactPage;
    } else {
      navCtrl.setRoot(HomePage);
    }
  }

Step 3 Modify "app/pages/home/home.ts" as follows:
export class HomePage {
  constructor(
    public navCtrl: NavController
  ) {}
  doFakeLogin() {
    window.localStorage.setItem('username','somevalue');
    this.navCtrl.setRoot(TabsPage);
  }
}

Step 4 Add a button to "app/pages/home/home.html" as follows:
<button (click)="doFakeLogin()" primary block>Fake Login</button>

Step 5 Launch the app with "ionic emulate ios"
Step 6 Click "Fake Login" button that appears in the emulator.
Step 7 You will see a blank white screen. I expect to see the actual tabs page on this screen.
Here is the ouput of "ionic info":
Your system information:

Cordova CLI: 6.2.0
Ionic Framework Version: 2.0.0-beta.11
Ionic CLI Version: 2.0.0-beta.32
Ionic App Lib Version: 2.0.0-beta.18
ios-deploy version: 1.8.6
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v4.4.3
Xcode version: Xcode 7.3.1 Build version 7D1014

After more digging, it seems modifying the constructor as follows fixes it:
      // this tells the tabs component which Pages
      // should be each tab's root Page
      this.tab1Root = HomePage;
      this.tab2Root = AboutPage;
      this.tab3Root = ContactPage;    let username = window.localStorage.getItem('username');
      if (!username) {
       platform.ready().then( () => {
        navCtrl.setRoot(HomePage);
       });
      }

I'm in the beta 11 and that works fine to solve the issue

Hi,
On ionic2 RC0 did you notice that when you send parameters to navCTRL.push:
let id = event.currentTarget.id;
this.navCtrl.push(OfferDetails, {
id: id
})
}
On iOS 9.3 you get a black screen ?
On iOS 9.5 it works perfectly.

authors: carlosrodrigome itemir zefrench


text:
Accessibility: improve by hooking into phone settings

We should check the user's settings for accessibility and modify the framework components based on it: https://github.com/driftyco/ionic/issues/8743
For example, if button shapes are enabled the clear button should change to the following:

This plugin could possibly help with this https://github.com/phonegap/phonegap-mobile-accessibility


text:
Fix preLink function using compile attributes

The preLink function is using the compile attr param not the preLink $attr param for delegate-handle and locking attributes. This causes problems when using ion-content in an ng-repeat. The delegate-handle is properly set using the preLink attributes in other directives like ion-scroll. This does not address the issue of interpolation for delegate-handle but allows an additional directive to do so.

Thanks, looks good!

authors: mlynch tnewbern


text:
Update Config.json

test

@Erenulla please change your bot token, you just leaked it.

@Erenulla please change your bot token, you just leaked it.

Usually, Discord drops it automatically in the very moment it being published on GitHub

Don't wanna delete this PR, it's so funny

@Erenulla please change your bot token, you just leaked it.

Usually, Discord drops it automatically in the very moment it being published on GitHub

Still, just for safety

Don't wanna delete this PR, it's so funny

XD

authors: Erenulla drizzle-mizzle justkorudev

repo: drizzle-mizzle/CharacterAI-Discord-Bot


text:
[BUG]:

What version of drizzle-orm are you using?
0.31.2
What version of drizzle-kit are you using?
0.22.7
Describe the Bug
Running a migration with composite primary keys will break.
In drizzle-kit bin.cjs the issue sits with
prepareDeleteCompositePrimaryKeyPg = (tableName, schema5, pks, json1) => {
      return Object.values(pks).map((it) => {
        return {
          type: "delete_composite_pk",
          tableName,
          data: it,
          schema: schema5,
          constraintName: json1.tables[`${schema5}.${tableName}`].compositePrimaryKeys[PgSquasher.unsquashPK(it).name].name
        };
      });
    };

The issue is schema5 is undefined leading to json1.tables['.table'] instead of json1.tables['public.table']
Expected behavior
You should be able to generate migrations when your table has composite primary keys
Environment & setup
No response

please check drizzle-kit@0.22.8, should have the fix for that

authors: AndriiSherman mitchellwarr

repo: drizzle-team/drizzle-orm


text:
drizzle-kit push always wants to alter table set default '1'

There is a default in the number column of the following table:
export const topics = pgTable("Topic", {
	id: text("id").primaryKey().notNull(),
	name: text("name").notNull(),
	description: text("description"),
	number: text("number").default('1').notNull(),
	created: timestamp("created", { precision: 3, mode: 'string' }).defaultNow().notNull(),
	last_modified: timestamp("last_modified", { precision: 3, mode: 'string' }).notNull(),
	syllabus_id: text("syllabus_id").notNull().references(() => syllabuses.id, { onDelete: "cascade", onUpdate: "cascade" } ),
});

Every time I run drizzle-kit push it says:
srv/lib/../../db❱ pnpm drizzle-kit push

drizzle-kit: v0.22.7
drizzle-orm: v0.31.2

No config path provided, using default path
Reading config file 'C:\srv\lib\tilly\packages\db\drizzle.config.ts'
Using 'pg' driver for database querying
[✓] Pulling schema from database...

 Warning  You are about to execute current statements:

ALTER TABLE "Topic" ALTER COLUMN "number" SET DEFAULT '1';

❯ No, abort
  Yes, I want to execute all statements

even if I run it twice in a row... this seems unnecessary.

should not be an issue on latest(0.30.0+), if it's still an issue - please reopen

authors: AndriiSherman thebjorn


text:
Upload path comment does not stand

Describe the bug
In config.example.json it is stated:

upload_path: The path to save the uploaded file. "uploads" by default.
If the path isn't prefixed with /, ./ or ../,
it is relative path of document_root path

However, if I setup a project where I put a relative path to the running context for both document_root and upload_path:
"document_root": "./frontend",
"upload_path": "./confidential/database/uploads"

Drogon creates the uploads folder within the document_root path, ./frontend/confidential/database/uploads. This contradicts with the statement written as a comment in the example.
Expected behavior
Pages should be served in ./frontend, and uploads should be uploaded to ./confidential/database/uploads.
Desktop (please complete the following information):

OS: Ubuntu

**Additional context
Currently it's possible to achieve the desired result with either /home/user/project/confidential/database/uploads or ../confidential/database/uploads.

To add to this, it seems we can't even alias the uploads folder with "locations" configuration.
{
	"app": {
		"document_root": "./frontend",
		"upload_path": "../confidential/database/uploads",
		"locations": [
			{
				"uri_prefix": "/uploads",
				"is_case_sensitive": false,
				"is_recursive": true,
				"alias": "../confidential/database/uploads",
				"filters": [ "UploadsFilter" ]
			}
		]
	}
}

We have to create an HTTP controller and do a file response with the uploads path.

This is the way I had to do it:
#include "drogon/HttpAppFramework.h"
#include "drogon/HttpResponse.h"
#include "drogon/utils/FunctionTraits.h"
#include <functional>
#include <iostream>
#include <string>
#include <string_view>

static constexpr std::string_view
	uploadsPrefix = "/uploads/",
	uploadsPathRegex = "/uploads/.+";

static_assert(uploadsPathRegex.starts_with(uploadsPathRegex), "Uploads path and regex must match");

static std::string uploadsRegex = std::string(uploadsPathRegex);

int main()
{
	drogon::app()
		.registerHandlerViaRegex("/uploads/.+",
		[](
			const drogon::HttpRequestPtr &req,
			std::function<void(const drogon::HttpResponsePtr &)> &&callback)
		{
			std::string_view uploads = drogon::app().getUploadPath();

			std::string_view path = req->path();
			path.remove_prefix(::uploadsPrefix.size());

			std::string file;
			file.reserve(uploads.size() + 1 + path.size());

			file = uploads;
			file += '/';
			file += path;

			callback(drogon::HttpResponse::newFileResponse(file));
		})
		.loadConfigFile("./config.json")
		.addListener("127.0.0.1", 8080)
		.run();
}

config.json:
{
	"app": {
		"document_root": "./frontend",
		"upload_path": "../confidential/database/uploads"
	}
}

repo: drogonframework/drogon


text:
bugfix number variable in freemarker template display error

What's changed?

bugfix number variable in freemarker template display error
Checklist

[x]  I hereby agree to the terms of the HertzBeat CLA
[ ]  I have read the Contributing Guide
[ ]  I have written the necessary doc or comment.
[ ]  I have added the necessary unit tests and all cases have passed.

fix https://github.com/dromara/hertzbeat/issues/1333

repo: dromara/hertzbeat


text:
Feature Request: Periodically Poll GitHub or Bitbucket for Changes

I would like to set up Drone internally within a government organization.  However, the gov firewall restricts incoming connections...so webhooks is out of the question.  Please add support for periodically polling cloud git repos.

One thing that could work is if you wrote a separate system to do the polling and forward the webhooks. It could sit alongside Drone, and would be completely optional.

@dsvmacdonald I am open to creating such a utility if someone is willing to financially fund the development effort.

Sorry, don't have funds for that.  I'm trying to push Drone to replace their existing Jenkins.  Haven't even got going with it enough for them to think about funding.
I'll try and whip up the utility when I get a chance

authors: bradrydzewski dsvmacdonald gtaylor

repo: drone/drone


text:
get go.sum checksum mismatch error

I am not sure this is a bug or under attack.
when I want to install drone form source code today, I got this error.
verifying github.com/drone/drone-runtime@v1.0.7-0.20190729202838-87c84080f4a1/go.mod: checksum mismatch
	downloaded: h1:G7mAYYxgmS0lVkHyy2hEOLQCFB0DlQFTMLWggykrydY=
	go.sum:     h1:+osgwGADc/nyl40J0fdsf8Z09bgcBZXvXXnLOY48zYs=

SECURITY ERROR
This download does NOT match an earlier download recorded in go.sum.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.

I am unable to reproduce
$ docker run -t -i  golang:1.14 /bin/sh
# git clone https://github.com/drone/drone.git
Cloning into 'drone'...
remote: Enumerating objects: 19, done.
remote: Counting objects: 100% (19/19), done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 31080 (delta 8), reused 13 (delta 5), pack-reused 31061
Receiving objects: 100% (31080/31080), 27.41 MiB | 10.21 MiB/s, done.
Resolving deltas: 100% (16732/16732), done.
# go install ./...
go: downloading github.com/drone/drone-yaml v1.2.4-0.20200326192514-6f4d6dfb39e4
go: downloading github.com/drone/drone-go v1.0.6
go: downloading github.com/drone/envsubst v1.0.1
go: downloading github.com/kelseyhightower/envconfig v1.3.0
go: downloading github.com/joho/godotenv v1.3.0
go: extracting github.com/drone/envsubst v1.0.1
go: extracting github.com/kelseyhightower/envconfig v1.3.0
go: extracting github.com/joho/godotenv v1.3.0
go: extracting github.com/drone/drone-go v1.0.6
...
# go mod verify
all modules verified

@bradrydzewski I did as yours. using a golang:1.14 images. but I got the same error of @9nix00. By the way, I set the export GOPROXY="https://goproxy.cn,direct" to avoid downloading failure

authors: 9nix00 bradrydzewski wi-cuckoo


text:
How to get more information of files?

var list = await dbx.Files.ListFolderAsync(string.Empty);
foreach(var item in list.Entries.Where(i=>i.IsFile))
{
item.Name;
}
I want to get all folder and file to listbox(name of files, size of file....)

It looks like you already have the basic idea around how to list files and folders. You have code for getting file names, and to get the size, just use the Size property.
Also, don't forget to use ListFolderContinueAsync to keep getting the rest of the entries if ListFolderResult.HasMore is true.
Using ListBox is outside the scope of the Dropbox .NET SDK project and support though, so I recommend looking at the documentation for that.

authors: Englbach greg-db

repo: dropbox/dropbox-sdk-dotnet


text:
Remove guards on injector read

Currently, we're checking the BuildConfig.DEBUG flag if we should be reading from the injector factor and injector overrides. This code works if you're running the code using the debug variant of Kaiken, however, as code published to Maven Central is the release variant, this check will always fail.
These overrides are only set in the testing module and there's a check to ensure require(testMode) passes before we allow the overrides to be set.

 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.

authors: CLAassistant changusmc

repo: dropbox/kaiken


text:
query.update synchronize_session does not support bool

When passing a boolean to the synchronize_session param of update or delete, mypy complains with

Argument "synchronize_session" to "update" of "Query" has incompatible type "bool"; expected "str"

If you look in the docs, False is a valid value.

Fixed by https://github.com/dropbox/sqlalchemy-stubs/pull/117

authors: dbanty ilevkivskyi

repo: dropbox/sqlalchemy-stubs


text:
An HTTP body consisting of a single string is incorrectly deserialized

The following code
Path("/")
@Produces(MediaType.TEXT_PLAIN)
@Consumes(MediaType.APPLICATION_JSON)
public class Resource {
    @PUT
    @Path("endpoint")
    void endpoint(String jsonBody) {
        // resource code;
    }

}

behaves incorrectly. When posting foo, we have jsonBody.equals("foo"), when it should throw an error because foo is not JSON. When posting "foo", we have jsonBody.equals("\"foo\""), when it should be deserializing the string.
The same thing happens when returning String from a method (it's unquoted, whereas I would expect it to be quoted). The behavior I expect (throwing with no quotes and deserializing the quoted string) is consistent with what other frameworks do (e.g. Flask) and more intuitive.

@jroitgrund That's the standard behavior of JAX-RS/Jersey. The MediaType in the @Consumes annotation doesn't automatically validate the HTTP request body against that media type.
I'd recommend using a proper value class with appropriate javax.validation annotations instead of an untyped String in your JAX-RS method.

authors: joschi jroitgrund

repo: dropwizard/dropwizard


text:
Problem with Jackson reflection and (I think) Javax.activation

I've used dropwizard-core 1.3.0 targeting jdk 9. Don't know if it's something related to jdk 9.
I've run the simple program of the Getting Started guide on the website.
Here's the problem with Jackson reflection:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.fasterxml.jackson.module.afterburner.util.MyClassLoader (file:/Users/fabio/IdeaProjects/smartcity/build/libs/hello-1.0-SNAPSHOT.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
WARNING: Please consider reporting this to the maintainers of com.fasterxml.jackson.module.afterburner.util.MyClassLoader
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
And here's the one with javax (I think), which disappear if I use the VM parameter "--add-modules java.activation" (Why?)
WARN  [2018-03-30 01:39:45,151] org.glassfish.jersey.internal.Errors: The following warnings have been detected: WARNING: HK2 service reification failed for [org.glassfish.jersey.message.internal.DataSourceProvider] with an exception:
MultiException stack 1 of 2
java.lang.NoClassDefFoundError: javax/activation/DataSource
at java.base/java.lang.Class.getDeclaredConstructors0(Native Method)
at java.base/java.lang.Class.privateGetDeclaredConstructors(Class.java:3110)
at java.base/java.lang.Class.getDeclaredConstructors(Class.java:2314)
at org.jvnet.hk2.internal.Utilities$3.run(Utilities.java:1308)
at org.jvnet.hk2.internal.Utilities$3.run(Utilities.java:1304)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at org.jvnet.hk2.internal.Utilities.getAllConstructors(Utilities.java:1304)
at org.jvnet.hk2.internal.Utilities.findProducerConstructor(Utilities.java:1247)
at org.jvnet.hk2.internal.DefaultClassAnalyzer.getConstructor(DefaultClassAnalyzer.java:83)
...

Is this the same issue reported in the Jackson repo? https://github.com/FasterXML/jackson-modules-base/issues/37

I'm seeing the same issue with Jackson as well. I think its the same issue reported in the Jackson repo.
I was also wondering, now that Dropwizard 1.3.0 supports JDK 9, I imagine more people will try to migrate their Dropwizard apps from 1.8 to 1.9. Is there a guide for this? Right now in order to run it I need to use `--add-modules java.xml.bind" both when compiling and when running the jar. I'm wondering if there's a cleaner way.

Yes, we run our tests on JDK10 with --add-modules java.xml.bind: https://github.com/dropwizard/dropwizard/blob/master/pom.xml#L381
Unfortunately Jersey requires it for JAXB support if I'm not mistaken. We can't do much until a modularized version of Jersey come out.

FWIW, I was able to work around this by explicitly adding javax.xml.bind:jaxb-api (and javax.activation:activation) as dependencies — would it make sense for these to be added as dependencies for Jackson itself?
    <dependency>
        <groupId>javax.activation</groupId>
        <artifactId>activation</artifactId>
        <version>1.1.1</version>
    </dependency>
    <dependency>
        <groupId>javax.xml.bind</groupId>
        <artifactId>jaxb-api</artifactId>
        <version>2.3.0</version>
    </dependency>

I fixed the java.lang.NoClassDefFoundError: javax/activation/DataSource error by adding the next dependency in the POM
        <dependency>
            <groupId>javax.activation</groupId>
            <artifactId>activation</artifactId>
            <version>1.1.1</version>
        </dependency>

and fixed the JAXB issues by adding these other dependencies
        <dependency>
            <groupId>javax.xml.bind</groupId>
            <artifactId>jaxb-api</artifactId>
            <version>2.3.0</version>
        </dependency>
        <dependency>
            <groupId>com.sun.xml.bind</groupId>
            <artifactId>jaxb-core</artifactId>
            <version>2.3.0</version>
        </dependency>
        <dependency>
            <groupId>com.sun.xml.bind</groupId>
            <artifactId>jaxb-impl</artifactId>
            <version>2.3.0</version>
        </dependency>

I also had to add these two properties to in the pom
        <maven.compiler.source>1.9</maven.compiler.source>
        <maven.compiler.target>1.9</maven.compiler.target>

The application now runs, however the Jackson reflection warning still shows up

@jmrodriguez Thank you very much! The only modifications I needed to make were the dependency based ones.
My source and target were set to 1.6. and the dependency setting fixed me right up. I supposed it doesn't hurt to set it to 1.8 :)
Does anyone have any idea why explicit references to those JAXB & JAVAX dependencies are needed for running the application if the application compiles fine without them?

Does anyone have any idea why explicit references to those JAXB & JAVAX dependencies are needed for running the application if the application compiles fine without them?

JAXB was part of Java until Java 8 and was removed (or rather un-bundled) in Java 9.
See also: https://jesperdj.com/2018/09/30/jaxb-on-java-9-10-11-and-beyond/

This should work out of the box with Dropwizard 2.0.0-rc1 and later.
If you have problems with Dropwizard 2.0.0-rc1 (or later) and Java 11, please leave a comment.

authors: RohanNagar arteam corcorb fabionebbia jmrodriguez joschi mattc41190 nickbabcock


text:
Comparing dimensions to each other in a filter

We would like to model something like the following SQL query in Druid:
SELECT *
FROM t
WHERE t.a == t.b

As far as I can see it's not possible to compare dimensions to each other in Druid. Or is it?
Would it be possible to add some new filter like:
"filter": { "type": "dimensions", "dimensions": [<dimension_string>, <dimension_string>, ...], "op": <"=="|"!="> }

Which would allow you to compare 2 or more dimensions to each other.
It's not possible top speed up queries with this filter so I guess it should be applied once a columns is selected to be processed (does that make sense?).

I think I can implement this by adding another method to ValueMatcherFactory.java like makeValueMatcher(String[] dimensions, Comparator<String> compare). The implementation in StringValueMatcherColumnSelectorStrategy would be quite easy and just passes different dimensions values to the comparator (would need a custom comparator class if we want to support comparing more than 2 dimensions at once). Implementing the actual Filter after this is quite easy.
Does that seem accurate?

ValueMatcherFactory doesn't exist anymore! It was removed in #3797 to make it possible for filters to be more flexible. The new Filter interface should let you do this. You want a filter that always returns false from "supportsBitmapIndex", throws unsupported operation exception from getBitmapIndex, and in "makeMatcher" it should create two selectors and build a ValueMatcher that compares their results.
That sounds like a useful contribution if you're interested in working on it.
We'll need to figure out what the semantics of "a == b" should be if a and b are both multi-value dimensions. Only true if they're identical? Or true if there's any overlap in values?

Should I modify ValueMatcherColumnSelectorStrategy and StringValueMatcherColumnSelectorStrategy and add a method to match multiple columns with each other? I think that's probably cleanest.
How about if instead of making a new filter I extend the selector filter by adding an valueDimension parameter. So either value or valueDimension need to be set. Then we can keep the current semantics of selector with the addition that if valueDimension is multi-value all of its values need to be in dimension.

Hmm that could work too, although "selector" is kind of a weird name for a filter that checks if two columns are equal. If you do it that way then how about having a list called "dimensions"? So the syntax would be:
{"type": "selector", "dimensions": ["a", "b"]}

I think "they're equal if there is any overlap" is probably the best semantic for multi-value, since:

it is symmetric, such that selector(["a", "b"], ["a", "b", "c"]) and selector(["a", "b", "c"], ["a", "b"]) are both true
it is a proper extension of single-value, such that selector(["a", "b"], "b") and selector(["a", "b"], ["b"]) are both true

@gianm with those semantics it will not be possible to check if a is in b but b is not in a. But I guess modifying the in filter to do this would make more sense.

Then we have one semantics issue left and that is extractionFn. I guess it should applied to all dimensions.

That sounds reasonable; may also be useful to allow an extractionFns where they positionally apply to each of the dimensions.

I'm already working on a pull request: https://github.com/erikdubbelboer/druid/commit/85c4e82e112a32a36cba52c259c4c7cf52c5cd21#diff-9c0344041e595e113f03e0d783939f88
So far I only wrote the code and got it to pass all current tests. No idea yet if it actually works. Will write tests for it next.

https://github.com/druid-io/druid/issues/3928 has been merged.

authors: erikdubbelboer gianm

repo: druid-io/druid


text:
how to decompress segment to Raw data

i had a need on moving data from druid to another app which don't know the format of druid segment.I have to decompress the segment from druid hdfs.Is there any function exists to get it done?Or is there a better way?

i find a dump-segment tool in the version of 0.9.2.But i'm using 0.9.1.It seems i have to implement it with help of latest version

I don't think you can extract raw data from 0.9.1.  The 0.9.2 introduced rollup option in the granularity spec.  Unless the option is explicitly turned off the  raw data is aggregated and rolled up before saved into disk.

@knoguchi you are right.Anyway i can still get the aggregated data.Maybe that is just enough

authors: knoguchi mjaow


text:
No 8.x-3.0-alpha1 package for LDAP module

Just noticed the 8.x-3.0-alpha1 release of the LDAP module from Aug. 5 isn't available on Drupal Packagist. Yet the 8.x-3.x-dev is. Is there anything we can do to fix this? Does packagist have a policy of not publishing packages for D.O. alpha releases?
Thanks!

Drupal Packagist won't receive any bugfix anymore. Sorry. 8.3.0-alpha2 and 8.3.0-alpha3 is available. This should mitigate the problem.

authors: timwood webflo

repo: drupal-composer/drupal-packagist


text:
Use explicit conversion of config to hash

The support for implicit conversion has been removed (https://github.com/dry-rb/dry-configurable/pull/114) and will be included in the upcoming dry-configurable 0.13.0 release.
This change is also compatible with all existing releases of dry-configurable, since they all feature a Config#to_h method.

I'm going to merge to merge this in right away, since it is uncontroversial given the feedback in https://github.com/dry-rb/dry-configurable/pull/114, and then cut a 1.7.1 release from it. /cc @flash-gordon @solnic

repo: dry-rb/dry-schema


text:
Fix #schema constructor raising different error

All other hash schemas raise SchemaError except for the :schema constructor type. This change resolves this discrepancy

@solnic ready for review

repo: dry-rb/dry-types


text:
Investigate caching wasm file

IIRC, I think right now it downloads on every run? Not good. (maybe this just requires updating wasmbuild)

I learned this on an airplane last weekend! Indeed, as of now, some wasm file is downloaded every run and so even if you cache the other modules in the graph, network access is still required to run dax code - documenting or mitigating this would be very helpful :+1:

I also discovered this while on an airplane 😅
I'm going to mitigate it for now (shouldn't be up to the user to have to worry about this). Soon Deno will support wasm files as being part of the module graph so the whole situation will be better.

authors: andrewbrey dsherret

repo: dsherret/dax


text:
小程序添加订单报错

我之前也遇到过，

@im-zhangxi 使用的版本是多少？直接购买是否有这种情况？是否是首次创建地址后发生的问题？因为你的实付款并未计算正确，最新版本之前是存在这个BUG的，因首次添加收货地址并未同步数据，导致实付款并未计算正确

@dspurl     使用的 你的  小程序演示版本.... 还没正式使用.... 本身只是想看看 功能

@im-zhangxi 嗯，确实，演示版有这个问题，可能没有更新的问题导致的，已经重新打包，审核过应该就可以正常了

@dspurl  多谢

authors: Caisen1988 dspurl im-zhangxi

repo: dspurl/dsshop


text:
Introduce vertical display beta

This PR introduces a beta option in the display settings. This is not complete and could definitely use a bit more fine tuning. The Vertical option was labeled as (Beta) in the select, so there should be some level of awareness that not everything will be perfect.

Good idea, I've already started working on the vertical mode and will make more adjustments based on that and this pr sometime soon.

repo: dsrkafuu/skyline-overlay


text:
Define DSL

WHY
Whenever DSL does not accept timezone. That's not useful for us...
WHAT
Define new DSL which is enhanced Whenever DSL. Timezone format is based on tz database.
defaults do
  timezone "Asia/Tokyo"
  cron_timezone "UTC"
end

every :day, at: "10:30 am" do
  name "Update Elasticsearch indices"
  rake "update_elasticsearch_indices"
end

every :day, at: "10:30 am", timezone: "Asia/Singapore" do
  name "Send e-mails for Singapore users"
  rake "send_emails[SG]"
end

every :wednesday, at: "11:00 am" do
  name "Send notifications"
  rake "send_notifications"
end

every "0 12 10,20 * *" do
  name "Send reports"
  rake "send_reports"
end

will be converted to:
30 1 * * * /bin/bash -l -c 'bundle exec rake "update_elasticsearch_indices"'
30 2 * * * /bin/bash -l -c 'bundle exec rake "send_emails[SG]"'
0 11 * * 3 /bin/bash -l -c 'bundle exec rake "send_notifications"'
0 12 10,20 * * /bin/bash -l -c 'bundle exec rake "send_reports"'

Implemented at #3 .