umaaron profle branch

Submitting profile information fro Xiang(Aaron)zheng.

I think you might have created the file in the wrong place, I think it should be
content/authors/umaaron/_index.md

You should be able to fix that by clicking edit on the file and the changing the file name.
Also, some of the content is missing from the _index.md file. It might be best to copy/paste the template and edit it.

Hello Lan,
Do not know why can not edit the file name, it’s there way I can figure out ? Thanks.
2020年8月12日 下午4:07，Ian Allison <notifications<EMAIL_ADDRESS>写道：
I think you might have created the file in the wrong place, I think it should be
content/authors/umaaron/_index.md
You should be able to fix that by clicking edit on the file and the changing the file name.
Also, some of the content is missing from the _index.md file. It might be best to copy/paste the templatehttps://gist.githubusercontent.com/ianabc/9f3973091fe1788e780236e1ace03c49/raw/a461969c5b110b68095c29fcd0f651275e5b6362/index-md and edit it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/pimsmath/m2pi.ca/pull/35#issuecomment-673111713, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANN7AA36FE67ANMAQBGXWD3SAMACHANCNFSM4P5IUW2Q.

I think I've managed to rename the file so that it is in the right location. Can you try adding a photo or avatar picture to the same directory? It should be called content/authors/umaaron/avatar.jpg. Once that is done you can hit commit and the PR should be automatically updated. If you don't want to use a picture of yourself you can grab a generic avatar image and upload that instead, just make sure you add it to the right location.

Hello lan,
Sorry, I'm new in Github, I may delete my files  by accidentally, couldn't find anymore can I create it again ?
Best regards
Aaron

