Account Stats Tables UI

Summary of changes

Add empty account stats tables
Add UI for shielded assets table
Add UI for spend notes table
Fix the DefaultTokenIcon render error when providing not existing token symbol
Add new icons for the Manage button on the account stats table
Allowing unstyled Tab/Tabs components
Allowing custom shorten function on the KeyValueWithButton component

Reference issue to close (if applicable)

Closes NaN

Code Checklist

[x] Tested
[x] Documented

Screenshots
Empty State

Has values

This PR checkout from PR https://github.com/webb-tools/webb-dapp/pull/678. Please review that PR first, then comback and review this PR. Thank you.

Couple small UI changes:
This should have the Optimism icon logo not the Ethereum one:

This much white space looks odd, we should look to change this. What do you think?

Couple small UI changes:
This should have the Optimism icon logo not the Ethereum one:

For the chain icon, we are rendering based on the native token symbol of the currently selected chain. I will update that if it is possible.

This much white space looks odd, we should look to change this. What do you think?

The design team wants the size of cards and other components (e.g. Token List Card, Chain List Card, ...) to be the same so that we have to have that space for size consistency. But I think the space looks odd too 😄


Feature: Add line/links to error messages

Is this a bug report?
No
How it is now
I have an error message like this:
Compiled with warnings.

./src/components/installation/Websocket.tsx
  Line 77:  Expected to return a value at the end of arrow function  array-callback-return

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

I can cmd+click on ./src/components/installation/Websocket.tsx and it'll take me to the right file ⭐
What would be nice is that in the case where there is one error per file, it could instead be ./src/components/installation/Websocket.tsx:77 and clicking on that in the terminal would take directly there. The :77 could be colored using ANSI to be the background color, so it's not visible.
Alternatively, and perhaps a nicer UI, is to use hyperlinks one the Line 77 using something like hyperlinker which would have the href as ./src/components/installation/Websocket.tsx:77. This works in quite a lot of terminals now.

Related to #6980 I think, though the hyperlinker suggestion is new.

If we do this, please make sure to include the column number too, not just the line number, so that editors can navigate to the exact row/col position.  I believe the usual format is something like
/foo/bar.js:287:13 which will navigate to line 287, column 13 of bar.js.
See https://www.gnu.org/prep/standards/html_node/Errors.html


(maint) Facter reports wrong minor version for Debian 10

Use /etc/debian_version for release major minor instead of lsb_release starting with Debian 10

https://jenkins-master-prod-1.delivery.puppetlabs.net/view/Adhoc/job/platform_puppet-agent-extra_puppet-agent-integration-suite_adhoc-ad_hoc/

Looks good! I think we need to rebase this on 3.11.x, since we want this to get into puppet-agent 5.5.x.

https://github.com/puppetlabs/facter/pull/1811


Homebrew won't install on M1 Mac (macOS 11.2.1)

brew config output
zsh: command not found: brew

brew doctor output
zsh: command not found: brew

[X] The brew doctor above contains no "Warning" lines.

What were you trying to do (and why)?
Attempts to run brew update resulted in a Ruby error. To remediate, tried to reinstall Homebrew from scratch. This results in the same error, seemingly linked to various gems ("missing compatible arch in /Library/Ruby/Gems/2.6.0/gems/..."). The example shows bigdecimal, but other installs have failed with date.
What happened (include all command output)?
geraint@MacBookM1 ~ % sudo rm -rf /Library/Developer/CommandLineTools
Password:
geraint@MacBookM1 ~ % xcode-select --install
xcode-select: note: install requested for command line developer tools
geraint@MacBookM1 ~ % which git
/usr/bin/git
geraint@MacBookM1 ~ % /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
==> Checking for `sudo` access (which may request your password).
Password:
==> This script will install:
/opt/homebrew/bin/brew
/opt/homebrew/share/doc/homebrew
/opt/homebrew/share/man/man1/brew.1
/opt/homebrew/share/zsh/site-functions/_brew
/opt/homebrew/etc/bash_completion.d/brew
/opt/homebrew
==> The following new directories will be created:
/opt/homebrew/bin
/opt/homebrew/etc
/opt/homebrew/include
/opt/homebrew/lib
/opt/homebrew/sbin
/opt/homebrew/share
/opt/homebrew/opt
/opt/homebrew/share/zsh
/opt/homebrew/share/zsh/site-functions
/opt/homebrew/var/homebrew/linked
/opt/homebrew/Cellar
/opt/homebrew/Caskroom
/opt/homebrew/Frameworks

Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/mkdir -p /opt/homebrew/bin /opt/homebrew/etc /opt/homebrew/include /opt/homebrew/lib /opt/homebrew/sbin /opt/homebrew/share /opt/homebrew/opt /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions /opt/homebrew/var/homebrew/linked /opt/homebrew/Cellar /opt/homebrew/Caskroom /opt/homebrew/Frameworks
==> /usr/bin/sudo /bin/chmod g+rwx /opt/homebrew/bin /opt/homebrew/etc /opt/homebrew/include /opt/homebrew/lib /opt/homebrew/sbin /opt/homebrew/share /opt/homebrew/opt /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions /opt/homebrew/var/homebrew/linked /opt/homebrew/Cellar /opt/homebrew/Caskroom /opt/homebrew/Frameworks
==> /usr/bin/sudo /usr/sbin/chown geraint /opt/homebrew/bin /opt/homebrew/etc /opt/homebrew/include /opt/homebrew/lib /opt/homebrew/sbin /opt/homebrew/share /opt/homebrew/opt /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions /opt/homebrew/var/homebrew/linked /opt/homebrew/Cellar /opt/homebrew/Caskroom /opt/homebrew/Frameworks
==> /usr/bin/sudo /usr/bin/chgrp admin /opt/homebrew/bin /opt/homebrew/etc /opt/homebrew/include /opt/homebrew/lib /opt/homebrew/sbin /opt/homebrew/share /opt/homebrew/opt /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions /opt/homebrew/var/homebrew/linked /opt/homebrew/Cellar /opt/homebrew/Caskroom /opt/homebrew/Frameworks
==> /usr/bin/sudo /usr/sbin/chown -R geraint:admin /opt/homebrew
==> /usr/bin/sudo /bin/mkdir -p /Users/geraint/Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Users/geraint/Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown -R geraint /Users/geraint/Library/Caches/Homebrew
==> Downloading and installing Homebrew...
remote: Enumerating objects: 45, done.
remote: Counting objects: 100% (45/45), done.
remote: Compressing objects: 100% (45/45), done.
remote: Total 175045 (delta 0), reused 44 (delta 0), pack-reused 175000
Receiving objects: 100% (175045/175045), 45.50 MiB | 65.07 MiB/s, done.
Resolving deltas: 100% (129975/129975), done.
From https://github.com/Homebrew/brew
 * [new branch]      dependabot/bundler/Library/Homebrew/sorbet-0.5.6287 -> origin/dependabot/bundler/Library/Homebrew/sorbet-0.5.6287
 * [new branch]      master     -> origin/master

[...deleted...]

HEAD is now at 3efab3efa Merge pull request #10421 from SeekingMeaning/uninstall-cask-binaries
==> Tapping homebrew/core
remote: Enumerating objects: 21, done.
remote: Counting objects: 100% (21/21), done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 915154 (delta 11), reused 12 (delta 6), pack-reused 915133
Receiving objects: 100% (915154/915154), 368.72 MiB | 67.47 MiB/s, done.
Resolving deltas: 100% (624088/624088), done.
From https://github.com/Homebrew/homebrew-core
 * [new branch]      master     -> origin/master
HEAD is now at d2b25e00f4 node@12: update 12.21.0 bottle.
Traceback (most recent call last):
	19: from /opt/homebrew/Library/Homebrew/brew.rb:31:in `<main>'
	18: from /opt/homebrew/Library/Homebrew/brew.rb:31:in `require_relative'
	17: from /opt/homebrew/Library/Homebrew/global.rb:23:in `<top (required)>'
	16: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	15: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	14: from /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/activesupport-6.1.3/lib/active_support/core_ext/numeric/time.rb:3:in `<top (required)>'
	13: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	12: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	11: from /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/activesupport-6.1.3/lib/active_support/duration.rb:3:in `<top (required)>'
	10: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	 9: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	 8: from /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/activesupport-6.1.3/lib/active_support/core_ext/array/conversions.rb:3:in `<top (required)>'
	 7: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	 6: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	 5: from /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/activesupport-6.1.3/lib/active_support/xml_mini.rb:5:in `<top (required)>'
	 4: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	 3: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	 2: from /Library/Ruby/Gems/2.6.0/gems/bigdecimal-3.0.0/lib/bigdecimal.rb:1:in `<top (required)>'
	 1: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': dlopen(/Library/Ruby/Gems/2.6.0/gems/bigdecimal-3.0.0/lib/bigdecimal.bundle, 0x0009): missing compatible arch in /Library/Ruby/Gems/2.6.0/gems/bigdecimal-3.0.0/lib/bigdecimal.bundle - /Library/Ruby/Gems/2.6.0/gems/bigdecimal-3.0.0/lib/bigdecimal.bundle (LoadError)
Failed during: /opt/homebrew/bin/brew update --force --quiet
geraint@MacBookM1 ~ % which ruby
/usr/bin/ruby

What did you expect to happen?
Homebrew to install
Step-by-step reproduction instructions (by running brew commands)
xcode-select --install
bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Duplicate of #10662.
There are many posts on the discussions page about this issue (and related issues). Please check there for solutions. For example:
https://github.com/Homebrew/discussions/discussions/666
https://github.com/Homebrew/discussions/discussions/657
https://github.com/Homebrew/discussions/discussions/698
https://github.com/Homebrew/discussions/discussions/671
https://github.com/Homebrew/discussions/discussions/501
https://github.com/Homebrew/discussions/discussions/668
https://github.com/Homebrew/discussions/discussions/814

Apologies @carlocab, I didn't see them despite various searches. Thank you.

Forgive me @carlocab but all of these issues appear to relate to Git but as far as I can tell, the Git clone is working fine and I was able to run a clone of homebrew/core without problem.

If the ones I linked to don't help, and you can't find any other related ones on the discussions page, you can open a new post there asking for help.

Thank you again @carlocab. It turned out to be quite a lot of failing (presumably, incompatible Intel) gems so I uninstalled them all. I had incorrectly assumed these gems were being installed as part of Homebrew given they appear to be a dependency. Thank you again for your help.

Yea, a bunch of Ruby Gems don't seem to be working very well on ARM. If you need them, I recommend using rbenv to install an isolated Ruby environment so you can switch them off easily when they cause trouble.


Unexpected behavior of Zend_Validate_Date

