stable_hash(::Pair, ::HashVersion{4}) doesn't work

Thanks for releasing StableHashTraits v1.3. Awesome work!
I have some hashing Pairs, e.g:
stable_hash(2=>3, HashVersion{4}())

gives the error message:
ERROR: MethodError: no method matching keytype(::Type{Pair{Int64, Int64}})

Closest candidates are:
  keytype(::Type{Union{}}, Any...)
   @ Base abstractarray.jl:189
  keytype(::Type{<:AbstractDict{K, V}}) where {K, V}
   @ Base abstractdict.jl:302
  keytype(::Type{<:AbstractArray})
   @ Base abstractarray.jl:191
  ...

Stacktrace:
 [1] internal_type_structure(::Type{Pair{Int64, Int64}}, ::StructTypes.DictType)
   @ StableHashTraits ~/.julia/packages/StableHashTraits/Xoyro/src/transformer_traits.jl:355
 [2] (::StableHashTraits.var"#17#18"{StableHashTraits.TypeHashContext{HashVersion{4}}})(T::Type)
   @ StableHashTraits ~/.julia/packages/StableHashTraits/Xoyro/src/transformer_traits.jl:107
 [3] (::StableHashTraits.Transformer{StableHashTraits.var"#17#18"{StableHashTraits.TypeHashContext{HashVersion{4}}}, Nothing})(x::Type)
   @ StableHashTraits ~/.julia/packages/StableHashTraits/Xoyro/src/main_interface.jl:122
 [4] hash_type!(hash_state::StableHashTraits.BufferedHashState{SHA.SHA2_256_CTX}, context::HashVersion{4}, ::Type{Pair{Int64, Int64}})
   @ StableHashTraits ~/.julia/packages/StableHashTraits/Xoyro/src/transformer_traits.jl:81
 [5] hash_type_and_value(x::Pair{Int64, Int64}, hash_state::StableHashTraits.BufferedHashState{SHA.SHA2_256_CTX}, context::HashVersion{4})
   @ StableHashTraits ~/.julia/packages/StableHashTraits/Xoyro/src/transformer_traits.jl:40
 [6] stable_hash(x::Pair{Int64, Int64}, context::HashVersion{4}; alg::Function)
   @ StableHashTraits ~/.julia/packages/StableHashTraits/Xoyro/src/main_interface.jl:64
 [7] stable_hash(x::Pair{Int64, Int64}, context::HashVersion{4})
   @ StableHashTraits ~/.julia/packages/StableHashTraits/Xoyro/src/main_interface.jl:52
 [8] top-level scope
   @ REPL[4]:1

The issue seems to be that Pairs is handled as StructTypes.DictType, but keytype and valuetype are not implemented for Pair.
Adding
function internal_type_structure(::Type{<:Pair{K,V}}, ::StructTypes.DictType) where {K,V}
    return K, V
end

solves the problem. But I'm not sure if this is the best approach. If it is, I can make a pull request.

Good catch. I'm surprised I don't have a test for that already!
Yes, I think that is a reasonable approach. Odd that keytype and valuetype aren't implemented for Pair. Happy to accept a PR.


ENH: Add overlap add classes

This PR just refactors existing code to:

Make use of a generic overlap-add processing class (OTP), and
Make Interp2 more flexible

This will eventually allow combining the two methods and using them more easily. For examlpe, @mmagnuski suggested that the reason spectrum_fit does not work and takes forever (#7577) is perhaps because it does not work in overlapping windows, but rather the entire raw file. With the _OLA class it should be much easier to make it operate on overlapping windows.

Basically as long as the raw simulation tests pass (Interp2) and the OTP tests pass (_OLA), along with the builtin tests for Interp2 and _OLA, we should be able to trust the results here (I hope!).
Ready for review/merge from my end

it's just a refactoring using a class / generator?

Yes to make it easier to use it elsewhere

+1 for MRG if green then


Expanded TreeView Item will not close correctly

First off I want to thank you so much for releasing this awesome project! I love the look and feel of this theme a lot and will fit nicely with my themed xfce install!
I have noticed that in the Classic.Demo after a TreeView item is expanded to show it's children it is not closed again correctly.
How to reproduce:

Expand a TreeView item with children
Close the TreeView item with children

After closing it again the space where the child of the item was displayed is still empty. I think the intended behaviour was for the item to close and the space to be fille with the items below it again.
Screenshots:

Hi, thanks for your kind words, I did not notice that before, fixed!


Typo in the palindromes section of lecture 6

Dear Dr Beg,
There is possibly a typo in the examples of the is_palindrome() function in Lecture 6.
The description of the function writes:

... and it should ignore spaces, so that the phrase "nurses run" is also considered a palindrome.

However, in the examples string, one example is:

>>> test = 'nurse run'
>>> is_palindrome(test)
True
>>> test = 'nurse run'

We should either add the missing 's' to the two 'nurse run's, or change the True to False.
Thank you for your time in advance.
Yours truly,
esemsc-df329480 (Guanyuming He)

Hi @esemsc-df329480 , thank you for spotting that. Yes, this is a mistake. The assert statement should be:
>>> test = 'nurses run'
>>> is_palindrome(test)
True

I will close this issue and label it to ensure this is fixed for the next cohort.


[Bug report] : Prevent page reload when navigating from "empty favourites page"

Issue Description:
When a user goes to their favourites and finds no favourite items, they have the option to click on the "Find your favourite restaurants now" arrow, which should take them to the home page. However, the problem is that clicking on this arrow triggers a page reload. This page reload is unnecessary and can be a suboptimal user experience.
Expected Behavior:
When the user clicks on the "Find your favourite restaurants now" arrow from the empty favorites page, the application should navigate to the home page without triggering a full page reload.

Hey, I would like to work on this. Can you please assign this to me?

Hey @Anandsg  can i start working on this issue

@Anandsg can I make a new end point for the favourite like /favourite

@NilanjanPramanik No please, i'd like to give opportunity to some other developers you already made enough contribution here

@hemanth110702 start working on this

Yeah... Absolutely...

Hi @Anandsg, can I also start working on this issue?

Sure you can @apurvagurme

@Anandsg  can I work on this issue?

@Anandsg I have fixed it and raised a PR please look into it https://github.com/Anandsg/Hungry-hero/pull/223


throttling: fixup interactions with Timeline::get_vectored

Problem
Before this PR, Timeline::get_vectored would be throttled twice if the sequential option was enabled or if validation was enabled.
Also, pageserver_get_vectored_seconds included the time spent in the throttle, which turns out to be undesirable for what we use that metric for.
Summary of changes
Double-throttle:

Add Timeline::get0 method which is unthrottled.
Use that method from within the Timeline::get_vectored code path.

Metric:

return throttled time from throttle() method
deduct the value from the observed time
globally rate-limited logging of duration subtraction errors, like in all other places that do the throttled-time deduction from observations

Release build fails reproducible with
error: queries overflow the depth limit!
  --> /__w/neon/neon/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.36.0/src/runtime/task/raw.rs:72:5
   |
72 |     const TRAILER_OFFSET: usize = get_trailer_offset(
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`pageserver`)
   = note: query depth increased by 130 when computing layout of `tokio::runtime::task::core::Core<{async fn body@pageserver::task_mgr::task_wrapper<{async block@pageserver::consumption_metrics::collect_metrics::{closure#0}::{closure#0}}>::{closure#0}}, alloc::sync::Arc<tokio::runtime::scheduler::multi_thread::handle::Handle>>`

error: could not compile `pageserver` (bin "pageserver") due to 1 previous error
warning: build failed, waiting for other jobs to finish...
Error: Process completed with exit code 101.

However, we already have a recursion_limit on the pageserver crate:
https://github.com/neondatabase/neon/blob/cd449d66ea29ad2d7269458e90623c3ae40e1816/pageserver/src/lib.rs#L1
Bumping it to 600 doesn't help on my machine.
I don't know what to do.

Got help from Arpad 🙏 https://neondb.slack.com/archives/C0277TKAJCA/p1710175354280539


feat: support using podman instead of docker

I checked it doesn't break my Docker setup. @sxd could you please verify it works with podman?

@gbartolini sure! :)

Hi @Otterpohl
This change requires some modifications in the systemd layer right? Can you add some documentation about it?
Also, I was checking the code and what do you think about something like this:
for containerProvider in `which docker podman`; do
    CONTAINER_PROVIDER=$containerProvider
    break
done

Instead of trying to replace or add functions we just use the first one we found, and since we know that podman has the same command line and syntax as docker it should be a problem to use something like
$CONTAINER_PROVIDER run ...

Let me know what do you think!
Regards,

@sxd I didn't do any changes to systemd (I am running this on a Mac)
What did you have to do to get it working?
I do much prefer your method, updated it now.
Note:
I have added checking for the container provider in teardown.sh otherwise docker rm ... turns into rm ...

Wow!! nice work @Otterpohl
This is what was required on GNU/Linux https://kind.sigs.k8s.io/docs/user/rootless/ probably we can link people to that if they get the error, I will try to emulate again when I have some time later today.
Another suggestions, what if we create a lib so we can use that lib from both scripts? so we have only one functions to call from both scripts, that will be a really nice improvement! If you don't have time it's ok this way!
I'm going to tests these changes and will let you know but for sure we merge this soon! :D
Regards!

