added browserify support

Fixes #7000.

Two things:

[ ] the package.json shall not contain browserify specific code/dependencies -- this file is not redistributed at pdfjs-dist.
[ ] embedding/reading entire file and loading it via blob is not solution we are looking for -- no caching and unneeded memory usage.

I see. Well if that's not a valid solution then I guess the worker will need to be bundled separately and have it's own URL. I think it's either that or the Blob.

Closing as favor of #7150 and base on the comment above.


Write a README.md with instructions on how to use our webapp

We need a readme with some basic run instructions.
We could also add some thinking we did about our app and what we wanted to achieve.
This should be done at the end, once our app is finished.

In order to setup you need to run
pip install -r requirements.txt
python manage.py migrate
python manage.py setup_tasks

These instruction should be included in the readme

Further information that should be included in the readme:

What our project is and how we fit into the theme "the early internet"
Maybe include a list of features that we thought of but did not accomplish because of the time
A preview image (see below)

The icons we are using are provided by tablericons
You should also mention that django-q is currently not working in Python 3.8 therefore I wrote a small command which manually runs the tasks but in other python versions the tasks should run every day


Unify "sign up with slack" and "log in with slack".

Describe the feature you'd like
When a user tries to log in with slack and does not have an account - they should be prompted to make an account with slack - or at least given the option.
Describe the benefits this feature would bring to BookStack users
This will help reduce confusion
Additional context
My organization has the issue where people expect to simply be able to log in with slack and when it does not work they get confused. Most "log in with social" features do not require you to "register with it" first.
It would be extremely helpful if the user would be prompted to sign up with slack if they try to log in with slack and that slack account has not been signed up yet.

Hi @timeandtimeago,
Thanks for the suggestion, I think what you're after might already be in BookStack but just requires a small configuration change. Third-party auth methods have "Auto Register" options available.
I think, by adding the below to your .env option you will achieve your ideal functionality:
SLACK_AUTO_REGISTER=true

Since it's been a few weeks since last response I'm going to close this but feel free to open a new issue if the above does not meet your needs in some way.


Use IN_LORRI_SHELL to auto detect shell.nix

Closes #409.
Overview
The IN_LORRI_SHELL environment variable points to current shell.nix
file. If this environment variable points to a file in any parent
directory of current working directory, then this shell file is used
as the default value for --shell-file argument for commands.
This is my first time writing rust code so please be patient with me till I get the code & tests right.

Checklist

[ ] Updated the documentation (code documentation, command help, ...)
[ ] Tested the change (unit or integration tests)
[ ] Amended the changelog in release.nix (see release.nix for instructions)

The IN_LORRI_SHELL environment variable points to current shell.nix
file.

IN_LORRI_SHELL should only be set inside of lorri shell, so I don’t understand how this would work.

I just ran lorri init with debug executable built from master. In the generated GC root, bash-export file had IN_LORRI_SHELL variable which was pulled in by direnv hook.
Here is my command log

~/Documents/lt
❯ ./lorri init
May 28 20:45:21.552 INFO wrote file, path: ./shell.nix
May 28 20:45:21.553 INFO wrote file, path: ./.envrc
May 28 20:45:21.554 INFO done
direnv: error /Users/sbark/Documents/lt/.envrc is blocked. Run `direnv allow` to approve its content
~/Documents/lt
❯ direnv allow
direnv: loading ~/Documents/lt/.envrc
May 28 20:45:29.418 INFO lorri has not completed an evaluation for this project yet, expr: /Users/sbark/Documents/lt/shell.nix
direnv: export +IN_NIX_SHELL
~/Documents/lt via ❄  nix-shell
❯ ./lorri watch --once
May 28 20:45:42.293 INFO build message, message: BuildResults { output_paths: OutputPaths { shell_gc_root: RootPath("/Users/sbark/Library/Caches/com.github.target.lorri.lorri.lorri/gc_roots/b95f9ffcda6bfc1d293707576528c9e3/gc_root/shell_gc_root") } }, expr: /Users/sbark/Documents/lt/shell.nix
direnv: loading ~/Documents/lt/.envrc
direnv: export +AR +AS +CC +CONFIG_SHELL +CXX +HOST_PATH +IN_LORRI_SHELL +IN_NIX_SHELL +LD +LD_DYLD_PATH +MACOSX_DEPLOYMENT_TARGET +NIX_BINTOOLS +NIX_BINTOOLS_WRAPPER_x86_64_apple_darwin_TARGET_HOST +NIX_BUILD_CORES +NIX_BUILD_DONT_SET_RPATH +NIX_BUILD_TOP +NIX_CC +NIX_CC_WRAPPER_x86_64_apple_darwin_TARGET_HOST +NIX_CFLAGS_COMPILE +NIX_COREFOUNDATION_RPATH +NIX_CXXSTDLIB_COMPILE +NIX_CXXSTDLIB_LINK +NIX_DONT_SET_RPATH +NIX_ENFORCE_NO_NATIVE +NIX_HARDENING_ENABLE +NIX_IGNORE_LD_THROUGH_GCC +NIX_INDENT_MAKE +NIX_LDFLAGS +NIX_LOG_FD +NIX_NO_SELF_RPATH +NIX_STORE +NM +PATH_LOCALE +RANLIB +SDKROOT +SIZE +SOURCE_DATE_EPOCH +STRINGS +STRIP +__darwinAllowLocalNetworking +__impureHostDeps +__propagatedImpureHostDeps +__propagatedSandboxProfile +__sandboxProfile +allowSubstitutes +buildInputs +builder +configureFlags +depsBuildBuild +depsBuildBuildPropagated +depsBuildTarget +depsBuildTargetPropagated +depsHostHost +depsHostHostPropagated +depsTargetTarget +depsTargetTargetPropagated +doCheck +doInstallCheck +extraClosure +gl_cv_func_getcwd_abort_bug +name +nativeBuildInputs +nobuildPhase +origArgs +origBuilder +origExtraClosure +origOutputs +origPATH +origSystem +out +outputs +patches +phases +preHook +preferLocalBuild +propagatedBuildInputs +propagatedNativeBuildInputs +shell +shellHook +stdenv +strictDeps +system ~PATH
~/Documents/lt via ❄  nix-shell took 5s
❯ echo $IN_LORRI_SHELL
/Users/sbark/Documents/lt/shell.nix

However IN_LORRI_SHELL is only set when the lorri/direnv setup is already complete, so there is a bootstrap problem here.
Depending on IN_LORRI_SHELL means running in a subdirectory will

work if the direnv setup is working and there is a previous generation
not work if there is no previous generation or the direnv setup is not working

I don’t think this is a user-friendly way to implement this, because whether it works depends on the state of previous evaluations.

I can set IN_LORRI_SHELL along with IN_NIX_SHELL & EVALUATION_ROOT so it is not dependent on previous generation being present. However, this still requires a working direnv integration. Would this be an acceptable solution to you?

I’m afraid that people might inherit IN_LORRI_SHELL from some other directory; but my tests with direnv show that it will unload the outer environment even if the .envrc is blocked, so we can be reasonably sure that it is unset.
However, with lorri shell I’m not so sure if people don’t want to use direnv, it will be set everywhere in that shell, for example:
/a/b/current-path $ lorri shell
…
/a/b/current-path $ printenv IN_LORRI_SHELL
/a/b/current-path
/a/b/current-path $ cd ..
/a/b $ printenv IN_LORRI_SHELL
/a/b/current-path

So people would cd around but all of their lorri commands would default to that directory from then on. I assume that would be very confusing.
This always works however, even without this patch:
$ lorri watch --once --shell-file $IN_LORRI_SHELL

Closing because no reply & nobody else displayed interest in the feature.


Add repo for dynamic programming and a few problems

@vanditkhurana @VGandhi27 please assign it to me

@vanditkhurana okay


Good or bad idea to check in .happpypack, etc?

Good or bad idea to check in the files that happypack generates, into the project repo?

Bad. I'd consider this in the same vein as a temp, cache, node_modules folder.

Yeah I'd second @rohan-buchner - remember that the benefits of happypack don't lie in caching, that's just a cheap bonus we could pull off.
If you're looking into doing this, I would suggest investing the effort into the hard-source which has such an aggressive impact on (successive) build performance that it may make the effort worthwhile.
You could use both plugins; happypack for faster initial builds, hard-source for successive ones.


There is no "installed templates" when you click on new project.

[Enter feedback here]

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

ID: 2381f0f1-6b3e-694d-3902-c5cd8397f806
Version Independent ID: 0f1a499c-62ab-0a3a-703d-2d3c635bc751
Content: How to: Create CLR Console Applications (C++/CLI)
Content Source: docs/dotnet/how-to-create-clr-console-applications-cpp-cli.md
Product: visual-cpp
Technology: cpp-cli
GitHub Login: @TylerMSFT
Microsoft Alias: twhitney

@marcel-landman
Thanks for pointing that out. The instructions haven't been updated for VS 2017 and 2019, which have a different new project dialog. We'll give the instructions an update.
For now, here's how to create a new CLR console project: On the menu bar, choose File > New > Project to open the Create a new project dialog. Enter clr console in the search box. Select CLR Console App (.NET Framework) from the list of templates, and then choose Next. On the Configure your new project page, enter a project name, then choose Create. You should be good to go.