$validator = new \Zend_Validate_Date('Y-m-d');
var_dump($validator->isValid('2015-05-01|DEFAULT'));
$validator = new \Zend_Validate_Date();
var_dump($validator->isValid('2015-05-01|DEFAULT'));

Expected: false, false
Actual: true, false
Problem seem to lie in \Zend_Date::isDate('2015-05-01|DEFAULT', 'Y-m-d', null); // true being called inside the validator. And the call https://github.com/zendframework/zf1/blob/master/library/Zend/Locale/Format.php#L908 called inside there. That ignores everything except numbers (meaning it strips the |DEFAULT).
Is that feature or bug? In my opinion it's a bug.

Is that feature or bug?

It's not supported. :wink:
In my opinion, Zend_Date is deprecated.
The extraction of the date parts is ugly. (For more information please see #207.)

Can it be properly marked as deprecated? It is not ATM AFAIK https://github.com/zendframework/zf1/blob/master/library/Zend/Date.php - there is no "deprecated" string in the whole class.

Or better it should not work with unsupported params. Validation passing is the worst way to deal with it, because it's really hard to find what is the actual problem.

there is no "deprecated" string in the whole class.

I wrote: "In my opinion…"

it's really hard to find what is the actual problem

This is true for all Zend_Date and Zend_Locale classes.

So the resolution is practically "Known issue" -> "Won't fix"? Or can I do something to make this more developer friendly?

So the resolution is practically "Known issue" -> "Won't fix"?

The issue is still open!

Or can I do something to make this more developer friendly?

Any suggestion or idea is welcome.

What about having it properly deprecated? There is no point in trying to fix it for currently outdated PHP version (5.2). Everywhere else you can use \DateTime.
I would even go so far as to rewrite the internals to use DateTime where possible. A project I'm working on is bound to stay on ZF1 for some time so it still makes sense to future-proof ZF1.
I am not sure whether new ZF releases have to support <5.3 PHP versions now that 5.2 is outdated and discouraged.

I would even go so far as to rewrite the internals to use DateTime where possible.

The idea is not new, but this would result in different behaviours and date outputs.
My advice to you: Don't do that, it's too many work and a very very hard way. (I have tried it.)
We need a solution/migration path from Zend_Date to DateTime or ZF2.

@akrabat
Any comments or ideas?

Another problem: we can not upgrade to a newer CLDR version.


Use initializer in NStepLSTM

The initialization method of current NStepLSTM link is fixed to sampling from Gaussian distribution (see here). One of the possible extension of this link is to add initializers to the argument and use it in __init__.

Reopening this issue:

Runtime Info:
Chainer: 5.0.0a1
NumPy: 1.13.0
CuPy:
CuPy Version          : 5.0.0a1
CUDA Root             : /usr/local/cuda
CUDA Build Version    : 8000
CUDA Driver Version   : 9020
CUDA Runtime Version  : 8000
cuDNN Build Version   : 7102
cuDNN Version         : 7102
NCCL Build Version    : 2104


Factorial

Submission Title
Factorial
Submission Type
Maths_And_Stats
Submission Description
A recursive function to calculate the factorial of a number
Folder Related To
Maths_And_Stats => Algebra => Factorial => factorial.py
Contributors

[x]  C++ -
[x]  C -
[x]  Python -
[x] Java -
[x] JavaScript -
[ ] TypeScript -
[ ] Golang -
[ ] Ruby -
[ ] php -
[ ] Swift -
[ ] C# -

Hey, I am interested in working on this. Can you assign it to me?

Hi @adrikagupta, Please select a language.

I can do it in C, C++, Java, and Javascript. Do you want me to pick only one or is it fine if I do for all four of them? @Mr-Vaibhav-Shukla

Hey I have done it in C++. Can you review my PR  #283

@Mr-Vaibhav-Shukla I have done it in C++

Great @adrikagupta, go ahead with C, Java, Javascript

Hi @harikesh409 , Please fill up the PR(#283) template correctly

Hi @harikesh409 , Please fill up the PR(#283) template correctly

I edited it now. I think it should be fine now. Please check :)

Great @adrikagupta, go ahead with C, Java, Javascript

Yep. I am done with C. Now, I need to do Java and Javascript.

Hi @ShubhayanDas08 , please opt a different language.

Hi @harikesh409 , Please fill up the PR(#283) template correctly

I edited it now. I think it should be fine now. Please check :)

#283 has been merged successfully

Hey. After doing it in C, I went ahead and did it in Java and Javascript. Please review. Thank you for the opportunity:)

Hey. I have done this program in Ruby too. You can tick it in the list 👍

Hey! I have done this program in C# too. You can tick it in the list 👍

Hi @ahampriyanshu , I can code this in PHP.

thanks everyone :v:


Generate multitest helpers

Right now using multi-tests is sometimes a bit verbose - all the typing and many arguments have to be passed. There is an idea to create wrappers for the contract addresses to make it a bit more compact: https://github.com/CosmWasm/cw-plus/blob/main/contracts/cw1-whitelist-ng/src/multitest/contract.rs.
It may not be a final form that to generated - we need to figure out how to make it the most useful possible (for eg. we probably don't want to keep &mut app in the state so we can keep proxies living for the whole test, and pass app just for final execution, also - we don't want to pass funds for most of the calls, but we want to be able to send them sometimes).

Closing in favor of #27


How to split a monolithic architecture into micro-frontends

Article checklist
Attention
Our Peer Reviewer and Content Moderator teams do NOT provide any revisions services. All revisions and edits should be completed on your own forked repo (as to not take up room in the queue) in order for our team to review them all in a timely manner.
ANY ARTICLE SUBMITTED WITH GLARING ERRORS WILL BE IMMEDIATELY CLOSED.

As a rule of thumb - please be sure to only submit articles (pull requests) that are fully polished and ready to be published. Be sure to go through our resources documents for extra and 3rd party (vetted) resources to help improve overall technical writing.

Pre-submission checks

Please ensure that you have only one open topic suggestion (issue) + in-review article (linked pull request) at a time. This will ensure that we complete the review process in a timely manner from inception to publishing

If you have not already, please go over our Resources Page for more tips and tricks on how to improve your overall technical writing so reviews are swifter, increase the chance of a payout and provide more value to our readers.

For first-time contributors and for more details on our submission guidelines, see our Contributing Guidelines.

Formatting and structure checks

[x] Have you used the correct folder and file structure? - see Contribution Guidelines

[x] Is your article properly formatted in Markdown? - see Github Markdown guide

[x] Have you used our preferred heading structure? - H3 (###) and up

[x] Does your article follow any of the suggested structure formats? - see example formats

[x] Is your article over 750 words? - Tool: Wordcounter.net

[x] Is the article you are submitting an in-depth and unique article? Does it go beyond what is in the official docs and what is covered in other blog sites. See these articles as examples.

[x] Does your article provide enough value and detail about your topic? - Articles should be clear, accurate, and fully explained.

[x] Can your article be understood by beginners? - Assume the audience is smart but has no prior exposure to the common terminology in your article.

[x] Have you included a hero image that is 600x400 pixels, under 300KB in size, and have the copyright to use it? - Tools: Pixlr Image Editor for resizing and Unsplash for Creative Commons images

Grammar & plagiarism checks

[x] Have you spellchecked and grammar checked your article? - Tools: Write&Improve - ProWritingAid - Grammarly
[x] Please place your article through a 3rd party plagiarism checker. We suggest using Quetext, this tool is free and has a daily limit. We typically accept articles with 10% or less.
[x] Have you checked your article for readability? - Tool: Hemmingway
[x] Have you added sources for quotes and images that aren't yours?

Technical checks

[x] Are your code snippets properly formatted for syntax highlighting - see Syntax guide
[x] Have you checked your code runs correctly and you've highlighted all necessary dependencies for installation?
[x] Are the software programs and packages you're highlighting in your article up to date, using current versions and not deprecated?

Topic suggestion this closes

Remove the backticks and add the issue number below to link and close your Topic Suggestion (issue) when your article has been published (PR has been merged). See this video for more details.

`This closes #5629

Finally, delete the article checklist notes in blockquotes and submit your PR. We look forward to reviewing your article.

Hello @ephnjor2021 ,
Thanks for submitting this PR.
Your PR has entered our reviewing queue. Please wait until a peer-reviewer pings you to get started with the review.
Meanwhile, we suggest you to go through approved PRs/published articles to see if you have missed out anything. This would help us avoid any potential closure of the PR.
Thanks.

Hi @ephnjor2021
In as much as your plagiarism check score is acceptable, I couldn't help but notice several sentences that match an article on hacker noon. Please check on them before you continue.
cc: @mercymeave
Uploading How to split a monolithic architecture into micro-frontends #6310 Copyleaks Report.pdf…

Hello @LinusMuema I will check on the document. Thank you
cc @mercymeave

Hi @ephnjor2021
In as much as your plagiarism check score is acceptable, I couldn't help but notice several sentences that match an article on hacker noon. Please check on them before you continue.
cc: @mercymeave
Uploading How to split a monolithic architecture into micro-frontends #6310 Copyleaks Report.pdf…

@LinusMuema Could you please attach the plagiarism report again as am trying to download it to no success, the download link is not working.
Thank you. cc @mercymeave

Hello @ephnjor2021, what is your progress with this article? If you need more time then let me close is as you work on the chnages.

Hello @ephnjor2021, what is your progress with this article? If you need more time then let me close is as you work on the chnages.

Hi @mercymeave I will make the requested changes shortly. Thank you

Hi @mercymeave The requested minor changes have been made, feel free to continue with the review process.
Thank you.

Hello @ephnjor2021
You have a great article here. However, your article seems to have a lot of readability issues, complex sentences and punctuation mistakes.
I recommend you read the whole article to identify and correct the mistakes. Remember we encourage our authors to have very easy to read articles to save time on review and improve the quality of our platform.
I made a few changes at the beginning. You could take a look on how I minified some statements to make them clear and follow the trend.
Thanks.

Noted

Hello @ephnjor2021
You have a great article here. However, your article seems to have a lot of readability issues, complex sentences and punctuation mistakes.
I recommend you read the whole article to identify and correct the mistakes. Remember we encourage our authors to have very easy to read articles to save time on review and improve the quality of our platform.
I made a few changes at the beginning. You could take a look on how I minified some statements to make them clear and follow the trend.
Thanks.

Hello @mercymeave, the requested changes have been made. You can proceed with the review process.
Thank you.

Great work @ephnjor2021
Consider going over the changes made to improve future articles.

@mercymeave Noted with thanks.

@ephnjor2021, the text of your hero image doesn't contrast enough with your background so it's hard to read the title of your article. Please fix this so I can publish your article.

@louisefindlay23  Noted

@ephnjor2021, the text of your hero image doesn't contrast enough with your background so it's hard to read the title of your article. Please fix this so I can publish your article.

@louisefindlay23 Noted

@louisefindlay23 I have fixed the minor issue with the hero image. You can proceed.
Thank you cc @mercymeave


[$250] Inconsistency in displaying Search icon when returning to expenses opened from Search

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 9.0.54-1
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team
Action Performed:
Precondition: Logged in to New Expensify on two devices with different accounts

[User B] Submit expense to user A
[User A] Tap on Search icon in the bottom
[User A] Tap on expense created in step 1
[User A] Tap on From link in the header
[User A] Tap on back arrow

Expected Result:
Search icon should be displayed consistently
Actual Result:
Search icon is not displayed in step 3., but it appears in step 5
Also, sometimes the icon appears when refreshing the page after step 3
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

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

Screenshots/Videos

Add any screenshot/video evidence

https://github.com/user-attachments/assets/faa0ea73-aa94-49b7-bed6-d50d873da086
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~021850913269706139520
Upwork Job ID:<PHONE_NUMBER>706139520
Last Price Increase: 2024-11-04
Automatic offers:

nyomanjyotisa | Contributor | 104771832

Issue OwnerCurrent Issue Owner: @hungvu193

Proposal
Please re-state the problem that we are trying to solve in this issue.
Inconsistency in displaying Search icon when returning to expenses opened from Search
What is the root cause of that problem?
Here we  check if the report opened in RHP to hide search icon.
What changes do you think we should make in order to solve the problem?
If it is  not expected behavior we can delete this check and  always pass shouldDisplaySearchRouter  true here.
And if it is expected behavior then we should also check if screen is focused  here
const isFocused = useIsFocused();

...

isFocused && !isReportInRHP;

What alternative solutions did you explore? (Optional)

Proposal
Please re-state the problem that we are trying to solve in this issue.
Inconsistency in displaying Search icon when returning to expenses opened from Search.
What is the root cause of that problem?

We purposefully hide search button, for header if report is open in RHP here.
https://github.com/Expensify/App/blob/b7c1cfafecd03db14de4a4a30ac155fe4a7fb28b/src/components/MoneyReportHeader.tsx#L180
And here after coming back to report page from link - the report is no more part of RHP rather opens as a regular report.

What changes do you think we should make in order to solve the problem?

IMO here expected behavior should be - hide search button in RHP for web, but show search button even for RHP on mobile devices.
So add isMobile() check here.
https://github.com/Expensify/App/blob/b7c1cfafecd03db14de4a4a30ac155fe4a7fb28b/src/components/MoneyReportHeader.tsx#L180

And check in other parts of the app if we have any similar implementation and fix that as well.
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

Proposal
Updated. Made changes to make the thought expressed clearer and more understandable

Proposal
Please re-state the problem that we are trying to solve in this issue.
Inconsistency in displaying Search icon when returning to expenses opened from Search
What is the root cause of that problem?

We hide search button intentionally in case report is open in RHP here.
https://github.com/Expensify/App/blob/b7c1cfafecd03db14de4a4a30ac155fe4a7fb28b/src/components/MoneyReportHeader.tsx#L180
So when report is first open from search router - it opens in RHP, and later navigating from link - it opens as general report screen which causes inconsistency.

What changes do you think we should make in order to solve the problem?

IMO expected behavior here should be - hide search button if report is open from RHP in web, and show search button even fro RHP on mobile devices. Coz for mobile devices RHP itself opens in main screen.
Add isMobile() check here.
https://github.com/Expensify/App/blob/b7c1cfafecd03db14de4a4a30ac155fe4a7fb28b/src/components/MoneyReportHeader.tsx#L180

What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

Proposal
Please re-state the problem that we are trying to solve in this issue.
Inconsistency in displaying Search icon when returning to expenses opened from Search
What is the root cause of that problem?
To display the search button we ensure that the report is not opened in RHP
https://github.com/Expensify/App/blob/a86ee35a6c9706d8acb35202acb4cdaa1cc769e7/src/components/MoneyRequestHeader.tsx#L68
The isReportOpenInRHP determines whether the report is open in RHP using the current navigation root state but the problem is isReportInRHP is updated every time there is a re-render so the value is determined on the navigation state at which the rerender happened so if current focused screen is not open in RHP when the re-calculation happened it will update the isReportInRHP false and when we navigate back to the report opened in RHP the value will not be updated and will hold the prev wrong value so it will show the search button for the report that was opened in search RHP, hence, the inconsistency.
What changes do you think we should make in order to solve the problem?

We should calculate the isReportInRHP value once when the navigation is ready so we should:
const [isReportInRHP, setIsReportInRHP] = useState(true);
    useEffect(() => {
        Navigation.isNavigationReady().then(() => {
            setIsReportInRHP(isReportOpenInRHP(navigationRef?.getRootState()));
        });
    }, []);

We should do the same here and here
What alternative solutions did you explore? (Optional)

@muttmuure, how can I add this issue to [#whatsnext] #quality?

I can't reproduce this one on latest main 🤔.  @isabelastisser  Can you reproduce this one?
https://github.com/user-attachments/assets/395f244f-e7cd-4924-b260-af819ab4c672

Based on OP the search icon should be displayed here:

The search icon shouldn't appear there because we opened the report from RHP.

Yeah right. However, RHP only exists on larger screens. On smaller screens, it behaves like a regular page. That’s why I proposed adding isSmallScreenWidth checks in my proposal

Yes. That was also my initial thoughts.
@isabelastisser Any thoughts?

@hungvu193, sorry for the delay! So, is this the expected behavior for the specific platform? Do you think we should close it then?

@hungvu193, sorry for the delay! So, is this the expected behavior for the specific platform? Do you think we should close it then?

RHP is only for large screen sizes. So I think we should show search icon for small screen size like mobiles and mobile web.

Got it! Thanks, @hungvu193! I agree that we can move forward with the recommendation here:

Yeah right. However, RHP only exists on larger screens. On smaller screens, it behaves like a regular page. That’s why I proposed adding isSmallScreenWidth checks in https://github.com/Expensify/App/issues/51476#issuecomment-2438376737

Cool. Let's go with @nyomanjyotisa 's proposal!
🎀 👀 🎀  C+ reviewed

Issue not reproducible during KI retests. (First week)

BugZero Checklist:

[x] [Contributor] Classify the bug:

Bug classification

Source of bug:

[ ] 1a. Result of the original design (eg. a case wasn't considered)
[ ] 1b. Mistake during implementation
[ ] 1c. Backend bug
[x] 1z. Other: Improvement

Where bug was reported:

[x] 2a. Reported on production
[ ] 2b. Reported on staging (deploy blocker)
[ ] 2c. Reported on both staging and production
[ ] 2d. Reported on a PR
[ ] 2z. Other:

Who reported the bug:

[ ] 3a. Expensify user
[ ] 3b. Expensify employee
[ ] 3c. Contributor
[x] 3d. QA
[ ] 3z. Other:

[x] [Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: This is an improvement that we decided to improve after the discussion, there's no offending PR.

[x] [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: This is an small improvement, no need to create a slack convo.

[x] [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

Regression Test:

Login with any account on your mobile.
Go to Search => Click to any expense.
Verify that there's Search icon.

Do we 👍  or 👎  ?

@isabelastisser can I get a payment summary when you get a chance?

Payment summary:
@hungvu193 requires payment through NewDot Manual Requests / C+ review $250 PENDING
@nyomanjyotisa paid in Upwork automatic offer (Contributor) $250

All set!

$250 approved for @hungvu193


extend vscode version compat

hello! i have some version of vscode insiders and can't install it's 'incompatible'. i'm hoping there isn't any specific reason it's not allowed and that you could extend the allowed version down as far as compatible and then also any version larger?

i'm not sure which way my particular issue is. v1.77.1

Yep, looks like the extension has
  "engines": {
    "vscode": "^1.81.0"
  },

in the package.json.
This is actually the first vscode extension I've made.
I'm not actually sure what the proper semver to put there would be.
Maybe just `"vscode": "^1"?

yeah i think something like that may work! or literally "*" too. it's a regular package.json so can also pass a space-separated list   "vscode": ">=1.81.0 <2.0.0"

ah, * 'works' but immediately causes an issue because of compatiblity issues with versions less than 1.0.0. I've submitted a PR for >= 1.0.0


Roll engine 3b1bebf2898b..8aa51ef92c13 (2 commits)

https://github.com/flutter/engine/compare/3b1bebf2898b...8aa51ef92c13
git log 3b1bebf2898b8ed8767eac53f189d237ba71f12f..8aa51ef92c13ade60d403dff15ae0fa03fedee24 --no-merges --oneline
8aa51ef92 Roll src/third_party/skia 4732dd31588b..a5dc0f2d7a59 (1 commits) (flutter/engine#8768)
2c5d35827 Roll src/third_party/skia d7082a5805c8..4732dd31588b (1 commits) (flutter/engine#8767)
The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
If the roll is causing failures, please contact the current sheriff (bmparr@google.com), and stop
the roller if necessary.

Trybots failed. These were the failed builds: https://cirrus-ci.com/task/4692474739032064

Commit queue failed; closing this roll.


Use full_path to find groups

I think this will help for #6. @gdubicki what do you think?
I don't know when this attribute was added, sorry.

Thank you for this contribution, but please see https://github.com/egnyte/gitlabform/issues/6#issuecomment-499632832 .


[BEAM-2822] Add fn API progress reporting protos

Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Make sure there is a JIRA issue filed for the change (usually before you start working on it).  Trivial changes like typos do not require a JIRA issue.  Your pull request should address just this issue, without pulling in other changes.
[ ] Each commit in the pull request should have a meaningful subject line and body.
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue.
[ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] Run mvn clean verify to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

R: @lukecwik @robertwb : Tried to bring it inline with all the comments in the doc. PTAL.

Coverage decreased (-0.007%) to 69.731% when pulling a953356674adbfcfc97be019c8cc494ef94d2210 on vikkyrk:progress_proto into c9653f27056d9d4dd85f7951f4edbd9da524b894 on apache:master.

LGTM if you agree with my comments.

Coverage decreased (-0.05%) to 69.687% when pulling 38f8585f6efcad95f571839ac6ecb22244114a5f on vikkyrk:progress_proto into c9653f27056d9d4dd85f7951f4edbd9da524b894 on apache:master.

Coverage remained the same at 69.684% when pulling 882099e5263e4c7edddbd11264953321d636f221 on vikkyrk:progress_proto into 6dfd3a2b7d748bff049a34ea39cb5e2a0c45dba0 on apache:master.

Ping for merge.

LGTM, merging


JS: add query for useless use of cat

Adds a query that detects useless use of the unix command cat.  For example:
child_process.execSync('cat /proc/cpuinfo').toString(); // NOT OK.

These calls can be replaced with calls to fs.readFile/fs.readFileSync, which are much safer and less error-prone (if e.g. spaces are used in the input).
The pattern is not an error in itself, but it is extremely error-prone, and can easily be replaced with a much safer alternative.
I searched GitHub for uses of cat to help decide what the query should flag.
I found some cases where cat is used in combination with wildcards and pipes, which cannot be trivially replaced by fs.readFile, so these uses of cat are not flagged by the query.
It looks like many uses of the pattern originate from people copy-pasting unix bash commands without understanding that there is a better way to do the same thing in node.
Here are some examples of what the query currently flags: https://lgtm.com/query/6505146813103244250/
This also flags CVE-2018-13797.
TODO:

[x] Performance evaluation
[ ] Decide query severity and precision
[ ] Should constant strings to exec/execFile be flagged? (currently they are)
[x] LGTM wide evaluation?
[x] Qhelp
[x] change-log

I am quite interested in the more restrictive query which only flags the most blatantly useless use of cat with a dynamic file argument:
exec(`cat ${file}`, function (err, out) {
  ... out.trim().toLowerCase());	 ...
});

As that could trivially be replaced by:
readFile({file, function (err, out) {
  ... out.trim().toLowerCase());	 ...
});

I am quite interested in the more restrictive query which only flags the most blatantly useless use of cat with a dynamic file argument:

I've re-written the query to only flag the results that can be trivially replaced with a call to fs.readFile, and I also output the call that would have to be made.
I still include reads from constant strings though (because constant-strings doesn't always stay constant as a program matures).
Here are some results: https://lgtm.com/query/344037768842122887/

Oh wow. That is actually more common than I expected, well done.
I think this query is more precise than the two siblings mentioned below. Neither of those queries have the security tag, but I agree that this query deserves that tag as it flags a giant code smell for code execution, a smell that may have leaked to nearby code.

We have a sibling query on LGTM.com where the results may be FPs in rare cases: https://github.com/Semmle/ql/blob/de66841263665ad15f64fffa13e9e0432735761a/javascript/ql/src/DOM/PseudoEval.ql#L2

We also have a sibling query that is not on LGTM.com as more of its results are FPs: https://github.com/Semmle/ql/blob/de66841263665ad15f64fffa13e9e0432735761a/javascript/ql/src/LanguageFeatures/Eval.ql#L2

I think you should have a look at https://github.com/Semmle/ql/blob/de66841263665ad15f64fffa13e9e0432735761a/javascript/ql/src/semmle/javascript/Concepts.qll#L13 to flag even more cases. You probably need to add an abstract isSync  member predicate.

Some feedback on the alert messages:
Useless use of `cat`. Can be replaced with: fs.readFileSync(`${newpath}`)

${newpath} should be desugared to just newpath. A case analysis on the template strings should be enough.
The entire call is selected, which means that many lines are selected in the case of inlined callback functions. Use import semmle.javascript.RestrictedLocations and x.(FirstLineOf)

I think you should have a look at https://github.com/Semmle/ql/blob/de66841263665ad15f64fffa13e9e0432735761a/javascript/ql/src/semmle/javascript/Concepts.qll#L13 to flag even more cases. You probably need to add an abstract isSync  member predicate.

My first iteration of the query actually used the SystemCommandExecution class.  I'll try to do that again.

Here are the results of the revised query on the same set of benchmarks: https://lgtm.com/query/8990960795230963842/

Semantically, I am a bit concerned about https://lgtm.com/projects/g/nodyn/nodyn/snapshot/eb587c6244757699905b2b24b2e4e26384a3dd08/files/src/test/javascript/childProcessSpec.js?sort=name&dir=ASC&mode=heatmap#L13:
    var proc = child_process.spawn('/bin/cat', [ 'pom.xml' ]);
    proc.stdout.on('data', function(d) {
      content += d.toString();
    })
    proc.on('close', function() {
      expect( content.indexOf( '<project xmlns' ) ).toBeGreaterThan(0);
      expect( content.indexOf( '</project>' ) ).toBeGreaterThan(0);
      helper.testComplete(true);
    })

The proc.on usage indicates a non-trivial reading of the cat output, even though it is trivial in this case.

I agree, I've found the same thing. I think the query should not flag when the process object is used.
Here is a good example in Node.

The current results contain plenty of examples of how not to read a file, but it doesn't seem like there are exploitable vulnerabilities among the results.
This one is close, but it is saved by a sanitizer in the formidable library.

A performance evaluation shows that the query adds a little execution time to all projects.

Thanks for all the doc updates @erik-krogh - it looks great 🥇


[vm/ffi] Throw the same errors in recognized methods & runtime entries

The optimized FFI operations and their slow runtime entry counter parts should throw the same exceptions (both type and message).
We should write tests for that check the exception type and the message.
/cc @mkustermann

IIRC we actually had tests but they got rewritten recently to check only for presence of an exception and no longer checks the specific type.
Coordinate with @lrhn which is the right exception. But our CheckNull instruction we cannot change, so that exception type will stay. (imho it doesn't really matter that much which one we throw)
Priority: Very low :)


Add symlinks to support disconnected service tests.

@mattgreene
Hi Matt, this PR debugs/implements test exclusion on the agent liberty branch.   The intent is to establish a baseline set of tests that consistently pass.  Once that baseline exists "noisier" tests can be inspected/fixed and added to the set of running tests.   Is this still our plan for the agent?
Issues:
Fixes #647
Problem: disconnected_service tests were not sym-linked from the projects
subdirectories and, as a result were not run in the nightly regression.
Analysis: Adding the symlinks cause the tests to run.
Tests: This fix was tested by running in a local "buildbot sandbox".
What's this change do?

Makefile:
L47   --   fix typo
L142 --   make 2nd target run, even if first succeeds
L164 --   remove dev note
L181 --    make "clean" target execute even if testenv delete succeeds
conftest.py symlinks:
make py.test find the appropriate fixtures
noregress.yaml s:
exclude more tests

Hi @szakeri, can you review this PR please?

@szakeri 's has a better mechanism for this.


windows install screenpipe didnt work - tauri private key not found

How do I get around this?

I have the same issue. Could it be linked to https://github.com/mediar-ai/screenpipe/issues/321 ??

The generated exe (\screenpipe\screenpipe-app-tauri\src-tauri\target\release\bundle\nsis) ran manually works though

it shows error but still work, dont worry

thank you!


Refactor ModelBackedDrawable and improve testing

Fixes ppy/osu#4574
I've maintained the previous logic for the time being - the placeholder is loaded without a delayed load wrapper.

Updates with more correct placeholder logic and tests covering FadeOutImmediately cases.
Note that I've made every test run all four combinations even if they don't directly test against the conditions, just for more extensive coverage.


Migrate demo space

Hi! What is your PR about?

[ ] Add or edit a skin
[ ] Add a custom domain for your space
[ X] Add an alias to migrate your space

Hey these are demo spaces

Unfortunately, you are not allowed to migrate spaces to the demo.


Derby bootstrap does not complete successfully

I recently encountered the following exceptions when attempting to migrate my local derby databases (fhirDB, profile, reference, study1)  using derby-bootstrap.sh:
java.sql.SQLSyntaxErrorException: Column 'LR.RESOURCE_TYPE_ID' is either not in any table in the FROM list or appears within a join specification and is outside the scope of the join specification or appears in a HAVING clause and is not in the GROUP BY list. If this is a CREATE or ALTER TABLE  statement then 'LR.RESOURCE_TYPE_ID' is not a column in the target table.
com.ibm.fhir.database.utils.api.DataAccessException: java.sql.SQLSyntaxErrorException: Column 'LR.RESOURCE_TYPE_ID' is either not in any table in the FROM list or appears within a join specification and is outside the scope of the join specification or appears in a HAVING clause and is not in the GROUP BY list. If this is a CREATE or ALTER TABLE  statement then 'LR.RESOURCE_TYPE_ID' is not a column in the target table.
	at com.ibm.fhir.database.utils.derby.DerbyTranslator.translate(DerbyTranslator.java:100)
	at com.ibm.fhir.schema.control.MigrateV0014LogicalResourceIsDeletedLastUpdated.runForDerby(MigrateV0014LogicalResourceIsDeletedLastUpdated.java:144)
	at com.ibm.fhir.schema.control.MigrateV0014LogicalResourceIsDeletedLastUpdated.run(MigrateV0014LogicalResourceIsDeletedLastUpdated.java:58)
	at com.ibm.fhir.database.utils.common.CommonDatabaseAdapter.runStatement(CommonDatabaseAdapter.java:460)
	at com.ibm.fhir.database.utils.derby.DerbyAdapter.runStatement(DerbyAdapter.java:302)
	at com.ibm.fhir.schema.app.Main.dataMigrationForV0014(Main.java:1857)
	at com.ibm.fhir.schema.app.Main.dataMigrationForV0014(Main.java:1832)
	at com.ibm.fhir.schema.app.Main.applyDataMigrationForV0014(Main.java:1683)
	at com.ibm.fhir.schema.app.Main.updateSchema(Main.java:410)
	at com.ibm.fhir.schema.app.Main.process(Main.java:1984)
	at com.ibm.fhir.schema.app.Main.main(Main.java:2082)
Caused by: java.sql.SQLSyntaxErrorException: Column 'LR.RESOURCE_TYPE_ID' is either not in any table in the FROM list or appears within a join specification and is outside the scope of the join specification or appears in a HAVING clause and is not in the GROUP BY list. If this is a CREATE or ALTER TABLE  statement then 'LR.RESOURCE_TYPE_ID' is not a column in the target table.
	at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
	at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
	at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
	at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
	at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
	at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
	at org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source)
	at org.apache.derby.impl.jdbc.EmbedStatement.executeQuery(Unknown Source)
	at com.ibm.fhir.schema.control.MigrateV0014LogicalResourceIsDeletedLastUpdated.runForDerby(MigrateV0014LogicalResourceIsDeletedLastUpdated.java:113)
	... 9 more
Caused by: ERROR 42X04: Column 'LR.RESOURCE_TYPE_ID' is either not in any table in the FROM list or appears within a join specification and is outside the scope of the join specification or appears in a HAVING clause and is not in the GROUP BY list. If this is a CREATE or ALTER TABLE  statement then 'LR.RESOURCE_TYPE_ID' is not a column in the target table.
	at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
	at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
	at org.apache.derby.impl.sql.compile.ColumnReference.bindExpression(Unknown Source)
	at org.apache.derby.impl.sql.compile.ColumnReference.bindExpression(Unknown Source)
	at org.apache.derby.impl.sql.compile.BinaryOperatorNode.bindExpression(Unknown Source)
	at org.apache.derby.impl.sql.compile.BinaryComparisonOperatorNode.bindExpression(Unknown Source)
	at org.apache.derby.impl.sql.compile.SelectNode.bindExpressions(Unknown Source)
	at org.apache.derby.impl.sql.compile.DMLStatementNode.bindExpressions(Unknown Source)
	at org.apache.derby.impl.sql.compile.DMLStatementNode.bind(Unknown Source)
	at org.apache.derby.impl.sql.compile.CursorNode.bindStatement(Unknown Source)
	at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
	at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
	at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown Source)
	... 12 more

This same error occurred for 3 of 4 databses (fhirDB, profile, and study1). After a discussion with @lmsurpre it appears that the tables for resource types Practitioner, CodeSystem, and PractitionerRole do not have the RESOURCE_TYPE_ID column and that it should be removed from the SELECT statement for resource type specific tables in the migration code.

I re-ran the derby-bootstrap.sh script after rebuilding CLI from main and it successfully updated all 4 local databases.


Change/delete inner tag not working correctly

Extension of issue #418.
Change/delete inner tag is not working like it does in vim. It should detect the tag it is in (or the nearest tag, as vim does), then change/delete all content within that tag.
Currently it appears to delete everything until the next tag it finds, even if that tag isn't the same as the parent. Really buggy right now.

As stated in the README, this package is no longer maintained and is deprecated. We recommend that people use the vim-mode-plus package instead. Because of this, we are archiving this repository and closing all issues and pull requests. Thanks very much for your support and contributions!


Carousel.next() does not stop on last Element

CodePen Example

When invoking .next() function on an instance of Carousell with the nowrap option set to true on the last picture scrolls to an empty space
Expected Behavior

When invoking function on last picture there should be no movements at all, like the .prev() function

Current Behavior

Scrolls further into an empty space

Possible Solution

Testing for the right index failed at some point

Steps to Reproduce

create a carousel with nowrap enabled
invoke .next() function in some way on last picture
...
Profit

Context

Your Environment

Browser Name and version: Mozilla Firefox v60.0.2
Operating System and version (desktop or mobile): Desktop

Fixed in d6837988.
Thanks for pointing this out!


fix: set proper ccm & csi maximum version

IMPORTANT: Please do not create a Pull Request without creating an issue first.
Problem:
The current default value is invalid, as it will prevent users from successfully selecting the Harvester cloud provider when creating or modifying the RKE2 Kubernetes cluster.
Solution:
Update the CSI & CCM maximum supported versions (We will bump the chart minor release version if it contains a significant design change). e.g.,

Harvester version
RKE2 with old CCM design
RKE2 with new CCM design( v0.2 - https://github.com/harvester/harvester/issues/2134)

>= v1.2
Supported
Supported

< v1.2
Supported
Not Supported

Related Issue:
https://github.com/harvester/harvester/issues/3404
Test plan:

import an existing Harvester cluster(e.g., v1.1.2-rc3) into a Rancher server (>= v2.6.9 or v2.7)
spin up a guest RKE2 k8s cluster(>= v1.24.10); its built-in Harvester CCM chart version is v0.1.14, and users can still select the Harvester cloud provider, but its configured harvester-csi-ccm-versions setting value is "harvester-cloud-provider":">=0.0.1 <0.1.14".
replace the ui-dashboard-index value in the Rancher global setting page - request it from @n313893254
you should not be able to select the Harvester cloud provider as the UI validation is enabled with the above modification.
update the Harvester management chart, and patch the Harvester API server with a custom image(or patch the Harvester default setting value manually to {"harvester-cloud-provider":">=0.0.1 <0.2.0","harvester-csi-provider":">=0.0.1 <0.2.0"})
now, you should be able to select the Harvester cloud provider correctly.

@mergify backport v1.1.


s/Christopher Chedeau/

I'd like to be referred as vjeux on the internet as much as possible :)

Will do :)


clang-tidy: modernize replace auto_ptr

Automatic changes, using clang-tidy -fix, with only minor manual fixes.
It seems gcc 4.8 has issues with unqualified move calls in some specific cases. Some std:: qualifiers are needed for the code to compile.
Some new headers are also needed to avoid errors when using unique_ptr with incomplete classes.

Builds with VS 2012 so good to merge once review comments have been addressed!
Then we can add a comment to https://github.com/appleseedhq/appleseed/issues/93 that the replacement has finally been done.

Fixed and rebased


[4.0][Features][WIP] Default operation configuration methods, different ways to split setup() by operation

TLDR: I've added a way to specify which operation you're referring to, for each $this->crud->smth() call - basically including those calls in a closure. I'm wondering if we should make this optional or mandatory. Skip to Feature 2 for details.

This PR adds two features:
(1) Operations can have defaults
Premise/problem: Some operations, when enabled, need to add things like settings, buttons, etc. For example, ReorderOperation needs a button to show up in the "top" stack if enabled. Previously this had been hard-coded in initButtons() - which was ugly and difficult to overwrite.
Solution: Similar to how we decided to do about routes, Operations can have a magic method inside them: setupOperationNameDefaults(). If present, that method will be called before setup().
Example: Once you use the ReorderOperation trait on your EntityCrudController, this method will automatically be run, so the button will be added automatically.
    /**
     * Add the default settings, buttons, etc that this operation needs.
     */
    protected function setupReorderDefaults()
    {
        $this->crud->set('reorder.enabled', true);
        $this->crud->allowAccess('reorder');
        $this->crud->addButton('top', 'reorder', 'view', 'crud::buttons.reorder');
    }

Very happy with this feature.
(2) Specify which Operation the current CrudPanel call is referring to
Premise/problem: Currently, you don't know which operation your CrudPanel calls affects, when calling them from the setup() method:

when doing $this->crud->addField('text'), it adds the field to both Create and Update operations; you can specify which operation using a second parameter;
when doing $this->crud->addColumn('text'), it adds the column to the List operation;
when doing $this->crud->addButton(), it adds the button to the List operation;
when doing $this->crud->addFilter(), it adds the filter to the List operation;
when doing $this->crud->enableDetailsRow(), it affects the List operation;

(and so on; for all the List operations above, you can't actually specify which operation you're referring to, not with a second parameter, not with anything)
I think this is confusing, because some CrudPanel features are actually used by multiple operations:

both Create and Update use Fields, Tabs, Errors, etc;
both List and Show use Columns and Buttons in Show;

Currently the Show operation does setFromDb(), but it also includes any columns you specified with $this->crud->addColumn() in setup. Super-confusing, I think.
Solution: This PR adds an operation() method, that is currently optional, but I'm thinking of making it mandatory. I could use a second opinion on that. Basically I think all calls to fields, columns, buttons, filters, etc, should specify which operation they're referring to:
// specify the operation using a closure
$this->crud->operation('list', function() {
    $this->crud->addColumn('text');
    $this->crud->enableDetailsRow();
});

// operation can also be an array of operations
$this->crud->operation(['create', 'update'], function() {
    $this->crud->addField('text');
});

Example:: Here's how a CategoryCrudController could look, when splitting calls in operations.
<?php

namespace Backpack\NewsCRUD\app\Http\Controllers\Admin;

use Backpack\CRUD\app\Http\Controllers\CrudController;
use Backpack\CRUD\CrudPanelFacade as CRUD;

// VALIDATION: change the requests to match your own file names if you need form validation
use Backpack\NewsCRUD\app\Http\Requests\CategoryRequest as StoreRequest;
use Backpack\NewsCRUD\app\Http\Requests\CategoryRequest as UpdateRequest;

class CategoryCrudController extends CrudController
{
    use \Backpack\CRUD\app\Http\Controllers\Operations\ListOperation;
    use \Backpack\CRUD\app\Http\Controllers\Operations\CreateOperation;
    use \Backpack\CRUD\app\Http\Controllers\Operations\UpdateOperation;
    use \Backpack\CRUD\app\Http\Controllers\Operations\DeleteOperation;
    use \Backpack\CRUD\app\Http\Controllers\Operations\ReorderOperation;

    public function setup()
    {
        /*
        |--------------------------------------------------------------------------
        | BASIC CRUD INFORMATION
        |--------------------------------------------------------------------------
        */
        CRUD::setModel("Backpack\NewsCRUD\app\Models\Category");
        CRUD::setRoute(config('backpack.base.route_prefix', 'admin').'/category');
        CRUD::setEntityNameStrings('category', 'categories');

        /*
        |--------------------------------------------------------------------------
        | OPERATION CONFIGURATION
        |--------------------------------------------------------------------------
        */

        CRUD::operation('list', function() {
            CRUD::addColumn('name');
            CRUD::addColumn('slug');
            CRUD::addColumn([
                'label' => 'Parent',
                'type' => 'select',
                'name' => 'parent_id',
                'entity' => 'parent',
                'attribute' => 'name',
                'model' => "Backpack\NewsCRUD\app\Models\Category",
            ]);
        });

        CRUD::operation(['create', 'update'], function() {
            CRUD::addField([
                'name' => 'name',
                'label' => 'Name',
            ]);
            CRUD::addField([
                'name' => 'slug',
                'label' => 'Slug (URL)',
                'type' => 'text',
                'hint' => 'Will be automatically generated from your name, if left empty.',
                // 'disabled' => 'disabled'
            ]);
            CRUD::addField([
                'label' => 'Parent',
                'type' => 'select',
                'name' => 'parent_id',
                'entity' => 'parent',
                'attribute' => 'name',
                'model' => "Backpack\NewsCRUD\app\Models\Category",
            ]);
        });

        CRUD::operation('reorder', function() {
            CRUD::enableReorder('name', 2);
        });
    }

    public function store(StoreRequest $request)
    {
        return $this->storeEntry($request);
    }

    public function update(UpdateRequest $request)
    {
        return $this->updateEntry($request);
    }
}

Nice and clean, I think.
As a bonus: whatever you specify inside that closure is only run during that operation. This way,  all your addField() calls only happen when you're running the Create or Update operation. It won't be called during List or Reorder. This would fix #1375  and make the CrudController run faster, since at a certain time, not everything inside setup() will be called, but only:

whatever is outside a closure
whatever is inside the closure for the current operation

But I'm worried that:

it would make the upgrade process slightly more difficult;
it's a bit "magical"; is it more or less confusing than the current way? would you expect what is inside that closure to be run all the time, or just during that operation?

Thoughts anyone? @OwenMelbz , @OliverZiegler , @tswonke , @AbbyJanke , @lloy0076  maybe?

On second thought, do we really want to define operations in closures inside the setup() method?
A simple alternative that would also fix the problem above, would be to have yet another magic method on the operation (like setupReorderRoutes() and setupReorderDefaults()), say... setupReorderConfiguration(), that if present, will be called when that operation is run.
Then an EntityCrudController could look something like this:
<?php

namespace Backpack\NewsCRUD\app\Http\Controllers\Admin;

use Backpack\CRUD\app\Http\Controllers\CrudController;
use Backpack\CRUD\CrudPanelFacade as CRUD;

// VALIDATION: change the requests to match your own file names if you need form validation
use Backpack\NewsCRUD\app\Http\Requests\CategoryRequest as StoreRequest;
use Backpack\NewsCRUD\app\Http\Requests\CategoryRequest as UpdateRequest;

class CategoryCrudController extends CrudController
{
    use \Backpack\CRUD\app\Http\Controllers\Operations\ListOperation;
    use \Backpack\CRUD\app\Http\Controllers\Operations\CreateOperation;
    use \Backpack\CRUD\app\Http\Controllers\Operations\UpdateOperation;
    use \Backpack\CRUD\app\Http\Controllers\Operations\DeleteOperation;
    use \Backpack\CRUD\app\Http\Controllers\Operations\ReorderOperation;

    /**
     * Configure the CrudPanel object.
     */
    public function setup()
    {
        CRUD::setModel("Backpack\NewsCRUD\app\Models\Category");
        CRUD::setRoute(config('backpack.base.route_prefix', 'admin').'/category');
        CRUD::setEntityNameStrings('category', 'categories');
    }

    /**
     * Configure the Reorder operation.
     */
    public function setupReorderConfiguration()
    {
        CRUD::set('reorder.label', 'name');
        CRUD::set('reorder.max_level', 2);
    }

    /**
     * Configure the List operation.
     */
    public function setupListConfiguration()
    {
        CRUD::addColumn('name');
        CRUD::addColumn('slug');
        CRUD::addColumn([
            'label' => 'Parent',
            'type' => 'select',
            'name' => 'parent_id',
            'entity' => 'parent',
            'attribute' => 'name',
            'model' => "Backpack\NewsCRUD\app\Models\Category",
        ]);
    }

    /**
     * Configure the Create operation.
     */
    public function setupCreateConfiguration()
    {
        CRUD::addField([
            'name' => 'name',
            'label' => 'Name',
        ]);
        CRUD::addField([
            'name' => 'slug',
            'label' => 'Slug (URL)',
            'type' => 'text',
            'hint' => 'Will be automatically generated from your name, if left empty.',
            // 'disabled' => 'disabled'
        ]);
        CRUD::addField([
            'label' => 'Parent',
            'type' => 'select',
            'name' => 'parent_id',
            'entity' => 'parent',
            'attribute' => 'name',
            'model' => "Backpack\NewsCRUD\app\Models\Category",
        ]);
    }

    /**
     * Configure the Update Operation.
     */
    public function setupUpdateConfiguration()
    {
        $this->setupCreateConfiguration();
    }

    public function store(StoreRequest $request)
    {
        return $this->storeEntry($request);
    }

    public function update(UpdateRequest $request)
    {
        return $this->updateEntry($request);
    }
}

Can't say that I like this more/less than using closures. It feels less magical, but it also feels a little bloated somehow, even if it's not...
Also, there's no reason we can't have all options:

(A) everything spilled inside setup(), like it's been in v3;
(B) closures inside setup();
(C) magic setupReorderConfiguration() methods;

In fact, this PR does have all of them. And the order for the configuration setup is:

first everything that's in setup(), but outside closures;
then everything that's in setupReorderDefaults();
then, only during this operation, whatever's inside setup() as closure;
then, only during this operation, whatever's inside setupReorderConfiguration();

Right now I think:

(A) I don't like it. It would provide backwards-compatibility; but it's the most confusing; and it would require each feature (Columns, Fields, Buttons, Filters, etc) to have a default operation, some scope it's being called on if no operation has been specified; I really don't like that;
(B) I like it. Seems clean and laravelly; but confusing to have things both inside and outside closures; you wouldn't intuitively know this will only be run during that operation;
(c) I like it. Seems like it would make controllers bigger, but actually it wouldn't - it would just split the setup() method into a bunch of other methods, one for each operation;

Anybody else have any thoughts about this?

I know nobody's going to read looong thread. But I've decided to:

keep both (B) and (C);
force developers to specify which operation is call refers too; I've provided a fallback so that old Controllers work (it assumes that it's about the current operation), which worked fine for 90% of my old Controllers, but I don't expect it to work for 100%;

Merged into cleanup-crudpanel-object here https://github.com/Laravel-Backpack/CRUD/pull/1997


Refactor query execution

depends on https://github.com/estie-inc/snowflake-connector-rs/pull/24
Add QueryExecutor to fetch a chunk asynchronously.

Fixed.
Squashed all commits to the last one

Rebased and added tests

The changes have been shipped as version 0.3.0. Thank you for your contribution!


Create lambda with cognito-sync-trigger.

Which Category is your question related to?
cognito-sync-trigger
Amplify CLI Version
10.0.0
What AWS Services are you utilizing?
lambda, cognito, appSync
Provide additional details e.g. code snippets. Be sure to remove any sensitive data.
Can I create a lambda with a cognito-sync-trigger from the cli? When i select the trigger option template, it only allows me to select dynamo and kinesis streams.
https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-events.html

Hey @LeoReubelt, the workflow is currently not supported. If you are looking to synchronize application data across devices I would suggest utilizing AWS AppSync.
marking this as feature request.


cannot sync

the postman client cannot sync
i keep login/logout and it still shows "fail to sync"

:+1:

@finalight The service is up. Can you try again?

nope, still doesn't work, same result as the screenshot i posted above
must i logout and login back to see the sync?

Were you able to sync earlier? You can try logging out and logging in, but we don't see any errors. Might be a temporary network issue somewhere.

okay, now it's even worst; I can't login to my account anymore

What error are you getting? Are you getting an incorrect password error, or a connectivity error, or is the login window not opening?

:+1: also have this syncing problem... can login / logout but does not sync

@NoScopie @finalight Are you still seeing this issue?

i still do see it sometimes and I don' tknow why it keep asking me to force resync
because of that reason, i lost quite a few end points that I've made so far
I'm the only one using the POSTMAN client (one man team) and yet I have this problem

@finalight Can you try signing out and signing back in? You should take a backup (Settings > Data > Download) before you sign out if you feel some data might not have been synced properly.

@abhijitkane I am using the beta version now and there the syncing is even worse, requests get deleted, requests are moved, etc etc... but I just export to json atm

Already did many times but it still doesn't work
And yes I force resync several times since the first time resync fails
appears
On Thursday, 16 July 2015, Abhijit Kane<EMAIL_ADDRESS>wrote:

@finalight https://github.com/finalight Can you try signing out and
signing back in? You should take a backup (Settings > Data > Download)
before you sign out if you feel some data might not have been synced
properly.
—
Reply to this email directly or view it on GitHub
https://github.com/postmanlabs/postman-app-support/issues/1033#issuecomment-121940235
.

Please email us at<EMAIL_ADDRESS>for Sync issues. The platform is quite stable now and we have been able to support thousands of users concurrently.


Sample app as library

In my project I am trying to use a white label app as a library.  I made a small simulation of a simple android app and by changing the build.gradle to apply plugin: 'com.android.library and in the sample app works but my  in my app that uses Mortar Architect is no working.
It looks like it cannot find the classes that are auto-generated.
Any idea how to fix this?
\Mortar-architect\app\src\main\java\com\mortarnav\presenter\HomePresenter.java:69: error: cannot find symbol   Navigator.get(getView()).push(new SubnavStackable());

I found the problem,
This is related to using ButterKnife in a library project, these were the source of the problem and not being able to generate the Stackable classes. I ended up using ButterFork and its working now :)