Hi @Otterpohl and @gbartolini
The only way to create a kind cluster using podman in GNU/Linux with Kernel 6.11 (yes to make sure we don't have cgroup v1) is using the following command:
systemd-run --scope --user -p "Delegate=yes" kind create cluster

This will create a cluster at least in Debian flavor distributions, sadly, there's another option that it's handled in this documentation https://kind.sigs.k8s.io/docs/user/rootless/#host-requirements.
As is stated in the kind documentation https://kind.sigs.k8s.io/docs/user/rootless/#creating-a-kind-cluster-with-rootless-podman the podman support is experimental, but that's ok with my, I think that if we state in the documentation that podman will work in macOS and to make it work in GNU/Linux you need to do some changes, we could merge this.
@gbartolini thoughts ?
Regards,


snippet for a model with custom primary key

Issue Summary
Snippets cannot yet handle models with custom primary keys.
Steps to Reproduce

Create a model using a custom primary key. (Thus there is no 'id' field anymore.)
Register that model as a snippet. (@register_snippet)
Got to wagtail cms backend and check out the snippet menu of the registerd snippet.
An error is displayed in DEBUG mode.

I expected a listing of the snippet models, further being able to edit the respective model instances.
Technical details
Source:
https://github.com/torchbox/wagtail/blob/master/wagtail/wagtailsnippets/models.py#L25
There might be more places where this is an issue.
Error:
Reverse for 'edit' with arguments '('myapp', 'mymodel', '')' and keyword arguments '{}' not found. 1 pattern(s) tried: ['cms/snippets/(\\w+)/(\\w+)/(\\d+)/$']

Python version: Python 3.5.1.
Django version: Django (1.9.9).
Wagtail version: wagtail (1.7)
Browser version: Chrome 54.0.2840.71 (64-bit).

Regards,
Eraldo

Thanks for the summary @Eraldo.
@gasman I'd like to see if I could make a contribution to Wagtail by changing this behaviour. Is there anything I need to keep in mind other than the changes I would make to this particular part of the codebase? I'd like to get the solution right, to avoid sending an unstructurized pull request.

Thanks @evert-smit! I think the main thing to watch out for with non-numeric IDs is that they may contain characters that aren't valid in URLs, and so you'll need to ensure that they're escaped when building the URL and un-escaped at the other end. (I think Django's admin package has some code you can borrow...)
Other than that, just ensure that your changes are covered by tests (you'll probably want to add a new model definition to https://github.com/wagtail/wagtail/blob/master/wagtail/tests/snippets/models.py) and follow the coding guidelines - good luck! :-)

At my company we're currently working on a project with custom primary keys. I could work on this on company time, but I'm wondering if @evert-smit has an ongoing solution that I could contribute to? If not, or if it's inactive or in other ways not available, I'm going to start working on a PR for this.

That would be fine - I planned working on this but ended up going in a
different direction and didn’t have time to continue with a PR.
On Mon, 6 Nov 2017 at 13:04, Sævar Öfjörð Magnússon <
<EMAIL_ADDRESS>wrote:

At my company we're currently working on a project with custom primary
keys. I could work on this on company time, but I'm wondering if
@evert-smit https://github.com/evert-smit has an ongoing solution that
I could contribute to? If not, or if it's inactive or in other ways not
available, I'm going to start working on a PR for this.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/wagtail/wagtail/issues/3104#issuecomment-342129137,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACxI--JDFAnPzZfw_g5-CsEc45NecwFwks5szvWxgaJpZM4Ke21X
.


Logging in with service principal?

I'm attempting to use the azure-devops extension to download universal artifacts. This works with my personal account, but when I attempt to use a service principal I've created for scripting purposes, it fails to log in.
When attempting to download after logging in (with az login) I get the error message:
Failed to update Universal Packages tooling.
 TF400813: Resource not available for anonymous access. Client authentication required.

However, if I attempt to subsequently log in with (with az devops login) I get prompted for my PAT, which I don't have for the service principal.
$ az login --service-principal --username foo --password bar --tenant hamandeggs
[
  {
    "cloudName": "AzureCloud",
    ...
  }
]
$ az devops login
Token:

Any thoughts?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 9a9e855a-abc5-14d9-ba73-4ab527ffee16
Version Independent ID: 85a46540-4b25-94f4-2c0e-29e1f8fefe35
Content: az devops
Content Source: latest/docs-ref-autogen/ext/azure-devops/devops.yml
GitHub Login: @rloutlaw
Microsoft Alias: routlaw

Ah, after some further research I see that service principals simply don't work with Azure DevOps at all (link to GitHub issue).

thanks for reporting the issue, we'll have a look

Hi @gauravsaralMs , could you please help with this ?

As @aodj  pointed out, this is a duplicate of https://github.com/Azure/azure-devops-cli-extension/issues/905 . As @aodj has mentioned, az login via service principal is not supported for devops commands. You would need to use a PAT token in this case. I have also raised a PR to fix the issue in our documentation.
I am closing this issue as we will be recording any future updates with respect to support for service principals in this issue - https://github.com/Azure/azure-devops-cli-extension/issues/905


Prefix reservation requires at least 4 characters

Emailing with NuGet support they told me, that a prefix to be reserved requires at least 4 characters. This should be added to documentation.

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 453f416f-1e0f-a73b-6690-c4c8bf34a4e2
Version Independent ID: a8956be7-5b12-04a5-ee73-239973607dca
Content: ID Prefix Reservation
Content Source: docs/nuget-org/id-prefix-reservation.md
Service: nuget
GitHub Login: @JonDouglas
Microsoft Alias: jodou

It is already documented, I didn't read properly. Sorry.


Move to webpack, incremental builds

Build times were getting pretty long (~8 seconds) since adopting ES2015 and Babel. Watchify is a browserify extension to enable incremental builds - I originally intended to issue this PR with a move to watchify. However, I ran into issues getting things set up, and figured that it might be interesting to look at an alternative that is gaining in popularity - webpack.
It only took me a few hours to get a working setup and I have to say I'm impressed. Incremental builds are now very fast (~300 ms), and our gulp setup is much simplified. It also leaves open the option of hot module reloading for React Components down the line if my experiments with React are successful...
To try:
> npm install
> gulp
> open http://localhost:8080/webpack-dev-server/ in browser

note that webpack includes a builtin server for development that dynamically reloads after building.
Changes
This moves all top-level root static content into a ./static dir, to keep things tidy.
Deployment now looks like:

Delete ./build if it exists
Copy all of ./static into ./build
Bundle JS/SASS/img assets from ./src and ./img into ./build with webpack. Watch for changes on all assets and rebuild when needed.

Now the whole website as it should be served at https://www.landmarker.io is stored at build. This means we will need to change our deployment scripts to account for this. Also for now I've disabled App Cache for development at least. We will have to think through re-enabling it for production builds, and I guess in light of landmarker.app whether this is even something we want any more.
TODO

[x] export img to build (placeholder not working)
[x] create production gulp command that builds without dev server
[x] update deploy.sh to use ./build (maybe we stop using gh-pages here?)
[ ] update s3 website config to copy from ./build not ./
[x] see if autoprefixer needs to be re-enabled (may require webpack plugin)
[x] re-enable App Cache (only for production)

For AppCache, we can just have it for production builds. We don't actually need the cache busting has hes on assets anyway - the app cache itself has a cache busting string, and that is all that is required. Fir dev builds that's one less pain point to worry about, and for production nothing has to change.

I am checking it out now, and first thing I see: why keep both webpack and gulp ? The orchestration can be done in the webpack file (js) and thus we could remove the gulp dependencies. Might give it a go while I am going over the changes.
For the deployment, as long as we keep putting all the same files in the correct folder it should keep up transparently.
Regarding Github pages, that is still how we support mixed content and local servers (insecure domain), so removing it from deploy means dropping support ?

I am checking it out now, and first thing I see: why keep both webpack and gulp ? The orchestration can be done in the webpack file (js) and thus we could remove the gulp dependencies.

This is true, we only really need string replacement for adding the App Cache on production and something to copy the static content over to the build dir.
Saying that, I like the separation for the time being - webpack.config.js just records how we need to bundle our assets together. Stuff like actually running a development server (with the different settings that are required), cleaning the build dir etc aren't really concerns of the pack generation, so they seem at home for me in the gulpfile.js. We only have a few gulp deps now, don't know if it's really worth it?

Regarding Github pages, that is still how we support mixed content and local servers (insecure domain), so removing it from deploy means dropping support ?

That is true, and it's something we can't really drop support for now. I think in this PR it's better to leave things as is with gh-pages, and just switch over to webpack with minimal changes.
I've got some other comments for stuff I wasn't 100% sure on, I'll add them in the relevant places.

@lirsacc I've fixed the minor issues I highlighted - I now believe this to be correct but untested.
For now I think I would prefer to leave the webpack.config.js as purely a declaration of the webpack configuration - I don't have any problem with the three remaining gulp deps - unless you strongly feel otherwise?
Do you have any advice on how to test deploy.sh other than going for it with a tagged release and being on standby to address any issues manually?


TWEAK: Use proxy for bitcoinaverage.com.

Note: The motivation is that bitcoinaverage.com will soon be enforcing rate limits and charging. To prevent our users from needing their own accounts we have worked with bitcoinaverage.com to set up a load-bearing proxy.

Is there a corresponding issue for openbazaar-go?

Coverage decreased (-0.04%) to 52.838% when pulling 32d2273699b16eef52d6bc991c0eb85c88b7c337 on TS_ticker_proxy into 248b43c9783f7e8d34f2898a913c6f1172cfe72f on master.

@JustinDrake Yeah it will need to be updated as well. I've created an issue for it https://github.com/OpenBazaar/openbazaar-go/issues/304


[WIP] Add compile-time switches to choose between prod and dev servers (lib)

📒 Description
This possibly breaks build bots, need to investigate Windows and Mac. Also, README on how to do a release has to be changed.
However, it also makes building the app a bit simpler because we don't have to tweak the stuff by hand, it will now be a simple compile-time switch in Makefile, QMake, VS or in CMake
When building the library, one can now specify:

-DTOGGL_PRODUCTION_BUILD=1 for a production build
-DTOGGL_ALLOW_UPDATE_CHECK=1 to allow the app to self-update
Not defining these variables makes the lib do the opposite.

🕶 Types of changes

Breaking change (fix or feature that would cause existing functionality to change)

🤯 List of changes
Let production/development build type be defined by a single commandline switch when building
👫 Relationships
Makes stuff easier for #2687
🔎 Review hints
Check Mac and Windows builds and if buildbots can handle this instead of commenting out pieces of code "by hand". - I may do this myself tomorrow when I try to reach the buildbots again (or at least the Linux one).

This issue needs changes in the build process on all platforms (maybe in the Branding repository), feel free to push directly into the prod-devel-compiletime branch if you find an issue.


docker exited with code 254

I have a problem with start eos.
EOS version is 1.4.3
What I do:
I have copyed DB from working node to new one and tryed to start it.
the error:
 docker-compose logs -f
Attaching to eos-node
eos-node    | info  2019-02-21T11:20:44.593 thread-0  chain_plugin.cpp:333          plugin_initialize    ] initializing chain plugin
eos-node    | info  2019-02-21T11:20:44.657 thread-0  block_log.cpp:134             open                 ] Log is nonempty
eos-node    | warn  2019-02-21T11:20:44.671 thread-0  chain_plugin.cpp:684          plugin_initialize    ] 10 assert_exception: Assert Exception
eos-node    | (b & ~1) == 0:
eos-node    |     {}
eos-node    |     thread-0  raw.hpp:339 unpack
eos-node    | optional<eosio::chain::producer_schedule_type>
eos-node    |     {"type":"eosio::chain::producer_schedule_type"}
eos-node    |     thread-0  raw.hpp:287 unpack
eos-node    | Error unpacking field new_producers
eos-node    |     {"field":"new_producers"}
eos-node    |     thread-0  raw.hpp:368 operator()
eos-node    | error unpacking eosio::chain::signed_block
eos-node    |     {"type":"eosio::chain::signed_block"}
eos-node    |     thread-0  raw.hpp:642 unpack
eos-node    | error 2019-02-21T11:20:44.671 thread-0  main.cpp:132                  main                 ] 10 assert_exception: Assert Exception
eos-node    | (b & ~1) == 0:
eos-node    |     {}
eos-node    |     thread-0  raw.hpp:339 unpack
eos-node    | optional<eosio::chain::producer_schedule_type>
eos-node    |     {"type":"eosio::chain::producer_schedule_type"}
eos-node    |     thread-0  raw.hpp:287 unpack
eos-node    | Error unpacking field new_producers
eos-node    |     {"field":"new_producers"}
eos-node    |     thread-0  raw.hpp:368 operator()
eos-node    | error unpacking eosio::chain::signed_block
eos-node    |     {"type":"eosio::chain::signed_block"}
eos-node    |     thread-0  raw.hpp:642 unpack
eos-node    | rethrow
eos-node    |     {}
eos-node    |     thread-0  chain_plugin.cpp:684 plugin_initialize
eos-node exited with code 254

