Implement bits of wininet

I wanted to implement simple HTTP requests without requiring a monolithic networking library, so I figured I might as well add the API code here too.

Finally, winapi-util is really supposed to provide convenience layers for Windows APIs. How important is it that we expose APIs that work with UTF-16 directly instead of using &str? At the very least, I think the main APIs should be using &str, and if necessary, we can provide separate APIs that take a raw &[u16].

Should I use str::encode_utf16 (or possibly OsStrExt::encode_wide) and collect it into a new Vec each time? (s.encode_utf16().chain(once(0)).collect::<Vec<_>>())

especially when widestring has APIs for easily converting between its string types and &[u16]

Is the issue here that it would allow safe code to pass invalid WTF-16 to the functions? (What would an example of invalid WTF-16 be? Encoding a non-existent character such as U+FFFE?)

Every public API item needs to be documented. This only passed CI because I didn't put #![deny(missing_docs)] in the crate root, which I usually do. Please look at the docs on other APIs for an idea of what I would expect here.

Would this be good for HInternet::open, for example?

Create an owned handle for performing network requests.
This corresponds to calling InternetOpenW.

A few other things:

Should I change the Options into io::Results using io::Error::last_os_error()? (Or use InternetGetLastResponseInfoW in the case of InternetConnectW?)
Should I mark HConnect::open_request unsafe due to the use of a raw pointer? Do you have any ideas for avoiding that?
Both HConnect::open_request and HRequest::send cast *const to *mut under the assumption that the lack of constness is accidental. Is that okay?

Should I use str::encode_utf16 (or possibly OsStrExt::encode_wide) and collect it into a new Vec each time? (s.encode_utf16().chain(once(0)).collect::<Vec<_>>())

For &str APIs, yes, absolutely. This is exactly what std does.
I think the OsStr API is probably not relevant here, unless we provide an OsStr API. That might actually be nicer. That is, we could accept an AsRef<OsStr> instead of a &str directly, and then use OsStrExt::encode_wide. That would still permit passing &str.

Is the issue here that it would allow safe code to pass invalid WTF-16 to the functions? (What would an example of invalid WTF-16 be? Encoding a non-existent character such as U+FFFE?)

I don't think WTF-16 is a thing. I've only ever heard of WTF-8, which is what OsStr uses. The point I was trying to make is that I don't see any good reason for putting widestring types into the public API of widestring. (And separately, I'm not sure we really need widestring at all, even internally.)

Would this be good for HInternet::open, for example?

Create an owned handle for performing network requests.
This corresponds to calling InternetOpenW.

Yes, I think that's okay. If there are any other particulars about the API specifically exposed by this crate, then those should be noted too. (I'm not saying there are, just communicating the general principle.)

Should I change the Options into io::Results using io::Error::last_os_error()? (Or use InternetGetLastResponseInfoW in the case of InternetConnectW?)

Oh, I missed that. But yes, of course. If there is an error to report then we absolutely should be exposing that!

Should I mark HConnect::open_request unsafe due to the use of a raw pointer? Do you have any ideas for avoiding that?

I missed this as well. The problem is, I don't really have the time to dig into these Windows APIs and do the design work for them. Can you accept a higher level type and maybe convert that into a *const *const u16? Maybe a Vec<String> or &[String] or &[S] where S: AsRef<str>? If *const *const u16 is the only option, then we should carefully document it. And yes, that would unfortunately require marking the routine as unsafe since a caller could pass an input that leads to UB.

Both HConnect::open_request and HRequest::send cast *const to *mut under the assumption that the lack of constness is accidental. Is that okay?

Yes. AIUI the only real difference between these types is variance. In general, it's okay to cast between them because when it comes to raw pointers, Rust doesn't make any aliasing assumptions (unlike with & and &mut references). This SO answer seems to agree with my understanding: https://stackoverflow.com/questions/55664870/what-are-the-differences-between-const-t-and-mut-t-raw-pointers


ModuleNotFoundError for v0.1.8

I'm getting import errors after upgrading to v0.1.8:
$ pip3 install flatten_json==0.1.8 && python3 -c "import flatten_json; print('ok')"
Collecting flatten_json==0.1.8
  Using cached https://files.pythonhosted.org/packages/a0/d3/a5d5d3ed553e059e2b844177087beb5d32cd2d19959a466b1e9b3c795995/flatten_json-0.1.8-py3-none-any.whl
Requirement already satisfied: six in ./venv/dev/lib/python3.8/site-packages (from flatten_json==0.1.8) (1.14.0)
Installing collected packages: flatten-json
  Found existing installation: flatten-json 0.1.7
    Uninstalling flatten-json-0.1.7:
      Successfully uninstalled flatten-json-0.1.7
Successfully installed flatten-json-0.1.8
WARNING: You are using pip version 19.2.3, however version 20.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'flatten_json'

Note that the previous one (v0.1.7) works fine:
$ pip3 install flatten_json==0.1.7 && python3 -c "import flatten_json; print('ok')"
Collecting flatten_json==0.1.7
  Using cached https://files.pythonhosted.org/packages/eb/a9/1e35abfc4726065f9692decb3c57cf379e5d5329befc6fa5a1ab835fffb8/flatten_json-0.1.7-py3-none-any.whl
Installing collected packages: flatten-json
  Found existing installation: flatten-json 0.1.8
    Uninstalling flatten-json-0.1.8:
      Successfully uninstalled flatten-json-0.1.8
Successfully installed flatten-json-0.1.7
WARNING: You are using pip version 19.2.3, however version 20.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
ok

I can see the package metadata in my virtual env, but no package source or wheel.

Perhaps something went wrong during the last release process?
Python: 3.8.1
OS: macOS 10.15.4
venv: python3 -m venv venv

Even more suspiciously, nothing seems to have happened in the repo since February 2. No commits at all, so why the release?

I'm getting this error as well

release to pypi is a manual step for the project and there were some commits that i had not released. so i manually released yesterday.
i can confirm the issue. pypi shows that the files were uploaded but for some they're not being brought in with pip install. i'll look into this and update this thread.
pls let me know if you know what's going on and have ideas for resolving it.

also yanking 0.1.8 until this is resolved so pip install flatten-json should give you 0.1.7.

@amirziai  seems like  pip install flatten-json still gives you 0.1.8

@amirziai seems like pip install flatten-json still gives you 0.1.8

Really?
$ pip search flatten-json | grep flatten-json
flatten-json (0.1.7)                                - Flatten JSON objects

@JacobSMoller should be yanked:
https://pypi.org/project/flatten-json/0.1.8/
my understanding of a yanked release is that you can still install it by pinning but without specifying that specific version you should get the latest non-yanked version.
i see the same output that @ecklm is reporting.

I see the same pip/poetry search output that @ecklm and @amir-ziai-zefr are reporting. However, I am also still getting the 0.1.8 version when I run:
poetry add flatten_json
and also get the ModuleNotFoundError error under 0.1.8.
Removing 0.1.8 with
poetry remove flatten_json
and installing again using
poetry add "flatten_json==0.1.7"
has resolved the issue for me.

When will we get working 0.1.8 using pip install flatten_json==0.1.8 ?   I still experiencies problem with assert unflatten(flatten(d)) == d operation))

release a new version. pls upgrade and lmk if you have issues.

Thanks @amirziai, works like a charm now!
Again, running
pip3 install flatten_json && python3 -c "import flatten_json; print('ok')"

works as expected, installs v0.1.13 and prints "ok".


All settings erased upon updating to beta 5.6.0-beta.2

Bug description:
I just updated from 5.5.0 to 5.6.0-beta.2 and lost all my settings.
Steps to reproduce:
I am using Ferdi without an account, if that matters.
Expected behavior
I would hope settings could be carried over somehow. Not sure if this is a bug or if it's the expected behavior than consider it a feature request. 👍
Environment:

Operating System: Windows 10
Ferdi Version: 5.5.0 to 5.6.0-beta.2
Server: None

Attaching debug info, in case it's relevant.
ferdidebug.txt

Hey @sam1am, can you still reproduce this issue?
I am regularly updating from one nightly version to the next without losing my settings.


fixed jackson dependency conflict

update to bring in newest version of azure-core 1.3.0-beta.1.dev.20200207.1
we have conflicting dependencies on azure-core and jackson, we have dependency on azure-core as a dependency and on the >azure-data-sdk-parent:>1.2.0>../../pom.client.xml which somehow creates conflicts.

This problem should be resolved once v4 goes to master. for now setting the same version of jackson az azure-core explicitly:
https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/core/azure-core/pom.xml#L60

/azp run java - cosmos - tests


Unable to retrieve payload for an expired token

When trying to retrieve a payload from an expired token, I get an expired token error message. I see this is because the default option is to verify the expiration date via the :verify_expiration key if a :token_lifetime has been specified. This works fine in most cases, but I need data from the jwt after it has expired. Currently, my workaround is to extend the AuthToken class and override the verify_claims method, but I think an options param in the initializer of the AuthToken would be acceptable. Something like this:
def initialize payload: {}, token: nil, verify_options: {}
  if token.present?
    @payload, _ = JWT.decode token, decode_key, true, options.merge(verify_options)
    @token = token
  else
    @payload = payload
    @token = JWT.encode claims.merge(payload),
    secret_key,
    Knock.token_signature_algorithm
  end
end

This would allow anyone to decide what keys are to be validated while compiling the payload. What are your thoughts on this?

Add PR for suggested update https://github.com/nsarno/knock/pull/93

you can pass expiration time this way:
  exp = Time.now.to_i + 3.days # Token expiration
  token = Knock::AuthToken.new(payload: { sub: "#{role}|#{resource_id}", exp: exp }).token

Yes, but I'm trying to retrieve the payload after the token has already expired. I have data I need to clear which is specific to the token, and since the AuthToken.new method automatically returns no payload if the token is expired, I can't get the data I need. Having a way to custom validate the token is what I am looking for. Being able to skip the expiration verification allows me to collect a payload even after a token has expired.

verify_lifetime: false

within payload?

I'm retrieving an existing AuthToken, not making a new one. The existing one has expired. When I retrieve it using the token, I get the error back that it has expired because it always validates the expiration. I only wish to skip the expiration validation to retrieve the payload from the expired AuthToken. Currently there is no way to skip validation on the expiration date if an expiration date exists. The PR would give the option of skipping it if the user needed the payload of an expired token.

I understand what you're trying to achieve and the limitations. I'd like to understand your use case a bit more before deciding if this should be a feature or not. Could you give me an example of what data you're trying to get from the expired token?
Thank you for your patience. I've been away for a bit and unable to allocate a lot of time to reviewing PRs and issues.