Thanks for the heads up, didn't know about the butterfork project :+1:


Yanked Bindgen

Hi! I was wanting to use your .zip to fix my issues with setting up the gamecube adapter to work with mupen64plus but it will not let me initiate the build process due to version 0.54.1 being removed:
E:\Program Files\mupen64plus>cargo build
Updating crates.io index
error: failed to select a version for the requirement bindgen = "^0.54.1"
candidate versions found which didn't match: 0.57.0, 0.56.0, 0.55.1, ...
location searched: crates.io index
required by package mupen64plus-input-gca v0.1.0 (E:\Program Files\mupen64plus)
Can you help?

Fixed in #2


Tasks 607-610

Reviews: https://github.com/swarooprm/CSE576HW/pull/24

@arlenfan, could you fix the readme file so that tests pass?

All checks seem to have passed this time.

Thanks, the tasks all look good to me!


Fixed serious contents mistake

Previously, in the solution of Task 1, period $P$ was $-$ for some reason $-$ measured in $T^{-1}$. However, period is time, therefore, $[P]=T$.

Красавчик молодец!


[EDGENT-413] Adding publishing support for ASF repos.

This is the first step for EDGENT-413.  The publishing support was mostly there, this adds references to the ASF managed username/password and snapshot URL, if we choose snapshots.  When doing a release you can now publish and it will create a staging repo.
To setup staging, you would need to create ~/.gradle/gradle.properties and add asfNexusUsername and asfNexusPassword as properties, pointing to your ASF credentials.