From: Ian Allison<EMAIL_ADDRESS>Sent: Wednesday, August 12, 2020 5:30:18 PM
To: pimsmath/m2pi.ca<EMAIL_ADDRESS>Cc: Aaron Zheng<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [pimsmath/m2pi.ca] umaaron profle branch (#35)
I think I've managed to rename the file so that it is in the right location. Can you try adding a photo or avatar picture to the same directory? It should be called content/authors/umaaron/avatar.jpg. Once that is done you can hit commit and the PR should be automatically updated. If you don't want to use a picture of yourself you can grab a generic avatar imagehttps://m2pi.ca/authors/akcora/avatar.jpg and upload that instead, just make sure you add it to the right location.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/pimsmath/m2pi.ca/pull/35#issuecomment-673141890, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANN7AA52SADAGFCQIA2DFBTSAMJXVANCNFSM4P5IUW2Q.

There was a merge conflict because I merged your other PR (#70) and they both wanted to change the same file. I compared them and I think I've figured out the right set of changes. Take a look at the preview and let me know if it looks OK, if it does I can merge this one as well. This sort of thing is one of the main reasons that git exists, projects change all the time and git has tools to help you navigate through those changes.

Hey lan,
Can you use that newest one please?
Thank you so much for helping!  I really need take time to lean GitHub. Thank you so much !
Best regards
Aaron

From: Ian Allison<EMAIL_ADDRESS>Sent: Wednesday, August 12, 2020 8:06:19 PM
To: pimsmath/m2pi.ca<EMAIL_ADDRESS>Cc: Aaron Zheng<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [pimsmath/m2pi.ca] umaaron profle branch (#35)
There was a merge conflict because I merged your other PR (#70https://github.com/pimsmath/m2pi.ca/pull/70) and they both wanted to change the same file. I compared them and I think I've figured out the right set of changes. Take a look at the previewhttps://deploy-preview-35--mathtopowerindustry.netlify.app/authors/umaaron/ and let me know if it looks OK, if it does I can merge this one as well. This sort of thing is one of the main reasons that git exists, projects change all the time and git has tools to help you navigate through those changes.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/pimsmath/m2pi.ca/pull/35#issuecomment-673188005, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANN7AA6FYYOKZK6C4ZTI5NTSAM4AXANCNFSM4P5IUW2Q.

Cool, merging now.


X11 and XCB grabbers are sending frame grabs from the past

[x] I confirm that this is an issue rather than a question.

Bug report
When I run either the X11 or XCB grabbers, they appear to only send a single image, usually from the past as evidenced by the --screeenshot argument (e.g. a few minutes ago, maybe from when the grabber was first run after boot). So the LEDs do light up, but they're completely frozen to what ever colours that single image contains.
Here is some logging, but unfortunately it doesn't tell us much I think:
hyperion-x11  -f 25 -a <server host:port>
hyperion-x11:
	Version   : 2.0.0-alpha.9 (master (Hyperion-Bot-10276661/03afc0db-1619961791))
	build time: May 14 2021 23:00:06
2021-05-15T09:18:36.731 hyperion-x11 X11GRABBE : <INFO> Update of screen resolution: [0x0]  to [3840x2160]
2021-05-15T09:18:36.731 hyperion-x11 X11GRABBE : <INFO> Using XRender for grabbing
2021-05-15T09:18:36.731 hyperion-x11 X11GRABBE : <INFO> Update output image resolution: [0x0]  to [480x270]
2021-05-15T09:18:36.731 hyperion-x11 X11GRABBE : <INFO> Capture interface is now enabled
2021-05-15T09:18:36.731 hyperion-x11 FLATBUFCO : <INFO> Connecting to Hyperion: <server host:port>
2021-05-15T09:18:36.771 hyperion-x11 X11GRABBE : <INFO> Update of screen resolution: [3840x2160]  to [3840x2160]
2021-05-15T09:18:36.771 hyperion-x11 X11GRABBE : <INFO> Using XRender for grabbing
2021-05-15T09:18:36.771 hyperion-x11 X11GRABBE : <INFO> Update output image resolution: [480x270]  to [480x270]
2021-05-15T09:18:36.778 hyperion-x11 FLATBUFCO : <INFO> Connected to Hyperion: <server host:port>

hyperion-xcb  -f 25 -a <server host:port>
hyperion-xcb:
	Version   : 2.0.0-alpha.9 (master (Hyperion-Bot-10276661/03afc0db-1619961791))
	build time: May 14 2021 23:00:06
2021-05-15T09:25:09.846 hyperion-xcb XCBGRABBE : <INFO> XcbRandR=[available] XcbRender=[available] XcbShm=[available] XcbPixmap=[available]
2021-05-15T09:25:09.846 hyperion-xcb XCBGRABBE : <INFO> Update of screen resolution: [0x0]  to [3840x2160]
2021-05-15T09:25:09.846 hyperion-xcb XCBGRABBE : <INFO> Using XcbRender for grabbing [480x270]
2021-05-15T09:25:09.847 hyperion-xcb XCBGRABBE : <INFO> Capture interface is now enabled
2021-05-15T09:25:09.847 hyperion-xcb FLATBUFCO : <INFO> Connecting to Hyperion: <server host:port>
2021-05-15T09:25:09.887 hyperion-xcb XCBGRABBE : <INFO> Update of screen resolution: [3840x2160]  to [3840x2160]
2021-05-15T09:25:09.887 hyperion-xcb XCBGRABBE : <INFO> Using XcbRender for grabbing [480x270]
2021-05-15T09:25:09.892 hyperion-xcb FLATBUFCO : <INFO> Connected to Hyperion: <server host:port>

My Hyperion-ng server is running on a Raspberry Pi 3, and is known to be working. Everything works perfectly fine when I run Windows and use a grabber from there. It's only when using a linux grabber on this system that the issue appears.
Steps to reproduce
Run the X11 or XCB grabber
What is expected?
The X11 and XCB grabbers should continually send updated frame grabs
What is actually happening?
The X11 and XCB grabbers are continually sending an old frame grab
System

I know that the Hyperion server is running perfectly (on an RPI 3), so below are instead the specs of the machine that I'm running the grabber on:
Arch Linux
Intel NUC 11 i5 (Tiger Lake)
8GB RAM
Headless install (running Kodi X11 in standalone mode)

I have found the issue, and I do not believe it to be a Hyperion bug, as VNC is also affected. The Intel graphics driver defaults to DRI3, I needed to set it to DRI2. It worked straight away.


Extensions: CLI core version in debug and warn message

This checklist is used to make sure that common guidelines for a pull request are followed.
General Guidelines

[x] The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see Modifying change log).

Command Guidelines

[n/a] Each command and parameter has a meaningful description.
[n/a] Each new command has a test.

(see Authoring Command Modules)

Codecov Report

Merging #4414 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff           @@
##           master   #4414   +/-   ##
======================================
  Coverage    69.2%   69.2%
======================================
  Files         493     493
  Lines       31573   31573
  Branches     4910    4910
======================================
  Hits        21850   21850
  Misses       8119    8119
  Partials     1604    1604

Impacted Files
Coverage Δ

...sion/azure/cli/command_modules/extension/custom.py
68.29% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


Added instructions to setup kubescape locally

Overview

The CONTRIBUTING.md file was lacking information on how to set up kubescape locally. To assist new contributors, I have added instructions for this purpose.

Screenshots

I think we shall put a link to https://github.com/kubescape/kubescape/wiki/Building instead of duplicating the information there.

There is also something wrong here, I thought we only needed libgit when building with the flag gitenabled but the documentation doesn't reflect that.
There should also be somewhere a mention that for performance reasons it's better to build with this dependency when scanning git repos.
For reference it was introduced with https://github.com/kubescape/kubescape/pull/969

@matthyx Okay, I didn't aware that this was outdated when I moved the building instructions there through this PR: https://github.com/kubescape/kubescape/pull/1196 I will try to update the instructions accordingly then.

cc: @matthyx @craigbox You may want to merge this.

Updated! https://github.com/kubescape/kubescape/wiki/Building

@matthyx Okay, I didn't aware that this was outdated when I moved the building instructions there through this PR: #1196 I will try to update the instructions accordingly then.


seed to seeds and peer to peers for Movies

Purposeful from @vzamanillo:
https://github.com/popcorn-official/popcorn-android/pull/76#issuecomment-261005863

e2638cf124e97bc7cb58dded797a187d908c90a7


MB-7626 Skip processing response files if SEND_TO_SYNCADA is false

Description
When sending to Syncada is false we were still attempting to connect and read responses from Syncada. This PR changes it so that if SEND_TO_SYNCADA is false we skip processing response files as well as skipping sending.
Reviewer Notes
No
Setup
Look for new message Skipping processing of response files EDI997 acknowledgement and EDI824 application advice responses when send to syncada is false, and ensure it is not there when send is set to true.
# when send is false
❯ go run ./cmd/milmove-tasks process-edis
{"level":"info","ts":"2021-04-21T18:25:04.762Z","caller":"cli/dbconn.go:258","msg":"Connecting to the database","url":"postgres://postgres:*****@localhost:5432/dev_db?sslmode=disable","db-ssl-root-cert":""}
{"level":"info","ts":"2021-04-21T18:25:04.762Z","caller":"cli/dbconn.go:364","msg":"Starting database ping...."}
{"level":"info","ts":"2021-04-21T18:25:04.777Z","caller":"cli/dbconn.go:371","msg":"...DB ping successful!"}
{"level":"info","ts":"2021-04-21T18:25:04.777Z","caller":"milmove-tasks/process_edis.go:174","msg":"Starting in development mode, which enables additional features"}
{"level":"info","ts":"2021-04-21T18:25:04.777Z","caller":"milmove-tasks/process_edis.go:178","msg":"SendToSyncada is false"}
2021-04-21T18:25:04.778Z        INFO    certs/certs_entrust.go:28       certificate chain from move-mil-dod-tls-cert parsed     {"count": 1}
2021-04-21T18:25:04.778Z        INFO    certs/certs_entrust.go:36       certificate chain from move-mil-dod-ca-cert parsed      {"count": 1}
2021-04-21T18:25:04.779Z        INFO    certs/certs_entrust.go:47       DOD keypair     {"certificates": 2}
{"level":"info","ts":"2021-04-21T18:25:04.796Z","caller":"payment_request/payment_request_reviewed_processor.go:190","msg":"EDIs processed","EDIs processed":{"EDIType":"858","NumEDIsProcessed":0,"ProcessStartedAt":"2021-04-21T18:25:04.779Z","ProcessEndedAt":"2021-04-21T18:25:04.796Z"}}
{"level":"info","ts":"2021-04-21T18:25:04.804Z","caller":"milmove-tasks/process_edis.go:223","msg":"Finished processing reviewed payment requests"}
{"level":"info","ts":"2021-04-21T18:25:04.804Z","caller":"milmove-tasks/process_edis.go:226","msg":"Skipping processing of response files EDI997 acknowledgement and EDI824 application advice responses"}
{"level":"info","ts":"2021-04-21T18:25:04.804Z","caller":"milmove-tasks/process_edis.go:114","msg":"Duration of processEDIs task: 42.436218ms"}

# when send is true
❯ go run ./cmd/milmove-tasks process-edis --send-to-syncada
{"level":"info","ts":"2021-04-21T18:48:00.704Z","caller":"cli/dbconn.go:258","msg":"Connecting to the database","url":"postgres://postgres:*****@localhost:5432/dev_db?sslmode=disable","db-ssl-root-cert":""}
{"level":"info","ts":"2021-04-21T18:48:00.704Z","caller":"cli/dbconn.go:364","msg":"Starting database ping...."}
{"level":"info","ts":"2021-04-21T18:48:00.718Z","caller":"cli/dbconn.go:371","msg":"...DB ping successful!"}
{"level":"info","ts":"2021-04-21T18:48:00.718Z","caller":"milmove-tasks/process_edis.go:174","msg":"Starting in development mode, which enables additional features"}
{"level":"info","ts":"2021-04-21T18:48:00.718Z","caller":"milmove-tasks/process_edis.go:178","msg":"SendToSyncada is true"}
2021-04-21T18:48:00.718Z        INFO    certs/certs_entrust.go:28       certificate chain from move-mil-dod-tls-cert parsed     {"count": 1}
2021-04-21T18:48:00.718Z        INFO    certs/certs_entrust.go:36       certificate chain from move-mil-dod-ca-cert parsed      {"count": 1}
2021-04-21T18:48:00.719Z        INFO    certs/certs_entrust.go:47       DOD keypair     {"certificates": 2}
{"level":"info","ts":"2021-04-21T18:48:00.732Z","caller":"payment_request/payment_request_reviewed_processor.go:190","msg":"EDIs processed","EDIs processed":{"EDIType":"858","NumEDIsProcessed":0,"ProcessStartedAt":"2021-04-21T18:48:00.719Z","ProcessEndedAt":"2021-04-21T18:48:00.732Z"}}
{"level":"info","ts":"2021-04-21T18:48:00.743Z","caller":"milmove-tasks/process_edis.go:223","msg":"Finished processing reviewed payment requests"}
{"level":"info","ts":"2021-04-21T18:48:00.743Z","caller":"cli/gex_sftp.go:73","msg":"Parsing GEX SFTP host key..."}
{"level":"info","ts":"2021-04-21T18:48:00.743Z","caller":"cli/gex_sftp.go:79","msg":"...Parsing GEX SFTP host key successful"}
{"level":"info","ts":"2021-04-21T18:48:00.744Z","caller":"cli/gex_sftp.go:91","msg":"Connecting to GEX SSH...","address":"<IP_ADDRESS>:22"}
{"level":"error","ts":"2021-04-21T18:49:16.282Z","caller":"cli/gex_sftp.go:94","msg":"Failed to connect to GEX SSH","error":"dial tcp <IP_ADDRESS>:22: connect: operation timed out","stacktrace":"github.com/transcom/mymove/pkg/cli.InitGEXSSH"}
{"level":"fatal","ts":"2021-04-21T18:49:16.282Z","caller":"milmove-tasks/process_edis.go:233","msg":"couldn't initialize SSH client","error":"dial tcp <IP_ADDRESS>:22: connect: operation timed out","stacktrace":"\t/Users/john/projects/dod/mymove/cmd/milmove-tasks/process_edis.go:233"}
exit status 1

Code Review Verification Steps

[X] Code follows the guidelines for Logging
[X] Request review from a member of a different team.
[X] Have the Jira acceptance criteria been met for this change?

References

Jira story for this change

Messages

:book:
:link: MB-7626

  Generated by :no_entry_sign: dangerJS against c2d560a88516a0f9f41a432986052646d05d6b85


Check and update all rules to consider nested props

Like in
.funky {
  font: 20px/#{$font-size*1.2} fantasy { // operator-no-unspaced should warn
    weight: bold;
  }
}

Possibly won't be needed to implement on the linter's side if this gets resolved.

@dryoma What's the status of this? Should we go ahead and check for nested props inside the rules?
I guess we still haven't decided about the forking of postcss-scss:
https://github.com/kristerkari/stylelint-scss/issues/74
We could maybe postpone this issue and release 1.4.0 as we have had some things pending for a while:
https://github.com/kristerkari/stylelint-scss/blob/master/CHANGELOG.md#head

Sorry, I decided to not proceeding with this until we decide on postcss-scss.
So yes, totally fine with me to release with the current progress.


CMake Error when compiling...

Hi,
When I compile the project, i received the following errors:
......
[semantic_suma:cmake] -- Using OpenGL version 450.
[semantic_suma:cmake] -- Configuring done
[semantic_suma:cmake] CMake Error at /home/dlr/Project/suma++/src/semantic_suma/CMakeLists.txt:175 (add_library):
[semantic_suma:cmake]   Target "suma" links to target "Boost::serialization" but the target was not
[semantic_suma:cmake]   found.  Perhaps a find_package() call is missing for an IMPORTED target, or
[semantic_suma:cmake]   an ALIAS target is missing?
[semantic_suma:cmake]
[semantic_suma:cmake]
[semantic_suma:cmake] CMake Error at /home/dlr/Project/suma++/src/semantic_suma/CMakeLists.txt:175 (add_library):
[semantic_suma:cmake]   Target "suma" links to target "Boost::thread" but the target was not found.
[semantic_suma:cmake]   Perhaps a find_package() call is missing for an IMPORTED target, or an
[semantic_suma:cmake]   ALIAS target is missing?
[semantic_suma:cmake]
[semantic_suma:cmake]
[semantic_suma:cmake] CMake Error at /home/dlr/Project/suma++/src/semantic_suma/CMakeLists.txt:175 (add_library):
[semantic_suma:cmake]   Target "suma" links to target "Boost::date_time" but the target was not
[semantic_suma:cmake]   found.  Perhaps a find_package() call is missing for an IMPORTED target, or
[semantic_suma:cmake]   an ALIAS target is missing?
[semantic_suma:cmake]
[semantic_suma:cmake]
[semantic_suma:cmake] CMake Error at /home/dlr/Project/suma++/src/semantic_suma/CMakeLists.txt:175 (add_library):
[semantic_suma:cmake]   Target "suma" links to target "Boost::regex" but the target was not found.
[semantic_suma:cmake]   Perhaps a find_package() call is missing for an IMPORTED target, or an
[semantic_suma:cmake]   ALIAS target is missing?
[semantic_suma:cmake]
[semantic_suma:cmake]
[semantic_suma:cmake] CMake Error at /home/dlr/Project/suma++/src/semantic_suma/CMakeLists.txt:175 (add_library):
[semantic_suma:cmake]   Target "suma" links to target "Boost::timer" but the target was not found.
[semantic_suma:cmake]   Perhaps a find_package() call is missing for an IMPORTED target, or an
[semantic_suma:cmake]   ALIAS target is missing?
[semantic_suma:cmake]
[semantic_suma:cmake]
[semantic_suma:cmake] CMake Error at /home/dlr/Project/suma++/src/semantic_suma/CMakeLists.txt:175 (add_library):
[semantic_suma:cmake]   Target "suma" links to target "Boost::chrono" but the target was not found.
[semantic_suma:cmake]   Perhaps a find_package() call is missing for an IMPORTED target, or an
[semantic_suma:cmake]   ALIAS target is missing?
[semantic_suma:cmake]
[semantic_suma:cmake]
[semantic_suma:cmake] CMake Error at /home/dlr/Project/suma++/src/semantic_suma/CMakeLists.txt:156 (add_library):
[semantic_suma:cmake]   Target "robovision" links to target "Boost::serialization" but the target
[semantic_suma:cmake]   was not found.  Perhaps a find_package() call is missing for an IMPORTED
[semantic_suma:cmake]   target, or an ALIAS target is missing?
[semantic_suma:cmake]
[semantic_suma:cmake]
[semantic_suma:cmake] CMake Error at /home/dlr/Project/suma++/src/semantic_suma/CMakeLists.txt:156 (add_library):
[semantic_suma:cmake]   Target "robovision" links to target "Boost::thread" but the target was not
[semantic_suma:cmake]   found.  Perhaps a find_package() call is missing for an IMPORTED target, or
[semantic_suma:cmake]   an ALIAS target is missing?
[semantic_suma:cmake]
[semantic_suma:cmake]
[semantic_suma:cmake] CMake Error at /home/dlr/Project/suma++/src/semantic_suma/CMakeLists.txt:156 (add_library):
[semantic_suma:cmake]   Target "robovision" links to target "Boost::date_time" but the target was
[semantic_suma:cmake]   not found.  Perhaps a find_package() call is missing for an IMPORTED
[semantic_suma:cmake]   target, or an ALIAS target is missing?
[semantic_suma:cmake]
[semantic_suma:cmake]
[semantic_suma:cmake] CMake Error at /home/dlr/Project/suma++/src/semantic_suma/CMakeLists.txt:156 (add_library):
[semantic_suma:cmake]   Target "robovision" links to target "Boost::regex" but the target was not
[semantic_suma:cmake]   found.  Perhaps a find_package() call is missing for an IMPORTED target, or
[semantic_suma:cmake]   an ALIAS target is missing?
[semantic_suma:cmake]
[semantic_suma:cmake]
[semantic_suma:cmake] CMake Error at /home/dlr/Project/suma++/src/semantic_suma/CMakeLists.txt:156 (add_library):
[semantic_suma:cmake]   Target "robovision" links to target "Boost::timer" but the target was not
[semantic_suma:cmake]   found.  Perhaps a find_package() call is missing for an IMPORTED target, or
[semantic_suma:cmake]   an ALIAS target is missing?
[semantic_suma:cmake]
[semantic_suma:cmake]
[semantic_suma:cmake] CMake Error at /home/dlr/Project/suma++/src/semantic_suma/CMakeLists.txt:156 (add_library):
[semantic_suma:cmake]   Target "robovision" links to target "Boost::chrono" but the target was not
[semantic_suma:cmake]   found.  Perhaps a find_package() call is missing for an IMPORTED target, or
[semantic_suma:cmake]   an ALIAS target is missing?
[semantic_suma:cmake]
[semantic_suma:cmake]
[semantic_suma:cmake] CMake Error at /home/dlr/Project/suma++/src/semantic_suma/CMakeLists.txt:186 (add_executable):
[semantic_suma:cmake]   Target "visualizer" links to target "Boost::serialization" but the target
[semantic_suma:cmake]   was not found.  Perhaps a find_package() call is missing for an IMPORTED
[semantic_suma:cmake]   target, or an ALIAS target is missing?
[semantic_suma:cmake]
[semantic_suma:cmake]
[semantic_suma:cmake] CMake Error at /home/dlr/Project/suma++/src/semantic_suma/CMakeLists.txt:186 (add_executable):
[semantic_suma:cmake]   Target "visualizer" links to target "Boost::thread" but the target was not
[semantic_suma:cmake]   found.  Perhaps a find_package() call is missing for an IMPORTED target, or
[semantic_suma:cmake]   an ALIAS target is missing?
[semantic_suma:cmake]
[semantic_suma:cmake]
[semantic_suma:cmake] CMake Error at /home/dlr/Project/suma++/src/semantic_suma/CMakeLists.txt:186 (add_executable):
[semantic_suma:cmake]   Target "visualizer" links to target "Boost::date_time" but the target was
[semantic_suma:cmake]   not found.  Perhaps a find_package() call is missing for an IMPORTED
[semantic_suma:cmake]   target, or an ALIAS target is missing?
[semantic_suma:cmake]
[semantic_suma:cmake]
[semantic_suma:cmake] CMake Error at /home/dlr/Project/suma++/src/semantic_suma/CMakeLists.txt:186 (add_executable):
[semantic_suma:cmake]   Target "visualizer" links to target "Boost::regex" but the target was not
[semantic_suma:cmake]   found.  Perhaps a find_package() call is missing for an IMPORTED target, or
[semantic_suma:cmake]   an ALIAS target is missing?
[semantic_suma:cmake]
[semantic_suma:cmake]
[semantic_suma:cmake] CMake Error at /home/dlr/Project/suma++/src/semantic_suma/CMakeLists.txt:186 (add_executable):
[semantic_suma:cmake]   Target "visualizer" links to target "Boost::timer" but the target was not
[semantic_suma:cmake]   found.  Perhaps a find_package() call is missing for an IMPORTED target, or
[semantic_suma:cmake]   an ALIAS target is missing?
[semantic_suma:cmake]
[semantic_suma:cmake]
[semantic_suma:cmake] CMake Error at /home/dlr/Project/suma++/src/semantic_suma/CMakeLists.txt:186 (add_executable):
[semantic_suma:cmake]   Target "visualizer" links to target "Boost::chrono" but the target was not
[semantic_suma:cmake]   found.  Perhaps a find_package() call is missing for an IMPORTED target, or
[semantic_suma:cmake]   an ALIAS target is missing?
[semantic_suma:cmake]
[semantic_suma:cmake]
[semantic_suma:cmake] -- Generating done
[semantic_suma:cmake] -- Build files have been written to: /home/dlr/Project/suma++/build/semantic_suma
Failed    <<< semantic_suma                [ 6.7 seconds ]
[build] Summary: 3 of 4 packages succeeded.
[build]   Ignored:   None.
[build]   Warnings:  2 packages succeeded with warnings.
[build]   Abandoned: None.
[build]   Failed:    1 packages failed.
[build] Runtime: 1 minute and 17.7 seconds total.

What`s more my envs：
Ubuntu 5.4.0-6ubuntu1~16.04.12
cmake 3.8.1
CUDA 10.0.130  cudnn 7.5.1
Geforce GTX 1070

Boost version: 1.58.0

GLX version: 1.4
OpenGL core profile version string: 4.5.0 NVIDIA 440.44
OpenGL core profile shading language version string: 4.50 NVIDIA
OpenGL version string: 4.6.0 NVIDIA 440.44
OpenGL shading language version string: 4.60 NVIDIA
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 440.44
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
    GL_EXT_shader_group_vote, GL_EXT_shader_implicit_conversions,

$ dpkg -l | grep TensorRT
ii  libnvinfer-dev                                              5.1.5-1+cuda10.0                                      amd64        TensorRT development libraries and headers
ii  libnvinfer-samples                                          5.1.5-1+cuda10.0                                      all          TensorRT samples and documentation
ii  libnvinfer5                                                 5.1.5-1+cuda10.0                                      amd64        TensorRT runtime libraries
ii  python3-libnvinfer                                          5.1.5-1+cuda10.0                                      amd64        Python 3 bindings for TensorRT
ii  python3-libnvinfer-dev                                      5.1.5-1+cuda10.0                                      amd64        Python 3 development package for TensorRT
ii  tensorrt                                                    <IP_ADDRESS>-1+cuda10.0                                    amd64        Meta package of TensorRT

How can I solve it?
Thanks a lot~

Hey @LongruiDong,
Thank you for using our code. As can be read from the Cmake Error message, it seems to be a problem of the Boost library. You could check your Boost library by executing $ dpkg -s libboost-dev | grep 'Version'

Hi @LongruiDong, is there any update on this issue?

How was the probem solved?

Hi, I have the same problem, and use:
$ dpkg -s libboost-dev | grep 'Version':Version: <IP_ADDRESS>ubuntu1
what else can I do? thanks.  @Chen-Xieyuanli

Hi, I have the same problem, and use:
$ dpkg -s libboost-dev | grep 'Version':Version: <IP_ADDRESS>ubuntu1
what else can I do? thanks. @Chen-Xieyuanli

I have solved this problem, and I change line 9 in CMakeLists.txt:
find_package(Boost 1.65.1 REQUIRED COMPONENTS filesystem system serialization thread date_time regex timer chrono)

Hi, I have the same problem, and use:
$ dpkg -s libboost-dev | grep 'Version':Version: <IP_ADDRESS>ubuntu1
what else can I do? thanks. @Chen-Xieyuanli

I have solved this problem, and I change line 9 in CMakeLists.txt:
find_package(Boost 1.65.1 REQUIRED COMPONENTS filesystem system serialization thread date_time regex timer chrono)

It also slove my problem!

It also slove my problem!


Application hangs during startDeviceScan due to which the user is unable to navigate back or press any button.

I tried the basic example as below,
`import React, { Component } from "react";
import {
AppRegistry,
StyleSheet,
Text,
SafeAreaView,
FlatList,
Platform,
Button
} from "react-native";
import { BleManager, Device, BleError, LogLevel } from "react-native-ble-plx";
type Props = {};
type State = {
text: Array
};
function arrayBufferToHex(buffer) {
if (!buffer) return null;
const values = new Uint8Array(buffer);
var string = "";
for (var i = 0; i < values.length; i += 1) {
const num = values[i].toString(16);
string += num.length == 1 ? "0" + num : num;
}
return string;
}
export default class App extends Component<Props, State> {
manager = new BleManager();
constructor(props: Props) {
super(props);
this.state = {
text: []
};
}
componentDidMount() {
this.manager = new BleManager();
const manager = this.manager;
manager.onStateChange(newState => {
  if (newState != "PoweredOn") {
   manager.enable();

    return;
  }
  this._log("Started scanning...");
  this._startDeviceScan();
}, true);

setInterval(this._stopDeviceScan, 3000);

setInterval(this._startDeviceScan, 9000);

/*setInterval((this.manager) => {
  console.warn('In Start');
  this._startDeviceScan(this.manager);
}, 600); */

}
_stopDeviceScan = () => {
console.warn('In stop:');
this.manager.stopDeviceScan();
}
_startDeviceScan = () => {
const manager = this.manager;
manager.startDeviceScan(
null, {
allowDuplicates: false
},
(error, device) => {
if (error) {
this._logError("SCAN", error);
return;
}
    this._log("Device : " + device.name, device.id);
    //device.id === 'C5:12:11:BF:25:EA'
    if (device.id === 'C5:12:11:AD:2B:28') {
      this._log('It is our BLE');
      manager.stopDeviceScan();

      device.connect()
        .then((device) => {
          this._log("Connected to BLE", device);
          return device.discoverAllServicesAndCharacteristics('123');
          //return device.services();
        })
        .then((device) => {
          this._log("Connected services : " + device);
          return device.services();
          //console.warn(JSON.stringify(services));
        })
        .then((services) => {
          console.warn('Services Length : ' + services.length);
          console.warn('Services UUID : ' + services[0].uuid + ' , ' + services[1].uuid + ' , ' + services[2].uuid);

          return services[2].characteristics();

        }).then((characteristics) => {

          console.warn('Characteristics Length : ' + characteristics.length);
          console.warn('Characteristics UUID : ' + characteristics[0].uuid + ' , ' + characteristics[1].uuid);

          console.warn('Characteristic UUID : ' + characteristics[0].uuid);
          console.warn('Characteristic Value : ' + characteristics[0].value);
        })
        .catch((error) => {
          // Handle errors
          this._log("Error in Connection", error);
        });

    }

  }
);

}
_log = (text: string, ...args) => {
const message = "[" + Date.now() % 10000 + "] " + text + ":" + args[0];
this.setState({
text: [message, ...this.state.text]
});
};
_logError = (tag: string, error: BleError) => {
this._log(
tag +
"ERROR(" +
error.errorCode +
"): " +
error.message +
"\nREASON: " +
error.reason +
" (att: " +
error.attErrorCode +
", ios: " +
error.iosErrorCode +
", and: " +
error.androidErrorCode +
")"
);
};
delay = () => {
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve();
}, 5000);
});
};
render() {
return (

<Button
onPress={() => {
console.warn('In Clear');
this.setState({
text: []
});
}}
title={"Clear"}
/>
<FlatList
style={styles.container}
data={this.state.text}
renderItem={({ item }) =>  {item} }
keyExtractor={(item, index) => index.toString()}
/>

);
}
}
const styles = StyleSheet.create({
container: {
flex: 1
}
});
`
It is able to scan devices and also connect to a specific device. But during the process of scanning application hangs and user is not able to perform any other action.
How can I overcome this issue? Is there any other approach of using the library like threading or running background, if yes please share any example.

Every operation provided by a library is asynchronous. Nothing should be blocked. Could you create a repo with your example, so that I could test it more easily?

My React Native UI would also hang while performing a startDeviceScan. The cause was having the Debugger enabled. Once I disabled the debugger the UI responded lighting fast while startDeviceScan was executing.

Mine was blocked in dev when I had { allowDuplicates: true }.


Command "xiwi xinit" will execute xinit twice.

Like the title says, when running for example xiwi xinit /usr/bin/i3, we don't check for xinit in the xiwi script when executing /usr/local/bin/xinit. So two windows will open see Line 124 in xiwi script and https://github.com/dnschneid/crouton/issues/1576#issuecomment-170690803 for why this should be considered a bug.
Thanks @ipstone for noticing.

Thank you for opening this issue. Though the duplicated window can be suppressed by/when running:
(After enter-chroot )

$ XMETHOD=xiwi xinit /usr/bin/i3

I am just curious (as someone not knowing bash): when setting XMETHOD=xiwi on the same line of xinit /usr/bin/i3: does it mean add an environmental variable to the command 'xinit /usr/bin/i3' ?
if so, might there some way we can modify it to create an alias to easily lauch i3 under xiwi?
Update 1: I used the startxfce4 as template to create starti3 ( see the last section here: https://github.com/dnschneid/crouton/wiki/i3 ); then we can do sudo sh starti3 -X xorg; or sudo sh starti3 -X xiwi to run i3 either under xorg or xiwi
Update 2: One unsolved obstacle in using i3 under xiwi now, is that chromebook default shortcut keys would intercept mod+1, 2, 3 etc, so that the i3 switch workspace keybindings would not work.  This somehow limited the usage of i3 under xiwi. Not sure if it's a bug, but if there's way to circumference the defaul keybinding for i3 under wiki, that would be great.

@ipstone
Not really on topic for this issue, but you should be able to solve the issue you mention in "update 2" by switching the mod key to something else in the config.
I use the Alt key by adding set $mod Mod1 in the ~/.i3/config file.


Update akka-http to 10.2.8

Updates com.typesafe.akka:akka-http from 10.2.1 to 10.2.8.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.typesafe.akka", artifactId = "akka-http" } ]

labels: test-library-update, early-semver-patch, semver-spec-patch, commit-count:1

Superseded by #105.


"connection's current state is open"

When i use inject a dbcontext in a controller, and execute multi threaded query, like this:
Task t1 = query 1（ToArrayAsync()）;
Task t2 = query 2;
Task t3 = query 3;
Task.WhenAll(t1, t2, t3);
Often an error occurred:
A database operation failed while processing the request.
"connection's current state is open"
There are pending model changes for ApplicationDbContext
Scaffold a new migration for these changes and apply them to the database from the command line:

dnx . ef migration add [migration name]
dnx . ef migration apply

@endink DbContext is not thread-safe and interleaving query execution like this on the same instance is not supported. The exception condition you are running into ("connection's current state is open") is possibly the most innocuous problem you have if you do this. Any state maintained by the DbContext may as well be corrupted.
DbContext has never been thread safe in any previous version of EF. In EF6 we added guards in the async APIs to throw a specific exception if were used in this way. We should probably consider doing this again in EF7.
On the other hand, I am not sure how the part about "pending model changes"  is related. Does that go away if you serialize your async queries (e.g. awaiting each individual call to ToArrayAsync())?

thanks, so i use "await" it works fine, "pending model changes" is a bug in my code, sorry . thanks again.


confusion between roles and permissions

Problem statement
When we try to list teams on a repo, permissions I get don't match with roles which can be seen from GitHub console.
for example, I can see permissions push, pull & admin in API response.
whereas if we look at roles from GitHub console, they are five different roles: read, write, admin, triage, maintain
permission reference from  go-Github https://github.com/google/go-github/blob/master/github/teams.go#L449
pull - team members can pull, but not push to or administer this repository
push - team members can pull and push, but not administer this repository
admin - team members can pull, push and administer this repository
maintain - team members can manage the repository without access to sensitive or destructive actions.
triage - team members can proactively manage issues and pull requests without write access.

also, I have noticed the correlation between the actual roles and permissions I got through API response.

read ~ pull
write ~ push
maintain ~ push
triage ~ pull
admin ~ admin

Questions ?

are roles and permissions are supposed to be same? if yes is it documented somewhere?
if not, is a correlation I mentioned is correct?
is there any way to fetch teams and their roles for particular repo using APIs

Note that this repo tracks the GitHub v3 API Documentation: https://developer.github.com/v3/teams/#add-or-update-team-repository-permissions
So what you have discovered is actually an excellent question for<EMAIL_ADDRESS> Once you hear back, please report what you have discovered in this issue.
Thank you.

@gmlewis apprently github provides two set of permissions,
    "permissions": {
      "admin": false,
      "push": false,
      "pull": true
    },

this is one which I was getting  but I expected the following response:
  "permissions": {
    "pull": true,
    "triage": true,
    "push": false,
    "maintain": false,
    "admin": false
  }

appropriate API call to fetch this response is https://github.com/google/go-github/blob/master/github/teams.go#L122

@suhaibmujahid did you end up finding a solution for reading maintain/triage permissions on teams?


All sensors disabled

Recently, I have had an issue where all of my sensors are disabled in my Gateway. I tried checking authentication. That's still valid. I tried uninstalling the addon and reinstalling. That didn't do the trick either. So, I took a look at the logs and this is what I'm seeing:
2019-05-02 01:06:39.565 ERROR  : netatmo-weather: /home/pi/.mozilla-iot/addons/netatmo-weather-adapter/adapter.js:139
2019-05-02 01:06:39.566 ERROR  : netatmo-weather:             this.properties.set(dataType, new NetatmoProperty(this, dataType, props, netatmoDevice.dashboard_data[dataType]));
2019-05-02 01:06:39.568 ERROR  : netatmo-weather:
                     ^
2019-05-02 01:06:39.569 ERROR  : netatmo-weather:
2019-05-02 01:06:39.570 ERROR  : netatmo-weather: TypeError: Cannot read property 'Temperature' of undefined
2019-05-02 01:06:39.573 ERROR  : netatmo-weather:     at new WeatherStation (/home/pi/.mozilla-iot/addons/netatmo-weather-adapter/adapter.js:139:114)
2019-05-02 01:06:39.574 ERROR  : netatmo-weather:     at NetatmoWeatherAdapter.addDevice (/home/pi/.mozilla-iot/addons/netatmo-weather-adapter/adapter.js:235:28)
2019-05-02 01:06:39.576 ERROR  : netatmo-weather:     at NetatmoWeatherAdapter.addDevice (/home/pi/.mozilla-iot/addons/netatmo-weather-adapter/adapter.js:244:22)
2019-05-02 01:06:39.577 ERROR  : netatmo-weather:     at netatmo.getStationsData (/home/pi/.mozilla-iot/addons/netatmo-weather-adapter/adapter.js:299:26)
2019-05-02 01:06:39.579 ERROR  : netatmo-weather:     at netatmo.<anonymous> (/home/pi/.mozilla-iot/addons/netatmo-weather-adapter/node_modules/netatmo/netatmo.js:227:14)
2019-05-02 01:06:39.580 ERROR  : netatmo-weather:     at Request.self.callback (/home/pi/.mozilla-iot/addons/netatmo-weather-adapter/node_modules/request/request.js:185:22)
2019-05-02 01:06:39.582 ERROR  : netatmo-weather:     at emitTwo (events.js:126:13)
2019-05-02 01:06:39.584 ERROR  : netatmo-weather:     at Request.emit (events.js:214:7)
2019-05-02 01:06:39.585 ERROR  : netatmo-weather:     at Request.<anonymous> (/home/pi/.mozilla-iot/addons/netatmo-weather-adapter/node_modules/request/request.js:1161:10)
2019-05-02 01:06:39.586 ERROR  : netatmo-weather:     at emitOne (events.js:116:13)
2019-05-02 01:06:39.590 INFO   : Plugin: netatmo-weather-adapter died, code = 1 restarting...

The problem is that I haven't added any modules to my Netatmo station. However, I think the battery may have died on one. I'm guessing that may be the culprit. But I'm not sure why it would still be trying to set a property on a module that isn't being read. (I'm guessing that's what is happening.) Is my one module with the dead battery causing the failure of the plugin?

It appears the API isn't including the temperature for the device, even though it's saying the device can measure the temperature. I'll add a guard against this crash in the next version.


Async Validation with deferred object

Added possibility return deferred object instead of boolean onStepChanging allowing to return jQuery deferred object like http request to allow for async check for validation.
It has backward compatibility i.e. if boolean is returned from the callback then it will work just like it did. But if the deferred object will be returned from callback the change of state will be hold until deferred object will get resolved. ie
onStepChange: function(){
    return $.get('url').done(function(response)){
        return response; // true or false
    }
}

Thanks @zaalbarxx Sounds very useful. Let me know if I can help with anything.

f22dfb70cca41b510dc86b86e01aa668aed9d7a2
@t3chboy I modified your working sample slightly. I don't think I want to create another pull request based on code you wrote, but my changes that I made on your changes worked well for me so it might work for someone else as well.
This is how I use it:
`const save = () => {
let url = '/api/endpoint';
  return $.ajax({url:  '/api/endpoint', type: 'POST', data: this.getData() })
    .done((data) => {
      debugger;
    })
    .fail((data) => {
      return false;
    });
}