No worries on the time, I'm not in a rush on it. So for the use case, I have a User model and when the user signs in, I create an Authentication model to store other statistics of the log in, including salt so we can invalidate a token externally. Typically, when a user signs out, I delete the authentication, which works fine as I get the user from the Token payload, and I get the salt from the token payload to find the authentication. However, when a user signs out and the token has expired, I get an expired token error raised and do not have access to the payload to delete the authentication. Leaving an Authentication stale in the db and clearing it later isn't a huge deal, but I would like to think the payload would be accessible somehow, regardless of the validations of the token. There may be a better way of handling this, but since validation happens on the initialization of the AuthToken, I thought an optional hash to override default validations was simple way to approach it. Let me know if that clears things up a bit and thanks for taking the time to review.

@bmcdaniel11 did you find a proper way to do what you described?

Nevermind, just realized your PR was merged https://github.com/nsarno/knock/pull/93
However, you do you get the token payload in a request?


Dark mode doesnt seem to apply

I have the following class applied to a button:
border-gradient-r-amber-pink-cyan-white
dark:border-gradient-r-amber-pink-cyan-black

Now in dark mode the second class doesnt apply. So basically my button is still white.
Is this a know issue? Is there a solution? Perhaps I am doing something wrong?

My fault, wrong dark: was applied


What's the licence?

Can I use your code/model in an open source plugin (MPL-2.0) for a commercial application (Video Management System)?

Sure, please feel free to use it, even for a commercial application.


Improve the UI of the app

DONE:

add top action bar that contains all the tools and action buttons
canvas readback optimization
add pencil tool
erase functionality is disabled for now due to #17

TODO:

add erasing functionality

@OindrilaDas27 please review.

Please resolve conflicts


feat: MARP-1201 improve Jira connector

Hi @nqhoan-axonivy ,
We would like to loop you in PR for reviewing the change for this connector. It's about to implement the new services which are described in MARP-1201.
Thank you!


filetype detect

Do you mean vim.filetype.add is sufficient? Because I didn't see my status bar get any affects from the project for now.

I get filetype=forester when I run :set filetype?. What status bar do you use?

I use the lualine, and I have fetch the latest changes.

Verified that it detects the filetype and displays it in lualine:

BTW, I recommend this if you use devicons:
require("nvim-web-devicons").setup({ override_by_extension = { ["tree"] = { icon = "🌲" } } })

Oops, I finally figure out, at some moment I misconfig my plugin that missing to invoke forester.setup(...), now everything is work, thanks.


fix: label oriented bugs

Fixes #103

@nb9960 I still see an option for "remove label" on the torrent details page of torrents with no label.

@nb9960 I still see an option for "remove label" on the torrent details page of torrents with no label.

Sorry, I pushed the last commit that used the wrong method without proper testing. Just fixed that, check once, and do let me know if everything is working fine or not. @harchani-ritik


ProcedureMethod cardinality mismatch with FHIR (0..* vs 0..1)

NL-CM:14.1.12 || ProcedureMethod has a cardinality of 0..* while the FHIR element/extension for this https://hl7.org/FHIR/extension-procedure-method.html has a cardinality of 0..1.
This has been adjusted to 0..* in the develop version of FHIR: http://build.fhir.org/extension-procedure-method.html
How to proceed?

Accept potential information loss
Copy and fix extension in R4

Also, created https://bits.nictiz.nl/browse/ZIB-1580 to check with zib-centre if the cardinality of the zib is correct.

Meeting conclusion: option 2 seems most appropriate. One final request to zib-centre for examples how multiple methods work.


test - please ignore

test PR for CLA

@BennyThink, we have received your signed contributor license agreement. It will be reviewed by VMware shortly. Another comment will be added to the pull request to notify you when the merge can proceed.


error: Cannot read property 'replace' of undefined

Used grunt-spritesmith bevore and now migrating to gulp. But i'm getting an error and i don't know why. Can somebody help?
Here the relevant part of my gulpfile:
var gulp = require( "gulp" ),
	$ = require( "gulp-load-plugins" )();
var log = $.util.log,
	rgb = $.util.colors;

var cfg = {
	spritesmith: {
		imgName: "spritesheet.png",
		cssName: "sprites.scss"
	}
};

gulp.task( "sprite", function() {
	return gulp
		.src( "img/*.png" )
		.pipe( $.debug())
		.pipe( $.spritesmith( cfg.spritesmith ))
		//.pipe( $.imagemin())
		.pipe( gulp.dest( "css/" ));
});