LGTM, although I'm probably not the best person to review this PR as I have little experience with gradle.
Am I correct in thinking this will publish to the Maven snapshots/release repository when a new snapshot/release is created?
@dlaboss

@johnament thanks for the contribution!
I'm pretty ignorant about uploading things to mavencentral so I've got questions.
(Note my code review question and the "signAll" task).
Do these changes do all that's required to meet the ASF policies for publishing to mavencentral?  What testing has / can been done to verify the changes?
What testing has been done to verify these changes do everything that's required?  Can you
(e.g., can you build an Edgent application using maven?)  Both upload and testing that a client can build using mavencentral artifacts. Exactly what artifacts are uploaded?  What does the pom look like?
We have a small amount of documentation for Publish to a Maven Repository  Could you enhance that to cover these new non-local publish capabilities?  (the setup details and what gradle task to use for the local publish.  Is it really just the "my ASF credentials" that are needed?)
Once the additional details are present the RM guide doc needs to be updated as well.  I'm happy to do that once all of the "how to use" info is in place.

On Mon, May 22, 2017 at 3:49 PM Dale LaBossiere<EMAIL_ADDRESS>wrote:

@johnament https://github.com/johnament thanks for the contribution!
I'm pretty ignorant about uploading things to mavencentral so I've got
questions.
(Note my code review question and the "signAll" task).

