unnecessary import and miss completetion from inner class and the class like android.app.Activity

hi artur-shaik, now i am use this plugin for my android code completion,as you know,android project contains a lot of inner class ,now i can not import it and can not complete the method field of a inner class, my latest PR make the plugin support import user's R.java.i have test for a long time ,it works well.
before use, we just meed to use this command to generate R.java mvn android:generate-sources

Honestly, I'm more enterprise developer, so I don't really know what
contains android project. So now I can only finally implement static
imports. And we can see what we will have.

thank you very much

it is really strange,
import android.app.Activity;
class Foo extends Activity{
void test(){
super.|
}
}

after dot i can only can complet 95%method,for example i cannot conplet onDestroy

@wsdjeg Android doesn't implement onDestroy as an inner class - it's a protected method on the Activity class. I'm not currently sure why it's giving this behavior, but your best bet for getting this fixed is to create a minimal example project that we can see that doesn't require the entire Android SDK

you can have a look at my test branch https://github.com/wsdjeg/learnandroidthehardway/tree/test
which centains only one activiy ,and the pom.xml is simple ,just add the adnroid.jar into the javacompletelib.
or you can add g:JavaComplete_LibsPath='/path/to/android.jar' into vimrc

@wsdjeg can you replicate this same issue outside of Android? Maybe this happens when there is a class with a ton of methods like the Activity class?
If you can narrow this down it'll help a lot with getting it fixed.

i have never got the same issues befre,when i use this plugin for javaee project, some class also contains  a ton of methods,but will not miss any one.i have test it by create an BaseActivity extendes Activity, and override onDestory,
then the another class extends BaseActivity will not miss super.onDestory.
maybe these test will help to find the error:
import android.app.Activity;
class Foo extends Activity{
Activity a = new Activity();
a.|==>
this.|===>

}

maybe it is also related issue

import android.app.Activity;
class Foo extends Activity{
Activity a = new Activity();
a.|==>
this.|===>

}

i have test all of this ,has no ondestroy, here is my log

here is a log for complete after an inner class

i hava test create an empty dir;
then use this command:
vim test.java
let g:JavaComplete_LibsPath="/home/wsdjeg/.m2/repository/android/android/6.0_r1/android-6.0_r1.jar"

still has no ondestory

JCimprotminssing give me unecessary Class.

in this picture,i have import android.app.AlertDialog
so there is no need import the inner class ,(now the plugin can not import innerclass)
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(context);
but when use this command JCimportaddming,will show me these,when i type esc  the unnecessary class also be added to my file!
I found a good advantage of JCimportaddmings ,will not import the class with the same package as the current class!it's very good

Ok, I see issue for unnecessary import. Are there any more issues?

when the cursor is on the package name
imporm com. | wsdjeg.Example;
^
then i type  (JCimpportAdd  or JCimportAddI)
will show me many unnecessary packageName;

For this there is issue already.

i see , thank you ,i will browse all the issues !

i find there are more than three issues here,should we split them

Yeah, of cause...


Fix for PG parameters table disappearing when trying to reset a value

This PR is meant to address the issue of the parameters table disappearing after trying to reset a value.

Instead of repopulating the table every refresh, only values that have been changed get updated within the components
Took out calling refresh postgres model after every azdata call since the parameter updates does not depend on the show command
Add promise to make sure calling engine settings only happens once at a time.

This PR fixes #15250

Pull Request Test Coverage Report for Build 800789559

29 of 54 (53.7%)  changed or added relevant lines in 3 files are covered.
31 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.01%) to 43.504%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

extensions/arc/src/common/utils.ts
1
2
50.0%

extensions/arc/src/models/postgresModel.ts
27
29
93.1%

extensions/arc/src/ui/dashboards/postgres/postgresParameters.ts
1
23
4.35%

Files with Coverage Reduction
New Missed Lines
%

src/sql/base/browser/ui/selectBox/selectBox.ts
31
50.4%

Totals

Change from base Build 800345334:
-0.01%

Covered Lines:
26355

Relevant Lines:
55148

💛  - Coveralls


How to download and preprocess the PDB experimentally-determined protein.

"Specifically, we extract 123,505 experimentally-determined protein structures from PDB"
Hi, appreciate your great work!
I am quite new in this area. Could you please tell me where is the code to download and preprocess those experimentally-determined proteins?

Thanks!


Map range operations

With #63 mapping the built-in range types, we should also map range operations so that it's possible to invoke them from C# without dropping down to raw SQL. The list of operators can be found here, and would include stuff like containment. These would be implemented as EF Core extension methods over NpgsqlRange.
If you're interested in this, please upvote and post which operations interest you most.

I'm new to query operator translation, but if no one else has started in on this, I'd like to take a first pass at it. I've forked the dev branch and have gotten most of the test suite building locally.
So far I've started on the containment operators:

NpgsqlRange<T>.Contains(T item)
item.ContainedBy(NpgsqlRange<T> range)

Questions:

Does the Npgsql team have a contributors guide that I should review?
Should I open a pull request while working on this feature, or wait until all of the operators are passing?

Hi @austindrenski, it's great to have you as a contributor!
There's no style guide really, I suggest you try to follow the conventions you see in the codebase. You're also welcome to send a PR before you're done and I'll review to make sure you're on the right path.
Looking forward to seeing your work!

Thanks for your contribution @austindrenski!


Removing of typings

I think it would be a good idea to get rid of the usage of typings in favour of the more modern approach with node_modules/@types and e.g. a lib entry in tsconfig.json.

@maku — Would you be able to create a PR with the necessary changes? Thanks in advance! 👍

I've created https://github.com/jvandemo/generator-angular2-library/pull/29.
I think this is what @maku was asking.

Generator now uses @types, thanks to @gabwh's efforts in #29. 👍


create tags and descriptions for snapshot

like volume, we need create description and prop for snapshot
(part) of the result looks like:
+--------------------------------------------+----------------------------------------------+
| created_at                                 | 2019-06-28T01:25:10.000000                   |
| description                                | Created by OpenStack Cinder CSI driver       |
| id                                         | 823c9947-b8ee-464a-9413-eff84869b098         |
| properties                                 | cinder.csi.openstack.org/cluster='ClusterID' |
+--------------------------------------------+----------------------------------------------+

What this PR does / why we need it:
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
fixes: #666
Special notes for your reviewer:
Release note:

/retest

/test cloud-provider-openstack-acceptance-test-e2e-conformance-stable-branch-v1.15

@jichenjc  please fix the format and rebase the PR

ok, rebased, thanks for reminder

/retest

/test cloud-provider-openstack-acceptance-test-lb-octavia

@adisky can you take another look? Thanks

