fix: sound plays before paying held expense report

Explanation of Change

Held expense reports need confirmation on the amount before issuing payments. The paid sound (success sound) should be played after confirming the amount, not when we press the settlement button.
Fixed Issues

$ https://github.com/Expensify/App/issues/50572
PROPOSAL: https://github.com/Expensify/App/issues/50572#issuecomment-2405181970
Tests

Submit an expense to a workspace
Put it on Hold
Press Pay
Confirm the amount in the modal
Verify success sound plays after confirming the amount

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

Offline tests

NA
QA Steps

See Tests

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

PR Author Checklist

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Screenshots/Videos

Android: Native

https://github.com/user-attachments/assets/ad6e4223-c55a-4ab3-ac9a-21736f6532a3

Android: mWeb Chrome

https://github.com/user-attachments/assets/13f03a34-e52c-4d3d-b7c3-81f7eb5af725

iOS: Native

https://github.com/user-attachments/assets/98435cb4-334d-4126-871e-fb66593fd573

iOS: mWeb Safari

https://github.com/user-attachments/assets/1f3bc2a4-4743-4855-8918-b772608ab3cf

MacOS: Chrome / Safari

https://github.com/user-attachments/assets/6d5b7c9d-5fe4-4e1d-9876-58a437cbcab3

MacOS: Desktop

https://github.com/user-attachments/assets/bdf127a8-a718-4547-82c0-8a830b787bf4

@abdulrahuman5196 Bump

Hi, checking now

Checking now again

Reviewer Checklist

[x] I have verified the author checklist is complete (all boxes are checked off).
[x] I verified the correct issue is linked in the ### Fixed Issues section above
[x] I verified testing steps are clear and they cover the changes made in this PR

[x] I verified the steps for local testing are in the Tests section
[x] I verified the steps for Staging and/or Production testing are in the QA steps section
[x] 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)
[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 checked that screenshots or videos are included for tests on all platforms
[x] I included screenshots or videos for tests on all platforms
[x] I verified tests pass on all platforms & I tested again on:

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

[x] If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
[x] I verified proper code patterns were followed (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick).
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I verified that this PR follows the guidelines as stated in the Review Guidelines
[x] I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
[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] 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 broken down into smaller components in order to separate concerns and functions

[x] If any new file was added I verified that:

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

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

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

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

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

[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
[x] I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Android: Native

https://github.com/user-attachments/assets/f7db62c7-f9a1-4bb1-8339-eaeda1b976bf

Android: mWeb Chrome

https://github.com/user-attachments/assets/091e6ba4-5748-4dc5-a1da-10079058ec09

iOS: Native

https://github.com/user-attachments/assets/599d812f-6dff-4fb0-ad9d-8cab727a81de

iOS: mWeb Safari
https://github.com/user-attachments/assets/feefd797-b8ac-42f6-860c-be7be741862a

MacOS: Chrome / Safari

https://github.com/user-attachments/assets/a716c78a-d9d3-4b57-85fc-d18ef44d29ee

MacOS: Desktop
https://github.com/user-attachments/assets/db1e24f8-5d37-4704-87c3-e9a707ad42e3

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

This PR is failing for hybrid Android app because of issue #52772


Logger dispatch for SampleBuf type

Unsure whether to implement Logger dispatch for SampleBuf. It will result in SampledSignals dependency.
https://github.com/JuliaAudio/SampledSignals.jl/blob/master/src/SampleBuf.jl
#27

What about using Requires.jl ?

That is a nice idea. It'll be helpful with almost all the dependencies. @oxinabox What is your opinion?

Requires.jl is really nice for this in theory.
However, in practice it is incredibly slow, because of how it forces the world to stop to run the compiler.
Also we don't have a great way to handle versions in it AFAIK,
so I would hold off on doing that til other things are done.


add codecov

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@2d52893). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #25   +/-   ##
=========================================
  Coverage          ?   65.73%
=========================================
  Files             ?        7
  Lines             ?      464
  Branches          ?        0
=========================================
  Hits              ?      305
  Misses            ?      138
  Partials          ?       21

Flag
Coverage Δ

unittests
65.73% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Continue to review full report at Codecov.

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


Add mounting to use sleepingUFS for DistributedCommandsStatsTest

What changes are proposed in this pull request?
Add mounting to use sleepingUFS for DistributedCommandsStatsTest
Why are the changes needed?
To mount sleepingUFS for testing when sending cancel command.

I think even after this we are not creating file to this sleep mount

Currently each test takes much longer to run than before in which it has sleeping for file operations, thus I think the mounting to sleeping ufs is correct now. @jja725

I think even after this we are not creating file to this sleep mount

Currently each test takes much longer to run than before in which it has sleeping for file operations, thus I think the mounting to sleeping ufs is correct now. @jja725

when you writing to /test it's writing to root mount, right? try to write to /mnt/test

Not sure why but this time after adding prefix "/mnt", all the tests fail locally.

I think even after this we are not creating file to this sleep mount

Currently each test takes much longer to run than before in which it has sleeping for file operations, thus I think the mounting to sleeping ufs is correct now. @jja725

when you writing to /test it's writing to root mount, right? try to write to /mnt/test

Not sure why but this time after adding prefix "/mnt", all the tests fail locally.

I think even after this we are not creating file to this sleep mount

Currently each test takes much longer to run than before in which it has sleeping for file operations, thus I think the mounting to sleeping ufs is correct now. @jja725

when you writing to /test it's writing to root mount, right? try to write to /mnt/test

Not sure why but this time after adding prefix "/mnt", all the tests fail locally. (Then I reverted the code)

Do you know what's the reason for failure? timeout?

Currently each test takes much longer to run than before in which it has sleeping for file operations, thus I think the mounting to sleeping ufs is correct now. @jja725

when you writing to /test it's writing to root mount, right? try to write to /mnt/test

Not sure why but this time after adding prefix "/mnt", all the tests fail locally. (Then I reverted the code)

Do you know what's the reason for failure? timeout?

All tests have timeout errors when adding "/mnt" prefix to the paths, might be something wrong with the path config if just adding the "/mnt" prefix.

Currently each test takes much longer to run than before in which it has sleeping for file operations, thus I think the mounting to sleeping ufs is correct now. @jja725

when you writing to /test it's writing to root mount, right? try to write to /mnt/test

Not sure why but this time after adding prefix "/mnt", all the tests fail locally. (Then I reverted the code)

Do you know what's the reason for failure? timeout?

All tests have timeout errors when adding "/mnt" prefix to the paths, might be something wrong with the path config if just adding the "/mnt" prefix.

Not sure what happens but I tested again just now and all tests passed..

@jja725 can you review and approve? thanks

alluxio-bot, merge this please


Format code to use best practices

Recommendations:

Create types for type safety.
Use prettier code formatter for readability and consistency.

Great work @Sahil-Sharma-23 !!! , somehow  I overlooked and made the actions a tsx file , and thanks for fixing the unused imports and adding formatting


Workbench error

Hello.
I´m trying to use rdf4j server and rdf4j workbench on Apache Tomcat 9 Version 9.0.39. After deploying war files in Tomcat manager and clicking on workbench i get the following error.

Do you have any idea what might be wrong ?
I downloaded latest SDK RDF4J 3.4.4 . Using java version "1.8.0_251"
Java(TM) SE Runtime Environment (build 1.8.0_251-b08). Tried to use OpenJDK 15 but that produced another error. Thanks for help or any ideas.

Hi,
perhaps it might have something to do with file (write) permissions ...
Do you use a Linux machine, or was it on Mac or Windows ?

Windows 10 machine. Upon your comment i tried to run Tomcat as admin but it did not change. Still same error. Any idea where could be permission problems on Windows ?

Strange... is it a new install ? I.e. did you have older versions installed previously, that may left some data files behind ?
This is what worked for me on a Windows 10 machine, with JDK 8 (1.8.0_201):

downloaded the Tomcat 9.0.39 64-bit zip, and unzipped it in a new directory
downloaded the latest RDF4J 3.4.4 zip,
copied the 2 war files to $TOMCAT/webapps
opened a windows console and started Tomcat (I had to set a JRE_HOME)
went to http://localhost:8080/rdf4j-workbench/ and created a new repository

By default, data and config files should be created in C:\Users\windows-user-name\AppData\Roaming\RDF4J, so you may want to check if there are two subdirectories (Workbench and a Server) on your machine.

By any chance, could there be any antivirus/firewall or replication software (network drive / OneDrive sync...) that may interfere with writing / reading files ?
(I haven't encountered such issues with RDF4J, but on my company machine I sometimes do have problems with locked files / directories that can't be written for a brief moment in other applications)

Tomcat is new instalation. With war files, i tried to undeploy them several times, because there was another error before, which was solved by changing java. Could that be problem ?
Also i deployed war files via Tomcat manager, not by copying them as you did. When i click on server, it works. Only workbench throws error.
In  C:\Users\windows-user-name\AppData\Roaming\RDF4J there indeed are both files as they should be.
Hmmm im using only windows defender. And i have dead McAffee. Its out of subscription but still is on the PC. Do you think even inactive it could cause some problems ?
Only other thing, that is different is that i run apache on port 8182.

What might help is (if you haven't tried this already)

shut down tomcat and wait until it has stopped completely
remove the C:\Users\windows-user-name\AppData\Roaming\RDF4J  directory (and subdirectories)
start tomcat again
wait a little bit (say, 30 seconds) and then open the workbench in the browser

This should re-create the directories.
If that still does not help: you've mentioned the workbench showed a different error message when using a different Java version (v15). Could you perhaps share that error message as well ? Maybe that one might be easier to fix...

Hi!
I have a similar problem. And I have found a workaround which might help locate the problem.
My configuarion is: VirtualBox v6.0.22 Guest Ubuntu 18.04LTS, 24GB Ram, 4 v-cores,  RDF4J Server 3.4.3+7ffffb7, JDK 1.8.0_211, Tomcat v9.0.1.
Problem: When I start the Worbench war from the tomcat manager page, the url for the workbench tab is "http://localhost:8081/rdf4j-workbench/repositories/NONE/repositories" and it stays there with an empty page indefinitely.
If the user replaces the url with "http://localhost:8081/rdf4j-workbench/repositories" and presses ENTER, the proble is solved, because the page is loaded and after that the url reads "http://localhost:8081/rdf4j-workbench/repositories/NONE/repositories"!!
I hope this helps

@tioannid thank you for providing the information and workaround !

Thanks for suggestions.
I tried multiple things but what helped me was to run Tomcat as service, make sure it uses default java path and it is only instance running. I think that at one point i was running 2 intsances of tomcat for some reason and that caused problems, but im not sure exactly what of those things actually helped because i restarted and redoed everything multiple times.
Again thanks for help.


Distinguish editable cells from non editable cells using GridPro.

Luis inspired me to create a recipe so I did :-)

 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.

 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.


Fixes after playing with sEEG data in 4d format

I am waiting for @dengemann feed back on bti trick then +1 for merge

It looks like you got the feedback on your unit hack :)
I'll take a look.

