Add predicate descriptions overloads to anyMatch and noneMatch

Check List:

Fixes #3638
Unit tests : YES
Javadoc with a code example (on API only) : YES
PR meets the contributing guidelines : I think so!

Hopefully fairly self explanatory. Happy to make any necessary changes. Not sure how to calculate the @since field on the Javadoc, so took a guess at the next minor version.

Spotted the build was failing. Might be handy to have a bullet point to say "run ./mvnw spotless:apply" in the contributing doc - I wasn't aware this was a thing

Hi @jh-instant, thanks a lot for raising the PR! I'm sorry it might take a bit longer before we can review the changes.
If you participate in Hacktoberfest, I will label the PR as accepted so that it is properly counted.

No problem - take your time. Looks like I needed to rebase to fix this test:

[ERROR]   DurationAssert_isZero_Test.should_fail_if_actual_is_not_zero:47
Expecting message to be:
"
expected: 0S
but was: -1S"
but was:
"
expected: 0S
but was: -1S"

I guess the workflows will need running again, sorry!

Integrated thanks @jh-instant!


custom gas fee wrong unit

TestNet

Describe the bug
displayed in ETH

To Reproduce (REQUIRED)

make transfer
in pending status, click speed up

hide speedup button. It's useless on newchain at this moment. 8d361d8d3d5af611e961c42a4eb0ef1f05f427f5

resolved


Need to clean up after docker crash

After a docker crash, the processes running in the containers (usually?) keep running, and a lot of mounts are leaked.
In order to get docker to restart correctly, I often have to go through and kill all the processes, and the usually I have to delete all the mounts:
cat /proc/mounts | grep docker.aufs | awk '{print $2}'  | sudo xargs -r umount
We should make sure these processes are killed and remove any mounts that docker leaves behind as part of restarting it.

Docker restart will cleanup those running processes, including umount here. Monit is monitoring docker, kubelet, and kube-proxy process on a given node, and periodically check their status, and restart then upon failure. Is that enough here?

Yes, but I think I have seen that Docker does not kill always those processes that were running in its containers.  I think that it never does so when killed by monit, but I will double check and see if I can reproduce reliably.
I think my core problem behind this series of issues is that I had too many big containers running.  When I ran out of memory, Docker stopped responding to monit, monit killed Docker but the (java) processes in my containers kept running, so Docker could not restart because the memory was not freed.
But I will try to reproduce with something less hand-wavy!


Fix checkbox accessibility

Details

This PR tries to fix accessibility issues in

General checkbox
Secure text input (eye icon)

Current implementation uses a Pressable (or Button) that works as expected in native apps. The accessibility requirements for the checkbox is different than of a button on web, Button executes press behaviour on enter, we want to submit form instead.
Implementation:
Native side is same.
Other platform, adds a custom listener for space that executes the onPress.
Fixed Issues

$ https://github.com/Expensify/App/issues/7917
$ https://github.com/Expensify/App/issues/7916
$ https://github.com/Expensify/App/issues/7918
Tests

Web and Desktop

Open a form that has checkbox (Settings -> Profile) and (Settings -> Security -> Change password).
Use tab or shift + tab to focus on checkbox.
Verify that when you press space, it toggles checkbox.
Verify that when you click on checkbox, it toggles.
Verify that when you press enter it does not toggle (enter is used to submit the form).

Native

Open a form that has checkbox.
Verify that when you press on checkbox, it toggles.

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

PR Review Checklist

Contributor (PR Author) Checklist

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

[x] I added steps for local testing in the Tests section
[x] I added steps for Staging and/or Production testing in the QA steps section
[x] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)

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

[x] iOS / native
[x] Android / native
[x] iOS / Safari
[x] Android / Chrome
[x] MacOS / Chrome
[x] MacOS / Desktop

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

[ ] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
[ ] I verified that comments were added to code that is not self explanatory
[ ] I verified that any new or modified comments were clear, correct English, and explained “why” the code was doing something instead of only explaining “what” the code was doing.
[ ] I verified any copy / text shown in the product was added in all src/languages/* files
[ ] I verified any copy / text that was added to the app is correct English and approved by marketing by tagging the marketing team on the original GH to get the correct copy.
[ ] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named “index.js”. All platform-specific files are named for the platform the code supports as outlined in the README.
[ ] I verified the JSDocs style guidelines (in STYLE.md) were followed

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

[x] A similar component doesn't exist in the codebase
[x] All props are defined accurately and each prop has a /** comment above it */
[x] Any functional components have the displayName property
[x] The file is named correctly
[x] The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
[x] The only data being stored in the state is data necessary for rendering and nothing else
[x] For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
[x] Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
[x] All JSX used for rendering exists in the render method
[x] The component has the minimum amount of code necessary for its purpose and it is

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

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

[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.

PR Reviewer Checklist

[ ] I verified the correct issue is linked in the ### Fixed Issues section above
[ ] I verified testing steps are clear and they cover the changes made in this PR

[ ] I verified the steps for local testing are in the Tests section
[ ] I verified the steps for Staging and/or Production testing are in the QA steps section
[ ] I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[ ] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)

[ ] I checked that screenshots or videos are included for tests on all platforms
[ ] I verified tests pass on all platforms & I tested again on:

[ ] iOS / native
[ ] Android / native
[ ] iOS / Safari
[ ] Android / Chrome
[ ] MacOS / Chrome
[ ] MacOS / Desktop

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

[ ] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick).
[ ] I verified that comments were added to code that is not self explanatory
[ ] I verified that any new or modified comments were clear, correct English, and explained “why” the code was doing something instead of only explaining “what” the code was doing.
[ ] I verified any copy / text shown in the product was added in all src/languages/* files
[ ] I verified any copy / text that was added to the app is correct English and approved by marketing by tagging the marketing team on the original GH to get the correct copy.
[ ] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named “index.js”. All platform-specific files are named for the platform the code supports as outlined in the README.
[ ] I verified the JSDocs style guidelines (in STYLE.md) were followed

[ ] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[ ] I verified that this PR follows the guidelines as stated in the Review Guidelines
[ ] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[ ] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[ ] If a new component is created I verified that:

[ ] A similar component doesn't exist in the codebase
[ ] All props are defined accurately and each prop has a /** comment above it */
[ ] Any functional components have the displayName property
[ ] The file is named correctly
[ ] The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
[ ] The only data being stored in the state is data necessary for rendering and nothing else
[ ] For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
[ ] Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
[ ] All JSX used for rendering exists in the render method
[ ] The component has the minimum amount of code necessary for its purpose and it is broken down into smaller components in order to separate concerns and functions

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

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

[ ] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[ ] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.

QA Steps

Web and Desktop

Open a form that has checkbox (Settings -> Profile) and (Settings -> Security -> Change password).
Use tab or shift + tab to focus on checkbox.
Verify that when you press space, it toggles checkbox.
Verify that when you click on checkbox, it toggles.
Verify that when you press enter it does not toggle (enter is used to submit the form).

Native

Open a form that has checkbox.
Verify that when you press on checkbox, it toggles.

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

Videos

Web

https://user-images.githubusercontent.com/77761491/171440650-f3b5bda8-0f95-4ea4-bad2-ba30b7322b8a.mp4
Mobile Web

https://user-images.githubusercontent.com/77761491/171439046-7611231c-758a-41c5-956a-50469f55f343.mp4
Desktop

https://user-images.githubusercontent.com/77761491/171443476-cca4dd0b-bc3a-4658-9d45-4c926988cc73.mp4
iOS

https://user-images.githubusercontent.com/77761491/171440290-82010c7d-ef2b-4a07-8b8c-391a31e19b6d.mp4
Android

https://user-images.githubusercontent.com/77761491/171438885-1ad87e45-4aa4-40af-951c-b62e04ae9253.mp4

Updated

Sorry for the delay, I was waiting for a reply on this https://github.com/Expensify/App/issues/7917#issuecomment-1121719020!
Yes, @thienlnam will test this alone by Monday or Tuesday!
@mdneyazahmad Can you merge this main branch, as it is more than a week old!

@mdneyazahmad Can you merge this with main!

@mdneyazahmad Please relace screenshots with videos of your tests. We can't tell about your tests from the screenshots. Thanks.

Any further updates here @mdneyazahmad?

Apologies for the delay. I will update it today.

Added videos

Any comments about https://github.com/Expensify/App/pull/8874#discussion_r888259868 @thienlnam ?

Commented on the thread, but let's see how much we can dry up by making it a pressable and using keydown listeners

Updated

@mdneyazahmad Please merge main. There is an issue on native.

I don't have any opinion on this. we already have a component called CheckboxWithlabel. I don't know the reason why it was created separately.
You can ask it on Slack. and bring the author in the discussion.

Let's focus on this PR and try to close it as early as possible. It is already more than a month.

@parasharrajat Opened a thread on slack here.

Pinged it.

@parasharrajat No discussion in this thread. Could you help me move forward?

I am not in sync with the discussion. Please summarize it on slack and I will take it from there.

@parasharrajat There is not much discussion there, just 3-4 comments. You can follow it straight away.

@parasharrajat I concluded in the discussion thread. Could you take a look at it and let me know if anything is missed there. Thank you.

Updated

@mdneyazahmad Can you update the PR description, screenshot, and fill the author checklist thanks!

Thanks for the preliminary review and testing @parasharrajat, will give it a final review now


⚠ Jerry Savelle Ministries International Australia has degraded performance