/test cloud-provider-openstack-e2e-test-csi-cinder


update README for new manifests

Description
update README for #203
Issues
n/a.
Type of change
List the type of change like below. Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds new functionality)
[ ] Breaking change (fix or feature that would break existing design and interface)

Dependencies
'n/a'
Tests

@KfreeZ  will you also remove these two lines in .github/workflows/scripts/e2e/gmc_install.sh:
https://github.com/opea-project/GenAIInfra/blob/main/.github/workflows/scripts/e2e/gmc_install.sh#L39-L40

@KfreeZ will you also remove these two lines in .github/workflows/scripts/e2e/gmc_install.sh in this PR? https://github.com/opea-project/GenAIInfra/blob/main/.github/workflows/scripts/e2e/gmc_install.sh#L39-L40

yes, I think these two lines are no longer needed, please @zhlsunshine double check

@KfreeZ will you also remove these two lines in .github/workflows/scripts/e2e/gmc_install.sh in this PR? https://github.com/opea-project/GenAIInfra/blob/main/.github/workflows/scripts/e2e/gmc_install.sh#L39-L40

done that, e2e tests pass after removing the 2 lines.

@KfreeZ will you also remove these two lines in .github/workflows/scripts/e2e/gmc_install.sh in this PR? https://github.com/opea-project/GenAIInfra/blob/main/.github/workflows/scripts/e2e/gmc_install.sh#L39-L40

yes, I think these two lines are no longer needed, please @zhlsunshine double check

Hi @KfreeZ, Yes, it's unnecessary


error in deployment

We have written the needed data into your clipboard because it was too large to send. Please paste.

/causedByExtension please report this to the Salesforce extensions

This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines. If you don't know which extension is causing the problem, you can run Help: Start extension bisect from the command palette (F1) to help identify the problem extension.
Happy Coding!


Force loopback pinentry-mode

Fixes an issue with GPG:
gpg: signing failed: Inappropriate ioctl for device
gpg: [stdin]: clear-sign failed: Inappropriate ioctl for device

This is not a general issue with GnuPG that affects everyone. The error is probably caused by a gpg-agent misconfiguration. Furthermore, the suggested patch will override the default settings, disabling the user to choose the desired pinentry mode.

--pinentry-mode mode - -

loopback
Redirect Pinentry queries to the caller. Note that in contrast to Pinentry the user is not prompted again if he enters a bad password.

Not prompting the password again seems hardly a generally desired behavior.

The root cause for Inappropriate ioctl for device is that GnuPG doesn't know where to read the input from. Try:
export GPG_TTY=$(tty)

A proper solution for this with the behavior you suggest would be:

In ~/.gnupg/gpg.conf, add:use-agent
pinentry-mode loopback

in ~/.gnupg/gpg-agent.conf, add:allow-loopback-pinentry

Closing as non-issue, cannot reproduce & unwanted change.

:+1: I agree that this is good for documentation. Could have been opened as an issue, too.
:sunglasses: It is also always cool to see someone is using my work.


#164694220 Create user profiles upon registration

What does this PR do?

Create user profile upon registration

Description of Task to be completed?

[x] set up app utilities
[x] test functionality
[x] write more tests
[x] Fetch user profiles
[x] restrict access to rightful logged in user to edit their own profile

How should this be manually tested?

Run application server locally python manage.py runserver

create a new account by signing up using api/user endpoint.
After successful account creation and verification.
Log in using registered credentials
fetch a user profile using GET /api/profiles/<username>
Edit your profile by using PUT/api/profiles/<username>/edit

Screenshots.

FETCH USER PROFILE BY RIGHTFUL USER

EDIT USER PROFILE

What are the relevant pivotal tracker stories?
 #164694220

Coverage decreased (-0.5%) to 92.552% when pulling 5406cebd683bfcf184c4bf42b06840bc84a9933c on ft-create-user-profile-164694220 into 82fe8087fbd94a5072aecd9437334dcee9537609 on develop.

I think you can fix the codeclimate issues by the use of one return in your renderer file. or simply tell the difference between the two similar codes by commenting on the codeclimate to showing they are not the same.

@Rhytah good work so far, I have been able to create an account, activate and login with the username 'franc'. However am getting a resource not  found message when I try to access my profile using https://ah-haven-space-sprinters-pr-19.herokuapp.com/api/profiles/franc/   on the review app

@Rhytah good work so far, I have been able to create an account, activate and login with the username 'franc'. However am getting a resource not found message when I try to access my profile using https://ah-haven-space-sprinters-pr-19.herokuapp.com/api/profiles/franc/ on the review app

@franc that is because you are using a different route. use api/profile/franc there is no slash after username


Random sampling of k elements from a dask bag #4799

[x] Tests added / passed
[x] Passes black dask / flake8 dask
@jsignell Here we go.

I added a private function, namely weighted sample without replacement, from josliber (second answer) of this stackoverflow post, which is an implementation of  "Weighted random sampling with a reservoir, Pavlos S. Efraimidis, Paul G. Spirakis".
Alternatively I could have used this, but it would have implied adding an additional dependency: so I didn't.

Here we go, @jsignell thanks as always!

Sorry for having 5 different commits, I hope that you can easily get the code by looking at all files changed through the entire PR. Thanks

@dask/maintenance this is ready for merge :)


WAP to find square and cube of a number using inline function.

Hi! please assign it to me

Hi! created pull request for the issue. Please check


fix: adding --skip-on-install to apply command only

--skip-diff-on-install arg is not valid for all helmfile commands so I'm selectively adding to apply only otherwise our task releases:list cmd breaks


fixes snow image cache build

Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/approve

/lgtm


Route functions coming through funny

They look like this:
async listasync req => {

seen in doc type manager


Catalogue module

Start of generating TS types and a slim API wrapper from the Open API specification at developer.tidal.com.
To generate the types file there is a command (in the new package): pnpm generateTypes

Type check is currently blocked by: https://github.com/drwpow/openapi-typescript/issues/1549

Type check is currently blocked by: drwpow/openapi-typescript#1549

That issue is fixed now, still some type errors in the generated code output from this module though, so some more investigation is needed there


enable workflow retry if task failed with terminal error

Pull Request Test Coverage Report for Build 3469

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.03%) to 70.143%

Totals

Change from base Build 3467:
0.03%

Covered Lines:
11152

Relevant Lines:
15899

💛  - Coveralls


VPD defaults to incorrent Unit of Measurement (PSI and not kPa)

The linked PR has nothing to do with this issue, as it was intended for a completely different integration by the same name that I do not maintain.  That being said, HomeAssistant core changed something with how unit_of_measurement and native_unit_of_measurement work...  I had a similar issue with another extension I maintain.  Would you mind creating a separate issue thread for this, and I'll check it out?
example from the codebase.  I assume I'll need to switch this to unit_of_measurement instead.