I have many questions about this area, and was planning to start a separate
discussion thread.  I suspect you may have been doing it the hard way.

Do these changes do all that's required to meet the ASF policies for
publishing to mavencentral? What testing has / can been done to verify the
changes?

The ASF has no such policies.  We provide for it at an infrastructure level
but that's it.  The default binary expectations apply.
I've tested it locally by publishing to a local maven repo.  Its not a
perfect test since my local maven repo is just an http server.

What testing has been done to verify these changes do everything that's
required? Can you
(e.g., can you build an Edgent application using maven?) Both upload and
testing that a client can build using mavencentral artifacts. Exactly what
artifacts are uploaded? What does the pom look like?

There's an open request with infra to create your staging area.  Once thats
been done we can start talking about CI including pushes to ASF's internal
nexus instances.  We would only push to maven central during a release,
hence why the URLs are different.
To be honest, this isn't meant to be a one and done type of change, we'll
need to refine the release process a bit to clean up some of the issues, so
I actually suspect this to be 1st of N pull requests on this JIRA.

We have a small amount of documentation for Publish to a Maven Repository
https://github.com/apache/incubator-edgent/blob/master/DEVELOPMENT.md#publish-to-maven-repository
Could you enhance that to cover these new non-local publish capabilities?
(the setup details and what gradle task to use for the local publish. Is it
really just the "my ASF credentials" that are needed?)