And here the error trace:
>> gulp sprite
[21:06:56] Using gulpfile ~\...\themes\gulpfile.js
[21:06:56] Starting 'sprite'...
[21:06:57] gulp-debug: img\css3.png
[21:06:57] gulp-debug: img\html5.png
[21:06:57] gulp-debug: 2 items
C:\Users\...\themes\node_modules\gulp-spritesmith\node_modules\json2css\lib\json2css.js:81
      var escapedImg = img.replace(/['"\(\)\s]/g, function encodeCssUri (chr) {
                          ^

TypeError: Cannot read property 'replace' of undefined
    at C:\Users\...\themes\node_modules\gulp-spritesmith\node_modules\json2css\lib\json2css.js:81:27
    at Array.forEach (native)
    at Object.Input.escapeImages (C:\Users\...\themes\node_modules\gulp-spritesmith\node_modules\json2css\lib\json2css.js:75:16)
    at json2css (C:\Users\...\themes\node_modules\gulp-spritesmith\node_modules\json2css\lib\json2css.js:40:12)
    at generateCss (C:\Users\...\themes\node_modules\gulp-spritesmith\lib\generateCss.js:39:12)
    at C:\Users\...\themes\node_modules\gulp-spritesmith\index.js:37:26
    at smithCallbackData (C:\Users\...\themes\node_modules\gulp-spritesmith\node_modules\spritesmith\src\smith.js:156:7)
    at fn (C:\Users\...\themes\node_modules\gulp-spritesmith\node_modules\async\lib\async.js:582:34)
    at Immediate._onImmediate (C:\Users\...\themes\node_modules\gulp-spritesmith\node_modules\async\lib\async.js:498:34)
    at processImmediate [as _immediateCallback] (timers.js:374:17)

This package is gulp.spritesmith, not gulp-spritesmith. It looks like the wrong one is installed:
npm uninstall gulp-spritesmith
npm install gulp.spritesmith

Shame on me ...
It is not really usual to use a dot.
But thank you for this fast answer.

We were planning on releasing as gulp-spritesmith. Unfortunately, they got to npm first (we wound up releasing the same week) and we couldn't agree on merging the repositories.
https://github.com/Otouto/gulp-spritesmith/issues/3


How to use ruby 2.5 with newest snapshot-145

In the newest snapshot release it states "Update Ruby interface from 2.4 to 2.5". I've installed ruby with rbenv, und set rbenv global 2.5.0. Then I restarted MacVim.
However, when I type
:!ruby -v
2.4.3p205 (2017-12-14 revision 61247) [x86_64-darwin17]

Checking rbenv I get
:!rbenv version
2.5.0 (set by /Users/my_user/.rbenv/version)

And using which I get
:!which ruby
/usr/local/bin/ruby

But when I look into that ruby executable, I get
$ /usr/local/bin/ruby  -v
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-darwin15]

So I'm a little stuck here. How can I convince MacVim to use ruby 2.5?

first of all, the ruby interface is if_ruby http://vimdoc.sourceforge.net/htmldoc/if_ruby.html
:! http://vimdoc.sourceforge.net/htmldoc/various.html#:! depends on your shell environment.


[BUG, MRG] Remove check on mne.viz.Brain.add_volume_labels

Freesurfer now has a nice wmparc.mgz that doesn't fit the aseg naming conventions. I think maybe just removing this check is easiest.

Thanks @alexrockhill !


[BUG] Type errors in WidthProvider.jsx when using with latest version of Flow

[x ] Bug
[ ] Feature Request
[ ] Question

When using flow version v0.41.0+ and including react-grid-layout in the project, you get type errors on this line
https://github.com/STRML/react-grid-layout/blob/master/lib/components/WidthProvider.jsx#L50
 49:     this.setState({width: node.offsetWidth});
                                    ^^^^^^^^^^^ property `offsetWidth`. Property cannot be accessed on possibly null value
 49:     this.setState({width: node.offsetWidth});
                               ^^^^ null

because of the updated internal React libdef https://github.com/facebook/flow/releases/tag/v0.41.0

The internal React libdef for findDOMNode has been updated to include null in its return-type now (since this function can, indeed, return null).

Changing to method to this would fix the issue:
onWindowResize = (_event: ?Event) => {
  if (!this.mounted) return;
  const node = ReactDOM.findDOMNode(this); // Flow casts this to Text | Element
  if (node !== null && node instanceof HTMLElement) this.setState({width: node.offsetWidth});
}

@matthewbpt I believe you are using an older version of the library. The if (node instanceof HTMLElement) check is enough to also check if it is null, and there are not errors thrown in master or the latest release.


Update Serving CI config for 1.15

Add Serving 1.15 CI
Drop no longer supported Serving 1.10

/lgtm
/approve


add structured contents snapshots

Update Structured Content Struct to add Structured Content Snapshot
Include the following methods in API:
StructuredSnapshotsGetter
-StructuredSnapshotGetter
-StructuredSnapshotHeader
-StructuredSnapshotReader
-SStructurednapshotDownloader

looks good to me.


Listener leak alarm for onThemeChange

Pretty sure this isn't a leak and iff so then we should increase the listener limit for that specific event.
[8ag] potential listener LEAK detected, having 202 listeners already. MOST frequent listener (35):
check @ /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:72
/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:72     at o (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:1701:259)
    at Object.t.attachBadgeStyler (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:1701:544)
    at new E (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:2186:288)
    at t.create (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:217:102)
    at s._createInstance (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:1381:680)
    at s.createInstance (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:1381:92)
    at e.renderTemplate (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:2186:897)
    at _.renderTemplate (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:931:887)
    at x.renderTemplate (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:907:551)
    at renderers.map.t (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:798:609)
    at Array.map (<anonymous>)
    at H.renderTemplate (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:798:600)
    at n.alloc (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:158:813)
    at y.insertItemInDOM (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:398:114)
    at y._splice (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:394:515)
    at y.splice (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:393:142)
    at spliceables.forEach.n (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:7:658)
    at Array.forEach (<anonymous>)
    at i.splice (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:7:645)
    at i.length.eventBufferer.bufferEvents (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:804:75)
    at g.bufferEvents (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:75:214)
    at A.splice (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:804:42)
    at A.splice (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:918:235)
    at l.splice (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:80:759)
    at s._setChildren (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:87:198)
    at setChildren (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:87:92)
    at setChildren (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:930:19)
    at q.render (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:942:607)
    at q.<anonymous> (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:939:536)
    at Generator.next (<anonymous>)
    at r (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:30:772)
    at process._tickCallback (internal/process/next_tick.js:68:7)
check @ /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:72

Yeah I am seeing this very often and I checked each time for leaks, but could not find anything obvious.

@aeschli this would have to be changed in
this.onColorThemeChange = new Emitter<IColorTheme>();
by passing in options to configure the threshold.

There's a lot of listeners for color changes, but I could also not find any leaks when testing.
I didn't get the number of listeners above 200, but it's feasible if you install additional viewlets.
Increased to 400.


Ignore imports that shadow builtin names

In our code base, we import some names from builtins as part of our Python 2+3 compatibility layer (using the future library). These imports shadow the names of builtin symbols. For example:
from builtins import next
from builtins import object
from builtins import range

unimport flags these are unused imports, which is a false positive in our environment.
I can think of two possible solutions:

Teach unimport to ignore these imported names (which are used by code within the rest of the module) even if they share the names of builtin functions.
Support an --ignore option so that we could explicitly tell unimport to skip imports on a per-package basis (builtins, for this example).

Between the options you have presented, I think, the first option is more appropriate and I sent a PR. Thank you for opening this issue


New version: Microsoft.UI.Xaml.2.8 version 8.2310.30001.0

[ ] Have you signed the Contributor License Agreement?
[ ] Have you checked that there aren't other open pull requests for the same manifest update/change?
[ ] This PR only modifies one (1) manifest
[ ] Have you validated your manifest locally with winget validate --manifest <path>?
[ ] Have you tested your manifest locally with winget install --manifest <path>?
[ ] Does your manifest conform to the 1.6 schema?

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

Resolves: https://github.com/microsoft/winget-cli/issues/4208


Custom MetadataService

I'm trying to create a custom MetadataService class to cache the metadata in local storage but I can't seem to find a way to do this by extending OidcClient & UserManager as per the migration docs https://github.com/authts/oidc-client-ts/blob/main/docs/migration.md
removed ResponseValidatorCtor and MetadataServiceCtor
if necessary OidcClient / UserManager classes may be extended to alter their behavior

The problem I'm running into is the OidcClient constructor passes the metadata service into _validator & _tokenClient and I'm not seeing any way to override this behavior. Creating a custom class extending OidcClient I can set a custom metadataService but I don't see how I can get the _validator & _tokenClient to use it. One option would be to recreate _validator & _tokenClient in the derived constructor, but the ResponseValidator & TokenClient classes aren't exported from the package.
https://github.com/authts/oidc-client-ts/blob/23bf2958a74d85845bad693935de29c1a88beca4/src/OidcClient.ts
    public constructor(settings: OidcClientSettings) {
        this.settings = new OidcClientSettingsStore(settings);

        this.metadataService = new MetadataService(this.settings);
        this._validator = new ResponseValidator(this.settings, this.metadataService);
        this._tokenClient = new TokenClient(this.settings, this.metadataService);
    }

What I have so far
import {
  MetadataService,
  OidcClient,
  OidcClientSettings,
  OidcClientSettingsStore,
  OidcMetadata,
  UserManager,
  UserManagerSettings,
} from "oidc-client-ts";

class CachedMetadataService extends MetadataService {
  private metadata: Partial<OidcMetadata> | null = null;

  public async getMetadata(): Promise<Partial<OidcMetadata>> {
    if (this.metadata) {
      return this.metadata;
    }

    let metaData = LocalStorageUtil.get();
    if (!metaData) {
      metaData = await super.getMetadata();
      this.metadata = metaData;
      LocalStorageUtil.set(metaData);
    }

    return metaData;
  }
}

class CachedOidcClient extends OidcClient {
  public readonly metadataService: CachedMetadataService;

  public constructor(settings: OidcClientSettings) {
    super(settings);

    this.metadataService = new CachedMetadataService(this.settings);
  }
}

export default class CachedUserManager extends UserManager {
  protected readonly _client: CachedOidcClient;

  public constructor(settings: UserManagerSettings) {
    super(settings);

    this._client = new CachedOidcClient(settings);
  }
}

Agree, we could add an additional constructor, where one must pass all members constructed in the main constructor: settings, metadataService, validator, tokenClient.


Failed to run Python dependency check

Hi, I got below err when compile rust projects:
failed to run custom build command for `esp-idf-sys v0.33.7`
....
Failed to run Python dependency check.  Python:
    Error: 255

Nice. You need to paste the full log output here. "255" is impossible to debug.
Also, double-check if you have installed all pre-requisites, by following the README in the esp-idf-template repo.

I updated the esp idf version and seems ok now, thanks!


Added support of style.opacity

I think ie8.js is the right place for this to implement, since it already adds getComputedStyle.
With this patch it is possible to set the opacity property on each element.style.

Thanks for this PR but the last change doesn't convince me much. Do you mind elaborating a bit what's going on there?

The function commonEventLoop returns a boolean:
https://github.com/WebReflection/ie8/blob/master/src/ie8.js#L85
This is why adding a beforeunload listener results in a dialog box each time you want to leave the current website (eg. clicking on a link):
window.addEventListener('beforeunload', function(e) { doSomething(); }, false);

When a string is assigned to the returnValue property of window.event, a dialog box appears that gives users the option to stay on the current document and retain the string that was assigned to it. The default statement that appears in the dialog box, "Are you sure you want to navigate away from this page? ... Press OK to continue, or Cancel to stay on the current page.", cannot be removed or altered.
https://msdn.microsoft.com/de-de/library/ms536907(v=vs.85).aspx

At least in IE8 this is also true for boolean return values in addition to strings.
To prevent these dialog boxes the return value must be undefined instead of true.
But you are right, since the return value of commonEventLoop is always a boolean, the following is sufficient:
return commonEventLoop(self, verify(self, e), handlers, false) && undefined;

ehr ... wait, you are breaking everything else that uses boolean returns, like onclick and others right?

is 'beforeunload' the only thing that needs undefined instead of true ? 'cause in that case I'd be happy to add an exception for that instead of ruining expectations for every other possible event.

var retval = commonEventLoop(self, verify(self, e), handlers, false);
return e.type == 'beforeunload' ? (retval && undefined) : retval;

I don't know if there is a requirement for other events.
Is this return value used for other purposes in ie8.js itself?
Because undefined should be the default return value anyway, not?

document.documentElement.onclick = function (e) {
  console.log(e.returnValue);
};

Enjoy a list of always true unless you e.preventDefault().
So, ie8.js wants to be as close to standards as possible, and this is crucial standard event behavior.
You change that, you break the Web.

Anyway, the issue here is that you sneaked in a change that had nothing to do with the PR so now you have opacity blocked because of that 😉

e.returnValue should not be affected by this patch.

IIRC commonEventLoop is used to assign that information, right? I haven't gone through the code but I believe if it was returning a boolean there was a reason.

Apparently e.returnValue is only set to false by calling e.preventDefault().
Therefore it defaults to undefined and never will be true.

OK, let me do this this way: can you please drop changes not related to the topic and eventually create another PR with this one, so I can merge opacity and eventually take the time to investigate about 'beforeunload' event? Thank you.


[Bug]: There is some errors, when I run pnpm add @rsbuild/core @rsbuild/plugin-vue2 -D

System Info
System:
OS: Windows 10 10.0.19045
CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11850H @ 2.50GHz
Memory: 11.28 GB / 31.67 GB
Binaries:
Node: 16.20.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.22 - C:\Program Files\nodejs\yarn.CMD
npm: 8.19.4 - C:\Program Files\nodejs\npm.CMD
pnpm: 8.15.4 - C:\Program Files\nodejs\pnpm.CMD
Browsers:
Edge: Spartan (Active code page: 65001), Chromium (122.0.2365.52), ChromiumDev (Active code page: 65001)
Internet Explorer: 11.0.19041.3636
Details
There is some errors, when I run pnpm add @rsbuild/core @rsbuild/plugin-vue2 -D
 WARN  deprecated<EMAIL_ADDRESS>Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
 WARN  deprecated<EMAIL_ADDRESS>Vue 2 has reached EOL and is no longer actively maintained. See https://v2.vuejs.org/eol/ for more details.
 ERR_PNPM_NO_MATCHING_VERSION  No matching version found for<EMAIL_ADDRESS>
This error happened while installing the dependencies of<EMAIL_ADDRESS>The latest release of @rspack/core is "0.5.7".

Other releases are:
  * snapshot,test: 0.0.0-20220909030737
  * canary: 0.5.7-canary-6007430-20240313111541
  * nightly: 0.5.7-canary-3320ea8-20240312032922
  * alpha: 0.0.4
  * snapshot: 0.0.0-canary-2d5264852-20230525090643

If you need the full list of all 867 published versions run "$ pnpm view @rspack/core versions".
Progress: resolved 729, reused 727, downloaded 2, added 0

Reproduce link
No response
Reproduce Steps
pnpm add @rsbuild/core @rsbuild/plugin-vue2 -D

if you're install packages from an npm mirror registry, please check the latest version of @rspack/* has been synced to the mirror registry.


I want all functions in the "syntax to strings" to accurately add spaces when necessary

committed to pop up dev, need to commit to master


Creation of a group with a list of virtual folders provides error: Provider produced inconsistent result after apply

Hi!
When i'm trying to create group with multiple virtual folders inside i got an error:
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to sftpgo_group.group["MyGroup"], provider "provider[\"registry.terraform.io/drakkan/sftpgo\"]" produced an unexpected new value: .virtual_folders[0].virtual_path: was cty.StringVal("/MyGroup"), but now
│ cty.StringVal("/MyGroup-new").
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to sftpgo_group.group["MyGroup"], provider "provider[\"registry.terraform.io/drakkan/sftpgo\"]" produced an unexpected new value: .virtual_folders[0].name: was cty.StringVal("MyGroup"), but now cty.StringVal("MyGroup-new").
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to sftpgo_group.group["MyGroup"], provider "provider[\"registry.terraform.io/drakkan/sftpgo\"]" produced an unexpected new value: .virtual_folders[1].name: was cty.StringVal("MyGroup-new"), but now cty.StringVal("MyGroup").
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to sftpgo_group.group["MyGroup"], provider "provider[\"registry.terraform.io/drakkan/sftpgo\"]" produced an unexpected new value: .virtual_folders[1].virtual_path: was cty.StringVal("/MyGroup-new"), but now
│ cty.StringVal("/MyGroup").
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.

Provider version: 0.0.12
My resource:
resource "sftpgo_group" "group" {
  for_each        = { for group in local.groups : group.name => group }
  name            = each.value.name
  virtual_folders = each.value.virtual_folder
  depends_on      = [sftpgo_folder.folder]
}

Locals:
  groups = [for group in var.groups : {
    name = group.name
    virtual_folder = [for group_folder in group.virtual_folders : {
      name         = group_folder.name
      virtual_path = group_folder.virtual_path
      quota_files  = -1
      quota_size   = -1
    }]
  }]

State entry after apply
terraform state show 'sftpgo_group.group["MyGroup"]'
# sftpgo_group.group["MyGroup"]: (tainted)
resource "sftpgo_group" "group" {
    created_at      =<PHONE_NUMBER>721
    id              = "MyGroup"
    name            = "MyGroup"
    updated_at      =<PHONE_NUMBER>721
    user_settings   = {
        filesystem = {
            provider = 0
        }
        filters    = {}
    }
    virtual_folders = [
        {
            filesystem        = {
                osconfig = {
                    read_buffer_size  = 10
                    write_buffer_size = 10
                }
                provider = 0
            }
            last_quota_update = 0
            mapped_path       = "/srv/sftpgo/data/folder-1/MyGroup-new"
            name              = "MyGroup-new"
            quota_files       = -1
            quota_size        = -1
            used_quota_files  = 0
            used_quota_size   = 0
            virtual_path      = "/MyGroup-new"
        },
        {
            filesystem        = {
                osconfig = {
                    read_buffer_size  = 10
                    write_buffer_size = 10
                }
                provider = 0
            }
            last_quota_update = 0
            mapped_path       = "/srv/sftpgo/data/folder-2/MyGroup"
            name              = "MyGroup"
            quota_files       = -1
            quota_size        = -1
            used_quota_files  = 0
            used_quota_size   = 0
            virtual_path      = "/MyGroup"
        },
    ]
}

And i got the same behaviour on previous 0.0.11 provider version

Also, if you'll try to change the order and  types of groups for existing user state, it will produce the same error
Error: Provider produced inconsistent result after apply
...


[type:feature] add logging-tencent-cls plugin.

Fixes #3859

Make sure that:

[x] You have read the contribution guidelines.
[x] You submit test cases (unit or integration tests) that back your changes.
[x] Your local test passed ./mvnw clean install -Dmaven.javadoc.skip=true.

Codecov Report

Merging #3873 (6367429) into master (2156dd7) will decrease coverage by 0.29%.
The diff coverage is 76.08%.

@@             Coverage Diff              @@
##             master    #3873      +/-   ##
============================================
- Coverage     64.74%   64.45%   -0.30%
- Complexity     6097     6099       +2
============================================
  Files           898      904       +6
  Lines         24729    24959     +230
  Branches       2240     2264      +24
============================================
+ Hits          16012    16087      +75
- Misses         7311     7459     +148
- Partials       1406     1413       +7

Impacted Files
Coverage Δ

...ogging/common/constant/GenericLoggingConstant.java
0.00% <ø> (ø)

...tencent/cls/client/TencentClsLogCollectClient.java
67.77% <67.77%> (ø)

...in/tencent/cls/config/TencentLogCollectConfig.java
76.19% <76.19%> (ø)

...ls/handler/LoggingTencentClsPluginDataHandler.java
84.21% <84.21%> (ø)

...ava/org/apache/shenyu/common/enums/PluginEnum.java
100.00% <100.00%> (ø)

...yu/plugin/tencent/cls/LoggingTencentClsPlugin.java
100.00% <100.00%> (ø)

...ncent/cls/collector/TencentClsSlsLogCollector.java
100.00% <100.00%> (ø)

...cent/cls/LoggingTencentClsPluginConfiguration.java
100.00% <100.00%> (ø)

...n/alibaba/dubbo/cache/AlibabaDubboConfigCache.java
47.12% <0.00%> (-31.04%)
:arrow_down:

...che/shenyu/sync/data/http/HttpSyncDataService.java
70.40% <0.00%> (-19.39%)
:arrow_down:

... and 33 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

pls resolve conflicts

solved


Fix typo in error message

-p no longer exists. The option was renamed to -n
Signed-off-by: Rudi Grinberg<EMAIL_ADDRESS>

I've fixed the option name instead :-)


add ur10 world and modify supervisor to show issue

I gave your IK solver a try but, unfortunately, I've not been able to get IK solutions with it for the UR10e.
I've made this pull request on the tutorial which illustrates the issue:
The code asks the ik solver to solve a pose for which I know that there is a solution:
The controller brings the arm to the target pose by specifying the joints state , and verifies that the end effector pose and target pose match (using get_fk).
It then asks for the IK solution to the same end-effector pose and fails to find it.
If you have time to check it out and perhaps point to possible errors on my part I'd be grateful.
To try it, open webots on the added ikfast_tutorial_ur10.wbt file

I will check it out

this was not meant for merging, just to illustrate an issue. closing PR


Missing Boot From USB keyword, usb-boot.robot tests do not work.

Missing Boot From USB keyword, usb-boot.robot tests do not work.
usb-boot_log.zip

working on here:  https://github.com/Dasharo/open-source-firmware-validation/pull/351

@BeataZdunczyk It's duplicate of https://github.com/Dasharo/open-source-firmware-validation/issues/279 and possibly https://github.com/Dasharo/open-source-firmware-validation/issues/143
which should be fixed when @PLangowski PR https://github.com/Dasharo/open-source-firmware-validation/pull/312 is merged.


Caching

Is there a way to cache the packages?

If there is, it's outside the scope of this plugin.


setSectionResizeMode

Hi there,
I'm seeing problems since 0.6.2 (commit 02930e4755de452d871acbd60a10711b583bd4e6).
This commit changed the binding between setResizeMode and setSectionResizeMode (for Qt4) to use a lambda function. The comment in the code mentions "the second argument - hide - does not apply to Qt4", but this method has no parameter called hide, just logicalIndex and mode.
When I call the following:
QtCompat.setSelectionResizeMode(header, QtWidgets.QHeaderView.ResizToContents)
I get the following error:
*** TypeError: setResizeMode expected at least 1 arguments, got 0
This error was introduced since 0.6.1
Thanks
Will

Thanks for reporting this @innerhippy!
Having a look now.

Let me know how this works out for you, @innerhippy.

That was also the change I implemented and have tested. Thanks for the quick turnaround!


pip3 install opencv-python on Raspberry PI 64 Bit OS beta fails

I tried to install OpenCV on a Raspberry PI 4 running 64 bit OS beta.
Kernel:  Linux 5.10.11-v8+ opencv/opencv#1399 SMP PREEMPT Thu Jan 28 12:14:03 GMT 2021 aarch64 GNU/Linux.
Python 3.7.3
I there a specific version that I should point to?
Here is the error:
pip3 install opencv-python
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting opencv-python
  Downloading https://files.pythonhosted.org/packages/bb/08/9dbc183a3ac6baa95fabf749ddb531bd26256edfff5b6c2195eca26258e9/opencv-python-<IP_ADDRESS>.tar.gz (88.3MB)
    100% |████████████████████████████████| 88.3MB 6.2kB/s
  Installing build dependencies ... error
  Complete output from command /home/pi/tflite1/tflite1-env/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-b3_jcvec --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple --extra-index-url https://www.piwheels.org/simple -- setuptools wheel scikit-build cmake pip "numpy==1.13.3; python_version=='3.6' and platform_machine != 'aarch64'" "numpy==1.19.3; python_version>='3.6' and sys_platform == 'linux' and platform_machine == 'aarch64'" "numpy==1.14.5; python_version=='3.7' and platform_machine != 'aarch64'" "numpy==1.17.3; python_version=='3.8' and platform_machine != 'aarch64'" "numpy==1.19.3; python_version>='3.9' and platform_machine != 'aarch64'":
  Ignoring numpy: markers 'python_version == "3.6" and platform_machine != "aarch64"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.7" and platform_machine != "aarch64"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.8" and platform_machine != "aarch64"' don't match your environment
  Ignoring numpy: markers 'python_version >= "3.9" and platform_machine != "aarch64"' don't match your environment
  Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple, https://www.piwheels.org/simple
  Collecting setuptools
    Using cached https://files.pythonhosted.org/packages/15/0e/255e3d57965f318973e417d5b7034223f1223de500d91b945ddfaef42a37/setuptools-53.0.0-py3-none-any.whl
  Collecting wheel
    Using cached https://files.pythonhosted.org/packages/65/63/39d04c74222770ed1589c0eaba06c05891801219272420b40311cd60c880/wheel-0.36.2-py2.py3-none-any.whl
  Collecting scikit-build
    Using cached https://files.pythonhosted.org/packages/78/c9/7c2c7397ea64e36ebb292446896edcdecbb8c1aa6b9a1a32f6f67984c3df/scikit_build-0.11.1-py2.py3-none-any.whl
  Collecting cmake
    Using cached https://files.pythonhosted.org/packages/26/76/b6df98a03343160a27c449c2866d8b94d349be4a3a6632aaf49c8d27916b/cmake-3.18.4.post1.tar.gz
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
  Collecting pip
    Using cached https://files.pythonhosted.org/packages/fe/ef/60d7ba03b5c442309ef42e7d69959f73aacccd0d86008362a681c4698e83/pip-21.0.1-py3-none-any.whl
  Collecting numpy==1.19.3
  Collecting packaging (from scikit-build)
    Using cached https://files.pythonhosted.org/packages/3e/89/7ea760b4daa42653ece2380531c90f64788d979110a2ab51049d92f408af/packaging-20.9-py2.py3-none-any.whl
  Collecting distro (from scikit-build)
    Using cached https://files.pythonhosted.org/packages/25/b7/b3c4270a11414cb22c6352ebc7a83aaa3712043be29daa05018fd5a5c956/distro-1.5.0-py2.py3-none-any.whl
  Collecting pyparsing>=2.0.2 (from packaging->scikit-build)
    Using cached https://files.pythonhosted.org/packages/8a/bb/488841f56197b13700afd5658fc279a2025a39e22449b7cf29864669b15d/pyparsing-2.4.7-py2.py3-none-any.whl
  Building wheels for collected packages: cmake
    Running setup.py bdist_wheel for cmake: started
    Running setup.py bdist_wheel for cmake: finished with status 'error'
    Complete output from command /home/pi/tflite1/tflite1-env/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-7ntk4vs3/cmake/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-3i_a92mq --python-tag cp37:
    Traceback (most recent call last):
      File "/tmp/pip-build-env-ix6w50uw/lib/python3.7/site-packages/skbuild/setuptools_wrap.py", line 560, in setup
        cmkr = cmaker.CMaker(cmake_executable)
      File "/tmp/pip-build-env-ix6w50uw/lib/python3.7/site-packages/skbuild/cmaker.py", line 95, in __init__
        self.cmake_version = get_cmake_version(self.cmake_executable)
      File "/tmp/pip-build-env-ix6w50uw/lib/python3.7/site-packages/skbuild/cmaker.py", line 82, in get_cmake_version
        "Problem with the CMake installation, aborting build. CMake executable is %s" % cmake_executable)

    Problem with the CMake installation, aborting build. CMake executable is cmake

    ----------------------------------------
    Failed building wheel for cmake
    Running setup.py clean for cmake
  Failed to build cmake
  Installing collected packages: setuptools, wheel, pyparsing, packaging, distro, scikit-build, cmake, pip, numpy
    Running setup.py install for cmake: started
      Running setup.py install for cmake: finished with status 'error'
      Complete output from command /home/pi/tflite1/tflite1-env/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-7ntk4vs3/cmake/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-_cbs9upd/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-b3_jcvec --compile --install-headers /home/pi/tflite1/tflite1-env/include/site/python3.7/cmake:
      Traceback (most recent call last):
        File "/tmp/pip-build-env-ix6w50uw/lib/python3.7/site-packages/skbuild/setuptools_wrap.py", line 560, in setup
          cmkr = cmaker.CMaker(cmake_executable)
        File "/tmp/pip-build-env-ix6w50uw/lib/python3.7/site-packages/skbuild/cmaker.py", line 95, in __init__
          self.cmake_version = get_cmake_version(self.cmake_executable)
        File "/tmp/pip-build-env-ix6w50uw/lib/python3.7/site-packages/skbuild/cmaker.py", line 82, in get_cmake_version
          "Problem with the CMake installation, aborting build. CMake executable is %s" % cmake_executable)

      Problem with the CMake installation, aborting build. CMake executable is cmake

      ----------------------------------------
  Command "/home/pi/tflite1/tflite1-env/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-7ntk4vs3/cmake/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-_cbs9upd/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-b3_jcvec --compile --install-headers /home/pi/tflite1/tflite1-env/include/site/python3.7/cmake" failed with error code 1 in /tmp/pip-install-7ntk4vs3/cmake/

  ----------------------------------------
