Java Sorting BAEL-32

Changes as per latest conversation in http://jira.baeldung.com/browse/BAEL-32

@eugenp  please bear with the comments in the JavaSorting.java file. Since I am waiting for your approval on @before part, i have kept some code for backup. Once you freeze those changes, I will remove the comments.

Verzonden door Huawei Mobile
Parth Joshi<EMAIL_ADDRESS>
@eugenp please bear with the comments in the JavaSorting.java file. Since I am waiting for your approval on @before part, i have kept some code for backup. Once you freeze those changes, I will remove the comments.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.￼
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/eugenp/tutorials","title":"eugenp/tutorials","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/eugenp/tutorials"}},"updates":{"snippets":[{"icon":"PERSON","message":"@joshiparthin in #868: @eugenp please bear with the comments in the JavaSorting.java file. Since I am waiting for your approval on @before part, i have kept some code for backup. Once you freeze those changes, I will remove the comments. "}],"action":{"name":"View Pull Request","url":"https://github.com/eugenp/tutorials/pull/868#issuecomment-263581944"}}}


cluster/ovn: move node logical switch creation to master

Node logical switches and their associated connections to the cluster router
are now created in the master on Kube API node add events, and cleaned up
from the master on node delete events.
Fixes: https://github.com/openvswitch/ovn-kubernetes/issues/531
@squeed @danwinship @openvswitch/ovn-kubernetes-team

@squeed @danwinship PTAL thanks

lgtm!

@girishmg @shettyg what do you guys think?

Would we not have a race condition still? i.e when we get a node add event, we may get a pod add event?

One idea is to just do a "--may-exist ls-add $nodename" whenever we create a pod.

@danwinship @squeed @girishmg @shettyg PTAL thanks! I fixed the race Guru was talking about in ovn: wait until node switch appears before starting pods on that node.
I'd actually like to go further in a follow-up and let the ClusterController update the logicalSwitchCache when the switch is created, rather than running ovn-nbctl in the Ovn Controller to find it. But that brings up the question of why we have the separation between these two parts still. Can we combine the ClusterController and the Ovn Controller? Both the node and master stil use the ClusterController but I think we can move almost all that into the master process and have much lighter-weight node side that doesn't actually use the ClusterController at all. THoughts?

@dcbw your changes looks good to me except for the lint error.
I think we discussed this sometime back. We should get away with --net-controller since with daemonset the master and so called net-controller will be in the same process always.

I think we discussed this sometime back. We should get away with --net-controller since with daemonset the master and so called net-controller will be in the same process always.

@girishmg ok good, I'll make that change in a follow-up.

@girishmg fixed up the lint error.

@dcbw tried your commits on my cluster and it seems to work fine. Your changes LGTM as well.

@dcbw
I think we will also need a syncNodes function to delete node resources if the delete event happened when the daemon was down.

@girishmg @shettyg added new commit to sync nodes on startup along with a testcase. How does that look now?

@dcbw
I haven't done any testing. If you have done some sanity testing, lgtm

@dcbw  Except for this forward looking comment that might come back haunting us, your changes looks good to me. I don't think we need to address this now.

> 	nodeSwitches, stderr, err := util.RunOVNNbctl("--data=bare", "--no-heading",
> 		"--columns=name,other-config", "find", "logical_switch", "other-config:subnet!=_")

Just a note there that when we integrate the dynamic IP address allocation for JOIN switch back, then the above will also return join switch. So, later on at L550 we will fail deleteNode.

For now, it looks good. However, we need to keep this issue in mind when we bring back dynamic addresses for Join switch.

@dcbw Great debugging the issue and fixing the same. I reviewed the changes and it looks fine to me.
There is no need to remove the federated event handler, I guess. Since all the sub-handlers are removed, it will be no-op for the duration the informer is shutting down.

There is no need to remove the federated event handler, I guess. Since all the sub-handlers are removed, it will be no-op for the duration the informer is shutting down.

@girishmg turns out you cannot remove an event handler from the shared informer... at least that I can see. Thanks for the review!

Retested with openshift docker-in-docker; a pod can ping the outside world.


Replace empty(), with === ""

Changes:

empty function in code was replaced by === "" to check empty string, because empty("0") = true and "0" is valid column name in MsSQL.

@ondrajodas pozries prosim aj toto? je to snad posledny problem


"and" and other keywords should be added to _pykeywords.py

the keyword "and" is missing in the KEYWORDS in _pykeywords.py as well as
{'False', 'True', 'async', 'await', 'nonlocal', 'with'}
perhaps
import keyword;
KEYWORDS=set(keyword.kwlist)

could be used

Thanks for the report.
I tried using keywords.kwlist previously, but it created the issue that Python2 and Python3 produced different sets of keywords which was a problem for users thus we need our keywords to be superset of both if we want the same behavior on both versions.  Unfortunately when I rolled back the patch I didn’t check the full keyword list that we were using.  I am guessing the original author must have overlooked “and” and “with”.  Of your list I do not see “async” or “await” but they are definitely keywords, thus it appears to be not just our bug but also Pythons.   “True”, “False” and “nonlocal” appear to just be stuff that we have not kept up to date.
Thus for now I will need to just add these to the list.  Once we drop Python 2 support then we will just switch to the keyword supplied assuming they are up to date. (which appears to be questionable)
Python 2.7:
['and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'exec', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'not', 'or', 'pass', 'print', 'raise', 'return', 'try', 'while', 'with', 'yield']
Python 3.6:
['False', 'None', 'True', 'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']
JPype:
_KEYWORDS = set((
"del", "for", "is", "raise",
"assert", "elif", "from", "lambda", "return",
"break", "else", "global", "not", "try",
"class", "except", "if", "or", "while",
"continue", "exec", "import", "pass", "yield",
"def", "finally", "in", "print", "as", "None"
))
Java:
abstract
assert
boolean
break
byte
case
catch
char
class
const
continue
default
do
double
else
enum
extends
final
finally
float
for
goto
if
implements
import
instanceof
int
interface
long
native
new
package
private
protected
public
return
short
static
strictfp
super
switch
synchronized
this
throw
throws
transient
try
void
volatile
while

Thanks a lot for the quick feedback! Do you plan a bug fix release?

I will patch it when I get home, but the maintainer will have to do the release.  We are kind of overdue for a maintenance release (0.7.1) anyway.  I am about half way through the August 2020 release for 0.8.0.

Didn't we drop support for Python 2.7 in the 0.7 release? I think it should be safe to use the keywords module now. I guess we can assume that this list is always up to date, because it is maintained by CPython itself.

No we still have support for python 2 in 0.7.0.  I wasnt going to drop Python 2 until we start 0.8.


Add CONTRIBUTING.md

@nnmm looks good. Could you add a section about licensing? Copying the relevant parts of https://github.com/ros2/rclcpp/blob/master/CONTRIBUTING.md is enough. Thanks.


HAVE_AUFS not defined

Hi,
I have a Linux kernel (4.14.71) with aufs. Overlayfs is disabled.
The pflask docs state, for the "--mount" option:

Stacks the host root_dir directory on top of the container’s dest directory using either AuFS or OverlayFS depending on what is found at compile-time.

File mount.c tests "HAVE_AUFS", however, this variable is not set anywhere. I am not familiar with Waf, looked at build/c4che/_cache.py, has a lot of variables but not HAVE_AUFS.
Do I have to explicitly set HAVE_AUFS? If so, is there a particular way to do it for waf?
Regards,
Barry

Hmmm, I looked back through the commits, and found that the guts of supporting aufs has been removed, even though the test for "HAVE_AUFS" is still in mount.c.
Puppy Linux and derivatives still use aufs, and that is not likely to change. I maintain Quirky Linux and EasyOS, forks of Puppy. I experimented with overlayfs about a year ago, and found a serious fault, that was not going to get fixed anytime soon -- can't recall what it was. Also, aufs supports direct writing to lower layers, which Puppy requires.
I am using pflask with the --chroot option, so it is not an issue. However, might have a look at reverting that removal of aufs, and fix it.
Just a note on the side: Puppy Linux and derivatives do not use systemd, they use the simple Busybox init.

Yeah, I removed AUFS support a while ago because it was dropped from the Debian kernels and I had no way to test whether the code was still working or not (so it was basically unmaintained).


export host node, set the value to $../..

for https://github.com/GumpDev/componentable/issues/5

you can find the host object in inspecter


[BUG] links on old repo opendistro-for-elasticsearch broken.

Describe the bug
documentation from the old repo should be updated to fix the links. .
To Reproduce
Steps to reproduce the behavior:

Go to https://github.com/opendistro-for-elasticsearch/opendistro-build/blob/main/release-notes/opendistro-for-elasticsearch-release-notes-1.6.0.md
Click on any of the security links
See error 404

Expected behavior
Should see a page/document rendered.

How should these broken links be resolved?


renaming-an-organization.md should contain info about just changing character case (e.g. github.com/Org to github.com/org)

What article on docs.github.com is affected?
https://github.com/github/docs/edit/main/content/github/setting-up-and-managing-organizations-and-teams/renaming-an-organization.md
https://docs.github.com/en/github/setting-up-and-managing-organizations-and-teams/renaming-an-organization
What part(s) of the article would you like to see updated?
I hoped to get information about side effects if I just rename the case of an organisation, e.g. github.com/Org to github.com/org
Does it can have side effects on any project/issue/git stuff or people working with repositories?

👋 @peterdd Our wonderful support team would be the best folks to answer that question! If you feel like there's a specific section of the docs that could use an update after you chat with them, please feel free to come back and let us know 💛

I think adding a hint or section in that document would be really helpful as this is a question every organisation on github.com has to answer itself. Should I name the path /Org or /org or kann I change the case anytime without side effects.

Should I name the path /Org or /org or can I change the case anytime without side effects.

I'm not sure of the answer to that question. If you check in with the support team to get an answer, then come back and open a new issue (or comment in this one!) we can absolutely consider adding some clarifying information ✨


Adjusting colours

I find the default grey-on-lightblue colour of the first listed flake8 error to be unreadable on my terminal.  I can't quite figure out from the vim-flake8 docs how to change that.  Can you make a suggestion and/or cover tweaking the colour scheme in the README?

The flake8 plugin only specifies that vim needs to display a message as an error or a warning. Vim then defaults to your color scheme of choice. By picking another color scheme (or tweaking your current color scheme definition), you can change your color preferences. Hope that helps!

In the colorscheme file, what pallet section does it use?
Narrowing it down would be helpful.


Run migrations for fresh installs

as per https://github.com/usememos/memos/issues/4060 the 00__reactions.sql migration for v0.23 does not run when you start with a fresh install
This PR covers 2 changes
Change 1:
GetCurrentSchemaVersion get the current version (v0.23) and passes it into the migration logic. getSchemaVersionOfMigrateScript then increases the minor version so the schema version is v0.23.1 which does not match up with the schema set in the version.go file.
Change 2:
For fresh installs the migrations logic does not currently run as the logic looks to see if schemaVersion > latestMigrationHistoryVersion but these 2 are set to be equal in the preMigrate logic if no previous migrations found which would be the case for fresh installs.

Not sure what is causing checks to fail. Will revisit tomorrow

@RoccoSmit Expectedly, the newly started instance should not execute any migrations. So I think what's needed here is to handle the default reactions value for memo setting.
Reference: https://github.com/usememos/memos/blob/main/store/workspace_setting.go#L157

Makes sense. I wasn't sure if the LASTEST.sql files were for creating the initial db structure and the migrations were to add data to the tables.
If migrations are not run on the first install, would it make sense to add the insertion of the initial reactions to the LATEST.sql files? If not, I'll add 👍 as a default reaction value in workspace_setting.go if no value is set during save and load.

I'll add 👍 as a default reaction value in workspace_setting.go if no value is set during save and load.

SGTM


Add backwards-compatibility for old cargo-tree flags.

Add backwards compatibility for the flags that were removed.
--invert is still not backwards compatible because it was fundamentally changed to take an argument.
Requested via https://github.com/rust-lang/cargo/pull/8062#issuecomment-613829752.

r? @Eh2406
(rust_highfive has picked a reviewer for you, use r? to override)

@bors: r+

:pushpin: Commit b0fa64b5e513f36bf5dc4e9374c7553d34acd8dc has been approved by alexcrichton

:hourglass: Testing commit b0fa64b5e513f36bf5dc4e9374c7553d34acd8dc with merge 2cb9243c02614a6408b02884779a0e0042bdc497...

:sunny: Test successful - checks-azure
Approved by: alexcrichton
Pushing 2cb9243c02614a6408b02884779a0e0042bdc497 to master...


Publish Microsoft Authored templates to azure samples browser

Publish azure-django-postgres-flexible-aca template to azure samples browser.
@rajeshkamal5050 and @hemarina for notification.

This is a generated repo, so this change will need to be made in https://github.com/kjaymiller/cookiecutter-relecloud
It's a great thing to do, to up the visibility of the samples!
cc @kjaymiller

The new PR is : https://github.com/kjaymiller/cookiecutter-relecloud/pull/324


Possibility to record arrival and departure information of the participants

Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
The participants of a conference should have the possibility to deposit information about arrival and departure.
This information should be available for the organizer.

Database model, migration script and routes for users.
Find here: https://github.com/bufak-wiso/bufakapi/commit/9510b45670d6ee7f76045c15ab0ec72480477fe6


Non-Modal Dialogs are rendered with Buttons to the left (instead to the right)

According to the docs one can create Dialogs-like-looking-Elements without the Popup-semantics by omitting the <dialog> tag and only use <article>:
  <article>
    ...
    <footer>
      <button className="secondary">Cancel</button>
      <button>OK</button>
    </footer>
  </article>

Current Behavior
Unfortunaltely the Buttons are rendered to the left side in this case. When embracing the article by a dialog the buttons are rendered to the right.
Expected Behavior
I expect <article> without an enclosing <dialog> renders the same way (i.e. the buttons to the right)
I think the problem is this line as it is part of a selector dialog > article > footer instead of simply article > footer.
Maybe the whole footer section should be moved out of the dialog selector?!?
Reproduction URL
https://jsfiddle.net/owgcpb4j
Environment
Windows 11, Firefox, PicoCSS latest (v2)

One hack that you can use is that you put a nav in the footer and put the buttons in a div or ul. You can then use an empty div as the first child of nav, which will move the buttons (second child) to the right.

My intention was not to find a hack (I implemented already a workaround via CSS), but to fix the issue.
I would even provide a pull request if s.b. conforms that my solution will not break something else...

Aligning right for dialogue > article > footer is already very opinionated.
Aligning right for article > footer might be too much.
I would love to hear other user's thoughts.

Pico v2 will offer a CSS version that only enables Pico styles for specified parts of your HTML code.


Update support URLs

Update the support.vastdata.com URLs to the new location (specifically the 5.0 docs). Pretty sure I got these pointing to the right place but please confirm.

@cpeel Many thanks for the contribution!

@simons-gitt @royt-vastdata Could you please review?


Information concerning similar plugins

Can you describe in the Readme how this plugin differs from the other Grafana plugins that permit html/javascript:
text panel
html panel
ajax plugin
ps. Love what you are doing with the OPC-UA plugin. Every automation person is waiting for a solid OPC Grafana plugin wheter they know it or not! ;-)