In d544b8a, Jerry Savelle Ministries International Australia (https://jsmiaustralia.org) experienced degraded performance:

HTTP code: 200
Response time: 5458 ms

Resolved: Jerry Savelle Ministries International Australia performance has improved in bdb5820 after 6 minutes.


Preferably keep generic, and upstream has few updates

I see that you modified the source code a bit to remove the search for async function and few more. I think it would be better to keep it generic (so that it can still work in browsers, node, etc). If you have suggestion to make it better generic, then I can take PR, though generally I consider it complete.
I had few more old local patches which I didn't push to the repo, so I pushed them now (3 commits), so you probably want to sync up, though it would probably be easier if you revert your changes first, or some such.

Initially I wanted to sent PR, but I didn't particularly like the CommonJS wrapper output in ES modules, however this is kinda minor.
I can make a PR with fixes if you're ok with pushing nopromise package to npm.

I didn't particularly like the CommonJS wrapper output in ES modules

Not sure I follow what you mean exactly. Can you post a diff (preferably to current upstream) which demonstrates what you'd change in this regard and explain why?

I can make a PR with fixes

Sure, if it fixes real issues then do send a PR.

if you're ok with pushing nopromise package to npm.

I won't maintain it with npm, but I think it should stay as close to upstream as possible regardless.

Continued at https://github.com/avih/nopromise/pull/1.


python310Packages.{aiohttp,anyio,passlib}: speed test up with pytest-xdist

Description of changes

Things done

Built on platform(s)

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

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

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Needs to target staging.

I've rebuild the packages on a machine with 40 cores and test run times improved but apperantly I forgot to collect the stats.


implement the interaction with the back-end

all available events related to this place will be displayed when select place from place list, since we already have place filter, so it's not that necessary to filter events of a place again.


Small bug in one of the examples

Description of bug / unexpected behavior

On this example https://docs.manim.community/en/stable/examples.html#threedsurfaceplot mu should be a vector so that one can try other positions apart from the origin.
Expected behavior

This reimplementation seems to fix the bug.
How to reproduce the issue

Code for reproducing the problem
Paste your code here.

Additional media files

Images/GIFs

Logs
Terminal output

PASTE HERE OR PROVIDE LINK TO https://pastebin.com/ OR SIMILAR

System specifications
System Details

OS (with version, e.g Windows 10 v2004 or macOS 10.15 (Catalina)):
RAM:
Python version (python/py/python3 --version):
Installed modules (provide output from pip list):

PASTE HERE

LaTeX details

LaTeX distribution (e.g. TeX Live 2020):
Installed LaTeX packages:

FFMPEG
Output of ffmpeg -version:
PASTE HERE

Additional comments

This is the code:
def param_gauss(u, v):             x = u             y = v             sigma, mu = 0.4, [0.0,0.0]             d = np.linalg.norm(np.array([x-mu[0], y-mu[1]]))             z = np.exp(-( d** 2 / (2.0 * sigma ** 2)))


Feature: User Activity Train

We shall create a user-activity train that encourages repeated interactions.  This could be a Follower Train, Cheer Train, or a Sub Train.
Some configuration that will be needed:
Counter - current length of train (store in memory)
Timer - maximum duration between action (Channel Config)
Action - what are we tracking to keep the train going (Channel Config)
Appearance - what images, colors do we show for different states of the train (Channel Config)

every X number of actions triggers a different appearance
every X number of actions grants VIP access to the actor
Record - maximum achieve train length and date achieved (Channel Config)

Here is the idea from the live stream on 09/20/19.  The "engine" could have a picture of the broadcaster.  Then as each new follower is detected in the time limit, they can be added to the train as a "car" and have their icon as a sign on the car.  Then after a set amount of time the train would end with a caboose that says "Thank you".

so if we refactor this feature like so having UserActivityTrain.cs and UserActivityTrain.scss so style sheets as scss so those then use followerTrain cheerTrain, subscriberTrain use UserActivityTrain so having interface like IUserActivityTrain could be one tool to use in this


Improve front matters as per comments in DG peer review

Codecov Report

Merging #433 (33d0a9d) into master (b98132b) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #433   +/-   ##
=========================================
  Coverage     65.54%   65.54%
  Complexity      715      715
=========================================
  Files           146      146
  Lines          2537     2537
  Branches        285      285
=========================================
  Hits           1663     1663
  Misses          736      736
  Partials        138      138

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


Look into Google Speech to Text for videos with missing transcripts

Not all videos have a transcript or captions available.
In these cases it would be nice to be able to generate one for them and then use the new transcript in sentiment analysis.
Google Speech to Text API should do the job.  :)

Ok, so for an initial prototype this looks like a little to much work.
We cant easily download the audio streams for YouTube.
Even though pytube gives us access to audio streams, we cant download them due to limitations in urlfetch on appengine. There is a 60 second time limit on requests via urlfetch and a urlfetch is only capable of handling up to 32MB worth of data. Some of these audio streams could well be much larger in size.
This is plausible functionality though - once we find a way of being able to download and store the data to cloudstorage, we can then easily run it through cloud speech to text on the slow running poll service. We'd then gradually build up a transcript file as the audio is processed. we could then run the completed transcripts through cloud natural language for sentiment analysis.
There are only a couple of ways around this issue on Appengine Standard as far as I can tell.

We use sockets and force urlfetch to use sockets via the GAE_USE_SOCKETS_HTTPLIB env variable. This would get around the 60 second deadline, however it might not get around Appengine standard's memory limits (again depending on file size)
We setup a compute instance or something and run the process there as a background task. Our Appengine Instance would then simply poll the cloudstorage bucket for the completed transcript.

I think option 2 is the most realistic solution, but that's going to take more time than I have right now.
Marking this as on hold until I get some extra time to add this in.
If anybody has any better ideas, please add to this thread. :)


Fix memory leak issue when Interprocess fails to listen to messages

We should probably limit the reconnection attempts inside the while(true)
Logs from Foldaren

Not sure if it's the same, but opening a second instance of Sidekick Beta causes memory leak in the second instance too (~30MB more gets allocated every sec or less).
I don't think the app should even allow a second instance to open (should either close itself, close the other instance(s), or at least have a setting for it in the settings).

We do have a mechanism to stop multiple instances from running. Can you provide a screenshot of that happening so I can understand better?

I got an update just now, and currently i don't see a memory leak like before (shooting up to infinity), but it still can start multiple instances.
I just run the sitekick beta shortcut the .application installer put in my start menu, a "starting application" window pops up for a couple of seconds, then i get the window with the "initializing" progress bar. And the same happens if I run the shortcut again, opening another instance, resulting in another icon on the right side of the taskbar and another line in the task manager.
Is that enough or would a (non-english) screenshot actually help?

Good point, I don't know how ClickOnce does it really. The auto-updater is a black box to me.

We've implemented a slower loop for the interprocess message handler, but we need to find a permanent fix


Support for initializing with 0s for SUM reduction WHB0

Problem description
Support for initializing with 0s for SUM reduction WHB0
What's changed
WHB0 llk
Checklist

[ ] Post commit CI passes
[ ] Blackhole Post commit (if applicable)
[ ] Model regression CI testing passes (if applicable)
[ ] New/Existing tests provide coverage for changes

@rtawfik01 Please review. we need this pr merged for this https://github.com/tenstorrent/tt-metal/pull/12385

@rtawfik01 Please review. we need this pr merged for this #12385
Fully reviewed, blackhole will be solved in a separate issue


Add emoji 15-15.1

Beware that not all of Emoji 15 and 15.1 is there. I wanted to continue the development of Twemoji.

This will likely get closed because of https://github.com/jdecked/twemoji/issues/8#issuecomment-1610361826. This cannot be merged.

@JeDaYoshi, I know I closed it, but I thought she was talking about the ones that are used on the Twitter website.

@JeDaYoshi, I know I closed it, but I thought she was talking about the ones that are used on the Twitter website.

Where are these images sourced from? The ones from twitter aren’t allowed because they aren’t licensed.

They're sourced from the original Twitter emojis, I just edited the existing ones.

That still counts as copyright infringement, unless they open-source them under the Twemoji project.

@JeDaYoshi the original artwork that was part of Twemoji was licensed under the "CC BY 4.0" license: https://github.com/jdecked/twemoji/blob/main/LICENSE-GRAPHICS This license allows derivative works.
From what I can tell, the emoji added by @Sayhone721 are neither copied from the Twitter website, nor are they close copies of the newly added Twitter emoji. As such, I don't see how this is a copyright infringement?

@dbrgn Please correct me if I'm wrong, but as far as I've understood it, the images were sourced from Twitter's website, which since they've not been officially released under the Twemoji project and have only been available from there, we should take them as "not licensed", being a gray area of probably rights reserved (or not).
Yes, afterwards the emojis were edited when the PR was submitted, but wouldn't that still be an issue due to the source they came from? It's not like they were created from scratch using the Twitter emoji's design as an inspiration.

I'm pretty much following @jdecked's comment as of why prior PRs to add the new emojis were not merged - they can't be sourced from Twitter at all. I'm counting "derivate works based on Twitter's SVG files" on this, which is what I originally thought when commenting on this PR, and @Sayhone721 confirmed in an earlier comment.


bpf: Verifier complaint for list of L4 ports

If a NetworkPolicy with multiple L4 ports is configured, the BPF verifier complains
#define CFG_L4_INGRESS { {80, 8080, 0}, {81, 8181, 0} }

Looks like another relocation error, ELF contains non-map related relo data in entry 19 pointing to section 23!. I was hoping to force it to work with some pragma/attribute but didn't come up with anything clever, so will need to brute force it with another macro.

I believe this is resolved now and I added a couple tests to the 10-proxy test case to catch this in the future.


embed public key for JWT encryption

In asymmetric Encryption we have to make a Private key & Public Key

public key is for Asymmetric encryption, while we use symmetric encryption, as there are no data exchanges between the server and clients. so only generating a secret private key is sufficient for JWT authentication.


API calls from the server require an appsecret_proof argument

Hi @adi518
Thanks for developing this nice component.
However I am facing a problem logging the users in. When I tried your component on my local environment, it seemed to work fine with my demo facebook app.
But, when I tried the code on a real server with https, I receive the following message from Facebook:
"API calls from the server require an appsecret_proof argument"
I found out that this document is the answer to resolving this problem.
https://developers.facebook.com/docs/graph-api/securing-requests
However I could not find how I can use it through your component.
Help would be appreciated.
Thanks,

There's a loginOptions prop that might help you with that.

Reopen if still relevant.


Hide promoted tweets

Thanks for this PR @stuartromanek! This is excellent. I've been using U-block origin so I haven't been promoted ads on web.


Fix text color in reply composer at inbox.google.com

Both the inline reply and reply sub windows are black text on black backgrounds

I didn't notice the problem. Could you send a screenshot?

Sorry for the delay!
It's worth noting that this problem only manifests while the reply textbox is focused. If you select anything else (subject line for example), the reply text shows in 100% white and is perfectly legible. I've attached a screen cap of the text not visible, you can see Chrome's autocorrect underline on the "invisible" reply text

Unfortunately it looks OK for me.
What happens if you past an image next to text, is it inverted? If so, maybe you have some custom theme. then you should walk up a tree a find an element causing an inversion.
For example try executing this script to find such elements containing .aR:
document.querySelectorAll(".gbii .aR, .gbip .aR, .azp .aR, .aLF-aPX-KP .aR, .irc_bg .aR, .RY3tic .aR, [style*='url'] .aR");

Aha! Looks like this was caused by the Lazarus extension:
https://chrome.google.com/webstore/detail/lazarus-form-recovery/loljledaigphbcpfhfmgopdkppkifgno?hl=en
That being said, I'd still like to see this change integrated since Lazarus has saved me more than once =)

Lazarus adds an icon as a background image, so Dark Reader inverts whole editor, but background image is mostly transparent. Currently I cannot suggest a selector that will work on all sites. Maybe there will be some image analyzer later.
Google Inbox, GitHub and many other modern websites save your draft as soon as you type, so you can disable Lazarus for them.