Thanks Colin.
I do not get any template matches for  “clr console”. In fact, there are no template matches to “clr” at all. The search is a nice feature, but the old hierarchical would have been a nice fall back. The hierarchical view takes more effort to find a template, but it doesn’t leave me with the feeling “am I typing the write keywords”.
My work around was to create a c++ console app and change the “configuration type” in “General”. It seems to work somewhat but I am having difficulties with intellisense. I am #using <some_csharp_project.dll>, which intellisense highlights as “unknown directive” eventhough it compiles fine. I tried deleting the .vs directory and restart VS. Intellisense does detect when I misspell a property in one of the classes from that dll, but suggestions don’t work so I end up doing a lot of jumping back and forwards. So perhaps other properties were needed which I probably would have gotten if I had found the right template.
Regards,
Marcel
From: Colin<EMAIL_ADDRESS>Sent: 04 December 2020 22:12
To<EMAIL_ADDRESS>Cc: Landman, Marcel (Secure Solutions &<EMAIL_ADDRESS><EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/cpp-docs] There is no "installed templates" when you click on new project. (#2634)
EXTERNAL
@marcel-landmanhttps://github.com/marcel-landman
Thanks for pointing that out. The instructions haven't been updated for VS 2017 and 2019, which have a different new project dialog. We'll give the instructions an update.
For now, here's how to create a new CLR console project: On the menu bar, choose File > New > Project to open the Create a new project dialog. Enter clr console in the search box. Select CLR Console App (.NET Framework) from the list of templates, and then choose Next. On the Configure your new project page, enter a project name, then choose Create. You should be good to go.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/cpp-docs/issues/2634#issuecomment-739051196, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AISNSUP5L54XQYOMBKE6LLDSTFNEFANCNFSM4UNHDZZQ.
This message has been scanned by Capita’s systems, but if you believe it to be spam then click herehttps://www.mailcontrol.com/sr/MZbqvYs5QwJvpeaetUwhCQ== to report this email as spam.
This email originates from outside of Capita.
Keep this in mind before responding, opening attachments or clicking any links. Unless you recognise the sender and know the content is safe.
If in any doubt, the grammar and spelling are poor, or the name doesn't match the email address then please contact the sender via an alternate known method.
This email is security checked and subject to the disclaimer on web-page: https://www.capita.com/email-disclaimer.aspx

@marcel-landman
If the CLR template didn't appear, then if may be you haven't installed support for C++/CLI in Visual Studio. If you launch the VS installer and choose the Modify button, there's an Individual components tab next to Workloads at the top of the next page. Choose it, then scroll to the Compilers, build tools, and runtimes section, where you should see several options for C++/CLI. Select the latest one, then choose the Modify button. I think this is all you need, as long as you've also already installed the .NET desktop development workload. The compiler already knows how to compile for /clr, but the component adds other support you need to the IDE.

Content updated a week ago, but I forgot to close the issue.


I want to apply senet to another network

I want to apply senet to another network，Do you have some examples？
（PYTORCH）
I want to know where the code is different from before and after the code.

Hi, it's just replacing some part of your network with se_module in https://github.com/moskomule/senet.pytorch/blob/master/se_module.py. I think https://github.com/moskomule/senet.pytorch/blob/master/se_inception.py is an example.

thank you very much!!!,
I usually introduce BN-inception structure from the pytorch package, and then use the BN-inception structure of the training data, and now I want to modify and add the SE structure in the BN-inception structure, which uses the structure of SE was added to training data, do I need to rewrite a BN-inception network and then adding SE.
Then I'll take a closer look at the two websites you've just sent. I could also ask you some questions
Thank you once again.

What is the meaning of the following code？in se_inception.py
def se_inception_v3(**kwargs):
return Inception3(**kwargs)

Oh thanks, it's a typo. Should be SEInception3. I'll fix.


ACCSEC-19995 Move xcconfig variables

Jira Ticket

ACCSEC- 19995

Description

Move config variables to a swift class

Commit message

fix: Read SDK version and config

Code coverage
Total coverage: 95.38%

File
Coverage

TwilioVerify/TwilioVerify/Sources/Domain/Factor/PushFactory.swift
99.33%

TwilioVerify/TwilioVerify/Sources/Networking/RequestHelper.swift
100.00%

Powered by Slather

  Generated by :no_entry_sign: Danger

Code coverage
Total coverage: 95.38%

File
Coverage

TwilioVerify/TwilioVerify/Sources/Domain/Factor/PushFactory.swift
99.33%

TwilioVerify/TwilioVerify/Sources/Networking/RequestHelper.swift
100.00%

Powered by Slather

  Generated by :no_entry_sign: Danger

Code coverage
Total coverage: 95.38%

File
Coverage

TwilioVerify/TwilioVerify/Sources/Domain/Factor/PushFactory.swift
99.33%

TwilioVerify/TwilioVerify/Sources/Networking/RequestHelper.swift
100.00%

Powered by Slather

  Generated by :no_entry_sign: Danger

Code coverage
Total coverage: 95.38%

File
Coverage

TwilioVerify/TwilioVerify/Sources/Domain/Factor/PushFactory.swift
99.33%

TwilioVerify/TwilioVerify/Sources/Networking/RequestHelper.swift
100.00%

Powered by Slather

  Generated by :no_entry_sign: Danger

Added commit message

Added commit message

Code coverage
Total coverage: 95.38%

File
Coverage

TwilioVerify/TwilioVerify/Sources/Domain/Factor/PushFactory.swift
99.33%

TwilioVerify/TwilioVerify/Sources/Networking/RequestHelper.swift
100.00%

Powered by Slather

  Generated by :no_entry_sign: Danger

Code coverage
Total coverage: 95.38%

File
Coverage

TwilioVerify/TwilioVerify/Sources/Domain/Factor/PushFactory.swift
99.33%

TwilioVerify/TwilioVerify/Sources/Networking/RequestHelper.swift
100.00%

Powered by Slather

  Generated by :no_entry_sign: Danger


Very poor IMG2IMG outputs on latest version of SD.Next

Hello,
issue has been documented over on SD.Next's repository: vladmandic/automatic#2457
Could you kindly take a look at it and see if you can solve it or help Vlad with it?
If you need more information or want me to run some tests let me know.

(Also contains a minor tweak to make the config options be visible by default). those are hidden if you're using a scheduler that doesn't use them, and visible if you use a scheduler that does have them.
I'm not sure why you did the - 2 change.
The total_steps part, uh, shouldn't be needed in theory unless SDNext is doing something weird - but assuming perhaps it is, if your change worked it'd be from that part, so I've gone ahead and imported just that bit

@mcmonkey4eva Sorry for the confusion and thanks for the reply, my post wasn't clear. I'm actually not using SDNext, just the devel branch of normal webUI. I was just asking the other person if my changes helped with their issue (since I thought it could possibly be related to the step count thing).
I don't actually know what I'm doing, basically I added a bunch of debug output to the script and looked at the values. - 2 there is what resulted in it hitting the scale I expected on the last step.

those are hidden if you're using a scheduler that doesn't use them, and visible if you use a scheduler that does have them.

They got hidden every time the page reloaded for me and the only way to see them would be to toggle the script to disabled then back to enabled and then go and change type to a different value and then back again (so the limits would show up).
Possibly it's related to using the dev version of webui rather than the main one. Anyway, you probably shouldn't make changes based on what I said unless you can verify it's actually correct. :) All I can really say is I get better results with those changes with my current set up.

I haven't tested that yet, but if you look at the late replies on the issue I linked, it seems it was just an issue with two settings not showing up and since they defaulted to the minimum value they gave terrible results.
The two settings show up by fiddling a bit with other menus and once they're set to appropriate values the outputs are good again.

Wait, what do you mean "when the page reloaded" and all?
Auto webui doesn't persist params at all, so the fields are hidden again after a reload because they're no longer relevant (back to Constant)

@mcmonkey4eva

Wait, what do you mean "when the page reloaded" and all? Auto webui doesn't persist params at all

It actually can, you can save the state as defaults: Settings -> Other -> Defaults. In that case, it'll load with dynamic thresholding enabled but you can't see the settings until you follow the process I described before: toggle it off then on again to be able see any configuration options and then change the the scaling types to something else then back again to actually see stuff like the minimums. That's a built in feature, not an addon as far as I know (pretty sure it's also not only in the devel branch).

Ehhh screw it I'm not up for a fight with gradio's broken software, I went ahead and just made all params always visible. Another bit of nicer-UI lost to gradio being too buggy to reliably have niceness :(


LifeCam vs. Raspberry Pi Camera v2

Since we're using the Cognitive Services Face API to recognize the face and not Hello (don't even know if the life cam supports hello), anyone think the RP camera might be usable through the mirror so as to avoid the kibble sticking out visibly?

The camera sticking out would definitely be a design improvement. We wanted to integrate the camera in the bezel but were short on time for //BUILD. Our thought was to take the LifeCam apart and make a hole in the mirror frame that it would fit into.
Hello isn't supported on the Pi itself it requires a few missing components / more power on the device. If you are referring to this RP camera module it's currently not supported by Windows IoT. Here is the full list of supported devices if you'd like to check it out.

If you are referring to this RP camera module it's currently not supported by Windows IoT.

D'oh! Hadn't even considered that possibility. Curses, so much for easily cutting it down. At least the LifeCAm is small. Might find a way to try it internal. Thanks!

Send a pick or two if you do make it internal. That'll look slick.

Will do.


Make a Text-Only Poster

Social Media - Bot

Comment - Bot

Scrape Footprint

Post it

Make a Bot to post Posts

Web UI

Upload Content
Post automatically to

Insta
Tiktok
Facebook
Twitter
Mastodon
WhatsApp
Youtube

TODO:

Research whats already there in terms of Automatic Post Programs
Tiktok:

https://pypi.org/project/tiktok-uploader/
https://github.com/TobbleCobble/reddit-video-maker

Start with only text-based