@xkilian, For sure. I can update it with some extra info. I think the idea was to have this plugin be easier to use, with appropriate hooks. You should just be able to copy and paste from an example, and expect that it should work in the div panel. If the documentation for a 3rd party api says you should do things a certain way, you should be able to do it exactly the way documented.
Thanks for the OPC/UA feedback!  :)

Thank you and have a great Grafanacon online. :-)


[Python] Support musl-linux binary wheels on arm64

Add Musl based build for arm64

Hey, is there anything I can help with in this PR? It would really speed up my build time

Yes, I can also fix or apply any suggestions.
@gnossen @eugeneo

Any news about this? It would be huge for my team if this could be merged


BUG: Improving the login page as the icons are not working to sign in

What happened?
In the login page the google, github and linkedin login is not working. Even there could be more login like on for apple users. Even the logo for google login is not correct

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

ISSUE is already assigned.


No way to add sidewalk

I can't transform a part of the road into a sidewalk...
Is there a way to make a part of the street into a sidewalk? Or if I made a sidewalk into a bike lane and want to revert back to a sidewalk after I hit finish.

Right now sidewalks and crosswalks can't be edited. One reason is that adding a sidewalk in reality is a pretty expensive construction project; the lane edits today could all be cheaply prototyped with paint and signs. Another reason is that removing sidewalks might disconnect bus stops and buildings. Right now pedestrians can only walk on sidewalks; if a road doesn't have any, there's not yet a way to model people walking along the shoulder.
Sometimes in OpenStreetMap, sidewalks are mapped separately from roads -- see the red footpaths at https://www.openstreetmap.org/#map=19/47.61885/-122.30161 for example. Right now I'm ignoring these and just generating sidewalks as special fixed lanes on the edges of roads. This happens at https://github.com/dabreegster/abstreet/blob/8a9ec06a4d6f5e2eb6e6da66a7b832bb24576f53/map_model/src/make/initial/lane_specs.rs#L130. Using OSM's footpaths has at least two problems: first, they're not consistently mapped everywhere in Seattle (so missing footpaths along a road could mean there's legitimately no sidewalks there, or just that they haven't been mapped yet). And second, since OSM doesn't model width of a road accurately, the placement of the sidewalks is likely to just overlap with the rest of the road in A/B Street.
Lots of this stuff seems pretty hard to me to fix. Is there any reason you wanted to edit sidewalks? Maybe there's a way to make some edits work.

Yeah well I could transform a sidewalk into a driving lane or bus lane or bike lane but when I applied it I could not revert to a sidewalk...

Wait really? That's a bug, that shouldn't be possible. Edit mode doesn't even let you select sidewalks. Can you take a video or describe exactly how you transformed a sidewalk?

There I recorded a video that I put in a zip file.
Once you are in edit mode you can edit a sidewalk
2020-04-15 12-14-04.zip

You're totally right, I forgot about disabling selection in the lane editor. Fixed. Thanks for reporting! I'll reopen this issue if I have any ideas for adding new sidewalks.


Allow custom install path

Related to: https://github.com/99xt/dynamodb-localhost/issues/22
Requires: https://github.com/99xt/dynamodb-localhost/pull/24
Changes: This implements changes proposed in https://github.com/99xt/dynamodb-localhost/issues/22
Demo Link: I created an npm fork which demonstrates the features working:
# in serverless.yml:
plugins:
  - "@aneilbaboo/serverless-dynamodb-local"

# install the plugin, then install dynamo:
npm install @aneilbaboo/serverless-dynamodb-local
serverless dynamodb install # installs to <project-root>/.dynamodb by default

Thanks again @aneilbaboo 👍


I am receiving websocketDidConnect on the main thread

Is there a way to run delegate methods on a secondary thread?

See the docs.

Really useful. Thanks.


Update module github.com/nabeelys/i11778-monorepo/multiply to v1.0.1

This PR contains the following updates:

Package
Type
Update
Change

github.com/nabeelys/i11778-monorepo/multiply
require
patch
v1.0.0 -> v1.0.1

Release Notes

nabeelys/i11778-monorepo
v1.0.1
Compare Source

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

⚠ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

any of the package files in this branch needs updating, or
the branch becomes conflicted, or
you click the rebase/retry checkbox if found above, or
you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:
File name: go.sum
Command failed: docker pull docker.io/renovate/go:1.19.3
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?


Add a roll function for Dask Arrays

Fixes https://github.com/dask/dask/issues/2132
Provides a function that performs the same operation as NumPy's roll except on Dask Arrays. This is done by using a mixture of slicing and concatenating. The effect is a Dask Array that is either raveled, rolled, and reshaped or rolled along specified axes. Added a few tests and added the function to the API doc.

This looks good to me.  cc @shoyer does this allow you to drop logic from xarray?

Yes, we currently have very similar logic for roll in xarray.

Thanks @jakirkham !


Add getPeerLogMetadata to ReqResp

Motivation
ReqResp logs allways print client=undefined, because it's missing a getter for the client kind
Description

Add getPeerLogMetadata to ReqResp

