Experimental results on CIFAR-100

Hi, Thanks for your nice work.
From the paper, the improvements on ImageNet are obvious, which is attractive to me.
Recently, I conduct experiments on CIFAR-100 with ResNet-18 and the meta-ACON. However,  the performance is not satisfactory.
Here, I want to know if you can provide some results on CIFAR-100 for reference.
Very thanks.

hi ,Have you solved the problem yet?can you give me some advice?

Unfortunately, I haven't solved the problem yet. I'm still trying it on ImageNet.
I tried on CIFAR-100 with ResNet-18 and meta-ACON. The performance is still far behind the original ResNet-18.
I am wondering if the configuration of my meta-ACON-ResNet18 is correct. I replace all the relu with meta-acon in all the basic block.

Have you ever run a program provided by the author？
I'm using IMAGENET dataset for the first time。
I don't know what this script means。https://raw.githubusercontent.com/soumith/imagenetloader.torch/master/valprep.sh
can you give me some advice?
------------------ 原始邮件 ------------------
发件人: @.>;
发送时间: 2021年9月3日(星期五) 中午12:00
收件人: @.>;
抄送: @.>; @.>;
主题: Re: [nmaac/acon] Experimental results on CIFAR-100 (#13)
Unfortunately, I haven't solved the problem yet. I'm still trying it on ImageNet.
I tried on CIFAR-100 with ResNet-18 and meta-ACON. The performance is still far behind the original ResNet-18.
I am wondering if the configuration of my meta-ACON-ResNet18 is correct. I replace all the relu with meta-acon in all the basic block.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

Hi,
As seen from the script, it just put images in the validation set into correct folders.
The folder named with code, like n01751748,  just represents a specific class.

thank you.
How do I apply meta-ACON to the network structure of other tasks？for example super-resolution。Could you give me some advice？
------------------ 原始邮件 ------------------
发件人:                                                                                "nmaac/acon"                                                                                @.>;
发送时间: 2021年9月3日(星期五) 中午12:27
@.>;
<EMAIL_ADDRESS>主题: Re: [nmaac/acon] Experimental results on CIFAR-100 (#13)
Hi,
As seen from the script, it just put images in the validation set into correct folders.
The folder named with code, like n01751748,  just represents a specific class.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

Hi, I'm no familiar with the super-resolution task.

thank you
------------------ 原始邮件 ------------------
发件人: @.>;
发送时间: 2021年9月3日(星期五) 中午12:50
收件人: @.>;
抄送: @.>; @.>;
主题: Re: [nmaac/acon] Experimental results on CIFAR-100 (#13)
Hi, I'm no familiar with the super-resolution task.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

hi .
How do I set the value of --val-dir?Why did this error occur?can you give me some advice ?
------------------ 原始邮件 ------------------
发件人:                                                                                "nmaac/acon"                                                                                @.>;
发送时间: 2021年9月3日(星期五) 中午12:50
@.>;
<EMAIL_ADDRESS>主题: Re: [nmaac/acon] Experimental results on CIFAR-100 (#13)
Hi, I'm no familiar with the super-resolution task.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

hello，
Do you know how to replace relu in network with metaacon?can you give me some advice?
------------------ 原始邮件 ------------------
发件人:                                                                                "nmaac/acon"                                                                                @.>;
发送时间: 2021年9月3日(星期五) 中午12:50
@.>;
<EMAIL_ADDRESS>主题: Re: [nmaac/acon] Experimental results on CIFAR-100 (#13)
Hi, I'm no familiar with the super-resolution task.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.


Failed to write to DisableAntiSpywareFailed to write to DisableRealTimeMonitoring

Since latest Windows 10 Update, defender-control doesn't work anymore for me.
Error Message: "Failed to write to DisableAntiSpywareFailed to write to DisableRealTimeMonitoring"

have you tried disabling tamper protection and running it again?

I have disabled tamper protection, seems that it has be activated by the last update. Still the same error message but this time, it disabled windows defender.
Failed to write to DisableAntiSpywareFailed to write to DisableRealTimeMonitoring
Disabled windows defender!

you can ignore the error

Thanks for the fast help, so not only an update to 11 enables the tamper protection again.


TechnoMotion notefield not calculating y position after resize

Reported by Daniel Rotwind
The issue comes from the way the notefields are now zoomed, which do not count for y offset after applying this zoom.

Fixed in 4.9.8


Add flag for removing stack on failed create

formica (deploy|new --deploy) --remove-on-error

Thanks for sending this in, I really want every action taken on the stack to be a separate command though. While the flag is a nice convenience and probably fine on a new stack, it still makes something happen without me consciously triggering it after I see the error, which I don't really want Formica to do. It is relatively easy to just do formica new -c configfile.yaml || formica remove -c configfile.yaml if you want to remove it after it fails.


FirebaseInstanceId.getInstance().getToken() is not working when used with Firebase UI and also cant recieve notifications

Welcome to FirebaseUI and thanks for submitting an issue!
Please take a look at open issues, as well as resolved issues, to see if your issue is either already being addressed, or has been solved by someone else.
If not, please feel free to fill in the following info so we can help faster!
Step 1: Are you in the right place?

For issues or feature requests related to the code in this repository file a GitHub issue.
For general technical questions, post a question on StackOverflow tagged appropriately.
For general Firebase discussion, use the firebase-talk google group
For help troubleshooting your application that does not fall under one of the above categories, reach out to the personalized Firebase support channel

Step 2: Describe your environment

Android device: _____
Android OS version: _____
Google Play Services version: _____
Firebase/Play Services SDK version: _____
FirebaseUI version: ____

Step 3: Describe the problem:
Steps to reproduce:

Observed Results:

What happened?  This could be a description, logcat output, etc.

Expected Results:

What did you expect to happen?

Relevant Code:
// TODO(you): code here to reproduce the problem

@vinayak-ks it's not possible to help with the whole issue template empty, there's no information to go on.
Please post some code, logs, and other information explaining the issue.


[SPARK-44237][CORE] Simplify DirectByteBuffer constructor lookup logic

What changes were proposed in this pull request?
This PR aims to simplify DirectByteBuffer constructor lookup logic.
Why are the changes needed?
try-catch statement is not needed because we know version number already.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Pass the CIs.

Thank you, @yaooqinn !

Merged to master. All tests passed except org.apache.spark.sql.jdbc.MariaDBKrbIntegrationSuite which is irrelevant to this PR.


[Doc Improvement][Update Moodle LMS][2299213]

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/resources/moodle-overview.md
86
8
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Docs Build status updates of commit d1ec12c:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

msteams-platform/resources/moodle-overview.md
:white_check_mark:Succeeded
View

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

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/resources/moodle-overview.md
86
8
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Docs Build status updates of commit e1ae46f:
:warning: Validation status: warnings

File
Status
Preview URL
Details

msteams-platform/resources/moodle-overview.md
:warning:Warning
View
Details

msteams-platform/resources/moodle-overview.md

Line 35, Column 181: [Warning: file-not-found - See documentation] Invalid file link: 'moodle-lti-apps.md'.

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

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/resources/moodle-overview.md
86
8
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Docs Build status updates of commit 404a13d:
:warning: Validation status: warnings

File
Status
Preview URL
Details

msteams-platform/resources/moodle-overview.md
:warning:Warning
View
Details

msteams-platform/resources/moodle-overview.md

Line 35, Column 181: [Warning: file-not-found - See documentation] Invalid file link: 'moodle-lti-apps.md'.

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

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/resources/moodle-overview.md
86
8
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Docs Build status updates of commit bd3971f:
:warning: Validation status: warnings

File
Status
Preview URL
Details

msteams-platform/resources/moodle-overview.md
:warning:Warning
View
Details

msteams-platform/resources/moodle-overview.md

Line 34, Column 181: [Warning: file-not-found - See documentation] Invalid file link: 'moodle-lti-apps.md'.

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

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/resources/moodle-overview.md
86
8
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Docs Build status updates of commit 4e3467d:
:warning: Validation status: warnings

File
Status
Preview URL
Details

msteams-platform/resources/moodle-overview.md
:warning:Warning
View
Details

msteams-platform/resources/moodle-overview.md

Line 34, Column 181: [Warning: file-not-found - See documentation] Invalid file link: 'moodle-lti-apps.md'.

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

Docs Build status updates of commit 4642c8d:
:warning: Validation status: warnings

File
Status
Preview URL
Details

msteams-platform/resources/moodle-overview.md
:warning:Warning
View
Details

msteams-platform/resources/moodle-overview.md

Line 34, Column 181: [Warning: file-not-found - See documentation] Invalid file link: 'moodle-lti-apps.md'.

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

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/resources/moodle-overview.md
87
6
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Learn Build status updates of commit caa6949:
:warning: Validation status: warnings

File
Status
Preview URL
Details

msteams-platform/resources/moodle-overview.md
:warning:Warning
View
Details

msteams-platform/resources/moodle-overview.md

Line 33, Column 181: [Warning: file-not-found - See documentation] Invalid file link: 'moodle-lti-apps.md'.

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

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/resources/moodle-overview.md
87
6
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Learn Build status updates of commit 85a0ed6:
:warning: Validation status: warnings

File
Status
Preview URL
Details

msteams-platform/resources/moodle-overview.md
:warning:Warning
View
Details

msteams-platform/resources/moodle-overview.md

Line 33, Column 179: [Warning: file-not-found - See documentation] Invalid file link: 'moodle-lti-apps.md'.

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


Update main.tex

I just made some few restructuring to the grammar of the lecture slides.

Thank you, is great!


Docs(web-react, web-twig, web): Add Tooltip demo #DS-914

Description
Additional context
Fixed bug in web & web-twig FloatingUi demo (data-placement => data-spirit-placement)
Updated version of FloatingUI from 0.5.4 to 1.5.3 in .mjs file
(packages/web/src/scss/components/Tooltip/floating-ui-example.mjs)
Issue reference
Demo: Tooltip má ve všech technologiích stejná dema

coverage: 96.46%. remained the same when pulling 12fa95c9be6b387a4c65a083eba73d4ac32058d7 on docs/DS-914-tooltip-demo into 4e1b5ebd2a3989261d4b1f04735a5025d6ee696d on main.

Should we keep Dismissible Tooltip via JS API in web demo?

Yes, please.


Possibility to use another row columns (attributes) in rules

Requirements
Please take note of our contributing guidelines: https://docs.laravel-excel.com/3.1/getting-started/contributing.html
Filling out the template is required. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
Mark the following tasks as done:

[x] Checked the codebase to ensure that your feature doesn't already exist.
[x] Checked the pull requests to ensure that another person hasn't already submitted the feature or fix.
[x] Adjusted the Documentation.
[x] Added tests to ensure against regression.

Description of the Change

Why Should This Be Added?

Benefits

Possible Drawbacks

Verification Process

Applicable Issues

Needs work on retro compatibility...


tss门限签名

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

这边是有什么需求么？请具体描述一下，感谢！


Make Service Role Creation Optional

We need service role creation to be optional because our use case requires we OpenSearch clusters in the same AWS account
https://github.com/cyberlabrs/terraform-aws-opensearch/blob/b319c420c7c395da82d794d8c1ae7cda8c0c5686/main.tf#L52

Greetings, I will try to solve it as soon as possible.


custom filtering formatter for onion's scribe editor

@spra85 @kand, Working out a way to have our <bulbs-poll /> element work in the editor with having it's rendered content end up in our saved html.
I had reviewed the ShadowDOM as it is useful for that kind of use-case, but that spec isn't as well agreed upon as the custom elements spec and I don't think it's safe to use yet.
So:
This formatter walks through the content tree.
At each node it checks if the node implements a method filterForExport
If so, the method is called.
In this way, custom elements can filter out their contents from export.
If an editor includes an element: <custom-element></custom-element>,
And the custom element sets some content such that inner html looks like:
<custom-element>Content For Display</custom-element>
The prototype for <custom-element> may implement filterForExport thusly:
CustomElement.prototype.filterForExport = function () {
  this.innerHTML == '';
}

And the exported html will look like this:
<custom-element></custom-element>
In this way a custom element my render demonstrative content inside the editor,
but not have that content saved to our database.

I like it :+1:

Also think this is a really clean solution.  Nice @collin


Storybook broken from >=6.0.8 because React.ComponentProps cannot derive all props

Environment
System:

OS: macOS 14.1.1
CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
Memory: 3.95 GB / 64.00 GB
Shell: 5.9 - /bin/zsh

Binaries:

Node: 18.16.0 - ~/.nvm/versions/node/v18.16.0/bin/node
Yarn: 1.22.19 - ~/.yarn/bin/yarn
npm: 9.5.1 - ~/.nvm/versions/node/v18.16.0/bin/npm
pnpm: 8.6.6 - ~/.nvm/versions/node/v18.16.0/bin/pnpm
bun: 1.0.15 - ~/.bun/bin/bun

npmPackages:

styled-components: latest => 6.1.1

Reproduction
import styled from "styled-components";

const A = styled.div<{ foo?: string }>``;

const B = styled(A)<{ bar?: string }>``;

// typescript has no issue with the "bar" prop and it is typed correctly
const C = () => <B foo="one" bar="two" />

// Typescript error: "Property 'bar' does not exist on type ..."
// This works as expected on v6.0.7 but is broken in any version since
type T = React.ComponentProps<typeof B>["bar"]

https://www.typescriptlang.org/play?#code/JYWwDg9gTgLgBAKjgQwM5wEoFNkGN4BmUEIcARFDvmQNwBQokscqMAngDZYAmcRJ5Vpx4BaXCUgA7LJJipadOuMms4AQTgBeFuy7cAdN2AA3ADwBvPhAgB+AFw6owSQHM4AXwB8AA2-0lECrwAEJaOsLcABRqAJQWcABGyFD2js5uXr7+yqoAwmGRMVqecKahBNaaZIFYZInJVTAA7hB1APSeim1tcAAiEFjokhDwqAAWEE0ocOxgg7hOYPBYUMRQcM5wxgBs+gAM+gDsdLNYcAAqYdh4MPq5EjWyAArEYKimpxAEcMGeANpkJJQMgAXSAA
Steps to reproduce
Using styled-components v6.0.8 or above, up to @ latest results in props from wrapped types (including those introduced by attrs not being picked up by React.ComponentProps.
This results in a number of issues with tooling - most significantly for us, storybook which derives the props using StoryMeta to type its story args, meaning all stories now show type errors.
Expected Behavior
Component B wrapping component A and introducing prop "bar" should type correctly and function with React.ComponentProps type.
Actual Behavior
Typescript shows an error when props are derived this way.
Extra Information
This seems to be vaguely related to #4165 and #4219 but neither highlight the React.ComponentProps case.

You can also see the error here – https://codesandbox.io/p/sandbox/cold-sun-8rn4s7?file=%2Fsrc%2FApp.tsx%3A10%2C11 where the Box3 component has not inherited all the props it should have.

This issue is also raised in a comment here https://github.com/styled-components/styled-components/issues/4174#issuecomment-1731339423

The issue specifically began here when support for static properties was added #4141 in order to fix issue #4104

This issue is also raised in a comment here #4174 (comment)

This scenario is fixed by 6.1.3 (thanks @justinbhopper!)

I think the OP issue might be resolved as well by 6.1.3 @alex2, could you verify and close if so? Thanks!


Major property rework: introducing virtual properties

Depends on #1337.

Provides some speedup.

Benchmark
Perf (sec)

3d-cube.js
0.944 -> 0.939 : +0.541%

3d-raytrace.js
1.124 -> 1.107 : +1.506%

access-binary-trees.js
0.597 -> 0.570 : +4.605%

access-fannkuch.js
2.367 -> 2.390 : -0.958%

access-nbody.js
1.091 -> 1.078 : +1.175%

bitops-3bit-bits-in-byte.js
0.576 -> 0.580 : -0.619%

bitops-bits-in-byte.js
0.857 -> 0.864 : -0.902%

bitops-bitwise-and.js
1.036 -> 1.066 : -2.875%

bitops-nsieve-bits.js
1.777 -> 1.770 : +0.375%

controlflow-recursive.js
0.397 -> 0.392 : +1.085%

crypto-aes.js
1.118 -> 1.099 : +1.729%

crypto-md5.js
0.757 -> 0.735 : +2.961%

crypto-sha1.js
0.719 -> 0.702 : +2.281%

date-format-tofte.js
0.874 -> 0.855 : +2.153%

date-format-xparb.js
0.467 -> 0.457 : +2.078%

math-cordic.js
1.336 -> 1.334 : +0.132%

math-partial-sums.js
0.730 -> 0.730 : -0.075%

math-spectral-norm.js
0.600 -> 0.596 : +0.660%

string-base64.js
2.160 -> 1.953 : +9.587%

string-fasta.js
1.462 -> 1.392 : +4.766%

Geometric mean:
+1.545%

However, the purpose of this patch is providing the basic infrastructure, which can be optimized further later. E.g. string length can be a virtual property.

Thank you very much for checking the PR.

Thank you for the reviews.


Not updating dashboards

This did work for a while, but not the dashboards aren't updating.
How do I debug this ?

Hi !

Does it happen on all widgets or just one ?
Is there data in the history.yml ?
Do have an error when you launch dashing start ?

Happens on all widgets,
There are no errors
there is data in history.yml
Interestingly I get data if I restart it?
Dave Cramer
On 3 March 2015 at 16:51, damien clochard<EMAIL_ADDRESS>wrote:

Hi !

Does it happen on all widgets or just one ?
Is there data in the history.yml ?
Do have an error when you launch dashing start ?

—
Reply to this email directly or view it on GitHub
https://github.com/daamien/PostgreSQL-Dashboard/issues/2#issuecomment-77044026
.

hi thanks for the quick reply,
A few more questions:

What is your current browser ? Do you extensions installed such as adblock or anything else ?

Can you edit the assets/javascripts/application.coffee, add Dashing.debugMode = true , relaunch dashing, then open your browser debug console and check if there's errors ?

Did you try with another browser ? If not can you try with a dead simple browser like midori ?

Hi Damien,
This is likely an issue with my network. debug mode will help.
Have you ever put this behind nginx acting as a proxy?
Dave
Dave Cramer
On 4 March 2015 at 07:03, damien clochard<EMAIL_ADDRESS>wrote:

hi thanks for the quick reply,
A few more questions:

What is your current browser ? Do you extensions installed such as
adblock or anything else ?
Can you edit the assets/javascripts/application.coffee, add Dashing.debugMode
= true, relaunch dashing, then open your browser debug console and
check if there's errors ?
Did you try with another browser ? If not can you try with a dead
simple browser like midori http://www.midori-browser.org/ ?
—
Reply to this email directly or view it on GitHub
https://github.com/daamien/PostgreSQL-Dashboard/issues/2#issuecomment-77146369
.

Looks like /events is not returning ???
Dave Cramer
On 4 March 2015 at 08:23, Dave Cramer<EMAIL_ADDRESS>wrote:

Hi Damien,
This is likely an issue with my network. debug mode will help.
Have you ever put this behind nginx acting as a proxy?
Dave
Dave Cramer
On 4 March 2015 at 07:03, damien clochard<EMAIL_ADDRESS>wrote:

hi thanks for the quick reply,
A few more questions:

What is your current browser ? Do you extensions installed such as
adblock or anything else ?
Can you edit the assets/javascripts/application.coffee, add Dashing.debugMode
= true, relaunch dashing, then open your browser debug console and
check if there's errors ?
Did you try with another browser ? If not can you try with a dead
simple browser like midori http://www.midori-browser.org/ ?
—
Reply to this email directly or view it on GitHub
https://github.com/daamien/PostgreSQL-Dashboard/issues/2#issuecomment-77146369
.

Hi Dave,
Sorry I have no particular experience with nginx, but it's a standard Sinatra app so the doc below may be usefull for you:
http://recipes.sinatrarb.com/p/deployment/nginx_proxied_to_unicorn
About the problem with /events, do you see errors in the console log ?

Hi Damien,
No no errors. It seems like the /events just doesn't return ??
This is on pg 8.4 but I rewrote the queries to work properly.
Dave Cramer
On 6 March 2015 at 04:58, damien clochard<EMAIL_ADDRESS>wrote:

Hi Dave,
Sorry I have no particular experience with nginx, but it's a standard
Sinatra app so the doc below may be usefull for you:
http://recipes.sinatrarb.com/p/deployment/nginx_proxied_to_unicorn
About the problem with /events, do you see errors in the console log ?
—
Reply to this email directly or view it on GitHub
https://github.com/daamien/PostgreSQL-Dashboard/issues/2#issuecomment-77534015
.

ok.
You can send me the queries you rewrote for 8.4 and I'll had them to the project if you want.
Anyway PostgreSQL 8.4 is now obsolete, you should upgrade :)

patch merged

i have an error when you launch dashing start


[Pending] Change to https://staging.covid-hcportal.cdssandbox.xyz/en/about/sending-qr-alerts

Still working on this - please do not address it yet.
HC has some concerns so please change the second sentence on this page which currently reads as:
Your health authority will give you the address, date, time and guidance for the exposure.
To
English:  To send an alert, you'll need the address, date, time and guidance for the exposure.
French:  Pour envoyer une alerte, vous aurez besoin de l’adresse, de la date, et l’heure de l’exposition, ainsi que la consigne à transmettre.
Remove the last line in both English and French:

“Health authorities continue to manually contact visitors who do not scan QR codes.”
-Les autorités sanitaires continueront de contacter manuellement les visiteurs qui ne scannent pas les codes QR.

Merci!

This is a duplicate issue - closing now.


Clarify Config choices for BERT yamls

Our default yamls don't make it clear how basic model architecture configuration choices are made (such as the number of attention heads).
Additionally, this makes clear how a user might define the ALiBi mask size for different sequence lengths.
   # Mosaic BERT 'base' generally uses the default architecture values for from the Hugging Face BertConfig object
    # These values can be changed here:
    model_config:
      num_attention_heads: 12 # bert-base default
      num_hidden_layers: 12 # bert-base default
      max_position_embedding: 512 # This is used for defining the shape of the ALiBi mask
      attention_probs_dropout_prob: 0.0 # This must be 0 for Flash Attention with triton to work

I think this is the easiest way of dealing with the question of max sequence length. In our current implementation for BERT, the ALiBi mask is initiated with size 512 (using the default of max_position_embedding from BertConfig). This causes issues for using a maximum sequence length >512.
I'm open to other suggestions.
An alternative is to use:
max_position_embedding: *max_seq_len

Although I don't fully understand the implications of training with a small initialized ALiBi mask and testing on longer sequence lengths.

I think we made a poor design decision in having MosaicBERT create an Alibi buffer that uses config.max_position_embeddings to set its shape.

It creates a different meaning for that config variable, which is confusing.
We end up using it to define a buffer with a fixed size. Because it's a buffer, it gets saved into the model checkpoint and when you want to load that checkpoint, you need the buffer of the downstream model to have the same size as what's in the checkpoint. In other words, it becomes needlessly tedious to do fine-tuning/inference on sequences larger than the config.max_position_embeddings used during pre-training.

It might be outside the scope of this PR, but in order to better clarify the BERT config settings, we should really just have MosaicBERT ignore the max_position_embeddings config field (since we have removed position embeddings) and make the alibi biases a dynamic tensor that is not registered as a buffer.
@jacobfulano What do you think? I can take a stab at those changes if you think it's a good idea.

I think we made a poor design decision in having MosaicBERT create an Alibi buffer that uses config.max_position_embeddings to set its shape.

It creates a different meaning for that config variable, which is confusing.
We end up using it to define a buffer with a fixed size. Because it's a buffer, it gets saved into the model checkpoint and when you want to load that checkpoint, you need the buffer of the downstream model to have the same size as what's in the checkpoint. In other words, it becomes needlessly tedious to do fine-tuning/inference on sequences larger than the config.max_position_embeddings used during pre-training.

These two things tripped me up! I agree that they add some extra potential pain points for users.

It might be outside the scope of this PR, but in order to better clarify the BERT config settings, we should really just have MosaicBERT ignore the max_position_embeddings config field (since we have removed position embeddings) and make the alibi biases a dynamic tensor that is not registered as a buffer.
@jacobfulano What do you think? I can take a stab at those changes if you think it's a good idea.

I agree with this. @alextrott16 feel free to take a stab at this separate from this PR (which is currently just small yaml changes)

@jacobfulano OK, maybe it makes the most sense to pause this PR until I have the new alibi handling in place (should be doable by tomorrow). Then you'll have a clearer picture for what text is most appropriate in the YAMLs.

@alextrott16 I made the extra config very simple, with some comments that just make the number of layers explicit.
I also switched to low_precision_layernorm here.
After linting, there are a few extra files that have superficial spacing changes

Just updated! Thanks for this


support debug-embed of rust_embed

Hey,
it would be nice to allow to select the debug-embed feature from utoipa-swagger-ui. It's either this or a problem with running the swagger-ui in distroless.

Hello,
This is a good question indeed, I haven't tried with distroless image before, but my rough guess points to how the rust_embed which is the create used underneath handles the embedded files. And it seems like in distroless case it does not find the files or they will never get included.
Snippet from the utoipa-swagger-ui/src/lib.rs
https://github.com/juhaku/utoipa/blob/59c9c1275f0e07b632c33767cbf38508570b024b/utoipa-swagger-ui/src/lib.rs#L120
#[derive(RustEmbed)]
#[folder = "$UTOIPA_SWAGGER_DIR/$UTOIPA_SWAGGER_UI_VERSION/dist/"]
struct SwaggerUiDist;

And the build.rs file is the bulid script that suppose to set the variables in place where the files will be located.
https://github.com/juhaku/utoipa/blob/59c9c1275f0e07b632c33767cbf38508570b024b/utoipa-swagger-ui/build.rs
The build script is bit tricky to debug since its run at background and does not really give any user output. But it might be that the distroless case is not correctly handled by this build.rs. Where is the distroless image build? Is the configuration somehow special compared to the regular image.
Another thing that comes to my mind is that the rust_embed is being used with feature flag interpolate-folder-path not sure whether the distroless is able to handle the interpolated folder path from environment varialbes like the reqular distroful images are?

Oh as you typed i changed the description cause i think we were using debug builds, meaning it wont be embedded at all

Right, I could add this feature flag available for such a case like this, but will not enable it by default for everyone. So then the utoipa-swagger-ui could be defined with feature features = ["debug-embed"].

Still not sure, but it might be an option

Despite this being a good idea. Likely it'ss not the problem as we do not specify --release  but the build has debug = false which should make rust_embed, embed the file. So maybe it's its about interpolate-folder-path, but i don't see any deps that might cause problems

Yeah, maybe it's worth debugging the rust_embed itself whether it is able to embed files in distroless environment with or without interpolate-folder-path flag to narrow down the possible source of issue if the feature flag is not helping on this one.

I added the feature and it can be found from master: https://github.com/juhaku/utoipa/commit/ab7efd2a7d103de16158baca767737278d35a3dd

Great. I will try this latest next week

Ok I found a minute to check. The 'debug-embed' feature solved the issue. Any plan on doing the next release?

Okay nice, :+1: I could create a new release from utoipa-swagger-ui latest tomorrow with the additional feature flag.

Actually just released it :slightly_smiling_face:

awesome, thx

Relates to #527


Parse issue in metadata when " inside markdown heading

See https://github.com/huggingface/hub-docs/pull/636 for example

See also https://huggingface.slack.com/archives/C02GLJ5S0E9/p1670262566901849?thread_ts=1670248917.444989&cid=C02GLJ5S0E9


I suspect that when filtering VLANS, the Exception is not Raised on an error message.

Whe running the following code:
def read(netbox: api, debtor_code: str):
    try:
        return netbox.ipam.vlans.filter(tenant=debtor_code)
    except Exception as error:
        logging.exception(error)
        return None

I receive the following error message:
pynetbox.core.query.RequestError: The request failed with code 400 Bad Request: {'tenant': ['Select a valid choice. DB0001 is not one of the available choices.']}

I have a strong believe that the Exception is not raised.

.filter() returns a RecordSet (a generator), which means that no HTTPS request has yet been made.
Possible RequestErrors happen only when you try to get some data from the generator:
>>> rs = netbox.ipam.vlans.filter(tenant="this is a string")
>>> type(rs)
<class 'pynetbox.core.response.RecordSet'>
>>> next(rs)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.9/dist-packages/pynetbox/core/response.py", line 117, in __next__
    next(self.response), self.endpoint.api, self.endpoint
  File "/usr/local/lib/python3.9/dist-packages/pynetbox/core/query.py", line 317, in get
    req = self._make_call(add_params=add_params)
  File "/usr/local/lib/python3.9/dist-packages/pynetbox/core/query.py", line 284, in _make_call
    raise RequestError(req)
pynetbox.core.query.RequestError: The request failed with code 400 Bad Request: {'tenant': ['Select a valid choice. this is a string is not one of the available choices.']}
>>>

Okay thank you for your reaction! Based on your post, I understand how to work with this. I will close the issue!


[webview_flutter] does not load relative file URLs on a real iOS device

The issue
Due to https://github.com/flutter/flutter/issues/67628 I tried a different approach to viewing local HTML files in a Flutter app. Instead of serving the files through a local webserver (which crashes on iOS), I now add the files to the asset bundle and on app start I copy them to the local document directory on the device. From there I can load the HTML files in a webview using the file:// schema, with the benefit that images, css etc. that are referenced in the HTML are loaded as well.
This works fine in Android (simulator and real device) as well as in an iOS simulator. But on an iOS device the webview fails to load css files with a relative URL, if the referenced file is in a different directory which is not below the current file.
Steps to Reproduce

Run flutter create test_webview.
Update the files as follows:

Create the following directory structure in the project

assets
assets/www
assets/www/text
assets/www/css

Create  index.html in assets/www/text:

<!DOCTYPE html>

    <title>Test </title>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/>
    <link rel="stylesheet" type="text/css" href="../css/test.css"/>

This text is red.

Create test.css in assets/www/css:

h1 {
    color: red;
}

Update pubspec.yaml like this:

name: test_webview
description: A new Flutter project.

publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1

environment:
  sdk: ">=2.7.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
  cupertino_icons: ^1.0.0
  path: ^1.7.0
  path_provider: ^0.5.0+1
  webview_flutter: ^1.0.0

dev_dependencies:
  flutter_test:
    sdk: flutter

flutter:

  uses-material-design: true

  assets:
     - assets/www/
     - assets/www/text/
     - assets/www/css/

Update main.dart like this:

import 'dart:convert';
import 'dart:io';

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

import 'package:path/path.dart';
import 'package:path_provider/path_provider.dart';
import 'package:webview_flutter/webview_flutter.dart';

Directory documentsDirectory;

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  documentsDirectory = await getApplicationDocumentsDirectory();
  await _copyAssetsToDocuments();
  runApp(MyApp());
}

Future<void> _copyAssetsToDocuments() async {
  final assetsDir = Directory(join(documentsDirectory.path, 'assets'));

  if (assetsDir.existsSync()) {
    assetsDir.deleteSync(recursive: true);
  }

  final manifestContent = await rootBundle.loadString('AssetManifest.json');
  var manifestMap = json.decode(manifestContent);
  var webAssets = manifestMap.keys
      .where((key) => key is String && key.startsWith('assets/www/'));

  for (var asset in webAssets) {
    await _copyFromAssets(asset);
  }
}

Future<void> _writeToFile(ByteData data, String path) {
  final buffer = data.buffer;
  return new File(path)
      .writeAsBytes(buffer.asUint8List(data.offsetInBytes, data.lengthInBytes));
}

Future<void> _copyFromAssets(String pathToAsset) async {
  try {
    var bytes = await rootBundle.load(pathToAsset);
    final destinationPath = join(documentsDirectory.path, pathToAsset);
    final destinationDir = Directory(dirname(destinationPath));

    if (await destinationDir.exists()) {
      await _writeToFile(bytes, destinationPath);
      print(destinationPath);
    } else {
      await destinationDir.create(recursive: true);
      await _writeToFile(bytes, destinationPath);
      print(destinationPath);
    }
  } catch (e) {
    print(e.toString());
  }
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: WebView(
          initialUrl: 'file://' +
              documentsDirectory.path +
              '/assets/www/text/index.html',
          javascriptMode: JavascriptMode.unrestricted,
          onWebResourceError: (error) {
            print(error.description);
          },
        ),
      ),
    );
  }
}

Add this to your info.plist in XCode:

<dict>
	<key>NSAllowsArbitraryLoads</key>
	<true/>
	<key>NSAllowsLocalNetworking</key>
	<true/>
</dict>

... Run the app on an iOS simulator and a real iOS device.

Expected results:
The text "This text is red" should be red.
Actual results:
In the iOS simulator the text is red. On a real iOS device the text is black.

Logs

georg@MM20 test_webview % flutter analyze
Analyzing test_webview...
No issues found! (ran in 1.7s)

georg@MM20 test_webview % flutter doctor -v
[✓] Flutter (Channel stable, 1.22.1, on Mac OS X 10.15.7 19H2, locale de-PT)
    • Flutter version 1.22.1 at /Users/georg/bin/flutter
    • Framework revision f30b7f4db9 (24 hours ago), 2020-10-08 10:06:30 -0700
    • Engine revision 75bef9f6c8
    • Dart version 2.10.1

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/georg/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.0.1, Build version 12A7300
    • CocoaPods version 1.9.3

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 50.0.1
    • Dart plugin version 193.7547
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.49.3)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.15.0