Originally posted by @dalinicus in https://github.com/dalinicus/homeassistant-acinfinity/issues/37#issuecomment-1946842714
Issue involving VPD defaulting to incorrect Unit of Measurement for VPD. It seems to default to PSI when it should be kPa.

Thanks for splitting this out 👍🏻.  Might have some time this weekend to knock this out.

This should be fixed in 1.4.1.  Thanks for the report!


Theme Submission - Ramium

Theme submission
Please make sure that you have read the theme submission guidelines before submitting a theme. The guidelines provide all relevant information and requirements that have to be fulfilled before the submission. Please tick the relevant boxes for your theme in the checklist below:
https://github.com/rafed/ramium/
I made sure that...

[x] the repository contains a good README.md describing my theme
[x] an open source license has been added to LICENSE.md
[x] all metadata have been added to theme.toml
[x] screenshots have been added in the images/ folder with the required dimensions
[x] in case I'm using a customized demo via the exampleSite folder that

[x] https://example.com is set as base url in exampleSite/config.{toml, yaml, json} to avoid the abuse of unused domains
[ ] I tested that my theme's demo works with the content directory of gohugoio/HugoBasicExample

[x] I tested my theme against the gohugoio/HugoBasicExample

[x] I've checked the developer tools' console in my browser for error messages

[x] in case my theme is using Hugo Pipes features like toCSS and PostCSS that I have committed the /resources directory with all generated assets, for my theme to work in the basic version of Hugo

N.B. By submitting a theme to the Hugo Themes Showcase you understand that you need to maintain your theme. You will need to keep an eye on whether your theme's demo generates on the Hugo website, whenever there is a new release. We are a very small team and we just cannot keep up opening issues in the various theme repositories to notify authors. Whenever a theme demo breaks and remains broken then at some point it will be removed from the list without prior warning. If you no longer wish to maintain a theme please let us know.
New themes will usually be promoted on Hugo's official Twitter account. If you would like to be mentioned in the tweet please add your Twitter username to this submission.
Link to my Twitter account (optional): REPLACE-WITH-URL
Feel free to ask questions. We're glad to help.

@rafed
Thank you for the theme submission. However you need to look into the following:

The images need to be the required dimensions as mentioned in the README

Enter a valid min_version at line11 of theme.toml i.e. 0.57.2

Remove lines 17-21 of theme.toml since they are not needed.

Consider hosting these external assets in the theme repo, because as mentioned in the README:

We discourage the use of third party CDNs to serve assets. It is no longer a good practice in this day and age (fingerprinting, security risk etc) despite of the possible benefits of faster loading times.

@onedrawingperday
Thanks for pointing out the problems. I've fixed them, everything should be ok now.

@rafed
The [required image]https://github.com/gohugoio/hugoThemes#media() screenshot.png is now missing from the repo.

@onedrawingperday
Fixed. Renamed the screenshots.

@rafed
I have added the theme to the repo in 6a4dbdd

@digitalcraftsman
This is a fully featured blog theme with various features like Google search, social buttons, math and chord sheets.

Thanks for your theme submission, @rafed. It's already live on Hugo's theme site and will be promoted soon on Hugo's official Twitter account.


feat(go-runtime): WIP DRAFT assume all interfaces are sumtypes in encoding

Addresses: https://github.com/TBD54566975/ftl/issues/1577
Do not merge. Work here is paused. Context: https://github.com/TBD54566975/ftl/issues/1577#issuecomment-2142873358

See #1792


Quantitative result mismatch

Hello, and thank you for your excellent work.
I noticed that the quantitative results from tables 1, 9, 10, and 12 differ.
For example, the KITTI-AbsRel scores for GenPercept (or Baseline) are 0.099, 0.140, 0.145, and 0.140, respectively.
Could you help me understand what I might be missing?

For table 1, the model is trained on Hypersim + Virtual KITTI. For tables 9, 10, and 12, these models are trained on Hypersim only.
For tables 9 and 12, they are trained with a batchsize of 16, but it changed to 8 for tale 10. It seems that we forgot to mention it in our paper, and we will update it in the future.
The reason for changing the batchsize to 8 is that  GenPercent (PixArt-α) can not be trained for batchsize 16 because of "CUDA out of memory" on A800.


Fix 'edit on github' link

Pull Request Test Coverage Report for Build 2601

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 69.016%

Totals

Change from base Build 2594:
0.0%

Covered Lines:
9333

Relevant Lines:
13523

💛  - Coveralls


Mvc6ControllerWithContextScaffolder encoding templates for views

This wizard creates views in ANSI encoding. I think encoding must be UTF-8. Am I wrong?

This issue probably belongs in Scaffolding - https://github.com/aspnet/Scaffolding/blob/dev/src/Microsoft.Extensions.CodeGenerators.Mvc/Templates/ControllerGenerator/MvcControllerWithContext.cshtml

Thanks, you are right. I was wrong.


Add batch send.

https://docs.rs/bdk/0.16.1/bdk/wallet/tx_builder/struct.TxBuilder.html
build_tx will takes a type Vec instead of address and  amount.
struct Output{
 address:String,
 amount: u64
}

Which will be passed by clients as stringified JSON.
add_recipient(output.address,output.amount) will be chained through an iterator over outputs.

@mocodesmo this makes a breaking change to the build_tx api.

build_tx(
  descriptor: *const c_char,
  node_address: "default" || *const c_char, ("default" or invalid *const c_char will default to blockstream server)
  tx_outputs: *const c_char (stringified JSON array of TxOutput{address, amount}),
  fee_absolute: *const c_char,
  sweep: "true" || "false" (defaults to "false" for any other strings)
)->WalletPSBT {
  psbt: String,
  is_finalized: bool
}


ng serve throwing error when pulling in files from outside the Angular project's root via file replacements

Bug Report
Affected Package

Not sure, but maybe @ngtools/webpack.
Is this a regression?

Yes, the previous version in which this bug was not present was: 11.0.9
Description
ng serve doesn't work when a file replacement containing a require is outside the project's workspace folder.
Minimal Reproduction

 Please see the following repositories for reproduction:

works as expected: https://github.com/dezsiszabi/ng11-bug-report-2-working
doesn't work: https://github.com/dezsiszabi/ng11-bug-report-2-not-working

Points of interests in the reproduction: angular.json file (fileReplacements) and app.module.ts.

I think I know how to fix it, I'm more interested in why this is happening. Was this an intended breaking change? Should the previous behavior be restored?

I don’t think we ever expected the file to be outside of the project root. That said, we never validated this.
That said, probably makes sense the the require context is retained from the original and not replaced file.