What I did wrong?

You must use the same version number if you wish to keep using an existing block log.  There have been several changes to the on disk format.  If you wish to take advantage of an existing block log while migrating to a newer version, use --replay-blockchain for the first startup.  Replay may take a considerable amount of time, depending on the size of the existing chain and should not be interrupted.
Migrating a newer format blockchain to an older version of nodeos is unsupported.


changed category and intro text

Carlos, Please approve my changes!

No further commits. See readme of this repo.


Filter out empty rustc spans

Hopefully, this fixes https://github.com/rust-analyzer/rust-analyzer/issues/6892 (I couldn't test it since r-a currently requires a too recent version of VS Code)

Weird, I tried to test this but now the project never finishes loading.

@lnicola Can you test this with a new project containing just this?
fn func(a: u8) {}
fn main() {
    func("a", "a");
}

@jonas-schievink no, it just stopped working for me, even without your changes.

Works for me:

bors r+


replace style binding for z-index with CSS variable

This removes the style binding used to set the z-index of the container. The default value is set with CSS instead. Default value could be customized with a CSS variable if needed. If consumer prefers to set it on invocation, it could be set as any other HTML attribute using angle bracket component invocation:
<NotificationContainer style="z-index: 9999;" />

This should be preferred over style bindings due to security reasons. Especially style bindings requires an style-src: unsafe-inline directive Content Security Policy, which is bad for security reasons.
The pull request also adds test coverage to prevent a regression regarding CSP compliance. It does so using Ember CLI Content Security Policy, which provides test support in it's v2 release. It could be used to test compliance with a strict CSP. If a test violates the configured CSP it will fail. The addon comes with reasonable defaults and does not require any configuration for this use case.
This is a breaking change and requires a major release.

There are still inline styles used: https://github.com/mansona/ember-cli-notifications/blob/1fe3388cb6d3f4245fcf6eb4a7b7d0b6edbbaac1/addon/templates/components/notification-message.hbs#L23
Seems like this code-path is not triggered by tests. Otherwise CI would have told us.
Even so this pull request is not fixing all CSP issues. I think it could be merged independently from fixing the other issue.


Add -order-by=suite to filter_2 test

The default -order-by=file is compiler-dependent which currently causes the filter_2 test to fail depending on the compiler used. By using -order-by=suite, the test always succeeds regardless of the compiler used.
This PR also updates the filter_2_xml test output to the new output produced by adding the -order-by=suite option.
See https://github.com/onqtam/doctest/issues/287

@onqtam I'll keep making pr's for now and letting CI run before merging so you can add comments and what not if needed.

will wait for the builds before pushing - just in case


Material Motion (angular2 page animations)

use to be called "meaningful transitions"
From the spec:
https://material.google.com/motion/material-motion.html
applying to angular2 using https://angular.io/docs/ts/latest/guide/animations.html
possibly using onActivate and onDeactivate
from http://stackoverflow.com/posts/33554846/revisions
with the goals of these animation options:

[ ] object (using directives?)
[ ]  pages (using on router-outlet?)
[ ]  grow/shrink (from point of origin)
[ ]  from item to view (point of origin w/ hierarchy)
[ ] simple page transitions (crossfade/right->left/left->right/top->bottom/bottom->top)

We can use https://angular.io/docs/ts/latest/guide/router.html#!#route-animation

first step taken https://github.com/Teradata/covalent/pull/220

Closing as duplicated by #49 and other animation tickets


Getting rid of the warnings

Here you go :)
This is about the two function updates mentioned earlier;
GrabComponent -> GrabComponentAtLocationWithRotation
AttachTo -> AttachToComponent
where the difference between this and last prq is the WithRotation bit (and related FRotator argument) on the first replaced function, that went missing before last prq because im an idiot :P

The merge conflict seems to be about the double function replace, not sure how to set up on my end so that i can merge your master into mine and save you the effort of resolving the merge conflict :( it should be straightforward though

Hi – Normally you’d update your version first with what’s on master then do your revisions. I’ll do a test and resolve, hopefully by Wed or at the latest Friday as I’m doing some commissioned VR project work at the moment.
Cheers,
Rune.
From: suicidalbanana<EMAIL_ADDRESS>Sent: Sunday, November 20, 2016 4:41 PM
To: 1runeberg/RunebergVRPlugin<EMAIL_ADDRESS>Subject: Re: [1runeberg/RunebergVRPlugin] Getting rid of the warnings (#5)
The merge conflict seems to be about the double function replace, not sure how to set up on my end so that i can merge your master into mine and save you the effort of resolving the merge conflict :( it should be straightforward though
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/1runeberg/RunebergVRPlugin/pull/5#issuecomment-261785422, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AQkQ1yxk1z0qv8y7WmfYiKoTm7O-jQT3ks5rAGnygaJpZM4K3kS6.

Heya,
Yeah, honestly thats what im used to doing (workin with git for years, just never on github) but im not at all used to working on a fork, ill have a look around if i can find how to merge the master of yours into mine (currentlly thinking maybe i can add your repo as a diff origin?) if i find it i will close this prq and make a new one :)

Yup that was it, sorry for not just trying this myself earlier, it can be merged now.
The conflict is what i suspected, git got confused about what arguments to keep for the 'GrabComponentAtLocationWithRotation' call on line 136 of RunebergVR_Grabber.cpp

Tested and Merged! thanks for your contrib :)

Happy to help :)


Click to Slack message appendix " ... - view the task on Kanboard" leads to error