[✓] Connected device (3 available)
    • Nokia 5 3 (mobile)             • N0AA003628K71000589                      • android-arm64 • Android 10 (API 29)
    • sdk gphone x86 (mobile)        • emulator-5554                            • android-x86   • Android 11 (API 30) (emulator)
    • Georgs iPhone 6s Plus (mobile) • 677d8be9c78d54dbce7fc7f97a46c0f81f31322c • ios           • iOS 14.0.1
    ! Error: Georgs iPhone 6s Plus is busy: Copying cache files from device. Xcode will continue when Georgs iPhone 6s Plus is
      finished. (code -10)

• No issues found!

@ghowen Thanks for the detailed report.
I am able to replicate the issue on iPhone 6s with iOS 14. Although the same code works properly on Samsung A2Core Galaxy device and on iPhone SE simulator.

flutter doctor -v
[✓] Flutter (Channel stable, 1.22.1, on Mac OS X 10.15.4 19E2269, locale en-IN)
    • Flutter version 1.22.1 at /Users/dhs/documents/Fluttersdk/flutter
    • Framework revision f30b7f4db9 (4 days ago), 2020-10-08 10:06:30 -0700
    • Engine revision 75bef9f6c8
    • Dart version 2.10.1

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
    • Android SDK at /Users/dhs/Library/Android/sdk
    • Platform android-30, build-tools 30.0.0
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.0.1, Build version 12A7300
    • CocoaPods version 1.9.3

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 46.0.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.49.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.11.0