Bot to make Short Videos
- 4-5 Pictures
- Music
Caption

[ ]


Make metric export interval configurable

JS doesn't support this environment variable OTEL_METRIC_EXPORT_INTERVAL (yet?). Looks like environment variable support is optional.
I think we'll have to add this as a config option in our distro if we want to use it, maybe as an env var, until it's added upstream. It is an option on the PeriodicExportingMetricReader for exportIntervalMillis, and the default seems to be 60s.
Originally posted by @JamieDanielson in https://github.com/honeycombio/honeycomb-opentelemetry-node/pull/132#discussion_r1048897065

@JamieDanielson what do you think about us just adding OTEL_METRIC_EXPORT_INTERVAL env var support to the distro and not making it a honeycomb specific configuration option? That way it stays consistent with the other distros and when support is added upstream it should just work.


MSSQL: Fix loading of column default values.

Q
A

Is bugfix?
✔

New feature?
❌

Breaks BC?
Maybe, if using incorrectly loaded default values

Tests pass?
✔

Fixed issues

Fixed a few related tests. It's ready for merge.

Merged. Thank you!


swift-atomics uses non-standard _Atomic(bool) operations

Swift Atomics currently exposes and/xor/or operations on booleans, and maps them to atomic_fetch_XXX_explicit calls in C. However, C17 does not define these operations on _Atomic(_Bool); it only defines them for other atomic integer types.
This is silently accepted by Clang, but it causes build issues when the _AtomicsShims module is compiled with GCC, such as with CMake.
Review Bool's atomic operations and figure out if we should deprecate loadThenLogicalOr and friends, or if we can continue exposing them (with this implementation or through compareExchange).

For now, I'm going to #ifdef out the shims when compiled outside Swift's Clang Importer.

Interesting. I had relied on cppreference to be correct, and assumed I did not need to read the standard.

This is silently accepted by Clang, but it causes build issues when the _AtomicsShims module is compiled with GCC, such as with CMake.

CMake not using a swift-toolchain clang seems like a bigger problem.

@stephentyrone - at the very least, MSVC needs to be supported as a C compiler.  There are subtle bugs in clang/LLVM when it comes to some platforms, and so assuming a swift toolchain compatible clang is just as big an issue IMO.

The current #if __swift__ clauses should nicely step around C compiler problems.
Meanwhile, https://github.com/apple/swift-atomics/pull/74 starts walking towards getting rid of the C module altogether. It'll require compiler and stdlib changes to land; I'm going to do my best to deliver them.
The use of non-standard _Atomic(bool) operations is an issue specific to the current _AtomicsShims module. We could easily fix that, but it does not currently cause problems, so I'm not going to bother.
Closing.

https://github.com/apple/swift-atomics/pull/74 refactored things so that Bool now goes through Int8 atomics instead, even when we're using C atomics.


Add df.empty property

[ ] Tests added / passed
[x] Passes black dask / flake8 dask

We’ll need to be careful here. Getting the length of the DataFrame is expensive since it requires computation.
Also I suspect that checking df.empty is typically followed by a bool, so we maybe don’t want a delayed result here.

One more comment on the implementation, DataFrame.empty should indicate whether either dimension has length 0. This just checks whether the rows are length 0.

Agreed on both points @TomAugspurger .  From what I could tell, there doesn't seem to be any metadata that would allow a quick answer to this question.  Do you have any suggestions?
And if there's no quick way to calculate this at the moment, do you still think its worth adding the property so that the behavior more closely matches pandas?

I'm not sure. It's generally expected that accessing a property is inexpensive. Potentially triggering a read from disk to check that would be surprising.
This may be a case where it's appropriate to explicitly differ from pandas, either by not implementing DataFrame.empty, or by providing / documenting something like df.map_blocks(lambda x: x.empty).compute().all() as an alternative.

What about returning a delayed value?  Something like ...
def empty(self):
    return self.size == 0

That way people could do something like df.empty.compute() to get the full value.
However, if they include this within an if statement we would want to make sure that to err.  It looks like Dask dataframe scalars don't err out currently when we call bool on them.  We should probably change this?

I have a situation where I want to lazily return something different if the dataframe is empty. But this condition must also be lazy.
Right now if I use len(df.index) == 0 this performs a computation ahead of time.

It  seems like dask requires some conditional combinator that is lazy.
Maybe there is a way to combine length checks with dask.delayed?

You can use .map_partitions(len) and (lazily) sum those to get the length
of the dataframe.
On Fri, Jan 10, 2020 at 1:14 AM Roger Qiu<EMAIL_ADDRESS>wrote:

I have a situation where I want to lazily return something different if
the dataframe is empty. But this condition must also be lazy.
Right now if I use len(df.index) == 0 this performs a computation ahead
of time.

It seems like dask requires some conditional combinator that is lazy.
Maybe there is a way to combine length checks with dask.delayed?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dask/dask/pull/5711?email_source=notifications&email_token=AAKAOITMHN6RYVGJW7WJ7ZDQ5AN47A5CNFSM4J2WZM52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIS5KYY#issuecomment-572904803,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAKAOIRF2S7IVPIWX5U3C5LQ5AN47ANCNFSM4J2WZM5Q
.

Perhaps also the size property?
On Fri, Jan 10, 2020 at 5:55 AM Tom Augspurger<EMAIL_ADDRESS>wrote:

You can use .map_partitions(len) and (lazily) sum those to get the length
of the dataframe.
On Fri, Jan 10, 2020 at 1:14 AM Roger Qiu<EMAIL_ADDRESS>wrote:

I have a situation where I want to lazily return something different if
the dataframe is empty. But this condition must also be lazy.
Right now if I use len(df.index) == 0 this performs a computation ahead
of time.

It seems like dask requires some conditional combinator that is lazy.
Maybe there is a way to combine length checks with dask.delayed?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<
https://github.com/dask/dask/pull/5711?email_source=notifications&email_token=AAKAOITMHN6RYVGJW7WJ7ZDQ5AN47A5CNFSM4J2WZM52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIS5KYY#issuecomment-572904803
,
or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/AAKAOIRF2S7IVPIWX5U3C5LQ5AN47ANCNFSM4J2WZM5Q
.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/dask/dask/pull/5711?email_source=notifications&email_token=AACKZTCBWVQJ3HLYKHGERVLQ5B46VA5CNFSM4J2WZM52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIT7QYY#issuecomment-573044835,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACKZTDGQAXHCM746GCFVXDQ5B46VANCNFSM4J2WZM5Q
.

What about returning a delayed value?

I'm a bit hesitant to do that. In my experience, .empty will almost always be used with a boolean check. With a Dask DataFrame, checking the sizes of the two dimensions have very different costs. I think we should encourage the user to think about this carefully.
So I think my preferred change would be

Clear docs on Why dask.dataframe doesn't implement .empty
Possibly, we implement a .empty that explicitly raises a NotImplementedError with a clear message indicating what to do, depending on whether you're checking for no rows vs. no columns (or both).

Sounds good to me.  I prefer 2 over 1
On Tue, Jan 14, 2020 at 11:50 AM Tom Augspurger<EMAIL_ADDRESS>wrote:

What about returning a delayed value?
I'm a bit hesitant to do that. In my experience, .empty will almost
always be used with a boolean check. With a Dask DataFrame, checking the
sizes of the two dimensions have very different costs. I think we should
encourage the user to think about this carefully.
So I think my preferred change would be

Clear docs on Why dask.dataframe doesn't implement .empty
Possibly, we implement a .empty that explicitly raises a
NotImplementedError with a clear message indicating what to do,
depending on whether you're checking for no rows vs. no columns (or both).

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/dask/dask/pull/5711?email_source=notifications&email_token=AACKZTEQRKWB4XMB6P7JXWDQ5YJQVA5CNFSM4J2WZM52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEI54ORI#issuecomment-574342981,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACKZTC32WF5FGEKQCK7VALQ5YJQVANCNFSM4J2WZM5Q
.

Thanks @rockwellw!


Fix bug in kube-proxy of not updating iptables rules if a service's public IPs change

And add tests to catch the bug. Ran into this while testing #5180.

Updated based on suggestion in #6061.