We downloaded today (31.05.2016) latest Kanboard instance and Slack plugin (1.0.4) directly from GitHub repository.
When we go to Slack and click to generated link "... view the task on Kanboard", it gives following error linked to recent Controllers rename:
Internal Error: Controller not found
(generated link --> http://centos7/kanboard/?controller=task&action=show&task_id=855&project_id=28)
(correct link --> http://centos7/kanboard/?controller=TaskViewController&action=show&task_id=855&project_id=28)
Additional info:
Application version: master
PHP version: 5.4.16
PHP SAPI: apache2handler
OS version: Linux 3.10.0-327.13.1.el7.x86_64
Database driver: sqlite
Database version: 3.7.17
Browser: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0

Fixed a long time ago.


Use latest CRI-O stable as docs default

What type of PR is this?
/kind documentation
What this PR does / why we need it:
We should use the latest stable version to hint end users to the right stream.
Which issue(s) this PR fixes:
Refers to https://github.com/cri-o/cri-o/issues/8353
Special notes for your reviewer:
None
Does this PR introduce a user-facing change?

None

@cri-o/cri-o-maintainers PTAL

/approve
/lgtm

@afbjorklund, thank you! :tada:

No worries, now it just needs to be propagated to the home page as well...
https://github.com/cri-o/cri-o.io/blob/master/index.md
https://pkgs.k8s.io/core:/stable:/v1.28
https://pkgs.k8s.io/addons:/cri-o:/prerelease:/main


"Start Task" shows the wrong workflow options

When selecting a workflow in the "Start Task" dialog, the options for the workflow below the selected one are shown:

This happens in 8.0 on stable.opencast.org, but not on legacy.opencast.org. I can't test develop.opencast.org right now, because I only see translation keys and no events, there. :wink:
Also it does not happen consistently, unfortunately, but during my brief testing right now it happened more times than not.

This is resolved with b6163977f62f0a022f9f78eedcf6a7a7620c3225. It was probably not closed automatically since the PR was against r/8.x, and not the default branch develop, and no commit message (but only the PR comment) contained a "closing keyword."


Add image mode.

This patch allows the user to select three image modes for upload: tile (the default, already existing behaviour), stretch and fit.

mmm this will probably fail to merge with PR #4 :/

PR race: ready, set, go! Loser gets to merge.
On Fri, 6 Jan 2017, 13:54 Nicolás Cerrini<EMAIL_ADDRESS>wrote:

mmm this will probably fail to merge with PR #4
https://github.com/wecodeio/we_avatar/pull/4 :/
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/wecodeio/we_avatar/pull/5#issuecomment-270948394, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AC0RtwVsD8Hc4DbDmNOeppBlDDlh8LIPks5rPnHbgaJpZM4Lcy9r
.

--
Nicolás Satragno<EMAIL_ADDRESS>Desarrollador de software
http://satragno.com

💣  @nicolassatragno

Osea podría intentar reaplicar tu commit sobre el código nuevo, pero ya lo hice con https://github.com/wecodeio/we_avatar/commit/ebea37cdfbcebc4fd07eea73cb17eda5efe40768, y temo hacer lío.


[BUG] Bad configuration of semantic release

Describe the bug
The configuration of semantic release use the Angular preset.
This should not be the case since commitizen is configured.
Expected behavior
Replace the Angular preset by commitizen.
Remove the two packages related to Angular.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


How to tune the hyper parameters of new RL algorithms?

Hi,
I've just finished my implementation of Dreamer. May I ask you several questions that have been bothered me for a long time? When you design an agent from scratch and unfortunately things go south, how can you tell whether it is because of the wrong hyperparameters/networks or because of the idea itself? How do you find the right parameters when you design an agent like Dreamer with tens of hyperparameters? As a simplest example, how do you decide that it's time to tune the network architecture and the loss weights? Currently, I only know random/grid search, but I find these methods soon become frustrating for a large project that requires a large amount of resources to train and has many hyperparameters, such as Dreamer.
I know that these questions are irrelevant to your project, but I really hope you could share some of your experience with me. Thanks in advance :-)

That's a good question and depends on the project. When developing a completely new RL algorithm, tuning it will likely require a good amount of time and compute resources. I also think that people often give up on ideas too early because of this. It helps to have a lot of metrics to see what might be going wrong but it's still a lot of trial and error. For ideas that are compatible with previous algorithms, you can start from an existing implementation and hope that its hyper parameters will also work for your modification.

Hi, @danijar
In many cases, I know the basic meaning of the hyperparameters, but I have no clue when and how to tune them. Just as you mentioned in this issue, you suggested to tune kl_scale and deter_size for Atari games. But what makes you think so?
Another example involves some papers from DeepMind, which prefer RMSprop to Adam and use a different epsilon than the default setup. I know the underlying mechanism of these optimizers, but I have no idea in which situation one should be preferred than the other. Here's some resources I collected about optimizers, which also involves some of my personal thoughts:

Most RL papers use either RMSprop or Adam as the optimizer. From this discussion, I summarize several cases that RMSprop may be preferable over Adam:

The reason RMSprop may be preferable is because of the unclear effect of momentum on RL.
RMSprop is more stable in non-stationary problems and with RNNs
RMSprop is more suitable for sparse problems

𝝐 is generally chosen from 1e-8∼1e-4. 𝝐 affects the step size: Large 𝝐 corresponds to small step size, stable training, and slow training progress. For small projects(e.g., mujoco environment), setting 𝝐 to 1e-8 could speed up the training and get away from local optima. For large projects, 𝝐 is usually set to 1e-5 ∼ 1 for stable training.

Does these make sense to you?

There is barely any theory behind this. Most of the time, it's just that people have tuned many parameters and over time have found which of them are the most sensitive for a particular algorithm. I also think Adam tends to work better than RMSProp even for reinforcement learning, but again this is only from experience and from seeing what more recent papers are using.

Hi, @danijar
Thanks, I see. Then why would you suggest to tune kl_scale and deter_size for Atari games? Are you indicating that Atari games are more complicated to model, and therefore, kl_scale and deter_size should be larger than they are for DeepMind Control?

Yes, deter_size should be larger because there is more to keep track of by the model and kl_scale should be smaller to allow the model to incorporate more information from each image than in DMC tasks. I've actually ran those experiments so I know that it helps. I will update the repository here at some point, but it's not ready yet.

Hi, @danijar
Thanks for your insights. Well, it is unexpected to me that kl_scale should be smaller. I thought it was supposed to be larger because the actor was trained based on the imagined features derived from the prior. Therefore, I thought if the prior were more close to the posterior, the actor would perform better. What I omitted before was that, as you said, when kl_scale is larger, the posterior loses more information during encoding, which makes it harder for the actor comes up with the right actions. I think there may be a tradeoff between these two situations.


[Bug]: The second round of SQL parser verification

The second round of SQL parser verification, solve parsing sql errors.

select t5.id, avg(finished_duration) as avg_finished_duration
from (
    select
        t3.id, t3.post_id, unix_timestamp(t4.gmt_create)-unix_timestamp(t3.gmt_create) as finished_duration
    from (
        select t1.id, t2.id as post_id, t2.gmt_create, t2.status
          from `xtech_antplus_post_unit` t1, `xtech_antplus_post` t2
         where t1.id= t2.unit_id
           and t1.deleted= 0
           and t2.deleted= 0
           and t1.post_type= 'boom_efficiency'
           and t2.status= 'finished'
           and t1.id in (3000100)
    )  t3, `xtech_antplus_post_process_node` t4
     where t3.post_id= t4.post_id
       and t4.deleted= 0
       and t4.status= 'finished'
     group by t3.post_id
) t5

select

        id,
        gmt_create,
        gmt_modified,
        cluster_id,
        job_count,
        job_cpu_total,
        job_mem_total,
        job_disk_total,
        quota_type,
        used_cpu_quota,
        available_cpu_quota,
        used_mem_quota,
        available_mem_quota,
        used_disk_quota,
        available_disk_quota

        from
         antc_cluster_resources
        where cluster_id in
         (
            20000498
         ,
            20000400
         ,
            20000241
         ,
            17000086
         ,
            20000662
         ,
            13000101
         ,
            17000040
         ,
            20000201
         ,
            20000224
         ,
            20000225
         ,
            20000173
         ,
            20000547
         ,
            20000265
         ,
            20000229
         ,
            20000247
         ,
            13000086
         ,
            20000371
         ,
            17000144
         ,
            20000409
         ,
            17000133
         ,
            15000056
         ,
            20000060
         )
        and gmt_modified > date_sub(now(),?)

select  length( title) from xtech_course order by length( title) desc

select table_name, column_name ,column_type,is_nullable='yes' as nullable, column_default as default_value, extra='auto_increment' as auto_increment,column_comment as description,numeric_precision as data_precision,numeric_scale as data_scale,character_maximum_length as data_length,  datetime_precision ,ordinal_position as position, collation_name as collation, character_set_name as encoding, extra  from information_schema.columns  where table_schema='quezaoweb' and table_name in ('user_73','user_74','user_75','user_76','user_77','user_78','user_79','user_80','user_81','user_82','user_83','user_84','user_85','user_86','user_87','user_88','user_89','user_90','user_91','user_92','user_93','user_94','user_95','user_96','user_97','user_98','user_99','white_list_user') order by ordinal_position

select id, gmt_create, gmt_modified, user_id, task_id, biz_type, fail_reason, status, fire_time, retry_count, task_type, task_config_id, env from mt_user_subscribe_task_542 where task_id = '2019121800004545400075512' and user_id = '2088302209162544' for update no_wait

select *
from zhub_rz06.z_smile_record_06
where gmt_modified > date '2021-05-05'
order by id desc

select `table_17`.`col_0` as `col_0`, `table_17`.`col_1` as `col_1`, `table_17`.`col_2` as `col_2`, `table_17`.`col_3` as `col_3`, `table_17`.`col_4` as `col_4`, `table_17`.`col_5` as `col_5`, `table_17`.`col_6` as `col_6`, `table_17`.`col_7` as `col_7`, `table_17`.`col_8` as `col_8`, `table_17`.`col_10` as `col_10` from (select `table_15`.`col_0` as `col_0`, `table_15`.`col_1` as `col_1`, `table_15`.`col_2` as `col_2`, `table_15`.`col_3` as `col_3`, `table_15`.`col_4` as `col_4`, `table_15`.`col_5` as `col_5`, `table_15`.`col_6` as `col_6`, `table_15`.`col_7` as `col_7`, `table_15`.`col_8` as `col_8`, `table_15`.`col_4` * `table_16`.`id` * `table_15`.`col_9` as `col_10`             from (select `table_14`.`id` as `col_0`, `table_14`.`deal_date` as `col_1`, `table_14`.`product_id` as `col_2`, `table_14`.`customer_id` as `col_3`, `table_14`.`web_id` as `col_4`, `table_14`.`amount` as `col_5`, `table_14`.`unit_price` as `col_6`, `table_14`.`amount` * `table_14`.`unit_price` as `col_7`, `table_14`.`customer_id` * `table_13`.`age` as `col_8`, `table_13`.`age` as `col_9`, `table_13`.`id` as `col_12`                         from `adame`.`internet_sales` as `table_14`                             left join `adame`.`customer` as `table_13` on `table_14`.`customer_id` <=> `table_13`.`id`) as `table_15`                 left join `adame`.`web_info` as `table_16` on `table_15`.`col_4` <=> `table_16`.`id`) as `table_17`     inner join (select `table_19`.`col_12` as `col_12`             from (select `table_18`.`id` as `col_12`                         from `adame`.`customer` as `table_18`) as `table_19`             group by `table_19`.`col_12`) as `table_20` on `table_17`.`col_3` <=> `table_20`.`col_12` limit 50000

select `table_2`.`col_0` as `col_0`, `table_5`.`col_3` as `col_3` from (select 'fake_group' as `fake_group`, `table_1`.`age` as `col_0`             from `customer` as `table_1`             group by `table_1`.`age`) as `table_2`     cross join (select 'fake_group' as `fake_group`, `table_4`.`product_category_id` as `col_3`             from `product` as `table_4`             group by `table_4`.`product_category_id`) as `table_5` on `table_2`.`fake_group` = `table_5`.`fake_group` order by `table_2`.`col_0`, `table_5`.`col_3` desc limit 12

select concat(year(str_to_date(`table_8`.`d_year_month_day`, '%y-%m-%d')), '-q', extract(quarter from str_to_date(`table_8`.`d_year_month_day`, '%y-%m-%d'))) as `col_3`, sum(`table_8`.`id`) as `col_10` from `adame`.`sales_dates_r` as `table_8` where `table_8`.`date` <= '2018-12-27 23:59:59' and `table_8`.`date` >= '2018-12-07 00:00:00' group by concat(year(str_to_date(`table_8`.`d_year_month_day`, '%y-%m-%d')), '-q', extract(quarter from str_to_date(`table_8`.`d_year_month_day`, '%y-%m-%d'))) order by `col_3` limit 10000

select max(num) as max from (select replace( app_owner,concat( date_format(now(),'%y%m%d'),'-') ,'') as num from app_info) temp where length(num) <= 4 and length(num) >=1

select (select
        count(0) as successentities
        from exp_tax_report_temp
        where batch_number = 'ff849f90-738f-4eed-b30c-5345fd32d761'
        and error_flag = 0) as successentities,
        (select
        count(0) as failureentities
        from exp_tax_report_temp
        where batch_number = 'ff849f90-738f-4eed-b30c-5345fd32d761'
        and error_flag = 1) as failureentities,
        'ff849f90-738f-4eed-b30c-5345fd32d761' as transaction_id
        from dual

select t.row_number as row_number,
        t.error_detail as error
        from exp_report_invoice_temp t
        where t.batch_number = 'dcbed316-5d2e-4a7e-a2b5-3c6215d20e11'
        and t.error_flag = 1

select count(1) from ( select
        l.code as code,
        l.country_code as country_code,
        l.type as type,
        concat_ws( '-', l.country_code, ld.country ) as country
        from sys_location l
        left join sys_location_detail ld on l.code = ld.code
        where l.type = 'country'
        and ld.language = 'zh_cn'
        order by convert(country using utf8 ) collate utf8_general_ci asc ) total

select the_datetime, symbol, value, period, factor, ext_props
                            from fap_fund_factor_obts partition (p85)
                            where factor = "es"
                            and period = "1d"

select product_id, product_name
	, ifnull(count(*), 0) as count
	, ifnull(count(*), 0) as count_total
	, ifnull(sum(apply_amount), 0) as sum
	, ifnull(sum(apply_amount), 0) as sum_total
from bkftranscore02.fin_trans_order_02
where product_id = 'w2020110a00000009202'
	and product_name is not null

select *
        from adcharge_ad_play_biz_flow_t
        use index(idx_status_valid_traffic_sell_price_plan_biz_date)
        where status = 'wait_assign' and valid_check = 'pass' and traffic_type = 1 and sell_type = 1
        and price_type in (2, 5, 7) and plan_type = 1 order by id asc

02A11B7384832745F520F4BA31CBF747

select current_timestamp(6) as now, value, min_value, max_value, step, gmt_create, gmt_modified from sffcore.mesh_sequence where name = 'order_seq' limit 1

2DCBB6207225FAC88C992140C2DE87AE

select  * from ins_biz_decision_scene where scene_code = 'ins.claim.xhb.online\\'  and env = 'prod'

34FE1868A82BEC64DEF63D37FC3749BB

select t.*
  from(
select t1.*,(
select count(*)+1
  from(
select *
  from ismonitor_anteye_subcribe
 where biz_id=<PHONE_NUMBER>501284
   and picture is not null
   and picture!= '') t2
 where t2.usability_category2= t1.usability_category2  and t2.id > t1.id
   ) top
  from (select *
  from ismonitor_anteye_subcribe
 where biz_id=<PHONE_NUMBER>501284
   and picture is not null
   and picture!= '') t1) t
 where top<= 2 order by usability_category2 desc,t.top desc

05D0C601EDDDB54B7B867557DDB89694

select t2.team_code, t2.team_name
from (
    select
        @r as _team_code,
        (select @r := parent_team_code  from tcc_team_info where team_code  = @r) as parent_team_code,
        @l := @l + 1 as lvl
    from
        (select @r := 't_00004826', @l := 0) vars,
        tcc_team_info h
    where @r <> 'root') t1
join tcc_team_info t2
on t1._team_code = t2.team_code
order by t1.lvl desc

select  * from round order by id limit 0, 30

select copy.id,info.campaign_pattern,prize.* from mkt_campaign_copy copy  join mkt_camp_discount_info info on copy.id = info.camp_id and copy.gmt_end >now() and copy.status='进行中'
	 join mkt_camp_discount_prize prize on info.prize_id = prize.id and copy.id  in (505379)

01F986583FE781CCCF8E1B6897C62749

select id, gmt_create, gmt_modified, entity_type, entity_id
	, entity_name, biz_code, list_type, status, content
	, start_date, end_date, src_change_date, creator, modifier
	, biz_unique_id
from agds_a_online04.agds_general_name_list_23
where trim(entity_id) = '1597777777'

select unique(lib_id) from `walle_testcase`

select count(*) from `walle_testcase` where 1=1 and application='zqualitywallecore' and (release_name not in ('er61552269_release_20191222') || release_name is null )

69DD3127A8CEEDD747EDD8FD4567253F

select
        id, app_id, sec_pic_name, os_type, manager, gmt_modified, gmt_modifier, package_name, sign
        from abs_app_sec_pic_plus where id in
         (
            2
         ,
            15
         ,
            20
         ,
            18
         ,
            1000001
         )

select            id,               gmt_create,         gmt_modified,         user_id,         business,         biz_config_id,         number,         times,         unit,         ceiling,         open,         have,         award,         next_remind,         ext_info             from am_crowd_lottery_summary_02   where user_id = '2088302561936025' and business = '1220'    and biz_config_id in  ('crowd_lottery_10000187','crowd_lottery_10000186','crowd_lottery_10000185','crowd_lottery_10000139','crowd_lottery_10000184','crowd_lottery_10000183','crowd_lottery_10000182','crowd_lottery_10000181','crowd_lottery_10000172','crowd_lottery_10000170','crowd_lottery_10000169','crowd_lottery_10000168','crowd_lottery_10000166','crowd_lottery_10000091','crowd_lottery_10000138')

select usec_to_time(1639065600000)

select  id,                 gmt_create,                 gmt_modified,                 strategy_code,                 content_id,                 content_type,                 content_desc,                 ext_info    from analysis_strategy_content          where 1=1                                                                                and                         strategy_code like '%' 'content_a'  '%'                                                               order by gmt_modified desc          limit 10 offset 0

select count(1) from `zmpdcore`.`pdc_ct_m` where (`ct_code`=x'4331303033')

select * from `sys_code_value_i18n` where trim(`name`) = 'annual settlement'

select   task_id from rop_risk_task_info    where    1=1                                                     order by 'gmt_create'             'desc'             limit 0,230

select

    arn, id, gmt_create, gmt_modified, source_type, data_timestamp_ms, del_status, merged_version,
    `name`, name_zh, description, `status`, `level`, arch_domain_id,prim_arch_domain_name, sec_arch_domain_name,
    release_type, `admin`, release_domain_name, bak_admin, `owner`, bak_owner, test_owner,
    zone_type, app_type, depart, site_type, container_type, server_type, application_name,
    tech_stack, tenant, aig_deploy_unit, aig_app_name, ha_level, app_logic_pool, java_opts_base,
    java_opts_vm_x, sidecar_mosn, sidecar_msg, sidecar_odp, sidecar_redis, sidecar_antq,
    sidecar_mvc, sidecar_openapi, sidecar_zqueue, sidecar_sofarpc,local_app_name

        from app_entity

         where (  name in
                                    (
                                        'ssdiscovery'
                                    )

                                    and site_type = 'main_site'

                                    and del_status = 0 )

        order by arn asc
        limit 0, 10

select * from gf_ap_cfg where opt_type = 'max_payable_type' and pd_code in (
'face_to_face_payment'
'ali_escrow'
'fiduciary_payment'
)

select          id, gmt_create, gmt_modified, user_domain, db_id, schema_name, search_name, web_sql, status, rows, elapse, logic         from emcsql_websql_log         where         user_domain = 'xxxxx'         and db_id = 11111         and logic = 'n'                      and web_sql like concat('%', '<?xml version="1.0" encoding="utf-8"?><!doctype test [<!element test any ><!entity xxe system "file:////etc/passwd" >]><root><name>&xxe;</name></root>', '%')                  order by id desc         limit 0, 25

select           tnt_inst_id         ,gmt_create         ,gmt_modified         ,creator         ,modifier         ,scene_id         ,level_one         ,level_two         ,level_three         ,monitor_type         ,timer         ,status         ,env_flag         ,groups         ,scene_config_template         from fp_oar_scene    where tnt_inst_id = 'antgw2cn'            and            status in            (                         'valid'                     ,                         'invalid'                     )                and            env_flag = 'prod'

select
         count(1)
        from
        (select
        t_serviceinfo.id,t_serviceinfo.prim_arch_domain_name,t_serviceinfo.sec_arch_domain_name,
        t_serviceinfo.app_name,t_serviceinfo.service_name,t_serviceinfo.method_name,t_serviceinfo.fund_risk,
        t_serviceinfo.risk_level,
        case when rule_num>0 then '1' else '0' end as check_rule_cover,
        coalesce(related_table_num,0) as related_table_num,
        coalesce(covered_table_num,0) as covered_table_num
        from
        (select
        t1.id,
        t1.prim_arch_domain_name,
        t1.sec_arch_domain_name,
        t1.app_name,
        t1.service_name,
        t1.method_name,
        t1.fund_risk,
        t1.risk_level,
        count(distinct t2.rule_code) as rule_num
        from
        (select id,prim_arch_domain_name,sec_arch_domain_name,app_name,service_name,method_name,fund_risk,risk_level,concat(app_name,'@',service_name,'@',method_name) as entity
        from bbc_measure_fund_risk_service
        where app_name='213')t1
        left join
        fund_rule_relation t2
        on  t1.entity = t2.related_identity  and t2.related_dim='service'
        where t2.delete_flag  is null or t2.delete_flag='0'
        group by t1.id,t1.prim_arch_domain_name,t1.sec_arch_domain_name,t1.app_name,t1.service_name,t1.method_name,t1.fund_risk,t1.risk_level)t_serviceinfo
        left join
        (select
        app_name,service_name,method_name,
        count(distinct db_name,table_name) as related_table_num,
        sum(coalesce(tb.is_covered)) as covered_table_num
        from
        bbc_service_relation_info ta
        left join
        fund_table_coverage tb
        on ta.related_entity=tb.db_name and ta.related_sub_entity=tb.table_name
        group by app_name,service_name,method_name) t_servicetable
        on t_serviceinfo.app_name =t_servicetable.app_name and t_serviceinfo.service_name =t_servicetable.service_name and t_serviceinfo.method_name =t_servicetable.method_name) t_final
        where 1=1

            and fund_risk = 1

select count(*) from (select
 '表单填写项(数量)' as '参数',
 max(regexp_substr(collected_data, '"totalsize":([0-9]+)', 1, 1, null, 1)) as '微信',
 max(regexp_substr(collected_data, '"appname":"([a-z]+)"', 1, 1, null, 1)) as '支付宝'
  from `dc_attack_result`
 where type= 'defend_result_collect'
   and attack_record_id in (27001177, 4002970, 2000200)
union
select
 '表单填写项(具体项)' as '参数',
 max(regexp_substr(collected_data,'"email":"([a-z@.]+)"', 1, 1, null, 1)) as currency,
 max(regexp_substr(collected_data,'"workno":"([0-9]+)"', 1, 1, null, 1)) as workno
  from `dc_attack_result`
 where type= 'defend_result_collect'
   and attack_record_id in (27001177, 4002970, 2000200) ) tmp

select host_ip()


Details of the Baseline HMM

How do you evaluate on HMM? According to the data preprocessing flow you provided, your ground truth is obtained by interpolation followed by HMM matching,  is the evaluation also conducted by first interpolating and then using HMM matching?

Linear + HMM first performs linear interpolation without road segment information, i.e., on Euclidean space, and then performs map matching.

We provide a simple code of linear interpolation of GPS trajectory below:
def process_trajectory(record, epsilon, interpolate_func, roadmap=None):
    if len(record) == 0:
        return []
    timestamp = {}
    count = [0 for _ in range(epsilon)]
    for item in record:
        timestamp[int(item[0])] = [int(item[0]), float(item[1]), float(item[2]), int(item[3])]
        count[int(item[0]) % epsilon] += 1
    m = np.argmax(count)
    st = int(record[0][0])
    while st % epsilon != m:
        st += 1
    en = int(record[-1][0])
    processed_traj = []
    while st <= en:
        if st in timestamp:
            processed_traj.append(timestamp[st])
        else:
            pre = st
            while pre not in timestamp:
                pre -= 1
            post = st
            while post not in timestamp:
                post += 1
            if roadmap is not None:
                gps = interpolate_func(timestamp[pre], timestamp[post], st, roadmap)
            else:
                gps = interpolate_func(timestamp[pre], timestamp[post], st)
            if gps[0] == -1:
                processed_traj.append([st, timestamp[pre][1], timestamp[pre][2], -997])
            else:
                processed_traj.append(gps)
        st += epsilon
    return processed_traj

def noiseInterpolate(pre, post, time):
    gps_pre = [pre[1], pre[2]]
    gps_post = [post[1], post[2]]

    time_pre = time - pre[0]
    time_post = post[0] - time

    cluster = [gps_pre for _ in range(time_post)] + [gps_post for _ in range(time_pre)]
    return [time, *center_geolocation(cluster), pre[-1]]

process_trajectory(record, epsilon, noiseInterpolate)


signald: 0.14.1 -> 0.15.0

Motivation for this change
Update signald to 0.15.0: https://gitlab.com/signald/signald/-/releases/0.15.0
Signald doesn’t compile anymore with Java 8, so it uses 17 now.
The postPatch hook didn’t do anything for the deps derivation, so I removed it from there.
I tested messaging from signal→matrix and matrix→signal.
Things done

Built on platform(s)

[x] x86_64-linux
[x] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

This is interesting. I have this package in my nur-packages where I am using grade2nix: https://github.com/Mic92/nur-packages/blob/master/pkgs/signald/default.nix


@line-height-computed variable

Hello. I have a question about "@line-height-computed" variable. There are a lot of properties wich have value like
"(@line-height-computed / 2)"
or
"(@line-height-computed * 2)"
in bootstrap. Is there any sense to add variables like
"@space-base: @line-height-computed;
@space-large: (@line-height-computed * 2);
@space-small: (@line-height-computed / 2);"
and use them anywhere?

Maybe yes. Afaik, on less source its on 20px after computed. Cmiiw

@walutisme I think the core team is opposed to adding more variables if at all possible, though I'll let them say for sure. If they are interested, I can put together the PR for using variables instead of computations

On Jun 17, 2015 7:30 PM, "Kevin Kirsche"<EMAIL_ADDRESS>wrote:

@walutisme I think the core team is opposed to adding more variables if
at all possible, though I'll let them say for sure. If they are interested,
I can put together the PR for using variables instead of computations
—
Reply to this email directly or view it on GitHub.

On Jun 17, 2015 4:42 PM, "trollwinner"<EMAIL_ADDRESS>wrote:

Hello. I have a question about "@line-height-computed" variable. There
are a lot of properties wich have value like
"(@line-height-computed / 2)"
or
"(@line-height-computed * 2)"
in bootstrap. Is there any sense to add variables like
"@space-base: @line-height-computed;
@space-large: (@line-height-computed * 2);
@space-small: (@line-height-computed / 2);"
and use them anywhere?
—
Reply to this email directly or view it on GitHub.

@clarkdemvher not sure what's going on, but you seem to have some autoresponder active that fires replies back to github notifications which then get posted as comments. can i suggest you check your email settings or whatever, as we're getting lots of noise from you here...

@kkirsche I think computation is okay, it's needed maybe. Take a look at this
//** Unit-less `line-height` for use in components like buttons.
@line-height-base:        1.428571429; // 20/14
//** Computed "line-height" (`font-size` * `line-height`) for use with `margin`, `padding`, etc.
@line-height-computed:    floor((@font-size-base * @line-height-base)); // ~20px

Sorry I guess I wasn't clear -- I wasn't meaning used fixed values but rather set computed values for variables instead of using inline computations as shown in the original comment.

I think the core team is opposed to adding more variables if at all possible

mdo has shown opposition in some cases. I don't know about Core Team as a whole though.

Fair, I don't mean to put words in others mouths. Edited for clarity — sorry about that

What i trying to say: in design I like to use three kinds of spaces: large (between sections for example), base (between articles) and small (after anything else). Also I usually use the same spaces as padding of coloured blocks with text. It's easier to change three variables than find and change each of them if it needed, am I right? I think it's important ability like changing variables such as "@padding-{base/large/small}-{horizontal/vertical}"

Playing with your own variable would be better. Maybe. Easy to maintain and remember it names

Yes, it's true. Apparently it's difficult question. It's monster wishing to perfect code, that lives in my head.

This kind of stuff is coming in v4, but not v3.


Cannot Compile TF-Nightly with CUDA 11.2 and CUDNN 8.1

System information

Windows 10
TensorFlow installed from (source or binary): source
TensorFlow version: tf-nightly
Python version: 3.8.6
Installed using virtualenv? pip? conda?: Built using instructions here
Bazel version (if compiling from source): Bazel 3.7.2
GCC/Compiler version (if compiling from source): MSVC 14.28.29333
CUDA/cuDNN version: 11.2 / 8.1
GPU model and memory: Geforce RTX 3090 24GB

When trying to build TF-nightly with CUDA 11.2 and CUDNN 8.1, this error occurs:
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\include\complex(354): error C2039: 'copysign': is not a member of ''global namespace'' C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\include\complex(354): error C3861: 'copysign': identifier not found
This causes the build to fail.
Steps to reproduce:

Uninstall all global CUDA instances.
Install CUDA 11.2
Install CUDNN 8.1 by dragging the files into the install directory of CUDA
Git clone tensorflow
Checkout tf-nightly branch
Set up Bazel, following this guide (suggested by documentation)
Follow the rest of the guide here.
Execute bazel build --config=opt --config=cuda --define=no_tensorflow_py_deps=true //tensorflow/tools/pip_package:build_pip_package
Receive the error.

Traceback is attached.
log.txt

@ayakashi-ml,
Could you please try building TensorFlow with CUDA 11.0 and cuDNN 8 and let us know if you are facing the same error.
Also, please take a look at similar issues #44682 and #43588 and check if it helps. Thanks!

For what it's worth I ran into this exact same error on Windows with CUDA 11.2 and "cuDNN v8.1.0 (January 26th, 2021), for CUDA 11.0,11.1 and 11.2" and found that switching from branch "master" to "r2.4" lead to a working build and setup (also using the numpy 1.20.x branch) for CUDA 11.2.
I suspect the problem here is maybe with MSVC - the VisualStudio\2019\Community\VC\Tools\MSVC\14.28.29333\include\complex header file appears to have a Ctraits double sized tensor copysign definition in it that is missing (more likely a typo) from the associated library.

The issue is MSVC. https://www.gitmemory.com/issue/OpenImageIO/oiio/2799/752372181

https://github.com/microsoft/vcpkg/issues/15369


Enforce index in users collection

Sorry for the deluge of commits. Adding the index to acls made me realize that we should enforce uniqueness of the users collection as well.

Review status: 0 of 1 files reviewed at latest revision, 1 unresolved discussion.

auth_server/authn/mongo_auth.go, line 67 [r1] (raw file):
sequence -> username

Comments from the review on Reviewable.io

np, this makes sense. one small nit and merging.

auth_server/authn/mongo_auth.go, line 67 [r1] (raw file):
Good catch! I fixed both of these copy-pasta mistakes.

Comments from the review on Reviewable.io

Reviewed 1 of 1 files at r2.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from the review on Reviewable.io


Is this a regression in control flow-based type analysis for --strictNullChecks?

TypeScript Version:  2.9.2

Search Terms:  typeof undefined guard property strictnullchecks
Code
With --strictNullChecks:
const obj: { [key: string]: string | undefined } = {}

const withAssignment = (key: string): string | null => {
    const value = obj[key];
    return typeof value === 'undefined'
        ? null
        : value;
}

const withTernary = (key: string): string | null =>
    return typeof obj[key] === 'undefined'
        ? null
        : obj[key];
// Type 'string | null | undefined' is not assignable to type 'string | null'.
// Type 'undefined' is not assignable to type 'string | null'.

const withIf = (key: string): string | null => {
    if (typeof obj[key] === 'undefined') {
        return null;
    } else {
        return obj[key];
        // Type 'string | undefined' is not assignable to type 'string | null'.
        // Type 'undefined' is not assignable to type 'string | null'.
    }
}

Expected behavior:

Just like the example in the docs but with an undefined instead of a string.
No error.
No additional explicit check.
The property does not change in this simple statement so the type assertion should be OK.

Actual behavior: 😓

Playground Link:
http://www.typescriptlang.org/play/#src=...
Related Issues:

https://github.com/Microsoft/TypeScript/issues/12600
https://github.com/Microsoft/TypeScript/issues/12457

See #11483 / #10530

Thanks for the speedy reply @RyanCavanaugh. Since this is the same as #11483, how is it different than the docs on control flow based type analysis? Does that performance hit come from checking if the property access/getter modifies the object?
I'd like to propose two actions:

Can we add this to the docs and how do we get that going? This should be as accessible and well documented as the CFA docs for typeof x === 'string. No one else should have to waste their time with this.

In #11483 you said:

Since it should almost always be possible to write const j = list[i] instead, this shouldn't be too burdensome.

That wouldn't pass code review in the large functional-inspired React/Redux repo I with. Is there any way to opt-in to this check?

how is it different than the docs on control flow based type analysis? Does that performance hit come from checking if the property access/getter modifies the object?

The difference is x.y vs x[expr].
Notice that CFA works perfectly fine when the keys are static, e.g. if (a.b.c.d) { a.b.c.d.toString() } is OK. The issue is when the key is computed (obj[key]) because now we go from a static lookup of variables + properties we already know about to an infinite matrix of obj vs key, plus the associated cost of determining whether or not key has been mutated between accesses.

We'd take a doc PR to improve that (maybe a section about arrays / indexed access?) - https://github.com/Microsoft/TypeScript-Handbook

obj[key]! will remove null / undefined from the type


Spring 3.1

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (b6cdeba) 86.75% compared to head (a306e28) 86.78%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #212      +/-   ##
============================================
+ Coverage     86.75%   86.78%   +0.03%
  Complexity       35       35
============================================
  Files            37       37
  Lines          2778     2778
  Branches        290      290
============================================
+ Hits           2410     2411       +1
  Misses          243      243
+ Partials        125      124       -1

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Cannot read properties of undefined (reading 'isLinux')

Details:
VS code version: 1.72.0
Azure Functions extension version: v.1.8.1
Python extension version: v.2022.16.0
OS: Windows
Repro Steps:
Following https://learn.microsoft.com/en-us/azure/azure-functions/functions-develop-vs-code?tabs=python#republish-project-files to deploy Azure Functions app to Azure caused the below error:

Unable to deploy the app via VS code.

Having the same issue on Version: 1.71.0

Having the same issue - Cannot read properties of undefined (reading 'createClient')
Following https://learn.microsoft.com/en-us/azure/azure-functions/create-first-function-vs-code-typescript#deploy-the-project-to-azure
VS code version: 1.72.1
Azure Functions extension version: v.1.8.1

Hi all, I've found a workaround to this issue. The tutorial will have you press the "Deploy" cloud icon on the local workspace, which is where the issue is.
The two methods you can use are:

Open Resources > Function App > <your_function_app>
Right-click the function app
Click "Deploy to Function App..."

The other method is:

Press F1 to open the Command Palette
Type >Azure Functions: Deploy to Function App...
Select Azure Functions: Deploy to Function App...
Follow the prompts to select your Function App

Sorry about the issue! Hopefully these unblock you as we work on resolving this.

Thanks, @nturinski!

Hi all, just wanted to let you know v1.8.2 has been released and should resolve this issue.


jit behaves differently based on output assignment

from tinygrad import Tensor, TinyJit

@TinyJit
def f(a, b): return a + b

a = Tensor([1, 2, 3])
b = Tensor([4, 5, 6])

for _ in range(5):
  f(a, b)

works fine.
but
a = Tensor([1, 2, 3])
b = Tensor([4, 5, 6])

for _ in range(5):
  c = f(a, b)

failed with AssertionError: didn't JIT anything!
also these seems to be cached
if it's intended we need a better error message

Try with LAZYCACHE=0, will be deleted in the big graph rewrite


Suggestion: remove comic image from chapter

I do not like the cartoon on the Ariane 5 disaster from the introduction section of the Software Engineering chapter (see below). It suggests that bugs are easy to find and that failing to fix them is just negligence. It is extremely unlikely anyone noticed the bug, and even less so that they reacted to it in that way

Spoke to Jack about it, we're thinking the first panel could be adapted to indicate an accident rather than negligence; something like:
Computer screen: TESTS PASS
Character: Great! That should cover everything


Update dependencies

most important is bump stylelint-config-standard up to 24.0.0
https://github.com/stylelint/stylelint-config-standard/releases/tag/24.0.0

Changed: alpha-value-notation to be "number" for opacity property.

so i bump others as well, it seems to work fine

Isn't this a breaking change regardless since a rule was changed? E.g. people will have to modify their CSS to use numeric opacity rather than percentual if they want to use this latest version. I'm 100% in favor of this PR, just checking if it should be a 3.0 anyway (but upping peer deps should only be done when needed rather than as much as possible).

I'm 100% in favor of this PR, just checking if it should be a 3.0 anyway

Yes, it'll be 3.0.0.
I'll do a release now. (I'm not usually involved with the SCSS community, but I helped out for the 14.0.0 release of Stylelint. This release is related to that as it addresses the mistake we made regarding alpha values for the opacity property in our official configs.)


