Unable to Launch Android Java example for realSense

I follow the instruction for this link https://github.com/IntelRealSense/librealsense/blob/master/wrappers/android/examples/java_example/readme.md
Everything was fine. Also when I connect the camera it didn't switch on and the application has just bug.
Please could you help me?
What should I do?
Thanks.

What model of RealSense camera are you using please?  If it is a D435i, it does not have support for Android yet.

I am using Model: D435

Thank you very much for the confirmation of your camera model.  Can you provide details of any error messages that you receive, please?

Thank you for your help. I found the solution. I was using Android 7.0 while the minimum is 7.8.
I will look for a new device and execute it.

If you are referring to the information on the Releases page, it says "7, 8" (Android 7 or Android 8), not Android version 7.8.

I test the application and that is the execution log that I receive.
08/22 11:20:21: Launching app
No apk changes detected since last installation, skipping installation of /home/cedriq/Bureau/Nafi_Work/RealSense/librealsense-2.19.2/wrappers/android/examples/java_example/app/build/outputs/apk/debug/app-debug.apk
$ adb shell am force-stop com.example.realsense_java_example
$ adb shell am start -n "com.example.realsense_java_example/com.example.realsense_java_example.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 5262 on device tecno-tecno_camon_cx-<IP_ADDRESS>:5555
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/librs Enumerator: onReceive: android.hardware.usb.action.USB_DEVICE_DETACHED
I/librs MessagesHandler: handleMessage: realsense device detached
I/librs Enumerator: notifyOnDetach
D/librs DeviceWatcher: Removing device: /dev/bus/usb/001/002
I/librs: Found UVC Device vid: id-
vid- 8086
pid- ad6
mi- 0
unique_id- .
path- /dev/bus/usb/001/002
susb specification- 210
D/UsbDeviceConnectionJNI: close
D/librs DeviceWatcher: Device: /dev/bus/usb/001/002 removed successfully
I/librs Enumerator: onReceive: android.hardware.usb.action.USB_DEVICE_ATTACHED
D/librs UsbUtilities: hasUsbPermission
I/librs MessagesHandler: handleMessage: realsense device attached
I/librs Enumerator: notifyOnAttach
D/librs DeviceWatcher: Adding device: /dev/bus/usb/001/002
I/librs: Found UVC Device vid: id-
vid- 8086
pid- ad6
mi- 0
unique_id- .
path- /dev/bus/usb/001/002
susb specification- 210
D/librs DeviceWatcher: Device: /dev/bus/usb/001/002 added successfully
I/librs: Found UVC Device vid: id-
vid- 8086
pid- ad6
mi- 0
unique_id- .
path- /dev/bus/usb/001/002
susb specification- 210
I/librs: Found UVC Device vid: id-
vid- 8086
pid- ad6
mi- 0
unique_id- .
path- /dev/bus/usb/001/002
susb specification- 210
D/ActivityThread: EYE startEyeVerifyBroadcast packagename=com.example.realsense_java_example; ClassName=com.intel.realsense.librealsense.DeviceWatcherActivity
D/ActivityThread: EYE startEyeVerifyBroadcast packagename=com.example.realsense_java_example; ClassName=com.example.realsense_java_example.MainActivity
V/PhoneWindow: DecorView setVisiblity: visibility = 0, Parent = ViewRoot{581bf8a com.example.realsense_java_example/com.example.realsense_java_example.MainActivity,ident = 0}, this = DecorView@7b23915[MainActivity],statusBarBackground visible =true,statusColor: 0xff00574b->
I/librs: Current firmware version: <IP_ADDRESS>
Minimal firmware version: <IP_ADDRESS>
W/System.err: java.lang.RuntimeException: UNKNOWN_ERROR
at com.intel.realsense.librealsense.Pipeline.nWaitForFrames(Native Method)
at com.intel.realsense.librealsense.Pipeline.waitForFrames(Pipeline.java:28)
at com.intel.realsense.librealsense.Pipeline.waitForFrames(Pipeline.java:24)
at com.example.realsense_java_example.MainActivity.stream(MainActivity.java:99)
at com.example.realsense_java_example.MainActivity.access$100(MainActivity.java:20)
at com.example.realsense_java_example.MainActivity$2.run(MainActivity.java:83)
at java.lang.Thread.run(Thread.java:761)
This three line 99 : try (FrameSet frames = pipe.waitForFrames()) {
line 83:                     stream();
Thanks.

I test the application and that is Log
08/22 11:26:09: Launching app
$ adb push /home/cedriq/Bureau/Nafi_Work/RealSense/librealsense-2.19.2/wrappers/android/examples/java_example/app/build/outputs/apk/debug/app-debug.apk /data/local/tmp/com.example.realsense_java_example
$ adb shell pm install -t -r "/data/local/tmp/com.example.realsense_java_example"
Success
APK installed in 4 s 696 ms
$ adb shell am start -n "com.example.realsense_java_example/com.example.realsense_java_example.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Client not ready yet..Waiting for process to come online
Connected to process 9640 on device tecno-tecno_camon_cx-<IP_ADDRESS>:5555
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
W/librs UsbUtilities: getUsbDevice: failed to locate USB device, VID: 0x8086, PID: 0x0000
D/librs UsbUtilities: hasUsbPermission
W/librs UsbUtilities: hasUsbPermission: null USB device
W/librs UsbUtilities: getUsbDevice: failed to locate USB device, VID: 0x8086, PID: 0x0000
D/librs UsbUtilities: grantUsbPermissions
W/librs UsbUtilities: grantUsbPermissions: null USB device
D/ActivityThread: EYE startEyeVerifyBroadcast packagename=com.example.realsense_java_example; ClassName=com.example.realsense_java_example.MainActivity
V/PhoneWindow: DecorView setVisiblity: visibility = 4, Parent = null, this = DecorView@7b23915[],statusBarBackground visible =true,statusColor: 0xff00574b->
D/WindowClient: Add to mViews: DecorView@7b23915[MainActivity], this = android.view.WindowManagerGlobal@1e0472c
D/OpenGLRenderer: Dumper init 4 threads <0x745e214f80>
<com.example.realsense_java_example> is running.
D/OpenGLRenderer: CanvasContext() 0x747104c000
D/GraphicBuffer: register, handle(0x746e773880) (w:1920 h:1152 s:1920 f:0x1 u:0x000100)
D/ViewRootImpl[MainActivity]: hardware acceleration is enabled, this = ViewRoot{a35e5f5 com.example.realsense_java_example/com.example.realsense_java_example.MainActivity,ident = 0}
V/PhoneWindow: DecorView setVisiblity: visibility = 0, Parent = ViewRoot{a35e5f5 com.example.realsense_java_example/com.example.realsense_java_example.MainActivity,ident = 0}, this = DecorView@7b23915[MainActivity],statusBarBackground visible =true,statusColor: 0xff00574b->
I/lulingjie--screenshot--observer--: observer is rigistedDecorView@7b23915[MainActivity]
D/Surface: Surface::allocateBuffers(this=0x7478c54e00)
D/OpenGLRenderer: CanvasContext() 0x747104c000 initialize window=0x7478c54e00, title=com.example.realsense_java_example/com.example.realsense_java_example.MainActivity
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 1
D/OpenGLRenderer: Created EGL context (0x7471011780)
D/OpenGLRenderer: ProgramCache.init: enable enhancement 1
I/OpenGLRenderer: Get disable program binary service property (0)
Initializing program atlas...
I/ProgramBinary/Service: ProgramBinaryService client side disable debugging.
ProgramBinaryService client side disable binary content debugging.
D/ProgramBinary/Service: BpProgramBinaryService.getReady
D/ProgramBinary/Service: BpProgramBinaryService.getProgramBinaryData
V/InputMethodManager: onWindowFocus: null softInputMode=288 first=true flags=#81810100
I/OpenGLRenderer: Program binary detail: Binary length is 249244, program map length is 124.
I/OpenGLRenderer: Succeeded to mmap program binaries. File descriptor is 62, and path is /dev/ashmem.
No need to use file discriptor anymore, close fd(62).
D/OpenGLRenderer: Initializing program cache from 0x0, size = -1
D/MALI: eglCreateImageKHR:513: [Crop] 0 0 1920 1152  img[1920 1152]
D/Surface: Surface::connect(this=0x7478c54e00,api=1)
W/libEGL: [ANDROID_RECORDABLE] format: 1
D/mali_winsys: EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000
D/OpenGLRenderer: CacheTexture 3 upload: x, y, width height = 0, 0, 264, 273
ProgramCache.generateProgram: 0
D/GraphicBuffer: register, handle(0x745bcdc540) (w:1080 h:1920 s:1088 f:0x1 u:0x000b00)
D/OpenGLRenderer: ProgramCache.generateProgram:<PHONE_NUMBER>1
D/OpenGLRenderer: ProgramCache.generateProgram:<PHONE_NUMBER>76
D/GraphicBuffer: register, handle(0x745bd6e000) (w:1080 h:1920 s:1088 f:0x1 u:0x000b00)
I/librs Enumerator: onReceive: android.hardware.usb.action.USB_DEVICE_ATTACHED
D/librs UsbUtilities: hasUsbPermission
I/librs MessagesHandler: handleMessage: realsense device attached
I/librs Enumerator: notifyOnAttach
D/librs DeviceWatcher: Adding device: /dev/bus/usb/001/002
I/librs: Found UVC Device vid: id-
vid- 8086
pid- ad6
mi- 0
unique_id- ?
path- /dev/bus/usb/001/002
susb specification- 210
D/librs DeviceWatcher: Device: /dev/bus/usb/001/002 added successfully
I/librs: Found UVC Device vid: id-
vid- 8086
pid- ad6
mi- 0
unique_id- ?
path- /dev/bus/usb/001/002
susb specification- 210
I/librs: Found UVC Device vid: id-
vid- 8086
pid- ad6
mi- 0
unique_id- ?
path- /dev/bus/usb/001/002
susb specification- 210
D/ActivityThread: EYE startEyeVerifyBroadcast packagename=com.example.realsense_java_example; ClassName=com.intel.realsense.librealsense.DeviceWatcherActivity
V/InputMethodManager: onWindowFocus: null softInputMode=32 first=false flags=#81810100
D/ActivityThread: EYE startEyeVerifyBroadcast packagename=com.example.realsense_java_example; ClassName=com.example.realsense_java_example.MainActivity
V/PhoneWindow: DecorView setVisiblity: visibility = 0, Parent = ViewRoot{a35e5f5 com.example.realsense_java_example/com.example.realsense_java_example.MainActivity,ident = 0}, this = DecorView@7b23915[MainActivity],statusBarBackground visible =true,statusColor: 0xff00574b->
D/GraphicBuffer: register, handle(0x745bd6f980) (w:1080 h:1920 s:1088 f:0x1 u:0x000b00)
I/librs: Current firmware version: <IP_ADDRESS>
Minimal firmware version: <IP_ADDRESS>
I/librs: Found UVC Device vid: id-
vid- 8086
pid- ad6
mi- 0
unique_id- ?
path- /dev/bus/usb/001/002
susb specification- 210
I/librs: Current firmware version: <IP_ADDRESS>
Minimal firmware version: <IP_ADDRESS>
W/System.err: java.lang.RuntimeException: UNKNOWN_ERROR
W/System.err:     at com.intel.realsense.librealsense.Pipeline.nWaitForFrames(Native Method)
at com.intel.realsense.librealsense.Pipeline.waitForFrames(Pipeline.java:28)
at com.intel.realsense.librealsense.Pipeline.waitForFrames(Pipeline.java:24)
at com.example.realsense_java_example.MainActivity.stream(MainActivity.java:99)
at com.example.realsense_java_example.MainActivity.access$100(MainActivity.java:20)
at com.example.realsense_java_example.MainActivity$2.run(MainActivity.java:83)
at java.lang.Thread.run(Thread.java:761)
W/System.err: java.lang.RuntimeException: UNKNOWN_ERROR
W/System.err:     at com.intel.realsense.librealsense.Pipeline.nWaitForFrames(Native Method)
at com.intel.realsense.librealsense.Pipeline.waitForFrames(Pipeline.java:28)
at com.intel.realsense.librealsense.Pipeline.waitForFrames(Pipeline.java:24)
at com.example.realsense_java_example.MainActivity.stream(MainActivity.java:99)
at com.example.realsense_java_example.MainActivity.access$100(MainActivity.java:20)
at com.example.realsense_java_example.MainActivity$2.run(MainActivity.java:83)
at java.lang.Thread.run(Thread.java:761)
V/PhoneWindow: DecorView setVisiblity: visibility = 4, Parent = ViewRoot{a35e5f5 com.example.realsense_java_example/com.example.realsense_java_example.MainActivity,ident = 0}, this = DecorView@7b23915[MainActivity],statusBarBackground visible =true,statusColor: 0xff00574b->
D/Surface: Surface::disconnect(this=0x7478c54e00,api=1)
D/GraphicBuffer: unregister, handle(0x745bcdc540) (w:1080 h:1920 s:1088 f:0x1 u:0x000b00)
D/GraphicBuffer: unregister, handle(0x745bd6e000) (w:1080 h:1920 s:1088 f:0x1 u:0x000b00)
D/GraphicBuffer: unregister, handle(0x745bd6f980) (w:1080 h:1920 s:1088 f:0x1 u:0x000b00)
D/Surface: Surface::disconnect(this=0x7478c54e00,api=1)
D/OpenGLRenderer: Destroyed EGL context (0x7471011780)
D/OpenGLRenderer: Terminated EGL display (0x1)
Application terminated.

Apologies for the delay in responding, I was carefully analyzing the log that you kindly provided.
As the error is related to waiting for frames, you may find some useful information in the case of a wait for frames error with Android that is in the link below.
https://github.com/IntelRealSense/librealsense/issues/2135

I read that
Current firmware version: <IP_ADDRESS>
Minimal firmware version: <IP_ADDRESS>
Could this be the problem??

I'm not aware of a specific firmware requirement for the Android wrapper.  However, having a recent firmware installed is a common fix for a lot of RealSense problems.   <IP_ADDRESS> is one of the oldest firmwares, dating back to February 2018, not long after the camera's launch.  A large number of improvements and fixes have been implemented in firmware updates since then.

Hi @MartyG-RealSense ,
Thanks you for your reply. How should I update my Firmare.

Intel recently introduced a new cross-platform firmware update system to make firmware updates easier.  This includes a tool called rs-fw-update
https://dev.intelrealsense.com/docs/firmware-update-tool
If you cannot get Librealsense to work yet on your Android device, the easiest way to update the firmware may be to use a computer with Windows or Linux.  This offers you a couple of ways to update the firmware:

Use the rs-fw-update tool mentioned above.  Or:

Update the camera using a firmware update menu in the RealSense Viewer tool.  It can be found under the 'More' option at the top of the options side-panel.  You can choose a specific firmware to update to, or choose to update to a Recommended version and let it handle the update process for you.

Because the firmware driver is installed inside the camera instead of on a computer, the updated firmware will be carried to whatever device you then attach the camera to.

Hey @MartyG-RealSense,
I have been trying to connect to the Intel Realsense camera with the android device and getting UNKNOWN_ERROR at two different places based on setting the config parameter.
More details are as follows.
Firmware v: <IP_ADDRESS>
Model: D410
SDK version: 2.26.0
Android v: 9
Device: Pixel 2
Scenario 1
If I have set a config with StreamType DEPTH and COLOR at 640 X 480, I would be getting the exception while starting pipeline with that config.
Scenario 2
If I start the pipeline without the config then the exception would be thrown while waiting for the frames with timeoutMilliseconds of 1000 as @nafidoni had faced.
Can you please help me to identify the ideal resolution and StreamFormat to be setup for different StreamType as well.
Thank you in advance

@vvgokul55   At the end of May 2019, @matkatz  the Android wrapper developer tried the Android wrapper with a couple of Android 9 models including the Pixel 2, so it may not be your device and its Android version that is the source of the problem.
https://github.com/IntelRealSense/librealsense/issues/4091#issuecomment-497403457
@matkatz may be the best person to address this question, as the Android wrapper is one of his specialist areas.

@MartyG-RealSense With the help of following setup I am getting an output from the camera
Device: Moto G6
Android OS version: 8.0.0
Timeout for frames: from 1000 to 2000 in milliseconds.
StreamType: Depth
Framerate: 0, 15 or 30
Index: 0 or -1
I am getting frames from the camera.
However when I try to add or have only a stream type Color. I am getting UNKNOWN_ERROR while starting the pipeline with the config

@vvgokul55   Your mention of the frame timeout was useful.  It enabled me to find a previous case in late 2018 where the Android wrapper was reported to be displaying similar symptoms to the ones you mention - mostly fine with the depth stream but frequently timing out on the color stream.
https://github.com/IntelRealSense/librealsense/issues/2738
An Intel team member on this forum made the following suggestion on that discussion:
https://github.com/IntelRealSense/librealsense/issues/2738#issuecomment-440132617

@MartyG-RealSense, Can you please provide me a solution that can be done on the wrapper side as I am not familiar with handling the kernal layer of the android device

I do not have any hands-on experience with the Android wrapper, unfortunately.  I'll try pinging @ev-mp on the Intel team, as I believe that they have had dealings with Android development.

There was a bug in the Java example, please check PR #4673
@nafidoni, <IP_ADDRESS> FW is not supported by the Android wrapper, were you able to update? did it solve the problem?
@vvgokul55, please provide logcat.

Hey @matkatz,
attaching the log
Configuration
Platform: Android
Device: Moto G6 (8.0)
LibSense Sdk version: 2.26.0
Camera model: D415
Camera Firmware version: <IP_ADDRESS>
Streams:

Color (640 X 480), format: RGB8, framerate: 30, index: 0
Depth (640 X 480), format: Z16, framerate: 30, index: 0

Wait for frames: 2000 millisec
Android Log - Stream type Color not working.txt

Had also tested with device Samsung Galaxy Note 9(8.1.0) since it has got 3.1, Type-C 1.0 reversible connector unlike Moto G6. Also attaching the log from the device.
Android Log (Note 9) - Stream type Color.txt

The camera that you use is D410 which doesn't have a color sensor.
You can use the Infrared stream with Y8 or RGB8 (reconstructed RGB) formats, with the same resolution and FPS as the Depth stream.

Hallo @MartyG-RealSense ,
I was not able to update the micrologiciel version.

Micrologiciel is French for 'firmware', apparently.  :)
What device are you trying to do the firmware update on, please?   (PC with Windows or Linux, an Android device,, etc).