Thanks Tim.  Sorry - I just noticed this now :-(


Added option to set the scaling of Owl

Added an optional variable "_scale" that is default set to 1, set it if the Owl instance is scaled with css transform so the drag offset is still correct

@blueberry-media, it looks like you wanted to create a pull request with (https://github.com/blueberry-media/OwlCarousel2/commit/7204c3207879765f1490fdf9bdc1bf47dd5cdfcf) but accidentally created one  that would merge our develop branch into master.
I'm going to close this one, but feel free to create a new one with https://github.com/blueberry-media/OwlCarousel2/commit/7204c3207879765f1490fdf9bdc1bf47dd5cdfcf in it.

Yes indeed, thanks for closing! Will create a new appropriate request ;)


Mint Module (lang)

[X] I have read the contributing guidelines.
[X] I have searched the issue tracker for similar requests.
[X] I have searched the module list in case my feature was already implemented.
[X] I have confirmed that my request remains unfulfilled on the latest commit of Doom.

Describe your request
I want to open up discussion about adding a mint layer to spacemacs:
Briefly explain its use-case
Here are some potential pieces to the layer:
https://github.com/creatorrr/emacs-mint-mode
Language Server Protocol
The language server for mint is built into the language itself.
See here:
https://github.com/mint-lang/mint/tree/df3ac8b3ef81a2f3a5e46ccc09d8a1b3cd16066e/src/ls
and here:
https://spectrum.chat/mint-lang/development/language-server-support~227be091-fb65-40fb-ab60-952be791b28d

Thanks for the request, but the configuration required for mint-mode is too trivial to warrant its own module. When this changes I'll gladly reconsider.


Allow weakref(null) in gdscript

Tiny addition I personally found useful - this allows us to
var my_ref := weakref(null)

for nullable weak reference (with type hint!). When trying to test if my_ref is holding valid reference, we can just if my_ref.get_ref(): instead of if my_ref and my_ref.get_ref(): everywhere.

Thanks!


Implement JSON-RPC changes for 1559

:+1:  I had been tracking this with #2215 but it is worth having a separate issue


feat: unconfirmed transmission latency metric & stale transmissions

Motivation
It would be beneficial for validators to have the ability to track the time delta between when each node first sees a transmission ( in consensus.add_unconfirmed_solution and consensus.add_unconfirmed_transaction) and when it gets added to the block ( in consensus.try_advance_to_next_block-- where the other block metrics are currently being updated). I created one histogram metric, snarkos_consensus_transmission_latency in prometheus, that is split with a label distinguishing transactions and solutions.
In addition, I added a counter (always increasing) metric for transmissions that have not been seen in a block for a certain threshold (currently set to 30 mins, but could be changed)
Test Plan
I ran this on a 10 node devnet:
Transmission latency average across all 10 nodes(so far only seeing transactions)

Stale transactions:

for some reason when i compile the code locally the check-clippy test is just a warning rather than an error 🤔

tested and everything works, removed registering the histogram without labels bc it creates extra unused/empty data timeseries in grafana


Need access to pcf-concourse-pipelines

Hi there,
I need access to these pipelines as I am working on a POC for a customer. Planning to use pipelines to install several components including PCF.
Thank you
Prasanna Upperi

not sure what this PR is about. Hence closing it


Unable to use self-signed certificates

I'm attempting to use self-signed certificates with my RabbitMQ server, and am using the amqps scheme, as opposed to amqp.DialTLS which as per docs say it does server, and host verification.
When using self-signed certificates, I get the error x509: certificate signed by unknown authority. Is this because I'm using the "zero value tls config"? If so, is the only way to solve this by providing a tls.Config and using amqp.DialTLS

solved the issue by importing the client certificates


changed input element properties

changed the mouse pointer behavior when hovered and focused on input elements in login form.

mention the issue number you're solving as well in the pr so it can be linked

@raghav1030  are you attending this issue?

Yes I'll be making changes  into it.
Actually my end sems were going on so I was a bit inactive here.

Yes I'll be making changes into it.
Actually my end sems were going on so I was a bit inactive here.

ohhh alright then

Thanks for your contribution! :)


fix: Room - Selection list RHP does not show sliding animation while being dismissed.

Details

Fixed Issues
$ https://github.com/Expensify/App/issues/38665
PROPOSAL:
Tests

Go to staging.new.expensify.com.
Go to FAB > Start room.
Go to Room.
Click Workspace (or Who can post or Visibility).
Click outside the RHP
Verify there is an animation

[x] Verify that no errors appear in the JS console

Offline tests

Go to staging.new.expensify.com.
Go to FAB > Start room.
Go to Room.
Click Workspace (or Who can post or Visibility).
Click outside the RHP
Verify there is an animation

QA Steps

Go to staging.new.expensify.com.
Go to FAB > Start room.
Go to Room.
Click Workspace (or Who can post or Visibility).
Click outside the RHP
Verify there is an animation

[x] Verify that no errors appear in the JS console

PR Author Checklist

[x] I linked the correct issue in the ### Fixed Issues section above
[x] I wrote clear testing steps that cover the changes made in this PR

[x] I added steps for local testing in the Tests section
[x] I added steps for the expected offline behavior in the Offline steps section
[x] I added steps for Staging and/or Production testing in the QA steps section
[x] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
[x] I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).

[x] I included screenshots or videos for tests on all platforms
[x] I ran the tests on all platforms & verified they passed on:

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