const onStepChanging = (event, currentIndex, newIndex) => {
  $('#form-2').validate().settings.ignore = ':disabled';
  if (!$('#form-2').valid()) {
    return false;
  }
  if (currentIndex === 0 && newIndex > currentIndex) {
    return save();
  } else {
    return true;
  }
};`

As far as I could see, the problem was not with the original code but with the sample provided. You should not return the jQuery post (or get) deferred directly but create a custom one and use it inside your post or get call to resolve either with true o false.
Here is a sample:
onStepChanging: function() {
  var def = $.Deferred();
  $.post({POST_SETTINGS}).done(function(response) {
     // Check response
     def.resolve(true); // or false according to the response. If true steps will go to next one otherwise will stay on the same
   })

  return def; // This is the Deferred that should be returned and NOT the one from jQuery Ajax
}

Hope this helps someone :)


Feature Request: Add kebabcase Formatter Support for Snippets in VSCode

Issue Description
As a developer who frequently uses Visual Studio Code for projects involving web development and other programming tasks that often require the use of kebab-case naming conventions (particularly in CSS, HTML, and certain JavaScript frameworks), I've noticed that the current snippet transformation capabilities in VSCode, while robust, do not include support for transforming string cases into kebab-case.
Currently, VSCode supports the following formatters in snippets:

/upcase - Transform to uppercase
/downcase - Transform to lowercase
/capitalize - Capitalize the first letter
/camelcase - Transform to camelCase
/pascalcase - Transform to PascalCase

Proposed Feature
I propose adding a new transformation option called /kebabcase that would transform a string to kebab-case. This transformation would be incredibly useful for developers working in environments where kebab-case is a standard, such as in many CSS frameworks.
Rationale
Many projects, particularly those involving web technologies, utilize kebab-case for class names, IDs, and other attributes. Built-in support in VSCode would aid in maintaining consistency across codebases.
Example Implementation
The transformation could be implemented similarly to the existing transformations, where a user can include something like $TM_SELECTED_TEXT/kebabcase in their snippet definition to automatically convert the selected text into kebab-case.

related #145654


Hope can provide some tips on how to generate good results like demo

Hi, thanks for sharing this wonderful work, I have test this model but the results are bad. So hope you guys can give some tips! ,thanks~

+1，我上传了自己的图片，但是生成的结果不好。

I got better results after resizing or cropping reference image and densepose video to 512x512.

I got better results after resizing or cropping reference image and densepose video to 512x512.

Indeed.  The readme does not make it very clear, but you should be using square videos and images.  Anything else will be severely distorted.


Client Allocation Request for: 广州星淼文化传播有限公司

Client Allocation Questions
Core Information

Name: 广州星淼文化传播有限公司
Website / Social Media: https://aiqicha.baidu.com/company_detail_28119221923694?rq=ef&pd=ee&from=ps;Wechat:365053027
Region: Greater China
DataCap Requested: 10TiB
Addresses to be Notarized: f3tdrpylphoxvu6sgngnmlmai7my6tapqa3dfw2yipwv5jkns64bm3fvr26rjoust5j5r4hc4gk27dycjf4rya
Notary Requested: IPFSUnion

@denglpo Please subscribe to notifications for this Issue to be aware of updates. Notaries may request additional information on the Issue.

Thank you for your request. I'd like to know more about your business. Can you kindly answer my following questions?

individual and organization

Please introduce yourself and your team briefly, and show me some your social media accounts such as email address, WeChat official account and other evidence proving that you have the right to apply on behalf of the company.
For your organization, Please describe its time since inception, registration country，scale, named officers, project, industry reputation etc.

track record

Regarding your data you intend to store, What’s the original source of those data, and do you have any proof of ownership or authorization?
Has your organization obtained DataCap before?
Please list any of your honor and disputes in the field of Filecoin.

use plan

Please describe your plan to use DataCap briefly? (such as use case, miner etc.)

Please introduce yourself and your team briefly, and show me some your social media accounts such as email address, WeChat official account and other evidence proving that you have the right to apply on behalf of the company.
For your organization, Please describe its time since inception, registration country，scale, named officers, project, industry reputation etc.
I'm Luo Xue, wechat account:365053027. I'm a entertainment broker. We provide audiovisual and film brokerage agency services. I has rich experience in stage performance and art guidance. I have planned many large activities, literary and art performances, competitions and other public cultural activities. I’m good at maintaining corporate image, planning creativity, conference and exhibition services. We also provide personal image design, stage performance makeup services, photography and art counseling.
Guangzhou Xingmiao Cultural Media Co., Ltd. was founded in 2012, which has a professional executive team, domestic and foreign model team and photography team. Italian fashion planning and design directors and French D&G photographers are invited to join the company, providing high-quality model services for global and domestic shooting, exhibitions, product launches and so on. Professional directors lead the Paris production company to shoot foreign films, travel, etc. Cooperate with professional external mold team to meet various shooting needs.
Regarding your data you intend to store, What’s the original source of those data, and do you have any proof of ownership or authorization?
The data we intend to store on the Filecoin network is publicly available, mainly including video materials, advertising. The videos come from various large stage performances, such as parties, sports events, festivals, art modeling contests, art festivals, public benefit performances and exhibitions, etc. The format is document, video, and audio. The total is about 50T.
Has your organization obtained DataCap before?
None.
Please list any of your honor and disputes in the field of Filecoin.
None.
Please describe your plan to use DataCap briefly? (such as use case, miner etc.)
We plan to select about three miners.

About the website/Social Media you provide

The company described in https://cn.hk.uy/Nt6 is same as https://github.com/filecoin-project/filecoin-plus-client-onboarding/issues/906
I could not get in touch with the WeChat account you provided, and the other party didn't have knowlege of this application.
Based on the above doubts, I can't trust and allocate datecap to you this time.

We are in the same industry with 广州尚恩文化传播有限公司, and we recommended Filecoin to them after we learned that filecoin can be stored at a low price.     When they showed us their website information, we mistakenly posted their information.     We have corrected it.    Because we are a traditional industry and don't do website, but we do have a lot of data. In addition, Luo is busy on a business trip, so you have not contacted her.  We can submit our business license and sample data to prove the authenticity of our business.


Fixes AlphonsoCode/DEF#2618. Bugfix race condition for active host state

Since, the current active namenode state is shared across webhdfs object.
So in a scenario where two almost parallel requests are made towards a same
stanby namenode, one of the requests would trigger a switchover in the
state and the other request "unaware" of the previous trigger made almost
at the same time would trigger again essentially making its request
go to the original standby namenode. The "almost same time" here means
async requests made without waiting for each others' callback and
updating the shared state as and when the callbacks are fired.
This commit fixes this bug by adding a check to distinguish between
state "seen" at the time of making the first request and the "current"
state before making a retry request. A switchover is triggered when the
two state match otherwise current state is used.

Going ahead with the merge after @aseem-alphonso 's review.


.form-floating, .was-validated and z-index

_input-group.scss
Upon validation ".was-validated" applies "z-index:1" to child inputs, causing the label to be displayed behind input.
".form-floating" labels need "z-index:2" (or higher) to remain visible

Bug reports must include a live demo of the issue. Per our contributing guidelines, please create a reduced test case via CodePen or JS Bin and report back with your link, Bootstrap version, and specific browser and operating system details.

This is a saved reply.


Improve bigint docs.

This commit converts instances of <string literal>.as_bytes() in the bigint doc examples to byte string literals. It also adds examples for from_bytes_le() and to_bytes_be().

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @huonw (or someone else) soon.
If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.
Please see CONTRIBUTING.md for more information.

Thanks!


Proposal: Support Hex Display and Input in NumberBox

Proposal: Support Hex Display and Input in NumberBox
Summary
Support inputting "FF", "FF2813" or "0xFF" in the NumberBox and preserve the hex values when evaluated and re-displayed.
Rationale
There are lots of use cases for this -- it's needed for the Hex input box of the ColorPicker for one.
Scope

Capability
Priority

Support input of hex numerical values
Must

Support display of hex numerical values
Must

Support configuration between hex and decimal display/input
Must

@SavoySchuler FYI, this seems cool to me.

@StephenLPeters @teaP @SavoySchuler Is this something the community can contribute to the NumberBox as the team is busy with WinUI 3? I have started to think about how we could approach this and created an API proposal including an API demo below. Let me know if this is something I/the community can further pursue here with the goal of adding this to the NumberBox  as a community contribution before WinUI 3 is done and will free up some team resources to work on this proposal.
@robloo If you can, please play around with the proposed API, read through the API proposal and let me know if you think anything else is missing here which we should cover fpr hexadecimal support for the NumberBox.
API Overview
My current thinking is to create a new HexadecimalFormatter API to enable hexadecimal support, similar to the existing DecimalFormatter API which is used by the NumberBox right now to display decimal numbers. This new API will enable us to provide great customization options to customers - for example giving them the option to configure the supported input prefixes, the desired output prefix and how many digits should be displayed as a minimum. The goal with this proposal is to position the NumberBox control to be well-suited as a versatile Hex input/output control.
Now, before I start a detailed post about the API and the current open design questions I am seeing, I want to let you know that you can check out the proposed API here "live" as I've uploaded my current work on the HexadecimalFormatter in a branch in my WinUI fork. So, instead of just having to read through pontentially lots of  text, questions and descriptions which can turn out be become quite tedious, you can check out the proposed APIs and play around with them while reading through this proposal! You will more information on the provided API demo in the "API Demo" section at the bottom of this post.
With that out of the way, let's start.
API Examples
Assign a HexadecimalFormatter instance to the NumberBox
To enable hexadecimal input/display support, we can simply create an instance of the HexadecimalFormatter class and assign it to the NumberFormatter API on the NumberBox:
XAML
<!-- Defined in a resource dictionary -->
<muxc:HexadecimalFormatter x:Key="HexFormatter"/>

<muxc:NumberBox
     x:Name="DemoNumberBox"
     Value="256"
     NumberFormatter="{StaticResource HexFormatter}"/>

C#
this.DemoNumberBox.NumberFormatter = new Microsoft.UI.Xaml.Controls.HexadecimalFormatter();

Note: In the following example sections, I will only show XAML markup code. You can of course always use code-behind as well.
Customize the display output
You can customize the display output of the HexadecimalFormatter in several ways:
Customize the output prefix
You can use the OutputPrefix API of the HexadecimalFormatter to set your desired display output prefix:
<muxc:HexadecimalFormatter
     x:Key="HexFormatter"
     OutputPrefix="0x"/>

Customize the minimum number of digits to display
To configure the minimum number of digits to be display, the MinDigits API can be used:
<muxc:HexadecimalFormatter
     x:Key="HexFormatter"
     MinDigits="6"/>

Customize the display input
Customize the supported input prefix
By default, no input prefixes like "#" or "0x" are supported. However, you can use the InputPrefixes API of the HexadecimalFormatter to set a list of supported input prefixes:
<muxc:HexadecimalFormatter
     x:Key="HexFormatter">
    <controls:HexadecimalFormatter.InputPrefixes>
        <x:String>#</x:String>
        <x:String>0x</x:String>
    </controls:HexadecimalFormatter.InputPrefixes>
</muxc:HexadecimalFormatter>

Remark
Due to the nature of how the NumberBox string parsing currently works, if you specify a custom output prefix and want to use arithmetic expressions (NumberBox.AcceptsExpression = true), you will also have to add the specified output prefix to the InputPrefixes collection. Otherwise, the expression won't be successfully processed. The input parser will receive the entered expression string, including any existing specified custom out prefix. However, if the InputPrefixes collection does not contain the output prefix, the output prefix will be treated as an invalid input, thus ensuring the expression parsing fails.
Switch between hexadecimal display/input and decimal display/input.
If you want to switch between the hexadecimal and decimal numeral systems, all you have to do is assign a new HexadecimalFormatter or DecimalFormatter to the NumberBox.NumberFormatter API:

where we handle the "Numeral System Mode" ComboBox selection in code-behind like this:
private void NumeralSystemComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
    if (this.NumeralSystemComboBox.SelectedIndex == 0)
    {
        // Decimal numeral system

        var formatter = new DecimalFormatter {
            IntegerDigits = 1,
            FractionDigits = 0
        };

        this.TestNumberBox.NumberFormatter = formatter;
    }
    else
    {
        // Hexadecimal numeral system

        var formatter = new HexadecimalFormatter() {
            OutputPrefix = "#",
        };

        this.TestNumberBox.NumberFormatter = formatter;
    }
}

Conversion of floating-point numbers to hexadecimal display output
The HexadecimalFormatter follows the behavior of WinForm's NumericUpDown control which, if given a non-integer number of the form X.YZ, throws away the fractional part and keeps the integer part. In other words, a value like 10.75 will be displayed as A in the hexadecimal output mode. The HexadecimalFormatter currently works the same way:

API Notes
Notable Properties

Name
Description

InputPrefixes
Gets the set of string prefixes an input can pick a valid string prefix to use from.

OutputPrefix
Gets or sets the string prefix used for the display output. If you have specified a custom output prefix, please make sure to also include it in the InputPrefixes collection. Otherwise, if you want to use the NumberBox with arithmetic expressions, the entered expressions will not be processed successfully if they contain the output prefix.

MinDigits
Gets or sets the minimum number of digits to be displayed.

API Details
namespace MU_XC_NAMESPACE
{

[WUXC_VERSION_PREVIEW]
[webhosthidden]
[default_interface]
runtimeclass HexadecimalFormatter : Windows.UI.Xaml.DependencyObject, Windows.Globalization.NumberFormatting.INumberFormatter2, Windows.Globalization.NumberFormatting.INumberParser
{
    HexadecimalFormatter();

    String OutputPrefix{ get; set; };
    Windows.Foundation.Collections.IVector<Object> InputPrefixes{ get; };

    [MUX_DEFAULT_VALUE("1")]
    Int32 MinDigits{ get; set; };

    static Windows.UI.Xaml.DependencyProperty OutputPrefixProperty{ get; };
    static Windows.UI.Xaml.DependencyProperty InputPrefixesProperty{ get; };

    static Windows.UI.Xaml.DependencyProperty MinDigitsProperty{ get; };
};

}

Additional Notes
The HexadecimalFormatter API shown above does not yet implement the INumberFormatter API, as done by the DecimalFormatter, for example. The reason is that my goal for now was to create an API which works primarily in the NumberBox use case in order to gather feedback on the general direction of this API design. If this API is something the team and the community like @robloo think is the right approach here, we can always implement the INumberFormatter interface as well if deemed useful.
The HexadecimalFormatter API also does not implement the INumberFormatterOptions compared to the DecimalFormatter. In this case, I think most of the APIs defined by that interface are not useful for the HexadecimalFormatter, such as FractionDigits, GeographicRegion, IsDecimalPointAlwaysDisplayed, NumeralSystem, etc.... As such, to my understanding, implementing this interface would add "too much noise" to the HexadecimalFormatter API. Please let me know if I'm om the wrong track here.
There is one API of the INumberFormatterOptions interface, however, which I believe will be useful to the HexadecimalFormatter: IsGrouped
I interpret this API as the following in the context of our HexadecimalFormatter. Given a hex number like 0xFFFFEEEE, if we set IsGrouped to true, the display out will look like this: "FFFF EEEE"
The same grouping behavior can be observed in the Windows Calculator app:

Based on my own experience working with hex numbers, this visual grouping makes handling hexadecimal numbers significantly easier and I believe we should add support for this to our HexadecimalFormatter. This, however, raises two questions for me immediately:

Would this one API be reason enough for the HexadecimalFormatter to implement the INumberFormatterOptions interface?
Should the number of digits being grouped be made configurable? I mostly only ever saw a grouping of four hex digits like in the Calculator case. Are there cases where a different grouping - like every two digits for example - would be useful?

Adding an IsGrouped API would als require changes to the NumberBoxParser code because the parser currently does not support spaces between numbers. An input like "1234 5678 + 9ABC DEF0" is currently treating the grouped value "1234 5678" as two separate values - and since there there is no operator defined to handle these two values as operands the parsing fails. Passing down a NumberFormatter.IsGrouped value to the NumberBoxParser coud allow us to ignore whitespaces while parsing and interpret all digits - before an operator or paranetheses - separated by whitespaces as a single value: I.e. "1234 5678 + 9A B    C D  EF0" would be interpreted as "12345678 + 9ABCDEF0".
In that sense, having the HexFormatter API implement the INumberFormatterOptions could prove useful since we could then just check if the specified NumberFormatter implements this interface and query the status of INumberFormatterOptions.IsGrouped.
The IsGrouped API would effect both input and output, i.e. if IsGrouped is set to true, inputs like "FFFFEEEE" and "FFFF EEEE" would both be legal. If an input like "12345678" is entered, its output would look like "1234 5678" (just like the Windows Calculator app currently does it). With this said, it might be better to name this API IsGroupingSupported as ungrouped input is still valid. What do you think?
Open Questions

The most important question first: Is this an API approach which makes sense to the community and the team? Should further time be invested into it?
Should HexadecimalFormatter ship with an IsGrouped API as otlined above? Should IsGrouped affect both input and output? Would "IsGroupingSupported" be a better name here? Should the number of digits in a group be customizable (this would affect how the output string will look)?
Which additional interfaces should HexadecimalFormatter implement which are currently implemented by the DecimalFormatter and related formatters - like INumberFormatter - and why?
Other than the mentioned IsGrouped API, which additional APIs should the HexadecimalFormatter provide to satisfy common hex inout/output configurations?
Currently, passing null to the NumberBox.NumberFormatter API will result in an exception: https://github.com/microsoft/microsoft-ui-xaml/blob/master/dev/NumberBox/NumberBox.cpp#L294 Would it make sense to change this behavior to so that specifying null here would cause the NumberBox to fall-back to its default (decimal) number formatter? This would allow developers to specify a different NumberFormatter without having to re-create the default number formatter if they want to switch back to it (for example by providing a UI toggle to change from hex to dec input/output mode of the NumberBox back-and-forth). What do you think about this? It sounds like this would be a welcomed improvement to me, removing work developers might to doo additionally as a side-effect of them assigning a non-default NumberFormatter.

API Demo
As mentioned in the beginning of this post, I've uploaded my current work on the HexadecimalFormatter in a branch in my WinUI fork here. If you compile the MUXControlsTestApp, you can open the NumberBox test page and start playing around:

Notice the ComboBox on the left titled "Numeral System Mode". Use it to switch between hex and decimal mode for the NumberBox with the value "256". In code-behind, you can checkout the NumeralSystemComboBox_SelectionChanged method to set more configuration options on the HexadecimalFormatter object (or you can use XAML markup).
Remarks
@teaP Observe that I am currently declaring the InputPrefixes API as Windows.Foundation.Collections.IVector<Object> InputPrefixes{ get; }; in the MIDL file instead of Windows.Foundation.Collections.IVector<String> InputPrefixes{ get; }; which would match the given API spec. The reason is that if I write it like the latter, the XAML compiler generates faulting code and building in VS fails with the message:
void winrt::impl::consume_Windows_Foundation_Collections_IVector<winrt::Windows::Foundation::Collections::IVector<winrt::hstring>,T>::Append(const winrt::param::hstring &) const': cannot convert argument 1 from 'winrt::com_ptr<To>' to 'const winrt::param::hstring &
Additionally, in the XamlMetadataProviderGenerated.cpp file, the generated code looks like this:

If I specifiy an IVector or and IVector (as I'm currently doing as a workaround) instead, the compiled code works just fine. As I believe this is a XAML code generation bug, I will open an issue about this in the WinUI repo later. Instead of
collection.as<winrt::Windows::Foundation::Collections::IVector<winrt::hstring>>().Append(value.as<winrt::hstring>());, The generated code is probably supposed to like this this:
collection.as<winrt::Windows::Foundation::Collections::IVector<winrt::hstring>>().Append(unbox_value<winrt::hstring>(value));

@Felix-Dev Lots of good stuff here to dig through! Give me a bit to provide feedback -- if any is really required. You have lots of good ideas already.
I do remember in the original NumberBox spec discussion I was excited about using custom implementations (in C#) of the INumberFormatter2 interface to customize formatting. However, this was quickly shot down by @SavoySchuler for some reason it wasn't supported -- I don't know if there are issues in interop layers or the problem was with parsing, etc. Maybe it was just a miscommunication. If there are no technical limitations though its a great idea to add a new HexadecimalFormatter -- but it's going to have to go into WinRT I'm afraid (which means the impossibly slow and unresponsive Windows team).
Also, this whole discussion is related to the generalized topic of supporting custom formatting and parsing: https://github.com/microsoft/microsoft-ui-xaml/issues/2684.

@robloo Thanks already for taking an early look.

I do remember in the original NumberBox spec discussion I was excited about using custom implementations (in C#) of the INumberFormatter2 interface to customize formatting. However, this was quickly shot down by @SavoySchuler for some reason it wasn't supported -- I don't know if there are issues in interop layers or the problem was with parsing, etc. Maybe it was just a miscommunication.

Hmm, prior to working on this API proposal I did read the NumberBox initial discussion thread and spec again. I also checked the ppec PR discussion just now. I'm afraid to say I didn't find the message you are remembering here. I did find one comment by @SavoySchuler here (under "Localization") where he said that the "the intention of the current implementation" of the NumberBox is the support of " any INumberFormatter/INumberFormatter2". Then again, these threads are massive so perhaps I just missed the comment you are remembering here.
That said, I'm not aware of any "technical limitations" regarding the approach I chose above. The proposed HexadecimalFormatter is implemented in C++/WinRT and works great as you will hopefully notice when playing around with it (or just checking out the posted images/gifs). You could also, in your C# project, just write your own HexadecimalFormatter all in C# and pass it the NumberBox as well - there shouldn't be any issues there.
What I like about the current API proposal is that we are providing customers with a fully implemented hexadecimal formatter, yet still aim to give them the relevant customization options they expect here to easily customize the supported inputs (like input prefixes) and the final display output (output prefix, min digits to show (useful for displaying colors, for example) and whether the output should be grouped for better visibility). Ideally, we would implement this HexadecimalFormatter and no customer would ever have to write their own hex formatter/parser for the NumberBox - except for if they have some really uncommon requirements.

If there are no technical limitations though its a great idea to add a new HexadecimalFormatter -- but it's going to have to go into WinRT I'm afraid (which means the impossibly slow and unresponsive Windows team).

Yes, this requires some thought here. Currently, formatters like the DecimalFormatter are in the  Windows.Globalization.NumberFormatting namespace. It seems as if the proposed HexadecimalFormatter should also go into that namespace then.  This would present a significant barrier for a community contribution though as that part of the SDK is not open-source. It will also mean all the other known disadvantages of shipping it in the OS (no default downlevel support, etc...). Perhaps Project Reunion could be used here to distribute a community provided HexadecimalFormatter implementation.
Perhaps the fastes way of shipping an API like the proposed  HexadecimalFormatter to customers would be to implement and distribute it to customers via the Windows Community Toolkit - until the Project Reunion Github repo is ready to ship it.

@Felix-Dev I checked the original thread again. My memory wasn't entirely clear and there isn't a technical limitation in supporting INumberFormatter2; however, the reason I'm remembering it isn't supported is because the number formatter can't handle parsing. Therefore, as soon as you use it to add something like a degree symbol, extra spaces or '0x' it breaks https://github.com/microsoft/microsoft-ui-xaml/issues/483#issuecomment-558807787. So INumberFormatter2 becomes almost useless.
Parsing/Formatting need to be coupled together as discussed in #2684

however, the reason I'm remembering it isn't supported is because the number formatter can't handle parsing. Therefore, as soon as you use it to add something like a degree symbol, extra spaces or '0x' it breaks #483 (comment). So INumberFormatter2 becomes almost useless.

@robloo It's true that currently, spaces between digits of a number is not supported when parsing expressions. However, this is a limitation of the current NumberBoxParser (which consumes the specified NumberBox.NumberFormatter to parse strings to doubles) which I will fix in a commit in my experimental branch soon. This will result in the NumberBoxParser sending an input like "4567 89AB" to the specified NumberFormatter which implements INumberParser. In other words, with this change, it will now be up to the developer provided INumberParser if spaces between digits of a value are allowed or not. This will enable me to create a working HexFormatter.IsGrouped API.
As for prefixes like "0x" or "#": The NumberBox will currently send an input like "0x12345678" directly to the specified NumberFormatter to parse - thus again leaving it up to the developer if those are valid inputs. For an example, see the current implementation of the HexadecimalFormatter here: https://github.com/Felix-Dev/microsoft-ui-xaml/blob/4e8079500a38b7c4912e4291bd5cdaea4379f259/dev/NumberBox/HexadecimalFormatter.cpp#L136
In the code above, the HexadecimalFormatter first checks if the entered text contains one of the supported HexadecimalFormatter.InputPrefixes. If "0x" or #" have been added as valid input prefixes then all is good: They will be stripped from the input and allow further parsing to proceed. If those have not been added to the list of valid input prefixes, yet are still used as a number prefix, then parsing will fail.
Just as how I am working with prefixes here, a different NumberFormatter passed to the NumberBox (implementing INumberParser) could handle the degree symbol accordingly - or any other prefix/suffix specified. That will be entirely up to the implementation provided by the developer.
And just as how the INumberParser can deal with custom value prefixes/suffices loke "0x" or "#", so can the INumberFormatter2 part of the provided NumberBox.NumberFormatter take a numerical value and add custom prefixes/suffixes to its output string. This is exactly how I am currently implementing the HexadecimalFormatter.OutputPrefix API.
So, to summarize: The proposed HexadecimalFormatter implements both the INumberFormatter2 interface and the INumberParser interface (that gives you the parsing/formatting coupling) to implement custom prefixes as shown in the images/gifs above.
Reading through the post you've linked, I have a feeling we are looking at a missunderstanding here because developers can provide input with custom prefix/suffix support just fine right now - when implementing their own INumberFormatter2 and INumberParser. There is one limitation currently in-built in the NumberBoxParser which concerns spaces between digits but that is a limiation I will soon address in my linked branch. Other than that, I'm not ware right now of any other limitations preventing developers from providing custom parsers.

@Felix-Dev this looks really promising to me, truely excellent work. @ranjeshj and @MikeHillberg should be aware as well.

I anticipate a desire to have an numberbox which can take as input either a hex or a decimal input and then maintain that format for the output, so if it write 10+10 i get 20 and if I write 0x10 + 0x10 i get 0x20.  I think this behavior would not be supported by this proposal?

I anticipate a desire to have an numberbox which can take as input either a hex or a decimal input and then maintain that format for the output, so if it write 10+10 i get 20 and if I write 0x10 + 0x10 i get 0x20. I think this behavior would not be supported by this proposal?

@StephenLPeters You are correct, the proposed API only focuses on interpreting input as hexadecimal values: Input like 10, 0x10 and #10 would all represent the number 10 in hex (thus 16 in decimal). The HexadecimalFormatter won't understand the an input like 10 as anything other than a hex number.
However, the proposed HexadecimalFormatter API could be used to build such a NumberBox experience you mentioned. That experience would be powered by a new NumberBox.NumberFormatter which internally has both an instance of this HexadecimalFormatter and an instance of the existing DecimalFormatter. Which one of these it would use internally to parse input and format numbers would depend on the prefixes it encounters: If the input is a number without a prefix, it would use the DecimalFormatter. If the number entered has a prefix like "0x" this new NumberFormatter would call its internal HexadecimalFormatter to do the work of parsing that number.
So, to conclude, this proposed API could be used as a building block to create such a NumberBox behavior. Just as how the NumberBox makes use of the DecimalFormatter today, it can make use of a combination of different numeral system formatters in the future.

@Felix-Dev has a good idea to keep a separate HexadecimalFormatter and DecimalFormatter with clearly defined scope and then on top of that a NumberFormatter that handles mixing/matching between them. That is the cleanest architecture I think and allows for future expansion (binary, octal, etc.).
On top of @StephenLPeters's comments, we should probably figure out how to handle 'units' at least conceptually. Other numerical input boxes like this can support cm, mm, m units and automatically do conversions. That concept is related to 0x, 0b, etc prefixes and automatically converting to the base numerical system -- whether hex or decimal.
The ideas here are going to end up solving most of the issues mentioned in #2684. I still advocate for a more clear internal processing pipeline that can be hooked into from derived controls though.

@robloo @StephenLPeters With the latest commit to my branch I have now added HexadecimalFormatter.IsGrouped API support as outlined in the proposal. Please take a look:

As part of this gif, you will probably also notice that I now can add spaces between digits and the entered numbers will still be parsed correctly. This is an independent, but required, functionality for the IsGrouped API. Here is a GIF to show it's not dependent on the status of IsGrouped (IsGrouped is set to false):

As you can see, the amount of spaces between digits and even where I put spaces between digits doesn't matter. However, if I were to set a custom input prefix like "0x" and then enter a value like "0 x1234 5678" parsing would fail as "0 x" has not been specified as a valid input.
This support has been added in a way that the existing behavior for the default NumberBox's NumberFormatter has been kept: As written earlier, the added change now sends input values, potentially with spaces between its digits, to the specified NumberFormatter. (Previously, spaces between digits were used by the NumberBoxParser to treat digits to the left and the right of the space as separate numbers.) It will be up to the INumberParser of the NumberFormatter now to decide if spaces between digits is valid or not. For the default DecimalFormatter, this is not the case, hence an input like "1 23 4" will still fail. For hexadecimal input, however, it is not that uncommon to add spaces between digits (see the Windows Calculator app) so there's a chance pasted hex input will contain spaces between digits. With this change, the HexadecimalFormatter can now decide if this is valid input - and the current implementation does indeed say so.
I would also like to note that there is currently no "live UI update" support when changing properties of the HexadecimalFormatter which are affecting the display output. In the first gif, given a text value like "1234ABCDE" and then toggling the IsGrouped checkbox does not yet update the display string to "1234 ABCD" (same case with changing the output prefix or the min digits to display). While these settings will apply for the next input, the NumberBox currently has no way to learn about changes made to these properties of the HexadecimalFormatter and thus does not update the display output when these are changed. To enable this scenario, I propose adding the following events to the HexadecimalFormatter the NumberBox can listen to:

public event System.EventHandler<object>OutputPrefixChanged;
public event System.EventHandler<object> MinDigitsChanged;
public event System.EventHandler<object> IsGroupedChanged;

An event for the property InputPrefixes is not needed since that property only affects input being typed into the NumberBox and thus is irrelevant for the display output.

This is going to add too-many specialized 'property changed' events in my opinion.

It's also worth pointing out that the current existing formatters in Windows.Globalization.NumberFormatting don't have any such property changed events either. Which means that for "live UI updates" to the display output, developers would currently have to assign a new instance of the used formatter (such as DecimalFormatter) anyway. Providing a consistent API surface here sounds reasonable to me. Note that these existing formatters do support their properties to be configured during the lifetime of the object so this is also something which the HexadecimalFormatter should provide.
Indeed, thinking further about it...let's not add these events here :). The NumberBox can always register its own property changed event handlers for these properties if "live UI refresh" is desired. The HexadecimalFormatter does not need to and probably also should not provide such events. Good comment!

I agree with rob, your events solutions would require that the numberbox know, or somehow check which events to redrawn the content in response to, which doesn't seem right.  If you made the properties immutable then you could redraw when you get a new formatter.

And I agree with your response as well, since the other formatters are mutable this one should be as well.

I have added a separate test page to play around with the HexadecimalFormatter implementation in my local repo:

The test page can be found on the new landing page for NumberBox test pages:

@StephenLPeters Do we have a plan how to proceed here and if yes, how would that look? Is there anything else I should do for now or have we reached a point where th team has to weigh in?

@Felix-Dev This is all really good stuff!
Since we don't have access to WinRT it makes sense to put this where you have it in the WinUI Repo I think.

Hey, any updates on this since this is 2 years old?

this is necessary Please M$

This should have been pulled into the NumberBox v2 rework that never was done 3+ years ago. Still seems useful if that is ever done.


Support changing password

It would be nice to be able to change the user-provided password easily.
This means that all the data has to be decrypted with the old password and re-encrypted with the new one.
It can be handy when you want to switch from a default password to a user-provided password. And for later when the user wants to change it.

Agree.

I added a first POC implementation of changePassword(). Was pretty straight forward and could easily be used to migrate null passwords.
@davidmigloz If you like you can have a look at it, I pushed it on feat-13-change-pw

It looks pretty good 👍

Was merged

I'm working currently in adding the change password feature to the sample app.


History's recyclerView item height is spanning the height of the screen for each item.

This is happening after the dependencies and target API were updated to 25.0.1

Fixed.


Use tparse in tests

Closes: #17
Signed-off-by: Michael Gasch<EMAIL_ADDRESS>

Codecov Report

Merging #19 (272e556) into main (2217ad1) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #19   +/-   ##
=======================================
  Coverage   89.71%   89.71%
=======================================
  Files           4        4
  Lines         175      175
=======================================
  Hits          157      157
  Misses         11       11
  Partials        7        7

Continue to review full report at Codecov.

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


[web] Web app requires a full reload if switching between users of dirrent permissions to show/conceal privileged elements

Describe the bug
When switching between users of different permission levels (e.g., a SUPERUSER and a normal user), the webapp requires a full reload for the relevant, permission-specific GUI elements to be shown or hidden appropriately.
:warning: Warning! Due to the web interface's ViewModel behaviour, this allows the leaking of product configuration to supposedly unauthorised users. The unprivileged user is not able to destructively change information, and some information (such as product permissions) remain hidden still.
This is not a direct security issue because to have the information appear, you'd need to log in as a privileged user anyway during the process, at which point (assuming you are an attacker with the option to log in as superuser) you would be capable of destructive changes to the server.
CodeChecker version
6.21 release
To Reproduce
Steps to reproduce the behaviour:

Log in as privileged user.
Observe the "Edit global configuration" and the :pencil2: icons visible.
Log out, and log in as unprivileged user.
Observe that the icons are still there.
Click on a :pencil2: for a product. The configuration will load and will be visible (such as database user, hostname, etc.).
Try changing things, the save action will appropriately be rejected.
Switch to the "Permissions" tab during the edit of a product. It will remain empty, without any warnings (neither visually nor in the browser's console).
(Same applies to the "global permissions" view.)

In some cases weird status messages can be triggered by trying to save from an unauthorised view:

Expected behaviour
The GUI elements are shown/hidden appropriately, and automatically. And that the product configuration not needed for unprivileged users is not available to unprivileged users.
Desktop (please complete the following information)

OS: Ubuntu 20.04 LTS
Browser: Firefox
Version: 19.0

Thanks, I suspect we have some stale data in our vuex store, or not properly construct the root component, upon login. Will check this.

Fixed by #3840.


Leetcode Question Number 1967

Leetcode Question Number 1967 solution needs to be added in the repo .
The link for the question is this.
Accepted Languages C++ / JAVA .
You Only need to add the  class Solution in the file.
Make Sure you have read the contributions guidelines before creating an PR.

please assign me to this

thanks!


Chart Update - Cost Analyzer (Kubecost)

Helm 2 Chart - Cost Analyzer v1.57.2 (Kubecost)
Located in the dev branch of https://github.com/rancher/charts

Validated in both v2.4-head and master-head using rancher chart branch dev

Using default options deploys successfully
Deploys successfully as multicluster app
Using non-default options deploys successfully
Links work correctly


Read Workflows from yaml

Currently the code supports writing hera classes to a yaml files:
workflow.to_yaml()
It would be very helpful to be able to read yaml files to hear classes.
This way we can have partial class definitions in yaml files, and then load it into the code
workflow.from_yaml(file)
container.from_yaml(file)

As a halfway point, we do currently have pydantic's parse_obj to be able to work with the auto-generated models. i.e.
from hera.workflows.models import Workflow
import yaml

with open("my-workflow.yaml", "r") as yaml_file:
    workflow = Workflow.parse_obj(yaml.safe_load(yaml_file.read())) # I'm sure there's a simpler way to do that...

So the goal of this issue would be to convert from the autogenerated pydantic models into Hera classes - maybe class functions like parse_from_model on compatible classes? Then from_yaml can convert to the model first (which also ensures the yaml is a valid model object for free) then convert to the Hera class
e.g.
class Workflow(...):

    def parse_from_model(cls, w: _ModelWorkflow) -> Workflow:
        return Workflow(
            name=w.name,
            # do rest of 1-1 mapping here...
        )

I think we would need some mixin that would enable to save and read each type of object


Syntax Error, array default value

PHP Parse error: syntax error, unexpected '[' in /usr/local/psa/admin/plib/modules/wp-toolkit/vendor/guzzlehttp/psr7/src/functions.php on line 78

What version of PHP are you using?

its from the wp-toolkit included in plesk panel, i didn't check at the moment

Switch to php5.4 and it should work for you :) (i dont know what php version plesk panel with wp-toolkit is using)

It definitely looks like that short array syntax is causing the problem which was added in PHP 5.4.
Closing for now, feel free to reopen if it turns out to be something else.


[BUG] - Vultr instance never arrives at "ok" state in docker-machine

Describe the bug
I am trying to use docker-machine to spin up a vultr instance but it never fully finishes. It gets stuck at the "(vultr) waiting for server state to become 'ok'..." stage. On the vultr panel I can see the instance did actually spin up fully but docker-machine doesn't seem to think so. I run into this issue even using the very basic example from the docs.
To Reproduce
Steps to reproduce the behavior:

docker-machine.exe --debug create -d vultr --vultr-api-key= vultr
Hangs

Expected behavior
For docker-machine to finish and the instance show up as a docker container
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information where applicable:

OS: Win10
Language Version: go version go1.14.3 windows/amd64
Docker-Machine Version: docker-machine.exe version 0.12.2, build 9371605

Additional context
Docker-machine output:

PS C:\Users\Tanner\go\src\github.com\vultr\docker-machine-driver-vultr> docker-machine.exe --debug create -d vultr --vultr-api-key=****** vultr
Docker Machine Version:  0.12.2, build 9371605
Found binary path at C:\Users\Tanner\go\bin\docker-machine-driver-vultr.exe
Launching plugin server for driver vultr
Plugin server listening at address <IP_ADDRESS>:61773
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(flag-lookup) Calling .GetMachineName
(flag-lookup) Calling .DriverName
(flag-lookup) Calling .GetCreateFlags
Found binary path at C:\Users\Tanner\go\bin\docker-machine-driver-vultr.exe
Launching plugin server for driver vultr
Plugin server listening at address <IP_ADDRESS>:61775
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(vultr) Calling .GetMachineName
(vultr) Calling .DriverName
(vultr) Calling .GetCreateFlags
(vultr) Calling .SetConfigFromFlags
Running pre-create checks...
(vultr) Calling .PreCreateCheck
(vultr) Calling .GetConfigRaw
Creating machine...
(vultr) Calling .Create
(vultr) DBG | Generating SSH key...
(vultr) waiting for ip address to become available...
(vultr) Created Vultr VPS with ID: 42476196, Public IP: <IP_ADDRESS>
(vultr) waiting for server state to become 'ok'...

docker-machine ls output:

PS C:\Users\Tanner> docker-machine ls
NAME    ACTIVE   DRIVER   STATE   URL   SWARM   DOCKER    ERRORS
job     -        vultr    Error                 Unknown   Invalid server.

I also updated docker-machine to 0.16.2 and I still get the same issue.

@Static-Flow I'll look into this for you

quick update: I tried it on OSX and a linux subsystem for windows both with fresh from source builds and they both still hung on "waiting for server state to become ok"

@Static-Flow
This error is a bit of a false-positive.
When you initially deploy a instance it will get three states
  "42484495": {
        "SUBID": "42484495",
        "status": "active",
        "power_status": "running",
        "server_state": "installingbooting",

So while the instance is up - there still maybe install/boot processes running. That is why the server_state is in installingbooting
It will eventually change the server_state to ok however...this isn't all that great because it would require you to wait.
I'll look into changing these status checks to not wait until ok and run on active and running

hmm alright, I might change my local copy to do that and see how my mileage is. I'm trying to run a highly distributed workload with a lot of instances so the lag time waiting for docker-machine to actually register them as "ok" will dampen runtime.

I made a few changes and got it to work with a more reasonable time
➜  ~ time docker-machine create -d vultr --vultr-api-key=F6YYA56J5MDLCZEXX4EQ5H75IVNC4YAXRIHQ 123489
Running pre-create checks...
Creating machine...
(123489) waiting for ip address to become available...
(123489) Created Vultr VPS with ID: 42485369, Public IP: <IP_ADDRESS>
(123489) waiting for server state to become 'ok'...
(123489) stopped
(123489) stopped
(123489) stopped
(123489) stopped
(123489) stopped
(123489) stopped
(123489) running
(123489) installing and booting processes on the server are complete, server is ready to use
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with ubuntu(systemd)...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
Docker is up and running!
To see how to connect your Docker Client to the Docker Engine running on this virtual machine, run: docker-machine env 123489
docker-machine create -d vultr  123489  0.34s user 0.15s system 0% cpu 2:52.98 total

➜  ~ docker-machine ls
NAME     ACTIVE   DRIVER   STATE     URL                         SWARM   DOCKER      ERRORS
123489   -        vultr    Running   tcp://<IP_ADDRESS>:2376            v19.03.14

I will submit a pr that changes the status checks to check for running as it seems to be running fine without any issue.

Awesome! Yea my monkey patch worked as well to get it to a quicker response time. Thanks for the attentiveness to the issue!


Resolve syncing conflicts from repo_sync_working_branch to master

Pull request opened by Docs to resolve syncing conflicts from repo_sync_working_branch to master.

Resolved the merge conflicts. #sign-off
@justinha The conflicts between public and private repo in articles/active-directory/authentication/howto-authentication-passwordless-security-key-on-premises.md were extensive. I reviewed the version in the public repo earlier today, so I had a try at syncing the two versions so that repo sync can move forward. Please check the article carefully later today to be sure that the final version in both public and private repos are as you intended. Thanks.

@ktoliver: I'm sorry - only the author of this article, @jeevansd, @kengaderdus, @kenwith, @mmacy, @justinha, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.


Request to put a simple state-wise CSV file

Request to put a simple CSV file on the main page and update it every day.

You have the table on the frontpage, the support for downloading csv files will is being worked on at the moment. #75


Add CurrencyConverterApi service

For feature request #60
Docs
Docs (free plan): https://free.currencyconverterapi.com/
API docs: https://www.currencyconverterapi.com/docs
Service limitations

It provides one rate for the whole day

Free plan service limitations:

100 requests/hour (limit by IP address)
Allowed Back in History: 1 Year

Special:

Service uses 'Asia/Manila' timezone (UTC+8) on server, I implemented a time correction for this case

Thanks for your contribution @lptn !


deploying a .net app to a linux webapp with az-webapp-up fails

Our defaults when creating a new .net core app should continue to target windows.
However deploying to a linux app should be supported for .net core.

command output
Webapp 'bk-linux-dotnet' already exists. The command will deploy contents to the existing app.
The webapp 'bk-linux-dotnet' is a Linux app. The code detected at 'C:\Demo\core' will default to '<module 'os' from 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\os.pyc'>'. Please create a new app to continue this operation.

webapp

@btardif as per our discussion az webapp up has restrictions and follows the same rules it follows for create + deploy with az webapp up i.e .netcore defaults to windows. happy to have discussion to change design - but keep it consistent and avoid causing more confusion. for deployments we have az webapp config deployment - zip deploy commands & that should be used.


Coin Lock system

Abstract
This PR makes the "Don't spend my MN" system more abstract and general.
A Locked Coin is an UTXO that we don't want to spend, at the moment it is only used to avoid spending the masternode collateral (but it will have future application, for example when we will have a better coin control), the flow is the following:

While importing the wallet lock the masternode collateral
Each time a UTXO is put in the spent multimap, unlock it
So to check if the masternode is still unspent we can simply check if the collateral is in the lock set.

Overall the code is simplified because we can avoid outputting locked coins directly in the getBalance and getUTXOs functions.

Testing
Verify that your masternode is locked. Checking that the balance does not consider it is enough.

in addition this PR fixes masternodes that are currently broken on master


[release-v1.80] Do not consider MCM deployment as required

How to categorize this PR?

/area usability
/kind bug
What this PR does / why we need it:
Re-apply https://github.com/gardener/gardener/pull/8407 which got reverted with https://github.com/gardener/gardener/pull/8387.
/cc @timuthy
Release note:

An issue has been fixed which was causing a broken `ControlPlaneHealthy` condition report for `Shoot`s when the `MachineControllerManagerDeployment` feature gate gets enabled until their next reconciliation.

Thank you!
/lgtm
/approve

/lgtm


Add nrows to graph

Pull Request Description
Add number of rows to graph of entityset, closes #722

After creating the pull request: in order to pass the changelog_updated check you will need to update the "Future Release" section of docs/source/changelog.rst to include this pull request.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: MarcoGorelli:x: Marco GorelliMarco Gorelli seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

I believe you need to go back and ammend the older commits to have the recognized email / user name combination

Or since there are few changes, make another branch and redo the commits

Thanks - seems to be working now (in the other branch)