Sorry, I was trying to update the firmware of RealSense Model D435  Current firmware version: <IP_ADDRESS> to Minimal firmware version: <IP_ADDRESS>

If you have access to the RealSense Viewer software, you can update the firmware to a recommended version by going to the 'More' icon at the top of the options side-panel and selecting the 'Install Recommended Firmware' option.

Ok  Thanks. I am using Linux.
How can I have accesse to the realSense Viewer Software.

I am not a Linux user myself (I use Windows), but it looks as though when the Librealsense SDK is built in Linux, the binary versions of the examples and tools are placed in the folder /usr/local/bin

@nafidoni, Can you try RS Camera app, (https://play.google.com/store/apps/details?id=com.intel.realsense.camera&hl=en)
I believe it has got a feature that would update your firmware to the latest or so.

The camera that you use is D410 which doesn't have a color sensor.
You can use the Infrared stream with Y8 or RGB8 (reconstructed RGB) formats, with the same resolution and FPS as the Depth stream.

Thank you, @matkatz can you please suggest list of streams supported by D410 other than depth and infrared.

If you are able to run the tool rs-enumerate-devices then it can list the modes supported by the particular RealSense camera model currently plugged in.
https://github.com/IntelRealSense/librealsense/tree/master/tools/enumerate-devices

@nafidoni please see Installing the packages on Linux installation instructions
@vvgokul55 what @MartyG-RealSense said is a good option.
If you want to get the supported streams programmatically  you can check createProfilesMap
@MartyG-RealSense Thanks!

Thanks @matkatz & @MartyG-RealSense for the help.

@vvgokul55 Any other questions regarding this issue? Looking forward to your reply. Thanks!

@RealSenseCustomerSupport None from my end regarding this

@vvgokul55 Thanks for the feedback!
@nafidoni Any other questions regarding this issue? Looking forward to your reply. Thanks!


proxy: add test scenarios around request APIs to proxyunits.t

just the nitpick about error propagation, I think?

did you accidentally close this?

@dormando I was so dumb in git and accidentally deleted everything. Luckily the vscode recovered the files.

ah. git reflog fwiw. it's pretty hard to actually lose things in git.

Released in 1.6.20


【文章推荐】

https://www.cnblogs.com/whuanle/p/17837034.html

Sorry. it's not the taste of this weekly newsletter.


IPM update procedure is not described

I'm going to update from 0.7 to 0.9 and I don't see the update procedure described anywhere.
All I can find from the fine manual is:

Import it into IRIS and compile via any desired way

What happens if I do:
NAMESPACE>do $system.OBJ.Load("/<PATH>/zpm-0.9.1.xml","ck",.errorlog)

on top of 0.7.x installation?
This is not a show-stopper as my "update" is really a new install, but I don't see the update procedure defined anywhere.

Related question: is importing the same version of IPM idempotent? I.e. is it always safe to run
NAMESPACE>set status = $system.OBJ.Load("/<PATH>/zpm-0.9.1.xml","ck")
NAMESPACE>zpm "enable -map -globally"

any number of times.
I'm incorporating IPM installation into our tooling and I'd like to hide all these details from the users so they can always just type:
$ iris-tool install ipm

in operating system command line and get the right IPM version defined by our tooling without nasty side-effects.


add file poorle.txt

@ywnzzl Regrettably, this request has signs of fraud. I have to close it without merging.


fixed issue with slash system

Codecov Report
Base: 4.62% // Head: 4.62% // Decreases project coverage by -0.00% :warning:

Coverage data is based on head (ae6672f) compared to base (cc0aea3).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##             master     #35      +/-   ##
===========================================
- Coverage      4.62%   4.62%   -0.01%
  Complexity       39      39
===========================================
  Files           171     171
  Lines          3286    3290       +4
  Branches        371     374       +3
===========================================
  Hits            152     152
- Misses         3111    3115       +4
  Partials         23      23

Impacted Files
Coverage Δ

...io/github/ydwk/ydwk/impl/slash/SlashBuilderImpl.kt
0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


fix rbac issues with policy controller validation

➜  pgh k logs audit-policy-controller-759d4555b6-bzrlx
I0227 22:53:09.372095       1 main.go:49] setting up client for manager
I0227 22:53:09.372945       1 main.go:57] setting up manager
I0227 22:53:09.623352       1 main.go:64] Registering Components.
I0227 22:53:09.623388       1 main.go:67] setting up scheme
I0227 22:53:09.623575       1 main.go:74] Setting up controller
I0227 22:53:09.623600       1 auditpolicy_controller.go:180] adding audit policy controller to mgr
I0227 22:53:09.624070       1 main.go:80] setting up webhooks
I0227 22:53:09.625211       1 auditpolicy_controller.go:160] initialize audit policy controller
I0227 22:53:09.625244       1 main.go:94] Starting the Cmd.
In printMap for AuditPolicy:  0
Waiting for policies to be available for processing for Audit...
I0227 22:53:09.625433       1 auditpolicy_controller.go:280] In PeriodicallyExecGRCPolicies for AuditPolicy
In printMap for AuditPolicy:  2
Available policies in namespaces:
namespace = default; policy = example
namespace = ibm-common-services; policy = example
Violated count in namespace:  default 0
Violated service list:  []
Violated count in namespace:  ibm-common-services 0
Violated service list:  []
E0227 22:53:19.681742       1 event.go:203] Server rejected event '&v1.Event{TypeMeta:v1.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:v1.ObjectMeta{Name:"example.15f7643b3fbff1f0", GenerateName:"", Namespace:"ibm-common-services", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Initializers:(*v1.Initializers)(nil), Finalizers:[]string(nil), ClusterName:""}, InvolvedObject:v1.ObjectReference{Kind:"AuditPolicy", Namespace:"ibm-common-services", Name:"example", UID:"ae2ceb64-bdea-4691-ac69-0a041db12992", APIVersion:"audit.policies.ibm.com/v1alpha1", ResourceVersion:"4100061", FieldPath:""}, Reason:"policy: ibm-common-services/example", Message:"Compliant; [0 violations, services detected with audit disabled in namespace `default` ]; [0 violations, services detected with audit disabled in namespace `ibm-common-services` ]", Source:v1.EventSource{Component:"auditpolicy-controller", Host:""}, FirstTimestamp:v1.Time{Time:time.Time{wall:0xbf8e2ff7e87efbf0, ext:10323781480, loc:(*time.Location)(0x21170c0)}}, LastTimestamp:v1.Time{Time:time.Time{wall:0xbf8e2ff7e87efbf0, ext:10323781480, loc:(*time.Location)(0x21170c0)}}, Count:1, Type:"Normal", EventTime:v1.MicroTime{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, Series:(*v1.EventSeries)(nil), Action:"", Related:(*v1.ObjectReference)(nil), ReportingController:"", ReportingInstance:""}': 'events is forbidden: User "system:serviceaccount:ibm-common-services:audit-policy-controller-svcacct" cannot create resource "events" in API group "" in the namespace "ibm-common-services"' (will not retry!)