Command "/home/pi/tflite1/tflite1-env/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-b3_jcvec --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple --extra-index-url https://www.piwheels.org/simple -- setuptools wheel scikit-build cmake pip "numpy==1.13.3; python_version=='3.6' and platform_machine != 'aarch64'" "numpy==1.19.3; python_version>='3.6' and sys_platform == 'linux' and platform_machine == 'aarch64'" "numpy==1.14.5; python_version=='3.7' and platform_machine != 'aarch64'" "numpy==1.17.3; python_version=='3.8' and platform_machine != 'aarch64'" "numpy==1.19.3; python_version>='3.9' and platform_machine != 'aarch64'"" failed with error code 1 in None

First thing you must always do before installing these packages: update your pip. Please refer to the README file for more detailed install instructions. If that does not solve the problem, we can then check if there's an actual issue somewhere.

I have the latest packages installed and pip3 is the latest one

Your pip is outdated. Did you read the README?

Make sure that your pip version is up-to-date (19.3 is the minimum supported version): pip install --upgrade pip. Check version with pip -V. For example Linux distributions ship usually with very old pip versions which cause a lot of unexpected problems especially with the manylinux format.

Your pip is too old to recognize the manylinux2014 wheels. Please upgrade it. There is no issue in this repository.

I thought that sudo apt install python3-pip would get the latest. Anyway did the upgrade and got version 21.
I was in a virtual environment and it was still using the older one, installation was ok
thx for the support