Thanks for reporting this issue. This issue is now obsolete due to changes in the recent releases. Please update to the most recent Angular CLI version.
If the problem persists after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior.


New feature: optional banner for external-resource downtime

There are cases where we want both fractal-server and fractal-web to remain up and accessible, but we know that some operations will fail (typically because some component of the HPC cluster is down).
The required outcome is that in this situation the webclient has a (configurable) informative banner.
Discarded options
Automated checks in the backend
For the moment, we'd rather not keep any state about this in the backend, since it would be cumbersome to update automatically (we would need to define a check_cluster_status internal task that runs regularly, most likely via https://fastapi-utils.davidmontague.xyz/user-guide/repeated-tasks/, and it would run for all the different gunicorn workers).
Automated checks in the webclient
It makes no sense to replicate the whole backend logic e.g. for SSH connection into the webclient.
Manual checks and backend action

An admin performs some check (e.g. ssh-ing into the cluster)
If appropriate, the admin performs some action (e.g. setting some variable to True, and possibly restarting some fractal-web)
When appropriate, the admin reverts the action

It doesn't sound right that the action takes place in the backend, since the outcome is specific to the webclient (i.e. showing a banner).
Suggested option: manual checks and webclient action

An admin performs some check (e.g. ssh-ing into the cluster)
If appropriate, the admin performs some action (e.g. creating a txt file and adding an env variable to fractal-web, and possibly restarting some fractal-web)
When appropriate, the admin reverts the action

Note that the action may or may not require a fractal-web restart, depending on whether we want to add some additional state variable to the fractal-web application.

I propose to keep this quite generic, e.g. using an environment variable named WARNING_BANNER_PATH, to indicate that the banner can be used to display any kind of warning message we would temporarily show to the users.

Warning banner example:

Doc:

WARNING_BANNER_PATH: specifies the path to a text file containing the warning banner message displayed on the site; the banner is used to inform users about important issues, such as external resources downtime or maintenance alerts; if the variable is empty or unset no banner is displayed.

That would be great!
Will this banner be shown on all Fractal web pages or just the landing page? I think it would be good that we can show alerts like this broadly, but open to other opinions here

That would be great! Will this banner be shown on all Fractal web pages or just the landing page? I think it would be good that we can show alerts like this broadly, but open to other opinions here

Currently it appears on all the pages

To document how #557 is working:

If I set WARNING_BANNER_PATH=banner.txt but that file doesn't exist, the application starts up correctly but no banner is displayed and the logs include this error message

2024-09-16 11:46:45,294 - (page layout) - ERROR - An error happened reading warning banner file banner.txt [Error: ENOENT: no such file or directory, open 'banner.txt'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: 'banner.txt'
}

If I then write something into banner.txt and refresh the page in the browser, the warning message is displayed (with no need of restarting the webclient).
I remove banner.txt from disk, I am back to the original situation (webclient works, but no banner is displayed).


Fixed all flake warnings

Title of the PR says it all.
The tests should be unaffected but it is still worth waiting to make sure...

Looks ready to merge to me. @philippjfr?

Yep, looks good, merging.


feat(fontFace): Add missing font-face properties to mixin

Add font-display, font-feature-settings & font-variation-settings to fontDisplay mixin
closes #286

@oliverjam The issue is that the typescript test itself needs updated: https://github.com/styled-components/polished/blob/master/typescript-test.ts#L12
However, we are temporarily removing TS support in 2.0. I'm aiming to get a base 2.0 branch out by the weekend that has the updated build for 2.0, then we can do this PR off that branch.

@oliverjam you will need to rebase this onto version-2 and probably update your snapshots do to some changes with quotes in snapshots in the latest version of Jest.

@bhough Oops, don't know how I missed that, sorry. I'll do the rebase—should I update the TypeScript test anyway or is that going to get totally changed when you re-add TS support?

Closing this in favor of #299 since Travis is refusing to pick up the new build config for this PR for some reason.


Fix sequence diagrams for implementation of AddLessonCommand...

... in the Developer Guide

Codecov Report

Merging #174 (540b49d) into master (ad61fc5) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #174   +/-   ##
=========================================
  Coverage     48.73%   48.73%
  Complexity      578      578
=========================================
  Files           124      124
  Lines          2690     2690
  Branches        294      294
=========================================
  Hits           1311     1311
  Misses         1294     1294
  Partials         85       85

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 ad61fc5...540b49d. Read the comment docs.


Access attributes by import.meta?

A.js
import './b.js' with {a: 1}

B.js
console.log(import.meta.attributes.a) // 1

B could be imported many times with different metadata, and it’s only evaluated once, the first time. it wouldn’t make much sense to me for it to have access only to the metadata provided by the first importer.

I think this would depend on the caching model.
If there was an attribute such as "meta" that was part of the key for the
cache this could effectively make different instances
On Wed, May 20, 2020, 12:25 PM Jordan Harband<EMAIL_ADDRESS>wrote:

B could be imported many times with different metadata, and it’s only
evaluated once, the first time. it wouldn’t make much sense to me for it to
have access only to the metadata provided by the first importer.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/tc39/proposal-module-attributes/issues/58#issuecomment-631582245,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AADZYV7XKQOT6FS53UEHH53RSP77ZANCNFSM4NF7ELBA
.

Sure, but then the importer is forcing the module to be re-evaluated again in a way the author may not have intended. For example, if my web server rejects any query strings and only allows a single URL, then you can’t invalidate that cache and evaluate it twice on the same page (afaik). Giving the importer runtime cache control seems concerning; are there any other examples in the web platform where this is the case? In node it can be done, but anyone would assume they’re risking voiding their warranty by doing that - i don’t think the same would apply if it was first class syntax.

My inclination right now is to leave both things--the interpretation of unknown attributes, and the set of import.meta properties--up to the host. Is "leaving it up to the host" an acceptable path for this decision, or do we need to make a requirement on hosts about import.meta here?
I agree with others here that this is only acceptable if these unknown attributes are considered part of the cache key; this shouldn't be a contest about who imports first. The current draft spec text does permit hosts to use module attributes as part of the cache key (though not type, which is required to just be a check). If I were to design a host, here's an ordered list of my preferences, from most preferred to least, when it comes to these aspects:

Most preferred: Reject unknown module attributes, to ensure maximum future-proofing for flexibly adding interpretations later
Middle: Ignore unknown module attributes, but use the same copy of the module. This implies that import.meta.attributes cannot be exposed.
Least preferred: Ignore module attributes and generate a separate copy of the module, just so that import.meta.attributes is different. It's hard for me to imagine when you'd actually want this cost tradeoff. Maybe use cases would push it up in my personal host-designer calculation.