policy controller now has permissions for namespaces, pods, events, and configmaps
I0302 17:51:52.807488       1 main.go:49] setting up client for manager
I0302 17:51:52.808578       1 main.go:57] setting up manager
I0302 17:51:53.043008       1 main.go:64] Registering Components.
I0302 17:51:53.043049       1 main.go:67] setting up scheme
I0302 17:51:53.043388       1 main.go:74] Setting up controller
I0302 17:51:53.043430       1 auditpolicy_controller.go:180] adding audit policy controller to mgr
I0302 17:51:53.043970       1 main.go:80] setting up webhooks
I0302 17:51:53.045706       1 auditpolicy_controller.go:160] initialize audit policy controller
I0302 17:51:53.045742       1 main.go:94] Starting the Cmd.
In printMap for AuditPolicy:  0
Waiting for policies to be available for processing for Audit...
I0302 17:51:53.045914       1 auditpolicy_controller.go:280] In PeriodicallyExecGRCPolicies for AuditPolicy
In printMap for AuditPolicy:  2
Available policies in namespaces:
namespace = default; policy = example
namespace = ibm-common-services; policy = example
Violated count in namespace:  default 0
Violated service list:  []
Violated count in namespace:  ibm-common-services 2
Violated service list:  [auth-pdp auth-pap]
Non compliant, updating event to warning
In printMap for AuditPolicy:  2
Available policies in namespaces:
namespace = ibm-common-services; policy = example
namespace = default; policy = example
Violated count in namespace:  ibm-common-services 2
Violated service list:  [auth-pap auth-pdp]
Violated count in namespace:  default 0
Violated service list:  []
Non compliant, updating event to warning
In printMap for AuditPolicy:  2
Available policies in namespaces:
namespace = ibm-common-services; policy = example
namespace = default; policy = example
Violated count in namespace:  ibm-common-services 2
Violated service list:  [auth-pap auth-pdp]
Violated count in namespace:  default 0
Violated service list:  []
Non compliant, updating event to warning
In printMap for AuditPolicy:  2
Available policies in namespaces:
namespace = ibm-common-services; policy = example
namespace = default; policy = example
Violated count in namespace:  ibm-common-services 2
Violated service list:  [auth-pap auth-pdp]
Violated count in namespace:  default 0
Violated service list:  []
Non compliant, updating event to warning
In printMap for AuditPolicy:  2
Available policies in namespaces:
namespace = ibm-common-services; policy = example
namespace = default; policy = example
Violated count in namespace:  default 0
Violated service list:  []
Violated count in namespace:  ibm-common-services 2
Violated service list:  [auth-pap auth-pdp]
Non compliant, updating event to warning```

@hbradfield have you tested a policy with the enforce rule?

will test enforce after lunch!

In printMap for AuditPolicy:  0
Waiting for policies to be available for processing for Audit...
I0302 19:15:34.819074       1 auditpolicy_controller.go:280] In PeriodicallyExecGRCPolicies for AuditPolicy
In printMap for AuditPolicy:  2
Available policies in namespaces:
namespace = default; policy = example
namespace = ibm-common-services; policy = example
Violated count in namespace:  default 0
Violated service list:  []
Violated count in namespace:  ibm-common-services 2
Violated service list:  [auth-pap auth-pdp]
Updating configmap, setting to true auth-pap
Updating configmap, setting to true auth-pdp
Non compliant, updating event to warning
In printMap for AuditPolicy:  2
Available policies in namespaces:
namespace = default; policy = example
namespace = ibm-common-services; policy = example
Violated count in namespace:  default 0
Violated service list:  []
Violated count in namespace:  ibm-common-services 0
Violated service list:  []

/lgtm :)

/lgtm


e2e: add timeout for waiting resources to be ready

[x] Make sure you have followed Kube-OVN Code Style.

What type of this PR

CI/Tests

Which issue(s) this PR fixes:
Fixes #(issue-number)

The conflict need to be resolved


Build tag 'XYZ' was not added successfully

Using
Write-Host ##vso[build.addbuildtag]XYZ
from PowerShell within a build.
The tag is properly added to the build, but the error message

Build tag 'XYZ' was not added successfully

is dispalyed in logs and the build fails because of that.
The command is successful if build tag 'XYZ' does not exist for the team project.
The command is successful if build tag 'XYZ' exists for the team project.
The command fails if a build tag with different casing (e.g. 'Xyz', 'xyz', etc) exists for the team project.
In my case, the team project already has a build tag 'Xyz' (note the casing). When I try to tag a build with 'XYZ', the tag 'Xyz' is re-used and the error message is written.
I'm totally okay with reusing a tag with different casing, but the error message should not be displayed if the tag added uses different casing than existing.
Using TFS 2017 Update 2 on-prem. Agent version is 2.117.2.

please create an issue in the vsts-agent repo.  not a task issue


Filter by update conflicts in Entity table

See the story in the release criteria.

Things that Backend will need to do:

Return a __system/conflict property over OData.
Filter entities on that property.
Support $filter for CSV downloads. (#521)

looks good. it would be nice someday if when it's "1 of x" in the filter dropdown just show the selected option (truncated if too long).

The expected design for the conflict status filtering is this?

not the one from release criteria ( different text in the conflict status field + show columns filter)?

@dbemke, yes, that's currently expected. "Conflict status" will be shown below the filter, not within it. We also haven't added a column selection dropdown yet (and won't as part of this release).

Tested with success!


automatically display list of nearby location on componentDidMount

hi guys,
is there a way in the library to display immediately nearby  locations  when the component is mounted
thanks

@arnoldc This is not officially supported, but it can be done.
import Constants from "expo-constants";
import React, { useEffect, useRef } from "react";
import { Platform, StyleSheet, Text, View } from "react-native";
import { GooglePlacesAutocomplete } from "react-native-google-places-autocomplete";

const GOOGLE_PLACES_API_KEY = "";

export default function App() {
  const ref = useRef();
  useEffect(() => {
    ref.current.getCurrentLocation();
  }, []);
  return (
    <View style={styles.container}>
      <Text>{Platform.OS}</Text>
      <GooglePlacesAutocomplete
        ref={ref}
        placeholder="Search"
        onPress={(data, details = null) => {
          // 'details' is provided when fetchDetails = true
          console.log(data, details);
        }}
        query={{
          key: GOOGLE_PLACES_API_KEY,
          language: "en", // language of the results
        }}
        currentLocation={true}
        listViewDisplayed={true}
      />
    </View>
  );
}
const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: "center",
    paddingTop: Constants.statusBarHeight,
    backgroundColor: "#ecf0f1",
    padding: 8,
  },
});

@bell-steven ref.current.getCurrentLocation is not defined on useImperativeHandle and therefore no longer accessible this way as of 2.2
Is there another way?


Feature Request - User can unlock the account/reset their pwd if they forget to remember the current pwd

User can unlock the account/reset their pwd if they forget to remember the current pwd

Pls let us whether above feature can be implemented ?

I don't think reset password could be done, because there's no way to validate a user is really who claims to be.


ENYO-1138: Ensuring requestScrollIntoView's originator is showing before...

... triggering the scroll.
Enyo-DCO-1.1-Signed-off-by: Jeremy Thomas<EMAIL_ADDRESS>

It seems to me that developers could have a need to arbitrarily hide controls at any time - including after issuing a "requestScrollIntoView" event. Ensuring controls are showing before performing the scroll should eliminate these edge-cases.


Remove version: BBC.iPlayer version 2.13.7

installers return following HTTP status code: 404
Microsoft Reviewers: Open in CodeFlow

URL: https://static.files.bbci.co.uk/iplayer-pc-download-app/releases/win32-x64/BBCiPlayerDownloadsSetup-2.13.7.exe
Response Error: The remote server returned an error: (404) Not Found.
(Automated message - build 920)


New PR to test SignCLA at 2020-05-11 11:07:43.367341034 -0700 PDT m=+3.222969850

Body of PR

indiv-pass-fork-staging: test succeeded


Add ownerId validation for object metadata

JIRA Ticket: https://jira.lyrasis.org/browse/FCREPO-3683
What does this Pull Request do?
Adds validation for ownerId in the object metadata
What's new?

Checks the ownerId in the foxml against the value stored in fcr-container.nt for ocfl
Added additional Set to control metadata we want to check for
Move logic for resolving F6 property values to findOcflValue
Add checks for object metadata to ObjectValidationIT

How should this be tested?

Run the validator and check for existence of validation with the ownerId

Additional Notes:

I wanted to add some integration tests which handle errors in the object metadata, but haven't added any fixture data for those cases yet

This would be to test the behavior the resolvers have when metadata is missing from the files (like if the fcr-container.nt is missing the triple)

Interested parties
@dbernstein

@mikejritter : can you rebase on main?  Looks like there's a conflict. Thx.


Direct readthedocs links to "stable" instead of "latest"?

In #354, I believe @OriolAbril enabled both "latest" and "stable" versions of the readthedocs. At the moment, the default routes to the latest version, as in if you go to https://causalpy.readthedocs.io/ then you actually end up at https://causalpy.readthedocs.io/en/latest/.
Firstly, I'm assuming that "stable" corresponds to the latest GitHub release, not what is on main, and that "latest" corresponds to what is on main? Is that right?
I'm wondering if it makes sense to automatically route through to "stable" docs. That way, if we merge a PR that provides new documentation about a feature which is not fully available in the latest release, then people won't get confused.
Thoughts welcome. Would this just be a matter of changing a setting in readthedocs web ui?

Firstly, I'm assuming that "stable" corresponds to the latest GitHub release, not what is on main, and that "latest" corresponds to what is on main? Is that right?

That is right yes. They are both active by default in readthedocs (I am actually not sure if it is possible to turn either off) but as not all repos have releases the default is latest. Once a release is done (aka tags are present) then stable is also generated as the alias to the latest release and can be manually set as default.

Would this just be a matter of changing a setting in readthedocs web ui?

Yes, go to the admin page and there is a dropdown where you can choose the default version.


Problems with workflow cancel & command resolutions in same WFT

This PR fixes the specific case of https://github.com/temporalio/sdk-go/issues/503
But, it is fundamentally not a real fix for the following reasons:

Only works for timers, but this problem can theoretically happen to any command for which the SDK issues cancels when the workflow itself is cancelled. (As long as they also have their resolution event happening in the same WFT as the workflow cancel requested event).
Will break if there are also timers being cancelled by the WF cancellation that were not resolved in the workflow task.

Reason being that we have to remove the timer cancel command that is generated as a result of the workflow execution canceled event, once we realize the timer actually also fires in the same workflow task. This screws up all the command ID counting stuff.
Probably the best real way to fix this would be to buffer all cancel commands that would be issued as a result of workflow cancellation, and only actually add them if they aren't also resolved by the same workflow task. That's also probably a breaking change in terms of not being consistent with the way workers without that change would generate histories.
Even better would be to eliminate ID counting entirely.
I don't think we should merge this as is, but it's here for discussion.

Relates to https://github.com/temporalio/sdk-go/issues/503


Fix redeemers reindexing and ex units budget calculation (In Progress)

Context: https://github.com/Plutonomicon/cardano-transaction-lib/issues/463

I want to merge master in so we can run the new AlwaysSucceeds example, which requires a Spend redeemer

Although I suppose that you and @bladyjoker were able to run an example with multiple redeemers already

Although I suppose that you and @bladyjoker were able to run an example with multiple redeemers already

That's correct, we were able to successfully run a contract yesterday.


Assign errors to the registration id

I send notification to multiple users via the sendMulti()-function. Then I get the response and process through the results with the getResults()-method.
But if a registration id is no longer registered (error NotRegistered), how can I figure out which registration id is no longer registered?

Oh, the index of the $response->getResults() array corresponds to the index of the array with the keys :smile:


[api-spec] Entity inheritance

Currently the api-spec documentation only mentions inheritance at the collection level.
This is what it says:
Inheritance
Collections MAY support multiple resource types through simple inheritance:

The resourceType: SHOULD refer to the 'base' resource type.
Define additional sub-types that have all the same fields and filters as the base type, plus additional info.
Return a createTypes: map in the collection, with a mapping of type ids that can be created → the URL where they SHOULD be POSTed.

If the 'base' type can also be created, it SHOULD be present in the map.
The URL for each entry MAY be the same as the collection's self link, or it can be different to provide additional flexibility in the service.

  "createTypes": {
    "file":      "https://base/v1/files",
    "textFile":  "https://base/v1/files",
    "imageFile": "https://base/v1/files?image=1",
  },

There does not seem to be way to get this inheritance relation from the schema(s). Currently the inheritance could be discovered by iterating over all collections and checking their createTypes array. Theoretically different collections for the same entity could also create different inheritance relations.
Would it be a good idea to add something like a parentType field to the schema of each entity?

It seems that createTypes does not always identify all inheritance options (makes sense since not all of them need to be creatable).
For example endpoint: /genericobjects can (amongst others) return an object of type register in its collection.
Is there any way, other than checking if attributes of one entity are a subset of another entities' attributes, to determine a relation between 2 entities?

@SamMousa no, there is no way to explicitly check the inheritance relationship between two entities beyond what you've already described with createTypes.
Is there something specific you're attempting to accomplish? Might be able to help with or address some specific use case.

There is type vs baseType, i.e. container extends instance so they are type: container, baseType: instance.

@cjellick I'm just trying to replicate the entity hierarchy in another language (PHP) purely from information in the spec combined with information provided by the API.
It is more of an academic interest than a practical one: https://github.com/SAM-IT/php-rancher-client
Also I want to update certificates via the API, but that's rather simple and to do that I don't need to actually have an advanced client.

With the release of Rancher 2.0, development on v1.6 is only limited to critical bug fixes and security patches.


Bump version txt to 1.5.0

For contributor use:

[ ] Targeted PR against master branch
[ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work
[ ] Code follows the standards mentioned here
[ ] Updated relevant documentation
[ ] Re-reviewed Files changed in the Github PR explorer
[ ] Added appropriate labels

We're currently processing your upload.  This comment will be updated when the results are available.


Make Mapper trait object safe by adding Self: Sized bounds on generic functions

See #80 for more information
I'm not quite sure whether this is a breaking change, but I think it is.

There were no objections in the last months, so I think we can merge this.
bors r+

Seems like we have some problems with bors
bors r-


When using mySQL I get an error when players leave

What is your Quests version / build number (do not say "latest")?
Quests 4.0.0-rc.3-b168
Describe the problem and how to replicate it. Any console errors to post using Pastebin.com?
https://pastebin.com/FEME91dA
I get this error, when players leave the server.
I didnt change any quests, but I am using mysql for the plugin. It has access and created all tables in the db
If applicable, can you provide an example quest from quests.yml using Pastebin.com?

Fixed with build #173


Fabric should be marked as supported

Looks like Fabric is supported now:
https://pypi.org/project/Fabric/2.2.2/

Duplicate of https://github.com/chhantyal/py3readiness/issues/54, please see https://github.com/chhantyal/py3readiness/issues/54#issuecomment-408772303 and https://github.com/chhantyal/py3readiness/pull/51.

Sorry for duplicate. Closing issue in favour of #54.


updated file name versions.tf

Keeping file name consistent

This PR is included in version 1.0.0 :tada:


[Sidekiq] Display stringified version of globalid

Hey!
I'm not sure if that's the right place to ask, but it would be useful if the Sidekiq context:
https://github.com/getsentry/raven-ruby/blob/14fd97f84f218a8ff16024aadea3430eb1dd169f/lib/raven/integrations/sidekiq.rb#L24
would include the .to_s version of globalid when such key is present.
How it currently look:

That object reference isn't much help when debugging a problem. The original gid://elite/Contractor/1040 globalid string would be much more useful.
Would that make sense?

Yes, that makes sense. Not my top priority but would accept PR 👍


☕ Java version

Similar to Docker (🐳), etc.

can this be merged?

@ssijak nope. Work in progress. See #139.

Release #708


JavaObjectWrapper children classes constructor is stripped on IL2CPP

Since Java object constructor for JavaObjectWrapper children classes is called by reflection, it is stripped by IL2CPP linker, resulting in error like MissingMethodException: Constructor on type 'HuaweiMobileServices.IAP.IsEnvReadyResult' not found.

Hi @m0skit0.
When you say that Unity 2018 will not be patched, does that mean the SDK will not support Unity 2018 anymore?
Thanks!

Gorgeous @m0skit0! Managed to make a full test purchase flow with Unity 2019, IL2CPP and Unity IAP. I had to add another Preserve attribute to PurchaseIntentResult constructor. As I cannot do Pull Request, could you add it, please?
Here's the evidence I could complete a purchase test flow 👍

Keep the good work!

Awesome, glad to hear it is working. Why you say you can't create a PR?

@FunBinge We're looking for an alternative solution for 2018.

@manelizzard Fixed in commit d8905a73d735bb07e3bac2e71b2ba2d2295981a1

I've found a solution for 2018 but requires several changes to the source code, I'm working on it. Created a new issue to track it #50 .


fix: Fall back to BUILD_SOURCEBRANCHNAME when detecting azure repos s…

…ource branch
This is needed when running Infracost on default branches (as opposed to PRs)

@tim775 this is similar to https://github.com/infracost/infracost/pull/2765/files, running infracost breakdown+upload on the default branch in Azure DevOps for an Azure Repos git repo shows the following so I think this will fix it:
$ echo SYSTEM_PULLREQUEST_SOURCEBRANCH=$SYSTEM_PULLREQUEST_SOURCEBRANCH
SYSTEM_PULLREQUEST_SOURCEBRANCH=

$ echo BUILD_SOURCEBRANCHNAME=$BUILD_SOURCEBRANCHNAME
BUILD_SOURCEBRANCHNAME=master


chore(main): release 3.1.8

:robot: I have created a release beep boop
3.1.8 (2024-07-27)
Bug Fixes

not being able to open directories with enter (#272) (d70bb91)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v3.1.8
:sunflower:


Paginator limit control is missing form-label class

This is a (multiple allowed):

[x] bug

[ ] enhancement

[ ] feature-discussion (RFC)

BootstrapUI Version: 3.0.3

Bootstrap Framework Version: 4

Platform and Target: WAMP

What you did
Used PaginatorHelper to generate a limit control.
$this->Paginator->limitControl();

Expected Behavior
Expected a properly formatted limit control like this:

  Limit
  <select name="limit" class="form-control" onchange="this.form.submit()" id="limit">
    <option value="20" selected="selected">20</option>
    <option value="50">50</option>
    <option value="100">100</option>
  </select>

Actual Behavior
The helper did not add the 'form-label' class to the label.

  Limit
  <select name="limit" class="form-control" onchange="this.form.submit()" id="limit">
    <option value="20" selected="selected">20</option>
    <option value="50">50</option>
    <option value="100">100</option>
  </select>

I think this can be fixed by adding something like this to the PaginatorHelper class:
    public function limitControl(array $limits = [], ?int $default = null, array $options = []): string
    {
        // Inject form-label class into the label by default
        return parent::limitControl($limits, $default, $options += ['label' => ['class' => 'form-label']]);
    }

That is the expected behavior, there is no form-label class in Bootstrap 4.x, that's a new class that is going to be introduced with Bootstrap 5.x.

You're right. I was comparing it to the wrong example. Sorry about that!


linux-yocto: Update linux version to 5.10.114

Change-type: patch
Signed-off-by: Kyle Harding<EMAIL_ADDRESS>See: https://github.com/balena-os/balena-intel/issues/475
See: https://github.com/balena-os/balena-intel/issues/498

@floion @acostach The upstream honister recipe is also using a newer kernel version, is it better to bump our poky pinned commit or just override the kernel patch version like I've done here?

Currently building this repository would bring kernel version 5.14 for the Intel NUC and the Generic x86-64 Extended device types. So there would be no need for this pull request


Rename dimension name before ingestion

The dimensions of DimensionSpec can only configure name and type.
If I have a json with field named countryId, and wish to rename the data stored in druid as country_id, it can not be satisfied.
So, is it possible to support renaming the field before ingestion? thanks~

You can rename the field at query time, like this:
{
  "type" : "default",
  "dimension" : <dimension>,
  "outputName": <output_name>,
  "outputType": <"STRING"|"LONG"|"FLOAT">
}

That's right, however, in cross team project, users need to change the column name of Druid data, to provide the exact schema as needed. I guess it may be a general demand.

you are probably looking for http://druid.io/docs/latest/ingestion/transform-spec.html

@himanshug Thanks for your guide. I've tried this spec, and it does change the output name while ingestion.
In transformSpec, for digit column, I must specify an operator for it, like abs() or power(), how could I just keep the value of digit column and does not use any operator?

Writing the name of the column seems to fail for us, do you have a working example?  We tried passing a string literal and that works, so the spec is fine except it doesn't seem to work to rename as @meazza asked for here.

Writing the name of the column as an expression should definitely work, but watch out for potential need to escape special characters.  You might need to wrap the column name in double quotes.

hm, we do seem to have a problem here.  We tried "expression": "plainName", "expression": "\"nameInQuotes\"", and "expression": "'literal'".  The 'literal' works, but the other two fail and we can't find anything in the logs.  How should we look for logs for this?  The documentation is not very clear on where errors would show up.  I'd like to post an error message to clarify this problem.

Oh, I think this might be our issue, it's exactly what we're seeing: https://github.com/apache/incubator-druid/issues/7169

Ah, in that case, it should be fixed in 0.14.0 if you use a "parquet" parse spec.


Wildlife Encounter and Avoid Task does not provide correct spherical coordinates

It appears the spherical coordinates provided by the wildlife encounter and avoid task topic /vrx/wildlife/animals/poses do not correspond with the locations of the actual animals. After some investigation, it appears that the poses provided in the wildlife_task.world.xacro file seem correct. But when converted to spherical coordinates in the SphericalFromLocal function within the wildlife_scoring_plugin.cc, the poses no longer seem to correspond to that of the animals.
One way of showing this is by typing in the topic's latitude and longitude into this website: https://www.latlong.net/lat-long-utm.html. Moreover, when converting the provided latitude and longitude to a pose in reference to enu, I am provided with a pose that corresponds to that of the website above, not the actual animals.
Please let me know if I am missing something.

Closing this issue based on merge of https://github.com/osrf/vrx/pull/428.  The topic is now publishing the correct lat/ long.


Documentation needed !!

Hi!
I am a beginner in RSVP system and in Django.
I would just like to have an example of using your app.
apart from adding event_rsvp to INSTALLED_APPS I do not know where to start.
It would be nice to show an example of use of the app at least for the "profane".

@TobinFrost Sorry, this project isn't really maintained anymore and we don't have any resources to teach you Django/Python basics.


UX Upload documentation

The UI/UX could be better here, with where the input fields are.

@fliiiix Shouldn't this be closed already?


Follow official api schema

Summary of the Pull Request
This PR makes the Import-AzSentinelAlertRule cmdlet follow the official API schema for analytic rules were the GroupingConfiguration is nested within the IncidentConfiguration.
This PR also makes it possible to import a "raw" settings file without nesting the configuration within the modules root schema.
Both of these changes makes the module more usable as the configuration files don't need to be updated to cohere with the module.

References
Official API documentation: https://github.com/Azure/azure-rest-api-specs/blob/master/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/alertRules/CreateScheduledAlertRule.json

PR Checklist
By submitting this pull request, I confirm the following:
please fill any appropriate checkboxes, e.g: [X]

[ ] Closes #xxx
[X] Requires documentation to be updated
[ ] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx
[ ] I have made only one major change in my proposed changes.
[X] I have commented my proposed changes within the code.
[X] I have tested my proposed changes, and have included unit tests where possible.
[X] It is compatible with the MIT License
[ ] I have squashed any insignificant commits. (git rebase)

Detailed Description of the Pull Request / Additional comments
A detailed description, screenshots (if necessary), as well as links to any relevant issues

Validation Steps Performed

Created an analytic rule in yaml with the GroupingConfiguration nested within the IncidentConfiguration:

displayName: Conditional Access Policy Created
description: |
  Monitors the creation of conditional access policies. Adversaries may create conditional access policies to prevent legitimate users from accessing systems, or to bypass existing protection mechanisms.
severity: Medium
enabled: true
requiredDataConnectors:
  - connectorId: AzureActiveDirectory
    dataTypes:
      - AuditLogs
queryFrequency: 30M
queryPeriod: 30M
triggerOperator: GreaterThan
triggerThreshold: 0
tactics:
  - DefenseEvasion
  - CredentialAccess
relevantTechniques:
  - T1556
suppressionEnabled: false
suppressionDuration: PT1H
incidentConfiguration:
  createIncident: true
  groupingConfiguration:
    enabled: true
    reopenClosedIncident: false
    lookbackDuration: "PT8H"
    entitiesMatchingMethod: "Custom"
    groupByEntities:
      - Account
query: |
  AuditLogs
  | where OperationName =~ "Add policy"
  | where Result =~ "success"
  | where parse_json(tostring(TargetResources[0].modifiedProperties[1].newValue)) contains "ConditionalAccess"
  | extend
      userPrincipalName = tostring(InitiatedBy.user.userPrincipalName),
      ipAddress = tostring(InitiatedBy.user.ipAddress),
      policyName = parse_json(tostring(TargetResources[0].displayName))
  | project TimeGenerated, userPrincipalName, ipAddress, policyName, Result
  | extend AccountCustomEntity = userPrincipalName, IPCustomEntity = ipAddress

Imported it with the current version of AzSentinel and noticed that the specified Incident Configuration settings was not set accordingly.

Updated the Import-AzSentinelAlertRule cmdlet with the updates in this PR

Deployed the rule again and verified that it respected the incident configuration settings

How does this PR accomplish the above
The only real change that was needed was to add additional depth when specifying the GroupingConfiguration and the IncidentConfiguration, as below:

What documentation changes (if any) are needed to support this PR
The Schema needs to be updated accordingly:
Scheduled rule
{
    "displayName": "string",
    "description": "string",
    "AlertRuleTemplateName": "string",
    "severity": "High",
    "enabled": true,
    "query": "SecurityEvent | where EventID == \"4688\" | where CommandLine contains \"-noni -ep bypass $\"",
    "queryFrequency": "5H",
    "queryPeriod": "5H",
    "triggerOperator": "GreaterThan",
    "triggerThreshold": 5,
    "suppressionDuration": "6H",
    "suppressionEnabled": false,
    "tactics": [
        "Persistence",
        "LateralMovement",
        "Collection"
    ],
    "playbookName": "string",
    "aggregationKind": "string",
    **"incidentConfiguration": {
        "createIncident": true,
        "groupingConfiguration": {
            "enabled": true,
            "reopenClosedIncident": false,
            "lookbackDuration": "PT5H",
            "entitiesMatchingMethod": "Custom",
            "groupByEntities": [
                "Host",
                "Account",
                "Ip",
                "Url",
                "FileHash"
            ]
        }
    }**
}

You must follow the template instructions. Failure to do so will result in your pull request being closed.

hi @wadstromtech thanks for your contribution! Good idea to update this to the correct schema, I think you need to add an extra if statement when initiating the Class to make it backwards compatible. Otherwise it will fail on the current templates.


Add this to awesome-python-typing

https://github.com/typeddjango/awesome-python-typing

So it went @sobolevn  :)


Method for only disabling the click listener's preventDefault()

Thank you for #123.
But having the new option affect all events goes a little far for my use case. Now if I set preventMouseEventsDefault: false, I scroll the screen when trying to pan via touch or zoom with the mousewheel.
Is there a way to prevent this?

Can you please post online an example with your setup, describe how it works now and how you want it to work? It will make solving this issue much faster. Thanks.

Here you go.
I've set preventMouseEventsDefault: false for my click listener to work.
Now if you try to zoom using the mousewheel, the page obviously scrolls up and down since we don't cancel that event anymore. The same problem occurs when trying to pan the SVG using touch; enable touch emulation in Chrome and try to pan the SVG. The SVG's viewport jumps around and I scroll the page.

Do you need any more information on that?

I fixed the problem myself and I just reference my own fix for now. I don't think this will work for you since the name of the option doesn't really fit anymore. But anyway, that's the solution I wanted.

Hey, sorry for such delayed reply. But it's great to see that you solved your problem.
So you wanted to prevent all events except mouse clicks?

Basically, yes. If you prevent everything, panning on mobile and zooming with the mousewheel don't work anymore.


✨ Brush cursor is too small to notice when zoomed out

Overview of design need

Is there an existing GitHub issue this design work pertains to?
Cursor should be a crosshairs cursor for points 'add' mode #2142

Also link to any specific comments or threads where the problem to be solved by design is mentioned
Comment explaining the current issue with brush cursor

In a sentence or two, describe the problem to be solved for users
The brush size can be selected to be very small, and when an image is zoomed out this makes it very easy to lose track of. There may be different ways to solve for this: can we indicate that the brush size is small, but still make (surrounding design elements of the) cursor larger or stand out better? Or what about the "loupe" concept suggested by emilmelnikov? We should investigate how other tools handle this and also consider other possible ideas.

What level of design is needed? (Choose all that apply)

[X] User experience research:  high-level recommendation/exploration of user needs, design heuristics, and / or best practices to inform a design experience
(Use this option when you feel there’s a challenge to be solved, but you’re curious about what the experience should be — may involve research studies to understand challenges/opportunities for design)
[ ] Information flow / conceptual: organizing and structuring of information flow and content, including layout on screen or across multiple steps
[X] Visual: creating mockups, icons, etc
(If choosing this level alone, it means that the content to be mocked up and its organization is already known and specified)

Is design a blocker?

[ ] Yes: engineering cannot proceed without a design first
[X] No: engineering can create a first version, and design can come in later to iterate and refine

If selecting Yes, how much design input is needed to unblock engineering? For example, is a full, final visual design needed, or just a recommendation of which conceptual direction to go?
T-shirt size

[ ] ●○○○○ XS: able to be done in a typical workday or two
[X] ●●○○○ S: able to do within one sprint, if also working on other things in the sprint
[ ] ●●●○○ M: able to do within one sprint, if it is the sole focus
[ ] ●●●●○ L: will likely take more than one sprint to complete, but less than two
[ ] ●●●●● XL: a very large experience to be determined or overhauled, will need to be broken down further

Is this solved by #5141?

I think so. The color picker also uses a crosshair now—loupe mode would be cool, but not sure it's really needed?— nd sm. brush is crosshair.

I agree this has been solved in one of the listed options, so I think it can be closed. If we find the core problem of a small or imprecise cursor persists, we can always reopen this issue.


Patch 1

didn't work OOB with my python on my ubuntu:latest docker (18.04 lts) with packages:
apt-get install -y python3 python3-setuptools python3-crypto python3-cryptography

Hi @tknaller. There is already a PR for this. I can help you review and approve this patch later. But I cannot attach it to my PR because it deals with another matter.

ah awesome thanks!


onclick event, drag etc not working

I was trying to close pop-up or drag "show goal" pop-up but doesn't work.

Can you clarify? Or attach screenshots?
On Tue, Sep 12, 2017 at 2:40 AM HanxEvo<EMAIL_ADDRESS>wrote:

I was trying to close pop-up or drag "show goal" pop-up but doesn't work.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/pcottle/learnGitBranching/issues/439, or mute the
thread
https://github.com/notifications/unsubscribe-auth/ABFRn0_YcqZ50WUdPhsbqNbmZmYFCguJks5shlF2gaJpZM4PUX73
.

--
-Sent from Gmail Mobile

When I click on close button of main modal or when I try to move the show goal modal don't happen anything.
Inviato da iPhone

Il giorno 12 set 2017, alle ore 21:57, Peter Cottle<EMAIL_ADDRESS>ha scritto:
Can you clarify? Or attach screenshots?
On Tue, Sep 12, 2017 at 2:40 AM HanxEvo<EMAIL_ADDRESS>wrote:

I was trying to close pop-up or drag "show goal" pop-up but doesn't work.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/pcottle/learnGitBranching/issues/439, or mute the
thread
https://github.com/notifications/unsubscribe-auth/ABFRn0_YcqZ50WUdPhsbqNbmZmYFCguJks5shlF2gaJpZM4PUX73
.

--
-Sent from Gmail Mobile
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

(closing out old issues)

(closing out old issues)


Move export csv to grants next

Ticket #1829
Description
Migrating export To CSV to the new grants endpoint. Also ensures we are able to export the first 300 rows of any search criteria
Screenshots / Demo Video

Testing
Automated and Unit Tests

[x] Added Unit tests

Manual tests for Reviewer

[ ] Added steps to test feature/functionality manually

Checklist

[x] Provided ticket and description
[x] Provided screenshots/demo
[ ] Provided testing information
[ ] Provided adequate test coverage for all new code
[x] Added PR reviewers

Thank you @replicantSocks! Looks good


chore(deps): upgrade dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-main" workflow

Codecov Report

Merging #759 (29f6174) into main (63499ae) will not change coverage.
The diff coverage is n/a.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
@@           Coverage Diff           @@
##             main     #759   +/-   ##
=======================================
  Coverage   95.69%   95.69%
=======================================
  Files           1        1
  Lines         395      395
  Branches       53       53
=======================================
  Hits          378      378
  Misses         17       17


Handle dtypes for all-null columns in parquet write

Maybe the filtering will make this moot - but in some cases at least "structure" column can be all NULL (None) in the output and then this is by default interpreted as int in writing out to parquet. Pandas can read this back OK due to it's own schema hints, but general parquet tools may fail on combining schema of multiple files in such a case (duckdb for instance, which can be "fixed" with union_by_name option).
We may want to do something about this, such that the written-out schema is consistent

We can explicitly set the column type with 'as type('str') to resolve it


support Block-NeRF

https://waymo.com/research/block-nerf/

Thank you for your suggestions. We will consider supporting Block-NeRF later.


Add option to skip rotate keypair

Add option to skip rotate keypair, more on https://github.com/jenkinsci/oidc-provider-plugin/issues/31

Testing done

### Submitter checklist
- [x] Make sure you are opening from a **topic/feature/bugfix branch** (right side) and not your main branch!
- [x] Ensure that the pull request title represents the desired changelog entry
- [x] Please describe what you did
- [x] Link to relevant issues in GitHub or Jira
- [ ] Link to relevant pull requests, esp. upstream and downstream changes
- [x] Ensure you have provided tests - that demonstrates feature works or fixes the issue

Not sure I follow what this is doing, but it seems to be allowing a private key to be specified in CasC, which is not secure.
The requirement as I understand it is not to provide an option per se; it is to avoid rotating the keypair (IdTokenCredentials.privateKey) if you happen to recreate an identical list of credentials via configuration-as-code during startup rather than simply restarting the controller and loading credentials.xml. There are probably various approaches to making that work, but it should be transparent, and certainly not involve keeping keys in CasC. (If you actually delete $JENKINS_HOME and recreate the controller from scratch using CasC, then all your keypairs are going to be rotated, but I suppose that scenario is relatively infrequent and it is tolerable to expect clients to retrieve the keypairs anew.)

Sorry if there PR title is misleading as i've restructure my thoughts later. What is this PR is doing is to provide a check box in credential update to let user explicitly choose if they want to generate a new private key. It is the case as you've mentioned above: avoid rotating the keypair (IdTokenCredentials.privateKey) if you happen to recreate an identical list of credentials via configuration-as-code during startup rather than simply restarting the controller and loading credentials.xml

I am sorry, but it is unclear here what the intended interaction with CasC would be, and there is no end-to-end test of a CasC-based scenario that would prove that the approach works. There are a number of technical problems with this PR (I would likely just rewrite it if I had any time to maintain this plugin—currently not really), but it does not make sense to go into these details if I do not even know what your intended design looks like.
I think what you are attempting to do is look up an existing credentials item with the same id and then copy its keypair, but as written this is not going to work. First of all, the context could be folder-scoped. Second, the id will be randomly generated unless you happen to define one explicitly in CasC YAML, which would not be apparent to users (and there is no check to prevent you from uselessly declining key rotation while using a random id). Even if this worked, I doubt the UX is ideal—we would probably prefer to always keep keypairs during reconfiguration, but offer an explicit button to rotate (ideally moving towards #3).


[Question] Cannot update old snapshots? There is an expiry date?

I remember being able to specify a snapshot # and being able to modify that snapshot itself.. however, when I try this now, one of two things occur:

A new snapshot # is created (auto-incremented) and the original snapshot remain unchanged.
The bin is cloned with a new URL id, starting at snapshot 1. The original URL id appears 'lost'. I believe this happened only on bins that lack a revision 1 (it being deleted).

I cannot reproduce this when creating a new bin, as modifying it and refreshing all results in the same snapshot being modified. I can only force a new snapshot in the file menu. But for old bins I have no choice but to have a new snapshot created (or otherwise a bin being cloned).
I don't see any related info on the FAQ that explains this - any links or explanation on this behaviour?

This was never a feature. A snapshot is locked for all time. The reason you
can edit the current URL even after a refresh is that you're editing the
live URL, not a snapshot.
So if you try to edit a snapshot URL it'll either create a new
milestone/snapshot or if it can't assertain if you were the original owner,
it'll clone (as you're seeing).
On Mon, 9 Jan 2017, 11:59 bryc<EMAIL_ADDRESS>wrote:

I remember being able to specify a snapshot # and being able to modify
that snapshot itself.. however, when I try this now, one of two things
occur:

A new snapshot # is created (auto-incremented) and the original
snapshot remain unchanged.
The bin is cloned with a new URL id, starting at snapshot 1. The
original URL id appears 'lost'. I believe this happened only on bins that
lack a revision 1 (it being deleted).

I cannot reproduce this when creating a new bin, as modifying it and
refreshing all results in the same snapshot being modified. I can only
force a new snapshot in the file menu. But for old bins I have no choice
but to have a new snapshot created (or otherwise a bin being cloned).
I don't see any related info on the FAQ that explains this - any links or
explanation on this behaviour?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/jsbin/jsbin/issues/2968, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAA1hHt1ZP16QtRBhl7bd060GPsAo3UUks5rQiE9gaJpZM4LeL8s
.


Undefined is not an object (evaluating 'wrapperLayout.pageY'))

I'm getting this error in IOS, does anyone know what it can be? No Android is working properly.
Edit:
My workaround is edit the node_modules/react-native-sortable-listview/index.js and add the (wrapperLaoyout==null?0:wrapperLaoyout.pageY) in 3 pointis of my code

I have the save prolem , how to  solve this prolem ？

Anyone successfully fix this?  Facing this same issue

I will check if I can fix that this week

Commenting out the InteractionManager here (https://github.com/deanmcpherson/react-native-sortable-listview/blob/master/index.js#L458-L460) fix it for me.  Not sure if it's something that I'm doing in my application but InteractionManager.runAfterInteractions was never triggering so the layout was never getting measured.

@adamjacob You mean
componentDidMount() {
    // InteractionManager.runAfterInteractions(() => {
      this.timer = setTimeout(() => this && this.measureWrapper(), 0)
    // })
  }

Right? For me, it also work. Thank you.

I have this issue only on android
this.refs.wrapper.measure

Always return undefined...


Trying to get product metafields give 404

I am trying to use the /catalog/products/{product_id}/metafields endpoint to fetch metafields for the product. This product whose id I used exists, it has a metafields and the store api credentials are valid. But I keep getting this response.

Why is this so and how to get around this problem?
I have also tried /products/{product_id}/metafields as the get request endpoint.
The code I am trying.
const bigCommerce = new BigCommerce({
  storeHash: 'xxxxxxxx',
  clientId: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  accessToken: 'xxxxxxxxxxxxxxxxxxxxxxxxxxx',
  responseType: 'json',
});

module.exports = {
  fetchProductMetafields: productId => {

    return bigCommerce.get(`/catalog/products/${productId}/metafields`)
    .then(metafields => {
      return metafields;
    });
  }
}

Am I doing something wrong?

I think you should add the apiVersion attribute when you create the bigCommerce.
like this
const bigCommerce = new BigCommerce({
  storeHash: 'xxxxxxxx',
  clientId: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  accessToken: 'xxxxxxxxxxxxxxxxxxxxxxxxxxx',
  responseType: 'json',
  apiVersion: "v3", // default is v2. but v2 doesn't support /catalog
});


Error calling RCTEventEmitter.receiveTouches

error calling RCTEventEmitter.receiveTouches
// index.android.js
Sentry.config('****').install()

//in some onPress function
throw new Error('Sentry: Test throw error')

same when throw error in render, but with Error calling JSTimersExcution.callTimers
versions:
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>android: 5.1.1

I am getting this same problem while trying to log message

@Biplab2014 This should be fixed with the latest release, please upgrade to v0.12.11


Add BOOST_SCOPE_DETAIL_DOC_HIDDEN to unique_resource::reset

Taking a look at the documentation as well as the source code of unique_resource::reset, I recognized that the macro BOOST_SCOPE_DETAIL_DOC_HIDDEN is probably missing around the noexcept operator. Looking at the source code, the same might be true for the destructor of unique_resource, but this at least does not seem to have impact on the documentation. In the documentation, the destructor of unique_resource doesn't have any noexcept specifier at all.

The reason why I used BOOST_SCOPE_DETAIL_DOC_HIDDEN to hide some noexcept arguments is that those arguments are involving non-public symbols (e.g. private types and types from detail namespace) and therefore should not be exposed in the documentation. This is not the case for unique_resource::reset() and the destructor.
I suppose, I could hide those noexcept arguments too, if that makes the docs more readable.
Regarding the missing noexcept on the destructor, that's just how Doxygen works, I can't do anything about it, unfortunately.

Ah, I didn't know that it was intentional. As user I just see that most functions are noexcept(...) except reset, which is noexcept(noexcept(std::declval< deleter_type & >()(std::declval< resource_type & >()))) so I thought it got forgotten there. I understand your reasoning. But yes, my personal preference would be to hide those, too.
Thanks for your quick response and your explanations.


Move to langchain

Migrates to langchain, using langchains methods, structures etc.
I can also do a version with just the basic abstractions that they provide. That should allow a lot of the magic to be removed.
Also no tests for now - I'll add them once it's decided whether this is worth the bother

Migrates to langchain, using langchains methods, structures etc.  I can also do a version with just the basic abstractions that they provide. That should allow a lot of the magic to be removed. Also no tests for now - I'll add them once it's decided whether this is worth the bother

This is a huge PR. Is most of this refactoring necessary to move to langchain? It seems like you were refactoring a little to clean things up a little too. If we decide not to go with langchain can we keep some of this work? Also, any advice for testing this locally?

Amazing work! I'm going to pull down and play with the code later today. Exciting stuff :)

Most of the changes were needed to get langchain to work. The refactor of main.py is sort of needed, but could have been left the same. But this pretty much totally replaces the previous code

A version which doesn't use so much of the langchain magic is here: https://github.com/StampyAI/stampy-chat/pull/116

Added tests - might as well do langchain properly. It's relatively easy to revert


multipart / form fields ignoring numeric data

as reported here: https://stackoverflow.com/q/77309864/143475
simple way to replicate:
* url "https://httpbin.org/post"
* def data = { foo: 'a', bar: 1 }
* multipart fields data
* method post

server response shows that bar was not sent:
  "form": {
    "foo": "a"
  }

Hello @ptrthomas, I would like to work on this issue, if it hasn't been assigned to anyone yet.

Hey @ptrthomas can u pls assign me this

@san70sh can work on this as he asked first. please refer to our hacktoberfest instructions: https://github.com/karatelabs/karate/wiki/Hacktoberfest

Thank you @ptrthomas

@ptrthomas should the expected response be { data: { foo: 'a', bar: 1 } } or just { foo: 'a', bar: 1 }

I have completed my changes. I converted any numeric value (Integer/Double/Float) to a string, and tested the function with different number types. To clarify, should I match the response to "{  foo: ['a'], bar: ['1'] } }" while testing the above example?

@san70sh yes go ahead and submit a PR, and yes, internally fields are converted to arrays, so your response looks okay

1.5.0 released


package: chkrootkit

Describe the bug
some linux commands are found INFECTED,
/usr/lib and /sbin are not available in nixos
Steps To Reproduce
Steps to reproduce the behavior:
on nixos:

nix-shell -p chkrootkit
sudo chkrootkit -q

Expected behavior

not sure why i get INFECTED
no /usr/lib or /sbin in nixOS

Screenshots

Notify maintainers

Metadata
sudo chkrootkit -q -n
Checking `basename'... INFECTED
/bin/sh
Checking `date'... INFECTED
Checking `dirname'... INFECTED
Checking `echo'... INFECTED
Checking `env'... INFECTED
/nix/store/01znf87kiw5xx1dj0f7djrnrbg84ij28-findutils-4.9.0/bin/find: ‘/usr/lib’: No such file or directory
/nix/store/01znf87kiw5xx1dj0f7djrnrbg84ij28-findutils-4.9.0/bin/find: ‘/usr/lib’: No such file or directory
/nix/store/01znf87kiw5xx1dj0f7djrnrbg84ij28-findutils-4.9.0/bin/find: ‘/sbin’: No such file or directory