Yep, I can do that.  Though I'm not sure where that task name came from
(while gradle is beautiful tool, its sometimes very black magic to me).

Once the additional details are present the RM guide doc
https://cwiki.apache.org/confluence/display/EDGENT/Release+Manager's+Guide#ReleaseManager'sGuide-TaggingandPublishingtheRelease
needs to be updated as well. I'm happy to do that once all of the "how to
use" info is in place.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/apache/incubator-edgent/pull/307#issuecomment-303201688,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAGmhwhC7bcx93kCyMLVYoi70a1wG2DDks5r8ebYgaJpZM4NfUGm
.

Re: I have many questions about this area, and was planning to start a separate
discussion thread.  I suspect you may have been doing it the hard way.
...
To be honest, this isn't meant to be a one and done type of change, we'll
need to refine the release process a bit to clean up some of the issues, so
I actually suspect this to be 1st of N pull requests on this JIRA.
IMO we don't want to merge a PR if it breaks the current release process and we don't yet have all the pieces in place to replace it.  Want to avoid being in a "can't make a release" state.


Add EE settings for volume mounts, container options and pull arguments

Add settings to allow custom volume mount path
eg:"ansible.executionEnvironment.volumeMounts": [

     {
         "src" : "/Users/home/common/collections",
         "dest": "/Users/home/common/collections"
     }
 ],