Lazarus does indeed allow blacklisting sites, and I had installed it an never looked back so after testing Inbox's form saving, I've blacklisted it in Lazarus and all is well.
Thanks again for all that you do for the internet. You're truly doing god's work.


Welcome to try v3.8 model

Based on the evaluation of dozens of videos, the v3.8 model has achieved an acceleration effect of more than 2X while surpassing the effect of the RIFEv2.4 model. And v3.8 can better handle 2d scenes.
At the same time, we welcome you to submit bad cases to help us in the future model improvement.
v3.8 model: https://github.com/hzwer/Practical-RIFE#model-list

BTW, SVP project seems to be trying RIFE. https://www.svp-team.com/wiki/RIFE_AI_interpolation

RIFE 3.6/3.7 don't seem to be faster than 3.1 for me.
3.1 gets me ~21 FPS, 3.6 and 3.7 get me ~14 FPS, both at the same resolution on my RTX 3070.

I know. Because 3.1 version deleted a model branch, I think its effect is not very good. If you need faster speed, it is recommended to set scale=0.5.

Hi @n00mkrad. Because 3.1 version deleted a model branch, I think its effect is not good. If you need faster speed, it is recommended to set scale=0.5. Or I can provide a faster inference option in the next version.

Okay, I'll try changing the scale.
By the way, I heard that Pytorch 1.9 has an inference mode, could that be used to speed things up?

Inference Mode API allows significant speed-up for inference workloads while remaining safe and ensuring no incorrect gradients can ever be computed. It offers the best possible performance when no autograd is required.

https://pytorch.org/blog/pytorch-1.9-released/

Models 3.1 to 3.5 work fine
Models 3.6 and 3.7 both crash with: RuntimeError: CUDA error: an illegal memory access was encountered
At Line 33 self.flownet.to(device) in RIFE_HDv3.py

Would you mind changing IFNet_HDv3.py Line 90-91 to
flow = torch.zeros_like(x[:, :4]).to(device)
mask = torch.zeros_like(x[:, :1]).to(device)
I can't reproduce your problem, can you help me try this change please?
@HeylonNHP

It was the first thing I tried when I compared both versions. Sadly it makes no difference. I might need to play around with it more tomorrow.

Alpha doesn't seem to work anymore in 3.6/3.7.
I get this:
RuntimeError: Given groups=1, weight of size [45, 11, 3, 3], expected input[1, 13, 36, 36] to have 11 channels, but got 13 channels instead

@n00mkrad @HeylonNHP I'm sorry that there may be some mistakes in v3.6-v3.7. I try my best to fix them in v3.8 model including alpha support and efficient inference.

3.8 is still looking a little more blurry than 3.1, it may perform better in other cases but still need to do more tests. It's already a lot better than 3.2
3.1

3.8

It seen strange, but IFNet.block0 seen to be creating flows even for the same picture, generating a slight blur. Not sure if this is intentional.
flow = torch.zeros_like(x[:, :4]).to(device)
#Change warped_img1 to warped_img0
f0, m0 = block[0](torch.cat((warped_img0[:, :3], warped_img0[:, :3], mask), 1), flow, scale=ada_scale[i])
print(torch.min(flow), torch.max(flow))
print(torch.min(f0), torch.max(f0))

This generate some blur once warp is called, if the image is the same.

3.8 still crashes

3.8 still crashes

I can not figure out why is it incompatible. I tested it on my mac, my linux and colab.

3.8 still crashes

I can not figure out why is it incompatible. I tested it on my mac, my ubuntu worker and google colab.

I appreciate you trying to help. After digging through exceptions and stack traces for hours... I tried updating my pytorch from 1.8 to 1.9... and that alone fixed the issue 😂

3.8在很多方面都超过了2.4模型，特别是主观流畅度方面。
不过我还发现一些有瑕疵的场景，不知道是不是和低分辨率视频源有关。

RIFE 3.8

RIFE 2.4
前后两帧

@Narugakuruga 非常感谢你的评测，可能有个原因是 v2.4 的训练时长长于 v3.7 10倍，同时计算量也是好几倍
我们目前已经搭建了一个大数据集 会持续继续优化

There was a discussion about RGBA before, is this not supported now in V3.8？

@YiXinChenChen It should be supported

@YiXinChenChen It should be supported
When I use two frames of RGBA img in inference_img.py, I get RGB imgs instead of the expected RGBA imgs. Am I doing something wrong?

@YiXinChenChen

How to download rife v3.8 model on colab instead of 2x model, please send me a new codes, if possible.

@lbrohim112 Please refer to https://github.com/hzwer/Practical-RIFE#model-list

3.8 still crashes

I can not figure out why is it incompatible. I tested it on my mac, my ubuntu worker and google colab.

I appreciate you trying to help. After digging through exceptions and stack traces for hours... I tried updating my pytorch from 1.8 to 1.9... and that alone fixed the issue 😂

How to update upto pytorch 1.9 on colab, it says you must update it for more good results, can you write code, cuz i want to fix things too, like you?


Ideas about why the quality isn't as good?

Thanks for this repo - and for all your other excellent work! It is very appreciated. This seems like a very reasonable idea to combine the generator from iSTFT-net and the discriminators from Avocado. But then in your notes you say "Quality is not as good as Avocodo and ISTFTNet." - how much worse was it, and do you have any ideas about why the quality is not as good?

Indeed thanks Rishi for your excellent work.
I tried both Avocodo's discriminators on HiFi-GAN and on iSTFTNet, though on slightly different implementations to Rishi's excellent work. What I notice is Avocodo with iSTFTNet sounds slightly less good than plain iSTFTNet, but only by a slight margin that can only be noticed with careful listening. I suspect the reason is because the generator of iSTFTNet uses less intermediate outputs (i.e. number of tansposed layers) than a HiFi-GAN, meaning there are less outputs produced for Avocodo's discriminator to do its work.

right - that makes sense - thanks for sharing!

yes, quality degradation only noticeable when you hear carefully on headphone.


"No such module 'Timepiece'"

Hi, I'm pretty new to Swift/pods. I added timepiece to my pod file, installed it and can verify it's added to my app. But attempting to import Timepiece at the top of my appDelegate with the rest of my other imports gives me an error "No such module 'Timepiece'"
Any idea what I'm missing here?
Thanks!

Hmm, I also get the same error when I run the included timepiece.playground. I'm on XCode 7.3

@pketh Thank you for using my library. Do you open *.xcworkspace, not *.xcodeproj? Is your problem specific to Timepiece?

Thanks for the quick reply :)
Yeah I'm using xcworkspace and other pods do import. If it helps, I'm making a Mac app. But didn't do anything Mac specific in the playground file

On Apr 4, 2016, at 4:10 AM, Naoto Kaneko<EMAIL_ADDRESS>wrote:
@pketh Thank you for using my library. Do you open *.xcworkspace, not *.xcodeproj? Is your problem specific to Timepiece?
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

@pketh I created a sample OSX application using Timepiece, and successfully built the app. The repository is here. What is the difference with yours?

If I download your sample application directly and open it in xcode, going to the appDelegate shows the same error. Comparing our appDelegate files, they look like they have pretty much the same init. My project is https://github.com/pketh/weather-cat .
That being said, I've since found a workaround, so if I'm the only person who's had this issue I wouldn't bother trying too hard to track it down :) If other osx users bring this up, maybe file that as a duplicate issue.
Thanks Noato!

Looks like this was the issue http://stackoverflow.com/questions/29500227/xcode-no-such-module-error-but-the-framework-is-there , just had to flip this guy to Yes..

It's a pleasure for you to solve the problem!


HttpResponseData as InvocationResult is serialized

In .NET 5/Azure Functions V3, we created middleware that sets the InvocationResult value of the IFunctionBindingFeature implementation to a HttpResponseData object:
public static void SendHttpResponse(this FunctionContext context, HttpResponseData response)
{
    var keyValuePair = context.Features.SingleOrDefault(f => f.Key.Name == "IFunctionBindingsFeature");
    var functionBindingsFeature = keyValuePair.Value;
    var type = functionBindingsFeature.GetType();
    type.GetProperty("InvocationResult").SetValue(functionBindingsFeature, response);
}

We used this middleware to check if the user was authenticated/authorized. Since the upgrade to .NET 6/Azure Functions V4, this implementation is broken, because it now serializes the complete HttpResponseData object as JSON and returns this with a status code 200 OK:
{
  "method":"",
  "query":{},
  "statusCode":"403",
  "headers": {"Content-Type":"text/plain; charset=utf-8"},
  "enableContentNegotiation":false,
  "cookies":[],
  "body":"Tm90IGF1dGhvcml6ZWQ="
}

Does anyone has an idea how to solve this?

@vincentbitter have you had a chance to validate .NET 5 against V4? Trying to understand if this is something related to the host or the .NET version after the bump.
We'll take a look at this, but if you have the information above, it might help speed the investigation up a bit.
Thanks!

@fabiocav Tried to reproduce this in a Proof of Concept, but the problem is slightly different than I thought and has nothing to do with the upgrade of .NET and Azure Functions.
The problem is actually in the response type of the function.
If the response type is HttpResponseData, it works fine:
public async Task<HttpResponseData> Run([HttpTrigger(AuthorizationLevel.Function, "get")] HttpRequestData req) {
  // ....
}

But if the response type is a custom one, it doesn't work:
public class Output {
   public HttpResponseData Response { get; set; }
}

public async Task<Output> Run([HttpTrigger(AuthorizationLevel.Function, "get")] HttpRequestData req) {
  // ....
}

Any thoughts on how to solve this?

I've added a workaround to https://github.com/vincentbitter/poc-functions-middleware
public static void SendHttpResponse(this FunctionContext context, HttpResponseData response)
{
    var functionBindingsFeature = context.Features.SingleOrDefault(f => f.Key.Name == "IFunctionBindingsFeature").Value;
    var functionBindingsFeatureType = functionBindingsFeature.GetType();

    var outputBindingsInfo = functionBindingsFeatureType.GetProperty("OutputBindingsInfo").GetValue(functionBindingsFeature);
    var outputBindingsInfoType = outputBindingsInfo.GetType();
    if (outputBindingsInfoType.Name == "PropertyOutputBindingsInfo")
    {
        var propertyNames = GetPrivateFieldInfo(outputBindingsInfoType, "_propertyNames")
            .GetValue(outputBindingsInfo);

        var list = propertyNames as IEnumerable<string>;
        if (!list.Contains("Response"))
            throw new Exception("Function return type does not contain a Response property");

        GetPrivateFieldInfo(functionBindingsFeatureType, "_outputData")
            .SetValue(functionBindingsFeature, new Dictionary<string, object> {
                { "Response", response }
            });

        return;
    }
    else
    {
        functionBindingsFeatureType.GetProperty("InvocationResult").SetValue(functionBindingsFeature, response);
    }
}