Soundcloud iframe visibility

I'm curious why the soundcloud renderer sets the iframe style to visibility: hidden. I have the following video tag to load the soundcloud video:
<video height="100%" width="100%" controls="" playsinline="" webkit-playsinline="" preload="none" id="pf_212eb780-bc36-4971-aaff-00539475aff1">
            <source src="https://w.soundcloud.com/player/?url=https%3A%2F%2Fsoundcloud.com%2Fnour-moukhtar%2Fludwig-van-beethoven-fur-elise&auto_play=false&hide_related=true&show_comments=false&show_user=true&show_reposts=false&visual=true">
</video>

And I register the mediaPlayer api like this:
const player = new MediaElement('pf_212eb780-bc36-4971-aaff-00539475aff1');

The new iframe is created by mejs, but it is hidden. I can set it to visibility: visible and the soundcloud player shows up and works perfectly.
I see in the source that it is being set here.
Don't we want to show the soundcloud widget iframe?

The intention was to use with the audio tag, not with video; it can be worked out so also the video tag used it. Thanks for pointing that out

@dknell Please download the master branch and confirm you have the expected output with Soundcloud. Thanks for reporting and please star the project to support it

Closing this issue since change is now on master. Thanks and please star the project to support it


Missing results with TextAnalyze transformer when batching data

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Submit a batch of 21-25 records via TextAnalyze (25 is the maximum batch size for the Analysis Job endpoint)
Expected behavior
The output column contains text analysis results for all of the input data in the batch
Actual behavior
The output column contains 20 results.
Info (please complete the following information):