LGTM but Travis is unhappy
https://travis-ci.org/mne-tools/mne-python/jobs/124430932#L2653

@dengemann please take over. No time before late next week ...

@dengemann time for this one before Friday, too?

Fixed a few minor things and rebased to help get this into 0.12

Coverage decreased (-0.1%) to 90.683% when pulling 19d20d877b6e9c13afd2108dd5d7a76d37f20d7a on agramfort:fix_4d_data into 5346d694acc187c5407cd2356db31eba9721f1f7 on mne-tools:master.

Thanks Alex and Eric!


ci(build-test): Update codecov to ignore protobuf files and String() methods

Not entirely sure this will work but don't think I can tell until merged into main so merging despite lack of confidence around codecov.yml format.


Storage binding does not create a new app setting

Functions_localdev.mp4.zip
Please see attached file for the exact repro steps. On a high level, when a user creates a new function using the Blob trigger template and they decide to create a new storage account for it, the account gets created but no new application setting is registered in the local settings and function.json configuration. User is required to manually configure this.

@asavaritayal this has already been fixed
Duplicate of https://github.com/Microsoft/vscode-azurefunctions/issues/1137


Replace a lingering instance of resize_for

We cleaned up most of these in
https://github.com/bullet-train-co/bullet_train/pull/720 but the conversion script couldn't see this one.
Fixes https://github.com/bullet-train-co/bullet_train/issues/1094

Now that we've got the tests updated, I wonder if we should change the deprecation message to say use resize_display instead?

Hmmm.... I'm really not sure about that.
If people have been keeping up on versions that could make sense, but I'm concerned about what happens to people that haven't been keeping up.
Like imagine someone is on 1.2.x (or earlier) and has written their own system tests that were using the old pattern that we replaced with device_test. They'd have some instances where the existing deprecation message is telling them to do the right thing.
Maybe we should change the message to say that they could try running the helper to clean it up, and we could also include a link to a page with more details about the change and how to manually fix any lingering references?

Maybe we should change the message to say that they could try running the helper to clean it up, and we could also include a link to a page with more details about the change and how to manually fix any lingering references?

This sounds good to me!


⚠ Bofrost.at has degraded performance

In ae1cde6, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1357 ms

Resolved: Bofrost.at performance has improved in f6ee8f9 after 20 minutes.


proposal: tc plugin for netqos

Ⅰ. Describe what this PR does

Ⅱ. Does this pull request fix one issue?

Ⅲ. Describe how to verify it
Ⅳ. Special notes for reviews
V. Checklist

[ ] I have written necessary docs and comments
[ ] I have added necessary unit tests and integration tests
[ ] All checks passed in make test

origin PR：#1954

/lgtm


Authentication does not work with safari

The first authentication with<EMAIL_ADDRESS>and the password provided in the logs works just fine with Firefox, but repeating the same procedure with Safari Rauthy responds with 401
Safari
curl 'http://localhost:8080/auth/v1/oidc/authorize' \
-X 'POST' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Sec-Fetch-Site: same-origin' \
-H 'Accept-Encoding: gzip, deflate' \
-H 'Accept-Language: en-GB,en;q=0.9' \
-H 'Sec-Fetch-Mode: cors' \
-H 'Host: localhost:8080' \
-H 'Origin: http://localhost:8080' \
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Safari/605.1.15' \
-H 'Content-Length: 335' \
-H 'Connection: keep-alive' \
-H 'Sec-Fetch-Dest: empty' \
-H 'Cookie: csrf_token_806060ca5bf70dff3caa0e5c860002aade9d470a5a4dce73bcfa7ba10778f481=Ek20e24SfsNU+94EfR6byle96p8amt7/Dy6YUGjk/I0=; csrftoken=v3fKCddmvGe3m4bwSON44pZ701LjvqyM; sessionid=cxphmdo2yu8k7j1z1ky0a1ungb2fs370; i_like_gitea=658bc76971b2a4d9; lang=en-US; intercom-device-id-a5br6kfe=a0718d23-68d1-435e-a316-37f289fbe632; intercom-id-a5br6kfe=c925cd6e-0168-4998-98a2-22a5291261c8; authentik_csrf=MPwZHl79DmyDzCcUyRjUudKnufcm4AYj; ph_phc_J9BPccikTHu60117bET17Qlz3v3asOF4H6L7b9XwHrS_posthog=%7B%22distinct_id%22%3A%22018d6dbb-7538-72ec-ae61-39575bc1a2fb%22%2C%22%24device_id%22%3A%22018d6dbb-7538-72ec-ae61-39575bc1a2fb%22%2C%22%24user_state%22%3A%22anonymous%22%2C%22%24session_recording_enabled_server_side%22%3Atrue%2C%22%24console_log_recording_enabled_server_side%22%3Atrue%2C%22%24session_recording_recorder_version_server_side%22%3A%22v2%22%2C%22%24session_recording_network_payload_capture%22%3A%7B%22capturePerformance%22%3Atrue%7D%2C%22%24autocapture_disabled_server_side%22%3Afalse%2C%22%24active_feature_flags%22%3A%5B%5D%2C%22%24enabled_feature_flags%22%3A%7B%7D%2C%22%24feature_flag_payloads%22%3A%7B%7D%2C%22%24sesid%22%3A%5B1707033873079%2C%22018d7323-2bbe-7f17-94c2-6f9876d40a69%22%2C1707033701310%5D%2C%22%24client_session_props%22%3A%7B%22sessionId%22%3A%22018d7323-2bbe-7f17-94c2-6f9876d40a69%22%2C%22props%22%3A%7B%22initialPathName%22%3A%22%2Frepositories%22%2C%22referringDomain%22%3A%22%24direct%22%7D%7D%7D; user_sess=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MDcxNDU4MDQsImlhdCI6MTcwNjk3MzAwNCwic3ViIjoic3Vra29sYSIsInR5cGUiOiJzZXNzIn0.FffCpBdwElXT9r3aDkw1wWE-NZSmuIU55PV4x-JjNvk; ph_phc_hnhlqe6D2Q4IcQNrFItaqdXJAxQ8RcHkPAFAp74pubv_posthog=%7B%22distinct_id%22%3A%22305923a9-d6a0-4951-9cae-4ce5d7e2d896%22%2C%22%24device_id%22%3A%22018c2ad4-2ce8-768e-9952-b8e7bbaf15ad%22%2C%22%24user_state%22%3A%22identified%22%2C%22%24sesid%22%3A%5B1701526517289%2C%22018c2ad4-2cea-7af5-a083-37f0901f6bb9%22%2C1701525597418%5D%2C%22%24client_session_props%22%3A%7B%22sessionId%22%3A%22018c2ad4-2cea-7af5-a083-37f0901f6bb9%22%2C%22props%22%3A%7B%22initialPathName%22%3A%22%2F%22%2C%22referringDomain%22%3A%22%24direct%22%7D%7D%2C%22%24session_recording_enabled_server_side%22%3Afalse%2C%22%24autocapture_disabled_server_side%22%3Afalse%2C%22%24active_feature_flags%22%3A%5B%22survey-targeting-product-fit%22%5D%2C%22%24enabled_feature_flags%22%3A%7B%22survey-targeting-welcome-to-netdata%22%3Afalse%2C%22survey-targeting-product-fit%22%3Atrue%2C%22user-age-less-than-7d%22%3Afalse%7D%2C%22%24feature_flag_payloads%22%3A%7B%7D%2C%22event_source%22%3A%22cloud%22%2C%22posthog_first_seen_at%22%3A%222023-12-02T13%3A59%3A57.909Z%22%2C%22posthog_first_distinct_id%22%3A%22018c2ad4-2ce8-768e-9952-b8e7bbaf15ad%22%2C%22%24user_id%22%3A%22305923a9-d6a0-4951-9cae-4ce5d7e2d896%22%2C%22%24stored_person_properties%22%3A%7B%22email%22%3A%22unknown%20email%22%2C%22name%22%3A%22%22%2C%22netdata_cloud_account_created_at%22%3A%22%22%2C%22netdata_cloud_account_created_days_ago%22%3Anull%2C%22spacesCount%22%3A1%2C%22maxNodesCount%22%3A0%7D%2C%22netdata_cloud_account_created_days_ago%22%3Anull%2C%22netdata_registry_person_guid%22%3A%22c76b4466-93a9-4716-bc0e-f23b6f0331e1%22%2C%22netdata_registry_machine_guid%22%3A%22b4ba753e-911a-11ee-9501-225b52356492%22%2C%22netdata_cloud_account_created_at%22%3A%22%22%2C%22netdata_cloud_account_email%22%3A%22unknown%20email%22%2C%22netdata_cloud_account_id%22%3A%22305923a9-d6a0-4951-9cae-4ce5d7e2d896%22%2C%22netdata_cloud_signed_in_at%22%3A%222023-12-02T13%3A59%3A57.909Z%22%2C%22%24flag_call_reported%22%3A%7B%22user-age-less-than-7d%22%3A%5B%22false%22%5D%7D%7D; _ga_J69Z2JCTFB=GS1.1.17015255<IP_ADDRESS>15264<IP_ADDRESS>; __hstc=181257784.ceb57c61916c5f08fbfb207aa1bc00bf.1701525597628.1701525597628.1701525597628.1; _ga=GA1.1.1681891015.1701525597; hubspotutk=ceb57c61916c5f08fbfb207aa1bc00bf' \
-H 'csrf-token: BTiODPFRFTklqCUXdYJB8FSl7q4Q5uim' \
--data-binary '{"email":"admin@localhost.de","client_id":"rauthy","redirect_uri":"http://localhost:8080/auth/v1/oidc/callback","state":"account","code_challenge":"tA6X0WQ9PzRqwic2tdiES2uADnaLv7mzDpnUCwg7R3o","code_challenge_method":"S256","nonce":"2PjN5Y2HqwW7viDvEooYpg6j","scopes":["openid","profile","email"],"password":"3I930jYECCahJhzoD0xABTEI"}'