[✓] Connected device (2 available)
    • Darshan's iphone (mobile)           •
      21150b119064aecc249dfcfe05e259197461ce23 • ios • iOS 14.0
    • iPhone SE (2nd generation) (mobile) • 6C85835D-FBFD-4AB3-8DE8-B4FAD35E5367
      • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-0 (simulator)

• No issues found!

@darshankawar Exactly. It works for me on Android simulator and device as well as iOS simulator, but fails on a real iOS device. This is strange as the iOS simulator should behave the same in that case (as it is not really a hardware related issue).
My guess is that is has something to with how the plugin on iOS load the file:// URL. iOS has a "special" method for these kind of URLs called loadFileURL(_:allowingReadAccessTo:) where the second parameter defines the base url for all accessible directories. The docs for iOS state that

If readAccessURL references a single file, only that file may be loaded by WebKit. If readAccessURL references a directory, files inside that file may be loaded by WebKit.

As far as I can understand the source the plugin does not use this method at all but uses the load(_ request: URLRequest) method, which also seems to work with file:// URL, but not properly.

This has been killing me for the past days, but I just found out that the example above fails to run on Android (simulator and device) if the compileSdkVersion and targetSdkVersion is 30. It only works up to version 29. The error shown when trying to load the local html file is net::ERR_ACCESS_DENIED, although all files are still being copied correctly from the assets to the document directory.