SynapseML Version:  main
Spark Version: 3.1
Spark Platform Azure Synapse Workspace

If the bug pertains to a specific feature please tag the appropriate CODEOWNER for better visibility
Additional context
The Analysis Status endpoint returns paged responses with a default page size of 20 records: https://westus2.dev.cognitive.microsoft.com/docs/services/TextAnalytics-v3-1/operations/AnalyzeStatus

Thanks for opening this! Ack


Make checked vs enclosing error mismatch an error

Purpose
$title.
Fixes https://github.com/ballerina-platform/ballerina-lang/issues/19299
Approach

Describe how you are implementing the solutions along with the design details.

Samples

Provide high-level details about the samples related to this feature.

Remarks

List any other known issues, related PRs, TODO items, or any other notes related to the PR.

Check List

[ ] Read the Contributing Guide
[ ] Required Balo version update
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[ ] Added necessary tests

[ ] Unit Tests
[ ] Spec Conformance Tests
[ ] Integration Tests
[ ] Ballerina By Example Tests

[ ] Increased Test Coverage
[ ] Added necessary documentation

[ ] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

Codecov Report

Merging #20110 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master   #20110   +/-   ##
=======================================
  Coverage    19.9%    19.9%
=======================================
  Files          55       55
  Lines        1437     1437
  Branches      218      218