[1.12] Allow customization of JAVA options for root Marathon, and other changes

Forwardport of 0fcc0828..589ef2cd / #2918

post-installation environment variable configuration can now be placed in
/var/lib/dcos/marathon/environment
JVM parameters can be specified via MARATHON_JAVA_ARGS
environment.ip.marathon file is gone; instead we have a launching script to
set these vars
Add some comments to init file to help users know where environment variables
can be placed
Add docs at the top of env var files
Allow DCOS config variables to be overridden

This repo has @mesosphere-mergebot integration. You can interact with the following commands.
@mesosphere-mergebot merge-it
@mesosphere-mergebot override-status
@mesosphere-mergebot bump-ee
@mesosphere-mergebot label [Ready For Review |Request For Comment |Holding |Work In Progress |Ship It]

PR creators can apply one of  [Ready For Review |Work In Progress]. Owners can apply any label.

@mesosphere-mergebot bump-ee

@mesosphere-mergebot label Ready For Review


[contributing guidelines] proposal for flake8 + black?

@newville I would propose to recommend using flake8 as linter and black as code formatter. The advantage of flake8 over other linters is that it is a wrapper on top of the others, gluing together these tools. black will ensure having a clean code formatted the same way, independently who codes it. Both tools can be seamlessly integrated in modern Python IDEs (e.g. Visual Studio Code).
If this proposal is accepted, I would add this in a CONTRIBUTING file with some guidelines and enforce those two tools in future developments. Existing files could be ported to this style progressively.

And for documentation we could use as linter rstcheck.

@maurov   I am not a fan of Black, at all.
Flake8 is not too bad.  But  PEP8 is a guide, it is not meant to be blindly followed or enforced.   It is a fine thing to keep in mind when writing code.  For sure, enforcing a line length of 79 characters leads to problems.  Sometimes code is improved with more than one space on either side of an equals sign.  And so on.
Using Flake8 as a report of PEP8 compliance is fine.  Using it as a way to start a code review is OK.  But saying "this code passes all the tests but fails because of PEP8"  raises the barrier for contributing.  I would rather try to lower that barrier, even if it means having to clean up code after merging for something like removing trailing whitespace.
Rstcheck is at least doing some validity checking, so is not only about style.
We use import hooks with flake8 and rstcheck in lmfit.  I can live with those.  I am sure that large swaths of Larch would trigger some flake8 warnings.   I would suggest we address those one at a time,  and not prevent changes from being imported because parts of a file violate PEP8 and not encourage PEP8-ifying code just for the sake of PEP8.

@newville thanks for your comments. OK, it is fine for me to live without Black formatting existing code in Larch and use Flake8 only as a helper for PEP8 compliance.


Make conditional access restrictions configurable

This PR removes the conditional blocking access from the vehicle parsers. I.e. after this change you need to add e.g. car_road_access_conditional == NO into a custom model to still consider temporary restrictions due to constructions.
This PR also:

removes the ConditionalOSMTagInspector
fixes a bug in KVStringDetails
fixes #2477
introduces path details for conditional tags. (see also #2860)
related to #1260
minor increase of graph storage, but it is neglectable: edgekv_vals increases 0.5% (4MB) for planet import.

I added some more path details to the Measurement so the response time is expected to be a bit slower for this single test.
Here is an OSM way with vehicle:conditional=no @ (Nov 1-Mar 31) for testing purposes. GH Maps link.

Hello, is there any timeline when this will be released? I supposed this will be included in 9.0, I just hoped to know when will 9.0 be available.

I do not see the conditional here, all the way "Type: null" - https://graphhopper.com/maps/?point=47.307968%2C11.519214&point=47.338586%2C11.507562&profile=hike&layer=TF+Outdoors - It routes over a via ferrata that is closed in winter. C.f. https://github.com/graphhopper/graphhopper/issues/1326

I read "refresh necessary" and did not see a change. Then I read "click on the icon" and now I see. It would have never appeared to me that the icons can be clicked.
From A user PoV I would be fine with being told, a bit more immediately visible than now - perhaps the section pre-clicked? I would not expect a magic button to solve the issue. Some routers offer alternatives in all cases, maybe suggest to tune by placing a via close by - What do I know?
PS - In this very case: I think, graphhopper should just drop any "highway=via_ferrata" when ingesting OSM data. Much as OSM-Carto does or thunderforest does. These highways are of no use neither for the foot not the hike profile.


nixos/bind: refactor zones from a list to attrset

Motivation for this change
Having services.bind.zones as a list instead of a attrset, means that it is hard to make any changes.
I have been using Nixus which does some fun DNS stuff here - https://github.com/Infinisil/nixus/blob/master/modules/dns.nix#L176-L184
Now if I want to add slaves to that, ie. dk-hostmaster, then I can't do that in any easy way.
This PR should clean that up!
I have tested it as good as I can.
Just an example, which is a very very very bad one, seeing as this could be a let ... in ..., but keep the Nixus example in mind instead (ie. think of it, as I am adding dk-hostmaster as a slave to my slave.dk demain).
{ config, pkgs, lib, ... }:

{
  services.bind = {
    extraConfig = ''
      acl dk-hostmaster {
        <IP_ADDRESS>;2a01:630::40:3:4:5:6;
      };
    '';
    zones = {
      "main" = {
        name = "mainsite.dk";
        master = true;
        file = config.services.bind.zones."slave.dk".file;
      };
      "slave.dk" = {
        slaves = [ "dk-hostmaster" ];
        file = /etc/something/something/zone.txt;
      };
    };
  };
}

Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

@Infinisil @eyJhb This doesn't seem to work for me. I'm trying to do on 21.05:
{
  services.bind = {
    enable = true;
    zones = {
      "nh2.me" = {
        file = "/var/db/bind/nh2.me";
        master = true;
        extraConfig = "";
      };
    };
  };
}

but I get:
while evaluating 'concatMapStrings' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/strings.nix:31:25, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/services/networking/bind.nix:35:10:
value is a set while a list was expected, at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/strings.nix:31:46

Am I using it wrong?

@Infinisil @eyJhb This doesn't seem to work for me. I'm trying to do on 21.05:
{
  services.bind = {
    enable = true;
    zones = {
      "nh2.me" = {
        file = "/var/db/bind/nh2.me";
        master = true;
        extraConfig = "";
      };
    };
  };
}

but I get:
while evaluating 'concatMapStrings' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/strings.nix:31:25, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/services/networking/bind.nix:35:10:
value is a set while a list was expected, at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/strings.nix:31:46

Am I using it wrong?

I am not sure what thou fault might be, the 21.05 line 35, does not seem to match anything of important. Or am I missing something?
https://github.com/NixOS/nixpkgs/blob/nixos-21.05/nixos/modules/services/networking/bind.nix#L35
Can you paste output of nix-info? Also, create a issue would be better and tag this PR :)

@eyJhb Sorry, I was wrong: This is a 20.09 machine, not 21.05. Stable link to the code from the trace:
https://github.com/NixOS/nixpkgs/blob/b52409e65eb55d4f75ccf1561f4d87c1a43f7b2f/nixos/modules/services/networking/bind.nix#L35

@eyJhb Sorry, I was wrong: This is a 20.09 machine, not 21.05. Stable link to the code from the trace:
https://github.com/NixOS/nixpkgs/blob/b52409e65eb55d4f75ccf1561f4d87c1a43f7b2f/nixos/modules/services/networking/bind.nix#L35
Edit: And that also means that this PR isn't actually in what I'm running.
So my bad. I need to upgrade this machien to 21.05 if I want your change to work.
Thanks!

Exactly :p Good to know you figured it out! Have a nice day :)


new DB backend for explorer/rivine

question 1: can ZDB be used as backend?

is the default user mode good enough (memory requirements?)

alternative:

ardb which is also a redis store but better when huge amounts of records expected and key is dynamic

for sure we need to go away from boltdb and go to zdb or ardb

Replaced by #605.


Add file startup status to dameon logs (removed in 0.19+)

The Issue
@jackrobison we discussed this on Slack:
In v0.18, the file startup procedure would show the status of the file (stopped/finished/running), but in v19, it only tells you that it initialized the file - so you don't know the current status. Jack's comment:
"only log those where the download isn't finished or isn’t fully reflected". This would definitely help with debugging.
Also, would it be possible to add more information to the current log. If we are separating claim information from files, it may not be possible, but it would be helpful to have the URL or sd_hash in this step as well.
Before:
2018-01-23 08:32:33,088 INFO     lbrynet.file_manager.EncryptedFileDownloader:32: lbry://975-weekly-round-up-wages-wildfires-and (7d707e) is stopped
2018-01-23 08:32:33,088 INFO     lbrynet.file_manager.EncryptedFileDownloader:32: lbry://972-energy-oil-cuts-and-consumption (823d2c) is finished
2018-01-23 08:32:33,088 INFO     lbrynet.file_manager.EncryptedFileDownloader:32: lbry://973-food-wars-low-prices-lower-profits (fc2031) is running