Thank you for the update @vincentbitter. A workaround for this would be fine for now as we're actively working on the model we have planned to expose binding/result management APIs that can be used from middleware and other components.
Closing this as I don't believe any additional action is required, but let us know if you have any additional questions.


AI Provider Configuration Update

This PR contains daily documentation updates based on the following suggestion:
Correct and expand the documentation on AI provider configuration. The current documentation has limited information on configuring providers like Claude and Gemini, despite extensive details in the code on how to set these up. Include best practices and guidelines for each provider.
potential files to change: docs/concepts/agents.md, docs/concepts/actions.md, docs/concepts/generators.md

again just not a fan of the suggestion itself. too vague
2/4


boards: nxp: Switch MCUBoot FW Update mode to Swap & Move

Switch the default MCUBoot FW Update mode from Swap & Scratch to more preferable Swap & Move for the rest of NXP MCUs. Other NXP MCU platforms have been already switched.
Delete the scratch partition. Save RAM & ROM.

@butok, thanks for the PR. IIRC there are 2 possible ways to define partitions for the swap-move in mcuboot:

Define image0 partition one erase-block larger than image1 partition,
Define image0 and image1 partitions equal but leave one erase-block unused at the end of image0 partition.

The defines provided do not follow this requirement, this might lead to problems with larger images. Have you tested if the definitions work for large images ?

@butok, thanks for the PR. IIRC there are 2 possible ways to define partitions for the swap-move in mcuboot:

Define image0 partition one erase-block larger than image1 partition,
Define image0 and image1 partitions equal but leave one erase-block unused at the end of image0 partition.

The defines provided do not follow this requirement, this might lead to problems with larger images. Have you tested if the definitions work for large images ?

Thanks for pointing this out.
I just went through other .dts platforms without a scratch slot. And all the ones I've seen have the same size for slot0 and slot1. So I'd rather be consistent and stay with option (2).

@butok, thanks for the PR. IIRC there are 2 possible ways to define partitions for the swap-move in mcuboot:

Define image0 partition one erase-block larger than image1 partition,
Define image0 and image1 partitions equal but leave one erase-block unused at the end of image0 partition.

The defines provided do not follow this requirement, this might lead to problems with larger images. Have you tested if the definitions work for large images ?

Thanks for pointing this out. I just went through other .dts platforms without a scratch slot. And all the ones I've seen have the same size for slot0 and slot1. So I'd rather be consistent and stay with option (2).

IMO many examples for other dts platforms might not be correct and users have not discovered this problem because their images are small. It is ok to go with option 2 but add some remark in the dts that there is a "unavailable" erase-block.

@butok, thanks for the PR. IIRC there are 2 possible ways to define partitions for the swap-move in mcuboot:

Define image0 partition one erase-block larger than image1 partition,
Define image0 and image1 partitions equal but leave one erase-block unused at the end of image0 partition.

The defines provided do not follow this requirement, this might lead to problems with larger images. Have you tested if the definitions work for large images ?

Thanks for pointing this out. I just went through other .dts platforms without a scratch slot. And all the ones I've seen have the same size for slot0 and slot1. So I'd rather be consistent and stay with option (2).

IMO many examples for other dts platforms might not be correct and users have not discovered this problem because their images are small. It is ok to go with option 2 but add some remark in the dts that there is a "unavailable" erase-block.

It should be part of MCUBoot/imagetool documentation, not dts.
Also, imagetool should do calculations and reserve place for header/tails/status areas.

Also, imagetool should do calculations and reserve place for header/tails/status areas.

@butok On the K64F, I tried loading an image padded to 25680 bytes. With the 512 byte header, and 432 byte trailer, the image comes out to 26624 bytes. This should fill the entire slot on the K64F. I'm able to upgrade to this image using the DFU mode in MCUBoot without any issues, but the imgtool image does not complain. Based on my understanding of the MCUBoot swap algorithm, this image should be too large, right?
I tested with the following script:
# Build and flash MCUBoot
west build -p always -b frdm_k64f -d build-bootloader \
        ../bootloader/mcuboot/boot/zephyr/ \
        -DCONFIG_BOOT_USB_DFU_WAIT=y
west flash -d build-bootloader
# Create hello world image of max slot size
west build -p always -b frdm_k64f samples/hello_world/ \
        -DCONFIG_BOOTLOADER_MCUBOOT=y -d build-img1
truncate -s 25680 build-img1/zephyr/zephyr.bin
imgtool sign --pad -S 26624 --align 1 -k ../bootloader/mcuboot/root-rsa-2048.pem \
        -H 512 -v 0.0.0 \
        build-img1/zephyr/zephyr.bin build-img1/zephyr/zephyr.signed.bin
west flash -d build-img1 --bin-file build-img1/zephyr/zephyr.signed.bin
# Create synchronization sample of max slot size
west build -p always -b frdm_k64f samples/synchronization/ \
        -DCONFIG_BOOTLOADER_MCUBOOT=y -d build-img2
truncate -s 25680 build-img2/zephyr/zephyr.bin
imgtool sign --pad -S 26624 --align 1 -k ../bootloader/mcuboot/root-rsa-2048.pem \
        -H 512 -v 0.0.0 \
        build-img2/zephyr/zephyr.bin build-img2/zephyr/zephyr.signed.bin
# Reset board, and use dfu-util to update
echo "Press reset switch to enter bootloader..."
sleep 20
# Use dfu-util to upgrade
sudo dfu-util -D build-img2/zephyr/zephyr.signed.bin  -a 1

Mr. Brown:
"I would discourage you from using a scratch partition...
I really need to go through and remove the scratch partitions from the existing DTS files, as people keep copying them...
I really, really, would like people to stop using swap-scratch."
So in this commit we are switching from the swap-scratch to move mode.
Please all reviewer +vote to finish the moving.
Later, we can improve it by +-sector size and/or change imgtool behavior.

"I would discourage you from using a scratch partition...
I really need to go through and remove the scratch partitions from the existing DTS files, as people keep copying them...
I really, really, would like people to stop using swap-scratch."

Agree here- swap move wear levels, which is a large benefit. However, I agree with @Laczen- if we are going to move boards over to swap move, we should follow the best possible partition allocation (from MCUBoot design documents):

Therefore the most memory-size-effective slot layout is when the primary slot is exactly one sector larger than the secondary slot, although same-sized slots are allowed as well

"I would discourage you from using a scratch partition...
I really need to go through and remove the scratch partitions from the existing DTS files, as people keep copying them...
I really, really, would like people to stop using swap-scratch."

Agree here- swap move wear levels, which is a large benefit. However, I agree with @Laczen - if we are going to move boards over to swap move, we should follow the best possible partition allocation (from MCUBoot design documents):

Therefore the most memory-size-effective slot layout is when the primary slot is exactly one sector larger than the secondary slot, although same-sized slots are allowed as well

Updated: Slot 0 now has one additional sector, for use with the swap move algorithm.


Automated Pull Request — New feeds(Toronto Transit Commission, Exo Le Richelain / Roussillon, Consorcio de Transportes de Mallorca) [SOURCES]

This pull request contains new or updated feed(s)

Thanks @AlfredNwolisa! I think we should add "checking for transit provider name being the same" to our list of checks - there were a bunch of updates in here rather than new feeds.
As well, there was an associated static feed for the realtime TTC feed that needed to be added.


Kover 0.7.4: this and base files have different roots

Describe the bug

This is project is a Android multiple modules. I applied kover plugin to each module, and in :app module, I used dependencies { kover(project(":other-module")) ... }

When using version 0.7.3, it works as expected

Failed when changing from 0.7.3 to 0.7.4

PR: https://github.com/Kotlin-Android-Open-Source/MVI-Coroutines-Flow/pull/205

Full log at https://github.com/Kotlin-Android-Open-Source/MVI-Coroutines-Flow/actions/runs/6841635365/job/18602208693?pr=205

* What went wrong:
Execution failed for task ':app:koverGenerateArtifact'.
> this and base files have different roots: [+�~<K}�8�竭����=��x���v-�(dF�@�p�����k��M��ε	v�R�T}�����&n[Q8�: and /home/runner/work/MVI-Coroutines-Flow/MVI-Coroutines-Flow.

I have tried, but it does not work 🥺

allprojects {
  extensions.findByType<kotlinx.kover.gradle.plugin.dsl.KoverProjectExtension>()?.run {
    useJacoco("0.8.11")
  }
}

Hi, thanks for the report!
This is a known issue: #478

Closed as duplicate


bugfix(security): point to correct links in examples

Links mentioned in the respective README.md of the
Docker-Swarm and SSH-Tunneling examples point to
non-existent resources. The links should point to:

main branch of the edgex-docs repository
documents exist under security directory and
not microservices/security directory

This commit closes #101.
Signed-off-by: Shantanoo 'Shan' Desai<EMAIL_ADDRESS>

If your build fails  due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/edgex-examples/blob/main/.github/Contributing.md
PR Checklist
Please check if your PR fulfills the following requirements:

[ ] I have added unit tests for the new feature or bug fix (if not, why?)
[x] I have fully tested (add details below) this the new feature or bug fix (if not, why?)

Testing Instructions

closing this in favor of Semantic PR requirement that will follow


Update videoURL for HTML5 Elements challenge

I recorded a new Scrimba cast to fix some errors. I updated the Scrimba URL in this PR.

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] All the files I changed are in the same world language (for example: only English changes, or only Chinese changes, etc.)
[x] My changes do not use shortened URLs or affiliate links.

Closes #35437