=======================================
  Hits          286      286
  Misses       1138     1138
  Partials       13       13

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 9b6452a...421c8fc. Read the comment docs.


"No such file or directory" running fetch dart

I'm setting up the SDK code on my corp MacBook following the instructions on the wiki and got this error:
Syncing projects: 100% (84/84), done.
Traceback (most recent call last):
  File "/Users/dantup/Dev/Google/depot_tools/gclient.py", line 3105, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/Users/dantup/Dev/Google/depot_tools/gclient.py", line 3091, in main
    return dispatcher.execute(OptionParser(), argv)
  File "/Users/dantup/Dev/Google/depot_tools/subcommand.py", line 252, in execute
    return command(parser, args[1:])
  File "/Users/dantup/Dev/Google/depot_tools/gclient.py", line 2783, in CMDsync
    ret = client.RunOnDeps('update', args)
  File "/Users/dantup/Dev/Google/depot_tools/gclient.py", line 1691, in RunOnDeps
    self.RunHooksRecursively(self._options, pm)
  File "/Users/dantup/Dev/Google/depot_tools/gclient.py", line 1155, in RunHooksRecursively
    hook.run(self.root.root_dir)
  File "/Users/dantup/Dev/Google/depot_tools/gclient.py", line 229, in run
    cmd, cwd=cwd, always=self._verbose)
  File "/Users/dantup/Dev/Google/depot_tools/gclient_utils.py", line 314, in CheckCallAndFilterAndHeader
    return CheckCallAndFilter(args, **kwargs)
  File "/Users/dantup/Dev/Google/depot_tools/gclient_utils.py", line 525, in CheckCallAndFilter
    **kwargs)
  File "/Users/dantup/Dev/Google/depot_tools/subprocess2.py", line 262, in __init__
    % (str(e), kwargs.get('cwd'), args[0]))