Firefox
curl 'http://localhost:8080/auth/v1/oidc/authorize' -X POST -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:124.0) Gecko/20100101 Firefox/124.0' -H 'Accept: application/json' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate, br' -H 'Content-Type: application/json' -H 'csrf-token: gCZkRkpuXQyzs9q8PnSHFWq891J6IbUS' -H 'Origin: http://localhost:8080' -H 'Connection: keep-alive' -H 'Cookie: rauthy-session=h42qJL3pNHTCoKpc6X7HDgRYbOiw43Cd; intercom-id-a5br6kfe=35a1417c-19b8-4387-9ccb-7e43654bee80; intercom-device-id-a5br6kfe=ca7fa307-bde6-4f50-9d76-2bb081a12728' -H 'Sec-Fetch-Dest: empty' -H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: same-origin' --data-raw '{"email":"admin@localhost.de","client_id":"rauthy","redirect_uri":"http://localhost:8080/auth/v1/oidc/callback","state":"admin","code_challenge":"sgkSXnbFc9WLME7X_AlO4_YNyaB_hEP-zeAhaStc1WE","code_challenge_method":"S256","nonce":"jxoTUdTkfOxIi5rtdFS3ZeuP","scopes":["openid","profile","email"],"password":"3I930jYECCahJhzoD0xABTEI"}'

Logs do not provide additional information on why the check fails on the server side

I need more information.
At which point do you get a 401? After entering the username, password, pressing login button, ...?
If you are using docker, you can appen -e LOG_LEVEL=debug to get debug logging.
Unfortunately, I don't have any access to a Safari browser, but I know a few people that are having no problems at all since a very long time with Rauthy. Be it passwords or passkeys.
I just remember one thing with Safari being a bit buggy and that was something with Passkeys and the Apple Keyring (or however it is called).
Just as an idea... You are using localhost and plain HTTP. Usually browser treat this context as being secure, because its localhost, but maybe Safari doesn't?

Hi,
this is the only thing I get with from the logs on debug level and the trace level does not provide additional info
2024-04-22T15:57:49.761640Z  INFO rauthy_handlers::middleware::logging: <IP_ADDRESS> HTTP/1.1 POST /auth/v1/oidc/authorize "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Safari/605.1.15"
2024-04-22T15:57:51.981371Z DEBUG sqlx::query: summary="SELECT 1" db.statement="" rows_affected=1 rows_returned=1 elapsed=150.959µs elapsed_secs=0.000150959

The passkey option I cannot try, since I guess I need to be able to login first to the account(?), but even with the default user I can't perform the first login

What is inside the response body from the backend? Because Rauthy almost always sends a readable error response object as well. With one field for programmatic debugging and a message field with written information about what went wrong.
But since this is the only endpoint that does always response with the exact same error message to prevent and information gathering and user enumeration prevention, you just receive Invalid user credentials, right?

{
    "timestamp":<PHONE_NUMBER>,
    "error": "Unauthorized",
    "message": "Unauthorized Session"
}
``

You have many cookies being sent to localhost in your request above. Could you please test again in a private window, or clean them up, to make sure there is no overlap / overwrite from something else?
When you do a POST to the /authorize, Rauthy expects the session cookie and your session must be either in init state (create to prevent login CSRF, but not fully logged in yet) or fully authenticated. If this is not the case, then it probably was not able to find the session cookie.
If the cleanup does not help, I could build a new nightly image with a few trace logs for debugging this further.

I am building a new nightly version right now. You can use that later for testing if you like. With this you will be able to set an env var to disable secure cookies.

You can test with:
docker run --rm -p 8080:8080 -e DANGER_COOKIE_INSECURE=true ghcr.io/sebadob/rauthy:0.22.2-20240424-1-lite

...which should fix your issue. But please only use it for testing and never in prod.

You can test with:
docker run --rm -p 8080:8080 -e DANGER_COOKIE_INSECURE=true ghcr.io/sebadob/rauthy:0.22.2-20240424-1-lite

...which should fix your issue. But please only use it for testing and never in prod.

Thanks. I can confirm that this works. Safari seems to have these weird problems in relation to other browsers, just took a while for me to remember that and try with an another browser

thanks for the feedback


Coordination

@Br3nda,
As far as I'm aware the legacy project I've been maintaining is the only user of this gem. As the gem maintainer and main user, I would appreciate some coordination before turning on outside services to change the codebase.
Can you give me a rundown of what you are up to, please?

I've updated the description to make clear this software is no longer maintained.

I've also turned off hound, etc.

Kia ora Walter.
The code has several vulns to the point that github is sending me notifications about it. I started to chip away at the vulns in kete, and yesterday looked at the gems.
There have been no commits for nearly 6 years, and I understood it to be abandoned by maintainers.
If you need this to not be modified I can leave it alone. Git hub does let you archive a repos if it no longer active but want to maintain a record.


Update avatar decorations

[ ] https://github.com/discord/discord-api-docs/pull/6464

let's merge this since it's breaking actual stuff


Do not throw NotSupportedException in DuckDBCommand.Prepare

Closes #118

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 86.447%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
765

Relevant Lines:
881

💛  - Coveralls


Take benefit of SQLite optimization when statement is cached vs when its used once or few time and finalized quickly

Allow passing SQLITE_PREPARE_PERSISTENT to prepared statement when it is prepared with intention to be cached for multiple use.
The option avoid using lookaside memory which is use for shorter lived statement. lookaside memory allow faster prepare for single use query.
Also, note that for single-use statements, there is no guarantee of utilizing the lookaside memory pool if their state does not fit into a slot in the pool or if the pool has no empty slots. In such cases, it's allocated on the heap. By default, the lookaside memory is set to 48KB (40 slots of 1200 bytes), which is generally exhausted by cached statements. Allowing lookaside memory to be used by single-use statements can make single-use statement preparation, stepping, and finalization very fast and may not require any malloc at all.
With this change, we can prevent caching unnecessary SQLite statements and utilize single-use statements where appropriate, as they are faster to prepare and finalize compared to those allocated on the heap. The persistent flag will signal the query planner to allocate the statement on the heap when we intent to cache it.
Note: SQLite internally runs SQLite statements using either the execute or statement interface, which are also allocated on the heap. This occurs as the application has already exhausted 40 slots in the lookaside memory.
All of the following now use SQLITE_PREPARE_PERSISTENT option when preparing sqlite statement.

SqliteStatementCache
ECSqlStatementCache
ConcurrentQuery
InstanceQuery
TypeScript Sqlite/ECSql Statement caches

itwinjs-core: https://github.com/iTwin/itwinjs-core/pull/6865

/azp run imodel-native

/azp run imodel-native

faster to prepare and finalize

Did you measure actual meaningful performance improvements when querying an iModel?


DMP-4257: New associated audio files screen for unmarking for deletion/unhiding

Jira link
DMP-4257
admin/audio-file/11 to test unhide with no associated audio

We should only display associated medias which are hidden. is_hidden is available on the associated medias response.


In third-party specs remove "clojure.core"