Add setting to pass container options

 "ansible.executionEnvironment.containerOptions": ["--net=host"]

Add setting to pass container image pull arguments

"ansible.executionEnvironment.pull.arguments": ["–-tls-verify=false"]

Move execution-environment.pull-policy setting to
execution-environment.pull.policy

Add integration test for execution environment service and
providers

@ganeshrn, I can see that ansible.executionEnvironment.containerOptions and ansible.executionEnvironment.pull.arguments accepts value as list.
Also, we do have ansible.ansibleLint.arguments setting which accepts a value as a string.
IMO, we need to be consistent across the settings and thus if possible, please change the code to accept string values for ansible.executionEnvironment.containerOptions and ansible.executionEnvironment.pull.arguments

vscode/devel-vscode-ansible CI job will pass after the ALS is released on npm and the updated version is added in PR https://github.com/ansible/vscode-ansible/pull/499 to sync the change in the settings.

The CI / docs CI job is failing because of issue in https://github.com/ansible/ansible-language-server/blob/main/tools/settings-doc-generator.ts script. As per discussion with @priyamsahoo the issue will be fixed in a seperate PR.


Start using canSleepHere

See if MinecraftForge/MinecraftForge@e82a760 lets us simplify our bed code.

It doesn't. Our custom bed code happens in dimensions other than ours.


Support music

idk if i can make this function.

https://stackoverflow.com/a/34117040
https://youtu.be/uZlz1SSisYY

Hint:

https://github.com/AliceNovel/AliceNovel/blob/478b3150c5428e2bd37472e3692a8d492006950f/src/AliceNovel/MainPage.xaml.cs#L455-L478
https://alicenovel.web.app/ja/docs/anov/5

See also:

https://www.nuget.org/packages/System.Windows.Extensions/

https://stackoverflow.com/a/34117040
https://youtu.be/uZlz1SSisYY

Edit: the target platform of
System.Media.SoundPlayer is not include latest .net and crossplatforms.

https://www.reddit.com/r/dotnet/comments/10ct3hn/comment/j4hrogz/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button
NAudio looks good selection.


c++ implementation of differential action numdiff [REPLACEMENT ISSUE]

The original issue
Id: 187
Title: c++ implementation of differential action numdiff

could not be created.
This is a dummy issue, replacing the original one. It contains everything but the original issue description. In case the gitlab repository is still existing, visit the following link to show the original issue:
TODO

In GitLab by @cmastalli on Jul 18, 2019, 17:16
assigned to @ MaximilienNaveau

In GitLab by @cmastalli on Aug 29, 2019, 14:10
This issue was solved in !206.

In GitLab by @cmastalli on Aug 29, 2019, 14:10
closed


Removing rhf input dependencie

3c8ee82:

rhf 6.14.2 --> 7.1.2
adding react hooks for new logic testing necessary to create useForm() object to make a control object from it.

93fbe2b:

erros now come from formState
new format to register components ref -- > {...register}

206f388:

rhfi dependencie removed and now we will use the controller component from rhf that is a wrapper. We will need the control object too for this kind of components.

e69a3db:

Due the new logic error needed to be changed and control object needed to be mocked for testing

Same, this has some conflicts @ardguezsoc

Closing this PR as it has been in a stale status for a long time and the library has lot of changes since then and a lot of conflicts have appeared.


String indexing via column histograms

Description
This PR introduces a new String Transformation that uses String histograms for value mapping.
How does it work?
A sorted sequence of distinct string values should be provided to map String values to the space.
The sequence is treated as an equal-width histogram for the column to index.
To transforma a given String value, we look for its insertion position within the sequence using binary search:
val hist = ["a", "b", "c", "d", "e"]
val coordinate = hist.search("b").insertionPoint.toDouble / (hist.length - 1) // 0.25

Values that are not contained within the limits of the histogram are mapped to their corresponding extremes, i.e. 0.0 or 1.0.
How to use?
To use the feature, we build the histogram and provide it as part of columnStats when writing.
:histogram should also be specified for the String column to index.

Compute the histogram:

Use all distinct String values:

import org.apache.spark.sql.DataFrame
import org.apache.spark.sql.functions.col

def getAllString(df: DataFrame, columnName: String): String = {
  df
  .select(columnName)
  .distinct()
  .na.drop
  .orderBy(col(columnName).asc)
  .collect()
  .map { r =>
    val s = r.getAs[String](0)
    s"'$s'"
  }
  .mkString("[", ",", "]")
}

val histogram = getAllString(df, "test_col_name")

Use a reduced number of String values:

import org.apache.spark.sql.delta.skipping.MultiDimClusteringFunctions
import org.apache.spark.sql.DataFrame
import org.apache.spark.sql.functions.{col, min}

def getStringHistogramStr(df: DataFrame, columnName: String, numBins: Int): String = {
  val binStarts = "__bin_starts"
  val stringPartitionColumn = MultiDimClusteringFunctions.range_partition_id(col(columnName), numBins)

  df
  .select(columnName)
  .distinct()
  .na.drop
  .groupBy(stringPartitionColumn)
  .agg(min(columnName).alias(binStarts))
  .select(binStarts)
  .orderBy(binStarts)
  .collect()
  .map { r =>
    val s = r.getAs[String](0)
    s"'$s'"
  }
  .mkString("[", ",", "]")
}

val histogram = getStringHistogramStr(df, "test_col_name", 100)

Index the data as follows:

val columnStats = s"""{"test_col_name_histogram":$histogram}"""

df
  .write
  .format("qbeast")
  .option("columnsToIndex", s"test_col_name:histogram")
  .option("columnStats", columnStats)
  .save(targetPath)

If no histogram is provided in columnStats during the first write, a default histogram("a" to "z") will be used. Subsequent appends will reuse the same histogram.
A new revision will be created when a different custom histogram is provided as "columnStats".
Note: It also fixes the bug where the first write has to have overwrite write mode.
Checklist:

[x] New feature / bug fix has been committed following the Contribution guide.
[x] Add comments to the code (make it easier for the community!).
[x] Change the documentation.
[x] Add tests.
[x] Branch is updated to the main branch.

To merge into the main-1.0.0a branch with Alexey's compaction work.

I am closing this PR, which is replaced by #234
Since the feature is merged in main-1.0.0, we will use the commit there to push it to main.


Fixed the footer items to center

fixed the items in footer section to center
issue :#360

Fixed the items in footer section to center
issue:#360


Upload of the per-tenant extension

The description of Upload of the per-tenant extension is very vague, missing example of the URL. I was not able to test the API at all from given information.

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

ID: 036fbaa0-3f6b-e4f7-cd1e-c35b37cdee6e
Version Independent ID: 9efb41bd-bad8-597f-08e8-2b3c7e05f8e9
Content: Introduction to automation APIs - Business Central
Content Source: dev-itpro/administration/itpro-introduction-to-automation-apis.md
Service: dynamics365-business-central
GitHub Login: @henrikwh
Microsoft Alias: solsen

Hi.
We have linked to the PATCH request in the text (https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/dynamics-microsoft-automation-extensionupload-patch).  Please try that.

Silly me... :-)


Token Cookie not set for refresh strategy

Environment
Operating System: Linux

Node Version:     v18.19.0
Nuxt Version:     3.11.2
CLI Version:      3.11.1
Nitro Version:    2.9.6
Package Manager<EMAIL_ADDRESS>Builder:          -
User Config:      devtools, modules, auth
Runtime Modules<EMAIL_ADDRESS>Build Modules:    -

Reproduction
After a successful sign-in,
Inspect the browser tab, the access token isn't there

As you can see in the image above only the refresh token was set as cookie
Below is my nuxtconfig
export default defineNuxtConfig({
  devtools: { enabled: true },
  modules: ['@sidebase/nuxt-auth'],
  auth: {
    baseURL: 'http://<IP_ADDRESS>:3001/api',
    provider: {
      type: 'refresh',
      endpoints: {
        signIn: { path: '/auth/signin', method: 'post' },
        signOut: { path: '/auth/signout', method: 'post' },
        signUp: { path: '/auth/signup', method: 'post' },
        getSession: { path: '/users/profile', method: 'get' },
        refresh: { path: '/auth/refresh', method: 'post' },
      },
      token: {
        signInResponseTokenPointer: '/session/access_token',
        cookieName: 'access_token',
      },
      refreshToken: {
        signInResponseRefreshTokenPointer: '/session/refresh_token',
        cookieName: 'refresh_token',
      },
      sessionDataType: {
        message: 'string',
        data: {
          _id: 'string',
          email: 'string',
        },
      },
    },
  },
});