After (in some later RC)
2018-01-23 09:59:48,068 INFO     lbrynet.file_manager.EncryptedFileManager:125: initialized file k9OpYhPuCvU.mp4
2018-01-23 09:59:48,098 INFO     lbrynet.file_manager.EncryptedFileManager:125: initialized file How To Foward Ports To Seed Content in LBRY.mp4
2018-01-23 09:59:48,098 INFO     lbrynet.file_manager.EncryptedFileManager:125: initialized file live 11718.mp4

Now: Nada - no detailed file status. I think we should bring it back at least for non-complete items so there's some awareness that they are trying to download.
System Configuration

LBRY Daemon version: 0.19rc29
LBRY App version:
LBRY Installation ID:
Operating system:

Anything Else

Screenshots

We should at a minimum list the files that are incomplete/pending on startup.


Error handling

How to do proper error handling?
Running it with no Internet, which may happen in various installations, should happen cleanly and with proper error reporting, currently it results in a unhandled promise rejection,
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:66:26)
(node:63019) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing
 inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To
terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see
 https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)

Thanks

Solution.
Put a catch error block in the request() function, like so
    request() {
        const { from, requestOpts } = this.opts;

        return new Promise(resolve => {
            if (from !== Auto) {
                resolve()
            } else {
                this.langdetect().then(lan => {
                    this.opts.from = lan;
                    resolve();
                });
            }
        }).then(() => {
            return cookie.get(requestOpts).then(() => this.trans());
        }).catch((err) => {
            return "error";
        });
    }


Code intellisense does not working for new typescript  file util reload window

VSCode Version: 1.47.0
OS Version: macOS 10.15.4

Steps to Reproduce:

Create a new ts file, then code intellisense does not working
After reload window, it's ok

Does this issue occur when all extensions are disabled?: Yes/No

Does this reproduce with all extensions disabled?


Firefox 78.1.0esr

Checklist

[x] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[x] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

Should be merged before #23 so that we can start the 78 branch most simply.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.


Sort in maintenance script is case sensitive

Make it not case sensitive using str.casefold as comparison

With 31cef5ed8e5f6d9c78f14d87ff2b5f448525c8d0 sorting is now case-insensitive.


is there any method for getting current date as string in specific type?

thanks for this useful and precise library. but i could not find any method to getDate which return current date as string. some thing like that... "11/18/2016" --->convert to  "1395/8/28"
also is there any method to roll calendar?
tanx

The core calculations are solid and robust. But to be honest, it wasn't my intention to expand it. I just wanted a repo for a Persian Calendar in different languages. I might do that whenever I find some free time.
Though any PRs would be most welcome!

can i make some enhancement and pull it?