@ghowen
For api level 30, try by adding this in manifest file: <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/> try again and see if it works.

@darshankawar Thanks for the idea, but unfortunately it doesn't work. I get the same ERR_ACCESS_DENIED.
I also tried <uses-permission android:name="android.permission.INTERNET"/> and android:usesCleartextTraffic="true", but so far no luck. It's ok for my app to be on 29 for now but if 30 becomes mandatory for the Play store this will be a major issue.

the example above fails to run on Android (simulator and device) if the compileSdkVersion and targetSdkVersion is 30. It only works up to version 29.

@ghowen Hi, I saw your Medium article.
Android 30 has a breaking change :sweat:, described here: https://pub.dev/documentation/url_launcher/latest/url_launcher/canLaunch.html
Related: https://github.com/flutter/flutter/issues/63727#issuecomment-736120631
I haven't tested the file scheme myself, but I expect a variation of this will fix it.
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -6,7 +6,13 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.my.app">

    <uses-permission android:name="android.permission.INTERNET" />
    ...
-
+    <queries>
+        <intent>
+            <action android:name="android.intent.action.VIEW" />
+            <category android:name="android.intent.category.BROWSABLE" />
+            <data android:scheme="https" />
+        </intent>
+    </queries>

    <application
       ...

@mockturtl Thanks for the pointer! I will try this when I raise the target SDK to 30 on Android. This reminds me again that I should not mix two issues but open a separate one for each ;) But again, thanks!

the example above fails to run on Android (simulator and device) if the compileSdkVersion and targetSdkVersion is 30. It only works up to version 29.