:tada: This PR is included in v1.6.0 :tada:


Entering "~" as search string breaks lunr.

Searching only for "~" breaks lunr.js with the following error message:
"QueryParseError: expected either a field or a term, found EDIT_DISTANCE with value '1'"
I know, that "~" is used to indicate fuzzy search, but a user does not know this, if he enters "~" into a search input field.

I'm not sure what more Lunr can do here. The string "~" is an invalid query string. Lunr reports this by throwing a specific exception, lunr.QueryParseError, provides an explanation and indicates where the offending part of the query is.
It is up to the application to use this information to present the user with an appropriate response to the invalid query. If there is information that Lunr isn't providing that would make this easier then let me know, otherwise I think this is something that must be handled in your application.

@olivernn Thank you for your fast response. I do not take this for granted.
I am also not sure what the best strategy is. Here are my thoughts:

If Lunr is throwing exceptions which need to be handled by the app that is using Lunr, it should be clearly documented and in the example. Neither in the docs nor in the example nor in any tutorials have I seen that the integration of Lunr requires more than generating the index and searching for it. But maybe I overlooked something.

For those who are unaware that the app needs to deal with invalid query strings, Lunr IMHO should rather issue a warning/error on the console.log. If an invalid character is input into a search field the default behaviour should rather be to ignore the invalid character by default, instead of break the whole app which is the worst case to me.

with respect to the "~" I believe the error is only thrown if "~" is the first character. This should be easy to deal with. Are there more characters / cases like this that need to be dealt with by the app?

What do you think?

To be fair the documentation does mention that the lunr.Index#search method throws a lunr.QueryParseError if the query string cannot be parsed. In addition the demo code does handle the error, which is why it is displayed when performing the search you mention.
On your second point, I disagree. Lunr should report that something went wrong. No application code can respond to a log message. However, if you don't catch the exception the browser will print the exception in the log anyway. In your application you can of course silently ignore invalid queries, that is your choice, but Lunr can't make that choice for every application, so when there is an error, it must raise that error.
Lunr will throw a lunr.QueryParseError whenever there is an error parsing the query, having a "~" as the first character is just one of several examples of an invalid query. There is nothing special about this particular case.
Ultimately this behaviour is not going to change, an invalid query will continue to throw a lunr.QueryParseError which the application can choose to handle however they wish. I would recommend handling it by catching the exception and displaying an appropriate error message to the user, but that is completely up to you.

Thanks again for the quick response. Indeed, I have not seen the two source you provided, which is certainly my fault, but on the other hand maybe they are not so obvious to spot. Maybe a short section in Guides with a header such as "Integration into an app" would have been helpful.

On your second point, I disagree. Lunr should report that something went wrong. No application code can respond to a log message. However, if you don't catch the exception the browser will print the exception in the log anyway.

I actually agree with what you are saying. The only point I had was that I did not catch the exception because I overlooked / did not know that this was necessary and my whole React app got killed. Now that I know, it is easy to catch the exception.
I thought I mention this, but I see your points. But anyway, thanks for your support. I very much appreciate it. I am happy to close the issue.

No problem, I'll see if I can make this more obvious in the site or the guides etc.
If you run into any other problems, or have any other questions please let me know.
Thanks.


Update java.md

Fix command for getting Java version.

-version      print product version to the error stream and exit
--version     print product version to the output stream and exit

so --version is correct form for us

so 👎 from me

I think older versions only support single dash. Let me check once.

Exactly. In older versions, for sure Java 6, 7 and  8, the only working switch was with one hyphen -version.  Which was driving me crazy for last 15 years, btw :D
And because this site is all about versions I thought, that the better one is the most backward-compatible.

Merged because single dash works everywhere.


Bin-crate build fail with new LLD linker in windows (linker-arguments: invalid argument)

Reference: https://github.com/rust-lang/rust/issues/48948
Current workaround :  use an older nightly:
rustup override set nightly-2018-03-01

This issue would keep open until rustc side fix it.

Just checked, fixed in rustc 1.26.0-nightly (392645394 2018-03-15)


Test redirects

@ctauchen I was looking at this today... still not sure why it's not working. I would spend more time on it, but I'm questioning whether we should be doing this at all.  I think the way it's working now is good, let's chat next week.

@ctauchen I suppose, we can close it?

@alexeymagdich-tigera Yes, thanks for flagging this.


can add Cover Art Archive support?

https://coverartarchive.org
idk,just ask

I think it most likely could be done. @GreenDiscord Want to take a look at it?

I think it most likely could be done. @GreenDiscord Want to take a look at it?

I've had a look before, I believe you need to get an mbid or something like that (which is musicbrainz song IDs) It's something like that, if need to find a way of getting the mbid.

It seems that tracks may have their own MBID as a metadata. Otherwise, there is this search API: https://musicbrainz.org/doc/MusicBrainz_API/Search

I'll get onto this soon then, It should've been quite easy with how the album art formatting works now.

It seems that tracks may have their own MBID as a metadata. Otherwise, there is this search API: https://musicbrainz.org/doc/MusicBrainz_API/Search

Most of my tracks do, I use MusicBrainz to add metadata to my music files. I have thought of somehow intergrating an auto metadata adding software to vlc-rpc, but its bulky and strays away from the main purpose.


Reported installed version of OpenMedia.4KVideoDownloader is incorrect

Brief description of your issue
With the latest version of "4k Video Downloader" (OpenMedia.4KVideoDownloader) installed, i.e. version <IP_ADDRESS>40, winget tells me I have version <IP_ADDRESS>20 installed, and that there's an upgrade available.
Steps to reproduce
(Probably?) Install version <IP_ADDRESS>20 of "4k Video Downloader", and upgrade to <IP_ADDRESS>40.
Then invoke winget upgrade.
Expected behavior
"4k Video Downloader" should not be listed by winget upgrade, and winget list should list it as version <IP_ADDRESS>40
Actual behavior
winget upgrade reports:
PS❯  winget upgrade | sls -raw 'Name|---|4k'
Name                                            Id                           Version        Available      Source
-----------------------------------------------------------------------------------------------------------------
4K Video Downloader                             OpenMedia.4KVideoDownloader  <IP_ADDRESS>20    <IP_ADDRESS>40    winget

Note: this is probably not winget's fault -- kind of. The app shows up twice under the Uninstall tree:
HKEY_LOCAL_MACHINE__SOFTWARE__Microsoft__Windows__CurrentVersion__Uninstall_OpenMedia.4KVideoDownloader_202203101546.zip
Environment
PS❯  winget --info
Windows Package Manager v1.2.10271
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22000.527
Package: Microsoft.DesktopAppInstaller v1.17.10271.0

Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows <REDACTED>re Terms https://www.microsoft.com/en-us/<REDACTED>redocs/terms-of-sale

PS❯  Get-WindowsVersionViaWinRT.ps1

Key           Value
---           -----
OSVersionFull 10.0.22000.527.amd64fre.co_release.210604-1628
FlightRing    Retail
App           pwsh.exe
AppVer        <IP_ADDRESS>0
DeviceFamily  Windows.Desktop

No?
PS M:\> winget install OpenMedia.4KVideoDownloader -v <IP_ADDRESS>20
Found 4K Video Downloader [OpenMedia.4KVideoDownloader] Version <IP_ADDRESS>20
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://dl.4kdownload.com/app/4kvideodownloader_4.19.4_x64.msi
  ██████████████████████████████  90.4 MB / 90.4 MB
Successfully verified installer hash
Starting package install...
Successfully installed

PS M:\> winget list
Name                                  Id                                     Version                      Available   Source
----------------------------------------------------------------------------------------------------------------------------
4K Video Downloader                   OpenMedia.4KVideoDownloader            <IP_ADDRESS>20                  <IP_ADDRESS>40 winget

PS M:\> winget upgrade OpenMedia.4KVideoDownloader
Found 4K Video Downloader [OpenMedia.4KVideoDownloader] Version <IP_ADDRESS>40
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://dl.4kdownload.com/app/4kvideodownloader_4.20.0_x64.msi
  ██████████████████████████████  90.6 MB / 90.6 MB
Successfully verified installer hash
Starting package install...
Successfully installed

PS M:\> winget list
Name                                   Id                                      Version                      Available Source
----------------------------------------------------------------------------------------------------------------------------
4K Video Downloader                    OpenMedia.4KVideoDownloader             <IP_ADDRESS>40                            winget

Note: you cannot install both versions (exe and msi)
Manually installed the 4.19.4 exe version
PS M:\> winget list
Name                                  Id                                     Version                      Available   Source
----------------------------------------------------------------------------------------------------------------------------
4K Video Downloader                   OpenMedia.4KVideoDownloader            <IP_ADDRESS>20                  <IP_ADDRESS>40 winget

PS M:\> winget upgrade OpenMedia.4KVideoDownloader
Found 4K Video Downloader [OpenMedia.4KVideoDownloader] Version <IP_ADDRESS>40
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://dl.4kdownload.com/app/4kvideodownloader_4.20.0_x64_online.exe
  ██████████████████████████████   863 KB /  863 KB
Successfully verified installer hash
Starting package install...
Successfully installed

PS M:\> winget list
Name                                   Id                                      Version                      Available Source
----------------------------------------------------------------------------------------------------------------------------
4K Video Downloader                    OpenMedia.4KVideoDownloader             <IP_ADDRESS>40                            winget

Both 4.19.4 and 4.20.0 is installed at the same point at one time, however the installer cleans up the previous version, this seems to be something on your side.
HOWEVER, my registry key is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{59b7ab8a-bcd1-45ce-a82b-a50ee09d0b53}
Something with your installer might have gone wrong at some point, i would advice you to reinstall 4K Video Downloader

I've been digging and as I said in my original post the issue indeed lies in the installer having let quite some garbage in the registry. Even the Settings app thinks there are two apps installed:

Once I've uninstalled both "copies" of the app and reinstalled it via winget (what else 😝) the situation's back to normal.
Note that such installer issues are not that uncommon, I also had a system where the registry contained entries for both VLC 3.0.12 and 3.0.16 (but in that case neither winget nor was showing the app twice), so I was able to uninstall it twice with winget uninstall!