@xtuc has previously suggested that we expose this kind of thing through import.meta, but I didn't think it through as much as now.

The proposal allow hosts to expose attributes on import.meta, however there are currently no plans in known hosts (HTML, WinterCG hosts) to expose them.


Add post

Please add this post:
Bid adieu to tarpaulin, HTML reports are here for RUST
Post URL: https://blog.knoldus.com/bid-adieu-to-tarpaulin-html-reports-are-here-for-rust/
Blog Homepage: https://blog.knoldus.com
Author Name: Mudit Chhabra, Knoldus Inc.
Categories: Tools and Applications

Please add this post:
Bid adieu to tarpaulin, HTML reports are here for RUST
Post URL: https://blog.knoldus.com/bid-adieu-to-tarpaulin-html-reports-are-here-for-rust/
Blog Homepage: https://blog.knoldus.com
Author Name: Mudit Chhabra, Knoldus Inc.
Categories: Tools and Applications

Hi, I saw this the first time.

Thank you for the prompt reply.
When can I expect it to see on the ALL BLOGS list of the official website?
[curious]

I can’t promise a particular day as posting is ad-hoc and manual but I would expect within a week. I typically post up to 10 posts a day when I do post. As I mentioned I’m working through a bit of a backlog so I post a mixture of new posts and ones from the backlog. I also want to post from a variety of sources so if there are several possible posts from from the same blog I spread them out over a few days.

Ok, Thanks. :+1:


NuGet hangs installing packages during deployment

Seen a few issues with deployments this morning were process explorer revealse nuget.exe running until deployment times out.
Repro steps.
Was able to repro with in debug console by typing nuget install NuGet.CommandLine
The log/error given by the failure.
Feeds used:
  https://api.nuget.org/v3/index.json

Installing package 'NuGet.CommandLine' to 'D:\local\Temp'.
  GET https://api.nuget.org/v3/registration3-gz-semver2/nuget.commandline/index.json
  OK https://api.nuget.org/v3/registration3-gz-semver2/nuget.commandline/index.json 516ms

Attempting to gather dependency information for package 'NuGet.CommandLine.4.6.2' with respect to project 'D:\local\Temp', targeting 'Any,Version=v0.0'
Gathering dependency information took 83.31 ms
Attempting to resolve dependencies for package 'NuGet.CommandLine.4.6.2' with DependencyBehavior 'Lowest'
Resolving dependency information took 0 ms
Resolving actions to install package 'NuGet.CommandLine.4.6.2'
Resolved actions to install package 'NuGet.CommandLine.4.6.2'
Retrieving package 'NuGet.CommandLine 4.6.2' from 'nuget.org'.
  GET https://api.nuget.org/v3-flatcontainer/nuget.commandline/4.6.2/nuget.commandline.4.6.2.nupkg
  OK https://api.nuget.org/v3-flatcontainer/nuget.commandline/4.6.2/nuget.commandline.4.6.2.nupkg 401ms
Installing NuGet.CommandLine 4.6.2.

And here it hangs until timeout

Process explorer
Process details

Been able to repro on different sites in different tenants
Workaround
On Kudu it seems NuGet Version: <IP_ADDRESS>71 is installed, manually updating to NuGet Version: <IP_ADDRESS>55 with
$ProgressPreference = "SilentlyContinue"
Invoke-WebRequest -Uri https://dist.nuget.org/win-x86-commandline/v4.6.2/nuget.exe -OutFile nuget.exe

sorts the issue and now packages restores/installs
.\nuget.exe install NuGet.CommandLine
Feeds used:
  https://api.nuget.org/v3/index.json

Installing package 'NuGet.CommandLine' to 'D:\local\Temp'.
  CACHE https://api.nuget.org/v3/registration3-gz-semver2/nuget.commandline/index.json

Attempting to gather dependency information for package 'NuGet.CommandLine.4.6.2' with respect to project 'D:\local\Temp', targeting 'Any,Version=v0.0'
Gathering dependency information took 94.2 ms
Attempting to resolve dependencies for package 'NuGet.CommandLine.4.6.2' with DependencyBehavior 'Lowest'
Resolving dependency information took 0 ms
Resolving actions to install package 'NuGet.CommandLine.4.6.2'
Resolved actions to install package 'NuGet.CommandLine.4.6.2'
Retrieving package 'NuGet.CommandLine 4.6.2' from 'nuget.org'.
Adding package 'NuGet.CommandLine.4.6.2' to folder 'D:\local\Temp'
Added package 'NuGet.CommandLine.4.6.2' to folder 'D:\local\Temp'
Successfully installed 'NuGet.CommandLine 4.6.2' to D:\local\Temp
Executing nuget actions took 300.3 ms

Interestingly it now seems to install from cache if I try same package, but also a new package works.
.\nuget.exe install Cake
Feeds used:
  https://api.nuget.org/v3/index.json

Installing package 'Cake' to 'D:\local\Temp'.
  GET https://api.nuget.org/v3/registration3-gz-semver2/cake/index.json
  OK https://api.nuget.org/v3/registration3-gz-semver2/cake/index.json 684ms

Attempting to gather dependency information for package 'Cake.0.28.0' with respect to project 'D:\local\Temp', targeting 'Any,Version=v0.0'
Gathering dependency information took 98.44 ms
Attempting to resolve dependencies for package 'Cake.0.28.0' with DependencyBehavior 'Lowest'
Resolving dependency information took 0 ms
Resolving actions to install package 'Cake.0.28.0'
Resolved actions to install package 'Cake.0.28.0'
Retrieving package 'Cake 0.28.0' from 'nuget.org'.
  GET https://api.nuget.org/v3-flatcontainer/cake/0.28.0/cake.0.28.0.nupkg
  OK https://api.nuget.org/v3-flatcontainer/cake/0.28.0/cake.0.28.0.nupkg 401ms
Installing Cake 0.28.0.
Adding package 'Cake.0.28.0' to folder 'D:\local\Temp'
Added package 'Cake.0.28.0' to folder 'D:\local\Temp'
Successfully installed 'Cake 0.28.0' to D:\local\Temp
Executing nuget actions took 4.81 sec

But it would seem it's time to update nuget.exe on the Kudu environment to latest stable.

Ok, we'll update to nuget.exe 4.6.2. The update has started and it is now available in West Central US. If you are able to do a quick sanity there, that will help validate that everything works. Thanks!

I can confirm NuGet Version: <IP_ADDRESS>55 is on West Central Us and that sorts the problem 👍 Our other regions still on previous version still having the issue,.

It is now deployed everywhere.


Can you do a two-column waterfall layout with text?

