An error occurred

main: Detected fat macho kernel
Kernel: Adding AMFI_get_out_of_my_way patch...
get_amfi_out_of_my_way_patch: Entering ...
get_amfi_out_of_my_way_patch: Kernel-8020 inputted
get_amfi_out_of_my_way_patch: Found Internal Error: No cdhash found. str loc at 0x9a7061
get_amfi_out_of_my_way_patch: Found Internal Error: No cdhash found. str ref at 0x10b0c64
get_amfi_out_of_my_way_patch: Patching AMFI at 0x10ac2a8
main: Writing out patched file to work/kcache.patched...
main: Quitting...
0x10ac2c4 0xfd 0xe0
0x10ac2c5 0x7b 0x3
0x10ac2c6 0xbf 0x0
0x10ac2c7 0xa9 0x32
0x10ac2c8 0xfd 0xc0
0x10ac2ca 0x0 0x5f
0x10ac2cb 0x91 0xd6
krnl
dtre
rtsc
rdsk
/dev/disk4          	                               	/private/tmp/SSHRD
hdiutil: couldn't eject "disk2" - Resource busy
[-] An error occurred

Go into finder and eject the ramdisk, then try again


Failed to send to Discord notification: Bad Request

I have 9 cron jobs setup that send an email to mailrise which in turns sends them to Gotify and Discord.  All 9 work to Gotify. 2 of 9 work to Discord.  Below is the error message I see in the logs, error=400.
Is this something within mailrise or is it something I need to log an issue with apprise?
[2022-05-14 09:00:05] WARNING:apprise:Failed to send to Discord notification: Bad Request - Unsupported Parameters., error=400.
[2022-05-14 09:00:05] WARNING:mailrise.skeleton:Notification failed: Cron <local@local4> bash /home/osuhickeys/Documents/Docker/gitea/gitea_backup.sh ➤<EMAIL_ADDRESS>

I have the same issue, emails coming from proxmox backups to discord are failing. I already sent a test email of just text so it does work.
[2023-07-02 15:54:33] WARNING:apprise:Failed to send to Discord notification: Bad Request - Unsupported Parameters., error=400.
[2023-07-02 15:54:33] WARNING:mailrise.skeleton:Notification failed: vzdump backup status (pve-general-rig.localdomain) : backup successful ➤<EMAIL_ADDRESS>
I tried text and html and markdown
configs:
 pve_general_rig_discord:
  mailrise:
   body_format: html
  urls:
   - https://discord.com/api/webhooks/........./............

version: "2.1"
services:
  mailrise:
    image: yoryan/mailrise:latest
    container_name: mailrise
    restart: unless-stopped
    ports:
      - 8025:8025
    volumes:
    - ./mailrise.conf:/etc/mailrise.conf:ro

I don't have a handy way to get the email, but it should look like the following:
https://www.servethehome.com/wp-content/uploads/2022/12/Proxmox-VE-Backup-Successful-e-mail.jpg
or the other kinds like shown in the blog (the dark mode photos): https://www.servethehome.com/proxmox-ve-e-mail-notifications-are-important/