Do we know of installers which do not clean up the previous version which is why we can add this field to the manifest: UpgradeBehavior: uninstallPrevious
However as i said and tested, 4k Video Downloader does clean up the previous version, so i believe this is a issue between your PC and the Installer (since it also happened with VLC), my best guess is that it gets terminated too early or the cleanup part process errors out or gets permission denied.
btw, the uninstall registry strings and the Settings app/Add or Remove Programs are tied together (which WinGet uses for matching)

I've faced tons of issues with 4k Video Downloader's auto-update features over the years, ranging from failed upgrades ("you have to download the installer from the website and upgrade that way") to issues when multiple accounts have the app installed on the same machine.
The VLC issue was probably created quite some time in the past, when I upgraded from 3.0.12 to whatever that release had told me to upgrade too.
I'll keep monitoring the consistency of winget's behavior with the Windows built-in mechanisms (Settings, Control Panel Add/Remove Programs).
FWIW I've been managing what apps are installed on which PCs in the household with a set of scripts built on top of
Get-InstalledApp.zip, that keep a history of that script's output in CSV files for each system. Among other use cases, I'm using this to determine if all PCs have the same version of common apps installed. So I should even be able to determine when VLC and 4k Video Downloader got "duplicated" on that particular system, and whether the situation ever existed, even temporarily, on other systems.

I've faced tons of issues with 4k Video Downloader's auto-update features over the years, ranging from failed upgrades ("you have to download the installer from the website and upgrade that way") to issues when multiple accounts have the app installed on the same machine.
The VLC issue was probably created quite some time in the past, when I upgraded from 3.0.12 to whatever that release had told me to upgrade too.
I'll keep monitoring the consistency of winget's behavior with the Windows built-in mechanisms (Settings, Control Panel Add/Remove Programs).
FWIW I've been managing what apps are installed on which PCs in the household with a set of scripts built on top of
Get-InstalledApp.zip, that keep a history of that script's output in CSV files for each system. So I should even be able to determine when VLC got "duplicated" on that particular system.

Wops forgot to reply, would it be bad if we made winget always uninstall 4k Video Downloader before installing the new version? Since you've experienced the issues with recent versions its probably not fixed...
The way WinGet works is simply

Downloads the installer from the provided URL
Installs the Software with the silent switches

So its exactly like you downloading the exe/msi from their website.
So if their Installer is borked we cannot do anything else than remove the previous version and install on a clean slate.
I would probably recommend you to use the MSI because the EXE is a Online installer which downloads the exe which would work like the Auto Updater.

Just ran the self-upgrade process. Now the app's about box reports version <IP_ADDRESS>80, but winget list still reports version <IP_ADDRESS>40.
This is consistent with Settings / Apps & features:

The registry contains:
4kVideoDownloaderRegistryEntries202203232007.csv