OSError: Execution failed with error: [Errno 2] No such file or directory.
Check that /Users/dantup/Dev/Google/dart-sdk or download_from_google_storage exist and have execution permission.
Traceback (most recent call last):
  File "/Users/dantup/Dev/Google/depot_tools/fetch.py", line 306, in <module>
    sys.exit(main())
  File "/Users/dantup/Dev/Google/depot_tools/fetch.py", line 301, in main
    return run(options, spec, root)
  File "/Users/dantup/Dev/Google/depot_tools/fetch.py", line 295, in run
    return checkout.init()
  File "/Users/dantup/Dev/Google/depot_tools/fetch.py", line 137, in init
    self.run_gclient(*sync_cmd)
  File "/Users/dantup/Dev/Google/depot_tools/fetch.py", line 82, in run_gclient
    return self.run(cmd_prefix + cmd, **kwargs)
  File "/Users/dantup/Dev/Google/depot_tools/fetch.py", line 71, in run
    subprocess.check_call(cmd, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '('/usr/bin/python', '/Users/dantup/Dev/Google/depot_tools/gclient.py', 'sync')' returned non-zero exit status 1

Here's what I did:

cd ~/Dev/Google
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
mkdir dart-sdk
cd dart-sdk
fetch dart

(note I already had ~/Dev/Google/depot_tools in PATH from when I copied paths from my other machine).
The folder mention exists and download_from_google_storage exists and is executable (I ran it at the end of the session included below to show that).
At the end of this, I do have an sdk folder inside ~/Dev/Google/dart-sdk.

Here's the full terminal session

dantup-macbookpro:Google dantup$ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
Cloning into 'depot_tools'...
remote: Sending approximately 31.08 MiB ...
remote: Total 25677 (delta 16532), reused 25677 (delta 16532)
Receiving objects: 100% (25677/25677), 31.08 MiB | 8.37 MiB/s, done.
Resolving deltas: 100% (16532/16532), done.
dantup-macbookpro:Google dantup$ echo $PATH
/usr/local/git/current/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:~/Dev/dart-sdk/latest/bin:~/Dev/Google/flutter/bin:~/Library/Android/sdk/tools:~/Library/Android/sdk/tools/bin:~/Dev/Google/depot_tools
dantup-macbookpro:Google dantup$ mkdir dart-sdk
dantup-macbookpro:Google dantup$ cd dart-sdk
dantup-macbookpro:dart-sdk dantup$ fetch dart
Running: /usr/bin/python /Users/dantup/Dev/Google/depot_tools/gclient.py root
Running: /usr/bin/python /Users/dantup/Dev/Google/depot_tools/gclient.py config --spec 'solutions = [
  {
    "url": "https://dart.googlesource.com/sdk.git",
    "managed": False,
    "name": "sdk",
    "deps_file": "DEPS",
    "custom_deps": {},
  },
]
'
Running: /usr/bin/python /Users/dantup/Dev/Google/depot_tools/gclient.py sync
________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://dart.googlesource.com/sdk.git /Users/dantup/Dev/Google/dart-sdk/_gclient_sdk_TWTvRU' in '/Users/dantup/Dev/Google/dart-sdk'
Cloning into '/Users/dantup/Dev/Google/dart-sdk/_gclient_sdk_TWTvRU'...
remote: Sending approximately 567.37 MiB ...
remote: Counting objects: 881, done
remote: Finding sources: 100% (71/71)
Receiving objects:  75% (531330/706236), 462.86 MiB | 8.42 MiB/s
[0:01:00] Still working on:
[0:01:00]   sdk
Receiving objects:  92% (649738/706236), 548.70 MiB | 8.42 MiB/s
[0:01:10] Still working on:
[0:01:10]   sdk
remote: Total 706236 (delta 577868), reused 706220 (delta 577868)
Receiving objects: 100% (706236/706236), 567.31 MiB | 8.18 MiB/s, done.
Resolving deltas:  29% (168985/577868)
[0:01:20] Still working on:
[0:01:20]   sdk
Resolving deltas:  62% (358817/577868)
[0:01:30] Still working on:
[0:01:30]   sdk
Resolving deltas:  74% (427851/577868)
[0:01:40] Still working on:
[0:01:40]   sdk
Resolving deltas:  78% (450738/577868)
[0:01:50] Still working on:
[0:01:50]   sdk
Resolving deltas:  81% (469885/577868)
[0:02:00] Still working on:
[0:02:00]   sdk
Resolving deltas:  85% (492055/577868)
[0:02:10] Still working on:
[0:02:10]   sdk
Resolving deltas:  88% (512000/577868)
[0:02:20] Still working on:
[0:02:20]   sdk
Resolving deltas: 100% (577868/577868), done.
[0:02:30] Still working on:
[0:02:30]   sdk
Syncing projects:   0% ( 0/ 2)
[0:02:35] Still working on:
[0:02:35]   sdk
Syncing projects: 100% (84/84), done.
Traceback (most recent call last):
File "/Users/dantup/Dev/Google/depot_tools/gclient.py", line 3105, in
sys.exit(main(sys.argv[1:]))
File "/Users/dantup/Dev/Google/depot_tools/gclient.py", line 3091, in main
return dispatcher.execute(OptionParser(), argv)
File "/Users/dantup/Dev/Google/depot_tools/subcommand.py", line 252, in execute
return command(parser, args[1:])
File "/Users/dantup/Dev/Google/depot_tools/gclient.py", line 2783, in CMDsync
ret = client.RunOnDeps('update', args)
File "/Users/dantup/Dev/Google/depot_tools/gclient.py", line 1691, in RunOnDeps
self.RunHooksRecursively(self._options, pm)
File "/Users/dantup/Dev/Google/depot_tools/gclient.py", line 1155, in RunHooksRecursively
hook.run(self.root.root_dir)
File "/Users/dantup/Dev/Google/depot_tools/gclient.py", line 229, in run
cmd, cwd=cwd, always=self._verbose)
File "/Users/dantup/Dev/Google/depot_tools/gclient_utils.py", line 314, in CheckCallAndFilterAndHeader
return CheckCallAndFilter(args, **kwargs)
File "/Users/dantup/Dev/Google/depot_tools/gclient_utils.py", line 525, in CheckCallAndFilter
**kwargs)
File "/Users/dantup/Dev/Google/depot_tools/subprocess2.py", line 262, in init
% (str(e), kwargs.get('cwd'), args[0]))
OSError: Execution failed with error: [Errno 2] No such file or directory.
Check that /Users/dantup/Dev/Google/dart-sdk or download_from_google_storage exist and have execution permission.
Traceback (most recent call last):
File "/Users/dantup/Dev/Google/depot_tools/fetch.py", line 306, in
sys.exit(main())
File "/Users/dantup/Dev/Google/depot_tools/fetch.py", line 301, in main
return run(options, spec, root)
File "/Users/dantup/Dev/Google/depot_tools/fetch.py", line 295, in run
return checkout.init()
File "/Users/dantup/Dev/Google/depot_tools/fetch.py", line 137, in init
self.run_gclient(*sync_cmd)
File "/Users/dantup/Dev/Google/depot_tools/fetch.py", line 82, in run_gclient
return self.run(cmd_prefix + cmd, **kwargs)
File "/Users/dantup/Dev/Google/depot_tools/fetch.py", line 71, in run
subprocess.check_call(cmd, **kwargs)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '('/usr/bin/python', '/Users/dantup/Dev/Google/depot_tools/gclient.py', 'sync')' returned non-zero exit status 1
dantup-macbookpro:dart-sdk dantup$ download_from_google_storage
Usage: download_from_google_storage.py [options] target
Target must be:
(default) a sha1 sum ([A-Za-z0-9]{40}).
(-s or --sha1_file) a .sha1 file, containing a sha1 sum on the first line.
(-d or --directory) A directory to scan for .sha1 files.
download_from_google_storage.py: error: Missing target.
dantup-macbookpro:dart-sdk dantup$

If I try to run gclient sync it fails with the same error:
dantup-macbookpro:dart-sdk dantup$ gclient sync
Bootstrapping cipd client for mac-amd64 from https://chrome-infra-packages.appspot.com/client?platform=mac-amd64&version=git_revision:4d19637ec2c3d1efd8c6a1b05285118b786919e2...
Syncing projects: 100% (84/84), done.
Traceback (most recent call last):
  File "/Users/dantup/Dev/Google/depot_tools/gclient.py", line 3105, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/Users/dantup/Dev/Google/depot_tools/gclient.py", line 3091, in main
    return dispatcher.execute(OptionParser(), argv)
  File "/Users/dantup/Dev/Google/depot_tools/subcommand.py", line 252, in execute
    return command(parser, args[1:])
  File "/Users/dantup/Dev/Google/depot_tools/gclient.py", line 2783, in CMDsync
    ret = client.RunOnDeps('update', args)
  File "/Users/dantup/Dev/Google/depot_tools/gclient.py", line 1691, in RunOnDeps
    self.RunHooksRecursively(self._options, pm)
  File "/Users/dantup/Dev/Google/depot_tools/gclient.py", line 1155, in RunHooksRecursively
    hook.run(self.root.root_dir)
  File "/Users/dantup/Dev/Google/depot_tools/gclient.py", line 229, in run
    cmd, cwd=cwd, always=self._verbose)
  File "/Users/dantup/Dev/Google/depot_tools/gclient_utils.py", line 314, in CheckCallAndFilterAndHeader
    return CheckCallAndFilter(args, **kwargs)
  File "/Users/dantup/Dev/Google/depot_tools/gclient_utils.py", line 525, in CheckCallAndFilter
    **kwargs)
  File "/Users/dantup/Dev/Google/depot_tools/subprocess2.py", line 262, in __init__
    % (str(e), kwargs.get('cwd'), args[0]))
OSError: Execution failed with error: [Errno 2] No such file or directory.
Check that /Users/dantup/Dev/Google/dart-sdk or download_from_google_storage exist and have execution permission.
dantup-macbookpro:dart-sdk dantup$

I wondered if maybe depot_tools should come first in my PATH, but in these docs it says "Add depot_tools to the end of your PATH" (emphasis on end theirs).

@whesse Who would best be able to answer this question?

It may be an issue with depot_tools or something else, but I couldn't find any answers online (lots of people have had similar issues with gclient and the answer vary from them being out of date (I only just cloned mine) to "just ignore it and build anyway").
FWIW, I had similar issues when I previously did this and I think I just ignored them because I was only making fairly minor modifications; however I did have issues with things like the pre-commit checks when using Gerrit that may have been related so I was hoping to get things set up "properly" on my corp laptop.

I edited the python script to output what it was trying to run and seems that it's dying on this:
['download_from_google_storage', '--no_auth', '--no_resume', '--bucket', 'dart-dependencies', '--recursive', '--directory', 'sdk/third_party/d8']

Running that manually gives this:
dantup-macbookpro:dart-sdk dantup$ download_from_google_storage --no_auth --no_resume --bucket dart-dependencies --recursive --directory sdk/third_party/d8
Traceback (most recent call last):
  File "/Users/dantup/Dev/Google/depot_tools/download_from_google_storage.py", line 604, in <module>
    sys.exit(main(sys.argv))
  File "/Users/dantup/Dev/Google/depot_tools/download_from_google_storage.py", line 600, in main
    options.extract)
  File "/Users/dantup/Dev/Google/depot_tools/download_from_google_storage.py", line 401, in download_from_google_storage
    gsutil.check_call('version')
  File "/Users/dantup/Dev/Google/depot_tools/download_from_google_storage.py", line 108, in check_call
    timeout=self.timeout)
  File "/Users/dantup/Dev/Google/depot_tools/subprocess2.py", line 458, in communicate
    proc = Popen(args, **kwargs)
  File "/Users/dantup/Dev/Google/depot_tools/subprocess2.py", line 262, in __init__
    % (str(e), kwargs.get('cwd'), args[0]))
OSError: Execution failed with error: [Errno 2] No such file or directory.
Check that None or vpython exist and have execution permission.

So I got that to print what it's trying to run and I get:
['vpython', '/Users/dantup/Dev/Google/depot_tools/gsutil.py', '--force-version', '4.28', 'version']

Running that manually results in:
dantup-macbookpro:dart-sdk dantup$ vpython /Users/dantup/Dev/Google/depot_tools/gsutil.py --force-version 4.28 version
Traceback (most recent call last):
  File "/Users/dantup/Dev/Google/depot_tools/gsutil.py", line 182, in <module>
    sys.exit(main())
  File "/Users/dantup/Dev/Google/depot_tools/gsutil.py", line 179, in main
    clean=args.clean)
  File "/Users/dantup/Dev/Google/depot_tools/gsutil.py", line 152, in run_gsutil
    return subprocess.call(cmd, shell=IS_WINDOWS)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 522, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Make that print results in this:
['vpython', '-vpython-spec', '/Users/dantup/Dev/Google/depot_tools/gsutil.vpython', '--', '/Users/dantup/Dev/Google/depot_tools/external_bin/gsutil/gsutil_4.28/gsutil/gsutil', '-o', 'GSUtil:software_update_check_period=0', 'version']

Running that manually seems to run with no errors:
dantup-macbookpro:dart-sdk dantup$ vpython -vpython-spec /Users/dantup/Dev/Google/depot_tools/gsutil.vpython -- /Users/dantup/Dev/Google/depot_tools/external_bin/gsutil/gsutil_4.28/gsutil/gsutil -o GSUtil:software_update_check_period=0 version
gsutil version: 4.28
dantup-macbookpro:dart-sdk dantup$

I'm not sure why that command seems to work for me but fails in the script... I'll try and do a bit more digging...

So, I fixed it! It turned out to be fairly simple - I'd used tildes ~ in my PATH, and they resolved fine in the terminal but not inside Python, which is why it culdn't find vpython. Doh.

DanTup, thanks for this thread and it helps me a lot. I changed ~ in my PATH. it can be resolved.

Replace ~ with absolute path also works for me as well. Thanks DanTup!