Add a :+1: reaction to issues you find important.

As was explained in the issue you linked:

This is a false-positive

Chkrootkit is designed to work on a normal Linux system, which NixOS is not. Thus, it interprets normal behavior (like the lack of /usr/lib and /sbin) to be a virus.

Thanks, I'll follow up with chkrootkit

The chkrootkit source is not hosted on https://github.com/Magentron/chkrootkit, see:
Contacting the Authors: Please send comments, new rootkits, questions and bug reports to [Nelson Murilo <nmuriloat.gmail.com>](mailto:nelsonat.pangeia.com.br) (main author) and [Klaus Steding-Jessen <jessen@cert.br>](mailto:jessenat.cert.br) (co-author).


NLog Source/Log mapping

Hello,
My current configuration is as below,
NLog  : 4.7.12
VS 2019 : .net 4.8
In the web.config, the NLog configuration is as below,
<targets>
<target xsi:type="EventLog"
          name="Log1"
          source="SRC"
          eventId="${event-properties:EventId:whenEmpty=0}"
          layout="${message}${newline}${exception:format=ToString}" Log="Test1" machinename="."/>
 <target xsi:type="EventLog"
          name="Log2"
          source="SRC"
          layout="${message}${newline}${exception:format=ToString}" Log="Test2" machinename="."/>
