Error when developing with nodemon

Not sure whether this is really a mockserver or a nodemon issue. Please comment and close if this shouldn't have been reported here!
Environment:
macOS Mojave (10.14.6)
java v13.0.1
node v12.1.0
I'm trying to implement a mockserver and using nodemon to avoid having to restart the server on every change.
It seems to work; however, with every change I'm getting the following error and a hs_err_pidXXXXX.log file is being created in the root directory.
[nodemon] restarting due to changes...
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x000000010b02858d, pid=13611, tid=775
#
# JRE version: Java(TM) SE Runtime Environment (13.0.1+9) (build 13.0.1+9)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (13.0.1+9, mixed mode, sharing, tiered, compressed oops, g1 gc, bsd-amd64)
# Problematic frame:
# ########SIGUSR2 Received: Shutting Down
V  [libjvm.dylib+0x62858d]  SR_handler(int, __siginfo*, __darwin_ucontext*)+0x2e
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /path/to/project/hs_err_pid13611.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#
[nodemon] starting `node ./mockserver/server.js`
Skipping {"host":"oss.sonatype.org","path":"/content/repositories/releases/org/mock-server/mockserver-netty/5.6.1/mockserver-netty-5.6.1-jar-with-dependencies.jar","port":443} as file already downloaded
Running 'java -Dfile.encoding=UTF-8 -Dmockserver.logLevel=INFO -Dmockserver.enableCORSForAllResponses=true -jar node_modules/mockserver-node/mockserver-netty-5.6.1-jar-with-dependencies.jar -serverPort 7070'

I have tried gracefully shutting down the mockserver instance by intercepting SIGUSR2, but that didn't do the trick:
process.once('SIGUSR2', (code) => {
  console.log('########SIGUSR2 Received: Shutting Down');
  mockserver
    .stop_mockserver({serverPort})
    .then(() => {
      console.log('SIGUSR2 Received: MockServer Shut Down');
      setTimeout(() => {
        process.kill(process.pid, 'SIGUSR2');
      }, 1000);
    });
});

I also tried to at least avoid creating the error log files or placing them somewhere else by setting -XX:ErrorFile in jvmOptions, but that didn't have any effect either.
Am I missing something? Any workarounds?

closing due to inactivity


Simplify MULTIPLY-COMPLEX-MATRIX. Cons less, compute more.