Note that the issue with running an uninstall followed by an install might be that the configuration of the app would be different after the whole operation (depending on what the uninstaller does or doesn't remove).
BTW upgrading apps with winget often results in desktop icons being added that were not present before the upgrade, but that's another story altogether 😉.

Sometimes this fails, and one has to download the EXE from their website 'cos that's what they offer by default. And recently what you get (from https://www.4kdownload.com/thanks-for-downloading?source=videodownloader) is even an "online installer" that downloads the actual installer under the hood.

Yes, thats why i said you should try the MSI instead, these are our urls
https://github.com/microsoft/winget-pkgs/blob/9df157affefa0fe45b63db5c2b35a3e55b03452f/manifests/o/OpenMedia/4KVideoDownloader/<IP_ADDRESS>40/OpenMedia.4KVideoDownloader.installer.yaml#L13-L31
The MSI's are the full installer and i very much doubt it will have any of the issues you are experiencing

Note that the issue with running an uninstall followed by an install might be that the configuration of the app would be different after the whole operation (depending on what the uninstaller does or doesn't remove).

Yeah that is why this should be a last resort and the people who use the software should warn us if it does

BTW upgrading apps with winget often results in desktop icons being added that were not present before the upgrade, but that's another story altogether 😉.

Yeah.. That is because it just runs the silent switches, we could add a custom switch (install only) or a upgrade switch (should be used if the Software got a switch for upgrade instead of using UninstallPrevious)
I guess we should request a field for StartMenuShortcut, DesktopShortcut and any other switch you can think off at winget-cli

Using the MSI will only solve the issue if the self-upgrade within the app installed via MSI doesn't exhibit the same registry problem / doesn't use the EXE to self-upgrade.
I need to experiment by uninstalling, installing an old version via MSI, and then perform a self-upgrade.

Glhf https://github.com/microsoft/winget-pkgs/tree/master/manifests/o/OpenMedia/4KVideoDownloader
@KaranKad are you a 4k Video Download user? Are you using the burn or msi version and have you encountered this issue before?

@KaranKad are you a 4k Video Download user? Are you using the burn or msi version and have you encountered this issue before?

Cant say because I don't use it anymore, will try testing it tho.

I've performed the following test:

uninstalled 4k Video Downloader via winget (even more than once JIC 😝)
manually cleaned up everything in the registry related to it (very tedious)
installed 4k Video Downloader version <IP_ADDRESS>40 via winget (so, using the MSI)
launched the app (had to re-activate / enter license key due to #2)
let the app perform its self-upgrade process

Now the app reports it's version <IP_ADDRESS>80, and winget and the Settings app report the same thing.
I could in theory run another test where #3 would be replaced by "install the app via its EXE installer."
The key is probably #2.
To be safe, now I have to run those steps on all my PCs 😭.

manually cleaned up everything in the registry related to it (very tedious)

Hi there, RevoUninstaller would like a word with you.
Or BCUninstaller/Bulk Crap Uninstaller if you'd like something Open-Source (but unmaintained unfortunately..)

manually cleaned up everything in the registry related to it (very tedious)

Hi there, RevoUninstaller would like a word with you. Or BCUninstaller/Bulk Crap Uninstaller if you'd like something Open-Source (but unmaintained unfortunately..)

Thanks for the hints. But I like to be in control, I don't know what these tools actually do. They must have some assumptions about what they can, cannot, should or should not remove, and in the context of the kind of mess I'm experiencing, how can I trust they will not remove anything they shouldn't remove, or leave behind something they should remove?

You can see/choose what it removes, in theory they watch what the uninstaller does then searches for any relevant information (+ the information its told to look for if its a tricky software), but since you already know what to look for this should be perfect for you.
Test it in Sandbox/VM ;)

The current situation is that the app's auto-updates itself, but most of the time winget doesn't update it. Must be that they don't keep their manifest up to date...


Need GPU local RT mechanism

pcore model recorded cycle-level data -- but this doesn't work with GPU.
also lvis records RT for layers to measure propagation through the network.

each layer records time to some threshold actavg level
designate layer(s) to track for global RT

the global thing can just be done by the sim.  RT is now in LayerVals based on CaSpkP max - param in Acts.AttnMod as most plausible place to put it.


Use SMTP Relay only for specifiy domains

Hello,
the IP range of the provider of my VPS on which Mail-In-A-Box is installed is currently blocked by Microsoft.
This usually happens every 2-3 month and its a pain to get unblocked again everytime.
As a workaround it is recommended to us a SMTP server whose IP has a better reputation.
For this purpose the SMTP relay function of PMiaB would be perfect
Now I don't want to route all outgoing emails through the relay, but selectively only the emails sent to Microsoft addresses (outlook.com, hotmail.com, live.com and the respective derivatives with other TLDs) through the relay.
All other emails should be sent directly.
How can this be configured?

We don't have a way to configure this "easily" (yet). It's a feature request that I've been asked a few times.


Support IJ1's overlays

Currently IJ2 translates IJ1 ROIs to IJ2 Overlays and vice versa. We are doing nothing to handle IJ1 Overlays. We should have a flag associated with each IJ1 Roi saying whether it is a ROI or an Overlay. Then translations can respect this distinction.
Note that right now overlays are repeatedly recreated in the harmonizer. We need to track individual IJ1 Roi/Overlay to IJ2 Overlay mappings.
Note that as of beta 6 the current IJ2 Overlay goes across legacy layer as the ImagePlus' Roi and the other IJ2 Overlays go as a set of Rois in the Overlay of the ImagePlus.
Migrated-From: http://trac.imagej.net/ticket/1308

With @awalter17's work on IJ1<->ImgLib2 ROI converters (#183), this issue is finally addressed! 🎉


Unable to downgrade to Hyper 2

[x ] I am on the latest Hyper.app version
[x ] I have searched the issues of this repo and believe that this is not a duplicate

OS version and name:  Windows 10
Hyper.app version: 3.0.2 and 2.1.2
Link of a Gist with the contents of your .hyper.js:  https://gist.github.com/sambrainerd/2ec6b27e030bc30ace6608f13701570f

Issue
I've had trouble clearing screen using Hyper 3.02 with Bash for Windows. I saw that others had this problem as well and decided to downgrade to 2.1.2 instead. However when I install 2.1.2, somehow it installs 3.0.2. Please look into this.
Thanks,
Sam.

you should be able download the source for the release you want to use and compile it but I don't know if there is any guide to doing it. There should be to aid in getting newer devs up and running

DL it using : https://github.com/zeit/hyper/releases
Look for 2.1.2 setup

After I installed 2.1.2, Hyper automatically upgrades to 3.0.2. I tried to purge every configuration files possible. But Hyper keeps updating to the newest version. I am trying to downgrade to 2.1.2 because of this bug https://github.com/zeit/hyper/issues/3638

Please give users an option to stop auto-updating or stick to a particular version... My 3.0.2 installation is failing on #3651 and the only way to use hyper is to reinstall 2.1.2 every time


Air Purifier 3H

Hi,
there is still integrated the AirPurifier 3 as zhimi.airpurifier.ma4
I have the AirPurifier 3H and thats named zhimi.airpurifier.mb3  (DeviceId= 317335021) the functions are the same with the model3 you have.
Can you please integrate the 3H? Thanks

I can't find the model zhimi.airpurifier.mb3 in my current devices database, and I don't have that device too. So because you confirm all functions of that device are the same as model zhimi.airpurifier.ma4, I can add that model and it will be update when I have more information. You can update update new version and try to control your device

I cant confirm the functions are exactly the same, but i think so. I think the difference between the devices is only the localisation, the AirPurifier3 is chinese Version and 3H is the European Version. So it seems to be logic the functions are the same.
When you have added the model, i can try to control it.
I'm working with iobroker und atm im trying to find out how i can use it, because the "await" Async Fucntion from your example doesnt exists in iobroker (i think).

Thanks for the fast add, but there is a little error, you named it .mb4 but it should be .mb3 (see the first post). Please correct this.

Tryed to rename the file by myself and also corrected it inside but all i got is:
`

javascript.0
2020-11-12 11:08:24.932
error
(11653) at Script.runInContext (vm.js:130:18)

javascript.0
2020-11-12 11:08:24.932
error
(11653) at script.js.common.Test_Purifier:64:3

javascript.0
2020-11-12 11:08:24.931
error
(11653) at script.js.common.Test_Purifier:6:23

javascript.0
2020-11-12 11:08:24.931
error
(11653) at Object.createDevice [as device] (/opt/iobroker/node_modules/iobroker.javascript/node_modules/node-mihome/lib/device.js:8:11)

javascript.0
2020-11-12 11:08:24.931
error
(11653) script.js.common.Test_Purifier: Error: Model zhimi.airpurifier.mb3 is not supported

`
Did i forgot something?

sr, my mistake, you can upgrade new version and try again

Ok, thank you. I've updated to 0.27 and tryed, but poorly no success. Whatever i do, i got:
(11653) script.js.common.Test_Purifier: Error: Model zhimi.airpurifier.mb3 is not supported
I found this Message in your code, so i think my script has a proper call to the function. Here is the code i used for testing, i would appreciate some help because i dont know where the error is.
Any suggestions?.
`const mihome = require('node-mihome');
// local miIO
mihome.miioProtocol.init();
const device = mihome.device({
id: '317335021', // required, device id
model: 'zhimi.airpurifier.mb3', // required, device model
address: '<IP_ADDRESS>', // miio-device option, local ip address
token: '4ff8a96292d045c5148142a0a851e4f', // miio-device option, device token
refresh: 30000 // miio-device option, device properties refresh interval in ms

//parent: '1234abcd', // aqara-device option, gateway SID for aqara-protocol compatible device

});
device.on('properties', (data) => {
log(properties);
});
test();
async function test() {
await device.setPower(true); // call the method
await device.init(); // connect to device and poll for properties
device.destroy();
}`

Ok, i did a lot of tests.
First, here are some Device Informations for you, there is also my Humidifier inside which is missing in your Devices List, and some other Devices. Here the json i got from your module:
[{'did':'317335021','token':'4ff8a96292d0451c5148142a0a851e4f','longitude':'0.00000000','latitude':'0.00000000','name':'Mi Air Purifier 3/3H','pid':'0','localip':'<IP_ADDRESS>','mac':'5C:E5:0C:C7:E6:68','ssid':'WLAN-739122','bssid':'98:9B:CB:00:32:2C','parent_id':'','parent_model':'','show_mode':1,'model':'zhimi.airpurifier.mb3','adminFlag':1,'shareFlag':0,'permitLevel':16,'isOnline':true,'desc':'Device online ','extra':{'isSetPincode':0,'fw_version':'2.0.7','needVerifyCode':0,'isPasswordEncrypt':0,'mcu_version':'0017'},'uid':6197496208,'pd_id':1182,'password':'','p2p_id':'','rssi':-48,'family_id':0,'reset_flag':0},{'did':'132369115','token':'ed4412d6929f393d26e48618be290bb9','longitude':'0.00000000','latitude':'0.00000000','name':'Yeelight LED Bulb (Color)','pid':'0','localip':'<IP_ADDRESS>','mac':'04:CF:8C:97:3A:09','ssid':'WLAN-739122','bssid':'98:9B:CB:00:32:2C','parent_id':'','parent_model':'','show_mode':1,'model':'yeelink.light.color2','adminFlag':1,'shareFlag':0,'permitLevel':16,'isOnline':true,'desc':'Device online ','extra':{'isSetPincode':0,'fw_version':'2.0.6_0065','needVerifyCode':0,'isPasswordEncrypt':0},'uid':6197496208,'pd_id':436,'password':'','p2p_id':'','rssi':-86,'family_id':0,'reset_flag':0},{'did':'133168119','token':'a1023ea902a75d237475d46f81a1c20f','longitude':'0.00000000','latitude':'0.00000000','name':'Yeelight LED Bulb (Tunable)2','pid':'0','localip':'<IP_ADDRESS>','mac':'04:CF:8C:A3:6B:25','ssid':'WLAN-739122','bssid':'98:9B:CB:00:32:2C','parent_id':'','parent_model':'','show_mode':1,'model':'yeelink.light.ct2','adminFlag':1,'shareFlag':0,'permitLevel':16,'isOnline':true,'desc':'Device online ','extra':{'isSetPincode':0,'fw_version':'1.4.2_0016','needVerifyCode':0,'isPasswordEncrypt':0},'uid':6197496208,'pd_id':526,'password':'','p2p_id':'','rssi':-45,'family_id':0,'reset_flag':0},{'did':'133169476','token':'ccf638dbbcb6a9216895d71e11b0ac39','longitude':'0.00000000','latitude':'0.00000000','name':'Yeelight LED Bulb (Tunable)','pid':'0','localip':'<IP_ADDRESS>','mac':'04:CF:8C:A3:70:72','ssid':'WLAN-739122','bssid':'98:9B:CB:00:32:2C','parent_id':'','parent_model':'','show_mode':1,'model':'yeelink.light.ct2','adminFlag':1,'shareFlag':0,'permitLevel':16,'isOnline':true,'desc':'Device online ','extra':{'isSetPincode':0,'fw_version':'1.4.2_0016','needVerifyCode':0,'isPasswordEncrypt':0},'uid':6197496208,'pd_id':526,'password':'','p2p_id':'','rssi':-72,'family_id':0,'reset_flag':0},{'did':'133177899','token':'f142af15b8ae5a0ef78df7fc0a1f2059','longitude':'0.00000000','latitude':'0.00000000','name':'Yeelight Lightstrip Plus','pid':'0','localip':'<IP_ADDRESS>','mac':'04:CF:8C:A3:91:59','ssid':'WLAN-739122','bssid':'98:9B:CB:00:32:2C','parent_id':'','parent_model':'','show_mode':1,'model':'yeelink.light.strip2','adminFlag':1,'shareFlag':0,'permitLevel':16,'isOnline':true,'desc':'Device online ','extra':{'isSetPincode':0,'fw_version':'2.0.6_0073','needVerifyCode':0,'isPasswordEncrypt':0},'uid':6197496208,'pd_id':585,'password':'','p2p_id':'','rssi':-66,'family_id':0,'reset_flag':0},{'did':'312463870','token':'c503bee5cabc68edaf72c2d5b4ddcf62','longitude':'0.00000000','latitude':'0.00000000','name':'Smartmi Evaporative Humidifier','pid':'0','localip':'<IP_ADDRESS>','mac':'5C:E5:0C:84:6A:B9','ssid':'WLAN-739122','bssid':'98:9B:CB:00:32:2C','parent_id':'','parent_model':'','show_mode':1,'model':'zhimi.humidifier.cb1','adminFlag':1,'shareFlag':0,'permitLevel':16,'isOnline':true,'desc':'Device online ','extra':{'isSetPincode':0,'fw_version':'1.6.7','needVerifyCode':0,'isPasswordEncrypt':0,'mcu_version':'1005'},'uid':6197496208,'pd_id':1135,'password':'','p2p_id':'','rssi':-56,'family_id':0,'reset_flag':0}]
Second, i think there is an error in your example. You wrote this:
```

device.on('properties', (data) => {
console.log(properties);
});
but i think i should be like this (pls correct me if im wrong):

device.on('properties', (data) => {
    console.log(data);
});

So, you see, the login works, i got the list back. But then... i dont know what do do. I tried the createDevice but still got ever a

javascript.0
2020-11-13 18:56:30.219
error
(19463) at Object.createDevice [as device] (/opt/iobroker/node_modules/iobroker.javascript/node_modules/node-mihome/lib/device.js:8:11)

javascript.0
2020-11-13 18:56:30.218
error
(19463) script.js.common.Test_Purifier: Error: Model zhimi.airpurifier.mb3 is not supported

My actual code looks like this, it would be very nice if you can give me a working example how to switch on/off my Purifier, cause its not so much documented. What has to be insertet inside the brackets here:
`await mihome.miCloudProtocol.getDevices([deviceId1, deviceId2, ...], options); // get devices information from list ids
`
If i try this with an DeviceID as suggested, i got:

javascript.0
2020-11-13 20:01:13.952
error
(19463) at MiCloudProtocol.getDevices (/opt/iobroker/node_modules/iobroker.javascript/node_modules/node-mihome/lib/protocol-micloud.js:123:24)

javascript.0
2020-11-13 20:01:13.951
error
(19463) script.js.common.Test_Purifier: TypeError: Cannot read property 'list' of null

 Here my actual code:

const mihome = require('node-mihome');
Init();
async function Init() {
// local miIO
mihome.miioProtocol.init();
// local Aqara (ZigBee)
//mihome.aqaraProtocol.init();

// cloud MIoT
const username =<EMAIL_ADDRESS>const password = 'xxxxx';
//await mihome.miCloudProtocol.login(username, password);

const options = { country: 'de' }; // 'ru', 'us', 'tw', 'sg', 'cn', 'de' (Default: 'cn')
await mihome.miCloudProtocol.getDevices(null, options); // return all devices from your acount with all information (deviceId, token, model ...) to create device in the next step
console.warn(await mihome.miCloudProtocol.getDevices(null, options))
console.warn(await mihome.miCloudProtocol.getDevices([317335021],options)); // get devices information from list ids
// await mihome.miCloudProtocol.miioCall(deviceId, method, params, options); // call miio method with params via cloud protocol

Create_device();

}
async function Create_device() {
const device = mihome.device({
id: '317335021', // required, device id
model: 'zhimi.airpurifier.mb3', // required, device model "zhimi.airpurifier.mb3"
    address: '<IP_ADDRESS>', // miio-device option, local ip address
    token: '4ff8a96292d0451c5148142a0a851e4f', // miio-device option, device token 4ff8a96292d0451c5148142a0a851e4f
    refresh: 30000 ,// miio-device option, device properties refresh interval in ms

parent: '', // aqara-device option, gateway SID for aqara-protocol compatible device
});

device.on('properties', (data) => {
    console.log(data);
});

await device.setPower(false); // call the method

await device.init(); // connect to device and poll for properties
device.destroy();

}

A lot of hours later, i got a connection and get back the controls from the Purifier BUT:
the code says: await device.getMode(); // call the method, but i got the complete list back (better than nothing), like:
{'air-purifier:fault':0,'air-purifier:on':true,'air-purifier:fan-level':1,'air-purifier:mode':1,'environment:pm2.5-density':14,'environment:relative-humidity':46,'environment:temperature':19.1,'filter:filter-life-level':94,'filter:filter-used-time':194,'alarm:alarm':false,'indicator-light:brightness':1,'indicator-light:on':true,'physical-controls-locked:physical-controls-locked':false}
But everytime i try: await device.setPower(false); i got an error like:
javascript.0 | 2020-11-15 11:35:30.172 | error | (1340) at module.exports.setPower (/opt/iobroker/node_modules/iobroker.javascript/node_modules/node-mihome/lib/devices/zhimi.airpurifier.mb3.js:77:17)
-- | -- | -- | --
javascript.0 | 2020-11-15 11:35:30.172 | error | (1340) at module.exports.miotSetProperty (/opt/iobroker/node_modules/iobroker.javascript/node_modules/node-mihome/lib/device-miio.js:158:13)
javascript.0 | 2020-11-15 11:35:30.172 | error | (1340) script.js.common.Test_Purifier: Error: This device don't config miot spec

So there, maybe is an error in the new airpurifier.mb3 devicefile. I found inside:
 this._miotSpecType = 'urn:miot-spec-v2:device:air-purifier:0000A007:zhimi-ma4:2';
Shouldnt it be?:
 this._miotSpecType = 'urn:miot-spec-v2:device:air-purifier:0000A007:zhimi-mb3:2';

Ok, help would been nice, but after a couple of weeks without any response, i figured it out by myself and corrected all Errors. Please merge the pullrequest. Then this Issue can be closed.

Please post your code and full logs
The error 'This device don't config miot spec' mean have a error when fetch the miot spec when init the device and the error was throw

Please post your code and full logs
The error 'This device don't config miot spec' mean have a error when fetch the miot spec when init the device and the error was throw

As i said, merging the pull request is all needed, everything is fine now.

As i said, merging the pull request is all needed, everything is fine now.


Application crashed and then would not boot up (even after reinstall)

I was using the application, the system it was on was running Windows7 64bit. I clicked to compare a build with one I was making and suddenly it crashed on me, then presented me with this message upon trying to boot it up: http://i.imgur.com/0CCXUkR.png
I removed the software with a complete wipe of the data from my machine, reinstalled the latest version, I got the same error message, I have tried shutting and down and rebooting and I have looked through the processes active and 'nothing' that I can see is using the process.
Below is the debug.txt log...

The error time: 01/06/2016 21:28
Exception: System.InvalidOperationException: There is an error in XML document (0, 0). ---> System.Xml.XmlException: Root element is missing.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlTextReader.Read()
at System.Xml.XmlReader.MoveToContent()
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderItemDB.Read15_ItemDB()
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader)
at POESKillTree.SkillTreeFiles.ItemDB.Load(String file, Boolean index) in c:\GitHub\PoESkillTree_Source\WPFSKillTree\SkillTreeFiles\ItemDB.cs:line 1385
at POESKillTree.Views.MainWindow.Window_Loaded(Object sender, RoutedEventArgs e) in c:\GitHub\PoESkillTree_Source\WPFSKillTree\Views\MainWindow.xaml.cs:line 378
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
at MS.Internal.LoadedOrUnloadedOperation.DoWork()
at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget)
at System.Windows.Interop.HwndTarget.OnResize()
at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Exception: System.Xml.XmlException: Root element is missing.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlTextReader.Read()
at System.Xml.XmlReader.MoveToContent()
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderItemDB.Read15_ItemDB()

I'm not sure what exactly caused the initial crash, I've never had that happen before with a simple comparison of my builds, but this is a really weird issue, not sure what to do to fix it if a clean install did nothing... Any help is appreciated.
Kind Regards,
Patrick Griffiths.

https://github.com/EmmittJ/PoESkillTree/wiki/How-To:-Copy-Builds
Delete the file mentioned here. That should fix the problem.

I did actually try to delete this file and run it, I had no luck at all though. I'll try the portable version and get back to you.

I completely removed everything again and retried the portable version, its working fine right now. (:))


Split ffmpeg to compoment

Description:
I work a new component (openalpr) they also use ffmpeg. We have a lot of ffmpeg device and it's cleaner to have a ffmpeg component and cleanup some duplication in sources.
Now it support cache for tests @balloob
Example entry for configuration.yaml (if applicable):
ffmpeg:
  ffmpeg_bin: /bin/ffmpeg
  run_test: True

Braking stuff
I move the ffmpeg_bin to component it self.
Checklist:
If user exposed functionality or configuration variables are added/changed:

[x] Documentation added/updated in home-assistant.io

If code communicates with devices, web services, or a:

[x] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[x] New dependencies have been added to the REQUIREMENTS variable (example).
[x] New dependencies are only imported inside functions that use them (example).
[x] New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[x] New files were added to .coveragerc.

The service us allready binary_sensor.ffmpeg_restart. I rename only a internal function for better understanding. Camera have a other working conzept from HA. It not run constantly. It take a picture every 10 sec and run if a user is showing on UI until Werkzeug to close the request or a internal timeout is present from (I think) cherrpy. Is that so okay @balloob?

Yes sir!
On Wed, Sep 14, 2016, 22:03 Pascal Vizeli<EMAIL_ADDRESS>wrote:

The service us allready binary_sensor.ffmpeg_restart. I rename only a
internal function for better understanding. Camera have a other working
conzept from HA. It not run constantly. It take a picture every 10 sec and
run if a user is showing on UI until Werkzeug to close the request or a
internal timeout is present from (I think) cherrpy. Is that so okay
@balloob https://github.com/balloob?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/home-assistant/home-assistant/pull/3396#issuecomment-247235577,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABYJ2rd48QeSB1dcpi8qmXJ-0j_IDY86ks5qqNGVgaJpZM4J8u_4
.

Getting some errors from this:
File "/home/user/home-assistant/homeassistant/components/camera/ffmpeg.py", line 32, in setup_platform
File "/home/user/home-assistant/homeassistant/components/ffmpeg.py", line 56, in run_test

I've create a bugfix PR. Can you try to test this?
Am 16.09.2016 4:31 PM schrieb "devdelay"<EMAIL_ADDRESS>
Getting some errors from this:
File "/home/user/home-assistant/homeassistant/components/camera/ffmpeg.py", line 32, in setup_platform
File "/home/user/home-assistant/homeassistant/components/ffmpeg.py", line 56, in run_test
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/home-assistant/home-assistant/pull/3396#issuecomment-247615573,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOoMLI1E84qnKPtc_mlPlJc69jgSUaL8ks5qqqg-gaJpZM4J8u_4
.


[BEAM-12174] Propertly close ExecutableStageContext in DoFnOp#close

ExecutableStageContext needs to be closed when DoFnOp closes so that the wrapping default job bundle factory can be properly closed.
Please add a meaningful description for your change here

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

@xinyuiscool @dxichen @mynameborat Can you take a look?


-fingerprint    - print the certificate fingerprint

I am assuming that as the "fingerprint" is not part of the certificate that the "fingerprint" is calculated by OpenSSL. However the wording of "print the certificate fingerprint" implies it is just being displayed.
Can the man pages (and docs) be changed to show that the "fingerprint" is calculated.

A "fingerprint" of a certificate usually refers to an SHA-1 digest of the whole certificate, and there is no 'fingerprint' section in an X509 certificate. This is not invented by OpenSSL, you can also find it in your browsers as Chrome or Firefox.
So it may not be necessary to change that expression...


TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/48544

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/49027

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/58351

Triggering TagBot for merged registry pull request
This extra notification is being sent because I expected a tag to exist by now, but it doesn't.
You may want to check your TagBot configuration to ensure that it's running, and if it is, check the logs to make sure that there are no errors.

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/58408

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/59392


new i2c master driver hangs with no pullup on SCL/SDA pins (IDFGH-11990)

Answers checklist.

[X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.
5.2 developer branch (i2c master read function patch)
Espressif SoC revision.
ESP32 Rev1.0
Operating System used.
Windows
How did you build your project?
Command line with Make
If you are using Windows, please specify command line type.
PowerShell
Development Kit.
WEMOS LOLIN32 (ESP32 WROVER)
Power Supply used.
USB
What is the expected behavior?
Calling i2c_master_new_bus() with GPIO pins not connected to any pullups (flags for internal pullups set to false, too) should return with a valid handle.
What is the actual behavior?
i2c_master_new_bus() hangs and does not return. Thus, an application cannot continue and hangs as well.
Steps to reproduce.
Simply call i2c_master_new_bus() with GPIO pins specified which have no pullups.
Debug Logs.
No response
More Information.
No response

I knew this behavior and I don't know anything wrong. That is, you cannot use I2C without any pull-ups (either internal or external). If GPIO pins are not connected, software has no way to know and do some check. What is your use case that this makes you annoy..?

It isn't an use case. I encountered this during development when I specified the pins in wrong order. The old i2c legacy driver did not show this behaviour. So I thought it might be a bug in the implementation. But if pullups are a prerequisite for the new i2c driver model I have no problems with it. In this case I suggest to extent the very good documentation by a short paragraph about the necessary pullups. Otherwise I expect that you will get more messages like mine.


Question: any plans for adding a sidebar to newsboat?

Coming from liferea that offered me a sidebar, was way too convenient for me to have organized links according to their category.
Are there any plans to have a sidebar? It would be really cool to add it.

There's been some discussion on this in akrennmair/newsbeuter#461.

was way too convenient for me to have organized links according to their category.

While it doesn't have a sidebar, newsboat does feed organization via tags. Perhaps that's what you're after?

@tsipinakis I know about tags, but to be honest with you, I would prefer to have a left sidebar.
From an aesthetic point of view, it helps reduce the links' size in the main window, thanks to the folder tree.
This way I could, for example, choose to read just my Tech News folder without polluting my main window with hundreds of links.
It gets annoying scrolling all the way down check every time possible missing links.

Hi! My position regarding this hasn't changed since Newsbeuter issue that @tsipinakis linked: I'd accept a patch, but I'm not interested in working on this myself.
@stefanos82, I'm not sure I understand what you mean by "links" and "missing links". Do you mean articles and unread articles, respectively? You can avoid scrolling in a number of ways:

n key will jump to the next unread article. Works both inside feeds and in article view: you can simulate an old Google Reader approach by opening some article and then just pressing n all the time to jump to the next one;
change sorting order or criteria with g and G, so that the articles you're interested in are at the top of the list;
hide read articles by pressing l, so it's easier to pick out of unread ones.

If you describe the annoyances you have in more detail (some screenshots or Asciinema, maybe?), perhaps we'll be able to recommend some more solutions.

@Minoru It's alright. All I asked was a question and you were quite clear about not interested in such feature.
I will see what I can do.
Cheers.


WIP: Fixed dracclient_raid.patch

This patch fixes an error that occurs when applying the dracclient raid patch.

Reviewed with JT and it looks good.

Sambhu to re-test ASAP!


Deployment status shows "building" despite successful deployment

Describe the bug
Hi, just wanted to report this little bug I found. After a successful deployment, the deployment list page incorrectly displays the yellow "building" status indicator. This stays yellow even after refreshing the page or logging out and back in.

Expected behavior
The expected behavior is for the status to reflect "successful" once the deployment is complete.

@michaelreinhard1 please make sure to install the @nuxthub/core module as properly tracking the deployments when using the Cloudflare CI is hard without the module.
The module will also make sure everything works well for your Nuxt app on Cloudflare.
https://hub.nuxt.com/docs/getting-started/installation#add-to-a-nuxt-project


Support multi architecture building

Add the docker-buildx Makefile target that is created by kubebuilder 3.14.0.
The current kubebuilder adds some cross-platform build support in the
Makefile and Dockerfile. Incorporate those pieces into our build.

Extending Kevin's PR in https://github.com/DataWorkflowServices/dws/pull/186
@kpelzel I looked at the latest kubebuilder version and noticed that it creates a Makefile and Dockerfile with multi-platform support, similar to your suggestions. I've copied the changes and associated comments from the files that the new kubebuilder created. In particular, in this code look at the 'docker-buildx' Makefile target, and let me know if that'll work for you.

With this change it is:
RUN CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build...
And that container still works in a KIND environment on the Mac.


Display a useful message rather than an error when there are no specs

https://piazza.com/class/ju0mzt571m1435?cid=25

As a stopgap, we should add one spec to appdev_template that says:
# specs/features/dummy_spec.rb

require "rails_helper"

 describe "This project" do
  it "is not graded" do
    expect(1).to eq(1)
  end
end


Can you please to add input box to this project.

This is a greate project and I like it very much. I will use it in my project. But somethime I also want to use the input box(like input a password), can you add this to your project?
Thanks and Regards,

Think about it after New Year holidays.


Feature/new schema

This pull request include all the probe-desktop changes that are related to: https://github.com/ooni/probe-cli/pull/16.
As part of this I have also replaced all the logic that reads uses sql.js to read from the database and instead we proxy all the measurement listing and reading requests through the probe-cli tool. This plan had been brought up in https://github.com/ooni/probe-desktop/issues/16 and I have verified that it doesn't seem to be too painful to do, the only concern I have over this approach is that of scalability, but it seems to be working ok for the test cases I have run into so far.

As probe-cli has landed, I am going to land this as well.
As mentioned in the probe-cli: https://github.com/ooni/probe-cli/pull/16#issuecomment-422361395, users prior to this unreleased version should do a hard reset of OONI Probe. This can be done either manually deleting the ooni_home directory or by using the Hard reset button in the about page of OONI Probe desktop.


MUMUP-2932 Removes unneeded images from docs

Images no longer needed, so let's remove them.

Contributor License Agreement adherence:

[x] This Contribution is under the terms of Individual Contributor License Agreements (and also Corporate Contributor License Agreements to the extent applicable) appearing in the Apereo CLA roster.

:+1:


Update permissions-microsoft-365-security-center.md

the title of this page is M365D permissions, while the content is email & collab only. we need to update the title accordingly, so customers won't be confused about the scope here.

Learn Build status updates of commit 2c763cb:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

microsoft-365/security/office-365-security/permissions-microsoft-365-security-center.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel

Learn Build status updates of commit e848ffe:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

microsoft-365/security/office-365-security/permissions-microsoft-365-security-center.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel

Learn Build status updates of commit 70e5c2e:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Learn Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel

Learn Build status updates of commit 5d52635:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

microsoft-365/security/office-365-security/permissions-microsoft-365-security-center.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel

Learn Build status updates of commit 7c50bae:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

microsoft-365/security/office-365-security/permissions-microsoft-365-security-center.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel


Sizing for custom-control

About sizing we can use .form-control-lg or .form-control-sm, and the same .custom-select-lg or .custom-select-sm.
Maybe we're missing .custom-control-lg or .custom-control-sm for .custom-checkbox and .custom-radio.
Thanks

No plans to add sizes for these—they're built with rems so they should scale as you need them to.

@mdo They scale with the base font size, but they don't scale to fit the font size of their .custom-control div as far as I can tell. If I bump up its font-size, the labels get bigger, but the radios remain (now comically) small.
Can this be reconsidered? Or can you provide info on how to override the size of the custom controls?


Code Helper doing something heavy when VSCode isn't executed

Code Helper doing something when VSCode isn't executed.
And when Code Helper is alive in background it eating from 30% to 200% (yes!) of CPU.

VSCode Version: latest 1.17.2
OS Version: 10.12.6 (16G29)

Steps to Reproduce:

Don't run vscode, wait...
open Activity Monitor

Reproduces without extensions: Yes

Additional question is How to disable this crazy and spy-like behaviour?

To find out more about this issue, we need to get at the process that is causing the high load. VS Code creates multiple processes, each with different tasks. Depending on your OS you can get at the full command line of the process and paste it here. On Mac, the Activity Monitor allows to find the PID of the process and from a terminal ps aux | grep <pid> reveals its arguments.

On Windows a tool like Process Explorer helps:

Once you have the information please update this issue with it. Thanks!

ps aux | grep 43357:
ak               43357   0.0  2.9  3727164 123656   ??  S     5:01PM   1:46.56 /Applications/Visual Studio Code.app/Contents/MacOS/Electron -psn_0_7993247
ak               45220   0.0  0.0  2423384    320 s006  R+    5:32PM   0:00.00 grep 43357

ps aux | grep code:
ak               44101   0.0  0.5  3120492  19960   ??  S     5:10PM   0:00.58 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Users/ak/.vscode/extensions/mkaufman.htmlhint-0.4.0/node_modules/vscode-languageclient/lib/utils/electronForkStart /Users/ak/.vscode/extensions/mkaufman.htmlhint-0.4.0/server/server.js --stdio
ak               44099   0.0  0.5  3155224  20512   ??  S     5:10PM   0:01.74 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/html/node_modules/vscode-languageclient/lib/utils/electronForkStart /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/html/server/out/htmlServerMain.js --node-ipc --clientProcessId=43974
ak               44095   0.0  0.0  2523460   1080   ??  S     5:10PM   1:47.32 /Users/ak/.vscode/extensions/ms-vscode.cpptools-0.14.2/bin/Microsoft.VSCode.CPP.Extension.darwin
ak               43986   0.0  0.5  3202748  20316   ??  S     5:08PM   0:02.56 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Users/ak/.vscode/extensions/shinnn.stylelint-0.30.0/node_modules/vscode-languageclient/lib/utils/electronForkStart /Users/ak/.vscode/extensions/shinnn.stylelint-0.30.0/server.js --stdio --clientProcessId=43974
ak               43985   0.0  0.5  3128108  20356   ??  S     5:08PM   0:01.20 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/css/node_modules/vscode-languageclient/lib/utils/electronForkStart /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/css/server/out/cssServerMain.js --node-ipc --clientProcessId=43974
Alexander Kozlovskij               45273   0.0  0.0  2423384      8 s006  R+    5:33PM   0:00.00 grep code

Sample of Code Helper.txt
Opened Files and Ports.txt

I think I understand it...
Very "thanks" to exts:

mkaufman.htmlhint-0.4.0 ;
shinnn.stylelint-0.30.0 ;
and to viscose because don't breaking that first two ext's servers.

The process with ID 43974 seems language client/server related.

43974 seems to be the pid of the extension host. When the CSS or HTML language servers are started up, they get the extension host pid as parameter.
/Applications/Visual Studio Code.app/.../htmlServerMain.js --node-ipc --clientProcessId=43974
So it looks like some normal extension is busy here.
@fzzr Can you try with all extensions disabled?
Do you have this reproducible, e.g. when working on a specific file?

@aeschli You almost certainly want @fzzr- Thanks to both of you for what you're doing!

@fzzr- if you have any additional information, that would be great
Closing until we have more information.


Add linting through pre-commit GHA workflow

With pre-commit it is easy to setup a linting workflow that is able to enforce the Coding Standards section of the CONTRIBUTING.md. Other projects like pandamonium already use pre-commit and with the https://github.com/pre-commit/pre-commit-hooks repo it is easy to get common linting tasks as 1-liners hooks. pandamonium also uses the pre-commit.ci service to make linting even faster, but if the goal for ltwnn is to be as unfancy as possible while still having CI just using pre-commit in a GHA workflow should work great when run with pre-commit run --all-files.
Even if a developer doesn't want to install pre-commit locally for whatever reason, the GHA workflow will still run and give linting feedback if any of the pre-commit hooks fail.

Resolved by #133


property attribute doesn't accept an array

I have a custom DSC resource that accepts an array for one of the parameters and when I run chef-client I get an error. This is what I have in the recipe:
dsc_resource 'SetPermission-IISLogs' do
  resource :Custom_PermissionsResource
  property :Path, 'd:\path\to\logs'
  property :Identity, 'SomeGroup'
  property :Permission, ["Permission1","Permission2"]
end

which maps to the following in DSC config:
Custom_PermissionsResource 'SetPermission-IISLogs'
{
    Path = 'd:\path\to\logs'
    Identity = 'SomeGroup'
    Permission, @("Permission1","Permission2")
}

When I look at the Desired State Configuration event log, I see that the value for the Permission property is passed to DSC as '[Permission2,Permission2]' and should be an array.
I See that the rfc (https://github.com/chef/chef-rfc/blob/adamed/dsc/rfc015-powershell-dsc-resources.md#type-safety-for-dsc_resource-property-attributes) does not specify arrays, so maybe this is a suggestions and not an issue.

So it appears that it will accept an array in the following format (I thought I tested this before submitting the issue)
dsc_resource 'SetPermission-IISLogs' do
  resource :Custom_PermissionsResource
  property :Path, 'd:\path\to\logs'
  property :Identity, 'SomeGroup'
  property :Permission, "Permission1","Permission2"
end

Sorry for the late response, but we've deprecated since repository as the dsc functionality is now part of the chef-client itself.  I'm going to close this issue out at this point.  If you're still encountering this problem you'll want to file it against the chef project itself.


unauthorized: You are not logged in to Replicate. Run 'cog login' and try again. ⅹ exit status 1

Been struggling with this one all day. I cannot seem to push to replicate.
Tried sudo cog login and sudo cog push .... to no avail. Strangely, being told I am not logged in.
Full stack trace:
cog push r8.im/goldeneye-industrial-intelligence/frame-interpolation
This command will authenticate Docker with Replicate's 'r8.im' Docker registry. You will need a Replicate account.

Hit enter to get started. A browser will open with an authentication token that you need to paste here.

If it didn't open automatically, open this URL in a web browser:
https://replicate.com/auth/token

Once you've signed in, copy the authentication token from that web page, paste it here, then hit enter:
0fcfc139-7699-40ea-aeac-8eec33036e13
You've successfully authenticated as mad-wizard! You can now use the 'r8.im' registry.
Building Docker image from environment in cog.yaml as r8.im/goldeneye-industrial-intelligence/frame-interpolation...
[+] Building 5.3s (23/23) FINISHED
 => [internal] load build definition from Dockerfile                       0.0s
 => => transferring dockerfile: 2.13kB                                     0.0s
 => [internal] load .dockerignore                                          0.0s
 => => transferring context: 2B                                            0.0s
 => resolve image config for docker.io/docker/dockerfile:1.4               0.6s
 => CACHED docker-image://docker.io/docker/dockerfile:1.4@sha256:9ba7531b  0.0s
 => [internal] load build definition from Dockerfile                       0.0s
 => [internal] load .dockerignore                                          0.0s
 => [internal] load metadata for docker.io/nvidia/cuda:11.2.2-cudnn8-deve  0.4s
 => [internal] load build context                                          0.0s
 => => transferring context: 89.75kB                                       0.0s
 => [stage-0  1/13] FROM docker.io/nvidia/cuda:11.2.2-cudnn8-devel-ubuntu  0.0s
 => CACHED [stage-0  2/13] RUN --mount=type=cache,target=/var/cache/apt s  0.0s
 => CACHED [stage-0  3/13] RUN --mount=type=cache,target=/var/cache/apt a  0.0s
 => CACHED [stage-0  4/13] RUN curl -s -S -L https://raw.githubuserconten  0.0s
 => CACHED [stage-0  5/13] COPY .cog/tmp/build1083143111/cog-0.0.1.dev-py  0.0s
 => CACHED [stage-0  6/13] RUN --mount=type=cache,target=/root/.cache/pip  0.0s
 => CACHED [stage-0  7/13] RUN --mount=type=cache,target=/var/cache/apt a  0.0s
 => CACHED [stage-0  8/13] COPY .cog/tmp/build1083143111/requirements.txt  0.0s
 => CACHED [stage-0  9/13] RUN --mount=type=cache,target=/root/.cache/pip  0.0s
 => CACHED [stage-0 10/13] RUN apt-get update && apt-get install -y softw  0.0s
 => CACHED [stage-0 11/13] RUN apt-get install ffmpeg -y                   0.0s
 => CACHED [stage-0 12/13] WORKDIR /src                                    0.0s
 => [stage-0 13/13] COPY . /src                                            0.9s
 => exporting to image                                                     0.1s
 => => exporting layers                                                    0.0s
 => => writing image sha256:efa3081bde412f2023d99d55c72d29c97faa965693835  0.0s
 => => naming to r8.im/goldeneye-industrial-intelligence/frame-interpolat  0.0s
 => exporting cache                                                        0.0s
 => => preparing build cache for export                                    0.0s
Validating model schema...
Adding labels to image...

Pushing image 'r8.im/goldeneye-industrial-intelligence/frame-interpolation'...
Using default tag: latest
The push refers to repository [r8.im/goldeneye-industrial-intelligence/frame-interpolation]
463f3923a08e: Preparing
3cce6f76a091: Preparing
038ff63359c7: Preparing
1ff47d315f97: Preparing
e988f701962b: Preparing
1481b13558f0: Waiting
b393708c89c3: Waiting
426eeceb0753: Waiting
532a6972e371: Waiting
9da145b332ca: Waiting
ffd2d18f6eae: Waiting
193ef9cdad63: Waiting
aec8f154a94c: Waiting
dc43fe2d8994: Waiting
6a509f3a60f9: Waiting
b985083ee5fa: Waiting
0a23b7904e21: Waiting
6c5d477f0104: Waiting
80444425dddd: Waiting
fdf470a6f2e0: Waiting
79cefe5845de: Waiting
741fa2eb7459: Waiting
ab5655714d8f: Waiting
ec66d8cea54a: Waiting
unauthorized: You are not logged in to Replicate. Run 'cog login' and try again.
ⅹ exit status 1```

Couldn't figure it out so moved from my previous operating system (Linux Mint) to Ubuntu and it worked.
The Linux Mint configuration was using docker install via snap so, perhaps that is the issue.


Added \Mapsto

Added the function mapping LaTeX symbol.

MathJax does not have support for this symbol.

Thanks for contributing :)
\mapsto needed to be lowercase, that's all.


fs/config: Add method to reload configfile from disk

Fixes #3268
What is the purpose of this change?
Allowing a configfile to be re-read from disk when you expect there might have been changes that were written from an other please.
Was the change discussed in an issue or in the forum before?
Yes in #3268
Checklist

[X] I have read the contribution guidelines.
[X] I have added tests for all changes in this PR if appropriate.
[X] I have added documentation for the changes if appropriate.

[X] I'm done, this Pull Request is ready for review :-)

Very nice - thank you :-)


Log to console that unzip is needed for theme install

theme-install.sh needs unzip on server and if there is no unzip, theme cannot be installed but there is no way to know why. Maybe log message to console, like echo 'You need unzip'... or add extract-zip with npm and use that.

Yeap, I use docker image with all requirements

It's good idea to add this log message.

In future I think we'll replace zip and unzip with native Node modules.


Create insertionSort.cpp

Implemented Insertion sort algorithm in cpp

@AnanyaDas162 please add hacktoberfest accepted tag on this pr and also merge in this repo if any query please reply


k3os import into rancher always waiting

k3os version : v0.10.1 (run in hyper-v)
rancher version: v2.4.3
I generated the import connection from rancher, ran it in k3os, and  rancher reported an waiting always.(Waiting for API to be available)
I don't know what happened

It's ok After a night's sleep.It could be a network problem?

k3os version : v0.10.1 (run in hyper-v)
rancher version: v2.4.3
I generated the import connection from rancher, ran it in k3os, and rancher reported an waiting always.(Waiting for API to be available)
I don't know what happened

@Robinsir is this reproducible?

k3os version : v0.10.1 (run in hyper-v)
rancher version: v2.4.3
I generated the import connection from rancher, ran it in k3os, and rancher reported an waiting always.(Waiting for API to be available)
I don't know what happened

@Robinsir is this reproducible?

I have tested 3 virtual machines, yes. even adding registry mirrors does not work.
k3os-21629 [~]# kubectl get pod -n kube-system
NAME                                      READY   STATUS      RESTARTS   AGE
metrics-server-6d684c7b5-trqvs            1/1     Running     2          20m
local-path-provisioner-58fb86bdfd-nd7jr   1/1     Running     2          20m
coredns-6c6bb68b64-66vk8                  1/1     Running     1          20m
helm-install-traefik-nwwbl                0/1     Completed   0          20m
svclb-traefik-8mcxx                       2/2     Running     0          4m35s
traefik-7b8b884c8-xgxs2                   1/1     Running     0          4m35s

k3os-21629 [~]# kubectl get pod -n  cattle-system
NAME                                    READY   STATUS    RESTARTS   AGE
cattle-node-agent-dmhbk                 1/1     Running   0          17m
cattle-cluster-agent-59b747c74d-4w4n2   1/1     Running   0          17m

Same problem here, it seems.
k3os version: v0.11.1
Rancher version: v2.5.1

Also having this issue with k3os 0.11.1 and Rancher 2.5.5. Cluster server and agent on two different nodes in a local network stand up nicely. When I run the insecure curl registration command to connect to Rancher, the cluster remains pending indefinitely.
kubectl logs -n cattle-system -l app=cattle-cluster-agent returns:
...
INFO: Using resolv.conf: search cattle-system.svc.cluster.local svc.cluster.local cluster.local nameserver <IP_ADDRESS> options ndots:5
ERROR: https://{RancherServer}/ping is not accessible (Could not resolve host: )

Even though curl --insecure https://{RancherServer}/ping from either k3os node returns pong.
I've also confirmed that the cluster-admin role is defined (et. al) and the --kubeconfig-mode=644. I'm stumped and nearly ready to resume attempts with k3s on ubuntu-server...