code input: (load-file "src/sample_test_files/third_party_spec.clj") (sample-test-files.third-party-spec/my-test-fn #(+ %) #(+ %))

modified error:

In (my-test-fn #(...) #(...)) the first argument, which is an anonymous function, fails a requirement: clojure.core/int?

Should be just int?

This now corresponds to https://github.com/Clojure-Intro-Course/babel/issues/46 in the migration repository.


Uncaught TypeError: $(...).comments is not a function

I am getting while initialise the list of commect, some can help me. it little bit urgent.

please check DIV id in your HTML page.


Change Query dialog  for radio from centre

The query dialog specifies “Radius from earth.”  If I select a group of stars, possibly using advanced query, that DOES NOT INCLUDE SOL, what happens?    Should that say “Radius from center”?

Don't knownifbyou took or wlsaw  my commentnon Rick's suggestion (on Slack)
it's imoortant.
posting on Gihub
Sent from my Verizon, Samsung Galaxy smartphone
Get Outlook for Androidhttps://aka.ms/ghei36

From: LJ Ramones<EMAIL_ADDRESS>Sent: Monday, January 11, 2021 4:53:02 PM
To: ljramones/trips<EMAIL_ADDRESS>Cc: Subscribed<EMAIL_ADDRESS>Subject: [ljramones/trips] Change Query dialog for radio from centre (#170)
The query dialog specifies “Radius from earth.” If I select a group of stars, possibly using advanced query, that DOES NOT INCLUDE SOL, what happens? Should that say “Radius from center”?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/ljramones/trips/issues/170, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQPXLNSAGEO5OXIAMEHJABTSZNXL5ANCNFSM4V6HMG5Q.

Don't knownifbyou took or wlsaw  my commentnon Rick's suggestion (on Slack)
it's imoortant.
posting on Gihub
Sent from my Verizon, Samsung Galaxy smartphone
Get Outlook for Androidhttps://aka.ms/ghei36

From: LJ Ramones<EMAIL_ADDRESS>Sent: Monday, January 11, 2021 4:53:02 PM
To: ljramones/trips<EMAIL_ADDRESS>Cc: Subscribed<EMAIL_ADDRESS>Subject: [ljramones/trips] Change Query dialog for radio from centre (#170)
The query dialog specifies “Radius from earth.” If I select a group of stars, possibly using advanced query, that DOES NOT INCLUDE SOL, what happens? Should that say “Radius from center”?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/ljramones/trips/issues/170, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQPXLNSAGEO5OXIAMEHJABTSZNXL5ANCNFSM4V6HMG5Q.

I made a comment on this in the slack feed that actually asked for this to be handled in a way that took other factors into account. Can't tell from description if this was followed, or just the comment Rick had here on Github.
I reprint here:
Chuck Gannon  10:36 PM
I am liking where all of this is going. My one caveat is, having used and tested a LOT of astrographic programs, I feel that #8 wants an option for either slider or precise entry.
And if I had to choose one over the other, it would be the precise entry.
Here's why:
Searching or viewing a given radius is usually not, in my experience, initiated as a "general curiosity/browsing" exercise. It is usually driven by a need/desire to explore precise data points.
as in:
If star x sends out a radio signal, how far will it have travelled in 67 years?
Same with how far an STL ship could travel/flee in that time.
Also, how many stars with properties x and y but NOT z are within a 45 LY radius of star/object/position x?
And if resource nodes (e.g. green worlds) are how routine travel routes are determined, there is usually an iterative process that considers:
a) how many such systems are within radius z
b) what routes exist between them?
Until you do that kind of analysis, you cant't see where the hubs are, particularly when you stat cranking in the jump/shift/fuel ranges of the ships of that polity.
BTW, I have had frequent recourse to ALL of these analyses using CHV (often very cumbersome) in creating/discovering the underlying data drivers of the Caineverse's differing polities. And this is really not just author judgment but simply being able to see the way the stars are arranged. The oft-referenced Green Mains of the CTR arise directly from this kind of multivariate analysis.
in all cases PRECISE distance values are key. So having to fiddle with a slider to get an exact value? Maybe not worth the "intuitive" slider.
LJ Ramones  10:47 PM
well, between the two of you, pick a modality of selection. Writing code does take time and I would rather do it once than write code, rewrite, then rewrite again.
rboatright  12:23 AM
Fair enough.  Here's my take.  I like the slider, it's easy to mess with if you're playing around.  I get Chuck's point about precision.  Therefore....   as much as I know this is a pain, can you do both?
12:24
Min Dist [........]  SLIDE------x------x------x----ER  Max Dist [.......]
LJ Ramones  8:54 AM
Sure
8:56
I’ll tie the range slider event and text events together so when you enter values the slider moves and when you move the slider the values appear
rboatright  10:13 AM
that would be perfect
Chuck Gannon  10:22 AM
See. And I woukdn't even know to suggest a thing.

I made a comment on this in the slack feed that actually asked for this to be handled in a way that took other factors into account. Can't tell from description if this was followed, or just the comment Rick had here on Github.
I reprint here:
Chuck Gannon  10:36 PM
I am liking where all of this is going. My one caveat is, having used and tested a LOT of astrographic programs, I feel that #8 wants an option for either slider or precise entry.
And if I had to choose one over the other, it would be the precise entry.
Here's why:
Searching or viewing a given radius is usually not, in my experience, initiated as a "general curiosity/browsing" exercise. It is usually driven by a need/desire to explore precise data points.
as in:
If star x sends out a radio signal, how far will it have travelled in 67 years?
Same with how far an STL ship could travel/flee in that time.
Also, how many stars with properties x and y but NOT z are within a 45 LY radius of star/object/position x?
And if resource nodes (e.g. green worlds) are how routine travel routes are determined, there is usually an iterative process that considers:
a) how many such systems are within radius z
b) what routes exist between them?
Until you do that kind of analysis, you cant't see where the hubs are, particularly when you stat cranking in the jump/shift/fuel ranges of the ships of that polity.
BTW, I have had frequent recourse to ALL of these analyses using CHV (often very cumbersome) in creating/discovering the underlying data drivers of the Caineverse's differing polities. And this is really not just author judgment but simply being able to see the way the stars are arranged. The oft-referenced Green Mains of the CTR arise directly from this kind of multivariate analysis.
in all cases PRECISE distance values are key. So having to fiddle with a slider to get an exact value? Maybe not worth the "intuitive" slider.
LJ Ramones  10:47 PM
well, between the two of you, pick a modality of selection. Writing code does take time and I would rather do it once than write code, rewrite, then rewrite again.
rboatright  12:23 AM
Fair enough.  Here's my take.  I like the slider, it's easy to mess with if you're playing around.  I get Chuck's point about precision.  Therefore....   as much as I know this is a pain, can you do both?
12:24
Min Dist [........]  SLIDE------x------x------x----ER  Max Dist [.......]
LJ Ramones  8:54 AM
Sure
8:56
I’ll tie the range slider event and text events together so when you enter values the slider moves and when you move the slider the values appear
rboatright  10:13 AM
that would be perfect
Chuck Gannon  10:22 AM
See. And I woukdn't even know to suggest a thing.

Chuck, you comments belong on the other one.  This is just relabelling the distance form centre

Chuck, you comments belong on the other one.  This is just relabelling the distance form centre


Checking PR

Not sure why i'm a few commits ahead when there's no file changes, just checking file diff

Codecov Report
Base: 45.17% // Head: 45.17% // No change to project coverage :thumbsup:

Coverage data is based on head (e7d03ff) compared to base (79aad8a).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff            @@
##             master      #90   +/-   ##
=========================================
  Coverage     45.17%   45.17%
  Complexity      570      570
=========================================
  Files           145      145
  Lines          3059     3059
  Branches        396      396
=========================================
  Hits           1382     1382
  Misses         1537     1537
  Partials        140      140

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


chore: Filpkart data scrap project

Related Issue
close issue-> #2021
Description

Screenshots

@priyankarpal have a look!!!

this branch has a conflicts error. Please resolve it

this branch has a conflicts error. Please resolve it

solved by me

@priyankarpal please add level label and GGSoC'23 label

@priyankarpal please add GGSoC'23 label and level label so that I get points for this pr.

We are not providing any labels for project additions as they are not associated with solving any issues.( according to gssoc23 rules)


fix segmentation fault issue when serializing and deserializing a public key

Signed-off-by: Huang, Xiaojun<EMAIL_ADDRESS>

Hi @xhuan28
Thank you for the PR. The PR will be merged when all tests passed. The cpplint check didn't passed. It would be great if you can fix it.

Move to #52


retry loadsegment with all locations

Currently, when the most empty location failed to load segment, it won't try other locations.
The better way is to try all locations ordered from empty to full, if all locations failed, then throw exception

👍

How it is better? In what cases the most empty location may fail to load a segment, while less empty locations succeed?

the most empty location may fail because of IO failure, most like in two cases:

druid don't have the write access to this disk, most likely the administrator doesn't config it correctly
disk failure, druid can't read/write to this disk anymore.

If we don't retry with other locations, the next time druid call loadSegment, it still use the failed location(it is still the most empty one because no new segment can be added to this location), and it won't success unless administrator remove this location and restart historical.

@kaijianding thanks, makes sense for me now. I also think it's useful to put your explanation into source code.

@kaijianding could you please address comments?

Addressed, @leventov

Addressed again, and refactor for easier understanding, @leventov

Please make sure Travis CI doesn't fail.
Also in future don't rebase commits when addressing comments, add comments on top of existing ones, in order to ease diff review.

Travis CI succeed. It failed because of checkstyle fail: "SegmentLoaderLocalCacheManager.java:38:8: Unused import - java.util.Iterator. [UnusedImports]"
@leventov


How to disable past dates

Hi, If we want to disable past days of calendar, how we can enable this?

you can do it in this way
$('.calendar').pignoseCalendar({
multiple: true,
minDate: moment().format('YYYY-MM-DD')
});

Thank you very much!


MDL Two Drawers (Left & Right) Layout

I'm working on a project and really needed a layout with two drawers (left as usual for Menu; right for showing Notifications).
Since this option was not available with the default MDL Layouts components I decided to create one by my self.
Here is the result on jsFiddle: https://jsfiddle.net/VamosErik88/HTHnW/651/
Looking for you thoughts and your advice for further improvement.

This is against the Material Design spec which is why it won't be included in core.

To Use this code you have to insert jquery path in your html file like this [http://code.jquery.com/jquery-2.2.1.min.js] (use updated path)..

Yes man, jQuery is required for the script to work ;)

its work perfectly..Thank you For making this.. :)

@Garbee , there's an example of this use in Rich Media Gallery filter option, that is a Google Material Design Showcase.
http://richmediagallery.com/tools/template-database
Is it against MD spec, also?

From https://www.google.com/design/spec/layout/structure.html#structure-side-nav

Side navs can be positioned on the left or right side of the screen.
The content appearing in the left nav is ideally navigation- or identity-based. Right nav content should be secondary to the main content on a page.

Thanks @tleunen , and there is any docs on how to do that in mdl?

@heukirne You can try with the code I provided on the fiddle link.
Nevertheless, I made also some improvements to all the code to keep it up-to-date with the latest MDL updates.
If you want I can pass the updated code to you and everyone interested.

@VamosErik88 , I'll be glad to have the updated code.
I already saw your fiddle, but I'm wondering if there's other way to do that only with MDL, without jQuery.
But in Rich Media Gallery they used polymer elements, so I doubt MDL can handle rigth side nav, as material design spec.

@heukirne  I'll post you an updated fiddle link ASAP ;)
As for integrating it in MDL (without requiring jQuery), we may give a look at it together with the MDL guys here(@Garbee) , if they are interested in including it in the main branch. After all it requires just a few lines of css and script.
Let me know ;)