I'm trying to do a waterfall layout with text in each cell, and the text has variable length. In the screenshot below you can see how each cell starts from the same y-axis, but I want the cells to be close to each other and eliminate the white space. Is this possible with your TextCell?

I'm trying to do a waterfall layout with text in each cell, and the text has variable length. In the screenshot below you can see how each cell starts from the same y-axis, but I want the cells to be close to each other and eliminate the white space. Is this possible with your TextCell?

Did you solve it ?

No.
On Fri, 28 Jan 2022 at 9:19 pm, nan lu @.***> wrote:

I'm trying to do a waterfall layout with text in each cell, and the text
has variable length. In the screenshot below you can see how each cell
starts from the same y-axis, but I want the cells to be close to each other
and eliminate the white space. Is this possible with your TextCell?
[image: simulator_screenshot_486D0AA5-DBB3-4BAE-8831-DD70CECE6982]
https://user-images.githubusercontent.com/55496019/108595093-1b1ace00-73d2-11eb-9121-e6b904103a9a.png
Did you solve it ?
—
Reply to this email directly, view it on GitHub
https://github.com/sgr-ksmt/WaterfallLayout/issues/21#issuecomment-1024075322,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANHM2U25BIFZ6H7YINEEQR3UYJUT5ANCNFSM4X52JFJA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID:
@.***>

I find a dangerous solution is like this

comment these code
And implement the method of UICollectionViewCell like this

But this is a dangerous because this comment

has explained it.
So make sure your AL constraints is perfect while using it.


Object into search method

I can't put a object as Id in foreach method.
i.e:
@foreach ($candidates as $candidate)
$item = $cart->search(function ($cartItem, $rowId) {
return $cartItem->id === $candidate->id;
});
@endforeach
can you help me?
thx.

@foreach ($candidates as $candidate)
    $item = $cart->search(function ($cartItem, $rowId) use ($candidate) {
        return $cartItem->id === $candidate->id;
    });
@endforeach


Expanding and updating notes and exercise on JSON / YAML formats

Adds more details to the notes in the lesson on structured data formats and also adds some explanation to the exemplar code given in the solution notebook for the associated exercise.
I also updated the notebook 064JsonYamlXML.ipynb notebook to use a ! prefixed cell to run pip as a shell command to install the PyYAML package rather than the previous usage of pip as a module which was raising a deprecation warning. Previously the pyaml package from PyPI was being installed rather than PyYaml however the actual notebook only imported yaml (corresponding to PyYAML) which was installed as a dependency of pyaml, but never used pyaml directly, hence I changed to just installing PyYAML directly.

Thanks @edlowther for catching that, now fixed.


#magic___^_^___line when retain_line_breaks: true

Hello, thanks for a really neat and fast tool! Seems to work fantastic in our mono-repo.
I noticed something strange though when formatting this minimal example:
Foobar:
  baz: >
    Lorem Ipsum is simply dummy text of the printing_and_typesetting industry.

Foobaz:
  baz: "foobar"

which will get formatted into:
Foobar:
  baz: >
    Lorem Ipsum is simply dummy text of the printing_and_typesetting industry. #magic___^_^___line
Foobaz:
  baz: "foobar"

with the following config:
formatter:
  type: basic
  indent: 2
  retain_line_breaks: true

I guess there is some problem in internal/hotfix/retain_line_break.go but could not see where.

Thanks for making an issue and the kind words!
This appears to be a strange edge case of scanning folded block scalars, something that's been a hassle. There's two bits of weirdness, one of which yamlfmt has a workaround for, and one that probably needs investigation in the library.
The one with a workaround is that the underlying yaml library cuts out lines for folded block scalars. This actually kind of makes sense, since that's a correct interpretation of folded block scalars from the spec, however it's really uncool for a tool like this where we want to maintain that form. For that, I've implemented a feature in the yaml library that forces re-encoding folded block scalars to retain the line breaks. I added a boolean option in the formatter config called scan_folded_as_literal to enable this. See the config docs for a bit more info there. With scan_folded_as_literal enabled, the first example in the issue remains the same after format.
The second weirdness is something I actually discovered just now while reproducing the issue. If a line in a folded block scalar ends with space characters, the encoder throws a fit and dumps the raw string value instead of producing a folded block scalar as intended. If whitespace is left at the end of a folded block scalar, you get output like this:
Foobar:
  baz: "Lorem Ipsum is simply dummy text of the printing_and_typesetting industry.
    \n#magic___^_^___line\n"
Foobaz:
  baz: "foobar"

This is a really annoying consequence, and I'll start tackling it soon.
That being said, hopefully scan_folded_as_literal will work for your issue! If it does, I will close this issue; I'll be starting the new investigation for folded block scalar lines ending with whitespace in a new issue dedicated to it.

You are indeed correct! With scan_folded_as_literal: true in my real example seems to give the correct output. Thanks a lot for the quick help!


kl-divergence value undefined

https://github.com/mazpie/mastering-urlb/blob/99fad8525eef349a68552e4b52e55e211077d5ee/agent/dreamer_utils.py#L320-L341
value seems to be undefined for balance != 0.5 or am I missing something?

Hi @mctigger ,
Please check line 332: value is defined with the same value as value_lhs, when balance != 0.5
Hope this is helpful!

Ah, thank you very much :) I overlooked it!


LCFS - BUG - large number of records in Fuel Supply breaks report

Describe the Bug:
A large number of records in the Fuel Supply section causes the report to break. While the input form opens with fuel supply data, the form display fails to load, preventing the Summary from appearing and eventually bumps the user back to the logon screen.
Expected Behaviour:
The report should handle a large number of records seamlessly, displaying the form and Summary without issues and maintaining the user's session. More than 10 records really slows down the display of fuel supply.
Actual Behaviour:
When a report with many records is opened:

The Summary section fails to display.
The user is eventually bumped back to the logon screen.
The fuel supply input form can be opened but the form display does not load.

Implications:

Users cannot work with reports containing large datasets.
Data entry and review processes are disrupted.

Steps To Reproduce:
User/Role: Log in as BCEID user name LCFS6.

Navigate to the 2024 report.
Attempt to open a report with a large number of records in the Fuel Supply section.
Observe that the form display fails to load, the Summary is not displayed, and the user is logged out.

Additional Context:

Investigate whether this issue is related to performance limitations, server-side processing errors, or memory overflows.
Analyze system logs for errors related to the loading process and user session management.

@areyeslo performing much better


Dynamic whois active install

Type of Change