@ghowen Hi, I saw your Medium article.
Android 30 has a breaking change 😓, described here: https://pub.dev/documentation/url_launcher/latest/url_launcher/canLaunch.html
Related: #63727 (comment)
I haven't tested the file scheme myself, but I expect a variation of this will fix it.
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -6,7 +6,13 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.my.app">

    <uses-permission android:name="android.permission.INTERNET" />
    ...
-
+    <queries>
+        <intent>
+            <action android:name="android.intent.action.VIEW" />
+            <category android:name="android.intent.category.BROWSABLE" />
+            <data android:scheme="https" />
+        </intent>
+    </queries>

    <application
       ...

I've tested it, Works like a charm, 100% guaranteed 👍 Thanks for your solution @mockturtl

Issue is reproducible  on master 2.5.0-7.0.pre.65 and stable 2.2.3 with ``webview_flutter: ^2.0.10` using the code sample provided by author.
On the simulator the text is red as shown below:

but the text is black on the real device. Tested on IPhone XS running iOS 14.6.

 flutter doctor -v
[✓] Flutter (Channel master, 2.5.0-7.0.pre.65, on macOS 11.5.1 20G80 darwin-arm,
    locale en-GH)
    • Flutter version 2.5.0-7.0.pre.65 at /Users/nexus/dev/sdks/flutters
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 4bd8b288bb (5 hours ago), 2021-08-12 18:02:02 -0700
    • Engine revision 670a681c1d
    • Dart version 2.15.0 (build 2.15.0-6.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/nexus/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.5.1, Build version 12E507
    • CocoaPods version 1.10.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] VS Code (version 1.59.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.25.0

[✓] Connected device (3 available)
    • Nexus’ IPhone (mobile) • 00008020-001875E83A38002E            • ios
      • iOS 14.6 18F72
    • iPhone 12 (mobile)     • F2592D43-5FE3-46BB-8A2B-A38BA468DCE9 • ios
      • com.apple.CoreSimulator.SimRuntime.iOS-14-5 (simulator)
    • Chrome (web)           • chrome                               •
      web-javascript • Google Chrome 92.0.4515.131

• No issues found!

[✓] Flutter (Channel stable, 2.2.3, on macOS 11.5.1 20G80 darwin-arm, locale
    en-GH)
    • Flutter version 2.2.3 at /Users/nexus/dev/sdks/flutter
    • Framework revision f4abaa0735 (6 weeks ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/nexus/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.5.1, Build version 12E507
    • CocoaPods version 1.10.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] VS Code (version 1.59.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.25.0

[✓] Connected device (3 available)
    • Nexus’ IPhone (mobile) • 00008020-001875E83A38002E            • ios
      • iOS 14.6
    • iPhone 12 (mobile)     • F2592D43-5FE3-46BB-8A2B-A38BA468DCE9 • ios
      • com.apple.CoreSimulator.SimRuntime.iOS-14-5 (simulator)
    • Chrome (web)           • chrome                               •
      web-javascript • Google Chrome 92.0.4515.131

• No issues found!

@darshankawar
Actual Problem :
While working on Flutter Application to load Web View. I have separate files for HTML and JavaScript i.e. I'm loading JavaScript file externally from HTML file. But when I try to load the webview on iOS platform, I'm getting the following error.

Platforms:
Mobile Device : iPhone 6s
iOS : 13.0
Flutter : 2.2.3
Plugin : webview_flutter 2.0.10
Expected Behaviour :
WebView should be load on iOS platform without any issue.

My guess is this has to do with sandboxing being different for WebView on an iOS device vs. simulator.  I suspect WebView has callbacks we could hook into to log and see what path it's trying to load.
I'd probably try comparing things discussed here https://stackoverflow.com/questions/6420925/load-resources-from-relative-path-using-local-html-in-uiwebview or in Apple's docs, to how the WebView plugin implements.
For example:
WebView(
initialUrl: 'file://' +
documentsDirectory.path +
'/assets/www/text/index.html',
javascriptMode: JavascriptMode.unrestricted,
onWebResourceError: (error) {
It's not clear to me (without looking at the plugin code) where the "root directory" being served is from that call.  If it's just the parent of index.html, I could understand that the OS might not let you escape that root with ../../.

This is likely the line causing you grief:
https://github.com/flutter/plugins/blob/master/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FlutterWebView.m#L245
The quick fix is to move the assets you need deeper in the path hierarchy, rather than as parent directories to your initial index.html.
Alternatively, Flutter's WebView would need to give you ability to control what the "root" url iOS restricts loads to.

FYI @mvanbeusekom who was last to touch this callback and may have thoughts.

Version 3.0.0 of the webview_flutter plugin supports loading assets (including files that are references using relative paths) using the separate WebViewController.loadFlutterAssets(String key) method.
I have modified the above test case to make use of the new WebViewController.loadFlutterAssets() method which works correctly on both the simulator and real device (iPhone 12 mini in my case). Another advantage is that the code necessary becomes a lot simpler:

Updated pubspec.yaml file:

name: webview
description: A new Flutter project.
publish_to: 'none'
version: 1.0.0+1

environment:
  sdk: ">=2.15.1 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
  webview_flutter: ^3.0.0

dev_dependencies:
  flutter_test:
    sdk: flutter
  flutter_lints: ^1.0.0

flutter:
  uses-material-design: true

  assets:
     - assets/www/
     - assets/www/text/
     - assets/www/css/

Updated main.dart file:

import 'dart:io';
import 'package:flutter/material.dart';

import 'package:webview_flutter/webview_flutter.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: const WebViewExample(),
    );
  }
}

class WebViewExample extends StatefulWidget {
  const WebViewExample({Key? key}) : super(key: key);

  @override
  WebViewExampleState createState() => WebViewExampleState();
}

class WebViewExampleState extends State<WebViewExample> {
  @override
  void initState() {
    super.initState();
    // Enable virtual display.
    if (Platform.isAndroid) WebView.platform = AndroidWebView();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Flutter Demo Home Page'),
      ),
      body: Center(
        child: WebView(
          javascriptMode: JavascriptMode.unrestricted,
          onWebResourceError: (error) {
            print(error.description);
          },
          onWebViewCreated: (controller) =>
              controller.loadFlutterAsset('assets/www/text/index.html'),
        ),
      ),
    );
  }
}

The assets/www/css/test.css and assets/www/text/index.html files are copied from the original post as is.
One disadvantage is that the current setup will cause a small flicker as it will first load about:blank as a initialUrl and only load the assets after the onWebViewCreated callback is called. We are currently working on refactoring the webview plugin to resolve this issue and allow initialisation of the WebView widget separate from the widget tree (see also flutter/flutter#88347).

I have the same problem as the author of the issue.
"I now add the files to the asset bundle and on app start I copy them to the local document directory on the device".
If you also load html files from device, you can try using this method.
For webview_flutter: ^3.0.0

You need to use the new method from the WebViewController "loadFile(absoluteFilePath)" instead of "loadUrl(url)"

This method:
_controller.loadUrl(Uri(scheme: 'file', path: htmlPath).toString());
Replace to:
_controller.loadFile(htmlPath);

Then in the "FlutterWebView.m" file, which is located in the "webview_flutter_wkwebview-2.7.1\ios\Classes\FlutterWebView.m" directory, the following code in line 245 must be replaced:

NSURL* baseUrl = [url URLByDeletingLastPathComponent];
[_webView loadFileURL:url allowingReadAccessToURL:baseUrl];

baseUrl - this is the directory where the downloaded file is located. Relative paths will work for files that are in this directory.
To extend access to other files, replace to:
  NSURL* documentsURL = [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] objectAtIndex:0];
  [_webView loadFileURL:url allowingReadAccessToURL:documentsURL];

It is work for me.
I hope this helped someone.

@AntonShipunov why don't you use the WebViewController.loadFlutterAsset() method as documented in my previous comment? This method has been specifically implemented to load content directly from the Flutter Assets bundle which means you don't have to copy files to a temporary location. It also means it is not necessary to change the Objective-C implementation.

@mvanbeusekom I have been looking for this solution for several days, and the whole implementation in my app is based on the fact that files are copied to the device.
I wrote this solution if anyone needs to download files from the device, for whatever reason.
It's great that now it's possible to open local files from Assets that contain relative paths.
I will definitely do code refactoring in the future, thank you.

@AntonShipunov why don't you use the WebViewController.loadFlutterAsset() method as documented in my previous comment? This method has been specifically implemented to load content directly from the Flutter Assets bundle which means you don't have to copy files to a temporary location. It also means it is not necessary to change the Objective-C implementation.

In my case relative references from an html loaded with the WebViewController.loadFlutterAsset() do not work. I figured out that on Android, I need to reference the files in my html prefixing with android_asset/flutter_assets/. I could not figure out what works on iOS. But referencing files without any prefix in the same asset directory does not work on either platform.
Do you have a working example?

@mvanbeusekom, do you have a working example on usage of loadFlutterAsset()? For me only the copying to temp dir approach worked.

@istvanszoboszlai
Can you show your WebView implementation example, folder structure inside assets, and pubspec.yaml file?

Hi @istvanszoboszlai and @AntonShipunov,
An example is provided within the example app of the webview_flutter plugin. The example loads the index.html page which internally has a relative reference to a style sheet called styles.css.

Link to the example project.
Link to the directory structure of the web files (inside the example project);
Configuration in the pubspec.yaml (this is a very important step, note that relative files/ paths need to be mentioned).
Example usage in code.

the issue occured on my iPad which has iOS 12.5.1.
I have to make following changes in FlutterWebView.m in webview_flutter-1.0.7 dependency
- (bool)loadUrl:(NSString*)url withHeaders:(NSDictionary<NSString*, NSString*>*)headers {
  NSURL* nsUrl = [NSURL URLWithString:url];
  if (!nsUrl) {
    return false;
  }
  NSMutableURLRequest* request = [NSMutableURLRequest requestWithURL:nsUrl];
  [request setAllHTTPHeaderFields:headers];

    if([url hasPrefix:@"file"]) {

        NSString * allowingReadAccessToURL = [request.URL.path stringByDeletingLastPathComponent];

        if (@available(iOS 9.0, *)) {

            [_webView loadFileURL:request.URL allowingReadAccessToURL:[NSURL fileURLWithPath:allowingReadAccessToURL]];
        }
        else {

            [_webView loadRequest:request];
        }
    }
    else {

      [_webView loadRequest:request];
    }

//  [_webView loadRequest:request];

  return true;
}

I'm going to close this; the reported behavior that loading file: URLs doesn't allow relative loading is WKWebView behavior that we have no ability to change, so that approach cannot work, and as noted above the are now specific APIs for the use case of loading local and asset files where relative loads do work (as long as they are in the enclosing directory).


Fairness threshold

In Fairness evaluate results, Fairness threshold is shifted down by 1. In our use case, it is 0.123 so the original threshold should be 1.123, which is not consistent with fair_threshold = 80 in CreditScoring() as it should be 1.2. Please clarify.

the footnote explains that "shift down by 1" is only for ratio-based metrics in the chart. for all metrics in the chart, only "demographic impact" is ratio-based, marked by "*". "0.123" is not relevant here, because 1) it's not in the chart; 2) it's for FPR parity, not a ratio-based metric.

The only ratio-based metric is Disparate Impact (I believe it is a typo in you response).
It is still not clear on how Threshold of '0.123' is calculated and what is the 'Threshold Range' indicated in the chart.
It is not straightforward for users to understand how to check fairness metrics against the 80% rule. It's not illustrated clearly on this visualization widget.

while user sets 80 as fair_threshold (i.e. 80% rule), internally the threshold (0.123 in your case) is computed by "performance_metric of privileged group * (1 - 80%)".
the "Threshold Range" in the chart is from -0.123 to +0.123.
yes, you are right about Disparate Impact. sorry for my typo.

Thanks. It is clear now.
But suggest to give the ratio based results as well, as it is not straightforward when users try to check against 80% rule which is ratio-based intuitively.

noted. we will include ratio version in 2.0.

Thanks and we can close this.


Indicators for POV Trial Period Expiry

PLEASE READ
This is the copy of PR #3581 . This PR is created since the PR#3581 is reverted.
Following a recent back-end update, all contributors with a local clone or fork of our repository are required to run yarn install. This does not apply to direct page edits.

[x] Yes, I've run yarn install
[ ] No, does not apply to me

Purpose of this pull request
This pull request...

Select the type of change:

[ ] Minor Changes - Typos, formatting, slight revisions, .clabot
[ ] Update Content - Revisions, updating sections
[x] New Content - New features, sections, pages, tutorials
[ ] Site and Tools - Updates, maintenance, dependencies, new packages for the site (Docusaurus, Gatsby, React, etc.)

To see the specific tasks where the Asana app for GitHub is being used, see below:

https://app.asana.com/0/0/1206461576220462

@kimsauce The update was planned to release on 2nd Feb. But due to some production issues the release has been postponed and we are still not sure with the latest release date.


⚠ Turnos 24x7 has degraded performance

In 914efac, Turnos 24x7 (https://reservas-dev.alternativasinteligentes.com/) experienced degraded performance:

HTTP code: 200
Response time: 934 ms

Resolved: Turnos 24x7 performance has improved in 99b4b88.


Prevent coercion before distributed slice typecheck

Fixes #82
We use a fn() -> &T to prevent value coercions from applying. This does allow contravariant coercion to a subtype (a shorter lifetime), but I believe that since #ty is in a static (cannot contain lifetimes other than the top lifetime 'static) that this is not an exploitable hole. If a hole remains, it's probably to do with for<'a> lifetime binders.
I did test a few methods that fully constrain T to be invariant (e.g. fn(T) -> T), but they all worsened the error messages more than this does, and this appears to be sufficient.

Published to crates.io in 0.3.24, and also reported as https://github.com/rustsec/advisory-db/pull/1917.


load specific files in certain page in Bottlepy

Hi guys
I have several templates in my app and in one of them I'm loading my Head tag and loading static files like css and JS on it.
Now, How can I load specific files in certain page? There are several functions in PHP to do this but I have no idea how to do it in Python and Bottle.
For example I just need to time.js just loads in www.mydomain.com/timeforall
Any kind of help is appropriated :)

Add the required logic to your head template. For example:
% for js in setdefault('additional_js', []):
     <script type="text/javascript" src="//static/js/{{js}}"></script>
% end

Then you can pass a list of additional js files you need for a specific page to the template call:
return template(..., additional_js=['time.js'])

But this is not really a bottle/python related issue. In PHP you'd have to do the same. PHP is just a template language with way to many built-in features, after all.


Fix Definition Typos

Previously there were 4 occurrences of the typo ‘defintion’ in the code,
including three that appear in documentation as parameter names. This
change corrects those errors. It does not correct the error in the
CONTRIBUTING.md file, as that is part of a reference to git history.

cherry-picked and merged as https://github.com/spring-projects/spring-xd/commit/2b3eeda9c5fcf3c0d606d845ddadcb94728b835c


Pretrained Face Recognition Model in MS1M datasets

When I decompressed the file ’resnet50_part0_train.pth.tar‘, it was found to be damaged, can you upload it again?

Hi @houguanqun , the filename maybe a little confusing as it is not a tar, but a model itself. Would you mind trying the following code?
import torch
ckpt = torch.load('resnet50_part0_train.pth.tar')
print(ckpt['state_dict'].keys())

Thank you very much!


fix(swap): Fix swap cancellation fee error handling

resolves https://emurgo.atlassian.net/browse/YOMO-881
This PR only improves error handling, however there may be cases when the REST API does not respond with CBOR such as in this example
https://aggregator.muesliswap.com/cancelSwapTransaction/?wallet=01417232dba248bdd316442f323c4279fb1e0ef7bfb16680d8dabdd655f9ea671653e35395356465e4bd8f563b5d5480e4eb466da896a22afc&utxo=8956d68753d718afbaafde0e83dc1cb1d205da3c89fb08c924ab1d63fd953ed2%230&collateralUtxo=82825820926f781eea85507363790aca75e4e4a05ff6a0ad1c8b823db4074fd515b521a80082583901417232dba248bdd316442f323c4279fb1e0ef7bfb16680d8dabdd655f9ea671653e35395356465e4bd8f563b5d5480e4eb466da896a22afc1a001e8480

Lgtm. API said that order in particular was faulty and that's why cancellation doesn't work.


opt in and use common ibm base images

https://github.ibm.com/IBMPrivateCloud/roadmap/issues/48536

@smagesh2106 build seems to be failing

/retest


Add Role 2 hospital facility close to Lochini

As seen in the branch (Neck's edit). This hospital is for medevac for the MI-8.

:+1:

awesome idea!!

Added, and was working during the training mission yesterday, so I am closing this issue.


Sync with Anki button does not appear

Hello!
Is this project still maintained? I've followed the instructions as you've lined them out, but to me, the Sync with Anki button does not show up at all.
Anki versions:
Version 2.1.52 (ab1c2395)
Python 3.9.7 Qt 5.15.2 PyQt 5.15.5
Chrome version:
Version 102.0.5005.115 (Official Build) (64-bit)
Plugin version:
1.0.2
I've verified that http://localhost:8765/ gives me the response: AnkiConnect v.6
I have configured the AnkiConnect plugin with
{
    "apiKey": null,
    "apiLogPath": null,
    "ignoreOriginList": [],
    "webBindAddress": "<IP_ADDRESS>",
    "webBindPort": 8765,
    "webCorsOrigin": "http://localhost",
    "webCorsOriginList": [
        "*"
    ]
}

I'm not getting any clear errors in the console:

And for me Babbel looks like this:

Is there any way you could help me out?
Thanks

Hello!
I can confirm that I had the same problem even after thoroughly following the installation steps in the README.
I decided to look into it and it seems that Babbel slightly changed the layout of the review manager page, including the html class names currently used to verify that the required html elements are loaded in the DOM before injecting the sync button.
At least this is my guess, since I don't know how the html looked before.
I slightly changed how the contentscript handles the new html class names and toolbar layout.
The sync button now appears for me.
I'm not sure if this is welcomed, but I created a pull request for the fix.
@pavelgordon Could you take a look at it and confirm the fix?
All the best

That would be awesome! I'm having the same issue!

Hello! Thanks a lot for the contribution. Took a look and fix works, so i merged it, and will upload it to be available to be installed via Google Chrome Extensions once they approve it.

Unfortunately, the sync button is gone for me now. It still worked fine yesterday. Maybe this is due to changes in Chrome? It would be great to have a fix, I use this extension every day.
Btw., thanks for making this extension 🙂

@pavelgordon The layout changed again and the html class names are now minimized/obfuscated by Babbel. I created a PR which fixes the issue by using an attribute selector. Could you take a look and maybe merge it again?
@wuqui If you need the fix urgently you can just download the master.zip from my fork and install the Extension manually :)

@wuqui If you need the fix urgently you can just download the master.zip from my fork and install the Extension manually :)

Thanks! Where can I find it?

@timpaulus: I guess you meant app.zip instead of master.zip, right? I downloaded and installed it now, but the sync button still doesn’t appear. Maybe because Chrome shows an error for the plugin?

@pavelgordon, sync to anki button is gone again. I think the layout of the Review page changed on Babel. can you tweak your extension pretty please?

The above solution using the forked version by @timpaulus had worked for me until today. As of today, the sync button is gone again, unfortunately. Seems like Babbel changed it’s design and that made it disappear again. Could someone take care of this again or let me know how I can fix it myself, please? :)

Oof, shortly after my fix was merged into master... 😒
I quickly implemented another fix. Only a slight change was necessary.
@wuqui You can again install the extension by using my master branch:
https://github.com/timpaulus/babbel2anki-chrome-extension
After downloading the files, it is important that you zip the app folder yourself and add it manually as an extension. Do not use the existing app.zip!
@pavelgordon This is the third time a fix for the missing sync button is needed. I propose that the sync button is moved into the popup window of the extension. At least additionally to the existing solution. This way it's more stable against page layout changes from Babbel. What do you think? If you want I can implement it and create a PR.
Also, since Manifest V2 is deprecated by Google in June 2024, an update to Manifest V3 is soon necessary.
https://developer.chrome.com/docs/extensions/develop/migrate/mv2-deprecation-timeline
I don't know what your plans for this extension are and if you want to do an overhaul yourself. If you don't find the time I'd like to offer my help and migrate this extension. But since this will require major changes I first want to ask for permission to do so?

@wuqui You can again install the extension by using my master branch: https://github.com/timpaulus/babbel2anki-chrome-extension After downloading the files, it is important that you zip the app folder yourself and add it manually as an extension. Do not use the existing app.zip!

Thanks so much, it works! 🙂
No need to zip the app folder, btw., one can simply do “load unpacked” in the extensions manager in Chrome.

I will merge it today!
On Sat, 3 Feb 2024 at 12:14, wuqui @.***> wrote:

@wuqui https://github.com/wuqui You can again install the extension by
using my master branch:
https://github.com/timpaulus/babbel2anki-chrome-extension After
downloading the files, it is important that you zip the app folder
yourself and add it manually as an extension. Do not use the existing
app.zip!
Thanks so much, it works! 🙂
No need to zip the app folder, btw., one can simply do “load unpacked” in
the extensions manager in Chrome.
—
Reply to this email directly, view it on GitHub
https://github.com/pavelgordon/babbel2anki-chrome-extension/issues/17#issuecomment-1925283850,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AASZF3AQDBG74BUSRX6RNGDYRYL2TAVCNFSM5ZNGE4BKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJSGUZDQMZYGUYA
.
You are receiving this because you were mentioned.Message ID:
@.***>

The button is gone again, unfortunately 🫤

The button is gone again, unfortunately 🫤

I created a pull request that fixes the issue :)

Merged, thanks! I will upload it to chrome as well, will take a day-two to approve them

Great, thank you both!

They changed the dom again. Created a PR


I have tried to go straight, but lack the willpower to make pinpoint accurate line selections.
I blame a troubled relationship with the mouse, we never bonded, and I have no love for the little rodent.

Thankfully, there is a near perfect solution, the micro editor.
Micro will act upon partially selected lines:

MoveLinesDown
MoveLinesUp
IndentSelection
OutSelection
lua:comment.comment
Textfilter
SpawnMultiCursorSelect

The only irregular command I have discovered so far is DuplicateLine, and it trips me up hourly. With no selection, the current line is duplicated. However, with any text selected - only that text is duplicated (see https://github.com/zyedidia/micro/pull/416).
To duplicate a set of lines, I have to make a pinpoint selection, remembering to include the end-of-line character (not selected with a simple shift end!).
I guess many users will be accustomed to the default behaviour, and it would be unfair for my affliction to inconvenience the majority of law-abiding precision line selectors.
My ideal solution would be a pair of functions DuplicateLinesBelow and DuplicateLinesAbove, which would make copies of the current lazy line selections above or below AND leave my selection (and clipboard)  unchanged. e.g.
Before DuplicateLinesBelow  :

After DuplicateLinesBelow :

I am not good at manipulating bp.Cursor.Loc, so a Lua solution is beyond my abilities.
Any help for an incurable lazy line selector would be welcome.
Kind Regards Gavin Holt
OS: Windows 10
Version: 2.0.13
Commit hash: https://github.com/zyedidia/micro/commit/68d88b571de6dca9fb8f03e2a3caafa2287c38d4
Compiled on December 12, 2023

I'm using the following in my init.lua for lazy line selection:
function selectLineUp(bp)
    if not bp.Cursor:HasSelection() then
        bp:EndOfLine()
        bp:SelectToStartOfLine()
    else
        bp:SelectUp()
        bp:SelectToStartOfLine()
    end
end

function selectLineDown(bp)
    if not bp.Cursor:HasSelection() then
        bp:StartOfLine()
        bp:SelectDown()
    else
        bp:SelectDown()
    end
end

I have Ctrl-Shift-Up and Ctrl-Shift-Down bound to these functions:
    "CtrlShiftDown": "lua:initlua.selectLineDown",
    "CtrlShiftUp": "lua:initlua.selectLineUp",

So in particular you could use these to quickly select a few whole lines via Ctrl-Shift-Up and Ctrl-Shift-Down (i.e. in whatever direction you like) and then duplicate them via Ctrl-D.

Hi,
Many thanks for sharing your functions - taking this as inspiration - and combining with https://github.com/zyedidia/micro/issues/2583, I have written a SelectBlock function:
function editor_SelectBlock(Current)
-- Extend the selection to include the whole of any line selected
    if editor.HasSelection(Current)  then
        if Current.Cursor.CurSelection[1]:LessThan(-Current.Cursor.CurSelection[2]) then
            -- forward -> backward
            -- Extend selection to end
            Current:SelectToEndOfLine()
            -- Get EOL Character
            Current:SelectRight()
            -- Swap to end of selection
            editor_SwapAnchor(Current)
            -- Extend selection to begining of line
            Current:SelectToStartOfLine()
        else
            -- backward -> forward
            -- Extend selection to begining of line
            Current:SelectToStartOfLine()
            -- Swap to end of selection
            editor_SwapAnchor(Current)
            -- Extend selection to end
            Current:SelectToEndOfLine()
            -- Get EOL Character
            Current:SelectRight()
        end
    else
        Current.Cursor:SelectLine()
    end
    return true
end

This can be called before duplicateline to achieve block duplication:
    "CtrlD": "lua:initlua.editor_GetBlock, duplicateline"

Unfortunately these manipulations change the current selection (so you can't make multiple copies).
I will leave this open as I still feel duplicateline is an irregular command and better solution should be found.
Kind Regards Gavin Holt

I guess we can close this now as there is a work-around.
Kind Regards Gavin Holt

After downloading the new binary today, my selectblock function no longer works. I suspect this is a result of Fix Deselect() after mouse selection 3f810c2 or Fix cursor moving down when selection exist #3091

Yes, we changed the behavior to always ignore the direction of selection. First, to make it at least consistent (and to fix bugs caused by its inconsistency), second, because apparently some users even prefer this ignore-direction-of-selection behavior.
You can use something like this now:
function selectblock(bp)
    if bp.Cursor:HasSelection() then
        local lastY = bp.Cursor.CurSelection[2].Y
        bp:StartOfLine()
        while bp.Cursor.Loc.Y <= lastY do
            bp:SelectDown()
        end
    end
end

PS. Naming things is hard: given a free hand I would rename DuplicateLine action to Duplicate (a method to duplicate selection, or current line if no selection, without using the clipboard), and that would allow a more logical use for DuplicateLine (duplicate all partly selected lines or current line if no selection, without using the clipboard).

I'm thinking about the same. We may clean up and unify things by changing behavior of some action without changing behavior of the default keys bound to them (so that the change would not affect most users): bind Ctrl-c to Copy|CopyLine, Ctrl-x to Cut|CutLine, Ctrl-d to Duplicate|DuplicateLine. The Copy, Cut and Duplicate actions would return false if there is no selection, and the *Line variants would operate on whole lines, not just the selection.

I'm thinking about the same. We may clean up and unify things by changing behavior of some action without changing behavior of the default keys bound to them (so that the change would not affect most users): bind Ctrl-c to Copy|CopyLine, Ctrl-x to Cut|CutLine, Ctrl-d to Duplicate|DuplicateLine. The Copy, Cut and Duplicate actions would return false if there is no selection, and the *Line variants would operate on whole lines, not just the selection.

Implemented in #3335. With this PR you will probably not need your selectblock any longer.

Hi
I have been giving more thought to duplicate and have written a function to deal with three situations:

Duplicate the current line (if no selection)
Duplicate selected word/phrase (on one line)
Duplicate the whole of any partly selected lines (lazy multi-line selection)

All of these situations leave the cursor position/selection unchanged, and therefore can be repeated for multiple duplication.
My Lua function satisfies my needs, but would be better as a built in action - to work with multiple cursors.
function duplicate(Current)
    if Current.Cursor:HasSelection() then
        if Current.Cursor.CurSelection[1].Y == Current.Cursor.CurSelection[2].Y then
            -- Selection on a single line - therefore:
                -- Duplicate selection with padding
                -- Insert after last character
                -- Maintain original selection
            local sel = Current.Cursor:GetSelection()   -- BYTES
            sel = util.String(sel)                      -- String
            sel = sel.." "                              -- Add right padding as likely a word
            local nextcharLOC = buffer.Loc(Current.Cursor.CurSelection[2].X+1, Current.Cursor.CurSelection[2].Y)
            -- If I don't increment X the inserted text expands the current selection!
            Current.Buf:Insert(nextcharLOC, sel)
            return true
        else
            -- Multiline selection - therefore:
                -- Get all part selected lines
                -- Insert after last line
                -- Maintain original selection
            local block  =  ""
            local top    = math.min(Current.Cursor.CurSelection[1].Y,Current.Cursor.CurSelection[2].Y)
            local bottom = math.max(Current.Cursor.CurSelection[1].Y,Current.Cursor.CurSelection[2].Y)
            for i=top, bottom,1 do
                block = block..Current.Buf:Line(i).."\n"
            end
            local nextlineLOC = buffer.Loc(0,bottom+1)
            Current.Buf:Insert(nextlineLOC, block)
            return true
        end
    else
            -- Nil selection  - therefore:
                -- Duplicate current line
                -- Insert after current line
                -- Maintain cursor position
            local sel = Current.Buf:Line(Current.Cursor.Y).."\n"
            local nextlineLOC = buffer.Loc(0,Current.Cursor.Y+1)
            Current.Buf:Insert(nextlineLOC, sel)
            return true
    end
end

Kind Regards Gavin Holt


I installed x64 rpm package.
Error message is:
/usr/bin/code: 行 35: 17805 Segmentation fault      (核心已转储)ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" "$@"
My OS is Fedora release 28 (Twenty Eight)

@bh1svr can you try this build that is using a newer Electron version: https://az764295.vo.msecnd.net/exploration/a5cda44f872b9b55122a108b99a170e1ed5fa66e/code-exploration-1.27.0-1534919256.el7.x86_64.rpm

It works. Thanks.


New pip package for latest changes

Hi, firstly thanks for creating such a great project.
The latest commits contain a fix so that we can use catt in Home Assistant again, however there is no pip package to use as of yet with these changes. Is it possible to publish a new package?
Thank you!

Yep, I'll release one as soon as I can remember how!

https://github.com/skorokithakis/catt/blob/master/.gitlab-ci.yml#L37
Seems like it needs a poetry build and a twine upload :)
Let us know if you need help!

Ah, I need to tag it, thanks. I'll do that now.

Thank you @skorokithakis!

 The auto-publishing process seems very broken, sadly, but I've uploaded a package manually. Does that work for you?

I can't check right now, but it looks like it should. I'll report back tonight 😄  thanks!

It's working great on HA, thanks again!


Apple and snake coordinates do not align

No longer a problem because checking collisions via rectangle not coordinates.


WIP: Guide on creating package docs

This adds a guide to (creating) package documentation for ros 2 packages.
It's only a very rough draft so far, cobbled together from my own blog, the ros2 cookbook of @mikeferguson and the rosdoc2 readme (and source code).
I will un-draft this once it's in a somewhat coherent state, but suggestions and contributions are very welcome at any time.
My goal so far is to gather on this page all the required information to produce a docs page containing api docs for any supported language and written documentation in a way that is supported by the ros buildfarm for hosting on https://docs.ros.org/<language>/<distro>/p/<package>/

Just a note that we have a (very recently added) guide on migrating stuff from ros wiki - might be some overlap or relevant cross references: https://github.com/ros2/ros2_documentation/commit/8fbb74dd782aa59983798717295bc877223cbbcd

Thanks for the review and suggestions! I think it's now in a somewhat consistent state, so i will un-draft the PR. I removed the python-bindings part, since i dont have any experience with that (yet), but i think that would be a good future addition

@ottojo you are the project's hero of the week. Thank you so much!


Fix examples: Update position of the range input when a button is clicked

This PR improves the rotate examples that have a slider.
I noticed that the slider does not move when the bearing is set via a button, and that the slider is in the center (180deg) position on page load. Both of these things make the map rotation jump when touching the slider after page load or after setting the bearing with a button.
This fixes that.

Merged, thanks!


Added Drop, Out to VisualStudio.gitignore

Reasons for making this change:
Stands for Drop/drop.

@abatishchev any links to StackOverflow discussions or other documentation about this change?

I think it should be both /out and /drop.
I don't have a discussion on Stack Overflow but internally at Microsoft it's a common practice to move the build drop folder to the root of the project and l these two folders are the most popular folder names for that.

@shiftkey, ping.

I don't have a discussion on Stack Overflow but internally at Microsoft it's a common practice to move the build drop folder to the root of the project and l these two folders are the most popular folder names for that.

@abatishchev this is still rather unsatisfying for me, because if I were to merge this and someone asks why we made this change I don't have anything to point to beyond this quote. Does that help clarify my situation?

Incredible level of collaboration and cooperation between Microsoft and GitHub


Refactor how to restart service when enable-auto-restart is False.

Restart how to handle enable-auto-restarts=False in rabbitmq server.
I've tested with
juju deploy rabbitmq-server --channel 3.8/stable --base<EMAIL_ADDRESS>-n3 --config source=distro
juju config rabbitmq-server enable-auto-restarts=False
cou upgrade --no-backup --auto-approve --no-archive

I am moving get_run_deferred_hooks_and_restart_pre_upgrade_step and get_run_deferred_hooks_and_restart_post_upgrade_step to auxiliary.py  since it was mentioned by https://github.com/canonical/charmed-openstack-upgrader/pull/503#discussion_r1682830528


Add Contribuing.md

Add contributing.md file for the repo

@Yeasir0032  what would I have to do ?

As might you have seen a File named contributing.md file is there.
It tells the eager contributors how to contribute
For example - https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md

@Yeasir0032  coulkd you assign this to me ?

@Yeasir0032  can you accept the merge ??


Gigs test testautomation1

Please merge my branch into Master; these are the latest tests for the test automation.
Thank you,
Dwayne

I'm merging this in; it doesn't affect any other part of the app, and the tests need to be available for the next Quarter and beyond.
Thanks, Dwayne


Hide mouse pointer/cursor?

Is there any way to hide the mouse pointer/cursor for touchscreens?  I've tried via CSS but it doesn't seem to have any affect.

My bad... seems to function fine using touchscreen without setting WPE_BCMRPI_CURSOR


implement get_tips response serialization

implement get_tips response serialization
implement hash243_stack_to_json_array()

Hi @HowJMay Thanks again for the PR !
There seems to be memory leaks, could you have a look at the CI ?

Sor my fault !
I'm gonna fix it now


chore: release 0.1.7 update

Signed-off-by: Baha Shaaban<EMAIL_ADDRESS>

Codecov Report

Merging #77 (c85f08c) into main (2e552b6) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #77   +/-   ##
=======================================
  Coverage   89.13%   89.13%
=======================================
  Files           6        6
  Lines         497      497
=======================================
  Hits          443      443
  Misses         29       29
  Partials       25       25

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 2e552b6...c85f08c. Read the comment docs.

Agent SDK is still pointing to snapshot version https://github.com/trustbloc/wallet/pull/1084

Agent SDK is still pointing to snapshot version https://github.com/trustbloc/hub-router/blob/main/test/bdd/fixtures/integration/.env#L9

Looks like there is a cyclic dependency between agent-sdk and hub-router. Can we atleast update the agent-sdk version to the latest docker image ? Currently, its pointing to may 18 commit - https://github.com/trustbloc/agent-sdk/commit/db7c4dfd97f7aad3e077357a81493b9c1a1611a6


Treemap

Let's add a Treemap component!
This is a good reference for feature set: https://echarts.apache.org/examples/en/index.html#chart-type-treemap

Scaffolded by @rokotyan in

https://github.com/ExaForce/unovis/pull/2

As I start working on this, I'm wondering how we want to support hierarchies. I see there's already some precedent for hierarchies with the VisNestedDonut component, which expects the layers prop to be defined something like this:
from packages/dev/src/examples/misc/nested-donut/basic-nested-donut/index.tsx
        layers={[
          (d: NestedDatum) => d.group,
          (d: NestedDatum) => d.subgroup,
          (d: NestedDatum) => d.value,
        ]}

I suppose we would want to define a similar API for the Treemap, to match the style of the existing Unovis component.

Working through how to manage the exports

Interestingly, the import does actually resolve at Runtime, but the TypeScript linting system can't seem to resolve it.


Final Scrum Report 6 (Due Aug 11 11:59 PM)

What did you work on this past iteration (2 weeks)?
What were any major issues/challenges you ran into?
What do you plan to work on for this coming iteration (2 weeks)?

Dominic Lo (DL):
What did you work on this past iteration (2 weeks)?

Designed landing page, accessibility and responsiveness
Implemented edit and remove comments
Fix various UI quirks

What were any major issues/challenges you ran into?

Ensure landing animation only happens once, challenging to get UI to work on all screens

What do you plan to work on for this coming iteration (2 weeks)?

Authenticated communication with our server
Keep user login upon refresh

Adwait Kulkarni (AK):

I helped polish up the code and find last-minute errors and flaws. I also made the README up-to-date based on the work in the last week.
A challenge I faced was solving small errors when there were only 15 minutes left to the deadline and hoping that I did not break anything just before the presentation.
In the future, I would like to implement some of the stretch requirements we have like machine learning and voice recognition.

Patrick Liang (PL):

Fixed UI bugs in the accounts wishlist and review pages, improved lucky page, improved wishlist adding on recommendations for mobile.
Finding the source of bugs and fixes for components that were written or structured differently.
Implement some more stretch requirements and add a dedicated search bar for movies

Subhrodeep Ghose (SG):

I added a combo-box for adding or selecting watchlists in the UI.
Figure out how to use a combo-box element from Material UI.
Fix some bugs outlined by Stephanie.