Thanks, @VamosErik88
An alternative: https://github.com/athamid/google-material-design-lite-menu-rtl

@heukirne Here's the link!
https://jsfiddle.net/VamosErik88/ch8bed9q/

It won't be done for 1.x. But in 2.x with abstracting the drawer into its own component this will be possible.
Thanks for pointing out the specification update. Re-opening for 2.x.

Great news, @Garbee
Thanks for the code @VamosErik88

Great to hear @Garbee ! Let me know if I can be of help ;)
Glad to help @heukirne .

Dear @VamosErik88
Can you give a full text of html code?
Thanks

@Hamed-Zamanyad what do you exactly mean with "full text" ? You can find everything you need to start in the fiddle (https://jsfiddle.net/VamosErik88/ch8bed9q/). Do you need something in particular?
Glad to help you ;)

@VamosErik88 becouse I am new in html, I can't write full of html code but it solved with copy of source code from http://view-source:http://fiddle.jshell.net/VamosErik88/HTHnW/651/show/
Thanks for your attention

@Hamed-Zamanyad You're welcome man. You may also copy it straightly form the fiddle as you have: HTML at top-left; CSS at top-right; JS at bottom left. ;)
I'll be happy to help to for anything going forward.

@VamosErik88 Thank you
I want to change main drawer to right side of page because my web application language is
Persian.
Do you have any suggestion?
I can't make a link list in right drawer , like left drawer

@Hamed-Zamanyad Alright now I got it.
My solution is more appropriate for having two drawers work at the same time. Using one for the main navigation and the other for listing other content (notifications in my specific case).
In your case I think it would be more simple to use the alternative suggested by @heukirne ( link here: https://github.com/athamid/google-material-design-lite-menu-rtl). It simply translates the main navigation drawer from left to right and is specifically designed for RTL languages. So I think it is definitely what you're looking for.
Let me know how it goes ;)

@VamosErik88 Thanks again.
Would you help me how could I use those files. I don't know any thing about that.

Well, I didn't use that specific solution. However I suppose you have to download the zip of the repository and unpack it. There you'll find an *.html file of example which you can use as base to start working and adding your own stuff.

@VamosErik88  Fortunately this link  ( link here: https://github.com/athamid/google-material-design-lite-menu-rtl) files writer is my citizen and he try to help me.
Thank you

This issue is superseded by #4476.

Thank you guys! Respect your work a lot, thank you @Garbee for such a wonderful work. And thank you @VamosErik88 for bringing such a useful feature. I've heard 2017-2018 would bring something new from Google, can't wait to see what direction things will take, but for now MDL is... above (and beyond:)


Batch size is determined by the pipeline's input

As a Pipeline Builder I want that the HKube will enable to define in runtime the number of batch algorithm instances based on the pipeline's input. (e.g. number of files in the pipeline's input).

TID-12

the test can be found in
https://github.com/kube-HPC/hkube/issues/34


Feat/test case datapipeline

Description

Related Issues

Checklist

[ ] Is this code covered by new or existing unit tests or integration tests?
[ ] Did you run make unit_testing and make integration-testing successfully?
[ ] Do new classes, functions, methods and parameters all have docstrings?
[ ] Were existing docstrings updated, if necessary?
[ ] Was external documentation updated, if necessary?

Additional Notes or Comments

closing since added it in https://github.com/superduper-io/superduper/pull/2279


Minor annotation tool fixes

Update the help dialog's compatibility info, particularly to mention the point positioning issue with Chromium-based browsers and Safari (detailed in issue #319).
Make the size setting fields bigger on Firefox. The numbers were getting cut off. As the comment explains, the code can be better, but it'll work for now.
Update the jscolor plugin so that it no longer relies on image resources (which were failing to load with DEBUG = False); fixes issue #200.