[x] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
[x] I followed proper code patterns (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
[x] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method

[x] If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:

[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I followed the guidelines as stated in the Review Guidelines
[x] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] I verified that if a function's arguments changed that all usages have also been updated correctly
[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
[x] If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:

[x] I verified that all the inputs inside a form are aligned with each other.
[x] I added Design label and/or tagged @Expensify/design so the design team can review the changes.

[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native
https://github.com/Expensify/App/assets/85894871/9ba26195-eac1-43f4-9b09-81b0a37107cf

Android: mWeb Chrome
https://github.com/Expensify/App/assets/85894871/3ac38e9c-b949-4822-a943-79b108cac6c6

iOS: Native
https://github.com/Expensify/App/assets/85894871/5bdc5279-09c6-4079-8f56-48327705d94d

iOS: mWeb Safari
https://github.com/Expensify/App/assets/85894871/e1b8ad23-6af0-4895-8867-4de2f1a2c17b

MacOS: Chrome / Safari
https://github.com/Expensify/App/assets/85894871/c90ad30f-cede-43a8-a049-e7cd404e13db

MacOS: Desktop
https://github.com/Expensify/App/assets/85894871/3710b084-595f-4118-b2ad-f5f8de3158bf

@Krishna2323 did you have the time to investigate this?

Why the issue doesn't happen when changing the merchant in the create money request flow?

@Krishna2323 bump on hoangzinh comment above

@rlinoz @danieldoglas what do you think about my comment here again https://github.com/Expensify/App/pull/38711#issuecomment-2021711895? Thanks

@rlinoz @danieldoglas — any update? Thanks!

I don't know what else we can do here, did we ask on the expensify-open-source channel?
I got this hacky solution working, which mostly works, but I don't really wanna go with it.
onBackdropPress={() => {
    Navigation.dismissModal();
    setTimeout(() => hidePickerModal(), 100);
}}

Yeah, I think we should, so we can try to get to a proper solution for this

Ok, let's go with that, we reopen the issue for proposals and if no good one comes up we close since we don't want to create this screens as separate pages.


About the source code release time

Hi there, I will appreciate it if you can tell me what's your schedule for source code release, thanks again!
Best regards.

Maybe after 3 or 4 months.


NetworkCloud Azure-cli-extension 2024-07-01 API

NetworkCloud Azure-cli-extension update for API version 2024-07-01 API
Corresponding AAZ PR :https://github.com/Azure/aaz/pull/574
This checklist is used to make sure that common guidelines for a pull request are followed.
Related command

General Guidelines

[x] Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
[ ] Have you run python scripts/ci/test_index.py -q locally? (pip install wheel==0.30.0 required)
[x] My extension version conforms to the Extension version schema

For new extensions:

[ ] My extension description/summary conforms to the Extension Summary Guidelines.

About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

Thank you for your contribution! We will review the pull request and get back to you soon.

Hi @priyamshet
⚠ Release Requirements
Module: networkcloud

⚠ Remove azext.isPreview: true in azext_metadata.json for networkcloud

Notes

For more info about extension versioning, please refer to Extension version schema

according to the mentioned document. 2.0.0b4 is the next prevuew version and should be marked with the isPreview=true. We need clarification as to why this is being flagged.

@necusjz can you help with merging?


refactor: upgrade axioms

Current dependencies on/for this PR:

main

PR #121   👈

This stack of pull requests is managed by Graphite.


React native support

This is just an enhancement suggestion. I am building a marketplace app with react native and after finding other PSPs don’t meet my needs, I am planning to try using Mangopay.
Firstly, are their any libraries for React Native that handle Mangopay completely. If not, i would be happy to provide suggestions or try to rig a library myself.
Secondly, other PSP’s, like braintree for example, have drop in ui solutions for initiating payments. That might also be something to look into.
Again, these are just friendly suggestions. You are more than welcome to ignore all of them.

Hello @hi337,
First of all, thank you for taking the time to make some feedback.
We gladly accept your suggestion. We can't provide a timeline now regarding React Native, but we are definitely planning it. Same for the UI examples or starter for developers.
Don't hesitate to reach if you have more question or suggestion regarding Mangopay.
Have a nice day,


multiple read calls for 1 packet

At least s_client does not read the full packet from the kernel, but instead does multiple read() calls to read 1 packet. This is suboptimal and it would be better than we do this in 1 read call. Note that on the write side we actually do everything in 1 write() call.
This is what the connection with s_server looks like:
write(3, "\26\3\1\1(\1\0\1$\3\3i\375\310F`56\22\263\"FC\255E\2209\317\20\r\274\224"..., 301) = 301
read(3, "\26\3\3\0z", 5)                = 5
read(3, "\2\0\0v\3\3\267\\\16\250\374\261dQ:R\266\271\0326\337\275*\335N\22\374\231O\242L\35"..., 122) = 122
read(3, "\24\3\3\0\1", 5)               = 5
read(3, "\1", 1)                        = 1
read(3, "\27\3\3\0\27", 5)              = 5
read(3, "\231\351\224k\350\260Y\257\376\337F\247\220\262\226\267\360S\210gL0\244", 23) = 23
read(3, "\27\3\3\4\376", 5)             = 5
read(3, "\340K\335@\276\320\265-\255\7\237\264\212y\262\267\215!\31-\\\27\323\f\1tU\225\236pW\215"..., 1278) = 1278
read(3, "\27\3\3\2\31", 5)              = 5
read(3, "\327E\347ByO{2\374\243\335\315\221+\243\nO\332q\226\355\261\203M\342\265Eh~X^\25"..., 537) = 537
read(3, "\27\3\3\0E", 5)                = 5
read(3<EMAIL_ADDRESS>69) = 69
write(3, "\24\3\3\0\1\1\27\3\3\0E\37\370\20\226\310\305R\234\36c\226W\334\356<\221^7M\334D"..., 80) = 80
read(3, "\27\3\3\1\3", 5)               = 5
read(3, "\374\25@#\350:H\270\325\0107\244\216-\253x\34rR\0#\32\303\352\34O\361/\216\311L\214"..., 259) = 259

The server sends 6 records back, for each record we first read the first 5 bytes, then the rest of the record. We could have done this with 1 syscall instead of 12.

This behaviour can be controlled using SSL_CTX_set_read_ahead() but it is not on by default (except for DTLS where it cannot be switched off). This does have an impact on the behaviour of SSL_pending() see the man page for details.

Why is this not the default?

I guess because of the change in behaviour that it implies.

I guess we should then stop making changes, because they all change behaviour.

Read-ahead also is incompatible with protocols with "inverse STARTTLS" where they wait for bidirectional close_notify and then reuse the underlying socket. See here: https://tools.ietf.org/html/rfc5246#section-7.2.1

If the application protocol using TLS provides that any data may be
carried over the underlying transport after the TLS connection is
closed, the TLS implementation must receive the responding
close_notify alert before indicating to the application layer that
the TLS connection has ended.

But I have never heard of a protocol that does this, only the possibility of it being mentioned in the RFC. Though perhaps it exists, I dunno.

(Or rather, read-ahead as implemented in OpenSSL. If the read-ahead were done at a layer where the application layer could access the read but unconsumed bytes that would be fine. I believe the way to do that in OpenSSL today is to implement a custom BIO that internally reads ahead in the BIO_read implementation.)

I suppose it all boils down to question who do you favour; never-seen "STOPTLS" application, or virtually universal way to use TLS, i.e. till the end? From this angle read-ahead should be opt-out option, i.e. specifically for "STOPTLS" application, rather than opt-in for vast majority as it is now.

The "FTPS" protocol does support a "STOPTLS" operation: "[...] the client has full control over what areas of the connection are to be encrypted. Enabling and disabling of encryption for the FTPS control channel and FTPS data channel can occur at any time." – https://en.wikipedia.org/wiki/FTPS
But of course this is an extremely dubious way of using a rare protocol. It would need to be supported somehow, but making FTPS implementations change something would be far from the most disruptive change openssl has made recently.
Has anyone measured the actual benefits of readahead, though? I guess post-meltdown all those extra syscalls won't be as cheap as they used to be, but how big is the effect?

Not a 1.1.1 specific issue so removing that milestone.


proposal: build in hot-reload (templ generate --watch)

The documentation suggests using air - https://templ.guide/commands-and-tools/hot-reload
But it's installing another tool, and having to configure it. Running templ generate --watch would be a better user experience.
It would make #80 irrelevant, since it would be able to maintain internal state such as the last-updated time. https://github.com/fsnotify/fsnotify seems to be the library to use.
Since templ doesn't know how the web server is configured, it can't easily inject client side code to force a refresh.
But... templ could ship with HTTP middleware that implements hot reload. The middleware would be able to set the target directory that contains the templates and use fsnotify to watch it, or figure it the target directory from os.Args, run templ generate and then start a replacement of itself based on the os.Args. Since it's HTTP middleware, it could parse the output HTML and inject stuff into the page.
Alternatively, it could break the problem into two parts... so that templ generate --watch starts a web server on localhost which controls hot reload, and it also ships a middleware component that injects a script to connect to the templ generate --watch port (e.g. http://localhost:14734/) and deals with CORS.

https://github.com/loov/watchrun might be a good one to do this.

The documentation suggests using air - https://templ.guide/commands-and-tools/hot-reload
But it's installing another tool, and having to configure it. Running templ generate --watch would be a better user experience.
It would make #80 irrelevant, since it would be able to maintain internal state such as the last-updated time. https://github.com/fsnotify/fsnotify seems to be the library to use.
Since templ doesn't know how the web server is configured, it can't easily inject client side code to force a refresh.
But... templ could ship with HTTP middleware that implements hot reload. The middleware would be able to set the target directory that contains the templates and use fsnotify to watch it, or figure it the target directory from os.Args, run templ generate and then start a replacement of itself based on the os.Args. Since it's HTTP middleware, it could parse the output HTML and inject stuff into the page.
Alternatively, it could break the problem into two parts... so that templ generate --watch starts a web server on localhost which controls hot reload, and it also ships a middleware component that injects a script to connect to the templ generate --watch port (e.g. http://localhost:14734/) and deals with CORS.

Like the thinking here - clean and flexible.

I use https://github.com/go-rod/rod and a taskfile watch

@delaneyj  I think the main proposal here is to add some sort of middleware that not only will rebuild templates but will also refresh the browser during development. Similar to this proxy: https://github.com/diamondburned/saq

@delaneyj I think the main proposal here is to add some sort of middleware that not only will rebuild templates but will also refresh the browser during development. Similar to this proxy: https://github.com/diamondburned/saq

saq only works on Linux due to its dependency on illarion/gonotify.

@delaneyj I think the main proposal here is to add some sort of middleware that not only will rebuild templates but will also refresh the browser during development. Similar to this proxy: https://github.com/diamondburned/saq

Yeah that's what's I'm doing, the combination of task -w and rod is how I'm doing hot reload

@delaneyj Oh nice!

@joerdav

func runHotReload(port int, onStartPath string) toolbelt.CtxErrFunc {
	return func(ctx context.Context) error {
		onStartPath = strings.TrimPrefix(onStartPath, "/")
		localHost := fmt.Sprintf("http://localhost:%d", port)
		localURLToLoad := fmt.Sprintf("%s/%s", localHost, onStartPath)

		// Make sure page is ready before we start
		backoff := backoff.NewExponentialBackOff()
		for {
			if _, err := http.Get(localURLToLoad); err == nil {
				break
			}

			d := backoff.NextBackOff()
			log.Printf("Server not ready. Retrying in %v", d)
			time.Sleep(d)
		}

		// Launch browser in user mode, so we can reuse the same browser session
		wsURL := launcher.NewUserMode().MustLaunch()
		browser := rod.New().ControlURL(wsURL).MustConnect().NoDefaultDevice()

		// Get the current pages
		pages, err := browser.Pages()
		if err != nil {
			return fmt.Errorf("failed to get pages: %w", err)
		}
		var page *rod.Page
		for _, p := range pages {
			info, err := p.Info()
			if err != nil {
				return fmt.Errorf("failed to get page info: %w", err)
			}

			// If we already have the page open, just reload it
			if strings.HasPrefix(info.URL, localHost) {
				p.MustActivate().MustReload()
				page = p
				break
			}
		}
		if page == nil {
			// Otherwise, open a new page
			page = browser.MustPage(localURLToLoad)
		}

		// time.Sleep(1 * time.Second)
		// page.Reload()
		// page.Reload()
		// page.Reload()

		slog.Info("page loaded", "url", localURLToLoad, "page", page.TargetID)
		return nil
	}
}

And within the taskfile
  racer_dev:
    desc: Server hot reload
    sources:
      - "**/*.go"
    deps:
      - racer_tw
    cmds:
      - killall -q foo_bin  || echo "Process was not running."
      - go mod tidy
      - go build -o ./foo_bin cmd/foo/*.go
      - ./foo_bin
    ```

I've had chance to have a crack at this.
The fsnotify implementation didn't produce all events on my Mac. From reading around there's a long outstanding issue with it around needing a backup process and my understanding is that some frameworks don't rely on it, and use a 250ms delay between os.Walk instead. I've implemented that, and it seems to work well. I've put in some basic ignore rules (node_modules, .git etc.) to make it skip directories that should never contain templ files.
Unfortunately, the rod implementation produces panics on my Mac. Even, if I closed all the browsers and let it try again. Maybe it's because I have multiple Chrome profiles, but it didn't seem reliable to me for the use case, so I've attempted the proxy approach and used the browser package to auto-open the proxy endpoint in the browser.
I have a working version in the https://github.com/a-h/templ/tree/hot_reload branch.
I can run templ generate --watch --proxy="http://localhost:8080" --cmd="runtest" and it will start a proxy on localhost through to localhost:8080, and, provided any response has a Content-Type of text/html and the HTML contains a </body> tag, the proxy will inject an automatic reload script.
The reload script connects to the proxy's SSE endpoint. Any changes to templ files results in a recompilation, this recompilation then sends a message to the SSE handler, and any connected clients then execute window.location.reload().
I haven't had time to tidy up the code much, but it works on a basic test web server (runtest).
I've made a PR - feel free to comment: https://github.com/a-h/templ/pull/130


Update network environment manifest

Context

Add configured VPC to environment manifest file to support an additional Availability Zone (AZ)

The London (eu-west-2) region has 3 AZs, but AWS Copilot defaults to 2 AZs as some regions do not have 3 AZs.
Public subnets are required to be part of the configuration.

Update addons.parameters.yml with the additional private subnet

Additional Information
More information on why the build is failing - https://uktrade.atlassian.net/browse/DBTP-325

Just trying the build, loks like they started failing yesterday for reason not related to the changed in this pull request, e.g. the ones for pull request #101 are failing with the same symptom.

Just trying the build, loks like they started failing yesterday for reason not related to the changed in this pull request, e.g. the ones for pull request #101 are failing with the same symptom.

@WillGibson Correct. I have added a JIRA ticket which is referenced in the description of this PR.

The Cloud Foundry pull request is merged and released https://github.com/cloudfoundry-community/cf-python-client/pull/195#issuecomment-1641782652

The CodeBuild build project issue has now been resolved in https://github.com/uktrade/copilot-tools/pull/103.


Automatically save sessions without having to call req.session.save

It is boring to have to type await req.session.save() everytime. It's clean because we're not monkey patching the res object but I think now is time to do it.
See https://github.com/hoangvvo/next-session autoCommit option and implementation

Any update on this 😅 Seems like monkey patching the res object is really troublesome. Wondering if you have any alt solution.

Any update on this 😅

Nope no update for now :D I've stick with explicit await save() calls for now in my own apps. In the end, I do not need so many of them (basically just login/logout..) so I might just stick with that and instead throw errors when the response was already sent.

(I believe iron functions are async)

Yes indeed.
Too bad there's still no reliable way to hook into nodejs http response to add some headers without having to monkey patch everything...
On a side note, I wonder about the legitimacy of my own library since next-auth seems to be very advanced now (https://github.com/nextauthjs/next-auth#secure-by-default). Not sure though that you can even store session data inside the encrypted token (JWE), but maybe yes.
Good luck! Let me know of future updates :)

seems like everyone is fine with calling await, me included. less magic is good here


Separate "../list" from "../info" REST

Currently CDN has 2 rest endpoints that has the same functionality ../list and ../info
However ../info must return information about a single template. The logic behind should be as described here https://github.com/subutai-io/cdn/wiki/Fetching-template-info-by-name
And ../list must return a set of template metadata (0-N) that are optionally filtered according to the passed parameters. The logic behind should be as described here https://github.com/subutai-io/cdn/wiki/Listing-templates

ETA: Friday, May 18, 2018, 15:00 ^

Fixed on master.

Fixed on prod.


Sinc and Sigmoid bases implementation

Implemented Sinc basis and added modification of Sigmoid.
Branch has been merged with main

Please merge first into the develop branch so that the tests run and the documentation is updated... and then merge into main

@ThomasReisser90 can you merge? I am not authorized to merge pull requests


Add support for environment variables in config

#424 Allows users to specify environment variables in their .hyperterm.js under a field named env.

Yeah this looks good, tested locally. Can you update with the latest commits from master?

@MrRio Merged the commits over from master, should be good to go


How to cancel sort in one container..

I use this plugin in my nuxt project. and, i haved some confused. is it has a fallback or something else in this Sortable can let me cancel my sort onEnd handler when i just dont't want it...cause, now i just cant't replace this plugin;

You just want to prevent the onEnd event from firing?

I'm not sure that it's the same. But can you add possibility to undo sort on onEnd just like it works for OnSpill plugin, i want to do the same thing but always (not only when it is dropped outside of a valid Sortable drop target) and also i need to know newIndex.


Integrity check failed

Hi,
I wanted to try this plugin, but I get this error:
traefik error: failed to check archive integrity of the plugin github.com/wiltonsr/ldapAuth: plugin integrity check failed
My config looks like this:
pilot:
        token: "<my_token>"
experimental:
        plugins:
                ldapAuth:
                        moduleName: "github.com/wiltonsr/ldapAuth"
                        version: "v0.0.9"

What am I doing wrong?
Regards,
Dorian

Hi,
This is related to this issue
I already remove tag v0.0.9 and created a new tag v0.0.10.
Wait a while to Pilot reflect this in Plugin page and adjust version in you conf.

Thanks!


add amp URL API sample

add a new app engine instance for serving iframes
create a AMP URL API wrapper that can be accessed from the browser
due to lack of CORS support
create an iframe for executing AMP URL API queries

You can see a running version here: https://amp-by-example-staging.appspot.com/advanced/using_the_amp_url_api/
@kul3r4 @juliantoledo PTAL
//cc @adewale

Great example! I think the APIKey should not be in GitHub, maybe you could deployed manually to a file.

@juliantoledo - switched and encrypted the key 😳
Also addressed the other comments. PTAL

Also: links in the result field are now clickable: https://amp-by-example-staging.appspot.com/advanced/using_the_amp_url_api/

Split the commit into three to better express what happened.
@kul3r4 @juliantoledo PTAL

LGTM


Recommendation: Relative units

Instead of using fixed pixel units, it would add a lot more flexibility using em.
I already did it on a project and could create a PR.

@tomlutzenberger this library is totally capable of handling ems and shouldn’t break, so nothing is stopping one from changing them around. For the library defaults, though, I left it as px since, in general, they are more predictable and more accurate with small values.


Clear resolver catch method

Method to clear resolver catch today is: OmegaConf.set_cache(cfg, defaultdict(dict, {}))
Propose to make this into an own method: OmegaConf.clear_cache(cfg)

sounds good. be sure to add a test.
I think this is too much of a corner use case to warrant docs update.

Ok. Make it into an own pull request or just add it to #171?

Add to #171, this is a small enough addition.


[5.5] Add fillable property

Add fillable property in model generated class

@ahmed-aliraqi I cannot see the benefit of this PR. Some people might prefer to set protected $guarded = []; inside the model instead. You can always make a snippet in your IDE to make this easier to deal with. Anyways, that's just my opinion.


[cChocoInstaller] Do not create install dir prior to calling install.ps1 script

Description Of Changes
Change cChocoInstaller resource to not create the install dir before calling the install.ps1 file.
Motivation and Context
Following change in the install.ps1 file, chocolatey installation will stop if the target installation path exists (even if empty);
Ref: https://github.com/chocolatey/home/issues/276
Testing

Run the following DSC configuration with the changed module:

Configuration InstallChoco {
    Import-DSCResource -ModuleName cChoco

    cChocoInstaller "ChocoInstall"
    {
        installDir = "C:\ProgramData\chocolatey"
    }
}

Installation is successful

Operating Systems Testing

Windows Server 2022

Change Types Made

[x] Bug fix (non-breaking change).
[ ] Feature / Enhancement (non-breaking change).
[x] Breaking change (fix or feature that could cause existing functionality to change).

Not sure of the change scope

[ ] Documentation changes.
[ ] PowerShell code changes.

Change Checklist

[ ] Requires a change to the documentation.
[ ] Documentation has been updated.
[ ] Tests to cover my changes, have been added.
[ ] All new and existing tests passed?
[ ] PowerShell code changes: PowerShell v2 compatibility checked?

Related Issue
Fixes #179

@vexx32 just wondering how it will take to get a new release published for those of us that consume cChoco as an Azure Automation module?

Following this thread as well - can we get a new release published with this fix in it? The current 2.5.0 module is essentially unusable now since it cannot install choco anymore.

@doherty100 @jackmtpt Please see [this comment] (https://github.com/chocolatey/cChoco/issues/179#issuecomment-1750509721) for information about a release.


[Question] - How to manage multi user isolation?

I'm not sure how to manage multi user isolation with microk8s.
An practical way could be to create an own namespace for each user or group and map the linux user account to only use this namespace. Is this the correct way?
I think microk8s is by default AllwaysAllow, ABAC, right?
When using own namespaces for each user/group it's possible to define quota ressource restrictions (Only 2 gpus per user).

create namespace for each user/group
define permissions for namespaces (json, ABAC)?
map linux user to automatically use the own namespace

Can someone help me to get the multi user isolation running?
Or are there other ways?
Thanks

Update:
The users should access the master node via ssh and should only have access to their own namespace. We want to use kubeflow/arena so the users need ssh access to the server
I have done following tasks:

create user student1
create namespace student1ns
usermod -a -G microk8s student1     # add student1 to microk8s group
sudo microk8s.kubectl config view --raw > $HOME/.kube/config  #generate config file for
edit basic_auth.csv and add password, user, etc for student1
edit .kube/config of student1 and edit user, password and namespace

The user can now connect via ssh to the master node and microk8s kubectl get nodes is working.
But i think the user student1 has now full access to the complete cluster.
Is it possible to restrict the user rights (with basic auth) to only own namespace?
And also 'arena top nodes' is not working -> Unauthorized
I've made some steps forward but i don't know if this is the right way.
I've invest a lot of time of researching. But i can't find information on how to grant users access with microk8s, arena, etc.
Any help?
Thanks

It seems that microk8s is not using the local $HOME/.kube/config file:
Here is the config file of student1:

and here is the result of 'microk8s kubectl config view' under student1 user account:

the system is not using credentials of student1, its using the credentials of admin.
Is $HOME/.kube/config not the right config file which microk8s is using?

Hi @ereil, microk8s.kubeclt is a wrapper around kubectl and it uses the kubeconfig file under /var/snap/microk8s/current/credentials/client.config. If you add users into the microk8s group (usermod -a -G microk8s student1) you are granting them admin access so you better not do that.
Instead, you can create the users by adding them to the basic_auth.csv file as you already did. Then you can enable Role Based Access Control (RBAC) [1] with microk8s.enable rbac and restrict user permissions using RBAC rules [2]. Actually you do not need to give users ssh access to the machine as the api server is available on all interfaces on port 16443. You just need to give your users their kubeconfig file and tell them to snap install kubectl.
For resource quota you can have a look at [3]. This doc describes how to set quota on namespaces.
I am not sure if @knkski knows of kubeflow specific ways to restrict user permissions and appoint resources.
[1] https://kubernetes.io/docs/reference/access-authn-authz/rbac/
[2] google suggestion for restricting users in a namespace https://jeremievallee.com/2018/05/28/kubernetes-rbac-namespace-user.html
[3] https://kubernetes.io/docs/tasks/administer-cluster/manage-resources/quota-memory-cpu-namespace/

Hi @ktsakalozos, thanks for your detailed explanation, perfect!
..i'm very familiar with ML, tensorflow and docker, but i'm new to k8s.
For my understanding: When i connect to kubernetes cluster via kubectl on a local workstation, i can use all kubectl commands (if user have permisson to) but microk8s commands are only on host node possible (and needs sudo, microk8s group)?
Than i have to try what's with kubeflow/arena, if arena commands (which are very useful for DL scientists, also very easy reporting of used and free gpus in cluster arena top node) are possible trough remote kubectl or needs further setup.

For my understanding: When i connect to kubernetes cluster via kubectl on a local workstation, i can use all kubectl commands (if user have permisson to) but microk8s commands are only on host node possible (and needs sudo, microk8s group)?

Yes, this is correct.

Than i have to try what's with kubeflow/arena, if arena commands (which are very useful for DL scientists, also very easy reporting of used and free gpus in cluster arena top node) are possible trough remote kubectl or needs further setup.

I did not get this. Based on the installation instructions at [1] you should not need any thing more than the kubeconfig file.
[1] https://github.com/kubeflow/arena/blob/master/docs/installation/INSTALL_FROM_BINARY.md

@ereil: Kubeflow has multi-user isolation if you'd like to just work within that ecosystem, instead of managing kubernetes users:
https://www.kubeflow.org/docs/components/multi-tenancy/overview/

@ktsakalozos  Perfect, its all running, thanks!
For people who wants to know here are the steps to do:

create namespace for user
create Role for full access to user namespace
add user in basic_auth.csv
bind role to user:
kubectl create rolebinding rolebindingname --role full-access-usernamespace --user user1
it could be necessary to grant additional roles to user (view cluster nodes ect)
generate Kubeconfig file for kubectl remote access from user workstation:

apiVersion: v1
clusters:
- cluster:
    certificate-authority-data: xxxxxxxxxxxxxx
    server: https://xxx.xxx.xxx.xxx:16443
  name: microk8s-cluster
contexts:
- context:
    cluster: microk8s-cluster
    namespace: usernamespace
    user: username
  name: user-context
current-context: user-context
kind: Config
preferences: {}
users:
- name: user1
  user:
    username: user1
    password: xxxxxxx (from basic_auth.csv)

copy file 'config' to $home/.kube on workstation
now you can use kubectl to connect the remote cluster, and it's automatically using the user namespace

@knkski Yes i know the multi-user feature from kubeflow. But kubeflow is in actual microk8s 1.18 not running smooth. It has some gui problems as reported in #1084
Also there are one cool feature missing: to show in an easy way how many gpus are used/available due to (nearly all) tensorflow trainings are using gpus:

Thanks


[DatePicker] allow passing TrapFocusProps

https://github.com/mui-org/material-ui/blob/10f3f080ccb76fdf8916f24dbfc1020ea4663d27/packages/mui-lab/src/internal/pickers/wrappers/DesktopWrapper.tsx#L44
TrapFocusProps?: Partial<MuiTrapFocusProps>;

the reason,
i dont need restore focus to my input when picker is closed

Hi. I think this issue has insufficient information for us to proceed with it.
Please provide more information on what you are struggling with and what you wish to achieve.

i wanna pass disableRestoreFocus: true to DatePicker component, and also probably to Select in future,
so will be great to have TrapFocusProps overrides


build(docker): adds docker files

Codecov Report

Merging #42 (b393426) into dev (e3bf267) will increase coverage by 0.28%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##              dev      #42      +/-   ##
==========================================
+ Coverage   41.74%   42.03%   +0.28%
==========================================
  Files          26       26
  Lines        1157     1161       +4
  Branches      190      201      +11
==========================================
+ Hits          483      488       +5
+ Misses        665      664       -1
  Partials        9        9

Impacted Files
Coverage Δ

pythonium/player.py
100.00% <0.00%> (ø)

pythonium/galaxy.py
97.91% <0.00%> (+0.04%)
:arrow_up:

pythonium/game.py
18.84% <0.00%> (+0.13%)
:arrow_up:

pythonium/ship_type.py
91.66% <0.00%> (+0.75%)
:arrow_up:

pythonium/vectors.py
46.42% <0.00%> (+1.98%)
:arrow_up:

Continue to review full report at Codecov.

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


Append v prefix to git tag used for automated releases

To match the naming style used by historic releases + the two new manual releases:
https://github.com/heroku/procfile-cnb/tags
GUS-W-10475648.

(Circle CI hadn't triggered due to their incident earlier)


Approval pending Slack notifications no longer have links

It looks like links stopped showing up in the approval notification Slack messages. I was actually testing some deploy pipeline changes when this happened so I have a fairly precised window of time for when it started - we have a notification from 1:08 PM UTC that does have a clickable link and the next deploy at 1:29 PM does not have a clickable link.

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

ID: 99a6f5aa-7e92-a028-d13e-e1e4b7fede86
Version Independent ID: be7e5d7c-0033-6b72-4bd1-809f7d1894aa
Content: Azure Pipelines with Slack - Azure Pipelines
Content Source: docs/pipelines/integrations/slack.md
Product: devops
Technology: devops-collab
GitHub Login: @atinb
Microsoft Alias: atinb

Here's a screenshot to show the change:

Time in the screenshot is in Taiwan, I converted it to UTC in the issue description.

It looks like you've encountered an issue with the product itself, rather than an issue with the documentation. To make sure it gets in front of the right people, please submit your bug here.

Feedback / bug report issue (in case anyone ends up here from Google) - https://developercommunity.visualstudio.com/content/problem/987256/approval-pending-slack-notifications-no-longer-hav.html


test: static provisioner hash test

Fixes #N/A
Description
Adds a test to compare the hash of different provisioners to previously computed values. This ensures that equivalent provisioners hash to the same value between versions.
How was this change tested?
make presubmit
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
10 unchanged lines in 3 files lost coverage.
Overall coverage decreased (-0.1%) to 79.025%

Files with Coverage Reduction
New Missed Lines
%

pkg/controllers/provisioning/scheduling/topology.go
2
86.49%

pkg/controllers/provisioning/scheduling/topologygroup.go
2
96.75%

pkg/controllers/deprovisioning/pdblimits.go
6
76.47%

Totals

Change from base Build<PHONE_NUMBER>:
-0.1%

Covered Lines:
8315

Relevant Lines:
10522

💛  - Coveralls


bug - interact button override does not return to default

NOTE: Any issue that does not follow the below template will be immediately closed and not re-opened until the template structure is adhered to.

Environment

Source of VRTK (Unity Asset Store or Github)
Github
Version of VRTK (Unity Asset Store/Github release number) (Github master commit hash)
3.3.0 Alpha
Version of Unity3D (e.g. Unity 5.4.4f1)
2017.3 (also tested in 2017.2
Hardware used (e.g. Vive/Oculus)
Vive & Oculus
SDK used (e.g. OpenVR/SteamVR/Oculus Utilities)
SteamVR

Steps to reproduce
create project with several vrtk_Interactable objects in a row, close together, with use over-ride button set to something (say touchpad press). Set interact use script to Trigger clicked. Start project and pass hand from one object to the other (so that at some point you're touching both objects), withdraw hand.
Expected behavior
after you stop touching all objects the interact use button on the interact use script would return to trigger clicked (using the example above)
Current behavior
interact use button stays with touchpad press (using the above example)
-I assume this is because when you untouch one object but begin touching another it stores the current use button, which is still being overridden by the previous object and never gets a chance to return to normal. I think the use button should be stored in the on start method and always set to that after onstoptouching is called. Or maybe the interact script is having a hard time determining when to call on stop touching if your touching 2 things at once?

Can you try this on the latest master branch?
I tried to reproduce and I am getting the expected behaviour.


Synthesis failed for nodejs-monitoring-dashboards

Hello! Autosynth couldn't regenerate nodejs-monitoring-dashboards. :broken_heart:
Here's the output from running synth.py:
s sha256 = "8d11f06b408ac5f1c01da3ca17f3a75dc008831509c5c1a4f24f9bde37792a57"
DEBUG: Call stack for the definition of repository 'gapic_generator_python' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:224:1
DEBUG: Rule 'com_googleapis_gapic_generator_go' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "12bfed7873f085093cd60615bd113178ecf36396af0c2ca25e6cd4d4bebdd198"
DEBUG: Call stack for the definition of repository 'com_googleapis_gapic_generator_go' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:261:1
DEBUG: Rule 'gapic_generator_typescript' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "ca322b5e7b0d03b3cc44a90444e3a7f944c9ba3345f0505ee48c8e715d19dd95"
DEBUG: Call stack for the definition of repository 'gapic_generator_typescript' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:280:1
DEBUG: Rule 'gapic_generator_csharp' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "40ddae63d2729ef5ccbd8b60123327ea200ce9400d0629238193ff530dcaea18"
DEBUG: Call stack for the definition of repository 'gapic_generator_csharp' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:318:1
DEBUG: Rule 'bazel_skylib' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "1dde365491125a3db70731e25658dfdd3bc5dbdfd11b840b3e987ecf043c7ca0"
DEBUG: Call stack for the definition of repository 'bazel_skylib' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:35:1
Analyzing: target //google/monitoring/dashboard/v1:monitoring-dashboard-v1-nodejs (1 packages loaded, 0 targets configured)
Analyzing: target //google/monitoring/dashboard/v1:monitoring-dashboard-v1-nodejs (1 packages loaded, 12 targets configured)
INFO: Call stack for the definition of repository 'npm' which is a yarn_install (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl:411:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/build_bazel_rules_nodejs/index.bzl:87:5
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:293:1
ERROR: An error occurred during the fetch of repository 'npm':
   yarn_install failed: yarn install v1.19.1
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info If you think this is a bug, please open a bug report with the information provided in "/home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/gapic_generator_typescript/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
 (error An unexpected error occurred<EMAIL_ADDRESS>Request failed \"404 Not Found\"".
)
ERROR: /home/kbuilder/.cache/synthtool/googleapis/google/monitoring/dashboard/v1/BUILD.bazel:234:1: //google/monitoring/dashboard/v1:dashboard_nodejs_gapic depends on @gapic_generator_typescript//:protoc_plugin in repository @gapic_generator_typescript which failed to fetch. no such package '@npm//@bazel/typescript': yarn_install failed: yarn install v1.19.1
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info If you think this is a bug, please open a bug report with the information provided in "/home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/gapic_generator_typescript/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
 (error An unexpected error occurred<EMAIL_ADDRESS>Request failed \"404 Not Found\"".
)
ERROR: Analysis of target '//google/monitoring/dashboard/v1:monitoring-dashboard-v1-nodejs' failed; build aborted: no such package '@npm//@bazel/typescript': yarn_install failed: yarn install v1.19.1
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info If you think this is a bug, please open a bug report with the information provided in "/home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/gapic_generator_typescript/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
 (error An unexpected error occurred<EMAIL_ADDRESS>Request failed \"404 Not Found\"".
)
INFO: Elapsed time: 2.130s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (1 packages loaded, 12 targets configured)
FAILED: Build did NOT complete successfully (1 packages loaded, 12 targets configured)

2020-08-06 04:18:18,333 synthtool [DEBUG] > Wrote metadata to synth.metadata.
DEBUG:synthtool:Wrote metadata to synth.metadata.
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>
    main()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main
    spec.loader.exec_module(synth_module)  # type: ignore
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/kbuilder/.cache/synthtool/nodejs-monitoring-dashboards/synth.py", line 30, in <module>
    library = gapic.node_library('monitoring-dashboard', version, proto_path='google/monitoring/dashboard/v1')
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 52, in node_library
    return self._generate_code(service, version, "nodejs", **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 183, in _generate_code
    shell.run(bazel_run_args)
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['bazel', '--max_idle_secs=240', 'build', '//google/monitoring/dashboard/v1:monitoring-dashboard-v1-nodejs']' returned non-zero exit status 1.
2020-08-06 04:18:18,385 autosynth [ERROR] > Synthesis failed
2020-08-06 04:18:18,385 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 974a232 docs: add links to the CHANGELOG from the README.md for Java and Node (#111)
2020-08-06 04:18:18,392 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-08-06 04:18:18,397 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 690, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 539, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 670, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 375, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 273, in synthesize_version_in_new_branch
    synthesizer.synthesize(synth_log_path, self.environ)
  File "/tmpfs/src/github/synthtool/autosynth/synthesizer.py", line 120, in synthesize
    synth_proc.check_returncode()  # Raise an exception.
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 389, in check_returncode
    self.stderr)
subprocess.CalledProcessError: Command '['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']' returned non-zero exit status 1.

Google internal developers can see the full log here.

Autosynth passed, closing! :green_heart:


Added support for data parallel mode in LightGBM

What this PR does / why we need it:
Adds support for data parallel mode in LightGBM. The user can specify list of training input files that should be distributed across the workers in a distributed training mode.
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #274
Special notes for your reviewer:

Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.
No

Release note:

Added support for data parallel mode in LightGBM

This change is

/lgtm
/approve


[FEATURE] Refactor listing composable

Description
useListing composable is complicated and introduces errors for different useCases. We should split it from search listing context and provide separate solutions.
Use Case
For the context of this issue we should propose new API for listing and deprecate old solution.
Proposed Solution
No response
Alternatives Considered
No response
Additional Context
No response

What I, as a Buyer (Website User), expect from a product listing:

A result page should always show some products (no empty pages)
I can only select filter options that have a result (disable options)
I can see that I selected some filter also without opening it
The filter name and value is readable in the URL (no UUIDs)
The sub-category navigation stays the same and highlights the current one
The sub-category navigation remembers my filters when I change categories
There is one place where I find the filters (top), and they do not use that much space
Every filter has its reset button (remove all selected filters) and its save button (executes the search)
When I share the link or open it again later (hard reload), the same Filters are selected

What I, as a shop owner, expect from a product listing:

Showing all filter options always, disabling not possible options, or hiding not possible options
Choosing between a general AND or OR connection for all selected filters
Choosing between an AND or an OR connection for every filter separate
Showing the product count of an option or not to the Website User
I want to have the option to update the h1 of a page with some filter name/value

loose proposal
since there is no way to have more product listings than 1 at the same cms page, maybe we could consider splitting up the useListing by it's areas, sharing the same state/context:

useProductListingFilters
useProductListingSorting
useProductListingPagination
useProductListingProducts

pros:

smaller responsibility area
easier to understand

cons:

potential problems with reactivity and shared state
BC for vue-demo-store and docs

What I also have in mind is that we could push the Core team a bit to fix this issue, or someone with PHP skills from our team could suggest not loading Products on CMS (via a Flag). That would speed up the CMS Request and allow us to load our listing as needed.

Copied description from #1057

Problems:
Filters are changed after refreshing the page. This problem exists because we are building it at the init page request. After applying any filter, the context changes, and we do not refresh the list. To decide what strategy should be implemented

What we need:
Only one function will handle API calls (currently, we have two different calls. From search.vue and useListing composable

We should send two requests. Init a request to give us all available filters for searching and the next one to get active filters.

Change the structure of the filter request. It should be a part of the filter property.

Add examples of how to use listing/search filters with different variants

How is it going?


Werkzeug fails importing libraries when watchdog is installed

I'm working with Odoo in a docker container and I decided use all debug features; so, I installed watchdog and i'm getting this error after that:
builtins.ImportError
ImportError: /usr/lib/python3.5/lib-dynload/_multiprocessing.cpython-35m-x86_64-linux-gnu.so: failed to map segment from shared object

Traceback (most recent call last)
File "/usr/lib/python3/dist-packages/odoo/service/wsgi_server.py", line 166, in application
return application_unproxied(environ, start_response)
File "/usr/lib/python3/dist-packages/odoo/service/wsgi_server.py", line 154, in application_unproxied
result = handler(environ, start_response)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 1317, in __call__
self.load_addons()
File "/usr/lib/python3/dist-packages/odoo/http.py", line 1349, in load_addons
m = __import__('odoo.addons.' + module)
File "/usr/lib/python3/dist-packages/odoo/modules/module.py", line 82, in load_module
exec(open(modfile, 'rb').read(), new_mod.__dict__)
File "<string>", line 3, in <module>

File "/var/lib/odoo/addons/11.0/odoo-s3/models/__init__.py", line 3, in <module>
from . import models
File "/var/lib/odoo/addons/11.0/odoo-s3/models/models.py", line 17, in <module>
from . import s3_helper
File "/var/lib/odoo/addons/11.0/odoo-s3/models/s3_helper.py", line 18, in <module>
from boto3.s3.transfer import S3Transfer
File "/usr/local/lib/python3.5/dist-packages/boto3/s3/transfer.py", line 127, in <module>
from s3transfer.exceptions import RetriesExceededError as \
File "/usr/local/lib/python3.5/dist-packages/s3transfer/__init__.py", line 134, in <module>
import concurrent.futures
File "/usr/lib/python3.5/concurrent/futures/__init__.py", line 17, in <module>
from concurrent.futures.process import ProcessPoolExecutor
File "/usr/lib/python3.5/concurrent/futures/process.py", line 55, in <module>
from multiprocessing.connection import wait
File "/usr/lib/python3.5/multiprocessing/connection.py", line 21, in <module>
import _multiprocessing
ImportError: /usr/lib/python3.5/lib-dynload/_multiprocessing.cpython-35m-x86_64-linux-gnu.so: failed to map segment from shared object

Why do i say the problem is with this library?
Before to install this library i didn't get any problem, all works fine and i can access normally in the site, werkzeug does not raise any bug; but when i install that library i get bugs like this.
Can anyone explain me it? Please.
Thank you

Sounds like something is wrong with your Python installation. I don't see how Werkzeug would cause this problem.

@ThiefMaster Ok, but how?


add grunt-modernizr?

https://www.npmjs.com/package/grunt-modernizr

moderniser should be optional.

Now that bower is being used, I might actually do this.

Moved to https://github.com/PJL101/fedkit/issues/2


Even if superfastcode2 (C ++) is set as a reference, it cannot be imported to python (pybind11)

@hamukawa0406 commented on Thu Oct 31 2019
visual studio 2019
windows 10
When this page was done in the above environment, c ++ file build was successful,
If you try to call a DLL from python,
"unresolved import 'superfastcode2'"
An error occurs.

ドキュメントの詳細
⚠ このセクションを編集しないでください。 docs.microsoft.com で必須です ➟ GitHub の問題のリンク。

ID: 40e3b6b1-a3d2-f4f2-b1ad-dd654a062343
Version Independent ID: b2418b84-04f4-60d2-ec1d-291a5d4d0c51
Content: Python 用の C++ 拡張機能の記述 - Visual Studio
Content Source: docs/python/working-with-c-cpp-python-in-visual-studio.md
Product: visual-studio-windows
Technology: vs-python
GitHub Login: @JoshuaPartlow
Microsoft Alias: joshuapa

@srvbpigh commented on Thu Oct 31 2019
Hello, @hamukawa0406
Thank you for your feedback.
We are actively reviewing your comments and will get back to you soon.
Kind regards,
Microsoft DOCS International Team

This is something that needs to be directed to the product team.
@hamukawa0406  Please see if https://github.com/microsoft/PTVS/issues/5027 describes the issue.

Closing the issue now.
For additional product support, please use Report a problem in the Azure DevOps community.