</targets>
<rules>
		<logger name="*" maxlevel="Info" writeTo="Log1"/>
		<logger name="*" maxlevel="Warn" writeTo="Log2"/>
</rules>

From the web page,
NLog.LogManager.GetLogger("Log1").WithProperty("EventId", 10).Info("Test event for Log1");
NLog.LogManager.GetLogger("Log2").WithProperty("EventId", 20).Warn("Test event for Log2");

SRC is the application name I intend to log and will be same for both logs.
I was expecting the event to be written to Test1 and Test2 but the event is only in Test1 log
In the registry, the SRC is created only below Test1 and not Test2.
How do I create SRC below both logs? How can I see SRC below both logs in registry?
Thanks

Any reason why you are using maxLevel instead of minLevel ?
		<logger name="*" maxlevel="Info" writeTo="Log1"/>
		<logger name="*" maxlevel="Warn" writeTo="Log2"/>

For security reasons, do not want log the Fatal and Error messages. Hence the levels set to maxlevel.

Ah it is a restriction in Windows. Single EventLog-SourceName can only write to a single Log.
You need to use a unique name for each EventLog. Ex. you could add a suffix to the name.
Sent from my Galaxy
-------- Original message --------
From: Nijaguna @.>
Date: 11/11/2021 08:00 (GMT+01:00)
To: NLog/NLog @.>
Cc: Rolf Kristensen @.>, Comment @.>
Subject: Re: [NLog/NLog] NLog Source/Log mapping (Issue #4660)
For security reasons, do not want log the Fatal and Error messages. Hence the levels set to maxlevel.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/NLog/NLog/issues/4660#issuecomment-966040577, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACXZ7HFURCMUEFZAMDGYI43ULNSXXANCNFSM5HZSYVPQ.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Thanks. I changed the source names adding a suffix and is working fine. So a source name cannot be associated with different logs. I did this programatically now.


DampedEngineMount - implementation

New basic element is to implement is module 'elements.py'. It should be inherited from similar class being implemented within scope of the module if possible.

@bogumilchilinski
DampedEngineMount
https://cocalc.com/projects/cdcf3856-3e8b-4d1c-bcb2-5c42ba749d83/files/Marek Skwarka/Shared files/modules/dynpy/models/elements.py#line=494

Check the implementation

DONE


FulfillmentInbound BUG

When I was trying to download shipment information using the method below, I found that most endpoints of FulfillmentInbound do not recognize parameters other than MarketplaceId, QueryType, and ShipmentStatusList.
For example, parameters like LastUpdatedAfter, LastUpdatedBefore, and NextToken are ignored.
So, even when I correctly passed the next_token_param while using the load_all_pages decorator, I couldn't paginate using the token. It would always return data from the first page and enter an infinite loop.
I'm not sure if it's a bug in my code or an issue with this specific Amazon endpoint because my code works correctly with data from other endpoints.
def download_fba():
server = FulfillmentInbound(credentials=credentials, marketplace=marketplace)
@throttle_retry()
@load_all_pages(next_token_param='nextToken')
def fba(**kwargs):
    return server.get_shipments(**kwargs)

for page in fba(MarketplaceId='A1VC38T7YXB528', QueryType='SHIPMENT', ShipmentStatusList='CLOSED'):
    print(page)

@TSLdob Is this issue resolved? Would you mind sharing how you resolved it? I am facing the same issue with not just FulfillmentInbound, but also Finances.list_financial_events, CatalogItems.search_catalog_items and Reports.get_reports, whenever I decorate the method with load_all_pages, the query to retrieve following result pages using next_token_param seems to be ignored, and I keep getting the first result page repeatedly, essentially an infinite loop.
Thanks

@threemonks When requesting the next page of data, do not pass in the shipment_id but directly use NextToken

@threemonks When requesting the next page of data, do not pass in the shipment_id but directly use NextToken

Thanks for sharing the solution.

@threemonks When requesting the next page of data, do not pass in the shipment_id but directly use NextToken

Thanks for sharing the solution.
I tried to do that, but the API function call FulfillmentInbound().shipment_items_by_shipment requires a positional parameter shipment_id, right? How do you omit that? Passing None? Or you are calling the other API function FulfillmentInbound().shipment_items instead? I noticed these two API calls have different end point, "/fba/inbound/v0/shipments/{}/items" for shipment_items_by_shipment() and "/fba/inbound/v0/shipmentItems" for shipment_items. If I call shipment_items with query parameter NextToken only, it seems to always give this error: "Either the ShipmentId or a pair of LastUpdatedAfter and LastUpdatedBefore must be passed in input", I also even tried to provide ShipmentId to API function call shipment_items, but still get the same error.

Send the shipment_id during the first request, obtain the token, and then use the token directly
Here is the sample code

        res = xxx.shipment_items_by_shipment(shipment_id=shipment_id,
                                                MarketplaceId=MarketplaceIdXXX
        next_token = res.payload.get('NextToken', None)

        if next_token:
            @throttle_retry()
            @load_all_pages()
            def _fba_shipments_item(**_kwargs):
                return xxx.shipment_items(**_kwargs)

            for page in _fba_shipments_item(QueryType='NEXT_TOKEN',
                                            MarketplaceId=MarketplaceIdXXX,
                                            NextToken=next_token):


Very slowly response while using on USB stick

Upgrading, saving, and other  appeal to usb file system take very long time  - so make using impossible. Kingston Datatraveler USB 3.1

please provide the vendor and device ID
It was

Card-2: Intel Dual Band Wireless-AC 3168NGW [Stone Peak] driver: iwlwifi
  v: kernel bus ID: 02:00.0 chip ID: 8086:24fb
  IF: wlp2s0 state: up mac: 10:f0:05:bb:6b:e7

please provide the vendor and device ID
It was

Card-2: Intel Dual Band Wireless-AC 3168NGW [Stone Peak] driver: iwlwifi
  v: kernel bus ID: 02:00.0 chip ID: 8086:24fb
  IF: wlp2s0 state: up mac: 10:f0:05:bb:xx:xx

As I understand it in a recent NomadBSD release, the support of this equipment already exists, to some extent. But cannot connect via GUI tool - wifimgr

Wifimgr requires a configured wlan device to work with. Because of missing entries in dsbdriverd's driver database, your device wasn't detected, and hence couldn't be setup automatically. The database has been updated. The next RC should be able to auto-detect and configure your wifi.

Why does not load the system into memory? as, time ago, it did http://frenzy.org.ua/eng/ (dead now), now with the possibility of remount root it should be easier

@ygarr
"Then
to /etc/rc.conf add:
kld_list=" iwm3168fw"
wlans_iwm0="wlan0"'
ifconfig_wlan0="WPA DHCP"
P.S change iwm... to YOUR card"
(sorry, couldn't format properly)
This in my config broke my NomadBSD - Couldn't boot because of that "Unterminated quoted string"!
´# mount -uo rw /
Made the filesystem writable in single user mode so I could fix the typo.

Best is you use "sysrc" to edit /etc/rc.conf:
sysrc kld_list+=iwm3168fw
sysrc wlans_iwm0=wlan0
sysrc ifconfig_wlan0="WPA DHCP"

Is this still as much of an issue as it was in January 2019?
I have NomadBSD 1.3.2 with FreeBSD 12.1-RELEASE-p11 on a 64 GB Kingston Digital DataTraveler SE9, experimenting with a circa 2008 Ergo Vista 631 notebook. It's somewhat slow (given the constraints of the hardware) but not unacceptably so.


ModbusTCP without ServerID

Discussed in https://github.com/eModbus/eModbus/discussions/303

Originally posted by Typhoor June 13, 2023
I have an application with a ModbusServerTCPAsync where the querying system will use different UnitIDs depending on the situation.
The "Modbus Standard" does not enforce a ServerID for ModbusTCP, but rather speaks about a UnitID which should be just returned or used for routing (like in bridge situations).

Registering Worker on ModbusServerTCPAsync always asks for a ServerID ?!?
Shouldn't it be possible use use ServerID=0 as BroadcastID to answer all UnitIDs.
So how shall I handle this, other then registering 1...247 Worker or change the libraries source code ?
Any ideas ? Hidden possibilities?

Took a while, but I added the needed functionality a minute ago to the master branch:
registerWorker() now will accept ANY_SERVER as a server ID.
This is potentially dangerous, as it will catch all requests to server IDs that are not covered by explicitly defined workers!
Explicitly registered workers for combinations of a distinct server ID and a function code (also ANY_FUNCTION_CODE) will have preference to the generic worker at all times.
It may be needed for some devices in the wild, though, that are (mis)using the server ID for functional purposes.
Be warned again: using ANY_SERVER may break your server's function!
ANY_SERVER still is invalid for issueing requests or attaching server IDs to a bridge.


Fix wordPuzzle input on cube

Input response for wordPuzzle not working on the cube, works on test file.
done:
when wordPuzzle responds properly to input on the cube

tested


fix: tslint and typescript should not be dependencies

@mgechev They have already been declared as peerDependencies.
Listing them as dependencies resolve a lot of issues like following when upgrading deps:
error An unexpected error occurred: "could not find a copy of typescript to link in ...\\node_modules\\rxjs-tslint\\node_modules".

@mgechev Please, help to review...

So disappointed about this.
I'll publish my own fork then.

Why is this fix not merged? We are having the exact same problems. Please merge


amplify pull deletes hooks folder locally

Before opening, please confirm:

[X] I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
[X] I have searched for duplicate or closed issues.
[X] I have read the guide for submitting bug reports.
[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
[X] I have removed any sensitive information from my code snippets and submission.

How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
14
Amplify CLI Version
10.0.0
What operating system are you using?
Windows
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
created backend on console
Amplify Categories
Not applicable
Amplify Commands
pull
Describe the bug
amplify hooks folder gets deleted when running a headless amplify pull. With amplify CLI v10.0.0 the hooks will not be maintained by amplify CLI and needs to be maintained on the version control system such as git.
The situation occurs when we create a application locally then push to the cloud backend. Then allow create a new hosting branch that creates a new backend. performing a pull on the new backend will remove the existing hooks folder locally.
possible cause amplify-backup folder being created on a pull
Expected behavior
Expected to not delete exisiting hooks folder
Reproduction steps

amplify init
amplify push
git commit and push
connect git repository to hosting (instead of attaching to existing backend, allow hosting to create a new backend env)
when backend build run, copy the pull command and run it in your present amplify application.
observe the existing hooks folder disappears/ gets deleted

GraphQL schema(s)

# Put schemas below this line

Project Identifier
No response
Log output

# Put your logs below this line

Additional information
No response

Closing this issue as the last PR fixes this bug


theme.customFonts doesn't seem to work

First of all, I am in love with this project! :)
I am trying to use custom fonts, and it seems, by defining font in the theme.customFonts, and then referencing it in the fonts doesn't seem to do its job.
So let's consider the following:
customFonts: {
    inter: {
      bold: "Inter-Bold",
      default: "Inter-Regular",
      normal: "Inter-Regaulr",
      "400": "Inter-Regular",
      "300": "Inter-Thin",
      "500": "Inter-Medium",
      "600": "Inter-Medium",
      "700": "Inter-SemiBold",
    },
  },
  fonts: {
    root: "inter",
  },

Of course, the assets are loaded, using the Font.loadAsync(fonts) in a custom provider.
This throws the following error:

fontFamily "inter" is not a system font and has not been loaded through Font.loadAsync.
If you intended to use a system font, make sure you typed the name correctly and that it is supported by your device operating system.

The weird thing, if i change it like this:
fonts: {
    root: "Inter-Bold",
  },

The font changes to bold. This works though both ob the device and in the browser, so that's good.
Any idea how to get around on this?
Thank you in advance!

Can you show your expo font loader code?

I'm currently snowboarding so I'm going to send a screenshot lol.
Did you see this in the docs?

Hey! Thanks for replying :) Marry Christmas!
Yes, I've seen that in the docs, and the reason I haven't shared the font loading method, because I could verify the fonts being loaded correctly:
fonts: {
    root: "Inter-Bold",
  },

So this, indicates that the Inter-Bold font loaded correctly, and the error message is gone.
I have a custo wrapper to load async, you  can check it here

It's hard for me to help without seeing a simple reproduction of the docs not working. Could you see if loading it in the way the docs say with expo font works?
One thing to keep in mind: when you load in the font with expo fonts, the name of the normal weight font should be inter. The name of the imported font is important.

@nandorojo sorry for the late answer. I am loading the fonts as its described in the expo dosc, using Fonts.loadAsync.
This is the Object, that stores the fonts, and being passed to the loadAsync promise:
const fonts = {
  "Inter-Black": require("./assets/fonts/Inter/Inter-Black.ttf"),
  "Inter-Bold": require("./assets/fonts/Inter/Inter-Bold.ttf"),
  "Inter-ExtraBold": require("./assets/fonts/Inter/Inter-ExtraBold.ttf"),
  "Inter-ExtraLight": require("./assets/fonts/Inter/Inter-ExtraLight.ttf"),
  "Inter-Light": require("./assets/fonts/Inter/Inter-Light.ttf"),
  "Inter-Medium": require("./assets/fonts/Inter/Inter-Medium.ttf"),
  "Inter-Regaular": require("./assets/fonts/Inter/Inter-Regular.ttf"),
  "Inter-SemiBold": require("./assets/fonts/Inter/Inter-SemiBold.ttf"),
  "Inter-Thin": require("./assets/fonts/Inter/Inter-Thin.ttf"),
};

And then:
const useLoadAssets = (assets: number[], fonts: FontSouce): boolean => {
  const [ready, setReady] = useState(false);
  usePromiseAll(
    [Font.loadAsync(fonts), ...assets.map((asset) => Asset.loadAsync(asset))],
    () => setReady(true)
  );
  return ready;
};

So you say:

One thing to keep in mind: when you load in the font with expo fonts, the name of the normal weight font should be inter. The name of the imported font is important.

If i understand this correctly, the Inter-Regular in this object should be Inter as that will be the default font.
const fonts = {
  "Inter-Black": require("./assets/fonts/Inter/Inter-Black.ttf"),
  "Inter-Bold": require("./assets/fonts/Inter/Inter-Bold.ttf"),
  "Inter-ExtraBold": require("./assets/fonts/Inter/Inter-ExtraBold.ttf"),
  "Inter-ExtraLight": require("./assets/fonts/Inter/Inter-ExtraLight.ttf"),
  "Inter-Light": require("./assets/fonts/Inter/Inter-Light.ttf"),
  "Inter-Medium": require("./assets/fonts/Inter/Inter-Medium.ttf"),
  Inter: require("./assets/fonts/Inter/Inter-Regular.ttf"), // HERE
  "Inter-SemiBold": require("./assets/fonts/Inter/Inter-SemiBold.ttf"),
  "Inter-Thin": require("./assets/fonts/Inter/Inter-Thin.ttf"),
};

And then, in the theme:
    Inter: {
      bold: "Inter-Bold",
      default: "Inter-Regular",
      normal: "Inter",
      "400": "Inter-Regular",
      "300": "Inter-Thin",
      "500": "Inter-Medium",
      "600": "Inter-Medium",
      "700": "Inter-SemiBold",
    },
  },
  fonts: {
    root: "Inter",
  },

UPDATE:
Hah! It seems like it's working this way! :)

Looks like it was because it wasn't capitalized in the theme before. Glad it's working.


WebTerminal plugins

How about to let people make WEB Terminal plugins? Having WebTerminal API made, I see the good way for people to contribute their own features and applications like #32 specifically for WebTerminal.
Plugin will consist of two parts: client and server (optional) code. It can both extend client functionality by adding, f.e. new commands or GUI features, and also implement any server-side handlers.
This requires a good WebTerminal API, by the way, but I see all this quite implementable.

Where's API specks?

@eduard93, API specs don't exists yet, just turn on your imagination! :blush: This discussion should answer a question if we need a CWT plugin mechanism to be build at all, not focusing on the technical details, and is there anybody interested in extending CWT functionality in that way.
Talking about API, suggesting in short:
From the client side, there will be full access to DOM and core terminal elements as well as print(), prompt() functions, etc.
From the server [optional] side, I think, there's almost one purpose to call server-side methods stored inside custom class. WebTerminal/Plugins/*.cls with any required methods implemented such as onSessionBegin(), onSessionEnd(), onMessage(), onCustomMessage(), etc.
Also, after people find plugins useful, it will be a good idea to make plugin mechanism a little global like CPM do, by adding in-terminal commands like /plugins (lists available plugins), /plugins install ... /plugins uninstall ....

Closed for now. The "plugins" functionality should go with the package manager.