The old jscolor version loaded image resources by assuming they were in the same directory as jscolor.js; specifically, it would search the page for a jscolor.js script element, and parse its src attribute with regex to get the directory path. But since we have something in Django that turns it into a jscolor.<hex hash>.js script element, jscolor wasn't able to find the expected element. The new jscolor version does not come with any image files, and just draws the color picker gradient on the fly with an HTML canvas.
I also ended up applying a hack (custom code change without a proper package-fork) to the new jscolor, as detailed in the 5th commit. I went ahead with that partially because we may want to replace jscolor in the near future anyway (as I'll talk about shortly in issue #184).

I've got a bunch of things scheduled, but could meet at 12:30?
Does that work?
David
On Mon, May 25, 2020 at 12:37 PM StephenChan<EMAIL_ADDRESS>wrote:

Merged #321
https://urldefense.com/v3/__https://github.com/beijbom/coralnet/pull/321__;!!Mih3wA!X68gSjC78wD8gBruzSuuL8n_yCibjkjVB6nvQqm4dzAmwI6A0Pw41QQMe8wZ5fNr$
into master.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://urldefense.com/v3/__https://github.com/beijbom/coralnet/pull/321*event-3371125298__;Iw!!Mih3wA!X68gSjC78wD8gBruzSuuL8n_yCibjkjVB6nvQqm4dzAmwI6A0Pw41QQMeydxAksA$,
or unsubscribe
https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ABKA5AIMJFON5SS53K3FUS3RTLCJJANCNFSM4NICUYNA__;!!Mih3wA!X68gSjC78wD8gBruzSuuL8n_yCibjkjVB6nvQqm4dzAmwI6A0Pw41QQMe3A_0OhU$
.

@kriegman We didn't call for a meeting.


Singleton?

Just wondering why this isn't a singleton (with Swift)? I know they are frowned upon most of the time. It just seems easier than to initiate a bunch of times

My goal when writing the Swift branch was not to remake and rethink the library using Swift paradigms, but rather to translate the Objective-C code to Swift.

Most libraries are going away from a singleton and instead support a 'defaultInstance()' approach.  Best of both worlds (and makes testing easier)


eve/flow: add vlan and double-tagged vlan test - v2

Test for VLAN part of https://github.com/OISF/suricata/pull/3645
Supersedes https://github.com/OISF/suricata-verify/pull/14

Merged through #48, thanks Mark!


fix: improve isolate error handling

Changes

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#1451  👈 (View in Graphite)
#1450
#1449
main

This stack of pull requests is managed by Graphite. Learn more about stacking.


Issue when camera is positioned at { x:0, y:0, z:0 }

Hello and thanks for the great particle engine. For some reason when I position my camera at { x:0, y:0, z:0 } the particles are not rendered. This only seems to happen if I'm using the latest version of the particle engine. I have tested with THREE.js r70 and r71.

What position are you emitters set to?

It varies. After updating to the new release my particles weren't being rendered. So I stated playing around with the examples you provided. Your basic example has the camera set to camera.position.z = 50 and the emitter at { 0, 0, 0 }. That works fine but if you switch it around and put the emitter at { 0, 0, 50 } and the camera at { 0, 0, 0 } that's when i'm seeing the issue.

Ah, found the issue, thanks for letting me know about it - I doubt I would have come across it myself! I've just pushed v0.8.2 that should fix it for you.


[BUG] Unable to run Airtable example

Describe the bug
Unable to run the Airtable example from the repo. The UI is non-responsive.
Console is returning uncaught referenceError: process is not defined.
To Reproduce
Steps to reproduce the behavior:

cd to examples/dataProvider/airtable
install dependencies
fix category in post list component (needs a fallback check)
yarn start

Expected behavior
User should be able to interact with the demo (edit/create post)
Screenshots

Desktop (please complete the following information):

OS: MacOS
Browser Brave
Version 1.33.106
Used dataProvider Airtable

Hey @samantha-wong ,
We've fixed Airtable Example! Thank you!


Most effecient way to check if record exists, and if it does return the key/Id for use in the next statement?

Hello all,
I was itching to learn Go so I decided a good way would be to remake a bot I originally made in Python, in Go. I had not used an ORM in my prior project, as I originally intended to simply use a small local json based DB, which then turned into adding MySQL, and then MSSQL, so on and so forth. I had written everything by hand, so the files became pretty huge. This time around I am trying to do things as efficiently as I possibly can and so far xorm has been great for that!
I am wondering if anyone might be able to let me know if there is a better way to go about doing this, which would end up making less calls to the DB? Here is what I was attemping to do:
After insert I use the key/Id of the inserted user as the key of the package being added and tied to the user.
This is how I was testing it, which works just fine, because doing the insert allows me to use user.Id and apply it to packages.Id
	_, err = db.Table(VerifiedUserDAO.TableName()).InsertOne(user)
	LogFatalf("Unable to insert user", err)

	_, err = db.Table(UserPackagesDAO.TableName()).InsertOne(func() *UserPackages { packages.Id = user.Id; return packages }())
	LogFatalf("Unable to insert packages", err)

	return fmt.Sprintf("User successfully added: UserId: %v:%v Packages: %v  PackageId: %v ", user.Username, user.Id, packages.Packages, packages.Id)

Just before the section above I wanted to add this below:
	exists, err := db.Table(VerifiedUserDAO.TableName()).Where("username = ?", user.Username).Exist()
	LogFatalf("Database connection failed to return initial username check ", err)
	if exists {
		_, err = db.Table(UserPackagesDAO.TableName()).InsertOne(func() *UserPackages { packages.Id = user.Id; return packages }())
		return fmt.Sprintf("Package has been successfully applied to %s ", user.Username)
	}
    ...

This above is the way I was hoping to go about it, which seems as though it does not return the Id of the checked entry, which I can definitely understand, that is not an issue. I am merely wondering if anyone might be able to point me in the right direction in trying to find a way to get the Id while checking if the table exists with as little code/calls to the DB as I can.
Pretty much anything would probably end up being cleaner and more concise than how I ended up doing it in Python, which was this below:
I definitely appreciate any assistance!
Thanks,
-MH

def add_invoice(username, invoice, package, purdate, email=''):
    sql = "SELECT * FROM `packages` WHERE `invoice`=%s"
    args = invoice
    invoiceresult = dosql(sql, args, False, 'single')
    if invoiceresult is None:
        sql = "SELECT * FROM `validated_users` WHERE `username`=%s"
        args = username
        nameresult = dosql(sql, args, False, 'single')
        if nameresult is not None:
            if nameresult['email'] is None:
                sql = "UPDATE `validated_users` SET `email` = %s WHERE `username` = %s"
                args = email, username
                insertresult = dosql(sql, args, True)

            sql = "INSERT INTO `packages` (`user_id`, `username`, `invoice`, `package`, `purdate`, `verifydate`) VALUES (%s, %s, %s, %s, %s, %s)"
            args = nameresult['user_id'], username, invoice, package, purdate, str(datetime.now().strftime("%Y-%m-%d"))
            result = dosql(sql, args, True)
            return result

        if nameresult is None:
            sql = "INSERT INTO `validated_users` (`username`, `email`) VALUES (%s, %s)"
            args = username, email
            insertresult = dosql(sql, args, True, 'id')

            sql = "INSERT INTO `packages` (`user_id`, `username`, `invoice`, `package`, `purdate`, `verifydate`) VALUES (%s, %s, %s, %s, %s, %s)"
            args = insertresult, username, invoice, package, purdate, str(datetime.now().strftime("%Y-%m-%d"))
            result = dosql(sql, args, True)
            return result
    else:
        return 'Invoice number already registered. Please contact support.'

func addInvoice(username, invoice string, package, purdate, email string) error {
     var invoice = make(map[string]string)
     has, err := orm.Where("invoice=?", invoice).Table("invoice").Get(&invoice)
     if err != nil {
          return err
     }
    if !has {
         var user = make(map[string]string)
         has, err = orm.Where("username=?", username).Table("validated_users").Get(&user)
          if err != nil {
            return err
          }
          if has {
                if _, ok := user["email"]; !ok {
                       _, err = orm.Exec("UPDATE `validated_users` SET `email` =? WHERE `username` =?", email, username)
                       if err != nil {
                           return err
                       }
                }
                _, err = orm.Exec("INSERT INTO `packages` (`user_id`, `username`, `invoice`, `package`, `purdate`, `verifydate`) VALUES (?, ?, ?, ?, ?, ?)", nameresult['user_id'], username, invoice, package, purdate, str(datetime.now().strftime("%Y-%m-%d"))
                return err
          } else {
                _, err = orm.Exec("INSERT INTO `validated_users` (`username`, `email`) VALUES (%s, %s)", username, email)
                if err != nil {
                           return err
                       }
                _, err = orm.Exec("INSERT INTO `packages` (`user_id`, `username`, `invoice`, `package`, `purdate`, `verifydate`) VALUES (?, ?, ?, ?, ?, ?)", insertresult, username, invoice, package, purdate, str(datetime.now().strftime("%Y-%m-%d"))
                return err
          }
    } else {
       return errors.New("Invoice number already registered. Please contact support.")
    }
}

Oh wow. I certainly didn't expect that. I greatly appreciate it though, thanks a bunch!


Improve test runtime

Describe this PR
What is the problem we're trying to solve
Currently, the tests take 15 minutes to run, which makes development slow down as devs don't have a quick feedback loop.
What changes have we introduced
Update GenerateReportUseCase to use an environment variable called sleep_duration. This will be set to 30 seconds in live environments, but only 1 second in the unit tests. This will reduce test runtime from 15 minutes to around 3 minutes.

Goal achieved via PR #150


USB support?

Last night I was trying to get Pokemon White 2 on my 3DS, and since I don't have an SD card (well, not one that works, my adapter is broken too), I tried it on a USB drive and it didn't work. I even looked through some of your code and put the "srl" folder in the root of the drive, but still nothing. But, I also saw fatInitDefault(), which lead me to believe that it is trying to access the SD card, what I think is the default.
So, my main question is that are you planning to add USB support to this? This project looks promising to me but I can't use it because of the lack of USB support.

you can literally only transfer special made files with a max size of 4mb since it all has to fit into the ds ram at once, you cant just load full games...

Ah, my bad.


Add Design Standards and Guidelines link to footer

Summary of changes
Asana Ticket: Footer | Add Engineering Resources link

Before getting review, please check the following:

[x] Does frontend functionality render and work correctly in IE?
[x] Have we load-tested any new pages or internal API endpoints that will receive significant traffic?
[x] Are interactive elements accessible to screen readers?
[x] Have you checked for tech debt you can address in the area you're working in?
[x] If this change involves routes, does it work correctly with pertinent "unusual" routes such as the combined Green Line, Silver Line, Foxboro commuter rail, and single-direction bus routes like the 170?
[x] Are the changes organized into self-contained commits with descriptive and well-formatted commit messages?

A tiny Floki test would make Codecov happier but it looks good regardless so I'm approving anyway.

Ah, because it gets removed in the mobile footer, that link has to go in here, too. See under the "Business Center" section on this page which serves as the mobile menu/footer:  http://localhost:4001/about

Ahh thank you @ingridpierre! Added.


Add get started page

What problem does this pull request solve?
Trello card: https://trello.com/c/4p6qkzvc/

We want a get started page explaining to users how to create an account and start using GOV.UK Forms. This PR adds the page designed by @hannahkc.
Things to consider when reviewing

Does it work when run on your machine?
Is it clear what the code is doing?
Do the commit messages explain why the changes were made?
Are there all the unit tests needed?
Has all relevant documentation been updated?

Screenshot

The content in the screenshot looks perfect.

Same pattern as the other pages I reckon? So: Get started - GOV.UK Forms
That sound ok?


Error when running bash install.sh

Hello everyone, i just got the following error when running bash install.sh:
Compiling correlation kernels by nvcc...
Traceback (most recent call last):
File "build.py", line 3, in
import torch.utils.ffi
File "/home/huan/anaconda3/envs/myenv/lib/python3.6/site-packages/torch/utils/ffi/init.py", line 1, in
raise ImportError("torch.utils.ffi is deprecated. Please use cpp extensions instead.")
ImportError: torch.utils.ffi is deprecated. Please use cpp extensions instead.
Compiling resample2d kernels by nvcc...
Resample2d_kernel.cu:1:10: fatal error: THC.h: No such file or directory
#include <THC.h>
^~~~~~~
compilation terminated.
Traceback (most recent call last):
File "build.py", line 3, in
import torch.utils.ffi
File "/home/huan/anaconda3/envs/myenv/lib/python3.6/site-packages/torch/utils/ffi/init.py", line 1, in
raise ImportError("torch.utils.ffi is deprecated. Please use cpp extensions instead.")
ImportError: torch.utils.ffi is deprecated. Please use cpp extensions instead.
Compiling channelnorm kernels by nvcc...
ChannelNorm_kernel.cu:1:10: fatal error: THC.h: No such file or directory
#include <THC.h>
^~~~~~~
compilation terminated.
Traceback (most recent call last):
File "build.py", line 3, in
import torch.utils.ffi
File "/home/huan/anaconda3/envs/myenv/lib/python3.6/site-packages/torch/utils/ffi/init.py", line 1, in
raise ImportError("torch.utils.ffi is deprecated. Please use cpp extensions instead.")
ImportError: torch.utils.ffi is deprecated. Please use cpp extensions instead.
Compiling correlation kernels by nvcc...
Traceback (most recent call last):
File "build.py", line 3, in
import torch.utils.ffi
File "/home/huan/anaconda3/envs/myenv/lib/python3.6/site-packages/torch/utils/ffi/init.py", line 1, in
raise ImportError("torch.utils.ffi is deprecated. Please use cpp extensions instead.")
ImportError: torch.utils.ffi is deprecated. Please use cpp extensions instead.
(myenv) huan@HuanUbt:~/video-object-removal/inpainting$
Is anyone can help me?

My PC is Ubuntu 18.04 LTS, Python 3.6, Pytorch 1.4, CUDA 10.1, GTX1070 GPU.

change
from torch.utils.ffi import create_extension to from torch.utils.cpp_extension import BuildExtension
and change
ffi = create_extension(...)  to ffi = BuildExtension(...)

change
from torch.utils.ffi import create_extension
to
from torch.utils.cpp_extension import BuildExtension
and change
ffi = create_extension(...)
to
ffi = BuildExtension(...)

I used to meet this also. It's because your nvcc can't find THC.h and THCGeneric.h. see this line and this line. Check if it is a true path of pytorch:
print(os.path.dirname(torch.__file__))

And due to your high pytorch version，some api was deprecated，use their substitute in pytorch 1.0+

Thank all bros. Let me do.


Deploy on AWS Amplify using Serve

Hello,
I am currently trying to deploy a react application AWS Amplify but whenever I try deploy it, I receive this build error.
Am I using the right commands? I am using https://create-react-app.dev/docs/deployment/ to help me deploy.

I believe this has nothing to do with serve and the screenshot attached by you has no errors, can you attach full log ?

Hi @gregmoncayo
The serve cli is not intended to use for production applications.
Instead you can deploy to ZEIT Now by connecting your Git Repository in couple clicks.  Then each time you git push it will deploy!
Try this: https://zeit.co/import/git


C'mon bro

What needs to be documented?
The wiki hasn't been edited in a hella long time, there needs to be a page explaining softcoded achievements and softcoded difficulties. It's one of the reasons people end up searching for so long only to realize you just needed a folder.

You can’t do achievements lmao, those didn’t work but they forgot to remove the folder. But the difficulties explanation is reasonable and should be added

You can add soft-coded difficulties? :O

You can add soft-coded difficulties? :O

#8247

You can't add softcoded achievements but i've updated difficulties page.

You can't add softcoded achievements but i've updated difficulties page.

Thank you, Shadow Mario from Friday Night Funkin' : Psych Engine.

You can't add softcoded achievements but i've updated difficulties page.

Thank you, Shadow Mario from Friday Night Funkin' : Psych Engine.

He is from a human, actually.


Not able to pass step 2 ...

no error message and no notification. simply stuck at Step 2

Boxbilling is dead, find another alternatives.

Sorry, I didn't get the notification about this.
What PHP version are you using? Unfortunately, BoxBilling does not support PHP 7.x as if yet due to PHP functions that were deprecated with PHP 7.0 and above.
Please switch your PHP version to v5.6.x and try again, note that all required/recommended PHP extensions should also be active on the domain you are using.

Hi,
if you're looking for a working PHP7.2 version of boxbilling, you can follow us here: https://github.com/CircleBilling/CircleBilling
Otherwise, we recommend to use BoxBilling.

Please enable the debug mode in your bb-config.php
Please check your apache (/var/log/apache2/error_log) or nginx error log (/var/log/nginx/error_log
Check your bb-logs folder too: src/bb-data/log/php_error.log
Also you should share your PHP and MySql Version.

Thank you and have a nice day!

no error message and no notification. simply stuck at Step 2

Selecting php 5.6 in cpanel with "my sql"  selected solved the issue for me


misc: indent

Description
Make some indentations more consistent.
Maybe a bit nit-picky... :ghost:

LGTM :+1:


Missing documentation how Copilot can be disabled for non-OOB apps

Please document the following steps for this.
Doc writers can contact me to get screenshots that can't be added here
For any (custom) apps not showing there,
you can turn off copilot in the settings on make.powerapps.com

make sure that you have the correct environment selected on top right

select Apps on the left

the select the app where you want to disable copilot on

and click
…
then Edit

select "Settings" on top

Select "Upcoming"

and scroll down on the right until you see "Copilot Control"

set this to "Off"

click Save on bottom right of the dialog

Click Publish on top right

After this, new logins to this app should no longer have copilot active.

CTRL-F5 to reload (not just F5)
or clearing browser cache may be needed if the change is not directly effective because of downloaded browser files.

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

ID: a60760cd-5509-09cb-0121-95e1376dcdb0
Version Independent ID: a60760cd-5509-09cb-0121-95e1376dcdb0
Content: Turn on and set up Copilot in Dynamics 365 Sales
Content Source: ce/sales/enable-setup-copilot.md
Service: dynamics-365-sales
GitHub Login: @lavanyakr01
Microsoft Alias: lavanyakr

Thanks for your comment, @CarstenMS. This issue has been assigned to the doc author for review.

Thank you, @CarstenMS for the detailed instructions. I'm verifying these steps and reaching out to the product team to confirm. I'll update the issue after the instructions are added.

Hi @CarstenMS
I checked with the team. They suggest disabling Copilot from the Copilot Settings page in the Sales Hub app as explained here: Turn on and set up Copilot in Dynamics 365 Sales. The settings page displays all the sales apps, including custom apps. Please let me know if you have any questions or scenarios where it can't be disabled using the Copilot Settings page.


Pre-requisites for "requirements.txt"?

I tried to follow your example on Github but have some very basic questions, coming from a novice background.
I saved the file "requirements.txt" in a directory and then in the terminal tried to run:
pip install -r requirements.txt
The following message was returned:
  Could not find a version that satisfies the requirement auth2==1.0 (from -r requirements.txt (line 1)) (from versions: )

No matching distribution found for auth2==1.0 (from -r requirements.txt (line 1))

What other basic steps would I need to take before running the "pip install" command?
Thanks very much for your help!
Kindly,
Jeremy

Works as expected on my machine, so things are basically functional:
kmitton-laptop:~/pg/yelp-api/v2/python$ virtualenv venv
New python executable in venv/bin/python
Installing setuptools, pip...done.
kmitton-laptop:~/pg/yelp-api/v2/python$ source venv/bin/activate
(venv)kmitton-laptop:~/pg/yelp-api/v2/python$ pip install -r requirements.txt
Downloading/unpacking oauth2==1.0 (from -r requirements.txt (line 1))
  Downloading oauth2-1.0.0.tar.gz
  Running setup.py (path:/Users/mittonk/pg/yelp-api/v2/python/venv/build/oauth2/setup.py) egg_info for package oauth2

Downloading/unpacking httplib2==0.9 (from -r requirements.txt (line 2))
...

@jrs477 , you saw (from versions: ) --- could you please run pip -vvv install oauth2==1.0 and paste the full output here?
Should start off something like:
(venv)kmitton-laptop:~/pg/yelp-api/v2/python$ pip -vvv install oauth2==1.0
Downloading/unpacking oauth2==1.0
  Getting page https://pypi.python.org/simple/oauth2/
  URLs to search for versions for oauth2==1.0:
  * https://pypi.python.org/simple/oauth2/1.0
  * https://pypi.python.org/simple/oauth2/
  Getting page https://pypi.python.org/simple/oauth2/1.0
  Could not fetch URL https://pypi.python.org/simple/oauth2/1.0: 404 Client Error: Not Found
  Will skip URL https://pypi.python.org/simple/oauth2/1.0 when looking for download links for oauth2==1.0
  Analyzing links from page https://pypi.python.org/simple/oauth2/
    Found link https://pypi.python.org/packages/2.7/o/oauth2/oauth2-1.9rc1-py2-none-any.whl#md5=46c1705b59358f30f7456faae9205304 (from https://pypi.python.org/simple/oauth2/), version: 1.9rc1
    Found link https://pypi.python.org/packages/3.4/o/oauth2/oauth2-1.9.0.post1-py2.py3-none-any.whl#md5=3cea98a160f8825ea29bc3f3183e246f (from https://pypi.python.org/simple/oauth2/), version: 1.9.0.post1
...

I ran the command you suggested. My terminal spat out a mess, ending with:
InstallationError: Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/private/var/folders/p6/qmn37h0j0lx_7cqd_z2qx59w0000gs/T/pip-build-oxJdCq/oauth2/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/p6/qmn37h0j0lx_7cqd_z2qx59w0000gs/T/pip-i2GnUZ-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/p6/qmn37h0j0lx_7cqd_z2qx59w0000gs/T/pip-build-oxJdCq/oauth2

Learning more about oauth2, I see that it requires httplib2, which I tried to install. A similar error was returned when I tried pip install httplib2:
Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/private/var/folders/p6/qmn37h0j0lx_7cqd_z2qx59w0000gs/T/pip-build-hK2Zta/httplib2/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/p6/qmn37h0j0lx_7cqd_z2qx59w0000gs/T/pip-0hRkNH-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/p6/qmn37h0j0lx_7cqd_z2qx59w0000gs/T/pip-build-hK2Zta/httplib2

Update:
Everything worked after sudo-ing all installations :0

Sudo's one approach --- glad that got you running.
I prefer using virtualenv:

http://docs.python-guide.org/en/latest/dev/virtualenvs/

It lets me install Python packages in my own home directory (rather than needing sudo and installing them for everyone on the machine).  It also lets me keep one Python with all the packages for project A, and a different one with the packages for project B, without having to find versions that work for both A & B.
Glad you're on your way, I suspect the same steps will get yelp-python working!


Pass session to JdbcClient#toWriteMapping

Write function may be session-dependent. In particular, write function
for timestamp should depend on
io.prestosql.spi.connector.ConnectorSession#isLegacyTimestamp value.

cc @ilfrin


Error "Sequence contains no elements..."

Hi Seth,
I get this error at random times with the same data. It comes either at the learning step in below code -
generator = new DecisionTreeGenerator(5) { Descriptor = descriptor, Hint = 0 };
learningModel = Learner.Learn(data, 0.8, 5, generator);
Or
While deserilizing the model json like
JsonReader.ReadJson(jsonData);
This error really comes randomly & goes away with the same data after a few retries.
Can you please help spotting it?

Weird, do you have a stack trace? It could either be features in the descriptor or elements in the training set.

Don't have the stack trace currently, but for learning it comes from "ToVector" method & for json reading, comes from the "Read" method itself...
Will post the stack trace as soon as I get the error again

Seems that you have upgraded the project to VS2017, unable to reference the source code for debugging issues with my code now...
Do you have the older VS project for version 0.9.15-beta?

Here is the stacktrace for "Sequence contains no elements" error while calling the "Learn" method
at System.Linq.Enumerable.First[TSource](IEnumerable1 source)    at numl.Model.Descriptor.At(Int32 i)    at numl.Supervised.DecisionTree.DecisionTreeGenerator.GetBestSplit(Matrix x, Vector y, List1 used)
at numl.Supervised.DecisionTree.DecisionTreeGenerator.BuildTree(Matrix x, Vector y, Int32 depth, List1 used, Tree tree)    at numl.Supervised.DecisionTree.DecisionTreeGenerator.Generate(Matrix X, Vector y)    at numl.Learner.GenerateModel(IGenerator generator, Matrix x, Vector y, IEnumerable1 examples, Double trainingPct, Int32 total)
at numl.Learner.Learn(IEnumerable`1 examples, Double trainingPercentage, Int32 repeat, IGenerator generator)
at MyClass.TestMethod()

It looks like the descriptor object is missing the original features. This likely means that it wasn't deserialized properly. Would you mind verifying that the descriptor has the proper features (maybe set a breakpoint and check the contents)? Thanks again!

Yes, checked it, but could not spot anything wrong with the descriptor. Moreover, it works on the same data, same descriptor for 7 out of 10 times.
One more thing I noticed, this most of the times happens when I set repeatition of learning to more than 1.
Can you please help me to know how can I get the 0.9.15 version project opened in VS 2015? I cant convert my existing applications to new project right now, but wish to debug it with NUML code for this partocular issue.

I guess the easiest way right now is to fork the dev branch then create a new blank solution/project and add all of the cs files (it is what I would do). I unfortunately don't have VS15 installed :(

Ok thanks, will give it a try...

Sorry about that! It seems like there is a weird bug in there somewhere....

It's Ok Seth,
I referred the code from this
https://github.com/sethjuarez/numl/tree/3414fb433ccf268c183abca78c0e06fa78c607fe
Not sure if below is the fix for it, but I tried with this -
The exception is from this line no. 117 in Descriptor.cs
return.q.First()
q is empty in some cases, hence gives exception.
Changed it to q.FirstOrDefault();
and then, in DecisionTreeGenerator.cs, added a null check for "property" after line no. 256
Now, the exception has gone, however the accuracy is always zero :(
struggling over the accuracy issue now further...

The real problem is that there is an empty Feature array. That should never be empty when going through the learning process. It effectively says there is no data (or columns) to learn from. Is the Feature array empty? If so, we need to find out why that is - can you send me a repro? I want to get to the bottom of the problem.

Featured array contains 11 elements, with 1 string & 1 datetime field, rest of the fields are double.
Let me try to construct a sample repro for you to refer as the original code cannot be shared.

Attached is a netcore webapi, please check the "Training"
Solution1.zip
method in ValuesController
Also added a .txt file which contains json to pass to the request as input.

I created a more concise project for you that can be run in Visual Studio Code. Some of your Features are highly correlated to the Label. I also noticed that your computed Label is just multiplied by a scalar (which I think is unnecessary.
SujataTest.zip
    Accuracy: 1
    No# of Predictions:     6
    ---------------------------------
    Accuracy:               1
    MAE:                    0
    SSE:                    0
    MSE:                    0
    RMSE:                   0

    Coef RMSE:              0
    Norm RMSE:              0

    AUC:                    1
    ---------------------------------
    True Positives: 1
    False Positives:        0
    True Negatives: 5
    False Negatives:        0
    ---------------------------------
    Precision:              1
    Recall:         1
    Specificity:            1
    Fallout:                0
    F-Score:                1
    Cross-Entropy:          0

    [TimeTaken, 0.2985]
     |- 4326 <= x < 12105.5
     |       +(0, 0)
     |- 12105.5 <= x < 19885.01
     |      [Field3, 0.3117]
     |       |- 1782 <= x < 1811
     |       |      [Field2, 0.4325]
     |       |       |- 1729.8 <= x < 1744.85
     |       |       |      [Full, 0.5000]
     |       |       |       |- 0 <= x < 0.5
     |       |       |       |       +(1, 1)
     |       |       |       |- 0.5 <= x < 1.01
     |       |       |       |      [Iterations, 0.2740]
     |       |       |       |       |- 2 <= x < 5.5
     |       |       |       |       |       +(0, 0)
     |       |       |       |       |- 5.5 <= x < 9.01
     |       |       |       |       |       +(1, 1)
     |       |       |- 1744.85 <= x < 1759.91
     |       |       |       +(0, 0)
     |       |- 1811 <= x < 1840.01
     |       |       +(0, 0)

It looks like the way you were declaring features was causing some issues. The idea of the project is to separate the learning and the prediction process into two distinct steps. Hope this helps!

Thanks a ton Seth.

My pleasure! Let me know how it all turns out!


Register with mobile app integration

This allows users to see the mobile app in their Home Assistant installation and gives the app urls to communicate with the instance while away from home.
https://developers.home-assistant.io/docs/en/app_integration_setup.html#registering-the-device-1

@JBassett Is this done in #25 if not what still needs to be done

@BCNelson The only thing left is to use the stored url for remote ui on the webview.  But that probably belongs with the issue for having multiple urls for home vs away.

Will create a new issue for that.


[MXNET -1030] Cosine Embedding Loss

Description
For a target label 1 or -1, vectors target and prediction, the function computes the cosine distance between the vectors. This can be interpreted as how similar/dissimilar two input vectors are.
Can be used as a loss function while training models.
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.

[x] The PR title starts with [MXNET-$JIRA_ID], where $JIRA_ID refers to the relevant JIRA issue created (except PRs with tiny changes)

[x] Changes are complete (i.e. I finished coding on this PR)

[x] All changes have test coverage:

Unit tests are added for small changes to verify correctness (e.g. adding a new operator)

[x] Code is well-documented:

[x] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes

[x] Cosine Embedding Loss computation function tests, (and when applicable, API doc)

Comments

If this change is a backward incompatible change, why must this change be made.

@mxnet-label-bot [pr-awaiting-review]

Nice first contribution. Welcome to MXNet community @gaurav-gireesh

Nice first contribution. Welcome to MXNet community @gaurav-gireesh

Thank you Sandeep! Looking forward to collaborate and learn together with the community!

@mxnet-label-bot [pr-awaiting-merge]

LGTM

@szha - This is good to go after your review.

@mxnet-label-bot remove [pr-awaiting-review]


Update sparkoperator to v1.0.7

adds basic status blocks to the various CRDs
fixes a permission error on pvcs
adds spark-operator service account in the project where
the operator runs for use by SparkApplication

Signed-off-by: Trevor McKay<EMAIL_ADDRESS>Updates to existing Operators

[X ] Is your new CSV pointing to the previous version with the replaces property?
[ X] Is your new CSV referenced in the appropriate channel defined in the package.yaml ?
[ X] Have you tested an update to your Operator when deployed via OLM?
[ X] Is your submission signed?

@J0zi fyi here is the updated spark operator, everything passing

@tmckayus, please get signature from the author (@jkremser).

Hi @J0zi, I'm confused. For this particular commit, I am the author. I did all the supporting work in the operator, and updated the bundle files. It's a community maintained operator. Do I need @jkremser for every update going forward?

added "WIP" to the description. something strange is happening on openshift with SparkApplication, not sure what it is yet

There is an issue with the status block updates in classes that don't override "onModify" (like SparkApplication). The abstract-operator is calling "onDelete(); onAdd()" which causes an infinite loop.
Working on a fix.

Hi @tmckayus, don't see WIP in the description.
I understand, that this commit is your work. But we the have rule, if some is going to edit your operator, must ask your permission at least for the first time. In this case, you are not an original author, so please ask @jkremser. I will not bother you again on this particular operator:)
adding WIP as per your post

/hold

@J0zi thanks! how should @jkremser sign? just a comment on this PR? or something else?

fyi, this should be the fix to the spark operator image for SparkApplication mentioned above
https://github.com/radanalyticsio/spark-operator/pull/283
waiting for merge to create a new image and update this PR to use a 1.0.6

@tmckayus, commit should be signed by the author @jkremser and pushed here.
I understand, that we are waiting for radanalyticsio/spark-operator#283. Once we are ready, just remove "hold" label.

@J0zi I think in this case we can look at @tmckayus as the author since the original author left the company.

thanks @dmesser
note, I have an additional update to push to the PR to move it from 1.0.6 to 1.0.7, should be up today

@dmesser @J0zi okay updates are all done, this LGTM :)

btw this change should address the following bugzillas
https://bugzilla.redhat.com/show_bug.cgi?id=1794141
https://bugzilla.redhat.com/show_bug.cgi?id=1794146


Actions: Management experience for Cache (Server)

Summary
Dependency caching is one of the most effective ways to make jobs faster on GitHub Actions.
However, caches can often go corrupt, and there is no great way to clear caches or debug issues with them. Also while we evict caches at a certain threshold limit, the cache performance can take a hit when the storage is near its quota. All this generates significant support requests and prevents the broad adoption of our caching capability.
We are now enabling a management experience for users to view and delete their existing caches and monitor their current cache storage usage within a Repository.
Intended Outcome

GitHub Actions enables customers to cache intermediate outputs and dependencies for their workflows. Caching is an effective way to make jobs faster and a management experience for cache usage would further promote its adoption.
Cache Management makes it easier to debug caching issues and provides greater control over cache usage by enabling users to view and delete existing caches.
As we start supporting caching in ES and AE, a self-serve way will reduce support tickets by providing better ways to troubleshoot and debug corrupted caches.

How will it work?
Once we enable Cache support in GHES, We will also be enabling a new Management experience (API based) to help cache users to view and monitor their cache usage across all the workflows in their repository.

🚢 This went out with the GHES 3.7 release<EMAIL_ADDRESS>


Cannot import private github repo into readthedocs - no link to authorize REPO scope

Details

Project URL: Private repo
Build URL (if applicable): Private repo
Read the Docs username (if applicable): SaintNazaire

Expected Result
Compile Readthedocs documentation from private Github repo
Actual Result
Failure.
Current assistance response from Github
If the Github webhook delivery triggers some process on the receiving end, and that process needs to collect more information via the API, then that process needs to make an authenticated API calls because the repository is private:
https://developer.github.com/v3/#authentication
Sharing private information without any authentication would be a security concern.
Now, the Readthedocs application which you are targeting with webhooks in your private repository is an application you authorized with your user account. When you authorize an application, that application gets a token which can be used for authentication. However, you didn't authorize it with the right permissions (called scopes: https://developer.github.com/apps/building-integrations/setting-up-and-registering-oauth-apps/about-scopes-for-oauth-apps/). As far as I can tell, you haven't authorized the application with "repo" scope which is the only scope which grants access to content in private repositories. As a result of that, you are able to deliver information to Readthedocs via the webhook (expected), and Readthedocs is not able to read more information via the API because it doesn't have the right permissions (again expected).
You'll need to grant "repo" scope to the application in order for the application to be able to access code in a private repository. Normally, the application would provide a link to authorize it with such scope. If it doesn't provide that -- I recommend reaching out to Readthedocs support and asking them why they don't provide that.

Private Repo is not supported by the community version.
Please check https://readthedocs.com

Ok I just want to build a small documentation. GitHub costs USD 7/month, Docker about the same, Readthedocs USD 50/month !!! It seems there is a product space missing between community offer and commercial offer. Enabling private repo-ing on a limited basis - say 1-3 documentations - for free, especially for limited audiences would make much more sense.

@SaintNazaire You can install your own instance of readthedocs in your instance. All the setup documentation is there.

@safwanrahman I am trying to understand what you mean by

your instance

as I need to deal with this issue also.

@jfgossage You can install readthedocs in a server or a local machine and thats your instance of readthedocs