Would be mu honor! Please put it in it's own folder, because some friends use Roozh.js the way it is.
And I must add I would be very happy even if you just copy this code and publish a lib of your own (the algorithm is not mine, but an english mathematician which I've got his permission to use his algorithm; so I would be proud if this lib become of someones help - I like credits, but in this case, I do not care that much for it - and as an example an extension to moment.js or something like that would be great).
If you decided to go with your own repo, please add it's url to readme so people can find it more easily.

Okay thank.


no $font-weight-lg

Currently it's possible to set the padding, line-height, font-size, and border-radius for large element buttons and inputs, but there's no choice for font weight.  It would seem natural that if there were a larger element, it might want to have a stronger weight.

See: https://github.com/twbs/bootstrap/commit/c8a4d9dd745e0529e8868aef4551dc2a493745a3#diff-d8ee409a461718bfb6240710c8c73382


scipy.linalg.schur decomposition

Looks like schur decomposition isn't implemented at the moment. Are there any plans to support this? Also, anything specific that might block me from implementing this?

Looking at the scipy implementation of schur, I can see it has a dependency on lapack here.

This sounds pretty reasonable to me. I don't think there are any current plan to implement this but we would welcome contributions.
See these files for examples of how we wrap LAPACK/CuSolver for new low-level solvers:
https://github.com/google/jax/blob/master/jaxlib/lapack.pyx
https://github.com/google/jax/blob/master/jaxlib/cusolver.py
(I'm guessing we don't want to implement this method ourselves)

Implemented a wrapper for the required lapack routine, but I'm facing several issues while building jaxlib from source to incorporate these changes. Are jaxlib wheels generated by the CI/CD if I open a PR? That way I can avoid generating them locally.
Tested in ubuntu 18.04 (docker).

No, the CI uses the _minimum_jaxlib_version generated in setup.py. There is some testing involving jaxlib compilation outside github CI once the Pull Ready tag is added, but that is unfortunately fairly opaque to non-Google employees.

@ayush-1506 But we can probably help you figure out what's going wrong with your jaxlib build. Have you seen https://jax.readthedocs.io/en/latest/developer.html#building-from-source ?

@hawkinsp Yes, I'm following the same instructions. The error seems trivial:
Server terminated abruptly (error code: 14, error message: 'Socket closed', log file: '/root/.cache/bazel/_bazel_root/deb80d6610824a92deeac7b7fd0f3e3c/server/jvm.out')```

My guess is that this is happening due to oom.

@ayush-1506 Yes, that is plausible. You might try setting the --jobs argument to Bazel; using fewer jobs than you have cores might help if you are RAM constrained. You can pass extra Bazel options through the build.py script using --bazel_options="--jobs 4" or something like that.

@hawkinsp Thanks, reducing the number of jobs seems to work. However, I ran into another issue after this. (This doesn't seem to be related to oom). I'm building this without rocm/cuda/tpu.
[0 / 17] [Prepa] BazelWorkspaceStatusAction stable-status.txt
[136 / 1,670] Compiling com_google_protobuf/src/google/protobuf/compiler/java/java_message_lite.cc; 1s local ... (2 actions, 1 running)
[348 / 1,871] Compiling com_google_absl/absl/time/internal/cctz/src/time_zone_info.cc; 1s local ... (2 actions, 1 running)
[534 / 1,871] Compiling org_tensorflow/tensorflow/core/platform/hash.cc; 1s local ... (2 actions, 1 running)
[805 / 1,871] Compiling external/org_tensorflow/tensorflow/core/framework/full_type.pb.cc; 0s local ... (2 actions, 1 running)
[933 / 1,871] Compiling org_tensorflow/tensorflow/core/platform/default/posix_file_system.cc; 2s local ... (2 actions, 1 running)
ERROR: /root/.cache/bazel/_bazel_root/deb80d6610824a92deeac7b7fd0f3e3c/external/org_tensorflow/tensorflow/core/BUILD:1593:16: C++ compilation of rule '@org_tensorflow//tensorflow/core:framework_internal_impl' failed (Exit 1): gcc failed: error executing command
  (cd /root/.cache/bazel/_bazel_root/deb80d6610824a92deeac7b7fd0f3e3c/execroot/__main__ && \
  exec env - \
    PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
    PWD=/proc/self/cwd \
    TF_CUDA_COMPUTE_CAPABILITIES=3.5,5.2,6.0,6.1,7.0 \
    TF_ROCM_AMDGPU_TARGETS=gfx803,gfx900,gfx906,gfx1010 \
  /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections -fdata-sections '-std=c++11' -MD -MF bazel-out/k8-opt/bin/external/org_tensorflow/tensorflow/core/_objs/framework_internal_impl/batch_util.pic.d '-frandom-seed=bazel-out/k8-opt/bin/external/org_tensorflow/tensorflow/core/_objs/framework_internal_impl/batch_util.pic.o' -fPIC -DHAVE_SYS_UIO_H -DTF_USE_SNAPPY -DEIGEN_MPL2_ONLY '-DEIGEN_MAX_ALIGN_BYTES=64' -iquoteexternal/org_tensorflow -iquotebazel-out/k8-opt/bin/external/org_tensorflow -iquoteexternal/com_google_protobuf -iquotebazel-out/k8-opt/bin/external/com_google_protobuf -iquoteexternal/zlib -iquotebazel-out/k8-opt/bin/external/zlib -iquoteexternal/eigen_archive -iquotebazel-out/k8-opt/bin/external/eigen_archive -iquoteexternal/com_google_absl -iquotebazel-out/k8-opt/bin/external/com_google_absl -iquoteexternal/nsync -iquotebazel-out/k8-opt/bin/external/nsync -iquoteexternal/gif -iquotebazel-out/k8-opt/bin/external/gif -iquoteexternal/libjpeg_turbo -iquotebazel-out/k8-opt/bin/external/libjpeg_turbo -iquoteexternal/com_googlesource_code_re2 -iquotebazel-out/k8-opt/bin/external/com_googlesource_code_re2 -iquoteexternal/farmhash_archive -iquotebazel-out/k8-opt/bin/external/farmhash_archive -iquoteexternal/fft2d -iquotebazel-out/k8-opt/bin/external/fft2d -iquoteexternal/highwayhash -iquotebazel-out/k8-opt/bin/external/highwayhash -iquoteexternal/double_conversion -iquotebazel-out/k8-opt/bin/external/double_conversion -iquoteexternal/snappy -iquotebazel-out/k8-opt/bin/external/snappy -isystem external/com_google_protobuf/src -isystem bazel-out/k8-opt/bin/external/com_google_protobuf/src -isystem external/zlib -isystem bazel-out/k8-opt/bin/external/zlib -isystem external/org_tensorflow/third_party/eigen3/mkl_include -isystem bazel-out/k8-opt/bin/external/org_tensorflow/third_party/eigen3/mkl_include -isystem external/eigen_archive -isystem bazel-out/k8-opt/bin/external/eigen_archive -isystem external/nsync/public -isystem bazel-out/k8-opt/bin/external/nsync/public -isystem external/gif -isystem bazel-out/k8-opt/bin/external/gif -isystem external/farmhash_archive/src -isystem bazel-out/k8-opt/bin/external/farmhash_archive/src -isystem external/double_conversion -isystem bazel-out/k8-opt/bin/external/double_conversion -Wno-sign-compare -Wno-stringop-truncation -mavx '-std=c++14' -DEIGEN_AVOID_STL_ARRAY -Iexternal/gemmlowp -Wno-sign-compare '-ftemplate-depth=900' -fno-exceptions -DINTEL_MKL -msse3 -DTENSORFLOW_MONOLITHIC_BUILD -pthread '-DINTEL_MKL=1' -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/org_tensorflow/tensorflow/core/util/batch_util.cc -o bazel-out/k8-opt/bin/external/org_tensorflow/tensorflow/core/_objs/framework_internal_impl/batch_util.pic.o)
Execution platform: @local_execution_config_platform//:platform
In file included from external/org_tensorflow/third_party/eigen3/unsupported/Eigen/CXX11/FixedPoint:46,
                 from external/org_tensorflow/tensorflow/core/framework/numeric_types.h:24,
                 from external/org_tensorflow/tensorflow/core/framework/allocator.h:26,
                 from external/org_tensorflow/tensorflow/core/framework/tensor.h:23,
                 from external/org_tensorflow/tensorflow/core/util/batch_util.h:18,
                 from external/org_tensorflow/tensorflow/core/util/batch_util.cc:16:
external/org_tensorflow/third_party/eigen3/unsupported/Eigen/CXX11/src/FixedPoint/PacketMathAVX.h:14:41: warning: ignoring attributes on template argument '__m256i' {aka '__vector(4) long long int'} [-Wignored-attributes]
 typedef eigen_packet_wrapper<__m256i, 10> Packet32q8i;
                                         ^
external/org_tensorflow/third_party/eigen3/unsupported/Eigen/CXX11/src/FixedPoint/PacketMathAVX.h:15:41: warning: ignoring attributes on template argument '__m128i' {aka '__vector(2) long long int'} [-Wignored-attributes]
 typedef eigen_packet_wrapper<__m128i, 11> Packet16q8i;
                                         ^
gcc: fatal error: Killed signal terminated program cc1plus
compilation terminated.
Target //build:build_wheel failed to build
INFO: Elapsed time: 1050.784s, Critical Path: 92.65s
INFO: 974 processes: 43 internal, 931 local.
FAILED: Build did NOT complete successfully
ERROR: Build failed. Not running target
FAILED: Build did NOT complete successfully
Traceback (most recent call last):
  File "build/build.py", line 521, in <module>
    main()
  File "build/build.py", line 516, in main
    shell(command)
  File "build/build.py", line 51, in shell
    output = subprocess.check_output(cmd)
  File "/usr/local/lib/python3.8/subprocess.py", line 411, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/local/lib/python3.8/subprocess.py", line 512, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['./bazel-3.7.2-linux-x86_64', 'run', '--verbose_failures=true', '--jobs=2', '--config=short_logs', '--config=avx_posix', '--config=mkl_open_source_only', ':build_wheel', '--', '--output_path=/root/jax/dist']' returned non-zero exit status 1.

@hawkinsp Thanks, reducing the number of jobs seems to work. However, I ran into another issue after this. (This doesn't seem to be related to oom). I'm building this without rocm/cuda/tpu.
[0 / 17] [Prepa] BazelWorkspaceStatusAction stable-status.txt
[136 / 1,670] Compiling com_google_protobuf/src/google/protobuf/compiler/java/java_message_lite.cc; 1s local ... (2 actions, 1 running)
[348 / 1,871] Compiling com_google_absl/absl/time/internal/cctz/src/time_zone_info.cc; 1s local ... (2 actions, 1 running)
[534 / 1,871] Compiling org_tensorflow/tensorflow/core/platform/hash.cc; 1s local ... (2 actions, 1 running)
[805 / 1,871] Compiling external/org_tensorflow/tensorflow/core/framework/full_type.pb.cc; 0s local ... (2 actions, 1 running)
[933 / 1,871] Compiling org_tensorflow/tensorflow/core/platform/default/posix_file_system.cc; 2s local ... (2 actions, 1 running)
ERROR: /root/.cache/bazel/_bazel_root/deb80d6610824a92deeac7b7fd0f3e3c/external/org_tensorflow/tensorflow/core/BUILD:1593:16: C++ compilation of rule '@org_tensorflow//tensorflow/core:framework_internal_impl' failed (Exit 1): gcc failed: error executing command
  (cd /root/.cache/bazel/_bazel_root/deb80d6610824a92deeac7b7fd0f3e3c/execroot/__main__ && \
  exec env - \
    PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
    PWD=/proc/self/cwd \
    TF_CUDA_COMPUTE_CAPABILITIES=3.5,5.2,6.0,6.1,7.0 \
    TF_ROCM_AMDGPU_TARGETS=gfx803,gfx900,gfx906,gfx1010 \
  /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections -fdata-sections '-std=c++11' -MD -MF bazel-out/k8-opt/bin/external/org_tensorflow/tensorflow/core/_objs/framework_internal_impl/batch_util.pic.d '-frandom-seed=bazel-out/k8-opt/bin/external/org_tensorflow/tensorflow/core/_objs/framework_internal_impl/batch_util.pic.o' -fPIC -DHAVE_SYS_UIO_H -DTF_USE_SNAPPY -DEIGEN_MPL2_ONLY '-DEIGEN_MAX_ALIGN_BYTES=64' -iquoteexternal/org_tensorflow -iquotebazel-out/k8-opt/bin/external/org_tensorflow -iquoteexternal/com_google_protobuf -iquotebazel-out/k8-opt/bin/external/com_google_protobuf -iquoteexternal/zlib -iquotebazel-out/k8-opt/bin/external/zlib -iquoteexternal/eigen_archive -iquotebazel-out/k8-opt/bin/external/eigen_archive -iquoteexternal/com_google_absl -iquotebazel-out/k8-opt/bin/external/com_google_absl -iquoteexternal/nsync -iquotebazel-out/k8-opt/bin/external/nsync -iquoteexternal/gif -iquotebazel-out/k8-opt/bin/external/gif -iquoteexternal/libjpeg_turbo -iquotebazel-out/k8-opt/bin/external/libjpeg_turbo -iquoteexternal/com_googlesource_code_re2 -iquotebazel-out/k8-opt/bin/external/com_googlesource_code_re2 -iquoteexternal/farmhash_archive -iquotebazel-out/k8-opt/bin/external/farmhash_archive -iquoteexternal/fft2d -iquotebazel-out/k8-opt/bin/external/fft2d -iquoteexternal/highwayhash -iquotebazel-out/k8-opt/bin/external/highwayhash -iquoteexternal/double_conversion -iquotebazel-out/k8-opt/bin/external/double_conversion -iquoteexternal/snappy -iquotebazel-out/k8-opt/bin/external/snappy -isystem external/com_google_protobuf/src -isystem bazel-out/k8-opt/bin/external/com_google_protobuf/src -isystem external/zlib -isystem bazel-out/k8-opt/bin/external/zlib -isystem external/org_tensorflow/third_party/eigen3/mkl_include -isystem bazel-out/k8-opt/bin/external/org_tensorflow/third_party/eigen3/mkl_include -isystem external/eigen_archive -isystem bazel-out/k8-opt/bin/external/eigen_archive -isystem external/nsync/public -isystem bazel-out/k8-opt/bin/external/nsync/public -isystem external/gif -isystem bazel-out/k8-opt/bin/external/gif -isystem external/farmhash_archive/src -isystem bazel-out/k8-opt/bin/external/farmhash_archive/src -isystem external/double_conversion -isystem bazel-out/k8-opt/bin/external/double_conversion -Wno-sign-compare -Wno-stringop-truncation -mavx '-std=c++14' -DEIGEN_AVOID_STL_ARRAY -Iexternal/gemmlowp -Wno-sign-compare '-ftemplate-depth=900' -fno-exceptions -DINTEL_MKL -msse3 -DTENSORFLOW_MONOLITHIC_BUILD -pthread '-DINTEL_MKL=1' -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/org_tensorflow/tensorflow/core/util/batch_util.cc -o bazel-out/k8-opt/bin/external/org_tensorflow/tensorflow/core/_objs/framework_internal_impl/batch_util.pic.o)
Execution platform: @local_execution_config_platform//:platform
In file included from external/org_tensorflow/third_party/eigen3/unsupported/Eigen/CXX11/FixedPoint:46,
                 from external/org_tensorflow/tensorflow/core/framework/numeric_types.h:24,
                 from external/org_tensorflow/tensorflow/core/framework/allocator.h:26,
                 from external/org_tensorflow/tensorflow/core/framework/tensor.h:23,
                 from external/org_tensorflow/tensorflow/core/util/batch_util.h:18,
                 from external/org_tensorflow/tensorflow/core/util/batch_util.cc:16:
external/org_tensorflow/third_party/eigen3/unsupported/Eigen/CXX11/src/FixedPoint/PacketMathAVX.h:14:41: warning: ignoring attributes on template argument '__m256i' {aka '__vector(4) long long int'} [-Wignored-attributes]
 typedef eigen_packet_wrapper<__m256i, 10> Packet32q8i;
                                         ^
external/org_tensorflow/third_party/eigen3/unsupported/Eigen/CXX11/src/FixedPoint/PacketMathAVX.h:15:41: warning: ignoring attributes on template argument '__m128i' {aka '__vector(2) long long int'} [-Wignored-attributes]
 typedef eigen_packet_wrapper<__m128i, 11> Packet16q8i;
                                         ^
gcc: fatal error: Killed signal terminated program cc1plus
compilation terminated.
Target //build:build_wheel failed to build
INFO: Elapsed time: 1050.784s, Critical Path: 92.65s
INFO: 974 processes: 43 internal, 931 local.
FAILED: Build did NOT complete successfully
ERROR: Build failed. Not running target
FAILED: Build did NOT complete successfully
Traceback (most recent call last):
  File "build/build.py", line 521, in <module>
    main()
  File "build/build.py", line 516, in main
    shell(command)
  File "build/build.py", line 51, in shell
    output = subprocess.check_output(cmd)
  File "/usr/local/lib/python3.8/subprocess.py", line 411, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/local/lib/python3.8/subprocess.py", line 512, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['./bazel-3.7.2-linux-x86_64', 'run', '--verbose_failures=true', '--jobs=2', '--config=short_logs', '--config=avx_posix', '--config=mkl_open_source_only', ':build_wheel', '--', '--output_path=/root/jax/dist']' returned non-zero exit status 1.

Also, is there a dockerfile that I can use to generate jaxlib wheels ? I'm guessing this is happening due to same dependency version mismatch.

Wait, I think I figured it out. Generated the wheels successfully. However pip3 install dist/dist/jaxlib-0.1.66-cp36-none-manylinux2010_x86_64.whl now gives me jaxlib-0.1.66-cp36-none-manylinux2010_x86_64.whl is not a supported wheel on this platform..
I'm on x86-64 and python3.6.9

Ok, never mind that. Everything works now.

I'm nearly done with the lapack wrapper (was away for a couple of weeks). Is CustomCallWithLayout documented somewhere? Can't find any docs for it. I'm trying to understand what its arguments mean. Can't wrap my head around what shape shape_with_layout refers to.
@jakevdp @hawkinsp

I don't think there is any documentation for CustomCallWithLayout; your best bet is probably to take a look at examples within the JAX codebase.
As for shape_with_layout, this specifies the shape of the outputs. It's essentially a set of abstract shapes that specify the dtype, the dimensions, and the memory layout. e.g. for a 2D array, row-major layout is (0, 1) and column-major layout is (1, 0).
Hope that helps

Hi everyone,
I landed on this issue trying to implement the logm matrix function for https://github.com/google/jax/issues/5469.
I didn't know if it was still active so went ahead wrote a wrapper for LAPACK's gees routine (which computes the Schur decomposition). It uses C++ templates like the refactored lapack wrappers in jaxlib/lapack_kernels.cc.
With these additions, on my macOS machine, jaxlib compiles. I wrote a schur primitive (by closely following the eig primitive code) to use the wrapper.
On preliminary tests it outputs the same decomposition as scipy's schur function, so it appears to work.
I am currently working on writing more tests for this decomposition. The current version of my code passes the existing linalg tests so it looks like nothing has broken. I thought I would write before writing the test suite to maybe get some early feedback.
The signatures for the wrappers are here. (For reference, the LAPACK I signatures I followed are here)
The implementation of the wrappers is here.
The tie-in to scipy's LAPACK is here.
The primitive is here.
I used function pointers for the optional callable argument that gees uses.  Is there a way to pass a callable through CustomCallWithLayout ? Since I didn't know how to refer to a callable in the operands argument, using the callable argument raises an error for now.

@SaturdayGenfo, have you managed the issue with logm implementation?

@SaturdayGenfo are you planning to add the sort_eig_vals at some point? It would be very useful for the case when you would like to solve Riccati equations in continuous or discrete-time with jax.

@oleg-kachan no sadly, but some elements needed to write the inverse scaling and squaring algorithm are there. Personally, I don't plan on working on logm in the very near future (so anyone else is welcome to take a stab at it, one route is to write a custom call to Eigen if you want to side step having to write a jax implementation).
@lenarttreven there is a small obstacle in adding the sorting option and it's that I don't know how to pass a callable function through an XLA custom call (see this specific line). Maybe one option is to have common sorting functions hard coded in and pass an index to refer to them. I'll try to take a look but, it's unlikely to be in the very near future.


Added android/build-toolchain

Hi modocache,
I am glad you liked it.
I don't know python, and I am sure lots of developers are like me, so for us, bash is easier to understand. Also swift/utils/build-toolchain is also written in bash, so probably we should keep it consistent.
I am not sure what set -e does, but I can add it, np.
You can suggest a python version of it if you like, and we can check it.
Regards,

set -e makes the script exit with a non-zero code if any of the commands within it exit with non-zero: https://serverfault.com/a/416097
I'm aware utils/build-toolchain is in Bash, but:

utils/build-toolchain doesn't take any required arguments, so the benefit of supporting --help is smaller than with this script.
It only runs one sub-command, and it doesn't rm -rf anything, so it's pretty safe, even if a programmer made a mistake editing it in the future.
I think it would be better in Python, too! :)

Anyway, that's just my personal preference; Bash is fine, too. Let me know if you'd like to add set -e before someone merges this.

@swift-ci please smoke test

@swift-ci please smoke test

⛵


Stop trex-app after duration time is reached

Modify wait_on_traffic behavior, so that we don't wait until all traffic is sent, stopping if timeout (equal to job duration) is reached.
Bonus: print packet loss statistics in non-scientific notation, so that it can be processed as a number in some bash script we have for analytics.
Tests:

[x] only example-cnf execution where TRex job passes - https://www.distributed-ci.io/jobs/0d323d39-6979-4bdf-803f-8248e80870a2/jobStates?sort=date
[x] only example-cnf execution where TRex job fails - https://www.distributed-ci.io/jobs/d431f098-008d-4b7c-a693-5d3c1ce4e75d/jobStates?sort=date
[x] complete example-cnf execution with preflight and certsuite - https://www.distributed-ci.io/jobs/f8486b79-eee1-4a24-9696-ac1350ff18b2/jobStates?sort=date

All test cases have been covered, this is ready for review


@starsirius => Fix: open-redirect for full relative URLs.

This is a nasty one, you can have a URL with a single slash, eg. http:/google.com, which will produce a nil host, but will be absolute (not relative). We have to make sure we're only redirecting within our application.

This is indeed a weird one. Thanks!


Translation-Docs » Operations Guides - 操作指南 » Access Control Lists (ACL)：How ACLs are formatted in configtx.yaml

finished


Dev

Q
A

Bug fix?
no - yes?

New feature?
no - yes?

New sample?
no - yes?

Related issues?
fixes #X, partially #Y, mentioned in #Z

What's in this Pull Request?
Please describe the changes in this PR. Sample description or details around bugs which are being fixed.
Guidance
You can delete this section when you are submitting the pull request.

Please update this PR information accordingly. We'll use this as part of our release notes in monthly communications.
Please target your PR to Dev branch.

Hi @ayadagir, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. I promise there's no faxing. https://cla.microsoft.com.

TTYL, MSBOT;

Seems to be an accident, so closing this PR.


bug(TABS): Ink bar could use transformX instead of left to improve performance.

Reproduction
Steps to reproduce:

Open https://stackblitz.com/angular/lnjdedkpgdg (basic example from Docs)
Open Chrome Dev Tools
Go to Performance tab
Select 6x CPU Slowdown
Observe the line animation as you click through the elements.

Expected Behavior
Performance is optimal for each device. It should worsen somewhat linearly. This is particularly noticeable when using tabs to provide fixed navigation elements on a page (i.e., https://fonts.google.com/specimen/Roboto) that have their active element updated on scroll.
Actual Behavior
Performance becomes very poor very fast depending on device. I.e., simulated 6x CPU slowdown on a 2019 Macbook Air makes it very noticeable there are frames taking longer than 16ms to render the ink bar animation (meaning the ink bar appears to "jump" instead of animate)
Notes
From Paul Irish ca. 2012: "...left has very large time to paint each frame, which results in a choppier transition" (https://www.paulirish.com/2012/why-moving-elements-with-translate-is-better-than-posabs-topleft/)
Affected line: https://github.com/angular/components/blob/master/src/material/tabs/ink-bar.ts#L95

We did this for a while, but we ended up reverting it because it caused some issues when the page is zoomed in (see https://github.com/angular/components/pull/11661). It might be worth trying it again only for the ink bar position though, rather than both the width and position.

Closing since we attempted this before (and reverted it), and because the MDC-based version of the tabs will just being using MDC's style.

For those coming to this issue from Google. My workaround:

Set in CSS: left: 0 !important
Set in JS: .mat-ink-bar the translateX value

On top of what @jelbourn said, if you want to try out the new tabs implementation that uses a different approach for the ink bar, you can import the MatTabsModule from material-experimental/mdc-tabs, instead of material/tabs.


simple_type_field_names aren't always reflected in the editor (java.util.function @FunctionalInterface implementations)

When working on SequenceLootFunction.mapping I noticed the ItemStack param of public ItemStack apply(ItemStack arg, LootContext arg2) didn't appear mapped despite its simple type name.
I also tried adding this simple type name: "net/minecraft/unmapped/C_iakykpgh": "context", // LootContext and not only was the param above not proposed, but no LootContext param was proposed (I reset to obfuscated to test), except one:
ConditionalLootFunction's protected abstract ItemStack process(ItemStack stack, LootContext context);
Its ItemStack param was also proposed.
Having done this I've noticed that all methods missing param proposals implement a java.util.function @FunctionalInterface's method, except for the one exception above.
The methods have their simple type names in fakeSource/, so I think the issue is confined to the editor.

Resetting KilledByPlayerLootCondition::test's param to obfuscated and then trying to re-map it result in this:
METHOD test (Ljava/lang/Object;)Z
+METHOD m_lhpybxfc (Lnet/minecraft/unmapped/C_iakykpgh;)Z
	ARG 1 context

and the name doesn't show up in the editor.
Seems like it doesn't know that test isn't obfuscated (it's from java.util.function.Predicate).

It could be related to the fact that I think we know that function interface parameters aren't obfuscated (for some reason)


Page doesn't finish loading

First, thanks for HtmlUnit, it's great!
The following never finishes loading the page in 2.38.0 nor 2.39.0.  The CPU usage goes high.
import com.gargoylesoftware.htmlunit.WebClient
import com.gargoylesoftware.htmlunit.html.HtmlPage

fun main() {
    println("0")
    val page = WebClient().getPage<HtmlPage>("https://www.arvest.com/")
    println("1")
}

from a first look it seems to be the same issue as #147
This js seems to run into some endless loop.
https://www.arvest.com/_Incapsula_Resource?SWJIYLWA=719d34d31c8e3a6e6fffd425f7e032f3&ns=1&cb=2131618594CookieSpec

see #552 for details

Should work with 3.0.0 - please reopen if this still fails


__local_t has not been declared

I just tried to compile master, and get the following errors on GCC 4.9
(... compiling Monosat.cpp ...)
In file included from .../gcc-4.9.4/include/c++/4.9.4/ctime:42:0,
                 from ... src/monosat/utils/System.h:50,
                 from ...src/monosat/graph/GraphTheory.h:25,
                 from ...src/monosat/graph/AllPairsDetector.cpp:22:
/usr/include/time.h:226:5: error: ‘__locale_t’ has not been declared
     __locale_t __loc) __THROW;
     ^

Hmm, that is odd - none of the travis builds are failing.
I'm looking into it; but in the mean time, whats the OS or distribution that this is failing on?

I haven't reproduced this locally yet, but it might be fixable by compiling with -D_GNU_SOURCE (which will enable some GCC extensions, hopefully including whatever is needed to define __locale_t).
Could you try recompiling after running cmake with
$cmake -DCMAKE_CXX_FLAGS="-D_GNU_SOURCE" .
This should pass the -D_GNU_SOURCE option to GCC, which might resolve the problem.

This was an artifact of a broken environment.  Sorry for the spam.  Thanks for the quick reply Sam!


move clipboard.js to npm/webpack

created lazy-loaded webpack chunk for clipboard.js
upgraded clipboard.js from 1.5.9 to 2.0.4
parallelize initialization of all lazy-loaded features

Codecov Report

Merging #10183 into master will decrease coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #10183      +/-   ##
==========================================
- Coverage   43.41%   43.41%   -0.01%
==========================================
  Files         576      576
  Lines       79642    79642
==========================================
- Hits        34580    34579       -1
  Misses      40786    40786
- Partials     4276     4277       +1

Impacted Files
Coverage Δ

modules/queue/unique_queue_disk_channel.go
52.56% <0%> (-1.93%)
:arrow_down:

modules/log/event.go
65.64% <0%> (+1.02%)
:arrow_up:

Continue to review full report at Codecov.

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


Misleading Javadoc for Policy.whenever()

Now it says:

Handles an event and produces some number of events in response.

The signature is:
@ContractFor(handler = React::class)
    protected abstract fun whenever(event: E): Iterable<Message>

Logically, we can emit not only events, but commands too. It would be also good to bind it on the level of the method signature.

There's also a small diagnostic issue in this class. The method checkReceptors() produces the following error:
"Policy `${javaClass.name}` handles too many events: [${classes.joinToString()}]."

This raises a question: “How many is too many?” It should be something like:
"The policy `${javaClass.name}` should react on only one event. Now it handles too many ({$classes.size}): [${classes.joinToString()}]. Please use only `whenever()` method for producing outcoming messages."