As promised in #54, here is a patch that makes multiply-complex-matrix two orders of magnitude faster and less memory-hungry (see results below).
(in-package #:magicl)

(defparameter *n* 2048)
(defparameter *matrix* (magicl:random-unitary *n*))
(defparameter *vector* (magicl:random-matrix *n* 1))

(progn
  (sb-ext:gc :full t)
  (dotimes (i 3)
    (time (multiply-complex-matrices *matrix* *vector*))))

(format t "===================================~%")

(progn
  (sb-ext:gc :full t)
  (dotimes (i 3)
    (time (multiply-complex-matrices-old *matrix* *vector*))))

;;; WITH THIS PATCH.
 I'll do more checks and report the results.

Both matrices are indeed unchanged and only C is overwritten. In the documentation for the latest reference implementation of BLAS, the matrices A and B are listed as input parameters [1] while C is the only argument explicitly marked as input/output and said to be overwritten (the reference code complies with that). In an older version, it explicitly says that A and B are "unchanged on exit" [2]. Finally, Intel MKL's implementation [3] declares both a and b as pointers to const data (hence unchanged).
The code for the reference implementation of ZGEMM does call DCONJG to get the complex conjugate when asked to take the Hermitian transpose.
[1] http://www.netlib.org/lapack/explore-html/dc/d17/group__complex16__blas__level3_ga4ef748ade85e685b8b2241a7c56dd21c.html#ga4ef748ade85e685b8b2241a7c56dd21c
[2] http://www.netlib.org/lapack/lapack-3.1.1/html/zgemm.f.html
[3] https://software.intel.com/en-us/mkl-developer-reference-c-cblas-gemm

The results are consistent when running the snippet of code below using Accelerate, OpenBLAS, and MKL.
(ql:quickload :magicl)

(in-package #:magicl)

(defparameter *n* 2048)
(defparameter *matrix* (magicl:random-gaussian-matrix *n* *n*))
(defparameter *vector* (magicl:random-matrix *n* 1))

(progn
  (sb-ext:gc :full t)
  (dotimes (i 3)
    (time (magicl:multiply-complex-matrices *matrix* *vector*)))
  (defparameter *results-0* (magicl:multiply-complex-matrices *matrix* *vector*)))

(format t "===================================~%")

(progn
  (sb-ext:gc :full t)
  (dotimes (i 3)
    (time (magicl::multiply-complex-matrices* *matrix* *vector*)))
  (defparameter *results-1* (magicl::multiply-complex-matrices* *matrix* *vector*)))

(format t "Error: ~A~%" (loop :for a :across (matrix-data *results-0*)
                              :for b :across (matrix-data *results-1*)
                              :maximizing (abs (- a b))))

(sb-ext:quit)

accelerate.txt
openblas.txt
mkl.txt

@appleby The current test suite exercises this function extensively (albeit indirectly).


[Android Agent] Agent app getting stuck in android 4.4.2

Pre-Conditions:-

Should be tested on a device with Android 4.4.2 (Tested on a Samsung tab SM-T520)

Download the Agent app by using the QA scanner in 3.1.0-beta pack
Register the Android device
Observe the app after registration is complete

Expected Results:-

User should be able to complete the registration using the agent app

Actual Results:-

Agent app gets stuck during the registration process. Unable to resume after this.

@geethkokila , @chamaraanu : Labels - 3.1.0-beta, Highest

This issue can't be reproduced.
Here find the steps which I was trying to reproduce

Debug and build Android emulator 4.4.2
Register the Android device and could able to activate the app successfully

Verified in 3.1.0-RC


Fix issue where month representations weren't being generated correctly

This should fix issue #74. @sersast @gusdn9 @jlindenbaum can any of you try out the a snapshot build 'com.prolificinteractive:material-calendarview:0.7.0-SNAPSHOT' to verify this fixes the issue?
Reviewers: @ireneduke @chahinem

I get the following error while building:
Error:A problem occurred configuring project ':app'.

Could not resolve all dependencies for configuration ':app:_debugCompile'.
Could not find com.prolificinteractive:material-calendarview:0.7.0-SNAPSHOT.
Searched in the following locations:
https://jcenter.bintray.com/com/prolificinteractive/material-calendarview/0.7.0-SNAPSHOT/maven-metadata.xml
https://jcenter.bintray.com/com/prolificinteractive/material-calendarview/0.7.0-SNAPSHOT/material-calendarview-0.7.0-SNAPSHOT.pom
https://jcenter.bintray.com/com/prolificinteractive/material-calendarview/0.7.0-SNAPSHOT/material-calendarview-0.7.0-SNAPSHOT.jar
file:/devapps/Android/sdk/extras/android/m2repository/com/prolificinteractive/material-calendarview/0.7.0-SNAPSHOT/maven-metadata.xml
file:/devapps/Android/sdk/extras/android/m2repository/com/prolificinteractive/material-calendarview/0.7.0-SNAPSHOT/material-calendarview-0.7.0-SNAPSHOT.pom
file:/devapps/Android/sdk/extras/android/m2repository/com/prolificinteractive/material-calendarview/0.7.0-SNAPSHOT/material-calendarview-0.7.0-SNAPSHOT.jar
file:/devapps/Android/sdk/extras/google/m2repository/com/prolificinteractive/material-calendarview/0.7.0-SNAPSHOT/maven-metadata.xml
file:/devapps/Android/sdk/extras/google/m2repository/com/prolificinteractive/material-calendarview/0.7.0-SNAPSHOT/material-calendarview-0.7.0-SNAPSHOT.pom
file:/devapps/Android/sdk/extras/google/m2repository/com/prolificinteractive/material-calendarview/0.7.0-SNAPSHOT/material-calendarview-0.7.0-SNAPSHOT.jar
Required by:
ULF:app:unspecified

Same for me.

@sersast @jlindenbaum @gusdn9 You also need to add maven's staging repository. It should look something like this (likely under allprojects in your top level build.gradle):
repositories {
    jcenter()
    maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}

It doesn't work either. The following error pops up (among other non-resolved dependencies):

Could not find com.android.support:support-v4:22.2.0.
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/support-v4/22.2.0/support-v4-22.2.0.pom
https://jcenter.bintray.com/com/android/support/support-v4/22.2.0/support-v4-22.2.0.jar
https://oss.sonatype.org/content/repositories/snapshots/com/android/support/support-v4/22.2.0/support-v4-22.2.0.pom
https://oss.sonatype.org/content/repositories/snapshots/com/android/support/support-v4/22.2.0/support-v4-22.2.0.jar
file:/devapps/Android/sdk/extras/android/m2repository/com/android/support/support-v4/22.2.0/support-v4-22.2.0.pom
file:/devapps/Android/sdk/extras/android/m2repository/com/android/support/support-v4/22.2.0/support-v4-22.2.0.jar
file:/devapps/Android/sdk/extras/google/m2repository/com/android/support/support-v4/22.2.0/support-v4-22.2.0.pom
file:/devapps/Android/sdk/extras/google/m2repository/com/android/support/support-v4/22.2.0/support-v4-22.2.0.jar
Required by:
ULF:app:unspecified > com.prolificinteractive:material-calendarview:0.7.0-SNAPSHOT

@sersast thats weird, I'm not sure what could have been messed up. We just need maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } added after any jcenter() or mavenCentral() in your build.gradle files. That shouldn't break anything.

@sersast I have two places for repositories. Throw it into both, and it worked for me.
Just testing now, will report back in a few.

This snapshot version works for me! Thanks so much.

Yes it works :)
I just had to update "Google repositories" in the SDK manager.
@dandc87 Thanks for this awesome library and the time you invest in it.


Test against 2022.1 Docker image

This adds CI configuration to test against the latest release of OpenVINO.

This will not succeed until the 2022.1 Docker image is published; currently it is not. (cc: @brianjjones)

Replaced by #37


Images on SSD1306 are displaced right and down

I'm testing a SSD1306 display on a Raspberry Pi 3. This board uses SPI. With every example I execute, the drawings appear padded right and down as the middle of the screen. If the demo is animated, drawings start moving down and right, and the part that cannot be drawn due to being out of screen, appears up in the screen.
Here is an example of what's happening:

I'm launching this example with python demo.py --interface spi
I have a running driver, and I've checked all values to see if example defaults are the same, every one of them is correct. I don't know what is happening, as the older driver behaves correctly.

When you said: "as the older driver behaves correctly", what do you mean by that?
There are two possibilities AFAICS:

Are you certain it is an SSD1306 rather than a SH1106 ?
Alternatively, it looks as though the memory is remapped from a different offset ... Could you try running the demo with the --h-offset H_OFFSET switch, eg. python demo.py --interface spi --h-offset -32 ... maybe try a few different values to see if you can get it to align properly

I'm sure is not a SH1106, if I change the display to that, it does weirder things with the image.
Also, if I use the offset, it doesn't change the image position at all, it's still displaced from the corner.
When I said that "old driver" thing, I'm saying that the screen is working right now with a (crappy) old driver. I'm not sure what can I do to make it work.
Thanks

I'm saying that the screen is working right now with a (crappy) old driver.

what driver specifically?

This one: Adafruit_Python_SSD1306

I'm saying that the screen is working right now with a (crappy) old driver. I'm not sure what can I do to make it work.

if it works, it works..?


Test-RecoveryServices

API change check
APIView has identified API level changes in this PR and created following API reviews.
Azure.ResourceManager.RecoveryServices


Crash on maps with invalid timing points

Reddit user CrashCrashDummy experienced crashes while adding their beatmaps. They shared the archive of their beatmaps and I was able to pinpoint that at least one of the beatmaps was causing crashes due to invalid timing points that had only two arguments (instead of required >= 6).

Test build with the fix:
osu-octave.vpk-fix15.zip
@Takatsuki if you can please check if this build works for you.

Confirmed to be fixed.


macOS dpi wrong

There's a bug currently where mouse position is offset, but not in a uniform manner. The canvas and imgui seem to handle mouse position differently. This is confirmed on the newest Mac OS (only one I have access to). Needs further investigation.

Might be fixed by recent deprecation of calc_x/calc_y. @justvanrossum did not report any issue, so I'm closing this.

Reopening due to investigation by @subject38. I fixed half the problem.

Forgot that even mentioning an issue ID in any commit closes.
Anyway, as I wrote in message of MFEK/imgui-skia-renderer.rlib@e6ba2e8—

Stop resetting matrix. Does this fix MFEK/glif#147, @Subject38?

As far as I can tell after rebuilding and pulling the module manually to make sure it's using the right one, it does not fix the issue. Behavior remains the same both with mouse position and with rendering being offset incorrectly for the layers box

@Subject38 Try post-https://github.com/MFEK/glif/commit/7ada62d21133f72be9f1f981f36fc9e591ec4eee, which will make sure the right version is pulled.

Workaround available in https://github.com/MFEK/glif/commit/f5b761f8983dccd276d3a8a7db563d5d12c15c90. Unpinning until I can try myself on an M1 Macintosh.


xerces/xercesImpl 2.11.0

Type: Missing
Summary:
xerces/xercesImpl 2.11.0
Details:
Maven indicates Apache-2.0
https://search.maven.org/artifact/xerces/xercesImpl/2.12.1/jar
Resolution:
Declared license is Apache-2.0
Affected definitions:

xercesImpl 2.11.0

Closing; already declared.


Template-literal rule attempting to run on nullish coalescing operations, and then crashing eslint

I'm having this rule erroneously triggering on the new ?? (nullish coalescing) operator
https://gist.github.com/GeorgeWL/0a7ce21622259e84d39a929b8cd72c81 for the full logs and details
lint command in my package json is
"lint": "eslint . -c .eslintrc.js --ext js,jsx --fix"
https://gist.github.com/GeorgeWL/0a7ce21622259e84d39a929b8cd72c81#file-error-reports-from-here-js-L4 is the source of the error
there seems to be a workaround here:
https://github.com/babel/babel-eslint/issues/799#issuecomment-651954838

Fixed in @babel/eslint-parser 7.11.0, see https://babel.dev/blog/2020/07/13/the-state-of-babel-eslint#the-future for the renaming guide.


fix(#3601): FocusScope wait a frame before reassigning nodeToRestore

So that a FocusScope opening from a FocusScope that is closing does not overwrite the nodeToRestore we have reassigned to it with a nodeToRestore within the FocusScope that is closing, we need to wait a frame.
Closes #3601
✅ Pull Request Checklist:

[x] Included link to corresponding React Spectrum GitHub Issue #3601.
[x] Added/updated unit tests and storybook for this change (for new code or code which already has tests).
[x] Filled out test instructions.
[ ] Updated documentation (if it already exists for this component).
[x] Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:
This updated Tailwind CSS example demonstrates the corrected behavior: https://codesandbox.io/s/exciting-hawking-dsnlzr.
Storybook example: https://reactspectrum.blob.core.windows.net/reactspectrum/792a34d84d14815d733c9a15579c944c30b2cfd6/storybook/index.html?path=/story/focusscope--restore-focus&providerSwitcher-toastPosition=bottom
🧢 Your Project:
Adobe/Accessibility

It seems to be working even with CSSTransitionss removed, I would like to try in my app when there's a prerelease.

Could we add a FocusScope story with this example?

Added a storybook example: https://reactspectrum.blob.core.windows.net/reactspectrum/cb8eaed90d6baa3e0c1f407bfb51ab2f3b3e1144/storybook/index.html?path=/story/focusscope--restore-focus&providerSwitcher-toastPosition=bottom

@majornista I don't feel qualified to review any focus code. We're having focus issues so I was just looking around.

@majornista I don't feel qualified to review any focus code. We're having focus issues so I was just looking around.

No worries. I didn't mean to put you on the spot. By refreshing your review comment, I just to let you know that I appreciated your feedback and have incorporated your suggested change.

This got fixed somewhere along the way. I can no longer reproduce the problem with our latest code


Unable to run the build script, llvm download link not found (404)

Brief Description
Unable to run the build script, llvm download link not found (404)
OS: Linux
When running ./build.sh generate -configuration Release -platform x64 on Linux, I get:
Downloading: https://github.com/mono/CppSharp/releases/download/CppSharp/llvm-0c8f9b-linux-x64-gcc-10.2-Release.tar.xz
Error: .../CSharp/AQEngine/Vendor/CppSharp/build/scripts/Utils.lua:106: HTTP response code said error
The requested URL returned error: 404 Not Found

Our current LLVM builds are for GCC 9, we will see about adding a new build for GCC 10.

@8bitkitkat The new LLVM package for linux-64-gcc-10 is now available. It should work well as we are now using this exact package in our linux builds.
Please try it and let us know if you find any issues.

Thanks, all working now


Update whatis-aadc-admin-agent.md

#sign-off

Invalid command: '#sign-off'. Only the assigned author of one or more file in this PR can sign off. @billmath


Copy new Damaged Helmet from sample repo.

Let's not merge this until KhronosGroup/glTF-Sample-Models#98 gets merged to the official sample repo.  But, this branch is useful for testing and comparing the new model to the previous one.

/cc @abwood

Looks great! The lighting on the visor is now seamless.

This got merged to the official model sample repo.  Merging here too.


please support 10.14 dark mode

please support 10.14 dark mode

+10000000000

was this already implemented in this PR https://github.com/ian4hu/Clipy/pull/17 ?

Was it implemented or not?

Maybe, but AFAIK it was not released yet

Is this project still maintained, @Econa77? Many of us would like to see the Dark Mode PR merged

+1 also interested in this one
Any updates @Econa77 ?

+1
Dark mode would be nice.
I understand it is already developed but needs to be tested? Merged?
Is there a timeline?

I read somewhere else here, if clipy is build with newer xcode, with OS which supports night mode, then clipy will also use night mode.
I cloned this repo and build latest default branch on my mac. This build app now has dark mode (when OS is set in dark mode)
Clipy 2022-03-12 18-48-31.zip

@jirikrepl thanks a lot!

@jirikrepl thanks a lot!
Not a big deal, just wondering: is it possible to make preferences also in dark mode?

See ian4hu/Clipy


Metadata: isaaclevin.presencelight version 3.0.19

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?

[x] Does your manifest conform to the 1.0 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

/azp run

cc @denelon @palenshus: "Azure-Pipeline-Passed" label needs to be added to this PR.


Skaffold not able to find the deployment manifest

Follow the steps at https://github.com/arun-gupta/java-k8s#deployment-pipeline
Getting this error intermittently:
Step 4/9 : FROM openjdk:8-jre
 ---> 45f5e2510495
Step 5/9 : ENV PORT 8080
 ---> Using cache
 ---> df7a901b3ec0
Step 6/9 : EXPOSE 8080
 ---> Using cache
 ---> c04c9efdf18c
Step 7/9 : COPY --from=BUILD /usr/src/app/target /opt/target
 ---> e68c0b78dece
Step 8/9 : WORKDIR /opt/target
 ---> 405b3700e68a
Step 9/9 : CMD ["java", "-jar", "app-swarm.jar"]
 ---> Running in 15ca51ab243e
 ---> 18da1419ad53
Successfully built 18da1419ad53
Successfully tagged 85f99b2db890e2ce782a80dd82f6c59d:latest
FATA[0033] first build: exiting dev mode because the first build failed: generating tag: reading diff: open /Users/argu/workspaces/java-k8s/ app/greeting-deployment.yaml: no such file or directory
app $ l

It was occurring at work, but the same setup seems to work at home.

@arun-gupta I think this is fixed in master branch

@dgageot is there a CI/CD build where the latest build can be picked, or do I have to build it manually? The last release was before the issue was fixed.

@arun-gupta go get github.com/GoogleContainerTools/skaffold/cmd/skaffold should work

There is also `https://storage.googleapis.com/skaffold/builds/latest/
gs://skaffold/builds/latest/skaffold-darwin-amd64
gs://skaffold/builds/latest/skaffold-darwin-amd64.sha256
gs://skaffold/builds/latest/skaffold-linux-amd64
gs://skaffold/builds/latest/skaffold-linux-amd64.sha256
gs://skaffold/builds/latest/skaffold-windows-amd64.exe
gs://skaffold/builds/latest/skaffold-windows-amd64.exe.sha256
gs://skaffold/builds/latest/docs/

And at each commit
https://storage.googleapis.com/skaffold/builds/<commit>/

This issue is not happening with skaffold-0.8


dotnet-watch eats color coded console output

When running the koans with the dotnet watch run command, the color coded console output is stripped.
Reported to aspnet/dotnet-watch#14
Looks to be resolved with dotnet/cli#1977

Resolved in version 1.0.1 of the CLI


firstDay function not working.

Expected behaviour
Setting firstDay: 1 in the options should choose Monday as the first day of the week.
Actual behaviour
Still selects Sunday as the first day of the week.
Datepicker version used
v1.9.0
Example code
$('.input-group.date').datepicker({     format: "dd/mm/yy",     firstDay: 1 });

Try weekStart: 1 to start with Montay.


sidecar summary tab is confusing for 'k get pods -o json'

When I type k get pods -o json or -o yaml, I saw sidecar opened with the Summary Tab showing the summary for only 1 pod. This is confusing because I was expecting a list of pods.

nice catch. should we skip the summary tab for this corner case?

moving to https://github.com/kui-shell/plugin-kubeui/issues/173


Use constants for sonobuoy status to avoid completed errors

@timothysc I can't remember if we're trying to do any dep limiting in cmd, but I think sonobuoy master is gonna pull in aggregation anyway.

$ sonobuoy status
PLUGIN	NODE	STATUS
e2e		complete

Sonobuoy has completed. Use `sonobuoy retrieve` to get results.


[Apple Map]Polygon holes will not be updated.

Bug report
👋 Hi!
Summary
Polygon holes will not be updated.
This is the same for GeoJson.
We are temporarily forcing the key value to update the polygon holes.
provider="google" works fine.
When re-rendering, is there any way to update polygon holes in apple map?
Environment info
react-native: 0.64.3
react: 17.0.1
react-native-maps: 0.30.1
Target Platform: iOS - 15.2 Simulator/iPhone 13,
map type: AppleMaps
`react-native info` output:
OS: macOS 12.3
    CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
    Memory: 21.43 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 18.0.0 - /usr/local/bin/node
    Yarn: 1.22.18 - /usr/local/bin/yarn
    npm: 8.6.0 - /usr/local/bin/npm
    Watchman: 2<IP_ADDRESS> - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.11.3 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3
    Android SDK:
      API Levels: 23, 27, 28, 29, 30, 31
      Build Tools: 28.0.3, 29.0.2, 29.0.3, 30.0.2, 30.0.3
      System Images: android-30 | Google APIs Intel x86 Atom, android-30 | Google Play Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 2021.1 AI-211.7628.21.2111.8193401
    Xcode: 13.2.1/13C100 - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_292 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.1 => 17.0.1
    react-native: 0.64.3 => 0.64.3
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps to reproduce

GeoJson or Polygon Rendering

<Geojson  geojson={serviceZoneGeoData} strokeColor="#~" fillColor="#~" strokeWidth={2} />

when "onRegionChangeComplete" change "serviceZoneGeoData"

<MapView
   onRegionChangeComplete={() => {
      ~~~~~
   setServiceZoneGeoData(newServiceZoneData);
}}

but not change servicezon(but re-rendering and servicezoneData is changed)
Describe what you expected to happen:
when change th servciezoneData and change polygon holes data

Describe what actually happens:
but not change servicezon(but re-rendering and servicezoneData is changed)

Could you provide a minimal reproducible example? I can't run the code you provided, as I need serviceZoneGeoData and newServiceZoneData.


Vtable symbol mismatch causes unexpected success

This issue should not be resolved until all tests in this PR pass when fixme is removed from the name.
When running rmc <filename> on any of the tests added in this PR, we expect a FAILURE, but get SUCCESS.
This seems to be caused by two things:

When CBMC encounters a function which does not appear in the vtable, it (we believe) translates to assume(0).
For dynamic traits, different naming conventions are used for insertion and lookup on the vtable.

When specifically running fixme_boxtrait_fail.rs, we receive the following log:
WARN rustc_codegen_llvm::gotoc::rvalue Unable to find vtable symbol for <Concrete as Trait>::increment. Using NULL instead

and when we view the symbol table using rmc --keep-temps fixme_boxtrait_fail.rs and opening fixme_boxtrait_fail.json, we find the following:
...
    "_ZN76_$LT$fixme_boxtrait_fail..Concrete$u20$as$u20$fixme_boxtrait_fail..Trait$GT$9increment17ha9f75436a1c6f32dE": {
      "baseName": "_ZN76_$LT$fixme_boxtrait_fail..Concrete$u20$as$u20$fixme_boxtrait_fail..Trait$GT$9increment17ha9f75436a1c6f32dE",
...
      "name": "_ZN76_$LT$fixme_boxtrait_fail..Concrete$u20$as$u20$fixme_boxtrait_fail..Trait$GT$9increment17ha9f75436a1c6f32dE",
      "prettyName": "fixme_boxtrait_fail::{impl#1}::increment",
...

Note the difference in names used: <Concrete as Trait>::increment vs fixme_boxtrait_fail::{impl#1}::increment.

I have an in-progress fix for this that works in all of the fixme_ cases, but breaks a few other tests. Will make a PR once I unbreak those.


Rotate Issue

The video doesn't rotate on Android Version 4.2.2, 4.3.2.
I just changed the MediaFromat rotation-degrees and rotation value
but the video doesn't chagne yet

Video rotation is only supported from Android 5.0. See #6. Also, setting the rotation manually won't work, as this is a read-only value.

this source used surfaceview,
but if you use textureview, you can rotate the video
I tried to use textureview on this source code, but I failed.
my idea is right or not?
On 17 February 2017 at 00:54, Mario Guggenberger<EMAIL_ADDRESS>wrote:

Video rotation is only supported from Android 5.0. See #6
https://github.com/protyposis/MediaPlayer-Extended/issues/6. Also,
setting the rotation manually won't work, as this is a read-only value.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/protyposis/MediaPlayer-Extended/issues/54#issuecomment-280406719,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AS7ypSd_Karn-k6q7B_6KuWqpnKfbNzZks5rdI1BgaJpZM4MCqPT
.

Yes you can use TextureView instead of SurfaceView with the MediaPlayer to rotate the video, if you know the rotation value. Android below 5.0 won't report the rotation in MediaFormat.

I wrote issue because I couldn't fix this issue.
if you can fix this rotate issue, I hope you help me
I will pay for that
On 18 February 2017 at 00:56, Mario Guggenberger<EMAIL_ADDRESS>wrote:

Yes you can use TextureView instead of SurfaceView with the MediaPlayer
to rotate the video, if you know the rotation value. Android below 5.0
won't report the rotation in MediaFormat.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/protyposis/MediaPlayer-Extended/issues/54#issuecomment-280720882,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AS7ypa0_ChMb8E7Ww8cgTGqXtlXTnlS0ks5rdd9BgaJpZM4MCqPT
.

For paid support, please get in contact through<EMAIL_ADDRESS>Thank you!


Unable to access past page 19 | or by party subheadings

I have been unable to access any leaflets beyond the first 19 pages of leaflets on the website, and also am unable to access leaflets by the party subheadings. I had been hoping to access the leaflets as part of research on campaign strategies. Let me know if it will be possible to access these leaflets on the website, or if there is some alternative way to access the leaflets if they will not be available online.
The website is a great resource, and is much appreciated, so keep up the good work!

Both of these problems seem to have fixed, so this issue can probably now be closed.


how configure ur5_moveit_config by moveit_setup_assistant?

I would like to configure my own ur5_moveit_config using moveit_setup_assistant. How can I achieve this? Thank you.

Hi there, we are currently working on a comprehensive documentation which is covering that as well. You can look at the preliminary version here: https://docs.universal-robots.com/Universal_Robots_ROS2_Documentation/doc/ur_tutorials/doc/tutorial_index.html
Note that this is valid for rolling and jazzy only. Humble and iron are a bit different, we'll add something for that, as well.

Hey @Asukayoo, I will close the issue since some time has passed. Feel free to reopen if still relevant.


MOVI skeleton output

Hi. I would like to know how to get the output keypoints using the MOVI dataset as skeleton model? Which model do I need to use? Thank you for your willingness.

You can check out https://istvansarandi.com/dozens/ where there is a code example, a list of models and a list of supported skeleton formats, including bml_movi_87.


fix: ADDON-61381 Fixed the design issue in Safari browser

Jira Link - https://splunk.atlassian.net/browse/ADDON-61381

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

v1.26.2
GitHub release

Your semantic-release bot :package::rocket:


Fix for failing sendWithdrawal() call because of missing parameter

This PR is a fix for issue #18

Thanks @TheGoldenEye 👍

Why not merge it?


Break the tests for PredictMD into multiple stages

(based on the test groups docker-1, docker-2, etc.)
Fixes #68

bors r+


ZeroDivisionError: division by zero

您好，我在运行self critical的执行命令后出现了这个报错：ZeroDivisionError: division by zero，请问是哪里出现了问题呀？感谢

你加一个 --force 看看。或者你再搜一下其他issue
Ruotian Luo

On Mar 20, 2022, at 7:58 AM, fanersaiqi @.***> wrote:

您好，我在运行self critical的执行命令后出现了这个报错：ZeroDivisionError: division by zero，请问是哪里出现了问题呀？感谢
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.

好的，我试试，谢谢


Rewrite missing regions for Azure Monitor workspace

This PR removes the temporary region rewrite for Workload identity that was used to rewrite regions that did not support Workload Identity while in preview. This is not needed anymore. Workload Identity is now available in all relevant regions.
Adding a region rewrite for Azure Monitor workspace (managed prometheus) while not available in all regions, yet.

I'm testing a fallback with a map. e2e running now, lets see


Backslash at the end of line should add linebreak

No linebreaks added in case of backslash at the end of line. For example,
line1 \
line2 \
line3

should be rendered as separate lines within same paragraph (like shift+enter in confluence editor). But it is not.
HTML generated with sphinx from same source have added <br> between lines.
Could you please fix it?

Out of curiosity, are you using reStructuredText, MyST Markdown or some other variant?

Sure. I use MyST markdown variant.

A proposed change to address this can be found in https://github.com/executablebooks/MyST-Parser/pull/948.

Oh. I see. Thanks a lot. Your comment in related issue https://github.com/sphinx-contrib/confluencebuilder/issues/879#issuecomment-1965735387 explains everything ;-)


Deleting previously used shipping methods can disrupt customer accounts due to lack of fallback

Description
It seems there's a bug in the code that sets the active shipping method for customers. If a customer has previously selected a shipping method in checkout which then gets deleted from the administration, this customer's sessions will crash.
To reproduce:

Create a shipping method in the administration and hook it up to a sales channel
Login with a customer on the sales channel and head to checkout.
Select the new shipping method on the cart (optionally, place the order as the shipping method will be stored for future orders as well)
Delete this shipping method completely in the administration.

The customer is now locked out of the system by page crashes due to \Shopware\Core\System\SalesChannel\Context\SalesChannelContextFactory::getShippingMethod having to return a ShippingMethodEntity, but actually returning null due to the Shipping Method selected by the customer no longer existing.
I believe the samme issue probably exists with payment methods, from what I can discern on \Shopware\Core\System\SalesChannel\Context\SalesChannelContextFactory::getPaymentMethod - this also tries to use customer specific IDs for payment methods and probably could also fail in the same manner. I haven't actually tried it out though.
Possible Solution
The issue could be fixed by fallback logic in the above mentioned function. Something like this:
private function getShippingMethod(array $options, Context $context, SalesChannelEntity $salesChannel): ShippingMethodEntity
{
    if (array_key_exists(SalesChannelContextService::SHIPPING_METHOD_ID, $options)) {
        $id = $options[SalesChannelContextService::SHIPPING_METHOD_ID];

        $criteria = (new Criteria([$id]))->addAssociation('media');
        $criteria->setTitle('context-factory::shipping-method');

        $shippingMethod = $this->shippingMethodRepository->search($criteria, $context)->get($id);
        if ($shippingMethod) {
            return $shippingMethod;
        }
    }

    $id = $salesChannel->getShippingMethodId();

    $criteria = (new Criteria([$id]))->addAssociation('media');
    $criteria->setTitle('context-factory::shipping-method');

    return $this->shippingMethodRepository->search($criteria, $context)->get($id);
}

Obviously this is just copy-pasting and moving some logic around, but the idea should work. If the $options contain a shipping method ID, make sure that it actually gets an entity. Otherwise, retry with the default ID for the Sales Channel. If you want, I can make a PR with something like this.

hey @Josniii
could you reproduce this on the current master or on the upcoming <IP_ADDRESS> ? We fixed some things regarding deleting of relationships. So for example, if a rule is still in use on a payment method, the rule could not be deleted. maybe this mechanic also fixes your use case?

hey @Josniii
could you reproduce this on the current master or on the upcoming <IP_ADDRESS> ? We fixed some things regarding deleting of relationships. So for example, if a rule is still in use on a payment method, the rule could not be deleted. maybe this mechanic also fixes your use case?

Hey @mitelg
Sorry for the delay, I just tried replicating on v<IP_ADDRESS> and the issue still exists. The issue is that the shipping method ID is still stored inside the sales channel context of the customer inside a JSON blob with no relation to the shipping method table. The system will always use the customer's preferred shipping method if one exists, regardless of whether it exists or not.

Hello,
Within our company roadmap and work capacity, we try to address each bug or improvement request but admit that not each one will be resolved. To continue our culture of honesty and openness, we are closing this issue to focus on our roadmap on behalf of all Shopware users.
If you feel like this issue is still impacting you, please create a new issue and let us know.
Thank you again for your valuable feedback.


Interfaces instead abstract classes for HttpContext

In addition to HttpContext, HttpRequest, HttpResponse would be useful, and more easy to mock using custom impl. instead a mock fw, to have some interfaces.
An example of little difficult is that you can implement something like this
public override HttpRequest Request { get; set; }
just because the base class does not expose the setter.
Something I have done in the past for a self hosted API (HttpListener working a desktop app)
public interface IApiRequestContext
{
IApiRequest Request { get; }
IApiResponse Response { get; }
IDictionary<string, string> RouteData { get; }
}
public interface IApiRequest
{
string HttpMethod { get; }
Uri Url { get; }
Stream InputStream { get; }
bool HasEntityBody { get; }
string[] AcceptTypes { get; }
Encoding ContentEncoding { get; }
long ContentLength64 { get; }
string ContentType { get; }
}
public interface IApiResponse: IDisposable
{
NameValueCollection Headers { get; }
string ContentType { get; set; }
Stream OutputStream { get; }
long ContentLength64 { get; set; }
int StatusCode { get; set; }
string StatusDescription { get; set; }
void Close();
}
The TDD for the whole API was a piece of cake.

.NET Framework design guidelines:
https://msdn.microsoft.com/en-us/library/vstudio/ms229013(v=vs.100).aspx
"Do favor defining classes over interfaces.
In later versions of your library, you can safely add new members to classes; you cannot add members to interfaces without breaking existing code."

Thats not exactly why we didn't do it (we use interfaces other places in the stack). We have 2 layers the feature layer which are all individual feature interfaces and the HttpContext is just a facade over those features. For testing, you should be using the DefaultHttpContext, you can new it up and set all of the properties and makes testing http stuff super easy.

Understood @davidfowl . I have surfed the code and features (Microsoft.AspNet.Http.Features), is the way to go.
Thanks.
A sms to @Tratcher : "Program to an 'interface', not an 'implementation'." (Gang of Four).
I know... I'm a little old man ;)


Copy / paste not working for the status field on OSX

Could have to do with the expanding Textarea React component that is being used.

Possibly related #4068.


Discriminator and per-point scores

Hi, thanks for sharing your implementation.
It looks like the per point discriminator loss described in the main paper is disabled.
In my understanding, the output will be (N+1)x1.
I am wondering that this is intended or?
https://github.com/liruihui/SP-GAN/blob/main/Generation/Discriminator.py#L110

Hi @yushiangw  and @YanhaoZhang, I have same question. From what I see both the max pool and average pool are over all the points. There are no point-wise scores in the discriminator. Were you able to figure it out? Thank you!

Hi, @yushiangw @ShahiraAbousamra @YanhaoZhang I have the same question. They didn't use the point-wise score in the uploaded version. Were you able to figure it out? Thank you!

Thanks for pointing out this issue.
After several checking, we found that the per-point discriminator loss tends to result in unstable training.
Without it, the performance and result are actually slightly better. So I suggest removing it.


How to display image in the window

Hi! I am trying to get this code working
use std::error::Error;

use image::io::Reader;
use image::GenericImageView;
use x11rb::connection::Connection;
use x11rb::protocol::xproto::*;
use x11rb::protocol::Event;

pub fn display_image(
    image_path: &str,
    x: u16,
    y: u16,
    size: u16,
) -> Result<(), Box<dyn Error>> {
    let image = Reader::open(image_path)?.decode()?;
    let (width, height) = image.dimensions();

    let (conn, screen_num) = x11rb::connect(None)?;
    let screen = &conn.setup().roots[screen_num];

    let win = conn.generate_id()?;
    let window_aux = CreateWindowAux::new()
        .border_pixel(screen.black_pixel)
        .event_mask(EventMask::EXPOSURE);

    create_window(
        &conn,
        x11rb::COPY_FROM_PARENT as u8,
        win,
        screen.root,
        x.try_into()?,
        y.try_into()?,
        width.try_into()?,
        height.try_into()?,
        0,
        WindowClass::COPY_FROM_PARENT,
        screen.root_visual,
        &window_aux,
    )?;

    let gc_aux = CreateGCAux::new();
    let gc = conn.generate_id()?;
    create_gc(&conn, gc, win, &gc_aux)?;

    let pixmap = conn.generate_id()?;
    conn.create_pixmap(
        screen.root_depth,
        pixmap,
        win,
        width as u16,
        height as u16,
    )?;

    let data = image.into_rgba8().into_raw();
    conn.put_image(
        ImageFormat::Z_PIXMAP,
        pixmap,
        gc,
        width as u16,
        height as u16,
        0,
        0,
        0,
        screen.root_depth,
        &data,
    )?;

    conn.copy_area(
        pixmap,
        win,
        gc,
        0,
        0,
        0,
        0,
        width.try_into()?,
        height.try_into()?,
    )?;

    conn.map_window(win)?;
    conn.flush()?;

    loop {
        let event = conn.wait_for_event()?;

        if let Event::Expose(_) = event {
            conn.flush()?;
        }
    }
}

However, it just displays window and that's it. I would really appreciate, if you help me to fix it.
By the way, could you kindly explain to me, why do we need infinite loop of event for window to be displayed? Why if we don't do it, it won't be displayed (or will be killed right after displayed)?
Thank you in advance!

I would really appreciate, if you help me to fix it.

You are close to it. The reason it does not work is that you are trying to draw to the window before it is visible. X11 does not keep window content around when it is not visible. There is just the stuff that is shown on screen. If something becomes newly visible, you get an Expose event and have to handle it by redrawing the affected parts. It "works" for me like this:
diff --git a/src/main.rs b/src/main.rs
index c18d1fc..d00a8a7 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -70,18 +70,6 @@ pub fn display_image(
         &data,
     )?;

-    conn.copy_area(
-        pixmap,
-        win,
-        gc,
-        0,
-        0,
-        0,
-        0,
-        width.try_into()?,
-        height.try_into()?,
-    )?;
-
     conn.map_window(win)?;
     conn.flush()?;

@@ -89,6 +77,17 @@ pub fn display_image(
         let event = conn.wait_for_event()?;

         if let Event::Expose(_) = event {
+            conn.copy_area(
+                pixmap,
+                win,
+                gc,
+                0,
+                0,
+                0,
+                0,
+                width.try_into()?,
+                height.try_into()?,
+            )?;
             conn.flush()?;
         }
     }

However, now the colors are off. Pixel formats in X11 are complicated and the image crate does not seem to have anything helpful for this conversion. The short version to get this to work is:
diff --git a/src/main.rs b/src/main.rs
index d00a8a7..6d52e79 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -56,7 +56,12 @@ pub fn display_image(
         height as u16,
     )?;

-    let data = image.into_rgba8().into_raw();
+    let mut data = image.into_rgba8().into_raw();
+    data.chunks_exact_mut(4).for_each(|chunk| {
+        let (c0, c2) = (chunk[0], chunk[2]);
+        chunk[2] = c0;
+        chunk[0] = c2;
+    });
     conn.put_image(
         ImageFormat::Z_PIXMAP,
         pixmap,

The long version goes something like "X11 has the concept of visuals that describe how pixels values are interpreted" and "please look at https://github.com/psychon/x11rb/blob/master/x11rb/examples/display_ppm.rs for an example".

By the way, could you kindly explain to me, why do we need infinite loop of event for window to be displayed? Why if we don't do it, it won't be displayed (or will be killed right after displayed)?

Why the window will be destroyed: When you exit your function, the X11 connection is closed (conn is dropped). When the X11 connection is closed, the X11 server cleans up and destroys everything you created, including the window.
And why you need the loop is hopefully explained by my patch above: Something needs to handle events like requests to redraw parts of the window or input events.
Basically: Because nothing is left that handles the input / deals with it.

Thank you for your comprehensive answers. However I still have some questions:

Why is image quality so low? For example, if I open the same file in inkscape, it looks a lot more nicer. I suspect, it's because of the way pixmap works. But at the end of the day inkscape also makes some calls to xorg and displays its content via the same technique. Where's the trick?:)
Why is that better " I changed the code so that the pixmap is set as the background of your window.", than not having a background at all?
How to make background transparent? (I want to display png with transparent background)

Why is image quality is not that hight?

Uhm. I don't know. While debugging the swapped colors, I opened a JPEG with feh and your program and switched between the two. I couldn't notice any difference between the two images after fixing the colors. So... random guess would be "something with the image crate"? Are you sure this happens for all images? If so, perhaps you could post your test image and a screenshot?

Why is that better " I changed the code so that the pixmap is set as the background of your window.", than not having a background at all?

Well, you (basically) asked for a way to show some image without having to handle events. By setting the pixmap as the background, the X11 server draws it and the program does not have to handle expose events. But I agree that this is in general a bad idea, especially as soon as one stops displaying a simple, static image.

How to make background transparent? (I want to display png with transparent background)

Short version: It's complicated. If possible, don't try to go there.
Long version:
X11 by itself does not have any concept of transparency. This only became possible with the RENDER and COMPOSITE extensions and requires an extra program (the composite manager) to be running, although these days most desktop environments have one built-in.
The cairo example shows how to do it.
Basically:

The RENDER extension introduces something called "picture format". This is basically the same as a visual (describes some color format), but also supports transparency
There is a mapping between picture formats and visuals and the specification requires an ARGB32 picture format to always be present
The ARGB32 picture format as to be found and the corresponding visual is used for creating a window (see choose_visual() in the cairo example)
The RENDER and COMPOSITE extensions are extensions, so could (in theory) not be supported by the X11 server. This is handled via e.g. conn.extension_information(render::X11_EXTENSION_NAME)?.is_some()
Composite managers are optional, so we have to check whether one is running (and in theory even have to handle the cases where a composite manager is starting / stopping while our program is already running, but I guess in practice this extra trouble is not worth it) (see function composite_manager_running)
Once all of this is done, it should be possible to just upload pixel data in ARGB32 format (basically: What the image crate gives you with into_argb8()) with PutImage just as your original program does

Why blue and red colors come swapped from x11 and to put it into x11 we have to swap them as well?

X11 is quite flexible in how it can work with colors. The details about how colors are represented are described in a visual. These days, most X11 server have a similar visual as the default visual. "Back in the day", things where complicated.
Anyway, let's look at my current X11 server. xdpyinfo is a tool that dumps the information that you can get from conn.setup() in a human readable format.
First, what is the number of the default visual? In x11rb, this is something like setup().roots[0].root_visual
$ xdpyinfo | grep 'default visual id'
  default visual id:  0x21

This 0x21 is just an arbitrary number. What does it mean? In x11rb, one has to dig through setup().roots[0].allowed_depths and its contained values to get this information (because X11 represents things this way..).
$ xdpyinfo | grep -A 5 0x21
  default visual id:  0x21
  visual:
    visual id:    0x21
    class:    TrueColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff0000, 0xff00, 0xff
    significant bits in color specification:    8 bits

So, this visual has a depth of 24 pixels. TrueColor basically means that colors are represented the way that you expect it to. The most significant byte is red, then comes green, then blue (this info comes from the masks).
Last piece of information (x11rb: setup().pixmap_formats):
$ xdpyinfo| grep 'depth 24'
    depth 24, bits_per_pixel 32, scanline_pad 32

So for a visual with depth 24, pixels are arranged into 32 bit quantities.
To summarize:

Each pixel is a u32
With color order rgb
Thanks to little endian, this means that the order of the components in-memory is bgrX (where X is unused)

And for the image crate: into_rgba8() produces a series of u8 values, where each group of 4 describes a pixel with the first being the red component, the next one green etc.
To turn rgbX into bgrX, one has to swap the first and third byte, which the code above does.
Now... that's the part about how to figure out this stuff. As to why the X11 server chooses to represent colors this way: I don't know. But e.g. the cairo library also does the same (32 bit quantity in native endianness): https://cairographics.org/manual/cairo-Image-Surfaces.html#cairo-format-t
So, to me the question is rather: Why does the image crate represent a color as a series of bytes instead of a single quantity in native endianness? But I guess in the end that's a matter of taste...

Idk, to me representing RGB in the ordered rgb is quite natural:) But the question is then, I guess, why it was chosen to use little endian and this order of bytes, such that red and blue are getting swapped ... I mean, I would guess that the answer might be "it's historical thing". But the fact that cairo also uses makes me wondering if there is some more profound reason for it ...

But the fact that cairo also uses makes me wondering if there is some more profound reason for it ...

AFAIK cairo started as a library called Xr. Google found https://www.cairographics.org/xr_ols2003/. From that page:

Xr provides a vector-based rendering API with output support for the X Window System and local image buffers. PostScript and PDF file output is planned.

So I would guess that cairo inherited this from X11.

So, it means that this is more or less just the case for X11? (switching red and blue)

I don't know. I am only really around cairo / X11. I know that gdk-pixbuf also has an endian-independent pixel format (unlike cairo / X11). Uhm.... that's about the only other library that comes to my mind right now.


[Support Request] How do I silence the extra copy of django 500 errors that Raven is producing?

My boss asked me to integrate Sentry logging into our django projects, and I was pleasantly surprised by the sheer ease of installation. However, I'm now frustrated because I'm getting 2 Sentry events for every 500 error, and I don't know how to silence the one I don't want.
What appears to be happening is that Sentry is logging every exception that my app throws, even when Sentry hasn't been configured in the LOGGING dictionary. So when I do configure it in LOGGING (I only want it to log errors from the django.request logger), I get two Sentry events: one for the raw exception, and one for the 500 error sent to django.request. Here's what that looks like in my Sentry logs: http://i.imgur.com/QuruFZZ.png
I want to remove the one that doesn't have a custom tag. How do I do that? I've tried setting every logger I could find in the Raven codebase to the 'null' logging handler, but that doesn't seem to help.

To preface this, it's important to know Sentry is not logging. That also means we aim to integrate outside of logging. in Django's case, we hook a signal to do this. If you want to also capture events that happen in logs, you should configure LOGGING to bypass the Sentry handler in the cases that would also trigger the Django error handler (which is likely on in django.request)
If you want to add tags to request, you should approach it from a contextual perspective. That is, use client.tags_context(...), which should get picked up by the signal handler.

I want exactly the opposite of what you just said. I want Sentry to only activate in response to a logging event on the django.request logger. How do I disable the message that's sent to Sentry for exceptions? Something to do with signals?

@coredumperror we don't support logging-only integrations in Django with the automated configuration. You can do it yourself by not using the Django integration, but fighting against these things will probably lead you to other limitations. As I mentioned, we're not log integration -- we aim to be crash reporting, which is why we hook into signals when possible.

So you're saying there's no way whatsoever to disable the crash report message being sent to Sentry?

The Django integration is what includes the hooks. If you don't want those hooks you can simply choose not to use the Django integration and wire up your application however fits. The obvious caveats here being that you have to assume you're better at wiring things up than the collective we are:
https://docs.getsentry.com/hosted/clients/python/integrations/logging/

Ah, so all I had to do was not put raven.contrib.django.raven_compat into my INSTALLED_APPS. I learned how to hook sentry into logging here:
https://docs.getsentry.com/hosted/clients/python/integrations/django/#integration-with-logging
I hadn't realized that the raven.contrib.django.raven_compat.handlers.SentryHandler class was usable independently from INSTALLED_APPS entry.

You might hit issues by using the Client and not having it in INSTALLED_APPS, but I'm definitely nota ware of any. It's primarily there to hook loading signals.


msal-logging-dotnet.md - Updates to MSAL logging documentation

msal-logging-dotnet.md - Updates to MSAL logging documentation
active-directory-develop-error-logging-introduction.md - Updates to MSAL logging documentation

Hi @mmacy, I want to make some updates to the MSAL logging documentation.
Which parts of the header should I update?
description: Learn how to log errors and exceptions in MSAL.NET
services: active-directory
author: mmacy
manager: CelesteDG
ms.service: active-directory
ms.subservice: develop
ms.topic: conceptual
ms.workload: identity
ms.date: 01/25/2021
ms.author: marsma
ms.reviewer: saeeda, jmprieur
ms.custom: aaddev

@jmprieur @bgavrilMS

@mmacy - Can you review this PR?
IMPORTANT: When this content is ready to merge, you must add #sign-off in a comment or the approval may get overlooked.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@trwalke I believe these changes have been moved to https://github.com/MicrosoftDocs/azure-docs-pr/pull/208947, so closing this one out.
#please close
Also, looks like @davidmu1 has approved your changes in that PR, so you are cleared to #sign-off on the PR to have it merged.

#please-close


Cannot populate the list of selected items from the controller

I am trying something like this in my controller:
GroupsService.getAllUsersByGroup.query({id: idToEdit}).$promise.then(function (resp) {
                $scope.selectedUsers = resp;
                //selectedUsers is populated, but the list is not refreshed
                console.log(resp);
                groupDataLoaded = true;
});

And in my view I have this:
<select ng-model="selectedUsers" ng-options="u as u.username for u in users" multiple bs-duallistbox move-on-select="false">
</select>

I need to display the already selected users in the right list and the rest of the users in the left one when my page loads (sort of an update group feature). My problem is: I can select users from the list on the left, but not from the controller. Two way binding just doesn't seem to work for me.
No idea if this is a bug or not an included feature.

Can you please add a plnkr?

I'm having the same issue as HansFritz.  When loading the available items, and the already selected items (same format of multi-select data in both lists), only the available items appear.  It seems like the ng-model isn't binding to the collection.  If you've got code to bind  / or watch, I'll take a look in your directive (or wire one up).  The Plnkr thing is difficult, because I'm working with live data ... I suspect that's why you didn't hear back from HansFritz as well.

You can simulate live data with hardcoded ones.

Here ya go.  Can you tell me what looks wrong (aside from the button styles of course).  http://plnkr.co:80/kEOFaj3A22YCw6BmXxMi

Confirmed bug.
http://plnkr.co/edit/iyi08XKqc5Lvhycf6tDU?p=preview

You have to use "track by" instead "as" in ng-options
Instead this:
 <select ng-model="selected" ng-options="av as av.name for av in available" multiple bs-duallistbox></select>

Uses:
 <select ng-model="selected" ng-options="av.name for av in available track by av.id" multiple bs-duallistbox></select>

I am having the same issue
@jean-merelis Your solution worked for me


prep.sh logic to shortcut artifact downloads no longer works

It looks like this was caused by https://github.com/dotnet/installer/pull/15774.
If you run prep.sh back to back, the artifacts are downloaded multiple times.  The intended behavior is to no-op if the artifacts already exist.

This was fixed with https://github.com/dotnet/installer/pull/15954.


Server: Option to specify which interfaces to use

Summary & Motivation
As requested at #544, it can be useful to bind DPS to one o more but specific network interfaces, by default DPS binds to all interfaces to make it easier to use, at the same time it can become unwanted or insecure when in more production like usecases.
Description
Create configs to decide which interfaces will be used to bind to the tcp/udp dns and web server
{
  "serverNetworkBindInterface": "en6" ,
  "dnsServerNetworkBindInterface": "en6",
  "webServerNetworkBindInterface": "en6"
}

Where networkBindInterfacecan be a name ex en6 or a mac address, ex: acde48001122, ACDE48001122, ac:de:48:00:11:22, AC:DE:48:00:11:22

All configs will be default to null, which means all interfaces will be binded (<IP_ADDRESS>)
serverNetworkBindInterface will apply to both DNS and Web server
dnsServerNetworkBindInterface and webServerNetworkBindInterface will override the serverNetworkBindInterface config

Alternatives
Run DPS inside a docker container to prevent DPS to bind to unwanted interfaces at the host.

DPS has matured into a versatile tool.  I think it is time it was included in DNS comparison table!


Pull request: Update Japanese Translation for Ideo v1.5.4

Update Japanese Translation for Ideo v1.5.4

Thank you merged!


client: fix goroutine leak in unreleased context

If headerTimeout is not zero then two contexts are created but only one is released.
cancelCtx in this case is never released which leads to goroutine leak inside it.

Thanks for your contribution @nordligulv .
Could you change your PR format to this?
You can do:
client: fix goroutine leak in unreleased context

[CONTENTS]

Done

Thanks! LGTM


The utility is not loading and failing with System.IO.FileNotFoundException:

Since the last update, not able to load the utility and the below error is shown:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.IO.FileNotFoundException: Could not load file or assembly 'XrmToolBox.PluginsStore, Version=1.2023.1.63, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
File name: 'XrmToolBox.PluginsStore, Version=1.2023.1.63, Culture=neutral, PublicKeyToken=null'
at Fic.XTB.FlowExecutionHistory.Services.ApplicationInsights.LogEvent(String eventName)
at Fic.XTB.FlowExecutionHistory.FlowExecutionHistory.FlowExecutionHistory_Load(Object sender, EventArgs e)
at System.Windows.Forms.UserControl.OnLoad(EventArgs e)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

You can try to fix it by updating the XTB version, or just follow the steps from this blog post: https://jonasr.app/missing-xrmtoolbox-pluginsstore

Thanks @DynamicsNinja  - now it is working.  Seems this issue is related to XRMtoolbox's update and not this utility.  is this a known issue of occurring with the updates ?

the issue is resolved now.


Fix broken server tests

Some server tests were failing because code was commented out. This PR re-instates that code, which may be problematic, but brings the code & tests back into agreement (a better starting point for model revisions).

Server tests are still broken. I think the fixes is uncommenting a line in utils.py and models.py. The commit that broke everything is here: https://github.com/Cal-CS-61A-Staff/ok/commit/79b65bcc56039478d66052a750af51f79ee5bc63

Hmm, tests pass locally for me, and I did previously make those changes to utils.py that you chatted me.
Travis died with an unrelated error.
The command "if [[ $TRAVIS_PYTHON_VERSION == "2.7" ]]; then wget https://storage.googleapis.com/appengine-sdks/featured/google_appengine_1.9.15.zip -o gae_sdk.zip; fi" failed and exited with 8 during .

It's the google app engine version... I think we'll just occasionally have to bump it when the wget command fails. There's no "get latest" command to make this easier, but I did pull it into a file.
Anyway, LGTM. Merging now.


add an acceptDuration option to the parseMoment API

To support cases in which a caller may not know ahead of time whether
an expression should return a moment or a duration, but wants the
parser to convert the input into a moment.js object, add support
for an acceptDuration option to the parseMoment API function.

@welch / @dmajda what do you guys think about this?

I could not come up with a need for accepting both, imagining that any bit of code expecting both types could be decomposed into two different calls at the point where it would've had to test the _isAMomentObject property. Is that not correct?
anyway, if needed, i slightly prefer parseMomentOrDuration() over a flag to parseMoment.

Hmm.. I'll think about that for a bit. The reason I thought it might be needed is that I want to excise the details of the moment grammar from the Juttle compiler code generator.
Originally I thought I'd want to get at the moment or duration value right away in the parsing phase, but it turns out that will be complicated by the fact that :now: isn't yet defined when parsing the program. So I think I'll end up explicitly calling parse separately from generate so I don't need this after all.


[SPARK-41721][CONNECT][TESTS] Enable doctests in pyspark.sql.connect.catalog

What changes were proposed in this pull request?
This PR proposes to enable doctests in pyspark.sql.connect.catalog that is virtually the same as pyspark.sql.catalog.
Why are the changes needed?
To make sure on the PySpark compatibility and test coverage.
Does this PR introduce any user-facing change?
No, test-only.
How was this patch tested?
CI in this PR should test this out.

Merged to master.


How can I change the actual shape of the node?

Basically, I want to make a basic flowchart shapes, is there any way to do it?

You just need to provide a style option to your object like this :
<ReactFlow             elements={[               {                 id: '1',                 type: 'input',                 data: { label: 'Node 1' },                 position: { x: 250, y: 5 },                 **style: {                   border: '1px solid black',                   width: '80px',                   height: '80px',                   borderRadius: '50%',                   display: 'flex',                   alignItems: 'center',                   justifyContent: 'center',                 },**               },             ]}           ></ReactFlow>

I've tried this approach but I've encountered a problem, You need to use skew() to create a Parallelogram, but if you do it the Label text will also be affected. As you can see in the image, and I think we will encounter another problem in other shapes as well, I think this is a really good enhancement for this library if this will be done easily, Or even builtin shapes options will do. Maybe we can just add .{.., shape: "circle | rectangle | diamond | parallelogram | Document |, etc.." }.

As workaround, you can create your own custom node of new type (parallelogram), and pass a nodeTypes object to the ReactFlow component like that :
nodeTypes={{
  parallelogram: YourCustomNode
}}

check Node Types & Custom Nodes section for more details https://reactflow.dev/docs/api/node-types/
Now you should create YourCustomNode using handles (check Handle Component section :  https://reactflow.dev/docs/api/handle/ )
As example I create parallelogram custom node (Typography is material UI component) :
<>
      <Handle
        type="target"
        position="left"
        // style={{ background: '#555' }}
        onConnect={(params) => console.log('handle onConnect', params)}
      />
      {/* <Grid container justify="space-around">
        <ReceiptIcon />
        <Typography>{label}</Typography>
      </Grid> */}
      <Typography
        align="center"
        style={{ textTransform: 'capitalize', fontSize: '12px',  transform:'skew(-10deg, -10deg)' }}
      >
        {label}
      </Typography>
      <Handle
        type="source"
        position="right"
        // style={{ background: '#555' }}
        onConnect={(params) => console.log('handle onConnect', params)}
      />
    </>

And now just call you ReactFlow component with your custom element ( type: 'parallelogram' ) with skew(10deg, 10deg) and reverse the skew with  skew(-10deg, -10deg)  in your custom node Typography styling in above.
<ReactFlow
            elements={[
              {
                id: '1',
                type: 'parallelogram',
                data: { label: 'Node 1' },
                position: { x: 250, y: 5 },
                style: {
                  border: '1px solid black',
                  width: '150px',
                  height: '150px',
                  display: 'flex',
                  alignItems: 'center',
                  justifyContent: 'center',
                  transform: 'skew(10deg, 10deg)',

                },
              },
            ]}
            nodeTypes={nodeTypes}
          ></ReactFlow>

This is just a workaround, maybe there is a way to handle this just with css, but I am not good in it, so I hope this help.

Thank you. I will try this.

thanks @yasserbouchareb 👍


Datepicker Not Working for HTTPS connection

Amsul datepicker does not work if your connection is secure , it works only for insecure connection for http

Please provide more details and check your browser console for errors.

Included all files but still the error exists

Please check the browser console and network requests in the devtools.

How to solve this

Error Facing
was loaded over HTTPS, but requested an insecure script 'http://amsul.ca/pickadate.js/vendor/pickadate/lib/picker.js'. This request has been blocked; the content must be served over HTTPS.
please suggest any methods asap

Please download / install the release with npm or manually and do not use amsul.ca as CDN.


[bug] content harvester is possibly not creating thumbnails for physicalobject types (linked Nuxeo collections as examples)

The frontend seems to need direction for type "physical object" -- I think the legacy system treated these as images, since that's how they are digitally represented, for the most part. (Or, I'm unsure if the object viewer is getting direction from elsewhere, such as Nuxeo document type.)
Here are some examples, all of which are brand new to Rikolti:

[ ] 28197: https://calisphere-stage.cdlib.org/collections/28197/ -- This collection has 1 complex object, with 0 main content files & 10 component objects. The main content file is set to "physicalobject" https://nuxeo.cdlib.org/nuxeo/nxdoc/default/1d668a51-2be1-447a-baad-b897d310a67f/view_documents
[ ] 28199: https://calisphere-stage.cdlib.org/collections/28199/ -- This collection has 23 objects, many of which are complex. The main content file is set to "physicalobject" https://nuxeo.cdlib.org/nuxeo/nxdoc/default/359d4688-f210-46a4-b6c5-139dd7b7e33a/view_documents
[ ] 28201: https://calisphere-stage.cdlib.org/collections/28201/ -- This collection has 7 objects, many of which are complex. The main content file is set to "physicalobject" https://nuxeo.cdlib.org/nuxeo/nxdoc/default/359d4688-f210-46a4-b6c5-139dd7b7e33a/view_documents

Here's an example collection that was harvested through the legacy system:

[ ] 26864: https://calisphere.org/collections/26864/ -- This collection has 107 objects, many of which are complex. The main content file is set to "physicalobject" https://nuxeo.cdlib.org/nuxeo/nxdoc/default/04aa4743-3f32-4566-9c70-693e05f925b4/view_documents

I tried to get this into -stage but ran into a content_harvest error (see #783)

It looks like thumbnail is not getting into the metadata during the content harvest, even though thumbnail_source is populated:
https://search-rikolti-rzmyz6hutev35hrn33azom7oxy.us-west-2.es.amazonaws.com/rikolti-stg/_search?q=collection_url:28199

thumbnail_source specifies a source of "empty_picture.png": https://search-rikolti-rzmyz6hutev35hrn33azom7oxy.us-west-2.es.amazonaws.com/rikolti-stg/_search?q=collection_url:28199
As a rule, we don't harvest placeholder images like the "empty_picture.png" Nuxeo image:

@amywieliczka oh whoops, I totally missed that it was empty_picture.png

Closing as these physicalobject records are digitally represented as images, and are displaying in the object viewer.


[*] change URLs and packages to github.com/cybertec-postgresql/pgwatch

Pull Request Test Coverage Report for Build<PHONE_NUMBER>0
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 28.809%

Totals

Change from base Build<PHONE_NUMBER>0:
0.0%

Covered Lines:
1335

Relevant Lines:
4634

💛  - Coveralls


CSB Training/On-boarding Sessions

CSB is moving away from onboarding sessions, and will be focusing on providing  PDF or video materials


Support for title properties on circle layers

For circle layers with mediatype application/vnd.simplestyles-extended while adding L.Circle objects a popover should be attached if the feature has title and/or description attribute present as implemented by mapbox.js for application/geo+json layers.

There is an example from the Mapbox docs

There is an example from the Mapbox docs

@n0rdlicht do you happen have an example snapshot on stage (or somewhere else) where circles have these attributes that i could test this feature with?

Updated an old example to have both title and description fields: https://stage.gemeindescan.ch/de/FQJYNA/

I created a new branch circle-clickable and implemented this feature. @n0rdlicht Do you want to test it there or should i merge it to main?

Thanks. I'll have a look and let you know.

Seems to work as expected, feel free to merge and close.


Some rephrasings

Inspired by https://github.com/Codeception/Codeception/issues/6026#issuecomment-748587525
Main goal: Deleting the multiple PhpBrowser/Framework dependency.
Question: What is &url in this line? Typo?:
url: &url 'http://serviceapp/api/v1/' # you only need the &url anchor for further PhpBrowser configs

Just found out myself: It's the "definition" for what is referred to later with url: *url.
Is this YAML standard or a Codeception "invention"? And how many occurrences of *url can possibly happen? If it's just 1 (as in the given example), I'd say this concept can be dropped (i.e. removed from docs), since trying to explain/understand it is way more complicated than just copying the full url...

It is a YAML feature: https://github.com/Codeception/module-rest/pull/15

OK, thanks! I now moved this use case into a separate code block. Now the page starts with the simple config (which is probably enough for most users). The &url/*url syntax is so uncommon, and the concept is so hard to explain ("you only need this if you have that" twice), that I think this is impossible to show in one code block without confusing users ;-)
@igorsantos07 you introduced this in https://github.com/Codeception/module-rest/pull/15 - please take a look.


install issue - undefined: fVerbose

While running:
go get -u cuelang.org/go/cmd/cue
I get:
cmd/cue/cmd/vet.go:66:7: undefined: fVerbose
https://github.com/cuelang/cue/blob/master/cmd/cue/cmd/vet.go#L66

Sorry about that. Fixed.

This issue has been migrated to https://github.com/cue-lang/cue/issues/34.
For more details about CUE's migration to a new home, please see https://github.com/cue-lang/cue/issues/1078.


Add jax.scipy.stats.binom

Adds pmf and logpmf; Fixes #16550

CI failure is unrelated; seems to be due to https://github.com/tensorflow/tensorflow/pull/56908#issuecomment-1608926955

@jakevdp Are jax.scipy.stats.binom and jax.scipy.stats.nbinom missing from the documentation?

Thanks for the note - Yes, it looks like they're missing. I'll add them!


[Question] eggs update -g flag missing

The -g flag that was used to update global installations seems to be gone. Could you clarify why that happened?
Also, the feature is still documented in README and hatcher still hints at doing eggs update -g when there is a new version available.

Hi @tranzystorek-io
The -g flag was indeed used to update global installations, but this had a few drawbacks.
Due to the nature of Deno, it is difficult to guess the structure of a project and how it evolves.
That's why we decided to hand over this work to the module authors, letting eggs update the modules often brought more problems than it solved.
The code was migrated from eggs to hatcher and some changes were made.
If an author decides to add hatcher to his module, then it is his responsibility to give the command to be executed to update the module. If a user installs a module with hatcher, now there is no command to run, the user is prompted to check the command when notified of an update.

Also, the feature is still documented in README and hatcher still hints at doing eggs update -g when there is a new version available.

Thanks for noticing this, the readme will be fixed.
eggs is still unstable and subject to changes, but the stable version is mostly ready.

I see. It's a shame since I've been looking forward to using nest and eggs as a "one source of truth" package management solution for deno.
Thank you for taking your time to write a detailed explanation anyway! 😄


Use crlf by default in test

Use CRLF instead of system one when generating test files by default.
Todo: run on Mac/Unix machine

:+1:

:+1:


unix: harden string copying, introduce strscpy()

Replace calls to strcpy() and strncpy() with the newly introduced
uv__strscpy() function that is meticulous about zero-terminating
the destination buffer.
Refs: https://www.kernel.org/doc/htmldocs/kernel-api/API-strscpy.html
CI: https://ci.nodejs.org/job/libuv-test-commit/1091/

Add

Nit: why the unix: in the title? IIUC it's used on windows as well via UV_ERR_NAME_GEN_R

Because there were no strcpy/strncpy calls in src/win that I could find. (There are a few wcscpy/wcsncpy calls but I didn't touch those; something for another day.)
You're right the one in src/uv-common.c is win32+unix but the bulk of this PR is unix only.

Included feedback and rebased against v1.x HEAD: https://ci.nodejs.org/job/libuv-test-commit/1120/

Once more to see if the macos11 failure is a flake: https://ci.nodejs.org/job/libuv-test-commit/1121/


Condition in Custom render

Is it possible to have condition on the custom render?
When using this code it will not show any labels at all.
If the Pie has a lot of small pieces it will be nice to choose to not show them.
pieceLabel: {             render: function (args) {                 if (args.percentage > 5)                      return args.label;             },             fontColor: '#000',             position: 'outside',             segment: true }

Please upgrade to v0.10.0, and you can try something like below.
render: function (args) {
  if (args.percentage < 1) {
    return '';
  } else {
    return args.label;
  }
}


Look into visual regression testing or other ways to avoid breaking the frontend

Unit tests for frontends can be a high maintenance cost and often don't provide good coverage anyway. We might want to look into visual regression testing, where we have a pre-submit rule that automatically diffs site images before and after and shows the difference. There might be other alternatives to this that accomplish a similar thing

We have basic e2e testing with Playwright now; this could be extended to included some visual regression testing


(chore) throttle deprecation messages

Resolves #3069.
Changes
I've added a simple object map to keep track of already logged deprecations so they would not be logged multiple times.
I've manually tested that the following code now only logs one deprecation message:
function highlight(code) {
  return hljs.highlight("java", code, false);
}

highlight(code);
highlight(code);
highlight(code);

Checklist

[x] Added markup tests, or they don't apply here because... does not change markup. could not find any existing logger tests so did not add any either.
[x] Updated the changelog at CHANGES.md

Looks like depd has limited or no browser support - what would be recommended to use here instead? util-deprecate looks popular but that does not have per-callsite logging.

@mihkeleidast Thanks so much!


Fix markdown formatting

Section headings are not rendered properly. This looks bad and breaks TOC links. I don't know if something changed in GitHub's rendering...
I hope I didn't forget anything.

Heh you beat me to it, and far more complete! So I'll close #14
Just noticed something else though - there should be a blank line between 284 and 285 to separate the headings. Ta!

Thank you, @musiKk!


fix(diskutil): Fix devices being null without errors after a system sleep/stand-by

I added this module to my electron app and noticed a lot of errors when returning my computer from a sleep state. After some digging I found out that globalList in diskutil.js (line 159) can be null while no errors are given.

[x] Tests added
[x] Linter passes

I also noticed there is no error check in the async map on lib/diskutil.js line 165. For now I have added a check for drive in the hasDeviceNode method, so the async map should callback an error with an empty list of drives. Another option is to have error handling there but that might brake some code since people might not have error checks in place for a missing devices list.

@jhermsmeier I processed your feedback, also removed the === commit

Neat, thanks again!


in the clean filter, auto-detect checkpoint handler based on file extension

let me know if it'd be interesting to contribute this!
(Example collection on HF with some pushed end2ends from git-theta: https://huggingface.co/collections/julien-c/git-theta-6630db4045e53fe3e2ac3108)

I think this would be a cool addition, I would say to two things we would want in an implementation would be:

For it to be possible to override the checkpoint handler (for example, the GIT_THETA_CHECKPOINT_TYPE env variable defaults to "sniff" which does autodetect, but you can manually set it to force git-theta to use a specific one)
We would want to avoid having to enumerate checkpoint types in git-theta itself. Maybe we would need something like a new git_theta.plugins.checkpoints_sniff plugin entry point and then each handler implementation can provide and register a sniff function. Then the git-theta sniff function would load/run the sniffer for each plugin until one of the sniffers says "yeah, this is a checkpoint I can open"

As a further extension to this idea (which def isn't needed in an initial implementation), some checkpoint formats have magic numbers (pytorch does https://pytorch.org/docs/stable/_modules/torch/serialization.html) which might be possible to use in a plugin's sniffer to do fancier things than just looking at the filenames (although I'm not sure how easy it is to peek at the stdin pipe (used in the filters) without consuming it).
I'm pretty busy atm, but I would be happy to help anyone who wants to implement this and it get merged.


error when downloading centos image on debian 9 kvm vm

Is this a BUG REPORT or FEATURE REQUEST?:
kind bug
Description

Steps to reproduce the issue:

Build podman on debian 9 as per the documentation found here

Run podman pull centos as non-root user

Describe the results you received:
$ podman pull centos
Trying to pull docker.io/centos:latest...Getting image source signatures
Copying blob sha256:aeb7866da422acc7e93dcf7323f38d7646f6269af33bcdb6647f2094fc4b3bf7
 71.24 MB / 71.24 MB [======================================================] 4s
Copying config sha256:75835a67d1341bdc7f4cc4ed9fa1631a7d7b6998e9327272afea342d90c4ab6d
 2.13 KB / 2.13 KB [========================================================] 0s
Writing manifest to image destination
Storing signatures
ERRO[0012] Error while applying layer: ApplyLayer exit status 1 stdout:  stderr: operation not permitted
Failed
Trying to pull registry.fedoraproject.org/centos:latest...Failed
Trying to pull registry.access.redhat.com/centos:latest...Failed
error pulling image "centos": unable to pull centos: 3 errors occurred:

* Error committing the finished image: error adding layer with blob "sha256:aeb7866da422acc7e93dcf7323f38d7646f6269af33bcdb6647f2094fc4b3bf7": ApplyLayer exit status 1 stdout:  stderr: operation not permitted
* Error determining manifest MIME type for docker://registry.fedoraproject.org/centos:latest: Error reading manifest latest in registry.fedoraproject.org/centos: manifest unknown: manifest unknown
* Error determining manifest MIME type for docker://registry.access.redhat.com/centos:latest: Error reading manifest latest in registry.access.redhat.com/centos: unknown: Not Found

$ podman pull fedora
Trying to pull docker.io/fedora:latest...Getting image source signatures
Skipping fetch of repeat blob sha256:d0483bd5a55488f5ba6383a5cc8553d5101864f03acd07eabc5df7563c3692cf
Copying config sha256:8c568f1043264e34f0a8774587266565c7e5e54e9ea6b97ab459086d18ac5175
 2.29 KB / 2.29 KB [========================================================] 0s
Writing manifest to image destination
Storing signatures
8c568f1043264e34f0a8774587266565c7e5e54e9ea6b97ab459086d18ac5175

$ podman pull alpine
Trying to pull docker.io/alpine:latest...Getting image source signatures
Copying blob sha256:4fe2ade4980c2dda4fc95858ebb981489baec8c1e4bd282ab1c3560be8ff9bde
 2.10 MB / 2.10 MB [========================================================] 0s
Copying config sha256:196d12cf6ab19273823e700516e98eb1910b03b17840f9d5509f03858484d321
 1.48 KB / 1.48 KB [========================================================] 0s
Writing manifest to image destination
Storing signatures
196d12cf6ab19273823e700516e98eb1910b03b17840f9d5509f03858484d321

Describe the results you expected:
To be able to pull the CentOS image just like all the others
Additional information you deem important (e.g. issue happens only occasionally):
Output of podman version:
$ podman version
Version:       0.11.2-dev
Go Version:    go1.10.3
Git Commit:    "3af62f620a4d4ed21db58e71f9ba7ace242ec742"
Built:         Fri Nov 30 15:23:37 2018
OS/Arch:       linux/amd64

Output of podman info:
$ podman info
host:
  BuildahVersion: 1.5-dev
  Conmon:
    package: Unknown
    path: /usr/libexec/podman/conmon
    version: 'conmon version 1.12.0-dev, commit: 41da37363adc16f343ee90c514ce1be73631fa7d'
  Distribution:
    distribution: debian
    version: "9"
  MemFree:<PHONE_NUMBER>
  MemTotal:<PHONE_NUMBER>
  OCIRuntime:
    package: Unknown
    path: /usr/bin/runc
    version: |-
      runc version 1.0.0-rc6+dev
      commit: 4932620b6237ed2a91aa5b5ca8cca6a73c10311b
      spec: 1.0.1-dev
  SwapFree: 0
  SwapTotal: 0
  arch: amd64
  cpus: 4
  hostname: penguin
  kernel: 4.14.67-07156-gc116f2c8c400
  os: linux
  rootless: true
  uptime: 123h 16m 24.13s (Approximately 5.12 days)
insecure registries:
  registries: []
registries:
  registries:
  - docker.io
  - registry.fedoraproject.org
  - registry.access.redhat.com
store:
  ContainerStore:
    number: 0
  GraphDriverName: vfs
  GraphOptions: []
  GraphRoot: /home/maxamillion/.local/share/containers/storage
  GraphStatus: {}
  ImageStore:
    number: 0
  RunRoot: /run/user/1000

Additional environment details (AWS, VirtualBox, physical, etc.):
Debian 9 KVM virtual machine

@maxamillion I'm able to pull  that same image as a non-root.  Does --log-level=debug reveal anything odd?  Also, Id be curious if something like podman --root /tmp/foobar centos behaves any differently?

This could be that User Namespace is not setup correctly and a UID is attempting to be written that does not exists in the users userns.

@rhatdan I --root /tmp/foobar didn't net a different result, here's the output from --log-level=debug
DEBU[0000] GET https://registry-1.docker.io/v2/
DEBU[0000] Ping https://registry-1.docker.io/v2/ status 401
DEBU[0000] GET https://auth.docker.io/token?scope=repository%3Alibrary%2Fcentos%3Apull&service=registry.docker.io
DEBU[0000] GET https://registry-1.docker.io/v2/library/centos/manifests/latest
DEBU[0001] Source is a manifest list; copying (only) instance sha256:dc29e2bcceac52af0f01300402f5e756cc8c44a310867f6b94f5f7271d4f3fec
DEBU[0001] GET https://registry-1.docker.io/v2/library/centos/manifests/sha256:dc29e2bcceac52af0f01300402f5e756cc8c44a310867f6b94f5f7271d4f3fec
DEBU[0001] IsRunningImageAllowed for image docker:docker.io/library/centos:latest
DEBU[0001]  Using default policy section
DEBU[0001]  Requirement 0: allowed
DEBU[0001] Overall: allowed
DEBU[0001] Downloading /v2/library/centos/blobs/sha256:75835a67d1341bdc7f4cc4ed9fa1631a7d7b6998e9327272afea342d90c4ab6d
DEBU[0001] GET https://registry-1.docker.io/v2/library/centos/blobs/sha256:75835a67d1341bdc7f4cc4ed9fa1631a7d7b6998e9327272afea342d90c4ab6d
Getting image source signatures
DEBU[0001] Manifest has MIME type application/vnd.docker.distribution.manifest.v2+json, ordered candidate list [application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.v1+prettyjws, application/vnd.oci.image.manifest.v1+json, application/vnd.docker.distribution.manifest.v1+json]
DEBU[0001] ... will first try using the original manifest unmodified
Copying blob sha256:aeb7866da422acc7e93dcf7323f38d7646f6269af33bcdb6647f2094fc4b3bf7
DEBU[0001] Downloading /v2/library/centos/blobs/sha256:aeb7866da422acc7e93dcf7323f38d7646f6269af33bcdb6647f2094fc4b3bf7
DEBU[0001] GET https://registry-1.docker.io/v2/library/centos/blobs/sha256:aeb7866da422acc7e93dcf7323f38d7646f6269af33bcdb6647f2094fc4b3bf7
DEBU[0002] Detected compression format gzip
 0 B / 71.24 MB [--------------------------------------------------------------]DEBU[0002] Using original blob without modification
 71.24 MB / 71.24 MB [======================================================] 6s
Copying config sha256:75835a67d1341bdc7f4cc4ed9fa1631a7d7b6998e9327272afea342d90c4ab6d
DEBU[0008] No compression detected
 0 B / 2.13 KB [---------------------------------------------------------------]DEBU[0008] Using original blob without modification
 2.13 KB / 2.13 KB [========================================================] 0s
Writing manifest to image destination
Storing signatures
DEBU[0008] Start untar layer
ERRO[0009] Error while applying layer: ApplyLayer exit status 1 stdout:  stderr: operation not permitted
DEBU[0009] Error pulling image ref //centos:latest: Error committing the finished image: error adding layer with blob "sha256:aeb7866da422acc7e93dcf7323f38d7646f6269af33bcdb6647f2094fc4b3bf7": ApplyLayer exit status 1 stdout:  stderr: operation not permitted
Failed
Trying to pull registry.fedoraproject.org/centos:latest...DEBU[0009] Using registries.d directory /etc/containers/registries.d for sigstore configuration
DEBU[0009]  No signature storage configuration found for registry.fedoraproject.org/centos:latest
DEBU[0009] Looking for TLS certificates and private keys in /etc/docker/certs.d/registry.fedoraproject.org
DEBU[0009] GET https://registry.fedoraproject.org/v2/
DEBU[0009] Ping https://registry.fedoraproject.org/v2/ status 200
DEBU[0009] GET https://registry.fedoraproject.org/v2/centos/manifests/latest
DEBU[0009] Error pulling image ref //registry.fedoraproject.org/centos:latest: Error determining manifest MIME type for docker://registry.fedoraproject.org/centos:latest: Error reading manifest latest in registry.fedoraproject.org/centos: manifest unknown: manifest unknown
Failed
Trying to pull registry.access.redhat.com/centos:latest...DEBU[0009] Using registries.d directory /etc/containers/registries.d for sigstore configuration
DEBU[0009]  No signature storage configuration found for registry.access.redhat.com/centos:latest
DEBU[0009] Looking for TLS certificates and private keys in /etc/docker/certs.d/registry.access.redhat.com
DEBU[0009] GET https://registry.access.redhat.com/v2/
DEBU[0010] Ping https://registry.access.redhat.com/v2/ status 200
DEBU[0010] GET https://registry.access.redhat.com/v2/centos/manifests/latest
DEBU[0010] Error pulling image ref //registry.access.redhat.com/centos:latest: Error determining manifest MIME type for docker://registry.access.redhat.com/centos:latest: Error reading manifest latest in registry.access.redhat.com/centos: unknown: Not Found
Failed
ERRO[0010] error pulling image "centos": unable to pull centos: 3 errors occurred:

* Error committing the finished image: error adding layer with blob "sha256:aeb7866da422acc7e93dcf7323f38d7646f6269af33bcdb6647f2094fc4b3bf7": ApplyLayer exit status 1 stdout:  stderr: operation not permitted
* Error determining manifest MIME type for docker://registry.fedoraproject.org/centos:latest: Error reading manifest latest in registry.fedoraproject.org/centos: manifest unknown: manifest unknown
* Error determining manifest MIME type for docker://registry.access.redhat.com/centos:latest: Error reading manifest latest in registry.access.redhat.com/centos: unknown: Not Found

@mheon @rhatdan i think our startup code is going to have spit out uid/gid when DEBUG...

If you run buildah unshare, and cat /proc/self/uidmap
buildah unshare cat /proc/self/uid_map
0       3267          1
1     100000      65536

Yes rootless should spit out the content of /uid_map. If it can get it.

@giuseppe WDYT?

@rhatdan on the debian machine, I don't have buildah installed (it wasn't part of the install docs I followed to compile from source). I have it on my Fedora machines because all this stuff is nicely packaged (and works!) over there :)

$ cat /proc/self/uid_map
         0    1000000<PHONE_NUMBER>

cat /etc/subuid
dwalsh:100000:65536

$ cat /etc/subuid
maxamillion:100000:65536

@maxamillion are newuidmap/newgidmap installed?
I've seen that they are not installed by default on Debian/Ubuntu.  We recently added a change to podman (https://github.com/containers/libpod/pull/1923) to report an error when the user namespace cannot be configured because of newuidmap/newgidmap missing

I do have it installed, those utilities come from the uidmap package in debian land.
$ which newgidmap
/usr/bin/newgidmap

$ which newuidmap
/usr/bin/newuidmap

the reason for the failure is the old linux kernel being used that doesn't allow file capabilities to be set from a user namespace:
[pid 18662] lsetxattr("/usr/bin/ping", "security.capability", "\0\0\0\2\0000\0\0\0\0\0\0\0\0\0\0\0\0\0", 20, 0) = -1 EPERM (Operation not permitted)

We could ignore this error, but at the same time it will break images using fcaps so I am not sure it is the correct thing to do.  In this case ping wouldn't work (even if ping itself requires slirp4netns + net.ipv4.ping_group_range to work).

@giuseppe maybe just gracefully handle it and say "Unable to accomplish this, likely because your kernel is too old and doesn't have required capabilities" or whatever wording you'd like to use. I'm perfectly fine with the limitations of the kernel being something that must be respected, but a handled exception and an informative error message would be a nice to have.

@maxamillion yes absolutely, we need to make the error message nicer

I guess the problem here would be, do we want to support some containers that do not use file caps, or do we just stop podman from running on this kernel at all?
The error is probably buried within the tar archive.  Is it easy to report an error there?

As an user, I think it would be nice to support all containers possible and simply don't support the ones you can't with useful error messages because this means as an user I can build my own and use podman for development/testing on all platforms I have but I'm also not a podman maintainer and don't know how large of an effort that would be to actively maintain over time so I'd defer. This is basically in an effort to standardize on podman for my needs and be completely rid of docker, but I don't have unrealistic expectations about others picking up a bunch of work for what might just be a weird corner case.

opened a PR to address this issue: https://github.com/containers/storage/pull/254
Since we are already ignoring setxattr errors if they are not supported by the underlying file system, it should be fine to ignore them as well when running in a user namespace on an older kernel

@giuseppe thank you!


switch travis builds to recommended container-based infrastructure

Travis complained that builds were running on legacy infrastructure, added sudo: false to enable recommended container-based builds.

Thanks @mammothbane :+1:


Rename custom tags (React tags) change all these tags in code

VSCode Version: 1.41.1 (user_setup)
OS Version: Windows_NT x64 10.0.17763

Steps to Reproduce:
This bug happens when you use the new feature of rename tag (F2) with React tags, in this case Link from react-router-dom.

Create a multiple tag Link for example, and try to change it with F2. This will change all Tags Link in your code.

You can see it with gif: https://gyazo.com/c227626d3aae20bd6092f35fc0c47a3b
Does this issue occur when all extensions are disabled?: Yes

I can't use F2 to rename JSX/TSX tags. Can you try disabling all extensions you have?

Also, please share a minimal, self-contained example of this (as text or as a GitHub repo)


Pending Style Fixes

Most multi-line blocks are written as such:
  auto request_members = static_cast<const message_type_support_callbacks_t *>(
    service_members->request_members_->data
  );

But the style guide prefers:
  auto request_members = static_cast<const message_type_support_callbacks_t *>(
    service_members->request_members_->data);

These changes are pending

https://github.com/osrf/rmw_zenoh/pull/16/commits/4d9342d0ea98012cdefcd50495af67eb93823016


Ignore points outside the specified extent when adding.

Otherwise, adding a point could change the implicit extent.

As of 039eb6bbad991284b13f51af7574dd1834d9a993, quadtree.extent will cause any points outside the extent to be dropped.
In addition, 8f8bbd64616f8f5dd65ca30ade4da6d5f4e6977e changes root.add such that the quadtree automatically grows to enclose the new point.


Application not supporting Edge or Internet Explorer

Is this really a bug? I would not try to support these browsers tbh, it's not worth the hussle.


Give all annotations a LIDIA-specific annotation ID

Currently we use the Zotero key for cross-references to annotations, but this is problematic because Zotero assigns a different ID when moving items from the local library to a group library. We can solve this by giving all LIDIA annotations a LIDIA-specific unique annotation ID. We may use the uuid npm package for unique IDs.
Since users have already been adding cross-references, we need a transition mechanism.

ulid boasts some advantages over uuid, though it is not used as widely. Do you have an opinion on which is more suitable @jgonggrijp ?


Accessibility checks?

There is the alt text check, but I was thinking it would be great to have an automated linter to let us know about accessibility issues, and haml lint seemed like a good place for that. I'm very familiar at all with accessibility best practices, but aria roles is something I keep hearing about which might be nice to lint for.

I'm open to a pull request for this, but I get the sense that this would be a rather extensive set of checks prone to false positives. There's a lot semantic understanding necessary to know when certain accessibility attributes make sense.
Would love to see someone make a proposal if there are baby steps we can take with this idea.