Describe the bug
After successfully signing in, the accessToken is not being stored as a cookie. I think this problem may be due to the access token being stored in memory. As a result:

I am unable to make requests to the backend server without using a composable.
Refreshing the protected page results in a redirect to the login page.

Additional context
I need to store the access token as a cookie, so that my axios request interceptors can append it as a bearer token when making a request to my backend server.
Update
This bug occurs when I configure the baseUrl to a different domain/ port from my frontend
currently my website is locally hosted as such

frontend: http://localhost:3000
backend: http://localhost:3001

Logs
No response

After hours of debugging, I realized that you must specify the token's sameSiteAttribute property as either lax or strict if your baseUrl differs from your frontend domain name.


streaming links broken for tb-sys bio

on https://www.beta.patricbrc.org/content/tb-systems-biology to jbrowse.

Fixed


ImportError

Traceback (most recent call last):   File "/Users/jiangqy/Code/ppca/bin/test.py", line 5, in <module>     from ppca import PPCA   File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/ppca/__init__.py", line 1, in <module>     from _ppca import PPCA ImportError: No module named '_ppca'
I use Python3

If I want to use Python3 ,how can I do?

Let me take a look, I thought I made it Python 3 compatible.
Probably a relative import type bug I made somewhere


HIVE-27633: HMS: MTable to Table process reduces view related SQL

What changes were proposed in this pull request?
Why are the changes needed?
Reduce unnecessary SQL queries generated by HMS.
2023-08-14T10:21:57.765615Z	   26 Query	SELECT `A0`.`VIEW_ORIGINAL_TEXT` FROM `TBLS` `A0` WHERE `A0`.`TBL_ID` = 2
2023-08-14T10:21:57.766149Z	   26 Query	SELECT `A0`.`VIEW_EXPANDED_TEXT` FROM `TBLS` `A0` WHERE `A0`.`TBL_ID` = 2

Does this PR introduce any user-facing change?
No
Is the change a dependency upgrade?
No
How was this patch tested?
local test

@cxzl25 There are alot of qtest failing possibly because of of passing null values viewOriginalText, viewExpandedText in case the tableType is null, this was done to ensure backwards compatibility.
I was trying to understand more about this improvement on what, where and how this would improve but couldnt find much on the ticket https://issues.apache.org/jira/browse/HIVE-27633 , can you also please add more details on the ticket around this.
Thanks

@cxzl25, few truncate tests are still failing

few truncate tests are still failing

Thank you for your reminder, now the test is passed, please help review. @deniskuzZ

@cxzl25 Just a question, how did you get this native query? Debug hms?
2023-08-14T10:21:57.765615Z	   26 Query	SELECT `A0`.`VIEW_ORIGINAL_TEXT` FROM `TBLS` `A0` WHERE `A0`.`TBL_ID` = 2
2023-08-14T10:21:57.766149Z	   26 Query	SELECT `A0`.`VIEW_EXPANDED_TEXT` FROM `TBLS` `A0` WHERE `A0`.`TBL_ID` = 2

Just a question, how did you get this native query? Debug hms?

In MySQL you can use
set global general_log=on;

show variables like 'general_log_file';

OR
You can use p6spy in HMS

Hi @deniskuzZ , any other concern adout this change?


Yolt Model

Hi i am trying to run yolt but unable to find YOLT configuration file in the repo please help
and where are the .weights file

you can download the weights file at https://pjreddie.com/media/files/yolo.weights
the configuration i believe is specified by editing and running the following according to the specifications of your dataset
python yolt2.py \     --mode train \     --outname 3class_boat_plane \     --object_labels_str  boat,boat_harbor,airplane \     --cfg_file ave_standard.cfg  \     --nbands 3 \     --train_images_list_file boat_airplane_all.txt \     --single_gpu_machine 0 \     --keep_valid_slices False \     --max_batches 60000 \     --gpu 0


UVI Request

--- UVI JSON ---
{
  "vendor_name": "Linux",
  "product_name": "Kernel",
  "product_version": "versions from v5.11 to before v5.12.11",
  "vulnerability_type": "unspecified",
  "affected_component": "unspecified",
  "attack_vector": "unspecified",
  "impact": "unspecified",
  "credit": "",
  "references": [
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=517c4c44b32372d2fdf4421822e21083c45e89f9",
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=2147684be1ebdaf845783139b9bc4eba3fecd9e4"
  ],
  "extended_references": [
    {
      "type": "commit",
      "value": "517c4c44b32372d2fdf4421822e21083c45e89f9",
      "note": "introduced"
    },
    {
      "type": "commit",
      "value": "2147684be1ebdaf845783139b9bc4eba3fecd9e4",
      "note": "fixed"
    }
  ],
  "reporter": "joshbressers",
  "reporter_id": 1692786,
  "notes": "",
  "description": "usb: misc: brcmstb-usb-pinmap: check return value after calling platform_get_resource()\n\nThis is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven.\nThis ID is fixed in Linux Kernel version v5.12.11 by commit 2147684be1ebdaf845783139b9bc4eba3fecd9e4, it was introduced in version v5.11 by commit 517c4c44b32372d2fdf4421822e21083c45e89f9. For more details please see the references link."
}
--- UVI JSON ---

This issue has been assigned UVI-2021-1001022


refactor(WORK-1388): add data-testid in datepicker and textfield

In this PRA I add data-testid to the BsDatepicker and SbTextfield components.
Pull request type
Jira Link: IWORK-1388

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, renaming)
[x] Refactoring (no functional changes, no api changes)
[ ] Other (please describe):

How to test this PR
Go to preview > Menu > Forms > SbDatepicker
Check if already works.
Go to preview > Menu > Forms > SbTextField
Check if already works.

Thanks for your comments @ademarCardoso, maybe can you check again?


A "system" to track when packages aren't needed any more

At some point in the past stripVTControlCharacters was added to node.
This was quasi useless at the time because most packages can't immediately adopt this.
But when something can't be used people forget about it.
However at some point it was supported in all LTS versions of node and it could have been quickly adopted.
In other words https://www.npmjs.com/package/strip-ansi should have been dead already.
Instead its usage is only going up more and more.
I think it could be helpful to have a list of features that are adopted as native JavaScript or native to node and when there is broad consensus that these are safe to use.

"Supported in all LTS versions" corresponds roughly with 2.5 - 3 years.
This also aligns with Baseline for the web.
Starting a "timer" each time a native alternative is shipped to then replace it when the timer ends could be a nice way to continually improve the ecosystem.
In it's most basic form this would be a list of features, when the features shipped in some native form and the corresponding npm packages that are made obsolete.

NVM 😅
I see that the version of shipping is already present in the manifests: https://github.com/es-tooling/module-replacements/blob/f3086e52a15a713eb7e3c9544ecc495f0d1f8d4a/manifests/native.json#L1046

It is, but maybe we could create a tool some day to automatically detect when a node function makes it into all LTS versions
We could then lookup any packages doing the same and start to move away from them
Just a thought 👀


issue: #82   I find that Create Contributing.md is missing

### Changes Made in the Repository
Added a Contributing Guide: Created a CONTRIBUTING.md file to provide clear guidelines for contributors, including steps for forking, cloning, and submitting pull requests.
Outlined Project Details: Included information about the project’s purpose, technologies used, and a fixed color palette to ensure consistency in design.

add issue no

@Piyushsahu99  its been two week there has been no response from you as well as the issue was resolved thus pr is being closed


Multiple newline's not working correctly in TextInput

Multiple newlines in a defaultValue as visible in this snippet do not work correctly:
<TextInput
  multiline={true}
  style={{ height: 200, width: 200, borderWidth: 2 }}
  defaultValue={`
Hello World!
Newline test

More newlines
 Even more newlines
  `} />

The result is a TextInput with only a newline after "Hello World!". If there are multiple newlines or if there is a whitespace after a newline the newline's are ignored.
This does occur in iOS and Android in React 0.21.0

After a bit more research I found that the problem is not with the input, but it is probably something with the JSX transformer.

Hi there! This issue is being closed because it has been inactive for a while.
But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/multiple-newlines-not-working-correctly-in-textinput
ProductPains helps the community prioritize the most important issues thanks to its voting feature.
It is easy to use - just login with GitHub. GitHub issues have voting too, nevertheless
Product Pains has been very useful in highlighting the top bugs and feature requests:
https://productpains.com/product/react-native?tab=top
Also, if this issue is a bug, please consider sending a pull request with a fix.
We're a small team and rely on the community for bug fixes of issues that don't affect fb apps.


@xlc 's linked map metadata inclusion

Reopened since it needed runtime bump/rebuild.
CC @xlc

I can do a rebase & version bump on my branch if you want

I have rebased and bumped version on my branch https://github.com/paritytech/substrate/pull/2037


[Go Live][Apr 07]

Push to live

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

File
Status
Preview URL
Details

msteams-platform/resources/schema/manifest-schema.md
:white_check_mark:Succeeded
View

msteams-platform/whats-new.md
:white_check_mark:Succeeded
View

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


updated bcs to 0.1.4 version (diem/bcs)

Motivation
updated reference to novifinanical link for serde-reflection
Have you read the Contributing Guidelines on pull requests?
(Write your answer here.)
Test Plan
CI/CD exixting testcases will cover above changes

/canary

:broken_heart: Test Failed - ci-test

/canary

:broken_heart: Test Failed - ci-test

/canary

:sunny: Canary successful

/land

@dhaneshacn :exclamation: This PR is still missing approvals, unable to queue for landing

/land

@dhaneshacn :exclamation: This PR is still missing approvals, unable to queue for landing

/land

@Nirish133 :exclamation: This PR is still missing approvals, unable to queue for landing


UI issue to consider -  inconsistency in target networks list representation.

The EditMap window has not changed since the old UI. Yet, the target networks list representation is a little bit confusing since now we have the 'To' column and the Filtering by the To field value in NetworkMaps window.
What we have in EditMap windows like this:

The title says Target namespaces / networks and for the second network the representation is exactly as the title says , though for the default it is not the same .
So, In 'To' Column we see it as 'Pod network' , though for filtering we only could enter 'Pod' value.

Not sure if all these stuff is important, but I think maybe we could represent the default network in the same style as the title says: Target namespaces / networks. And the value in 'To' field could be the same value the user could give in 'To' filtering .

moving to 2.4.1 because of feature freeze

moving to next because of capacity

addressed by https://github.com/kubev2v/forklift-console-plugin/pull/938