[ ] Bug fix (non-breaking change, fixes #)
[ ] New feature (non-breaking change, adds functionality)
[X] Breaking change (effects multiple commands or functionality)
[ ] Ran manual Pester test and has passed (`.\tests\manual.pester.ps1)
[ ] Pester test is included

Purpose

Fixes #1974. Makes the sp_WhoisActive install more dynamic by selecting the first link on the download page, instead of hardcoding the filename/version number in the function. Also allows the user to specify any local filename for a previously-downloaded copy, either as a zip file or unpacked SQL script.
This is a breaking change because the -Update switch has been removed. See the Approach section for its replacement.
Approach

If the -LocalFile parameter isn't supplied, the function goes out to http://whoisactive.com/downloads/, locates the first link, downloads, unpacks and installs.
If -LocalFile is supplied, that file is read as the installation of sp_WhoisActive. If it's a .zip file, it'll be unzipped first, otherwise it's assumed to be a plain text SQL script file.
I've also modified the unzipping step to use Expand-Archive if it's available, otherwise fall back to using the shell.
Commands to test

Help has been updated with the appropriate examples
Screenshots

Learning

Hey @alevyinroc - thanks for the update. My only concern is removing the SQL file, because we'll be hitting Adam's site to download the zip with every execution.
My approach was also faulty because it kept the "temp" file for too long. Can you implement a compromise? Don't delete the extracted SQL file but check the site to see if it has a newer version and compare?

@potatoqualitee That's workable. We know the SQL filename that's inside the ZIP file matches the name of the ZIP file, so I can compare the names after stripping the extensions and if they don't match, do the full download.
I just wish we had a more permanent place to put the downloads.
Another thought! What if I were to also run exec $database.dbo.sp_whoisactive @help=1 and parse the output of that to compare the version installed to the version that's posted online? If the versions match, don't download (and exit gracefully). If the versions don't match, or the stored proc doesn't exist at all, go ahead and download it or install from the previously-saved download?

@alevyinroc : I think we have. If @potatoqualitee (and @FriedrichWeinmann ) agree with it, it can be placed where dbatools stores user data already (see Path.DbatoolsData), or the whole logic in Get-DbaSqlBuildReference here

that sounds awesome, @alevyinroc ! Great solution. @niphlod has a good point, too. One thing that we must make sure we do is force the end-user to download it at least once. We have only been granted permission to download, not to include in the repo itself.

yeah @potatoqualitee , the logic I was referring to is the one that saves the file in the userdata dir , which is guaranteed to be writable and "dbatools only property".

Perfect <3 Please do implement, Andy.

andy, i'll merge this then you can do a PR with the new changes when you are ready 👍


Bug in switching between light dark mode

Describe the bug
If the default theme set to "dark" then the dark theme will be shown after refreshing the page in any case, Even if I changed it to light theme by clicking switching button in the header.
To Reproduce
Steps to reproduce the behavior:

Go to 'siteMetadata.js' file
Set theme to "dark"
Go to the site and switch it to light
Refresh the page
You will see the dark theme!

Screenshots

Additional context
I checked localStorage theme value, it is "light".

Yes, that's the right behaviour, sorry if the readme is not clear. It's a result of #289 where a user wants a fixed theme irrespective of the user preference. To respect the user's preference, use system.

Thanks for the clarification

Thanks for the clarification

Yes, that's the right behaviour, sorry if the readme is not clear. It's a result of #289 where a user wants a fixed theme irrespective of the user preference. To respect the user's preference, use system.

Maybe we can change to show theme switch button when siteMetadata.theme is "system"


add defect detection (material, amnesty, rip) to the main.py

main.py and defect.py need to be merged

merged.


Copy Feature From Notebook Results

Issue Type: Feature Request
SQL Notebook is really nice feature. But what it is lacking is Copy/export capability of Query Results targetting... Copy as Table, Export to Excel. This will increase the usage of Notebooks
Azure Data Studio version: azuredatastudio 1.5.2 (f74080c96310354bc92211f1826c0fdce78ca2f6, 2019-03-22T06:25:26.627Z)
OS version: Windows_NT x64 10.0.17763

In addition to the copy options already listed, I'd really like to see the ability to copy individual & multiple cells from its results, to be added.  This should be identical to the behavior of query results in ADS & SSMS.

Closed by the PRs above.


Wordlist

@ariaaay error: FileNotFoundError: [Errno 2] No such file or directory: '../../../description_pp/design_matrix_1.npy'

Yeah I am working on it.

@cxmo the travis CI works now. Could you merge it for me? Thanks!

@ariaaay yep


Detailed Readme

The current instructions are detailed and anyone can get it running by following the instructions step by step. It took me a while to get it running. So I compiled these instructions.

Hi， the installation process in detailed readme is very helpful. Thank you so much for your sharing!
However, I have met several problems in installing rlpyt. When I tried to run one of the launch files named launch_dm_control_sac_pixels_cloth_sim.py, I got these errors:

Process Process-2:
using seed 2487
2021-09-09 16:41:11.166081  | sac_cloth_sim_easy_0 WARNING: unequal number of envs per process, from batch_B 16 and n_worker 10 (possible suboptimal speed).
2021-09-09 16:41:11.166132  | sac_cloth_sim_easy_0 Total parallel evaluation envs: 10.
Traceback (most recent call last):
File "/home/liaolab/anaconda3/envs/rlpyt_ws/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
self.run()
File "/home/liaolab/anaconda3/envs/rlpyt_ws/lib/python3.7/multiprocessing/process.py", line 99, in run
self._target(*self._args, **self._kwargs)
File "/home/liaolab/rlpyt_WS/rlpyt/rlpyt/samplers/parallel/base.py", line 127, in get_spaces
env = EnvCls(**env_kwargs)
File "/home/liaolab/rlpyt_WS/rlpyt/rlpyt/envs/dm_control_env.py", line 96, in init
environment_kwargs=environment_kwargs)
File "/home/liaolab/anaconda3/envs/rlpyt_ws/lib/python3.7/site-packages/dm_control/suite/init.py", line 114, in load
environment_kwargs, visualize_reward)
File "/home/liaolab/anaconda3/envs/rlpyt_ws/lib/python3.7/site-packages/dm_control/suite/init.py", line 137, in build_environment
raise ValueError('Domain {!r} does not exist.'.format(domain_name))
ValueError: Domain 'cloth_sim' does not exist.
Traceback (most recent call last):
File "dm_control_sac.py", line 66, in
build_and_train(*sys.argv[1:])
File "dm_control_sac.py", line 62, in build_and_train
runner.train()
File "/home/liaolab/rlpyt_WS/rlpyt/rlpyt/runners/minibatch_rl.py", line 229, in train
n_itr = self.startup()
File "/home/liaolab/rlpyt_WS/rlpyt/rlpyt/runners/minibatch_rl.py", line 61, in startup
world_size=world_size,
File "/home/liaolab/rlpyt_WS/rlpyt/rlpyt/samplers/parallel/base.py", line 51, in initialize
env_spaces = self._get_env_spaces(self.EnvCls, self.env_kwargs)
File "/home/liaolab/rlpyt_WS/rlpyt/rlpyt/samplers/parallel/base.py", line 135, in _get_env_spaces
return examples['spaces']
File "", line 2, in getitem
File "/home/liaolab/anaconda3/envs/rlpyt_ws/lib/python3.7/multiprocessing/managers.py", line 834, in _callmethod
raise convert_to_error(kind, result)
KeyError: 'spaces'

I am stuck with these problems. Thank you for any help you can offer!


Defining Content-Security-Policy parameters in order to get violation reports

Hello, I'm having some problems defining content security policy on my application due to reports of violations.
I need to have a report each time a csp violation occur. I followed your documentation at https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-whitelist/#content-security-policy

On Android and iOS, the network request whitelist (see above) is not able to filter all types of requests (e.g.  & WebSockets are not blocked). So, in addition to the whitelist, you should use a Content Security Policy  tag on all of your pages.

But there is a problem, report-to and report-uri are not supported on <meta> tag https://w3c.github.io/webappsec-csp/
What am I supposed to do in this case? When an application is already bundled with all .html pages and does not communicate with the server?

Any news on this?

We are archiving this repository following Apache Cordova's Deprecation Policy. We will not continue to work on this repository. Therefore all issues and pull requests are being closed. Thanks for your contribution.


Eos balance

Whether it is possible through smart contracts to send еос_balance. If so, then how?
How to make transfer between two accounts without calling "./eosc transfer one_account_name two_account_name? What сlass or functions should I use? Could you tell me?

Smart contracts can invoke transfers of any token on the chain.  See for example the exchange contract included in the source, which may be deployed according to this documentation: https://github.com/EOSIO/eos/wiki/Tutorial-eosio-token-Contract


[bug]: Missing figure /images/user-data-management.svg

Steps to reproduce

Go to https://design.seedcase-project.org/software/building-block-view#user-and-data-management-layer-open-box
The figure "User data management" is missing. See screenshot below.

Expected result
Figure should be there.
Actual result (the bug)
It is not.
Optional: Relevant log output
No response
Severity/Priority
None

Long out of date, not relevant.


Fix setRouteLeaveHook example

The setRouteLeaveHook example is incorrect as it is missing the call to window.confirm.
This PR fixes it.

It's right as-is. The string gets passed back when leaving the route to be used for preventing the navigation event.
https://developer.mozilla.org/en-US/docs/Web/Events/beforeunload


MAC check fails on device rename

Raising a value error in TuyaOpenMQ when I update a device's name through the tuya smart mobile app. After this error, I no longer receive any data in the message listener.
Error
Exception in thread Thread-2 (_thread_main):
Traceback (most recent call last):
  File "C:\Users\sarah\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1009, in _bootstrap_inner
    self.run()
  File "C:\Users\sarah\AppData\Local\Programs\Python\Python310\lib\threading.py", line 946, in run
    self._target(*self._args, **self._kwargs)
  File "D:\Programming\PycharmProjects\test-tuya\venv\lib\site-packages\paho\mqtt\client.py", line 3591, in _thread_main
    self.loop_forever(retry_first_connection=True)
  File "D:\Programming\PycharmProjects\test-tuya\venv\lib\site-packages\paho\mqtt\client.py", line 1756, in loop_forever
    rc = self._loop(timeout)
  File "D:\Programming\PycharmProjects\test-tuya\venv\lib\site-packages\paho\mqtt\client.py", line 1164, in _loop
    rc = self.loop_read()
  File "D:\Programming\PycharmProjects\test-tuya\venv\lib\site-packages\paho\mqtt\client.py", line 1556, in loop_read
    rc = self._packet_read()
  File "D:\Programming\PycharmProjects\test-tuya\venv\lib\site-packages\paho\mqtt\client.py", line 2439, in _packet_read
    rc = self._packet_handle()
  File "D:\Programming\PycharmProjects\test-tuya\venv\lib\site-packages\paho\mqtt\client.py", line 3033, in _packet_handle
    return self._handle_publish()
  File "D:\Programming\PycharmProjects\test-tuya\venv\lib\site-packages\paho\mqtt\client.py", line 3327, in _handle_publish
    self._handle_on_message(message)
  File "D:\Programming\PycharmProjects\test-tuya\venv\lib\site-packages\paho\mqtt\client.py", line 3570, in _handle_on_message
    on_message(self, self._userdata, message)
  File "D:\Programming\PycharmProjects\test-tuya\venv\lib\site-packages\tuya_iot\openmq.py", line 137, in _on_message
    decrypted_data = self._decode_mq_message(
  File "D:\Programming\PycharmProjects\test-tuya\venv\lib\site-packages\tuya_iot\openmq.py", line 110, in _decode_mq_message
    plaintext = cipher.decrypt_and_verify(data_buffer, tag_buffer).decode(
  File "D:\Programming\PycharmProjects\test-tuya\venv\lib\site-packages\Crypto\Cipher\_mode_gcm.py", line 567, in decrypt_and_verify
    self.verify(received_mac_tag)
  File "D:\Programming\PycharmProjects\test-tuya\venv\lib\site-packages\Crypto\Cipher\_mode_gcm.py", line 508, in verify
    raise ValueError("MAC check failed")
ValueError: MAC check failed

Minimal Reproducible Code
from tuya_iot import TuyaOpenAPI, AuthType, TuyaAssetManager, TuyaOpenMQ
BASE = "https://openapi.tuyaeu.com"
client_api = TuyaOpenAPI(
   BASE, access_id, secret, auth_type=AuthType.CUSTOM
)
asset_client = TuyaAssetManager(client_api)
iot_hub = TuyaOpenMQ(client_api)
client_api.connect(username, password)
def event(d):
   print(d) # No longer prints after the error was raised.

iot_hub.add_message_listener(event)
iot_hub.start()

After running you would just have to change the name of any device.
If you need more code, the full code is on my repository: https://github.com/InterStella0/discord-iot-bot

Seems like this cannot be reproduced as of anymore.


Add lua endpoint to handle certificates in dynamic configuration mode

What this PR does / why we need it:
This PR is a part of adding dynamic certificate serving functionality (https://github.com/Shopify/edgescale/issues/515). This adds a Lua endpoint that stores certificates and keys of a host in a shared dictionary and allows Lua directives to retrieve them.
@Shopify/edgescale

The current tests cases look good! Once https://github.com/Shopify/ingress/pull/56#discussion_r207266474 is addressed we will need a test for that too.

Moved PR upstream https://github.com/kubernetes/ingress-nginx/pull/2889