There is an earlier PR (#35766) than this one for the same file, but I am going to merge this one anyway, because it is not the same change and should not cause a merge conflict.


compiler: temp fix for typecast function parameters

In cases where a FuncCall has a TypeCast node as an
argument, resolveCatalogRefs would erroneously output
two parameters for that argument instead of one.
This fix eliminates the duplicate param and allows queries
with typecast function args to compile, but it loses track
of the argument's connection with the function called. This
means the parameters use the generic ColumnN names even when
the function has named parameters.
A future refactor of resolveCatalogRefs to better address
function calls will be necessary to address the name issue.
(this only edits the experimental package and  does not fix
the old dinosql compiler)
Closes #520

Does this look OK?

Yes! I hit the "Merge master into branch" button and then forgot to merge. Doing so now.


auto update timer

Hello,
I would like to ask if we could update the timer shown when i click on a specific location in the waveform.. It only automatically change when the music is playing but what if is in on pause state.. how i could update it automatically
Thanks in advance

Use the seek event which is documented in the README (have you tried reading it?).
http://codepen.io/katspaugh/pen/xwPYaw?editors=101


Percentage displayed in black when using dark theme

Using Kibana 5.3.0 with a Dark Theme for the Dashboard the percentage is displayed in black, rather than white. It's interesting to note that the Gauge label changes to white as expected.

Hi, does anyone know if there is a quick fix for this. Is there something in the style sheets that can be updated, or is this hidden in the code somewhere?


Build doesn't add files in script if run in a volume

I am currently encountering the following problem - I have a Dockerfile for a container that is used as a data container. When building this container, I would like to download a few files, with my init.sh script:
#!/bin/bash

cd /var/www
wget -q -O ldap.zip https://github.com/leenooks/phpLDAPadmin/archive/master.zip
unzip ldap

wget -q -O zpush.zip https://github.com/fmbiete/Z-Push-contrib/archive/master.zip
unzip zpush

# A few more downloads here ...

The idea is that I have all the configuration files in this container, and add the downloaded files on top. So the directory structure on my machine looks a bit like this:
|-- Dockerfile
|-- root
    |-- var/www/zpush
        `-- config.php
    `-- var/www/phpldapadmin
        `-- config.php

With the following Dockerfile:
FROM debian:jessie
VOLUME ["/var/www"]
RUN DEBIAN_FRONTEND=noninteractive apt-get update -qq && apt-get install -y wget unzip && apt-get clean
ADD ["root","/"]

RUN ./init.sh

CMD ["/bin/true"]

However, when looking into the /var/www folder (for example by running docker run data-container ls -l /var/www after building), none of the downloaded files are actually in there! Only the ones that were put in with the ADD ["root", "/"] instruction are found, the others just seem to have vanished into nirvana. If I modify my init.sh script and add ls at the start and the end, I can clearly see that the files get added, but they seem to vanish after the init.sh script finishes.

Please read this important information about creating issues.
If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.
If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.
This is an automated, informational response.
Thank you.
For more information about reporting issues, see https://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues

BUG REPORT INFORMATION
Use the commands below to provide key information from your environment:
docker version:
docker info:
uname -a:
Provide additional environment details (AWS, VirtualBox, physical, etc.):
List the steps to reproduce the issue:
1.
2.
3.
Describe the results you received:
Describe the results you expected:
Provide additional info you think is important:
----------END REPORT ---------
#ENEEDMOREINFO

@milch any data put into a volume during the build process will not be saved in the resulting image.  So if you want that data in the image you'll have to put it some place other than /var/www

Huh? Why not?
Since this is a data container and not really supposed to run what would be a possible workaround? I need the data to end up in /var/www and multiple other containers need to access that data.

I think it should work if you put your VOLUME to the end of your Dockerfile, then the volume is not used during the earlier build steps; could you give that a try?

To explain; a VOLUME in a Dockerfile results in a new volume being created in each build step after that, changes made in that volume get lost, because the next build step will create a new volume

Oh, I didn't know that. Glad to see that it is getting changed in the documentation already!
Anyway, putting VOLUME at the end seems to work. Thanks!

@milch I actually think there's already mention of this in the docs, but it's still tripping people :-)
Glad to hear this worked for you!

I didn't find it here in the documentation regarding volumes in the Dockerfile, which is why I didn't know about this. The PR that just linked this issue (#15337) seems to fix that, though.

yeah I'm looking as well, maybe it got lost in a rebase.


Trying to add a 'team' option

It's annoying to add a list of members to an org or an org's team.
This repo was forked from a project that enabled users to simply type their GitHub username in and automatically send an invite to the organization. However, it does not add members to a default team. Will try to modify it so we have this option.
Reference material:

Octokit doc (Ruby-based toolkit to use GitHub API): http://octokit.github.io/octokit.rb/
Inspiration of original repo: https://medium.com/code-applied-to-life/automated-github-organization-invites-3e940aa27040#.sikfvzyaj

Done.


@iconify/react - Side side rendering produces warnings due to replaceIDs functionality

The @iconfiy/react package has a function that replaces all IDs with a combination of a randomly generated value and a counter value.
When using this library with server side rendering, this causes a HTML content mismatch between the client and server.
Possible solutions could be:

Allow users to pass an id to the Icon component that will override the randomly generated id.
Allow the user to pass in their own replaceIds function as a prop to component
Change the ID generation to be deterministic

Thanks for reporting!
Fixed in version 2.0.0-rc.6

@cyberalien I'm still seeing the same SSR warning on 2.0.0-rc.6
Here is a link to a minimal reproduction
I have used the NextJS starter but this is not specific to NextJS (its easier to get a test repo for you)
Code for the Icon is here
You can start the server with npm run dev
When visiting localhost:3000 you will see the warning
react-dom.development.js?61bb:67 Warning: Prop `dangerouslySetInnerHTML` did not match. Server: "<defs><linearGradient x1=\"50%\" y1=\"0%\" x2=\"50%\" y2=\"100%\" id=\"iconify-react-id-6\"><stop stop-color=\"#FFF\" offset=\"0%\"></stop><stop stop-color=\"#FFF\" stop-opacity=\"0\" offset=\"100%\"></stop></linearGradient><path d=\"M180.828 252.605a15.872 15.872 0 0 0 12.65-.486l52.501-25.262a15.94 15.94 0 0 0 9.025-14.364V41.197a15.939 15.939 0 0 0-9.025-14.363l-52.5-25.263a15.877 15.877 0 0 0-18.115 3.084L74.857 96.35l-43.78-33.232a10.614 10.614 0 0 0-13.56.603L3.476 76.494c-4.63 4.211-4.635 11.495-.012 15.713l37.967 34.638l-37.967 34.637c-4.623 4.219-4.618 11.502.012 15.714l14.041 12.772a10.614 10.614 0 0 0 13.56.604l43.78-33.233l100.507 91.695a15.853 15.853 0 0 0 5.464 3.571zm10.464-183.649l-76.262 57.889l76.262 57.888V68.956z\" id=\"iconify-react-id-7\"></path></defs><mask id=\"iconify-react-id-8\" fill=\"#fff\"><use xlink:href=\"#iconify-react-id-7\"></use></mask><path d=\"M246.135 26.873L193.593 1.575a15.885 15.885 0 0 0-18.123 3.08L3.466 161.482c-4.626 4.219-4.62 11.502.012 15.714l14.05 12.772a10.625 10.625 0 0 0 13.569.604L238.229 33.436c6.949-5.271 16.93-.315 16.93 8.407v-.61a15.938 15.938 0 0 0-9.024-14.36z\" fill=\"#0065A9\" mask=\"url(#iconify-react-id-8)\"></path><path d=\"M246.135 226.816l-52.542 25.298a15.887 15.887 0 0 1-18.123-3.08L3.466 92.207c-4.626-4.218-4.62-11.502.012-15.713l14.05-12.773a10.625 10.625 0 0 1 13.569-.603l207.132 157.135c6.949 5.271 16.93.315 16.93-8.408v.611a15.939 15.939 0 0 1-9.024 14.36z\" fill=\"#007ACC\" mask=\"url(#iconify-react-id-8)\"></path><path d=\"M193.428 252.134a15.892 15.892 0 0 1-18.125-3.083c5.881 5.88 15.938 1.715 15.938-6.603V11.273c0-8.318-10.057-12.483-15.938-6.602a15.892 15.892 0 0 1 18.125-3.084l52.533 25.263a15.937 15.937 0 0 1 9.03 14.363V212.51c0 6.125-3.51 11.709-9.03 14.363l-52.533 25.262z\" fill=\"#1F9CF0\" mask=\"url(#iconify-react-id-8)\"></path><path d=\"M180.828 252.605a15.874 15.874 0 0 0 12.65-.486l52.5-25.263a15.938 15.938 0 0 0 9.026-14.363V41.197a15.939 15.939 0 0 0-9.025-14.363L193.477 1.57a15.877 15.877 0 0 0-18.114 3.084L74.857 96.35l-43.78-33.232a10.614 10.614 0 0 0-13.56.603L3.476 76.494c-4.63 4.211-4.635 11.495-.012 15.713l37.967 34.638l-37.967 34.637c-4.623 4.219-4.618 11.502.012 15.714l14.041 12.772a10.614 10.614 0 0 0 13.56.604l43.78-33.233l100.506 91.695a15.857 15.857 0 0 0 5.465 3.571zm10.464-183.65l-76.262 57.89l76.262 57.888V68.956z\" fill-opacity=\".25\" fill=\"url(#iconify-react-id-6)\" mask=\"url(#iconify-react-id-8)\"></path>" Client: "<defs><linearGradient x1=\"50%\" y1=\"0%\" x2=\"50%\" y2=\"100%\" id=\"iconify-react-id-0\"><stop stop-color=\"#FFF\" offset=\"0%\"></stop><stop stop-color=\"#FFF\" stop-opacity=\"0\" offset=\"100%\"></stop></linearGradient><path d=\"M180.828 252.605a15.872 15.872 0 0 0 12.65-.486l52.501-25.262a15.94 15.94 0 0 0 9.025-14.364V41.197a15.939 15.939 0 0 0-9.025-14.363l-52.5-25.263a15.877 15.877 0 0 0-18.115 3.084L74.857 96.35l-43.78-33.232a10.614 10.614 0 0 0-13.56.603L3.476 76.494c-4.63 4.211-4.635 11.495-.012 15.713l37.967 34.638l-37.967 34.637c-4.623 4.219-4.618 11.502.012 15.714l14.041 12.772a10.614 10.614 0 0 0 13.56.604l43.78-33.233l100.507 91.695a15.853 15.853 0 0 0 5.464 3.571zm10.464-183.649l-76.262 57.889l76.262 57.888V68.956z\" id=\"iconify-react-id-1\"></path></defs><mask id=\"iconify-react-id-2\" fill=\"#fff\"><use xlink:href=\"#iconify-react-id-1\"></use></mask><path d=\"M246.135 26.873L193.593 1.575a15.885 15.885 0 0 0-18.123 3.08L3.466 161.482c-4.626 4.219-4.62 11.502.012 15.714l14.05 12.772a10.625 10.625 0 0 0 13.569.604L238.229 33.436c6.949-5.271 16.93-.315 16.93 8.407v-.61a15.938 15.938 0 0 0-9.024-14.36z\" fill=\"#0065A9\" mask=\"url(#iconify-react-id-2)\"></path><path d=\"M246.135 226.816l-52.542 25.298a15.887 15.887 0 0 1-18.123-3.08L3.466 92.207c-4.626-4.218-4.62-11.502.012-15.713l14.05-12.773a10.625 10.625 0 0 1 13.569-.603l207.132 157.135c6.949 5.271 16.93.315 16.93-8.408v.611a15.939 15.939 0 0 1-9.024 14.36z\" fill=\"#007ACC\" mask=\"url(#iconify-react-id-2)\"></path><path d=\"M193.428 252.134a15.892 15.892 0 0 1-18.125-3.083c5.881 5.88 15.938 1.715 15.938-6.603V11.273c0-8.318-10.057-12.483-15.938-6.602a15.892 15.892 0 0 1 18.125-3.084l52.533 25.263a15.937 15.937 0 0 1 9.03 14.363V212.51c0 6.125-3.51 11.709-9.03 14.363l-52.533 25.262z\" fill=\"#1F9CF0\" mask=\"url(#iconify-react-id-2)\"></path><path d=\"M180.828 252.605a15.874 15.874 0 0 0 12.65-.486l52.5-25.263a15.938 15.938 0 0 0 9.026-14.363V41.197a15.939 15.939 0 0 0-9.025-14.363L193.477 1.57a15.877 15.877 0 0 0-18.114 3.084L74.857 96.35l-43.78-33.232a10.614 10.614 0 0 0-13.56.603L3.476 76.494c-4.63 4.211-4.635 11.495-.012 15.713l37.967 34.638l-37.967 34.637c-4.623 4.219-4.618 11.502.012 15.714l14.041 12.772a10.614 10.614 0 0 0 13.56.604l43.78-33.233l100.506 91.695a15.857 15.857 0 0 0 5.465 3.571zm10.464-183.65l-76.262 57.89l76.262 57.888V68.956z\" fill-opacity=\".25\" fill=\"url(#iconify-react-id-0)\" mask=\"url(#iconify-react-id-2)\"></path>"
    at svg
    at eval (webpack-internal:///./node_modules/@iconify/react/dist/icon.esm.js:741:99)
    at main
    at div
    at Home
    at MyApp (webpack-internal:///./pages/_app.js:18:24)
    at ErrorBoundary (webpack-internal:///./node_modules/@next/react-dev-overlay/lib/internal/ErrorBoundary.js:23:47)
    at ReactDevOverlay (webpack-internal:///./node_modules/@next/react-dev-overlay/lib/internal/ReactDevOverlay.js:73:23)
    at Container (webpack-internal:///./node_modules/next/dist/client/index.js:149:5)
    at AppContainer (webpack-internal:///./node_modules/next/dist/client/index.js:637:24)
    at Root (webpack-internal:///./node_modules/next/dist/client/index.js:768:24)

Looking at the changes, the issue is with the global counter variable. This issue may help explain why you cannot a global counter variable when generating ids for SSR.
I think most users who are doing SSR will already have a solution to generate unique ids (as they are needed for aria, labels, etc). It might be easier to just allow the user to provide an id override.

That reproduction repo does help a lot. Thanks!
I think this problem cannot be solved in component. There is no way to reset variable on each page render. On first page render ids match, but then it all goes wrong.
Idea about optional property for unique ids is good. What if I add an optional property uuid, which is a function that returns unique id?

You can just call the prop id as the term id in html already means "unique for this document".

Added property id, which is a string. That id will be used for SVG element and used as base for ids for shapes inside it, starting counter with 0 on each render, so it is reliable.
Tested with your repo by adding id to icon: <Icon icon={visualStudioCode} width={50} id="vscode" />. It reliably renders same ids on server and on client.

Seems to work well :+1:

Adding ids to all icons could be not simple if icons are used inside component that can be displayed multiple times on page, so I came up with a better solution.
In version 3.0.0-dev (had to rewrite whole component because passing references was impossible with old code), component loads icon data only when it is mounted, so initially component renders empty placeholder (or children nodes if you set any).
This solves problem of conflicting ids because there are no ids generated on server.


Tabnet model serialization error

🐛 Bug Description
When I save the model to a file then reload it for further training, there was this error of 'too many values to unpack'.
[9248:MainThread](2022-03-28 13:45:09,824) INFO - qlib.TabNet - [pytorch_tabnet.py:160] - Pretrain... [9248:MainThread](2022-03-28 13:45:10,259) INFO - qlib.TabNet - [pytorch_tabnet.py:134] - epoch: 0 [9248:MainThread](2022-03-28 13:45:10,259) INFO - qlib.TabNet - [pytorch_tabnet.py:135] - pre-training... [9248:MainThread](2022-03-28 13:45:12,005) ERROR - qlib.workflow - [utils.py:38] - An exception has been raised[ValueError: too many values to unpack (expected 2)].   File ".\rolling_workflow.py", line 333, in <module>     best_score, best_epoch, loss_type = model.fit(dataset=dataset)   File "C:\Users\Hense\AppData\Roaming\Python\Python38\site-packages\qlib\contrib\model\pytorch_tabnet.py", line 161, in fit     self.pretrain_fn(dataset, self.pretrain_file)   File "C:\Users\Hense\AppData\Roaming\Python\Python38\site-packages\qlib\contrib\model\pytorch_tabnet.py", line 136, in pretrain_fn     self.pretrain_epoch(x_train)   File "C:\Users\Hense\AppData\Roaming\Python\Python38\site-packages\qlib\contrib\model\pytorch_tabnet.py", line 327, in pretrain_epoch     (vec, sparse_loss) = self.tabnet_model(feature, priors) ValueError: too many values to unpack (expected 2)
To Reproduce
Steps to reproduce the behavior:

save model by 'model.to_pickle()
load the model by pickle
train the model by model.fit()

Expected Behavior
model continue fitting.
Screenshot

Environment
Note: User could run cd scripts && python collect_info.py all under project directory to get system information
and paste them here directly.

Qlib version: 0.8.0
Python version: 3.8.12
OS (Windows, Linux, MacOS): Windows 10 64bit
Commit number (optional, please provide it if you are using the dev version):

Additional Notes

It doesn't work if I set the model.pretrain to False after reloading.

I am now trying to replay this issue, can you give me more information? It would be very helpful for me to replay this issue.

Sure. My normal practice is to fit the  model and dump it to a file to create a recovery point in case of any interruption, then reload it by pickle to continue the fitting for further epochs / data. This is what happened when it came to Tabnet:
See my code as below:
model = init_instance_by_config(model_config)
print(f'\nFitting model {model_name} start with alpha {alpha_name}, save path set to {model_save_path}')
            model.fit(dataset=dataset)
            print(f'\nFitting model {model_name} done')
            model.to_pickle(path=model_save_path)

            with open(model_save_path, "rb") as file_model:
                new_model = pickle.load(file_model)
                #new_model.pretrain = False
            print(f'\nFitting reloaded model {model_name} start')
            new_model.fit(dataset=dataset)
            print(f'\nFitting reloaded model {model_name} done')

Here is the output:
[8872:MainThread](2022-04-15 14:21:20,646) INFO - qlib.TabNet - [pytorch_tabnet.py:79] - TabNet:
batch_size : 4096
virtual bs : 2048
device : cuda:0
pretrain: True
[8872:MainThread](2022-04-15 14:21:20,788) INFO - qlib.TabNet - [pytorch_tabnet.py:92] - model:
TabNet(
(shared): ModuleList(
(0): Linear(in_features=360, out_features=256, bias=True)
(1): Linear(in_features=128, out_features=256, bias=True)
------------------- Skip the long TabNet structure display ---------------------------
------------------- Skip the long TabNet structure display ---------------------------
[8872:MainThread](2022-04-15 14:21:20,829) INFO - qlib.TabNet - [pytorch_tabnet.py:93] - model size: 3.9595 MB
Fitting model TabnetModel start with alpha Alpha360, save path set to x:/qisolution/qlib_1\workflow_exe\model_saving\TabNet_Alpha3abNet_Alpha360.yaml_TP2.pkl
[8872:MainThread](2022-04-15 14:21:20,831) INFO - qlib.TabNet - [pytorch_tabnet.py:160] - Pretrain...
[8872:MainThread](2022-04-15 14:21:21,743) INFO - qlib.TabNet - [pytorch_tabnet.py:134] - epoch: 0
[8872:MainThread](2022-04-15 14:21:21,743) INFO - qlib.TabNet - [pytorch_tabnet.py:135] - pre-training...
[8872:MainThread](2022-04-15 14:21:28,612) INFO - qlib.TabNet - [pytorch_tabnet.py:137] - evaluating...               0.801880
[8872:MainThread](2022-04-15 14:21:30,776) INFO - qlib.TabNet - [pytorch_tabnet.py:140] - train 2710.559744, valid 2800.801880
[8872:MainThread](2022-04-15 14:21:30,776) INFO - qlib.TabNet - [pytorch_tabnet.py:143] - Save Model...
[8872:MainThread](2022-04-15 14:21:30,837) INFO - qlib.TabNet - [pytorch_tabnet.py:134] - epoch: 1
[8872:MainThread](2022-04-15 14:21:30,837) INFO - qlib.TabNet - [pytorch_tabnet.py:135] - pre-training...             1.808899
[8872:MainThread](2022-04-15 14:21:33,865) INFO - qlib.TabNet - [pytorch_tabnet.py:137] - evaluating...
[8872:MainThread](2022-04-15 14:21:35,889) INFO - qlib.TabNet - [pytorch_tabnet.py:140] - train 3974.716760, valid 3651.808899
[8872:MainThread](2022-04-15 14:21:35,889) INFO - qlib.TabNet - [pytorch_tabnet.py:149] - early stop
[8872:MainThread](2022-04-15 14:21:35,926) INFO - qlib.TabNet - [pytorch_tabnet.py:162] - Load Pretrain model
[8872:MainThread](2022-04-15 14:21:36,910) INFO - qlib.TabNet - [pytorch_tabnet.py:186] - training...
[8872:MainThread](2022-04-15 14:21:36,910) INFO - qlib.TabNet - [pytorch_tabnet.py:190] - epoch: 0                    0096
[8872:MainThread](2022-04-15 14:21:36,923) INFO - qlib.TabNet - [pytorch_tabnet.py:191] - training...
[8872:MainThread](2022-04-15 14:21:38,445) INFO - qlib.TabNet - [pytorch_tabnet.py:193] - evaluating...
[8872:MainThread](2022-04-15 14:21:39,275) INFO - qlib.TabNet - [pytorch_tabnet.py:196] - train -1.000373, valid -1.000096
[8872:MainThread](2022-04-15 14:21:39,298) INFO - qlib.TabNet - [pytorch_tabnet.py:211] - best score: -1.000096 @ 0
Fitting model TabnetModel done
Fitting reloaded model TabnetModel start
[8872:MainThread](2022-04-15 14:21:40,499) INFO - qlib.TabNet - [pytorch_tabnet.py:186] - training...
[8872:MainThread](2022-04-15 14:21:40,499) INFO - qlib.TabNet - [pytorch_tabnet.py:190] - epoch: 0
[8872:MainThread](2022-04-15 14:21:40,499) INFO - qlib.TabNet - [pytorch_tabnet.py:191] - training...
[8872:MainThread](2022-04-15 14:21:40,842) ERROR - qlib.workflow - [utils.py:38] - An exception has been raised[RuntimeError: both arguments to matmul need to be at least 1D, but they are 0D and 2D].
File ".\workflow_by_yaml.py", line 231, in
new_model.fit(dataset=dataset)
File "C:\Users\Hense\AppData\Roaming\Python\Python38\site-packages\qlib\contrib\model\pytorch_tabnet.py", line 192, in fit
self.train_epoch(x_train, y_train)
File "C:\Users\Hense\AppData\Roaming\Python\Python38\site-packages\qlib\contrib\model\pytorch_tabnet.py", line 297, in train_epoch
pred = self.tabnet_model(feature, priors)
File "C:\Users\Hense.conda\envs\pt\lib\site-packages\torch\nn\modules\module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "C:\Users\Hense\AppData\Roaming\Python\Python38\site-packages\qlib\contrib\model\pytorch_tabnet.py", line 404, in forward
return self.fc(self.model(x, priors)[0]).squeeze()  # take the vec out
File "C:\Users\Hense.conda\envs\pt\lib\site-packages\torch\nn\modules\module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "C:\Users\Hense.conda\envs\pt\lib\site-packages\torch\nn\modules\linear.py", line 103, in forward
return F.linear(input, self.weight, self.bias)
File "C:\Users\Hense.conda\envs\pt\lib\site-packages\torch\nn\functional.py", line 1848, in linear
return torch._C._nn.linear(input, weight, bias)
RuntimeError: both arguments to matmul need to be at least 1D, but they are 0D and 2D
(pt) PS X:\qisolution\qlib_1>


Set Content-Type of response

Currently when we return the health check response, we don't set the Content-Type. This makes it difficult for automated clients to know what data they're actually receiving.
We should set the Content-Type on the response

Actually not an issue here, closing


Task 12, Task 19, Task20, Task 22.

@MissReshma
Task -12
Code verified.
Task -19
Code verified.
Task -20
Code verified.
Task -22
Code verified.


detect/bytejump: Test from issue 4623

Issue: 4623
This commit uses the pcap and rules from issue 4623 to validate the fixes.
Ticket
If your pull request is related to a Suricata ticket, please provide
the full URL to the ticket here so this pull request can monitor
changes to the ticket status:
Redmine ticket: 4623

Merged in #1448, thanks!


check mpt prompting

https://github.com/lm-sys/FastChat/blob/807f15809c3290ab53cf8e94da2abf7b19b528d0/fastchat/conversation.py#L503-L516

Was wrong, fixed


sudo make install fails on Fedora 26

When I attempt to build polybar this error appears when I do a sudo make install.
/home/benjy/i3 Stuff/polybar/lib/i3ipcpp/include/i3ipc++/ipc-util.hpp:147:57: error: dynamic exception specifications are deprecated in C++11 [-Werror=deprecated]
std::shared_ptr<buf_t>   i3_recv(const int32_t  sockfd) throw (invalid_header_error, eof_error);
^~~~~
In file included from /home/benjy/i3 Stuff/polybar/lib/i3ipcpp/src/ipc.cpp:9:0:
/home/benjy/i3 Stuff/polybar/lib/i3ipcpp/include/i3ipc++/ipc-util.hpp:163:131: error: dynamic exception specifications are deprecated in C++11 [-Werror=deprecated]
std::shared_ptr<buf_t>  i3_msg(const int32_t  sockfd, const ClientMessageType  type, const std::string&  payload = std::string()) throw (invalid_header_error, eof_error);
^~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [lib/i3ipcpp/CMakeFiles/i3ipc++.dir/build.make:63: lib/i3ipcpp/CMakeFiles/i3ipc++.dir/src/ipc.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:458: lib/i3ipcpp/CMakeFiles/i3ipc++.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

I get this too when compiling with gcc. Install clang and try to use
cmake -DCMAKE_C_COMPILER="clang" -DCMAKE_CXX_COMPILER="clang++" ..

@jaagr i3ipcpp already removed those deprecated features in https://github.com/drmgc/i3ipcpp/commit/fbc7ee916516ae708f0410fe886186234235a688, can we update the submodule?

Installed polybar on FC25 and upgraded to FC26 recently - no issues here.
Sounds like you haven't called cmake before trying to install. Here are the installation instructions from the readme:
$ git clone --branch 3.0.5 --recursive https://github.com/jaagr/polybar
$ mkdir polybar/build
$ cd polybar/build
$ cmake ..
$ sudo make install

I also using Fedora 26, and make fails in another place of code.
Here is part of the error log:
[  2%] Building CXX object lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/CMakeFiles/jsoncpp_lib_static.dir/json_reader.cpp.o
/home/xxx/.bld.d/polybar/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_reader.cpp: メンバ関数 ‘bool Json::OurReader::readToken(Json::OurReader::Token&)’ 内:
/home/xxx/.bld.d/polybar/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_reader.cpp:1230:5: エラー: this statement may fall through [-Werror=implicit-fallthrough=]
     if (features_.allowSingleQuotes_) {
     ^~
/home/xxx/.bld.d/polybar/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_reader.cpp:1240:3: 備考: here
   case '/':
   ^~~~
cc1plus: all warnings being treated as errors
make[2]: *** [lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/CMakeFiles/jsoncpp_lib_static.dir/build.make:63: lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/CMakeFiles/jsoncpp_lib_static.dir/json_reader.cpp.o] エラー 1

After I rewrote lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_reader.cpp like that;
--- ./json_reader.cpp.org	2017-08-03 11:26:43.061746506 +0900
+++ ./json_reader.cpp	2017-08-03 11:25:23.468435293 +0900
@@ -1228,10 +1228,12 @@
     break;
   case '\'':
     if (features_.allowSingleQuotes_) {
-    token.type_ = tokenString;
-    ok = readStringSingleQuote();
-    break;
-    } // else continue
+		token.type_ = tokenString;
+		ok = readStringSingleQuote();
+		break;
+	} else {
+		[[fallthrough]]; // for GCC 7.x
+	}
   case '/':
     token.type_ = tokenComment;
     ok = readComment();

make went well.
But I don't know is this the right way to solve this error.
Would you give me some advice, please.
(I refer to this page)

@B-bar this is the same issue as #668, the solution is the same I mentioned before: Use clang

@patrick96 Thanks you. I'll use clang.

The GCC issue is tracked in #572

clang does it!


Failing DSC does not fail vagrant build

I've been finding that if there is an issue with the DSC, it doesn't fail the vagrant build - it just continues onto the next provisioner.
The code
        if (get_configuration_status == "Failure")
          @machine.ui.error(I18n.t("failure_status"))
          show_dsc_failure_message
        end

appears to show an error message, but doesn't actually fail the vagrant build.
I suspect it needs to throw an exception here as well.

Let me know if you need a repro.

Thanks @matt-richardson, hmmm this might be intentional behaviour. From memory, I took inspiration from the Puppet provisioner which I believe doesn't fail the build.
It should be fairly easy to adjust, or even add a flag to adjust the behaviour. Would you be interesting in submitting a PR?

I'll give it a go... My ruby is very rusty at the moment though...


Revert "changed faq"

Reverts harness/developer-hub#5932

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://65f8697f2115b98f4619fa94--harness-developer.netlify.app


我怎样控制esp32主动发送RTS帧和CTS帧呢？(How to control esp32 to actively send RTS frame and CTS frame)

我选择一块ESP32作为AP，另一块ESP32作为STA，STA连接到了AP，我是否可以利用AT+UART_CUR，另一方主动发出RTS帧和CTS帧呢？esp32是否能控制RTS帧和CTS帧的发送呢？

@ogleede emm, what does your CTS/RTS frame mean, 802.11 control frame or UART hardware flow control?
and would you mind explaining why you wanna do that.

是802.11的RTS帧，我想让STA发送RTS帧，AP回复CTS帧作为控制帧，当STA收到CTS帧后，触发一些其他逻辑。
我想的是，AP和STA每次通信前，都有RTS和CTS的交互。所以需要esp32可以主动发送这两个帧。

About sending 802.11 frame, you can try:
esp_err_t esp_wifi_80211_tx(wifi_interface_t ifx, const void *buffer, int len, bool en_sys_seq);

About receiving 802.11 frame, you can try (device should be in promiscuous mode):
esp_err_t esp_wifi_set_promiscuous_rx_cb(wifi_promiscuous_cb_t cb);

About how to add AT commands, you can refer to https://docs.espressif.com/projects/esp-at/zh_CN/latest/Compile_and_Develop/How_to_add_user-defined_AT_commands.html

@ogleede does that work?

@ustccw Thanks for your advice, I did not verify the correctness of this method later. Because I considered that even though RTS/CTS frames coule be sent, I did not find a way to identify the two frames.

just a possible help. the subtype (in 802.11 mac header)  is different for CTS (0xC0) and RTS (0xB0). you can try to parse the 802.11 frame by that way.

May I know if there is any update? If the issue still exists, please let us know.


Editor: Assigning an AngelScript disables AngelBehaviour in Properties widget

Description
Editor: Assigning an AngelScript disables AngelBehaviour in Properties widget
Prerequisites
The Editor is run and a project is opened
Steps to Reproduce

Create an object with AngelBehaviour component
Add AngelScript Asset in the Content Browser
Assign script to object

Expected behavior:
The assign happens and Properties widget shows internal properties of the script
Actual behavior:
The Script property in AngelBehaviour section becomes clean and Enabled flag disappears
The developers can select the object again to work around this issue
Reproducibility:
Issue is stable
Versions
2019.2
Additional Information
N/A

This issue becomes invalid since #315


Resolve env vars in settings.json

Feature contribution

Resolves environment variables in .vscode/settings.json of the form ${env:...}

Use cases

To be able to enter path for shared config file in vscode-eslint
Fixes https://github.com/microsoft/vscode-eslint/issues/1425
Many others requested since 2016
Fixes https://github.com/microsoft/vscode/issues/2809#issuecomment-1031011012

Implementation

In src/vs/platform/configuration/common/configuration.ts addToValueTree(), added
Borrowed logic from src/vs/workbench/services/configurationResolver/common/variableResolver.ts for resolveWithEnvironment() since importing it results in violated imports warning:
Imports violates 'vs/base/common/** or vs/base/parts/*/common/** or vs/platform/*/common/** ...
Logic kept identical except for small alterations:
replaceAsync() replaced by replaceSync() to keep addToValueTree()/ toValueTree() synchronous
evaluateSingleVariable() simplified to only cover for 'env' case but could be extended

Tests

addToValueTree: add key with value ${env:...}
{ 'a': 1, 'b': '${env:VALUE_FOR_B} }' => { 'a': 1, 'b': '2' }
addToValueTree: add key with value string containing ${env:...}
{'a': 'string1', 'b': 'string${env:VALUE_FOR_B}'} => {'a': 'string1', 'b': 'string2}

Thanks for your effort on this contribution. I am sorry that this solution is not an ideal/best because because of following reasons

This will impact our start up performance
Env variables are open ended, some times it needs user input
This breaks existing behaviour
It is not required in platform

Thanks for your effort on this contribution. I am sorry that this solution is not an ideal/best because because of following reasons

This will impact our start up performance
Env variables are open ended, some times it needs user input
This breaks existing behaviour
It is not required in platform

@sandy081: Thank you for your reply - could you please elaborate on some of the points you mentioned?

Regarding the performance, I'm sure the code could be rewritten in such a way that the effect is minimal, this was only a first draft/suggestion, for example the resolving process could be made async.
If type env variables are an issue, maybe supporting command variables (or others) could be an option?
Please elucidate on the breaking behaviour your foresee.
I'm not sure what the requirements in platform are, but for many extensions, being able to resolve variables in the project settings would be of great help.

In all of the points I'm willing to contribute given the right direction/pointers/test scenarios from your side.
Please advise.

Feature request for having this as API: https://github.com/microsoft/vscode/issues/140056

@sandy081: Thank you for your explanation. I understand now that this should be implemented not as part of the configuration service in the platform layer, but as a separate service in the VS Code workbench?
@alexr00:  Would it suffice if I added the kind of resolve functionality described to ExtHostConfigProvider.getConfiguration()?

@mjochum thank you for your interest in working on this issue, but we will not accept a PR for https://github.com/microsoft/vscode/issues/140056 at this time, as I'm not sure that it's the best approach for resolving variables.

@alexr00: No problem, thanks for getting back to me!
Please let me know whenever a feasible solution/approach for this has been decided on in the future (and if help is wanted). 👍


Output predictions are incorrect

I use quiver like this:
classList =['one','two','three']
server.launch(mmodel,classes=classList)
when testing images from the dashboard, the classes outputs are wrong. Most of the time it displays the same class predictions for images from different classes

ping @kretes do you have time to take a look at this issue with code you introduced?

@harveyslash could you describe the issue in detail?
e.g.
attach a screenshot of quiver showing prediction for some image + attach a code and an output showing what is the proper prediction for given image from your model

I was getting this too on a VGG model, the default function loading images (@kretes you added this) in that case gives something  that doesn't make much sense.  Restored the old default loading function for now.
More generally we should allow passing this preprocessing function as an argument because for example, @kretes the function you added were to fit some other model you were playing with. I'll add that.
This issue should be solved.


We're not taking into account parameters for WMS services

For example, checking:
http://sitel.jalisco.gob.mx/cgi-bin/ortoamg?FORMAT=image/png&mode=24bit
Makes the request:
 https://cartodb-wms.global.ssl.fastly.net/api/check?url=http%3A%2F%2Fsitel.jalisco.gob.mx%2Fcgi-bin%2Fortoamg%3Frequest%3DGetCapabilities%26service%3DWMS&type=wms&callback=jQuery172016956360405310988_1424712794207&_=1424713877272
SB/4577060

Wait, but this URL doesn't seem to work:
http://sitel.jalisco.gob.mx/cgi-bin/ortoamg?request=GetCapabilities&service=WMS&type=wms&FORMAT=image/png&mode=24bit
While this one does:
http://sitel.jalisco.gob.mx/cgi-bin/ortoamg?request=GetCapabilities&service=WMS&type=wms

I'm not able to add WMS now, it keeps in the following state:

I'm trying with the WMS of this issue and also with others as: http://wms.geo.admin.ch/?service=WMS&request=GetCapabilities
The check request works but the add request returns:
jQuery17209921234685461968_1425032164372({
  "error": "Missing/unknown capabilities type"
})

SB/4644228


Removing template_file

moving away from the template_file resource and going to template files + templatefile function for policies.

Marking this as a minor release since it has the potential to update existing ECR repos using a policy with a new order in the attached actions. However, the label ultimately doesn't matter since we don't have release automation on this repo yet.


Add descriptions for SEO.

@gewarren - You're tagged as author for these topics.
This is for 1657405.
Please take a look at these changes when you get a chance.

#sign-off after implementing changes.
I don't work in this repo much, so I'll follow up as necessary to get this merged.


Bump java driver and clojure versions

Also updates version to 0.4.5 for a new release.

:+1:

0.4.5 released to Clojars and promoted. Thank you!


chore: remove CircleCI config

It looks like the CircleCI CI wasn't actually ever run. Hence remove it from the repo.

I know there isn't much action here, but do we really want to remove CI on it entirely?

 Hence I though removing it makes sense.


Errors with duckdns after restart of HA

Issue:
From time to time i got these errors after a restart

Environment

Home Assistant release with the issue: 107.7
Last working Home Assistant release (if known): ?? 104.x
Operating environment (Hass.io/Docker/Windows/etc.): hassio
Integration causing this issue: Custom Header
Link to integration documentation on our website:

Problem-relevant configuration.yaml

Traceback/Error logs

Logger: frontend.js.latest.202003181
Source: components/system_log/__init__.py:209
First occurred: 10:47:27 (2 occurrences)
Last logged: 10:47:27

https://nauen.duckdns.org:8123/hacsfiles/custom-header/custom-header.js:1:7166 Uncaught TypeError: Cannot read property 'querySelector' of undefined
https://nauen.duckdns.org:8123/hacsfiles/lovelace-swipe-navigation/swipe-navigation.js:10:21 Uncaught TypeError: Cannot read property 'lovelace' of null

Additional information

Please try the latest version and report back:
https://community.home-assistant.io/t/custom-header/155399/636

I updated to 107.7 on friday. Haven't had this error again so far.
And there were a lot of restarts ;-)
I will watch this and may reopen.
Thanks

You may see the one for swipe-navigation again as it hasn't been updated for 0.1.07+ yet, but should be soon.


Typing '>' in .avdl files does not work

Description
Typing '>' does not work
To Reproduce
Steps to reproduce the behavior:

Open a .avdl file
As a field type, type 'arr' + tab
After the "array<", type ">"
Nothing happens

Expected behavior
A ">" is inserted into the editor.
Versions:

Plugin version 213.4.2

Fixed in release 213.4.3


Docker installation fails

After installing juice-shop according to the guide in Docker i got the following error:
Unhandled rejection SequelizeDatabaseError: SQLITE_ERROR
I've read the troubleshooting section:
If all startup checks show (OK) but you see SequelizeDatabaseError: SQLITE_ERROR: no such table:  errors right afterwards, please check if the file data/juiceshop.sqlite exists. If so just stop and restart your server and this suspected race condition issue shouid go away.
I'm not used to Docker so, can you help me to check it out?
BTW: The project is really interesting but I'm wasting a lot of time to make it work.

Please post installation issues not as GitHub issues but on Gitter where there's community members who might be able to help and also we can easily chat you through some fix options.
Anyway: In Docker you shouldn't miss any files, they're packaged in the image. The error message you posted doesn't allow any assistance with troubleshooting. I assume restarting the container didn't work?
And to be on the safe side: You're running the official Docker image following the instructions from our own README and not some 3rd party image or docs or even a self-built image?

I've followed this instructions:

Install Docker
Run docker pull bkimminich/juice-shop
Run docker run --rm -p 3000:3000 bkimminich/juice-shop
Browse to http://localhost:3000 (on macOS and Windows browse to http://<IP_ADDRESS>:3000 if you are using docker-machine instead of the native docker installation)

is it right?

Yes, that's right! 👍 ... What is the exact log when you start the container?


Confusing page image explanation

At the end of the page, List with update section, it claims:

In the image below, you will notice the preview version of Terminal has an update available.

and here is the image mentioned:
I can only see one version number for preview version of terminal, with no available update version displayed.

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

ID: bdcd2ee1-04fd-c7be-adee-72faa345ebb7
Version Independent ID: a44a4676-c56a-712a-eba2-11e5335c6764
Content: list Command
Content Source: hub/package-manager/winget/list.md
Product: dev-environment
Technology: package-manager
GitHub Login: @KevinLaMS
Microsoft Alias: kevinla

Yikes!  Thanks for pointing this out.  I will update right away.

An update has been pushed.  Thanks for your patience.

An update has been pushed. Thanks for your patience.


[0.9.40] Add query_account_balances runtime api for pallet assets.

During release 0.9.40, the query_account_balances runtime api for querying the assets balances were implemented.
We can have the details here:
https://github.com/paritytech/substrate/pull/13352
This is what it has to be added in the runtime (please check the assets_common):
	impl assets_common::runtime_api::FungiblesApi<
		Block,
		AccountId,
	> for Runtime
	{
		fn query_account_balances(account: AccountId) -> Result<xcm::VersionedMultiAssets, assets_common::runtime_api::FungiblesAccessError> {
			use assets_common::fungible_conversion::{convert, convert_balance};
			Ok([
				// collect pallet_balance
				{
					let balance = Balances::free_balance(account.clone());
					if balance > 0 {
						vec![convert_balance::<KsmLocation, Balance>(balance)?]
					} else {
						vec![]
					}
				},
				// collect pallet_assets (TrustBackedAssets)
				convert::<_, _, _, _, TrustBackedAssetsConvertedConcreteId>(
					Assets::account_balances(account.clone())
						.iter()
						.filter(|(_, balance)| balance > &0)
				)?,
				// collect pallet_assets (ForeignAssets)
				convert::<_, _, _, _, ForeignAssetsConvertedConcreteId>(
					ForeignAssets::account_balances(account)
						.iter()
						.filter(|(_, balance)| balance > &0)
				)?,
				// collect ... e.g. other tokens
			].concat().into())
		}
	}

CC: @stiiifff @valentinfernandez1

I like this implementation. We would have to remove this part since we don't have ForeignAssets.
                                ....
                                // collect pallet_assets (ForeignAssets)
				convert::<_, _, _, _, ForeignAssetsConvertedConcreteId>(
					ForeignAssets::account_balances(account)
						.iter()
						.filter(|(_, balance)| balance > &0)
				)?,

But everything else looks good to me. I can add it today.
In regards to your second comment, why do you consider that both convert_ref should coexist in the same file??

In regards to your second comment, why do you consider that both convert_ref should coexist in the same file??

Basically because i'm not 100% sure which changes are needed over the asset registry by using the new convert_ref function. In case we need to change something (if it's technically feasible), i would apply these new impls from assets_common and implement the runtime api and once that is ready in a different PR i would modify the old impls by the new ones. However i saw that in your draft PR #202 you have to modify the FungiblesAdapter, so probably everything should be changed in one PR.

@valentinfernandez1 Closing this as I believe this was done, right ? Re-open if not.


[Model] Add LLaVA-OneVision HF

Adds functionality requested in #592

@zsoltzsolt Thanks for the great work! I noticed the current implementation has GPU device hardcoded to 0, which prevents proper distributed evaluation with torchrun. Could this be updated to support multi device evaluation?