These emails contain entire logs. So I think what's happening here is that Discord is rejecting them for exceeding the maximum length. It's like copy-pasting a log file into the Discord app; you're going to get rejected.
You can cut split your messages into multiple notifications using Apprise's overflow options, but beware that they can be defeated by a long subject line, which isn't currently included in the split calculation (https://github.com/caronc/apprise/issues/845).
For future reference, you should be able to retrieve the message by turning on debug logging (-vvv):
version: "2.1"
services:
  mailrise:
    image: yoryan/mailrise:latest
    container_name: mailrise
    restart: unless-stopped
    ports:
      - 8025:8025
    volumes:
      - ./mailrise.conf:/etc/mailrise.conf:ro
    command: -vvv /etc/mailrise.conf


Register package

https://github.com/JuliaRegistrator

https://github.com/JuliaRegistrator

https://github.com/JuliaRegistrator

@JuliaRegistrator register

Registration pull request created: JuliaRegistries/General/60302
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.1.1 -m "<description of version>" 4e21fad676b71f5a7f7ea2c2b555fd85fd42eff7
git push origin v0.1.1

@JuliaRegistrator register

Registration pull request created: JuliaRegistries/General/102576
Tip: Release Notes
Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.
@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.
Tagging
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.2.0 -m "<description of version>" e0bf5511f5c4734349b74e6f2826619fb796790e
git push origin v0.2.0

Registration pull request created: JuliaRegistries/General/103571
Tip: Release Notes
Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.
@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.
Tagging
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.2.1 -m "<description of version>" 5244ffcfde2a2709009cd1fb8ac54101b55f9ed4
git push origin v0.2.1

@JuliaRegistrator register
Release notes:

add torque controlled winch
instantiating a winch model now requires the parameter set::Settings

https://github.com/JuliaRegistrator
Release notes:
Fixed

fix brake for TorqueControlledMachine

Registration pull request created: JuliaRegistries/General/111764
Tagging
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.3.1 -m "<description of version>" e00f917b59c9fe2ba3b32df37cf2e598bdadee8b
git push origin v0.3.1

@JuliaRegistrator register
Release notes:

second try to fix the brake

Registration pull request created: JuliaRegistries/General/111766
Tagging
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.3.2 -m "<description of version>" 1fa54026509d340090eeac31159f14c294ae8beb
git push origin v0.3.2

@JuliaRegistrator register
Release notes:

fix the automatic scaling of the inertia depending on the max force for the torque controlled winch

Registration pull request created: JuliaRegistries/General/114350
Tagging
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.3.3 -m "<description of version>" 96c4fc67c98772d630f15e0e1b3bbe4d7cd3da52
git push origin v0.3.3

@JuliaRegistrator register
Release notes:

Bump KiteUtils to 0.8

Registration pull request created: JuliaRegistries/General/117296
Tagging
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.3.4 -m "<description of version>" 81db3522882e024d5961964dba03ebdfeff9f213
git push origin v0.3.4

@JuliaRegistrator register
Release notes:

bump KiteUtils to 0.9

Registration pull request created: JuliaRegistries/General/119053
Tagging
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.3.5 -m "<description of version>" da5432fcdba80d617f9d78712fd098695644e4c8
git push origin v0.3.5

@JuliaRegistrator register
Release notes:
Added

example speed_control_step which tests the step response of the asynchronous generator
example speed_control_step_tc which tests the step response of the speed controller connected to the torque
controlled generator

Changed

add field upwind_dir, remove vector v_wind_ref from Settingsand yaml files
add the fields max_acc, p_speed and i_speed to Settingsand yaml files;
the max_acc value is now taken into account correctly for both winch models
the torque controlled winch can now also operate with a set_speed value, using a PI controller

Registration pull request created: JuliaRegistries/General/121661
Tagging
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.3.6 -m "<description of version>" 789ddc204e754e9ba2ec7865955a9c5ab93c0b30
git push origin v0.3.6


Verbose logging

@bkeepers Did you mean something like this for #33 ?

That's definitely along the lines of what I was thinking, although maybe using a package like debug. This looks like a good overview of logging in node:  https://blog.risingstack.com/node-js-logging-tutorial/

Thanks @seemakamath!

@bkeepers I was going to add rest of the logging to this PR but didn't get a chance. Open a new PR?


Short by byte field (like enabled) for the "Agent Job" tab

Hi,
I want to report not a problem but an improvement in the sorting system of the columns.
For example I got many jobs and not seems to me possible short by "Enabled" like for the other text fields.

Alen

Sorting will be enabled in the next release 👍

Included in 2.24.0 🚀


Can not init Myriad device: NC_ERROR in gst-video-analytics:latest

Can not init Myriad device: NC_ERROR
E: [ncAPI] [    694416] [v4l2src0:src] ncDeviceOpen:1012 Failed to find booted device after boot

Can you provide more information about your environment, what you have tried, which tools, which command lines, please?

@thanks for your quick replies.
1.environment
the host machine is ubuntu 16.04, docker is gst-video-analytics:latest:
cd ~/gva/gst-video-analytics/docker
./build_docker_image.sh opensource

link : https://github.com/opencv/gst-video-analytics/wiki/Getting-Started-Guide-[2020.1]#install-in-docker-image
2.what I have tried
./samples/shell/face_detection_and_classification.sh /dev/video0

tips: I have modified DEVICE=CPU to DEVICE=MYRIAD

I get exactly the same (when changing to DEVICE=MYRIAD):
# ./samples/shell/face_detection_and_classification.sh /dev/video0
[setup_env.sh] GStreamer-plugins environment initialized
[setlocale.sh] C locale is set
Running sample with the following parameters:
GST_PLUGIN_PATH=/root/gst-video-analytics/scripts/../build/intel64/Release/lib:/usr/lib/gst-video-analytics/
LD_LIBRARY_PATH=/opt/intel/dldt/inference-engine/external/hddl/lib
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
E: [ncAPI] [    927009] [v4l2src0:src] ncDeviceOpen:859 Device doesn't appear after boot
ERROR: from element /GstPipeline:pipeline0/GstGvaDetect:gvadetect0: base_inference plugin intitialization failed
Additional debug info:
/root/gst-video-analytics/gst/inference_elements/base/gva_base_inference.c(437): gva_base_inference_set_caps (): /GstPipeline:pipeline0/GstGvaDetect:gvadetect0:

Can not init Myriad device: NC_ERROR
/opt/intel/dldt/inference-engine/include/details/ie_exception_conversion.hpp:71

Execution ended after 0:00:02.223943524
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

Looks like currently GVA doesn't support Myriad-X out of the box.
The current documentation of OpenVINO is this:
https://docs.openvinotoolkit.org/latest/_docs_install_guides_installing_openvino_docker_linux.html#use_a_docker_image_for_intel_movidius_neural_compute_stick_and_intel_neural_compute_stick_2
According to the description the simpliest (but not so secure way) is to add -v /dev:/dev to docker run.
This way I get it working on my machine.
However, I would recommend to go the second alternative, to add libusb with support for UDEV disabled, "Get rid of UDEV by rebuilding libusb without UDEV support in the Docker* image".

I add -v /dev:/dev to docker run.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstGvaDetect:gvadetect0: base_inference plugin intitialization failed
Additional debug info:
/root/gst-video-analytics/gst/inference_elements/base/gva_base_inference.c(519): gva_base_inference_set_caps (): /GstPipeline:pipeline0/GstGvaDetect:gvadetect0:

Unexpected network type

Execution ended after 0:00:05.823564509
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

Tips: I use Ubuntu in the virtual machine - VMware Workstation

Hi @1000sprites ,
What model are you using?

I meant what version of models are you using

This script were meant to work on with device=CPU. So, it finds models for CPU.
If you would like to use device=MYRIAD you should manually specify path to your models that should be with FP16 precision.
Let me know if it helps.

That's a very good hint @umed .
It is working for me as I have all the models downloaded (as described here: "https://github.com/opencv/gst-video-analytics/wiki/Getting-Started-Guide-[2020.1]#22-download-models-in-ir-format-"). Can you confirm @1000sprites ?

@umed @brmarkus So sorry for the slow response, sad to say,  I upgraded the os in the VMware from Ubuntu16.04 to Ubuntu18.04, when DEVICE=CPU, the following error occurred:
sudo docker run -it --privileged --net=host -v ~/.Xauthority:/root/.Xauthority -v /tmp/.X11-unix:/tmp/.X11-unix -v /dev:/dev -e DISPLAY=$DISPLAY -e HTTP_PROXY=$HTTP_PROXY -e HTTPS_PROXY=$HTTPS_PROXY -e http_proxy=$http_proxy -e https_proxy=$https_proxy -v ~/gva/data/models/intel:/root/intel_models:ro -v ~/gva/data/models/common:/root/common_models:ro -e MODELS_PATH=/root/intel_models:/root/common_models -v ~/gva/data/video:/root/video-examples:ro -e VIDEO_EXAMPLES_DIR=/root/video-examples waynefeng/gst-video-analytics:latest

root@ubuntu:~/gst-video-analytics/samples/shell# ./face_detection_and_classification.sh /dev/video0
[setup_env.sh] GStreamer-plugins environment initialized
[setlocale.sh] C locale is set
Running sample with the following parameters:
GST_PLUGIN_PATH=/root/gst-video-analytics/scripts/../build/intel64/Release/lib:/usr/lib/gst-video-analytics/:/root/gst-video-analytics/
LD_LIBRARY_PATH=/opt/intel/dldt/inference-engine/external/hddl/lib
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
No protocol specified
Setting pipeline to PAUSED ...
No protocol specified
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstXvImageSink:xvimagesink0: Could not initialise Xv output
Additional debug info:
xvimagesink.c(1773): gst_xv_image_sink_open (): /GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstXvImageSink:xvimagesink0:
Could not open display (null)
Setting pipeline to NULL ...
Freeing pipeline ...
root@ubuntu:~/gst-video-analytics/samples/shell#

So I haven't had a chance to test device=MYRIAD:
@brmarkus However, I did download all the models
@umed Either device=CPU or device=MYRIAD, The models that are loaded by default are FP32-INT8
Because of this error /GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstXvImageSink:xvimagesink0: Could not initialise Xv output, I tried a lot of things that I couldn't solve, and I couldn't go on to verify other problems.

Have you set the ENV variable(s) and command below?
$> export DISPLAY=:1
$> xhost +local:root
Depending on how many displays you have and whether you are connected locally or remotely you might need to change the DISPLAY variable to ":2" or other number - or even to an IP-address in case you need X11-display-forwarding (for remote-access).

@umed @brmarkus The reason for upgrading the OS from Ubuntu16.04 to Ubuntu18.04, the main purpose is to verify whether NCS2 is supported in the host system. Due to gst-video-analytics:latest always fails to support NCS2 in Docker.

I set export DISPLAY=:0.0, it works for me. Next I will verify NCS2 in docker. Thanks so much. @brmarkus

@1000sprites , have you succeeded?

@1000sprites , have you succeeded?

@umed not yet, I'm still trying.

@umed I specify the FP16 model in file "face_detection_and_classification.sh", other remains the same:
DEVICE=MYRIAD
DETECT_MODEL_PATH=/root/intel_models/intel/age-gender-recognition-retail-0013/FP16/age-gender-recognition-retail-0013.xml
CLASS_MODEL_PATH=/root/intel_models/intel/face-detection-adas-0001/FP16/face-detection-adas-0001.xml
CLASS_MODEL_PATH1=/root/intel_models/intel/emotions-recognition-retail-0003/FP16/emotions-recognition-retail-0003.xml
CLASS_MODEL_PATH2=/root/intel_models/intel/landmarks-regression-retail-0009/FP16/landmarks-regression-retail-0009.xml

run command "./face_detection_and_classification.sh /dev/video0", an error occurred:
root@ubuntu:~/gst-video-analytics/samples/shell# ./face_detection_and_classificatroot@ubuntu:~/gst-video-analytics/samples/shell# ./face_detection_and_classificat
ion.sh /dev/video0
[setup_env.sh] GStreamer-plugins environment initialized
[setlocale.sh] C locale is set
Running sample with the following parameters:
GST_PLUGIN_PATH=/root/gst-video-analytics/scripts/../build/intel64/Release/lib:/usr/lib/gst-video-analytics/:/root/gst-video-analytics/
LD_LIBRARY_PATH=/opt/intel/dldt/inference-engine/external/hddl/lib
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstGvaClassify:gvaclassify0: base_inference plugin intitialization failed
Additional debug info:
/root/gst-video-analytics/gst/inference_elements/base/gva_base_inference.c(519): gva_base_inference_set_caps (): /GstPipeline:pipeline0/GstGvaClassify:gvaclassify0:

Can not init Myriad device: NC_ERROR

Execution ended after 0:00:07.312847182
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

at the same time VMware machine prompt: Connection to the USB device Movidius MyriadX failed.The device has been connected to another virtual machine. However, I just started a virtual machine.

@1000sprites, as I understand you succeeded to run pipeline within virtual machine and it works with myriad, so, you are trying to do the same within docker container. Am I correct?

@umed gst-video-analytics is not installed in my virtual machine, I always run Docker image. Next I started trying to install gst-video-analytics in the virtual machine.

I use docker image https://hub.docker.com/r/waynefeng/gst-video-analytics, and I also compiled docker image gst-video-analytics:latest from sources, the link is https://github.com/opencv/gst-video-analytics/wiki/Getting-Started-Guide-[2020.1]#install-in-docker-image. I had the same problem.

@1000sprites, sorry, due to working from home cannot acquire stick right now. I will get one tomorrow and will try to help you.

@umed Thank you very much. I'm trying too. I'll let you know if it turns out.

@umed Currently, I get the same errors in Vmware Ubuntu 16.04 and 18.04, not docker:
fl@ubuntu:~/gva/gst-video-analytics/samples/shell$ ./face_detection_and_classification.sh /dev/video0
[setup_env.sh] GStreamer-plugins environment initialized
[setlocale.sh] C locale is set
*********************
/home/fl/gva/data/models/intel/intel/face-detection-adas-0001/FP16/face-detection-adas-0001.xml
/home/fl/gva/data/models/intel/intel/age-gender-recognition-retail-0013/FP16/age-gender-recognition-retail-0013.xml
/home/fl/gva/data/models/intel/intel/emotions-recognition-retail-0003/FP16/emotions-recognition-retail-0003.xml
/home/fl/gva/data/models/intel/intel/landmarks-regression-retail-0009/FP16/landmarks-regression-retail-0009.xml
ie
age-gender-recognition-retail-0013
emotions-recognition-retail-0003
/home/fl/gva/gst-video-analytics/scripts/../samples/model_proc/landmarks-regression-retail-0009.json
*********************
ie
/home/fl/gva/gst-video-analytics/scripts/../samples/model_proc/age-gender-recognition-retail-0013.json
/home/fl/gva/gst-video-analytics/scripts/../samples/model_proc/emotions-recognition-retail-0003.json
/home/fl/gva/gst-video-analytics/scripts/../samples/model_proc/landmarks-regression-retail-0009.json
*********************
Running sample with the following parameters:
GST_PLUGIN_PATH=/home/fl/gva/gst-video-analytics/scripts/../build/intel64/Release/lib::/home/fl/gva/gst-video-analytics/build/intel64/Release/lib
LD_LIBRARY_PATH=/opt/intel/openvino_2020.1.023/opencv/lib:/opt/intel/openvino_2020.1.023/deployment_tools/ngraph/lib:/opt/intel/opencl:/opt/intel/openvino_2020.1.023/deployment_tools/inference_engine/external/hddl/lib:/opt/intel/openvino_2020.1.023/deployment_tools/inference_engine/external/gna/lib:/opt/intel/openvino_2020.1.023/deployment_tools/inference_engine/external/mkltiny_lnx/lib:/opt/intel/openvino_2020.1.023/deployment_tools/inference_engine/external/tbb/lib:/opt/intel/openvino_2020.1.023/deployment_tools/inference_engine/lib/intel64:/usr/local/lib/:
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstGvaClassify:gvaclassify0: base_inference plugin intitialization failed
Additional debug info:
/home/fl/gva/gst-video-analytics/gst/inference_elements/base/gva_base_inference.c(519): gva_base_inference_set_caps (): /GstPipeline:pipeline0/GstGvaClassify:gvaclassify0:

Can not init Myriad device: NC_ERROR

Execution ended after 0:00:08.155325363
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
fl@ubuntu:~/gva/gst-video-analytics/samples/shell$

if set DEVICE=CPU, it's ok. Next, I try not to use the VMware, use gst-video-analytics:latest docker image directly on Ubuntu18.04.

For the same operation, I got the same error on Ubuntu 16.04. However, I can use OpenVINO directly in Myriad model.
root@xxx:~/gst-video-analytics/samples/shell# ./face_detection_and_classification.sh /dev/video0
[setup_env.sh] GStreamer-plugins environment initialized
[setlocale.sh] C locale is set
Running sample with the following parameters:
GST_PLUGIN_PATH=/root/gst-video-analytics/scripts/../build/intel64/Release/lib:/usr/lib/gst-video-analytics/:/root/gst-video-analytics/
LD_LIBRARY_PATH=/opt/intel/dldt/inference-engine/external/hddl/lib
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstGvaClassify:gvaclassify0: base_inference plugin intitialization failed
Additional debug info:
/root/gst-video-analytics/gst/inference_elements/base/gva_base_inference.c(519): gva_base_inference_set_caps (): /GstPipeline:pipeline0/GstGvaClassify:gvaclassify0:

Can not init Myriad device: NC_ERROR

Execution ended after 0:00:06.646782294
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

@1000sprites, with a little help I succeeded. There are two problems.
First one is you cannot run two models on single stick unless it is MyriadX. The sample you are trying to run uses 4 models.
The second one is you have to configure rules on your host environment, to do so follow these steps:

Install udev

Create this config:

cat <<EOF > 97-myriad-usbboot.rules
SUBSYSTEM=="usb", ATTRS{idProduct}=="2150", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
SUBSYSTEM=="usb", ATTRS{idProduct}=="2485", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
SUBSYSTEM=="usb", ATTRS{idProduct}=="f63b", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
EOF

Configure udev:

sudo cp 97-myriad-usbboot.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules
sudo udevadm trigger
sudo ldconfig
rm 97-myriad-usbboot.rules

You may have to re-plug stick or reboot if it is remote host

Leave only detection model in specified sample

Profit!

@ umed It works! both of these suggestions are very important.
so just to summarize:
1.environment: ubuntu 18.04 on VMware, gst-video-analytics:latest
2.leave only detection model in specified sample
gst-launch-1.0 --gst-plugin-path ${GST_PLUGIN_PATH} \
$SOURCE_ELEMENT ! decodebin ! videoconvert ! video/x-raw,format=BGRx ! \
gvadetect model=$DETECT_MODEL_PATH device=$DEVICE pre-proc=$PRE_PROC ! queue ! \
gvawatermark ! videoconvert ! fpsdisplaysink video-sink=xvimagesink sync=false

3**.install and configure udev as shown above**
4.device=MYRIAD: models that should be with FP16 precision, the default is for CPU, need to set
5.docker run aruments: docker run -it --privileged -v /dev:/dev --network=host ...
6.Run Docker image with command: https://github.com/opencv/gst-video-analytics/wiki/Getting-Started-Guide-[2020.1]#run-docker-image-with-command-
@umed @brmarkus  Thanks very much for your prompt and patient reply again.

@1000sprites, thank you too for not giving up 👍


[PDI-13424] - Use NotePadDialog on job new note

Build Completed
:white_check_mark: This pull request has passed all validations.
Build Commands
ant -Dtestreports.dir=bin/reports/unit-test -f ui/build.xml clean-all resolve jacoco && ant -f ui/build.xml checkstyle publish-local

Cleanup Commands
rm -r ~/.ivy2/local || echo no publish local to remove

Changed files
  ui/src/org/pentaho/di/ui/spoon/job/JobGraph.java

Unit test coverage change
These statistics help you identify how your changes have affected the coverage of the following files. If a file is not in this list, then its coverage was not affected by your changes. To get some help interpreting these metrics, please refer to Jacoco's documentation.
org.pentaho.di.ui.spoon.job.JobGraph

Instruction Change: -.00%:small_red_triangle_down:
Line Change: -.00%:small_red_triangle_down:

👍


fix(keystone): ignore service config update without changes

ignore service config updates that no changes happen. prevent service
config change infomrer messages from flushing the log.
这个 PR 实现什么功能/修复什么问题:
修正：忽略未更改服务配置的更新，避免过多的common服务配置更新日志

是否需要 backport 到之前的 release 分支:

release/3.6
release/3.5
release/3.4

/area keystone
/cc @zexi

Codecov Report

Merging #9366 (1d7b705) into master (2b2ea48) will increase coverage by 10.66%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           master    #9366       +/-   ##
===========================================
+ Coverage    5.85%   16.51%   +10.66%
===========================================
  Files         838       87      -751
  Lines      130234     9114   -121120
===========================================
- Hits         7619     1505     -6114
+ Misses     121926     7477   -114449
+ Partials      689      132      -557

Flag
Coverage Δ

aFlag
16.51% <ø> (+10.66%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

pkg/util/stringutils2/stringutils.go

pkg/keystone/models/sync.go

pkg/lbagent/models/modelset.go

pkg/keystone/models/endpoints.go

pkg/compute/models/scaling_policy.go

pkg/mcclient/options/k8s/certs.go

pkg/cloudcommon/db/initialization.go

pkg/compute/models/guestsecgroups.go

pkg/compute/guestdrivers/baremetals.go

pkg/compute/regiondrivers/aws.go

... and 738 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2b2ea48...1d7b705. Read the comment docs.

/lgtm
/approve


add chartist to awesome-tools

Resolves #3

@igorlukanin 👋 Pls review

Great job @Arantiryo @dangreen!


We should ignore setPath error on startup

Error is being ignored since we return nil
On Tuesday, February 9, 2016, Gabriel Handford<EMAIL_ADDRESS>wrote:

You can view, comment on, or merge this pull request online at:
https://github.com/keybase/client/pull/1962
Commit Summary

We should ignore setPath error on startup

File Changes

M go/keybase/main.go
https://github.com/keybase/client/pull/1962/files#diff-0 (4)

Patch Links:

https://github.com/keybase/client/pull/1962.patch
https://github.com/keybase/client/pull/1962.diff

—
Reply to this email directly or view it on GitHub
https://github.com/keybase/client/pull/1962.

oh hmm yeah nm!
I guess the old service EOFs the connection though when it gets an invalid method.. and we can't fix the old service... i get it

I guess we need a rpc thingy that says "do you have this method before I call it?"
if rpc.hasMethod("keybase.1.config.setPath") {
  ...
}

A hack would be to remove an rpc method fro 1.0.9 -> 1.0.10...
We could call that method... if it exists we know we are <= 1.0.9 and not to try to call setPath..
haha

I think I fixed this all last week.   Let me know if not.  I made no guarantees for old
clients killing old services.
On Tuesday, February 9, 2016, Gabriel Handford<EMAIL_ADDRESS>wrote:

I guess we need a rpc thingy that says "do you have this method before I
call it?"
if rpc.hasMethod("keybase.1.config.setPath") {
...
}
A hack would be to remove an rpc method fro 1.0.9 -> 1.0.10...
We could call that method... if it exists we know we are <= 1.0.9 and not
to try to call setPath..
haha
—
Reply to this email directly or view it on GitHub
https://github.com/keybase/client/pull/1962#issuecomment-182103543.

If you you do this it will fail at the keybase version call near the end:
https://github.com/keybase/homebrew-beta/blob/master/GUIDE.md#testing-upgrades

Maybe cause the version getConfig is in the same protocol as setPath?
Ahhhh if we move setPath into a different protocol we'll be ok?

Can you show me a log? With -d?  I can't promise I can get to it right away
but I tried and thought i fixed all possibilities.
On Tuesday, February 9, 2016, Gabriel Handford<EMAIL_ADDRESS>wrote:

If you you do this it will fail at the keybase version call near the end:
https://github.com/keybase/homebrew-beta/blob/master/GUIDE.md#testing-upgrades
—
Reply to this email directly or view it on GitHub
https://github.com/keybase/client/pull/1962#issuecomment-182105035.

yeah log here:
https://gist.github.com/gabriel/a69bc7d68d1b9b54ee8f

And you are positive that the client is on master and has all of my fixes?
Actually I think I failed to fix the version sub command. But it should not
be a problem after we get off of the old broken services that aren't
forward compatible.  The new services are. Let's talk about it over
hangouts or perch tomorrow ?
On Tuesday, February 9, 2016, Gabriel Handford<EMAIL_ADDRESS>wrote:

yeah log here:
https://gist.github.com/gabriel/a69bc7d68d1b9b54ee8f
—
Reply to this email directly or view it on GitHub
https://github.com/keybase/client/pull/1962#issuecomment-182106595.

Sure

actually I think I recall I left version broken by design.  Fixversionclash
isn't called in that case.
On Tuesday, February 9, 2016, Gabriel Handford<EMAIL_ADDRESS>wrote:

Sure
—
Reply to this email directly or view it on GitHub
https://github.com/keybase/client/pull/1962#issuecomment-182108401.


Run-once, Daemonset

Basic developer concepts:

Run-once
Daemonset

Use nginx base image?

assign to @CloudyMind

Jobs content moved to #27


overflow checking for add and sub w-intervals

Adjust the combinedCardinality function.
Check abstract overflows is done with isWOverflow, this function returns 1 or 0 if an overflow is occurring or not according to the two w-intervals in input.
This is done without cardinality (only up-low) preventing from the wrap of +1, thus cardinality is removed.

@cponcelets Since I lost track of what exactly we need to do to make the engine become complete I am holding off on this PR.


Web API updates for Firefox 83

Acceptance criteria
The following bugs are dev-doc-complete, BCD is updated, an entry to Firefox release notes is added, experimental features page is updated, the content has been reviewed as needed.

[x]  [UI Events][Input Events] Ship "beforeinput" event and InputEvent.getTargetRanges() in Nightly (and early beta) channel — Only enabled in Nightly right now, so this won't need a release note, but you'll need to see if the expermental features page needs updating, and check whether these features have been documented properly and have good examples, whether BCD needs an update, etc.

[x]  [Input Events] Set "affected" ranges to the result of getTargetRanges() at dispatching beforeinput event — Related to the above bug, probably just requires that you make sure this behavior is decribed appropriately.

Total estimate: 1-2 days

Temporary check list for myself - I'll update

[ ] beforeinput experimental features page check/update

[ ] beforeinput BCD

[ ] beforeinput code example

[ ] more beforeinput explainer

[ ] getTargetRanges experimental features page check/update

[ ] getTargetRanges BCD

[ ] getTargetRanges code example

[ ] getTargetRanges explainer

[ ] getTargetRanges affected ranges description

After a long period of getting my head around what was needed everything is up to date all works expectedly, aside from BCD
I haven't done any BCD PRs yet, looking into it this morning I'd like to spend a bit of time reading the contributing and schema pages, as although I think this update is relatively straight forward, it's going to be benificial in the future if I get familiar with the json 👍

Thanks @Rumyra ! Can you give me a list of the page URLs you have changed, and PRs you have submitted?? I'll go forward and review them.

So far:
https://developer.mozilla.org/en-US/docs/Web/API/InputEvent/getTargetRanges
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Experimental_features
Reviewed and seemed all good:
https://wiki.developer.mozilla.org/en-US/docs/Web/API/InputEvent
https://wiki.developer.mozilla.org/en-US/docs/Web/API/HTMLElement/beforeinput_event

Thanks @Rumyra , these look good. I've made a few tweaks, and removed the "Experimental" banner from the tops of these pages, as they are no longer experimental.

OK added a PR for browser compat https://github.com/mdn/browser-compat-data/pull/7279
Moving into review as this is the final thing on the list 👍

@Rumyra all looks good to me.
So the final thing to do then is go to the bugs listed at the top of the issue, set the "dev-doc-needed" keyword to "dev-doc-complete", and add a comment saying that the documentation is complete, and state what you did. You cna just link to this issue if you like, rather than repeating yourself.

Could you add an example of feature detection for beforeinput? Since Blink has not implemented onbeforeinput attribute yet, checking InputEvent.getTargetRanges is the only way to detect it (it's available only with beforeinput).  So, there should be something like:
function isBeforeInputEventAvailable() {
  return typeof InputEvent.prototype.getTargetRanges === "function";
}

Thanks for the review, @masayuki-nakano !
@Rumyra can you handle this one please?

Picking this up now @chrisdavidmills - re our discussion yesterday, this page https://wiki.developer.mozilla.org/en-US/docs/Web/API/HTMLElement does not contain a subpage for onbeforeinput as a property and from what I can tell one doesn't exist. Can you confirm and I shall add
@masayuki-nakano thank you - just to confirm the onbeforeinput handler has not been implemented, but the beforeinput event has? I have some code running here which appears to confirm this is the case...

Gecko and WebKit supports onbeforeinput, but Blink does not.
https://bugs.chromium.org/p/chromium/issues/detail?id=947408
getTargetRanges returns meaningful result only when beforeinput event. Therefore, it's enabled only when beforeinput event is enabled by the pref on Gecko so that it can be used for feature detection.

Feature detection added to https://wiki.developer.mozilla.org/en-US/docs/Web/API/HTMLElement/beforeinput_event and https://wiki.developer.mozilla.org/en-US/docs/Web/API/InputEvent/getTargetRanges 👍

Also BCD PR accepted https://github.com/mdn/browser-compat-data/pull/7279#event-3989566683

Great, looks like we can close this. Thanks @Rumyra


[SPARK-13211][STREAMING] Deprecate certain constructors of StreamingContext's

What changes were proposed in this pull request?
These constructors, each of which takes a checkpoint path parameter, are deprecated by this PR:

StreamingContext's

this(path: String, hadoopConf: Configuration)
this(path: String)
this(path: String, sparkContext: SparkContext)

JavaStreamingContext's

this(path: String)
this(path: String, hadoopConf: Configuration)

How was this patch tested?
Existing test suits.

Test build #54435 has started for PR 12035 at commit e230ec0.

As reported in [Spark-13211], StreamingContext would throw NoSuchElementException when created from non-existent checkpoint directory.
Actually, the SparkContext.getOrCreate(path, ...) was added in https://github.com/apache/spark/commit/a1b8dd53e3474dae2c49b30bc9719c7f6b98c7cc as the major API for users to create a StreamingContext from some checkpoint; see http://spark.apache.org/docs/latest/streaming-programming-guide.html#checkpointing. SparkContext.getOrCreate(path, ...) checks if the path exists, checks if any valid checkpoint file exists in the given path, and does or does not re-throw the exception when encounter one.

Test build #54435 has finished for PR 12035 at commit e230ec0.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/54435/
Test PASSed.

Merged build finished. Test PASSed.

This doesn't address the problem. The existing API you're purporting to deprecate is still entirely fine and necessary. We're talking about a better error message when, incorrectly, later, a checkpoint directory is required but none was specified.

@lw-lin  you can close this PR given https://github.com/apache/spark/pull/12174

@srowen sure, thank you for this review, :-)


Publish to NPM

Hey, great project here. I started building a similar tool, but then found this project. Made keeping multiple views in sync a breeze. Is this published to NPM? Right now I'm using the latest commit SHA in my package.json, but it would be nice to take advantage of versioning through npm.

Was published here

cool thanks 👍


⚠ Bofrost.be has degraded performance

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

HTTP code: 200
Response time: 1785 ms

Resolved: Bofrost.be performance has improved in f0fd0cf after 14 minutes.


Set Theory / Relational operators on a Datastream

Set Theory / Relational operators on a Datastream:

union, intersection, subtract, distinct, Cartesian, zip

All very useful performing transformations.
Hopefully the above is self explanatory but here's a link for any help/ideas:
http://training.databricks.com/visualapi.pdf
The thing to think about is the RHS set should already be materialised, and broadcasted to all EEL IO workers.
Spark for example has a broadcast function which can be used with join on a DataFrame:
df.join(broadcast(otherDf), ...)

Yes good idea, it's along the lines of the join operation that was added in 1.2.

We already have union - we have both join, concat, and union operations.
I've added Cartesian, that seems really useful. I've also added subtract and intersection.
I'm not sure what what the others really mean in the context of eel. For example, what would zip do. And unique would mean having to buffer the entire lot, so goes against how a datastream works.
So I'm happy that with join, concat, union, intersection, cartesian, subtract we've got a good set!

Yeah you've got the fundamentals there - zip and unique could be used if we had sliding windows, i.e. If we had streaming.
However that's not what we are.


Miami Transit APIs

Last time I took a try at running this project, it didn't work. There's now documentation available on most APIs for getting transit data in Miami (in addition to Miami-Dade Transit's own XML feeds). I think it might be easier to start from scratch using this, but that's a challenge if anyone wants to take it.
https://github.com/cscape/miamitransit-docs

Closing and adding this to the README documents. Thanks @ciolt this project is being handled by some new Code for Miami volunteers and FIU UPE Group.


feat(conf) make nginx ssl/tls protocols configurable

Summary
When using https protocol to proxy requests, Kong should provide the
ability to configure which version of ssl/tls are enabled.
This introduces a new variable named SSL_PROTOCOLS to Kong's nginx
template file.
The default supported protocols are TLS1.1 and TLS1.2.

@romainDavaze mind you add tests too? Also while you are on it, could you also add this: http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_ssl_protocols
Then I think we need another PR here:
https://github.com/Kong/docs.konghq.com
I know, it is a lot of effort ;-). Please let us know if you need furher advice.

BTW. at some point we wish to make more of the configs dynamic (e.g. that proxy_ssl_protocols based on upstream), but until then I think we should have these configurable on config level.

Thanks @romainDavaze for the contribution. Unfortunately we have other plans for these configuration parameters that translate into Nginx directives. Since 0.14 and the new injected Nginx directives, this directive you modified should become the appropriate Nginx directives with the appropriate defaults. That is our plan regarding those so we would avoid having to break in the future and be more aligned with our vision regarding Nginx directives.
Maybe @bungle can help you going down that path?

Thanks for the quick response @thibaultcha . I guess that's what happens when you don't read the changelog in full details ... My bad !
I just tried the newly added dynamic nginx directives.
In my case, when i set the KONG_NGINX_PROXY_SSL_PROTOCOLS variable, it gets well added in the Kong nginx configuration file.
The problem is that the initial directive, that is already there by default, is not replaced. So the configuration file has duplicated entries and it seems like Nginx does not like it when it tries to start, which seems normal (it sometimes crashes when starting for some variables but does not for others).
Maybe I'm doing it wrong or maybe this is something that should be looked at. Anyways, I guess that is not the topic of this PR anymore and since it now seems to be pointeless , maybe i should close it.

Yes, as of today this is expected. What I was trying to explain is that the directive that is currently hard-coded into the Nginx configuration file (as well as many other ones) should be removed and replaced by a default provided by Kong, and overridable withba custom kong.conf or other environment variable, as usual with all other configuration values.

Closing this as there seems to be no activity. We will backlog this on our side, and I hope the above thread is insightful enough for anyone who may want to implement this feature :)
Thank you


improve performance

for each PDF you are spawning a new phantom.js child process.
is it possible to reuse the same process to create multiple PDFs, instead of killing it and reloading it for every PDF?
This will speedup the io and less CPU usage...

+1
Some good resources:

http://www.feedhenry.com/server-side-pdf-generation-node-js/ (they talk about what they did to use the same phantom instance
https://github.com/amir20/phantomjs-node (source code that shows how to do it)

Also useful: phridge, which I was using to do this manually until I replaced it with html-pdf for simplicity. Would be nice to do something similar here.

Hi!, any update of this?

PhantomJS has been officially deprecated. I would strongly recommend using puppeteer for this now. It's pretty straightforward.


Zone Aware Routing

Hey,
I know someone was looking at this around a month ago in slack, but I can't find the message thread.  I'm really interested in Zone Aware Routing but at the moment (and I believe it was a problem with mtls?) it doesn't work:
2018-04-03T07:23:51.382022Z     info    Unable to retrieve availability zone from pilot: Get http://istio-pilot.istio-system:15005/v1/az/at-conference-application/sidecar~<IP_ADDRESS>~at-conference-application-89dd474c6-xgvrj.default~default.svc.cluster.local: read tcp <IP_ADDRESS>:50694-><IP_ADDRESS>:15005: read: connection reset by peer
2018-04-03T07:24:21.385071Z     info    Unable to retrieve availability zone from pilot: Get http://istio-pilot.istio-system:15005/v1/az/at-conference-application/sidecar~<IP_ADDRESS>~at-conference-application-89dd474c6-xgvrj.default~default.svc.cluster.local: read tcp <IP_ADDRESS>:50792-><IP_ADDRESS>:15005: read: connection reset by peer
2018-04-03T07:24:51.388113Z     info    Unable to retrieve availability zone from pilot: Get http://istio-pilot.istio-system:15005/v1/az/at-conference-application/sidecar~<IP_ADDRESS>~at-conference-application-89dd474c6-xgvrj.default~default.svc.cluster.local: read tcp <IP_ADDRESS>:50866-><IP_ADDRESS>:15005: read: connection reset by peer
2018-04-03T07:25:21.391097Z     info    Unable to retrieve availability zone from pilot: Get http://istio-pilot.istio-system:15005/v1/az/at-conference-application/sidecar~<IP_ADDRESS>~at-conference-application-89dd474c6-xgvrj.default~default.svc.cluster.local: read tcp <IP_ADDRESS>:50938-><IP_ADDRESS>:15005: read: connection reset by peer
2018-04-03T07:25:51.394193Z     info    Unable to retrieve availability zone from pilot: Get http://istio-pilot.istio-system:15005/v1/az/at-conference-application/sidecar~<IP_ADDRESS>~at-conference-application-89dd474c6-xgvrj.default~default.svc.cluster.local: read tcp <IP_ADDRESS>:51012-><IP_ADDRESS>:15005: read: connection reset by peer
2018-04-03T07:26:21.397230Z     info    Unable to retrieve availability zone from pilot: Get http://istio-pilot.istio-system:15005/v1/az/at-conference-application/sidecar~<IP_ADDRESS>~at-conference-application-89dd474c6-xgvrj.default~default.svc.cluster.local: read tcp <IP_ADDRESS>:51086-><IP_ADDRESS>:15005: read: connection reset by peer
2018-04-03T07:26:51.400568Z     info    Unable to retrieve availability zone from pilot: Get http://istio-pilot.istio-system:15005/v1/az/at-conference-application/sidecar~<IP_ADDRESS>~at-conference-application-89dd474c6-xgvrj.default~default.svc.cluster.local: read tcp <IP_ADDRESS>:51182-><IP_ADDRESS>:15005: read: connection reset by peer
2018-04-03T07:27:21.403533Z     info    Unable to retrieve availability zone from pilot: Get http://istio-pilot.istio-system:15005/v1/az/at-conference-application/sidecar~<IP_ADDRESS>~at-conference-application-89dd474c6-xgvrj.default~default.svc.cluster.local: read tcp <IP_ADDRESS>:51258-><IP_ADDRESS>:15005: read: connection reset by peer
2018-04-03T07:27:21.403577Z     info    Availability zone not set, proxy will default to not using zone aware routing.

Just wondering where this is on the roadmap, or if it should be working now and if this is a bug?

Hey @liamawhite - was there any update with this?

Not yet, will be focusing on this after KubeCon.

See you there. 👌
On Mon, 30 Apr 2018, 1:50 pm Liam White<EMAIL_ADDRESS>wrote:

Not yet, will be focusing on this after KubeCon.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/istio/istio/issues/4702#issuecomment-385389075, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABaviWUFp3WaNXTMYg71UX_IUB7HKS2Dks5ttwiogaJpZM4TEnDq
.

As soon as 0.8 is released I'll be getting this fully operational.

@liamawhite thanks for your quick repliy. Any idea how I can work around this(getting the sidecar work again)?

You might have a different problem than this issue because zone aware
routing with mtls disabled doesn't work (at all), however you're describing
intermittent behaviour.
I'm guessing you're not using mTLS?
PS.  Zone aware routing not working shouldn't break your sidecar either,
it's warning rather than error.
On Mon, 7 May 2018, 11:40 am oreasono<EMAIL_ADDRESS>wrote:

@liamawhite https://github.com/liamawhite thanks for your quick repliy.
Any idea how I can work around this(getting the sidecar work again)?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/istio/istio/issues/4702#issuecomment-387027116, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABaviRzNGzxry2wGMKNpkt7BHZgtpqIsks5twCS0gaJpZM4TEnDq
.

@Stono yes i'm not using mTLS
But with this info log showed, my sidecar no longer proxy ANY traffic fire from the target pod.
Therefore some of my pods in istio can send http request to ANY website address, meanwhile some pods can only send request to websites described in EgressRule.

Yeah,
That is definitely a different issue then.
I suggest raising a new issue with as much log + context as possible.
Karl
On Mon, 7 May 2018, 12:01 pm oreasono<EMAIL_ADDRESS>wrote:

@Stono https://github.com/Stono yes i'm not using mTLS
But with this info log showed, my sidecar no longer proxy ANY traffic
fire from the target pod.
Therefore some of my pods in istio can send http request to ANY website
address, meanwhile some pods can only send request to websites described in
EgressRule.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/istio/istio/issues/4702#issuecomment-387031131, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABaviSPDxGDdYbEikwFPp7Y_UNGtcUr4ks5twCmIgaJpZM4TEnDq
.

@Stono on a second thought, that log can be irrelevant. My main issue is some  of my sidecars no longer proxy traffic. Will raise an issue. Thanks for your reply.

Yes, this is a separate issue. The zone aware stuff at the moment is just setting config that envoy ignores.

hello,I have the same problem:when I use the command"kubectl apply -f <(istioctl kube-inject -f bookinfo.yaml)",it is correct.
but when I use this command to apply my own application,error
[2018-05-11T03:11:49.516Z] "GET /istio_service1 HTTP/1.1" 302 - 0 0 14 5 "<IP_ADDRESS>" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36" "41839fbf-94c8-9b5c-99fa-065bd85940a2" "<IP_ADDRESS>:30448" "<IP_ADDRESS>:8080" 2018-05-11T03:12:12.023104Z	info	Unable to retrieve availability zone from pilot: Get http://istio-pilot.istio-system:15005/v1/az/test-istio/sidecar~<IP_ADDRESS>~test-istio-v1-d488787bc-97jm8.default~default.svc.cluster.local: read tcp <IP_ADDRESS>:41684-><IP_ADDRESS>:15005: read: connection reset by peer
if I use the command"kubectl apply -f istio-service.yaml" to apply the application,the application is OK.
Curious to know what the pilot done when use "kube-inject".

@oreasono hi,I have the same problem. the application helloworld and bookinfo are success,，but my own application using the sidecar hava the problem “Unable to retrieve availability zone from pilot”.How did you solve it?

Hey @liamawhite
Just trawling through my issues, is this something on the roadmap now 0.8 is out?

Yes, I have started a discussion in #networking if you want to chime in with your reqs. We have two options: zone aware or endpoint locality load balancing and these are mutually exclusive.

@liamawhite do you have a target for when this would be available ?

Pending our discussion in the networking meeting this week... We're aiming for just zone aware in alpha for 1.0.

What does 'mutually exclusive' mean ? Not even sure what is the difference
between 'endpoint locality' and 'zone aware', can you define the 2 ?
Pilot knows where the endpoint is. It does pass this info to envoy. Envoy
can already select local clusters first.
What is missing ?
On Sun, Jun 3, 2018 at 10:42 PM, Liam White<EMAIL_ADDRESS>wrote:

Yes, I have started a discussion in #networking if you want to chime in
with your reqs. We have two options: zone aware or endpoint locality load
balancing and these are mutually exclusive.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/istio/istio/issues/4702#issuecomment-394240040, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAFI6nVrV_uImEmdFlLrpdFhbm8iJ1_Zks5t5MjXgaJpZM4TEnDq
.

From Envoy docs:
The purpose of zone aware routing is to send as much traffic to the local zone in the upstream cluster as possible while roughly maintaining the same number of requests per second across all upstream hosts (depending on load balancing policy).
Another approach to determining how to weight assignments across different zones and geographical locations is by using explicit weights supplied via EDS in the LocalityLbEndpoints message. This approach is mutually exclusive with the above zone aware routing, since in the case of locality aware LB, we rely on the management server to provide the locality weighting, rather than the Envoy-side heuristics used in zone aware routing.
So with zone aware we just have to tell envoy which zone it is in and it does best effort to keep all traffic between hosts in that zone, we do most of this already it will just require a few tweaks.
Endpoint locality picks the locality using a weighted round-robin schedule, where the locality weight is used for weighting the requests. So with a weighting of 2 66% would go to the same region and 33% would go to other regions (assuming all endpoints in the regions are healthy).
Zone aware is a binary on/off whereas locality weighting is more configurable.

I believe this can be configured on a per Envoy basis, but would need to confirm. Zone aware is not completely implemented yet in v2 because the configuration of it changed.

Also my understanding was that we use weights on clusters - i.e. cluster v1
will get 10% and cluster v2 will get 90%. And within
each cluster, zone aware is used.

This will be correct when we finish up the zone aware v2 work. Weighted EDS is different, it effectively allows you to configure how much of the traffic is kept in the same zone (locality) as opposed to the best effort as much as possible that zone aware does.

Design Doc is here. Discussions ongoing.

Based on what I see in production deployment, topology is arbitrary. It would be great that Istio can have topology-aware routing support - including zone, rack, region, host etc.

@liamawhite Is the design doc public now? I am unable to open it - it requires some permissions.

updated the link so it should now work

hmmm, I still can not open the link :(

I think this should be in 1.0 - it's very important for any user with multiple zones, and a regression that it no longer works.

As discussed in the design doc and on slack this is not achievable due to the way Kubernetes services map to Envoy clusters. Envoy requires that a proxy <-> cluster is a 1-1 relationship for zone aware. In Kubernetes a pod can be part of multiple services, therefore, proxy <-> cluster is a 1-many relationship.
See https://github.com/istio/istio/issues/4481 for ongoing discussions about Locality Weighted Load Balancing (LWLB) and how this could achieve something close to zone aware.


CB-18370, CB-19051 - Redbeams should return flow information

This commit:

removes the calling of the unnecessary empty Redbeams RDS upgrade flow steps

TODO: the related Event, Request and Response classes are left there purposefully and to be deleted once we are sure that it won't cause any issues (meaning: in a subsequent release)

eliminates the resourceid being 0 for a couple of flows in flowlog entity
sets DBStackService as ResourceIdProvider
introduces UpgradeDatabaseResponse that includes a flowIdentifier, currentVersion
and a reason if the flow is not triggerable due to a certain validation
when upgrade flow is already happening just returns the flowId and a descriptive reason field
if the DB engine version matches the one sent in the request then it just returns the current version and a descriptive reason field

See detailed description in the commit message.

retest this please


has no exported member 'ChangeContext'

the demo https://angular-slider.github.io/ng5-slider/#user-events-slider  shows
userChange event.
but cannot import 'ChangeContext'.
ERROR in src/app/booking-lot/booking-modals.component.ts(6,30): error TS2305: Module '"E:/dev/xcar/backend/node_modules/ng5-slider/ng5-slider"' has no exported member 'ChangeContext'.

and when I do not import the ChangeContext, userChange event did nothing.

@lgh06 I haven't received any update or any other reports of this issue, so unless I have more information, I'm inclined to close this ticket.


Cannot apply invoke_without_command=False to multiple subcommands

I'd like to require that all subcommands (more than just one) be present in order for execution to proceed.
If I set invoke_without_command=False for the parent command, the only requirement is that at least one of the subcommands be present, not all.
When no subcommands are supplied, the usage output looks like this:
main.py [OPTIONS] COMMAND1 [ARGS]... [COMMAND2 [ARGS]...]...

The second command is listed as optional and execution will proceed if I only supply one command, which is not what I want.  I also can't use invoked_subcommand to check because that will return * whenever one or more subcommands are present.
Python: v2.7.11
Click: v6.3

This is interesting, but I doubt whether it's good UI. Could you elaborate on the concrete usecase?

Closing since there has been no update.
Please reopen with use case details if you are still interested in this feature


Decoupling FirehoseFactory and InputRowParser

Original discussion is here.
Firehose is designed to support any file formats, but FirehoseFactory isn't: it should be associated to a specific type of InputRowParser at compile time. This means that we should implement different FirehoseFactorys for each various file formats which has a significant limitation on extensibility.
As intended from the first place, FirehoseFactory should specify how to make a new Firehose specifying how data comes to Druid (like downloading S3 objects from static s3 firehose), while InputRowParser specifies how Druid parses incoming data through Firehose.

As I look more into the code for this issue, the big problem seems to be tied to the fact that the firehose needs to determine how to pass an InputRow to the parser, but that can be tied to the file format (a row is stored differently in a csv than in parquet). This entanglement makes it difficult to separate the format from the firehose

I think the real sin is that InputRowParsers receive one "row" at a time, but the responsibility of splitting up a file into "rows" lies with the firehose, and it has to do that without knowing what the input file format is. At that point, what can it do other than something generic like split the file on newlines? Which is what most of the file-oriented FirehoseFactories do. And that means they won't work with Parquet files.
This design made sense for loading data from a message oriented system like Kafka, which is what FirehoseFactories were originally designed to do. It was the responsibility of the message system to deliver one row at a time. But it doesn't really make sense for reading from files, where there is the added complexity of a container format that something needs to be aware of.
I think the right design for this would be that the file-based FirehoseFactories have some additional parameter, "reader" or what have you, that knows how to split streams into rows that are acceptable to the parser. The default should be a LineOrientedReader that splits the stream on newlines into strings, but there could be another one that knows how to read Parquet files. The message-based FirehoseFactories (like Kafka) wouldn't have this parameter.

This design made sense for loading data from a message oriented system like Kafka, which is what FirehoseFactories were originally designed to do. It is the responsibility of the message system to deliver one row at a time.

One thing which has changed is, each Kafka record can contain multiple rows now. It is supported since https://github.com/apache/incubator-druid/pull/5081.

@jihoonson we actually make use of parse batch support also.
That said InputRowParser should still operate on a single iteration unit IMO.
A Reader interface that returns an iterator seems like the right choice.
It should also remove some weirdness I remember seeing around resetting parsers on starting a new file as you could move that reset to the Reader.
I don't see a reason to not also support Reader at realtime ingestion too, ReaderInputRowParser that wraps an inner InputRowParser would be an awesome and flexible way to support filetypes being pushed down streaming pipelines.

@josephglanville, thanks for the comment. It sounds good to me. I also agree to support Reader for realtime ingestion too. Do you want to make a PR for this?

Yes, I am starting work on this now. I will open a PR when I have something we can iterate on.

One thing that has become apparent is the StringInputRowParser is a bit of a bad citizen.
It extends ByteBufferInputRowParser aka InputRowParser<ByteBuffer>.
This is not a problem in and of itself and it's completely reasonable to have a input row parser designed to read UTF-8 encoded strings from ByteBuffer.
The issue is that isn't how it's used, it's primarily used via function with signature the InputRow parse(String), the fact this is String rather than ByteBuffer not only violates the assumption of the interface but it also means that users of StringInputRowParser aren't using the InputRowParser interface at all, effectively making any code built on StringInputRowParser not very generic.
It seems to me that it would make sense for there to be StringInputRowParser that is actually InputRowParser<String> and StringDecoderInputRowParser which inherits from ByteBufferInputRowParser reads data from ByteBuffer decoding UTF-8.
I would also move to put add a reset() to the InputRowParser interface as it's already on Parser. Currently there is startFileFromBeginning() on StringInputRowParser that calls the same function on the inner Parser. Seems as this may be useful in general for resetting the state of stateful parsers when opening the next object/input stream.

Yeah -- StringInputRowParser is a bit of a special snowflake. Maybe doing this feature is the motivation we need to rethink how that all works. To add to the points you raised, there's also this gross code in TransformSpec (which decorates InputRowParsers with expression-based transforms):
    if (parser instanceof StringInputRowParser) {
      // Hack to support the fact that some callers use special methods in StringInputRowParser, such as
      // parse(String) and startFileFromBeginning.
      return (InputRowParser<T>) new TransformingStringInputRowParser(
          parser.getParseSpec(),
          ((StringInputRowParser) parser).getEncoding(),
          this
      );
    } else {
      return new TransformingInputRowParser<>(parser, this);
    }

And there's also the warty fact that ParseSpec's makeParser() method is actually only used by StringInputRowParser (and a couple of extension parsers that work by converting inputs to JSON and then parsing them as strings). Other parsers call getTimestampSpec and getDimensionsSpec, but they don't call makeParser. Some parsers, however, can extract useful things from certain types of ParseSpecs. The way this is done is weird, leading to code like this in the Avro extension to yank out an optional FlattenSpec:
    final JSONPathSpec flattenSpec;
    if (parseSpec != null && (parseSpec instanceof AvroParseSpec)) {
      flattenSpec = ((AvroParseSpec) parseSpec).getFlattenSpec();
    } else {
      flattenSpec = JSONPathSpec.DEFAULT;
    }

The only reason StringInputRowParser doesn't have to do something like this is that the method it needs (makeParser) has been granted special status as a member of the ParseSpec interface (even though many ParseSpecs don't implement it, they just throw exceptions).
If we are wanting to be ambitious (I don't see why not!) then I think we can make nicer, clearer interfaces by rethinking how this all works. In a backwards compatible way, since we don't want all of our users to have to rewrite their ingestion specs (which will probably be the tricky part).
@josephglanville what ambition level are you interested in having here? 😄

@gianm thanks for the clarifying the requirements. FYI, I'm very ambitious about this!

Has anyone been working on this? I'm starting to think about it again, in the context of wanting regular "index" tasks to be able to support stuff like Parquet files.

What I came up with was this:
Firstly a new interface to handle reading a file and emitting rows that can be passed to parsers:
public interface FirehoseReader<T>
{
	boolean hasNext();
	T next();
	void close();
}

For our case we implement a FirehoseReader that reads sequence files and emits ByteBuffer so that any ByteBufferInputRowParser implementations can be used with it:
public class SequenceFileFirehoseReader implements FirehoseReader<ByteBuffer> {
	private Reader reader;
	private Closeable closer;

	public SequenceFileFirehoseReader(InputStream inputStream) throws IOException {
		this(inputStream, null);
	}

	public SequenceFileFirehoseReader(InputStream inputStream, Closeable closer) throws IOException {
		Configuration config = new Configuration();
		config.set("io.compression.codecs", "io.airlift.compress.snappy.SnappyCodec");
		FSDataInputStream fsDataInputStream = new FSDataInputStream(inputStream);
		Option isOption = Reader.stream(fsDataInputStream);
		this.reader = new Reader(config, isOption);
		this.closer = closer;
	}

	@Override
	public boolean hasNext() {
		try {
			Writable ignoreKey = (Writable) reader.getKeyClass().newInstance();
			return reader.next(ignoreKey);
		} catch (IOException | InstantiationException | IllegalAccessException e) {
			return false;
		}
	}

	@Override
	public ByteBuffer next() {
		BytesWritable value = new BytesWritable();
		try {
			reader.getCurrentValue(value);
		} catch (IOException ignored) {
			return null;
		}
		return ByteBuffer.wrap(value.getBytes(), 0, value.getLength());
	}

	@Override
	public void close() {
		try {
			reader.close();
		} catch (IOException ignored) {
		}
		try {
			closer.close();
		} catch (IOException ignored) {
		}
	}
}

This is then coupled with ReaderIteratingFirehose which can be returned from FirehoseFactory.connect()
public class ReaderIteratingFirehose<T> implements Firehose {
	private final Iterator<FirehoseReader<T>> readers;
	private final Closeable closer;
	private FirehoseReader<T> reader = null;
	private InputRowParser<T> parser;
	private Iterator<InputRow> rowIterator;

	public ReaderIteratingFirehose(Iterator<FirehoseReader<T>> readers, InputRowParser<T> parser) {
		this(readers, parser, null);
	}

	public ReaderIteratingFirehose(
		Iterator<FirehoseReader<T>> readers,
		InputRowParser<T> parser,
		Closeable closer
	) {
		this.readers = readers;
		this.parser = parser;
		this.closer = closer;
	}

	@Override
	public boolean hasMore() {
		if (rowIterator != null && rowIterator.hasNext()) {
			return true;
		}
		while ((reader == null || !reader.hasNext()) && readers.hasNext()) {
			reader = getNextReader();
		}

		return reader != null && reader.hasNext();
	}

	@Nullable
	@Override
	public InputRow nextRow() {
		if (!hasMore()) {
			throw new NoSuchElementException();
		}

		// If we don't have any more parsed rows available parse a new batch
		if (rowIterator == null || !rowIterator.hasNext()) {
			rowIterator = parser.parseBatch(reader.next()).iterator();
		}

		return rowIterator.next();
	}

	private FirehoseReader<T> getNextReader() {
		if (reader != null) {
			reader.close();
		}

		return readers.next();
	}

	@Override
	public Runnable commit() {
		return Runnables.getNoopRunnable();
	}

	@Override
	public void close() throws IOException {
		try {
			if (reader != null) {
				reader.close();
			}
		} catch (Throwable t) {
			try {
				if (closer != null) {
					closer.close();
				}
			} catch (Exception e) {
				t.addSuppressed(e);
			}
			throw t;
		}
		if (closer != null) {
			closer.close();
		}
	}
}

For example to use it with the SequenceFileFirehoseReader above:
		return ReaderIteratingFirehose<ByteBuffer>(
			object : Iterator<SequenceFileFirehoseReader> {
				override fun hasNext(): Boolean {
					return fetcher.hasNext()
				}

				override fun next(): SequenceFileFirehoseReader {
					if (!hasNext()) {
						throw NoSuchElementException()
					}

					val openedObject = fetcher.next()
					val stream: InputStream
					try {
						stream = wrapObjectStream(
							openedObject,
							openObjectStream(openedObject)
						)
					} catch (e: IOException) {
						throw RuntimeException(e)
					}

					return SequenceFileFirehoseReader(stream)
				}
			},
			parser
		)

There is still a lot of work to be done though. Beyond fixing up StringInputRowParser the prefetching and file caching firehose stuff would need to be refactored etc.
I should have some more bandwith for this soon and any mentoring/advice on how to deal with the StringInputRowParser situation would be greatly appreciated as we would like to get this work upstream.

Thanks @josephglanville - what have been the toughest issues you faced with StringInputRowParser so far? I haven't scoped out the work that would be needed there yet, so maybe starting with what you've already noticed would be helpful.

This is fixed in https://github.com/apache/druid/pull/8823.


Add PyTorch tutorials

What does this PR do?
Add Resource(s)
For resources
Description
Following the suggestions of PR #3570 , the following was modified.

[x] Moved to the course file, not on the book file.
[x] Moved to "ML" category.
[x] In addition to (unofficial) Korean, also added an (official) English version.
[x] Solved the existing lint issue. (trailing slash of url, etc.)

Why is this valuable (or not)
I've been translating this PyTorch tutorial for learning purposes for a few years, and nearly 10K people visit this site every month.
How do we know it's really free?
By clicking the urls
For book lists, is it a book?
Checklist:

[x] Not a duplicate
[ ] Included author(s) if appropriate
[x] Lists are in alphabetical order
[x] Needed indications added (PDF, access notes, under construction)

Solid work. Welcome to free-programming-books!

Thanks for reviewing this PR! :)


Trigger buzzer on co2 level?

I just build this project using your great guide, now, my idea was to improve de alerting by adding a buzzer (a bit like in this project https://www.hackster.io/367592/co2-measuring-device-for-determining-air-quality-covid-19-1910ee)
The idea would be to trigger the buzzer (i am planning to add a switch before the buzzer so I can stop it by night) when the ppm goes over 1000 ppp (font)
How difficult would that be?

Hi, it seems easy to implement using the same or similar buzzer breakout board.
I'll work on folowing days 😉

Great, I started fiddling with this myself, but I'ma total novice in c + embedded so I the learning curve is a bit high😅

There's a guide for the values in https://twitter.com/PabloFuente/status/1340958944072785921?s=19, ideally less than 500ppm, and no more than 800ppm.

I already have ordered a KY-012 Buzzer. As soon it arrives will work on the feature implementation 😉.

Buzzer support is already implemented, but note that because the operating voltage for KY-012 Buzzer module, an additional N-MOSFET is needed to activate. I have used a 2N7000 MOSFET but it is possible to use other with a suitable Gate voltage about 3V.
Check wiki for further details.

Buzzer support is already implemented, but note that because the operating voltage for KY-012 Buzzer module, an additional N-MOSFET is needed to activate. I have used a 2N7000 MOSFET but it is possible to use other with a suitable Gate voltage about 3V.
Check wiki for further details.


Fix spelling mistakes identified by Lintian

https://mentors.debian.net/package/mistserver/

Merged to development as ea47e19129fcd877aee1046916c52bb0f74cd628, which means this will be in the next release.
I removed the changes to video.js, since that's verbatim from the upstream project and it would be weird to patch it locally like that... 🤔 (and the next time we update it, that patch would likely inadvertently get removed anyway)
I also ran the minimizers so that the changed javascript is properly reflected in builds, rather than just source.
Thanks for your contribution!
Oh, and note about packaging MistServer: the latest development branch (and thus next release) supports upstream MbedTLS versions again (both 2.X and 3.X, even!), as long as it is built with SRTP support (which is a build-time option, and by default disabled - unfortunately... but that's a lot easier to deal with than needing a specific fork!). The fork version also still works, and which is installed/available is autodetected, as long as Meson is used as the buildsystem (CMake-based builds are going to be unsupported somewhere in the near-ish future for MistServer, anyway).


AAP-24192: Action field in Recommendation events have a blank/null value

See https://issues.redhat.com/browse/AAP-24192
Description
The goal is to provide some quick fix some more common use cases, where action feedback is being handled in a wrong way, without a need for a bigger refactoring.
This PR improves the lifecycle of completion / feedback events , by assuming that several completion requests can be sent, before the suggestion is displayed to the user, this way:

Guarantees that for each successful (HTTP 200) completion request, it will end up on an action feedback event, can be accepted, rejected or ignored
Guarantees that for failed (non-200) completion requests, no action feedback is sent at all

Tested use cases

Accepting/rejecting a suggestion both by clicking on the buttons (accept, acceptKey) also by using keys (Tab, Esc)
Ignored action feedback sent, before suggestion presented, but user pressed some key (eg: whitespace)
Ignored action feedback sent, once suggestion presented, but user moved to another window, or lost the focus
Rejected action feedback sent, once suggestion presented, but user pressed some key (eg: whitespace)
Tested he fix for the steps to reproduce described in https://issues.redhat.com/browse/AAP-24192

TODO: Update/add unit tests

Thanks @TamiTakamiya !! All existing tests are passing, so sounds good, also I am working on increasing the coverage now , once done I will update the PR.
BTW You had a chance to test it?
Thanks!

Increased test coverage!! also rebased :+1:


Kubernetes version drop-down menu in cluster edit is broken

What kind of request is this
BUG
Steps to reproduce (least amount of steps as possible):

In the Rancher UI, Global, click 'Add Cluster'
Under 'Cluster Options' observe and attempt to interact with the 'Kubernetes Version' drop-down menu.

Result:
The Drop down menu is empty; clicking on it has no effect other than to highlight it.
Other details that may be helpful:
This seems to be a general problem across clusters as I see this behavior for both existing and new clusters.

It was just after upgrading rancher from v2.3.5 to v2.3.6 to v2.3.7 and finally to v2.3.8.
After all, that selection field became empty - as you can see on this image:

As you notice, we can't upgrade kubernetes version for our downstream cluster.
Please!
What we can do to fix this?

From this issue #25745...
At the "Global" menu goes to tools > drivers>  and execute refresh kubernetes metadata
Now it is working on our HA environments and I can upgrade all downstream clusters.


[ENG-1693] Disable registration button for non-admin users

Ticket: ENG-1693
Feature flag: n/a

Purpose
Disable the registration button for non-admin users.
For admins:

For non-admins:

Summary of Changes

Bring currentUserIsAdmin through to the register component
Disable the button if the current user is not an admin
Tests
Make dcaf draft registration a current-user write perms for easy testing

Side Effects
No, this is fairly isolated
QA Notes
This affects the draft-registration review page. It shouldn't be particularly browser dependent. It's a low-risk change.

I've stolen these changes and rolled them into the read-only view PR


improved warning for ulimit -n 4096 needed

The README says:
All tests are failing or timing out
Our test setup needs a certain about of file descriptors.
At least 4096 should be enough, you can set it via:
$ ulimit -n 4096

But I've forgotten and relearned this a number of times, and it's cost me a lot of frustration each time, since the errors (and especially the hangs) are opaque. Is there a way we can improve on this? Maybe each test can check for available FDs and fast-fail if they're not available?

tbh if we're going to spend time on this I think we should just require fewer FDs in tests
I think most of them are because we write files to disk just to immediately read them back into the database? That should be pretty easy to mock.

@jsha a more reliable way to see the file descriptors used is to run strace and track open, connect, and bind syscalls.

I think part of the problem is that the storage is never dropped because the strong count on the Arc<Storage> after the test finishes is commonly still 5 (in ~17% of tests it's only 1 so gets cleaned up). That probably keeps a tokio runtime inside the database pool alive, which is why I see about 1k eventfd slowly accumulating during the test run.
I'm not sure why we are keeping it alive, I didn't think there were any loops in the Arcs; that will take some more investigation.

Oh, there's a comment on why
https://github.com/rust-lang/docs.rs/blob/846add305486c5935b495b76a1f73cb67c90dd0c/src/storage/mod.rs#L494-L496
we do shutdown the database underneath the storage so that shouldn't be it.

I added some logging and during the complete test suite we create 2347 tokio runtimes and drop 2066 of them, so there's 281 leaked from somewhere... (also, that's like 10 runtimes per test, why are we creating so many 😰, I would expect like 4 max (one for database, one for S3, one for reqwest, maybe one somewhere else)).

Ok, I tracked down the leaked runtimes, they're from the RepositoryStatsUpdater's reqwest clients. Those are referenced via the MainHandler from the server, so I hacked in a way to completely remove the main handler after the test completes before we leak the iron server and that lets the total open files hover around 200-400 instead of going over 1000 (except when the 1000 files test runs). That also lets all the other stuff referenced from the web server like the storage and database fully cleanup, so doing something like this might let us remove some of the other cleanup hacks.

It took me a minute to figure out why we leak the webserver, so copying the comment here (from web/mod.rs):
    /// Iron is bugged, and it never closes the server even when the listener is dropped. To
    /// avoid never-ending tests this method forgets about the server, leaking it and allowing the
    /// program to end.
    ///
    /// The OS will then close all the dangling servers once the process exits.
    ///
    /// https://docs.rs/iron/0.5/iron/struct.Listening.html#method.close
    #[cfg(test)]
    pub(crate) fn leak(self) {
        std::mem::forget(self.inner);
    }

That's a bummer! It would be so nice to fix that underlying problem, but that would necessitate getting off of iron, which I realize is a huge task.
Given that, your proposed solution - make the MainHandler droppable - makes sense. It's a bit of a bummer to have two really different paths gated by cfg(test), though. Of course we don't want to have a Mutex on MainHandler in prod because that would reduce us to single-threaded performance. What about changing that to an Rc? And then we would only call get_mut and drop it in tests.
Another approach: what about stubbing out the RepositoryStatsUpdater in tests? By my reading it looks like it's making live internet requests during unittests, which is a problem anyhow.

I'm relatively near to a first PR that starts the axum migration (and a branch where all handlers work with axum + sqlx),
IMO we shouldn't invest too much time into fixing iron-specific things.

Another approach: what about stubbing out the RepositoryStatsUpdater in tests? By my reading it looks like it's making live internet requests during unittests, which is a problem anyhow.

I don't think it's doing live requests, I remember @GuillaumeGomez mocked the requests via mockito.
We could stub out the updater when it's an issue, otherwise it would probably be fixed when we only have one runtime and most things are async


Unable to initiate a new Azure Function based on BlobTrigger template

Here is the output logs I got on VS Code:
09:22:57: Error: Command "dotnet "c:\Users\gbresson.vscode\extensions\ms-azuretools.vscode-azurefunctions-0.24.0\resources\dotnetJsonCli\netcoreapp3.0\Microsoft.TemplateEngine.JsonCli.dll" --require "c:\Users\gbresson\AppData\Roaming\Code\User\globalStorage\ms-azuretools.vscode-azurefunctions\dotnetTemplates\itemTemplates-~2.nupkg" --require "c:\Users\gbresson\AppData\Roaming\Code\User\globalStorage\ms-azuretools.vscode-azurefunctions\dotnetTemplates\projectTemplates-~2.nupkg" --operation create --identity Microsoft.AzureFunctions.ProjectTemplate.CSharp.2.x --arg:name "AZURE-FUNCTION-RABBIMQ" --arg:AzureFunctionsVersion v2" failed with exit code "2097158":
{
"Message": "Could not load template",
"Status": 2097158,
"TemplateFullName": "Azure Functions",
"ResultInfo": null,
"OutputBaseDirectory": null,
"CreationEffects": null
}

What version of dotnet do you have? Does it work for any other template or when creating a new project?

Hello, I updated my .net version and restarted visual studio code and
everything went well... now trying to deploying it ;)
btw, thanks for your support
Le ven. 4 sept. 2020 à 02:01, Eric Jizba<EMAIL_ADDRESS>a
écrit :

What version of dotnet do you have? Does it work for any other template or
when creating a new project?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vscode-azurefunctions/issues/2352#issuecomment-686823724,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA5KGW3QFJL2FRTLHBIY25LSEAU67ANCNFSM4QSVQFBQ
.

--
Gaël BRESSON
1309 Route des crêtes
69480 ANSE


feature request: distinguish wether element is being moved or copied

First of all thanks for developing this library, it's awesome and works really well!
It would be useful if we could get additional classes on the source element to distinguish wether it's being copied or just moved.
My usecase is the following:
I'm currently doing a display: none on .dndDraggingSource, so that it looks like the element has been pulled out of the list. However when I'm copying the element instead of just moving it (pressing alt on a mac) it looks weird when dropped since visually there are 2 elements that appear on the list (one being the source that was never removed). If I could distinguish both cases I could apply different styles and create a better user experience.

+1

It's not possible with the HTML5 API. You could listen to mouse move events and check whether the ctrl/alt key is pressed, but this won't work when dragging outside the browser window.


On Configure Video page - after selecting video to upload the button above upload is incorrect

please note the button above the upload input box:

same issue happens when you attempt to upload unsupported video type

PR: #2865

:+1:


e2e: Add tests for accounts

Part of #21.  Adds accounts to the simple-keyvalue runtime and two new end-to-end tests for accounts, also correctly handles account nonces in kvInsert and kvRemove.

The ts-web-rt CI test fails with:
client: transaction check failed: runtime: check tx failed: runtime error: module: core code: 4 message:
  [object Object]
  From Your Spec Code:
      at Context.eval (http://localhost:42280/__cypress/tests?p=cypress/integration/playground.spec.js:106:17)

The error message points to line 106 in an 11 line file and the error message is [object Object], so that's not very helpful.
Error code 4 is "invalid nonce".
Could someone with more knowledge of what that test should be doing point me at what to fix?

Take a look at this:

https://github.com/oasisprotocol/oasis-sdk/blob/main/client-sdk/ts-web/rt/playground/src/index.js

My guess would be that these transactions are missing proper nonces:

https://github.com/oasisprotocol/oasis-sdk/blob/main/client-sdk/ts-web/rt/playground/src/index.js#L149-L152

See here for how to query for nonces:

https://github.com/oasisprotocol/oasis-bridge/blob/master/client-sdk/ts-web/playground/src/index.js#L100-L106

Thanks, I'll have a look! :)

looks good from the js side.

The error message points to line 106 in an 11 line file and the error message is [object Object], so that's not very helpful.
Error code 4 is "invalid nonce".

worse, message was blank. [object Object] is the next line. it might be the metadata dictionary from grpc, which we don't use


ImagePicker without uCrop dependency

First I would like to thank @Dhaval2404 and all the collaborators of this project. It has been very useful. But there is something that has been bothering me for some time.
Would it be possible to make available a version of this great library without the uCrop lib dependency?
Some people just need to select an image without cropping them. Others prefer to use some other thirty party library to crop their images than uCrop. Yes, I know we can just ignore that ImagePicker library uses uCrop, but an alternative version without uCrop dependency would decrease the size of the final application, which can be an important factor for many people.
Thanks :)

@leocorder Thank you so much for the suggestions. I really like your suggestion. I will take this on priority after done with scope storage, which is scheduled to release next week.
I'm thinking of removing uCrop from the base library and creating add-ons, So for the user, It will be just adding a new gradle lib. This is just initial thought, Please Let me know if you have any better suggestions. Thank you!


Deploy to Kubernetes cluster

As an Order Manager
I need to deploy our application to a Kubernetes cluster on IBM Cloud
So that I can gain better business agility and scale
Assumptions
• Allows for continuous delivery to be achieved
• Allows for creation of automated testing integrated with an automated CI/CD pipeline
Acceptance Criteria

devcontainer environment updated, IBM Cloud CLI downloaded and installed
Kubernetes metadata files created for deployment
Kubernetes CLI kubectl command used to deploy service to Kubernetes cluster
IP address of worker node retrieved and combined with port to go to service URL, working

Requirement 3: Deploy to the Cloud, Story 2/2

As an Order Manager
I need to deploy our application to a Kubernetes cluster on IBM Cloud
So that I can gain better business agility and scale
Assumptions
• Allows for continuous delivery to be achieved
• Allows for creation of automated testing integrated with an automated CI/CD pipeline
Acceptance Criteria

devcontainer environment updated, IBM Cloud CLI downloaded and installed
Kubernetes metadata files created for deployment
Kubernetes CLI kubectl command used to deploy service to Kubernetes cluster
IP address of worker node retrieved and combined with port to go to service URL, working

Hey team! Please add your planning poker estimate with Zenhub @bartconsedine @EmiliePourchet @LotteLa @marianaruizallende @nilesh1401 @Victoria-Obasa

@EmiliePourchet I'm working ont his
please do not move

I moved it to sprint 3 for that very reason, I thought this is what we concluded during our last meeting
@marianaruizallende You can still pick this up as part of sprint 3 if you'd like to though!

ok I will, its already done, so I just need to connect the issue to this and the other story
http://<IP_ADDRESS>:31001/


Process timestamp key in RecordSet correctly.

For example you have a model:
class Event
  include Cequel::Record
  key :timestamp, :timestamp
  column :value, :text
end

if you will try to create RecordSet for this model you will see incorrect value for timestamp column:
Event[Time.now] # => #<Event timestamp: any number here but not Time object>

Problem related to unexpected behavior of Array(Time) expression:
2.2.3 :007 > Array(DateTime.now)
=> [Fri, 18 Dec 2015 20:58:54 +0300]
2.2.3 :008 > Array(Time.now)
=> [57, 58, 20, 18, 12, 2015, 5, 352, false, "MSK"]

So, Array(Time) was changed to [Time].flatten.compact

@pezra Could you please review this PR?

Merged. Thanks for the fix. (It is so weird that #Array works like the for Times.)


Update version to v2.0.0

The @metamask/eth-token-tracker package has been updated to v2.0.0

A new version of the package @metamask/eth-token-tracker (2.0.0) was published at 2020-03-30T16:19:42.688Z from [redacted]. The shasum of this package was a94a99bd3160ee85ec5feace29fbb02f80f5c826.

I've also deprecated the old package


moving from 0.4 to 0.5 yields multiple E_NOTICE

had a working install using Assetic & scssphp v0.3
did a composer update and saw it jumped to 0.5. Went to use my site as usual and upon page load it started spamming the following errors:
E_NOTICE: Undefined index: in
in /var/www/dev-hub/vendor/leafo/scssphp/src/Node/Number.php at line 114
E_NOTICE: Undefined index: in
in /var/www/dev-hub/vendor/leafo/scssphp/src/Node/Number.php at line 114
E_NOTICE: Undefined index: pc
in /var/www/dev-hub/vendor/leafo/scssphp/src/Node/Number.php at line 114
E_NOTICE: Undefined index: pc
in /var/www/dev-hub/vendor/leafo/scssphp/src/Node/Number.php at line 114
E_NOTICE: Undefined index: pt
in /var/www/dev-hub/vendor/leafo/scssphp/src/Node/Number.php at line 114
...

the actual undefined index character change, but the notice message are spammed continuously (depending on size of scss file loaded).
and it goes on and on. Rolling back to v0.4 and things were working fine again.

Looks like you have a custom handler that doesn't check if error_reporting() returns 0, i.e., the notice was suppressed by the @ operator.


Clone fastai/course-v3?

Can not clone 'fastai/course-v3' as usally?:
"$ git clone git@github.com:fastai/course-v3.git
Cloning into 'course-v3'...
Warning: Permanently added the RSA host key for IP address '<IP_ADDRESS>' to the list of known hosts.
<EMAIL_ADDRESS>Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists."

git clone https://github.com/fastai/course-v3.git worked fine for me.

not  git@github.com:fastai/course-v3.git. You wrote it wrong

@79212 If you want to clone using ssh make sure that you have set up an SSH key with your  GitHub account. You can test if you have it by using ssh -T<EMAIL_ADDRESS>


Add ConversationFn type

Similar to React.FC
const greeting: ConversationFn<MyContext> = async (conversation, ctx) => {
    await ctx.reply("Hi there! What is your name?");
    const { message } = await conversation.wait();
    await ctx.reply(`Welcome to the chat, ${message.text}!`);
}

As suggested in https://t.me/grammyjs/66063

Drawback: won't be possible to automatically get conversation name

I am in favour of this.

Drawback: won't be possible to automatically get conversation name

This is incorrect.
> const foo = async () => {}
undefined
> foo.name
"foo"
>

Please review #48.


How to copy local files into image?

Hey,
thanks for the great project!
I would love to be able to add files from my local maschine into the installed linux. It is not a problem to copy the files to the image of course, but how do I get a file from the image copied into the users home folder during the install process?
Thanks a lot!
Tom

Hi, have you tried using the late command? you'll find an example of this in the script itself. It's what's used to download the start.sh file from github into the users' home dir at the end of the install.

Hey. Yes I tried that, but I couldn't figure out how to copy files from cd into the chroot environment. I suppose I need to use mount -bind, but I don't know how ... Cheers, Tom

Check out this link: https://www.safaribooksonline.com/library/view/ubuntu-hacks/0596527209/ch01s04.html
They describe in much detail how to do this manually for a Ubuntu Live CD and the process shouldn't be very different here.

Thanks, I decided to go another way ... I now include the files into to image and then just mount the image when the system is started. Easier ... I pushed it to my fork here: https://github.com/tommueller/ubuntu-unattended Thanks!


TypeError: AbqpyCLI.cae() got an unexpected keyword argument 'startup'

Hello everyone, I'm new to Github (first time).
I'm writting this beacause i think i encontered a bug so i'd like to report it.
I explain.
I installed abqpy-2020.7.1 (with abaqus2020 and python 3.10.11).
when i want to launch my code (code below) i have the following error :
"""
The script will be submitted to Abaqus next and the current Python session will be closed.
Traceback (most recent call last):
File "worspace_path\test.py", line 1, in
from abaqus import mdb
File "C:\Users\user_name\AppData\Local\Programs\Python\Python310\lib\site-packages\abaqus_init_.py", line 7, in
run(cae=True)
File "C:\Users\user_name\AppData\Local\Programs\Python\Python310\lib\site-packages\abqpy\run.py", line 48, in run
abaqus.cae(filePath, *sys.argv[1:], **config.cae.model_dump())
TypeError: AbqpyCLI.cae() got an unexpected keyword argument 'startup'
"""
I also tried with another version of abqpy-2020 (6.2) and it worked perfectly.
The cae function (from abqpy>cli.py>class AbqpyCLI) has not 'startup' in its keywords (in both versions). So the problem could come from one of the inputs of "abaqus.cae(filePath, *sys.argv[1:], **config.cae.model_dump())" but my knowledge stops here.
I hope it helps.
Have a great day,
Théo
all is executed on an offline windows 10
Python code : test.py
from abaqus import mdb
job = mdb.JobFromInputFile('job_name', 'job_name.inp')
job.submit()
job.waitForCompletion()
More Things related
py file executed in vscode
results from pip list :
abqpy             2020.7.1
auto-all          1.4.1
fire              0.6.0
pip               23.0.1
pydantic          1.10.14
setuptools        65.6.3
six               1.16.0
termcolor         2.4.0
typeguard         4.1.5
typing_extensions 4.10.0
Originally posted by @thelongip in https://github.com/haiiliin/abqpy/discussions/146#discussioncomment-8867521

The bug is introduced in abqpy version 20**.7.1 (#5492) and will be fixed in 20**.7.2 (5575)


Problem execute command

Hello ! When I reach level 10 in the hunter profession, I want to be able to send a command (/ give diamond_sword ...) to the player who has just unlocked level 10. How do I do this? (1.12.2 Paper / Spigot)

https://github.com/Zrips/Jobs/blob/master/src/main/resources/jobs/_EXAMPLE.yml#L547-L559


chef-client -j can't handle a BOM

It would be nice to deal with UTF-8+BOM for Windows-y folks, or maybe even UTF-16+BOM if we're feeling adventurous. On older versions of PowerShell, the Out-File cmdlet defaults to UTF-16+BOM and if you ask for -encoding UTF8 you get UTF-8+BOM (sidebar: whyyyyy?).


After deleting an action from the action list page I am taken to the sayings tab

When I am on the Actions tab of the dialogue page, if I click on an action and delete it, I am returned to the sayings tab, not the actions tab.

Closed by 278fea545b1a330df5b20559edd94ec165c2f355