Update cypress to use centos docker image

The old cypress docker image used Debian as base image, but the bureau policy only allows centos or alpine
The new cypress docker image is now based on centos with nodejs and chrome browser
Cypress has been updated to 7.1.0 in package.json and yarn.lock
Additions

Created a cypress Dockerfile based on centos that installs nodejs and Google chrome browser
Added a cypress user and removed files in Dockerfile that cause vulnerability scans to fail

Changes

Updated Jenkinsfile to use cypress image pushed to docker registry
Modified docker-compose.e2e.yml to use cypress centos docker image
Updated Jenkinsfile to only build cypress image if it is not already in docker registry
Added try / finally statements to free docker resources used
Updated Jenkinsfile to run cypress docker containers as non-root user

How to test this PR

docker-compose -f docker-compose.e2e.yml run admin-tests
docker-compose -f docker-compose.e2e.yml run component-tests
docker-compose -f docker-compose.e2e.yml run consumer-tools-tests
docker-compose -f docker-compose.e2e.yml run data-research-tests
docker-compose -f docker-compose.e2e.yml run paying-for-college-tests
docker-compose -f docker-compose.e2e.yml run rules-policy-tests

OR
docker-compose -f docker-compose.e2e.yml up
Checklist

[x] PR has an informative and human-readable title

PR titles are used to generate the change log in releases; good ones make that easier to scan.
Consider prefixing, e.g., "Mega Menu: fix layout bug", or "Docs: Update Docker installation instructions".

[x] Changes are limited to a single goal (no scope creep)
[x] Code follows the standards laid out in the CFPB development guidelines
[ ] Future todos are captured in comments and/or tickets
[ ] Project documentation has been updated, potentially one or more of:

This repo’s docs (edit the files in the /docs folder) – for basic, close-to-the-code docs on working with this repo
CFGOV/platform wiki on GHE – for internal CFPB developer guidance
CFPB/hubcap wiki on GHE – for internal CFPB design and content guidance

Front-end testing
Browser testing
Visually tested in the following supported browsers:

[ ] Firefox
[ ] Chrome
[ ] Safari
[ ] Edge 18 (the last Edge prior to it switching to Chromium)
[ ] Internet Explorer 11 and 8 (via emulation in 11's dev tools)
[ ] Safari on iOS
[ ] Chrome on Android

Accessibility

[ ] Keyboard friendly (navigable with tab, space, enter, arrow keys, etc.)
[ ] Screen reader friendly
[ ] Does not introduce new errors or warnings in WAVE

Other

[ ] Is useable without CSS
[ ] Is useable without JS
[ ] Does not introduce new lint warnings
[ ] Flexible from small to large screens

Thanks, @higs4281, but we have a bit of a roadblock with getting an initial upload of the ES7 or Cypress images up to DTR. See convo in ~cfgov-deployments.

Thanks, @higs4281, but we have a bit of a roadblock with getting an initial upload of the ES7 or Cypress images up to DTR. See convo in ~cfgov-deployments.

@higs4281, I have a solution to get an initial upload of the ES7 and Cypress images into DTR.
I modified the Jenkinsfile to check if the docker tags already exist in DTR.
ES7 and Cypress docker images have different tags.
The docker images should only be pushed to DTR if the ES7 or Cypress images tags do not exist in DTR.

Thanks, @higs4281, but we have a bit of a roadblock with getting an initial upload of the ES7 or Cypress images up to DTR. See convo in ~cfgov-deployments.

@higs4281, I have a solution to get an initial upload of the ES7 and Cypress images into DTR.
I modified the Jenkinsfile to check if the docker tags already exist in DTR.
ES7 and Cypress docker images have different tags.
The docker images should only be pushed to DTR if the ES7 or Cypress images tags do not exist in DTR.


Mozilla's RegretsReporter dataset?

Hi, I saw your lightning talk at 38c3 but couldn't note your contact details in time.
I was just wondering if you know about the RegretsReporter extension by Mozilla and the dataset they have and if you've tried using it?
https://foundation.mozilla.org/en/youtube/regretsreporter-dataset/
Also, if you see this in time, would be curious to chat more about this at the congress.
Good luck!

Hi @mehanix!
yes, we did talk with them a while back! The differences to Mozilla's Youtube Regrets (YR) extension are:

The data collection: YR allows users to click "don't recommend" on a result page, so before being able to 'regret' it. The data collection tool here is retrospective about what people watched. In doing so, for a user it allows for reflection, for an algorithm it allows to get additional context (the user regrets) to a consumption of a video.
The intended use: The tool not merely signals regretted content to Youtube, but intends to filter content that might be regretted for users.


awsec2 - error: [Manager] Error: Cannot update or adjust instances

Hi i got working system, but every day i see some error.
help me understand where is mistake and how i can resolve it. scrapy and scrapoxy I see for the first time
please )
1- Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-1054-aws x86_64)
2- npm 5.6.0
3- scrapoxy 3.0.1
4- node 8.9.4
5- in aws i can up to 20 instances, 4 instances works full time.
6- at the moment when i have error message in log file. in aws instance with this id already started but he have not tag NAME.
the difference between creating an instance and an error, usually 40 seconds.
not working instance, I terminate by hands
7- error: [Manager] Error: Cannot update or adjust instances: InvalidInstanceID.NotFound: The instance ID 'i-05ef34fb0bdb8c0ca' does not exist
conf.json.txt
hup.out.txt

Hello @AndreevMore ,
Sorry, no idea for the pbl.
Is it currently happening or do you have solved the issue ?
Fabien.

yes it currently happening , but i  use aws scripts and every 10 minutes look for instances with empty tagnames and terminate if found

I was also facing the same issue so I wrote a script to terminate all additional instances as mentioned by @AndreevMore. Hope this script helps others.
#!/bin/sh

instances=$(aws ec2 describe-instances --filters Name=instance.group-id,Values=<security-group-id> --query 'Reservations[].Instances[?!not_null(Tags[?Key == `Name`].Value)].{ID: InstanceId, Tag: Tags[].Value}' --output text | awk '{print $1}')

if [ -n "$instances" ]; then
  echo $instances
  echo "Terminating instances at $(date)..."
  aws ec2 terminate-instances --instance-ids $instances
else
  echo "No additional instance found at $(date)"
fi

corrected in 4.0.0

Hey there! 🌟 Exciting news! Scrapoxy 4 is ready to rock 🚀. Check it out at Scrapoxy.io (explore the "get started" guide, deployment documentation, and more 📚).
I can't wait to hear your feedback on this new version! Send me your coolest screenshots with as many proxies as possible! 📸💻
Join the Discord community if you have any questions or just want to chat. You can also open a GitHub issue for any bug or feature request 🐞✨.
See you soon!  😎
Fabien


feat: Clarified Max Enchant Modification

What does it do?
Please clarify in the config how exactly the scaling applies. A short example would help as well.
Why add it?
I am uncertain if this element of the mod allows you to actually exceed caps placed on things like Protection. Does anything beyond a full set of Protection V actually change incoming damage, and is there a cap?
Does adjusting the scaling simply mean raising the amount of steps between the minimum and the cap? (Protection 100 still being equal to 25 EPF, just with 99 decimal values between.)
Anything else?
No response
Before submitting...

[X] This issue is not a duplicate of an existing issue (open or closed).

Vanilla enchantments have some formulas that scale how effective an enchantment is based on it's level. The mod just removes vanilla's max level caps. It's not that it increases the number of steps between the min and cap but that it actually allows the enchantments to become more powerful.
That said, as you mentioned, EPF is still a thing. The mod does not currently modify it so the effectiveness of Protection is currently capped to 25 EPF. Same deal with the other enchantments, if they have any built-in systems to cap them, like EPF, then it will respect those systems.
Some enchantments do have a special tweak that fixes these restrictions and does allow it to scale unrestricted. Unfortunately, Protection is not currently one of these. I'll add some clarification to the config. Thanks for the suggestion!


HARP-9897: Add support for 'array' and 'make-array'.

This change introduces the operator 'array' to validate the type
of arrays the operator 'make-array' to create heterogeneous arrays
from sub expressions.
Signed-off-by: Roberto Raggi<EMAIL_ADDRESS>

Codecov Report

Merging #1447 into master will decrease coverage by 0.04%.
The diff coverage is 97.56%.

@@            Coverage Diff             @@
##           master    #1447      +/-   ##
==========================================
- Coverage   55.93%   55.89%   -0.05%
==========================================
  Files         271      260      -11
  Lines       24315    24066     -249
  Branches     5437     5394      -43
==========================================
- Hits        13601    13452     -149
+ Misses      10714    10614     -100

Impacted Files
Coverage Δ

...atasource-protocol/lib/operators/ArrayOperators.ts
96.15% <97.56%> (+5.24%)
:arrow_up:

@here/harp-geometry/lib/ClipPolygon.ts
96.96% <0.00%> (-0.47%)
:arrow_down:

@here/harp-utils/lib/Mixins.ts
76.92% <0.00%> (ø)

@here/harp-test-utils/lib/WebGLStub.ts
100.00% <0.00%> (ø)

@here/harp-utils/lib/SampleBilinear.ts
100.00% <0.00%> (ø)

@here/harp-materials/lib/CopyMaterial.ts
100.00% <0.00%> (ø)

@here/harp-materials/lib/MSAAMaterial.ts
100.00% <0.00%> (ø)

@here/harp-omv-datasource/lib/OmvTile.ts
50.00% <0.00%> (ø)

@here/harp-utils/lib/UrlPlatformUtils.ts
100.00% <0.00%> (ø)

@here/harp-datasource-protocol/lib/Outliner.ts
100.00% <0.00%> (ø)

... and 29 more

Continue to review full report at Codecov.

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


Add catboost plot feature importances functionality (minor modifications)

On the back of the PR #1031

added an echo to assist users after plotting chart
performing test_fitted() in quiet mode and over a copy of the model rather than the actual model

Independent of this PR, here is an example of how this functionality can be used with W&B:
https://github.com/neomatrix369/awesome-ai-ml-dl/blob/master/examples/cloud-devops-infra/wandb/feature-importance/catboost_feature_importance_tutorial.ipynb

@vanpelt any thoughts on this?


Removed majority of __all__ from root init.

This is an experiment to see how this affects the documentation visibility-wise and how it impacts MyPy stubs that get generated.

Codecov Report

Merging #14 into master will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #14      +/-   ##
==========================================
- Coverage   79.65%   79.64%   -0.01%
==========================================
  Files          78       78
  Lines        9599     9597       -2
  Branches     1226     1226
==========================================
- Hits         7646     7644       -2
  Misses       1897     1897
  Partials       56       56

Impacted Files
Coverage Δ

hikari/__init__.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


Merged Absolute/Relative-Time/Date into one object (AbsoluteDateTime, RelativeDateTime)

Fixed Docstrings
Fixed Typing
Removed EvaluatorOutput and renamed it to AbsoluteDatetime
Fixed output of parsing methods

checks will fail because Evaluator WIP


fixing ThreadingInMemoryCache usage

ThreadingInMemoryCache usage is broken. This commit addresses those issues along with missing documentation about the caching options.

Hey @ogabrielluiz , I am not sure if i have checkin access. please check. thank you.


App Config 2.11.0 Patch

Description
Updating with new SDK version to fix Sync Token Issue.

API change check
API changes are not detected in this pull request.


Run network-based spam checks in an alternate thread

We have a few network-based checks like "bad NS", "bad ASN", "problematic NS config" and Google Perspective. Network is usually slow compared to calculation tasks like RegEx matching. As we're currently applying all checks on a post using a single for loop, the overall time taken to scan a post would likely be affect a lot by network instability. Moving all these network-based checks to an alternate thread should give the overall time taken a boost, assuming all these network request functions releases the GIL when making the requests.
I'll pull this on my backup instance and run it for a few days to gather some statistics and see how it actually performs. The code in this PR should be always good to merge once CI passes.

@triplee Just a small comment:

(We discussed this in chat and tentatively concluded that it might be too hard.)

Fact has proven it's not that hard :P


provide CI automated build

on Travis? (for same place than other extension)
see https://github.com/atom/ide-csharp/blob/master/.travis.yml maybe

verified with master branch


Add Edit host to kebab menu in CIM

Depends on:

[x] https://github.com/openshift-assisted/assisted-ui-lib/pull/1008

Closing in favor of #1039


Added content for about page

Describe the bug
Added content for about page
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots

Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
I want to make pr under gsocc 23

Please assign me under gssoc 2023.

Can I work on this issue?

Yes


Clear documentation to how to receive cloudevents

I am opening this issue as a question but also for proposing my help if you need. I will like to see a receive section in the readme as there is in the golang sdk : https://github.com/cloudevents/sdk-go#working-with-cloudevents
If you think is a good idea I can look into this.

Off course! It's an amazing idea!
@justin2997
Please perform the PR!

I think that will be useful to as something like this: https://github.com/GoogleCloudPlatform/functions-framework-nodejs#enable-cloudevents in the readme. We can add other languages too. That will make it more centralize in the repo to receive and send CloudEvent.

LGTM

This is a great idea. I came to this repo looking for the exact same thing.... I'd like to have both the ability to decode an incoming cloudevents message (with validation) manually using the SDK and then have the automatic HTTP listener (mirroring the Go SDK example) where I can just register the event processing callback.

@jthomas  I will do a PR. I need to test it first.

A way to receive event is available now:
Check it out here


Use sparse.COO for our multiplication table

An alternative to #133, that shares the first two commits
I plan to squash these commits when I merge, the history isn't that interesting

A little worried that test_rotor_between_non_overlapping_spheres is failing on both travis conda runs

I restarted the travis and a different test failed - looks like that was just coincidence


【TODO】学习github CI/CD流程

[ ] 视频：Github Actions CI/CD - Everything you need to know to get started
[ ] 视频：GitHub Actions Tutorial - Basic Concepts and CI/CD Pipeline with Docker
[ ] 视频：GitHub Actions Tutorial | From Zero to Hero in 90 minutes (Environments, Secrets, Runners, etc)

[ ] GitHub Actions 快速入门(官方)

测试 github actions

测试不同 github actions

#18


Reset selected items when tab switch

I want to merge this change because Resolves #4241

Screenshots

Pull Request Checklist

[ ] Privileged views and APIs are guarded by proper permission checks.
[ ] All visible strings are translated with proper context.
[ ] All data-formatting is locale-aware (dates, numbers, and so on).
[ ] Database queries are optimized and the number of queries is constant.
[ ] Database migration files are up to date.
[ ] The changes are tested.
[ ] The code is documented (docstrings, project documentation).
[ ] GraphQL schema and type definitions are up to date.
[ ] Changes are mentioned in the changelog.

Here is the report for ead3a0a7b21db173446ea445545f4bc29bfedfd0 (mirumee/saleor @ fix-bulk-action-tab-switch)
Base comparison is 7a94b1790ef6869982708c36186a71590f8e23df.
No differences were found. (click me)

# api.benchmark checkout
  test name                           	left count 	right count
  ------------------------------------	-----------	-----------
  add billing address to checkout     	         41	         41
  add shipping to checkout            	          7	          7
  checkout payment charge             	         16	         16
  complete checkout                   	          6	          6
  create checkout                     	         45	         45

# api.benchmark homepage
  test name                           	left count 	right count
  ------------------------------------	-----------	-----------
  retrieve main menu                  	          5	          5
  retrieve product list               	          4	          4
  retrieve secondary menu             	          5	          5
  retrieve shop                       	          2	          2

# api.benchmark product
  test name                           	left count 	right count
  ------------------------------------	-----------	-----------
  product details                     	         16	         16

# api.benchmark variant
  test name                           	left count 	right count
  ------------------------------------	-----------	-----------
  retrieve variant list               	         13	         13


jaser on ubuntu jaser on rpi B+

first we tried on rpi
it all seemed to work fine but the problem we were facing was mic,we couldnt configure mic to work with rasberry and soon whole system crashed...so i thought lets give a try on ubuntu
now the problem is lot errors,plz anyone just look at it and help
WARNING:root:tts_engine not specified in profile, defaulting to 'espeak-tts'
ERROR:client.vocabcompiler:Fatal compilation Error occured, cleaning up...
Traceback (most recent call last):
File "../client/vocabcompiler.py", line 163, in compile
self._compile_vocabulary(phrases)
File "../client/vocabcompiler.py", line 269, in _compile_vocabulary
vocabulary = self._compile_languagemodel(text, self.languagemodel_file)
File "../client/vocabcompiler.py", line 290, in _compile_languagemodel
cmuclmtk.text2vocab(text, vocab_file)
File "/usr/local/lib/python2.7/dist-packages/cmuclmtk/init.py", line 485, in text2vocab
text2wfreq(text, wfreq_file, **text2wfreq_kwargs)
File "/usr/local/lib/python2.7/dist-packages/cmuclmtk/init.py", line 114, in text2wfreq
raise ConversionError("'%s' returned with non-zero exit status '%s'" % (cmd[0], exitcode))
ConversionError: 'text2wfreq' returned with non-zero exit status '127'
ERROR:root:Error occured!
Traceback (most recent call last):
File "../jasper.py", line 143, in
app = Jasper()
File "../jasper.py", line 106, in init
stt_passive_engine_class.get_passive_instance(),
File "../client/stt.py", line 48, in get_passive_instance
return cls.get_instance('keyword', phrases)
File "../client/stt.py", line 40, in get_instance
vocabulary.compile(phrases)
File "../client/vocabcompiler.py", line 171, in compile
raise e
on rasberry
the problem was with mic

latest error
JASPER - THE TALKING COMPUTER           *

(c) 2015 Shubhro Saha, Charlie Marsh & Jan Holthuis *

ERROR:root:Error occured!
Traceback (most recent call last):
File "../jasper.py", line 143, in
app = Jasper()
File "../jasper.py", line 88, in init
stt_engine_class = stt.get_engine_by_slug(stt_engine_slug)
File "../client/stt.py", line 639, in get_engine_by_slug
raise ValueError("No STT engine found for slug '%s'" % slug)
ValueError: No STT engine found for slug 'sphinx fst_model:'/home/nil/phonetisaurus/g014b2b.fst' hmm_dir:'/home/nil/Desktop/sphinx/pocketsphinx-0.8/model/hmm/en_US/hub4$'

WARNING:root:tts_engine not specified in profile, defaulting to 'espeak-tts'
WARNING:client.brain:Skipped module 'MPDControl' due to an error.
Traceback (most recent call last):
File "../client/brain.py", line 43, in get_modules
mod = loader.load_module(name)
File "/usr/lib/python2.7/pkgutil.py", line 246, in load_module
mod = imp.load_module(fullname, self.file, self.filename, self.etc)
File "/home/nil/jasper/client/modules/MPDControl.py", line 6, in
from client.mic import Mic
File "../client/mic.py", line 9, in
import pyaudio
ImportError: No module named pyaudio
JASPER: How can I be of service, max?
WARNING:client.brain:Skipped module 'MPDControl' due to an error.
Traceback (most recent call last):
File "../client/brain.py", line 43, in get_modules
mod = loader.load_module(name)
File "/usr/lib/python2.7/pkgutil.py", line 246, in load_module
mod = imp.load_module(fullname, self.file, self.filename, self.etc)
File "/home/nil/jasper/client/modules/MPDControl.py", line 6, in
from client.mic import Mic
File "../client/mic.py", line 9, in
import pyaudio
ImportError: No module named pyaudio
WARNING:client.notifier:gmail_address or gmail_password not set in profile, Gmail notifier will not be used
YOU: hi
JASPER: I'm sorry, could you repeat that?
YOU: can u talk
JASPER: I beg your pardon?
YOU: talk
JASPER: I'm sorry, could you repeat that?
YOU: can u run python
JASPER: I beg your pardon?

YOU: dont mind
JASPER: My apologies, could you try saying that again?

YOU:
how should i make it to speak and listen to me

now it worked
leaving
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started

INFO:client.stt:Transcribed: ['']
INFO:client.stt:Transcribed: ['']
INFO:client.stt:Transcribed: ['']
INFO:client.stt:Transcribed: ['']
INFO:client.stt:Transcribed: ['']
INFO:client.stt:Transcribed: ['IT IT']
INFO:client.stt:Transcribed: ['']
INFO:client.stt:Transcribed: ['']
INFO:client.stt:Transcribed: ['']
INFO:client.stt:Transcribed: ['SAY']
INFO:client.stt:Transcribed: ['BE']
No disturbance detected
INFO:client.stt:Transcribed: ['']
INFO:client.stt:Transcribed: ['DID SAY']
INFO:client.stt:Transcribed: ['']
INFO:client.stt:Transcribed: ['IN WITH']
INFO:client.stt:Transcribed: ['IN']
INFO:client.stt:Transcribed: ['JASPER']
INFO:client.stt:Transcribed: ['NO YES NEWS TIME TIME']
INFO:client.stt:Transcribed: ['TIME']
INFO:client.stt:Transcribed: ['']
INFO:client.stt:Transcribed: ['']
INFO:client.stt:Transcribed: ['']
INFO:client.stt:Transcribed: ['']
INFO:client.stt:Transcribed: ['BEING ON']
INFO:client.stt:Transcribed: ['DID IT BEING']
INFO:client.stt:Transcribed: ['']
INFO:client.stt:Transcribed: ['IN SAY IT']
INFO:client.stt:Transcribed: ['']
INFO:client.stt:Transcribed: ['IT']
INFO:client.stt:Transcribed: ['NOW IN']
INFO:client.stt:Transcribed: ['']
INFO:client.stt:Transcribed: ['IN']
INFO:client.stt:Transcribed: ['JASPER']
INFO:client.stt:Transcribed: ['TODAY NEWS TODAY']
INFO:client.stt:Transcribed: ['']
INFO:client.stt:Transcribed: ['']
INFO:client.stt:Transcribed: ['IS BEING']
INFO:client.stt:Transcribed: ['']
still no outut yet

now i am getting beep response and nothingelse

WARNING:root:tts_engine not specified in profile, defaulting to 'espeak-tts'
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
any help ,its been almost a week... still no sound

@jasperproject  @shbhrsaha  @Holzhaus  @crm416  guys just give a hint, i tried on B B+ UBUNTU 14.04
all get to same step
INFO:client.stt:Transcribed: ['NOW IN']
INFO:client.stt:Transcribed: ['']
INFO:client.stt:Transcribed: ['IN']
INFO:client.stt:Transcribed: ['JASPER']
INFO:client.stt:Transcribed: ['TODAY NEWS TODAY']
INFO:client.stt:Transcribed: ['']
INFO:client.stt:Transcribed: ['']
INFO:client.stt:Transcribed: ['IS BEING']
INFO:client.stt:Transcribed: ['']
still no outut yet

i just ran debug on jasper.py
errors
aplay:set params:1087:channel count not available
errror: client.brain.failed to execute
brain.py line 73
news.py 116
mic.py 262
tts.py 172

ok so it was easy just took almost 3 weeks to realise what changes had to be made in program files,but finally it runs on ubuntu ,rpi b,rpi b+....

u can close this .....


pull request for e2e test at 11/09/2016 06:26:10

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

optest/docs/updated_at.md
:white_check_mark:Succeeded

Details

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Link is dead in Task2 / Exercise1.md

In this file the link at the bottom of the page for the entire lab script is dead.

Thanks, @LaurentLienhard. This is now fixed among other small changes in ef583ef.


Latest version much ahead of main branch

When I install jsdoc now using npm, I get 3.6.11.
But I see on GitHub, the last published release was 3.5.5 dated two years ago. I also noticed the 3.6.11 tag in the repo is far ahead of the main branch, which also refers to the 3.5.5 release.
Can main be updated? Which branch should I use for development?

After 3.5.5, I neglected to convert the Git tags for each version into GitHub "releases." I need to backfill those at some point.
JSDoc development happens on the main branch; releases happen off of release branches. For example, 3.6.11 was released off of the releases/3.6 branch.
The main branch is, in fact, far ahead of the releases/3.6 branch; as of right now, GitHub says the releases/3.6 branch is "26 commits ahead, 531 commits behind main." On main, I'm working (very, very, very slowly) on modernizing and reorganizing JSDoc's code. It's a moving target, but a very slow-moving target.


Announcement

Guys,
Thank you for your feedback. And it's nice to hear that someone is using the library.
Unfortunately I'm super busy right now at my work and I cannot spend a lot of time. So I hope to return back to all the bugs and requests in maybe 7-10 days. Sorry for this.
Thank you.

This is understandable.  The fact that this extension is being supported is the main reason why I ditched Gridster and chose this plugin.  I would love to be able to provide my help and support as well as I have ideas that I think would be nice additions to the plugin.

Hi, Thank you for your wonderful gridstack. I am currently using it for a user customizable webpage.
Several questions:

Can you add functions for resetting the layout without removing all the components.
I just want to use several default layouts for the widgets and switch between those layouts.

Do you think it is good to add a default title bar which can be used for a dragging handle ?
Currently I need to manually add the titlebars as handles.
Do you imagine to develop it into a full-featured Javascript-based window management system?

Thank you very much.

Understandable. Appreciate your work on this library.


check if the given string is palindrome or not .

Check if the give string is palindrome or not in java.
Problem link : https://www.hackerrank.com/challenges/java-string-reverse/problem

@dhirajmishra98 please assign this issue to me for Hacktoberfest 2022.

please do

Sorry, this hackerrank problem has already been raised in the issue #44.


[fix] framebuffer dimensions for non int scales

It was broken for scales like ~2.608 (iphone 6 plus) producing x2 size.

Thanks!


Add some micro-benchmarking support to Ginkgo

This PR adds some micro-benchmarking support to benchmark all the small functionalities of Ginkgo. For example, you can get information like the following:

Executor creation and run timings and overheads.

Array creation, copy, move timings and differences.

More specific backend-specific timings as well are possible, example for arrays with CUDA:

Of course there are a few things that we need to discuss:

Timings for GPUs is from the host side, but that may be okay.
The repetitions for the function calls is not something that can be clearly controlled through google benchmark, which as discussed before is a downside of this.

I think this type of micro-benchmarking information can be really useful in detecting performance degradations and can atleast give us a hint if some commit/change regressed the performance.

@upsj, Thank you for the review and the comments. I will try to update it soon.

Thanks for this, I think using google benchmark for these parts can make sense, since that's pretty much what it was designed with. I have a few questions, although I didn't look into the code in depth:

I like the name micro_benchmarks for the directory as that explains what should go in there.
I added some overhead benchmarks to our base benchmark line, maybe that can go in there instead (or in addition?).
We maybe should use the full name googlebenchmark for the targets and some other aspects, at first it wasn't clear to me what GBench and mbench were. I would stick to using micro_benchmarks always for the Ginkgo side, and the full googlebenchmark or whichever is the original name for the third party.
A big question is CUDA: by default the timer is CPU only and that's terrible for doing GPU micro-benchmarking. I know it's possible to add custom timers but I'm not sure how extensible they are, back when I had tried it (many years ago) that aspect wasn't satisfactory, maybe it's better now?

@tcojean, thanks. I will look into GPU timers and see if it extensible from within googlebenchmark. I agree with your other suggestions.


UUIDField fix with inheritance

Error:
class A(models.Model):
uuid = UUIDField()
class B(A):
pass
b = B.objetcs.create(uuid='0')
I get: b != '0' !!!!
I can't assing an uuid. This is my fix:
 def pre_save(self, model_instance, add):

   if self.auto and add:

   value = super(UUIDField, self).pre_save(model_instance, add)

   if self.auto and add and value is None:
       value = unicode(self.create_uuid())
       setattr(model_instance, self.attname, value)
       return value
   else:

       value = super(UUIDField, self).pre_save(model_instance, add)
       if self.auto and not value:
           value = unicode(self.create_uuid())
           setattr(model_instance, self.attname, value)

Sorry for the previous report. Maybe now the bug is clearer.


hotfix: replace at symbol in os username

What does this PR do?
This is an hot fix for a bug that occurs if os.username() has a '@' sign.
What issues does this PR fix or reference?
@W-14337520@
How to Test/Testing Effort
Ran unit tests, created a b2c store with debugger to check the buyer email.

@kalagarraj I need to do a considerable amount of refactoring to be able to write a unit test for this. This bug is a little timely, so I manually tested it. I can add the tests later if I have time to refactor the code.

@kalagarraj I need to do a considerable amount of refactoring to be able to write a unit test for this. This bug is a little timely, so I manually tested it. I can add the tests later if I have time to refactor the code.

Can u create a ticket for it and add it here, so it is not lost..

@kalagarraj here is the story, it is in the trust backlog right now: https://gus.lightning.force.com/lightning/r/ADM_Work__c/a07EE00001cqKcQYAU/view


Can't modify index type (MySQL)

When I try to create an Index in MySQL table, the 'Type' combo is grey (disabled) with value Other. So I can't create a BTree index.

See fix in 4.0.6.
BTW BTree is the default index type for INNODB.


Make sure Locative doesn't submit invalid device IDs

fixes #20781

For 87, let's keep it at this.


Improper identifier quoting

There are places in the code where identifiers are being bracket-quoted but done so incorrectly. e.g.
https://github.com/Azure/azure-functions-sql-extension/blob/main/src/SqlBinding/SqlBindingUtilities.cs#L184
https://github.com/Azure/azure-functions-sql-extension/blob/main/src/SqlBinding/SqlBindingUtilities.cs#L195
When doing this we need to also escape the closing brackets, otherwise any names with a closing bracket in it will create an invalid identifier (e.g. my]table -> [my]table], it should be [my]]table])

Something to consider if we find other common functionality like this is whether we can use a shared library for this stuff - SMO does a lot of similar logic but that isn't really exposed in a way that could easily be used without pulling in all of SMO.

The method that was bracket-quoting identifiers was removed as part of the trigger bindings code so I'll close this issue for now. If needed in the future, we can add a method similar to QuoteIdentifier
https://github.com/Azure/azure-functions-sql-extension/blob/88613533b24a3efed484a60b01982060f75ce37f/src/SqlBinding/SqlBindingUtilities.cs#L171-L174


cant find country code

I can't find the country code on the form submit with telephone input and also after selecting the country the cursor moves to the front of the +1  instead of the end. this lids the user to enter a false format this shud be fexed

You need to add the prop mode="international" to the input. This way when you blur the input you'll get the number with the country code. Hope it helps!

@oaraujocesar Thank you!

@oaraujocesar Thank you!


[BUG] File spec loading error in legacy project

Describe the bug
When updating the oas-tools package version to 3, there is a spec loading error
To Reproduce
Steps to reproduce the behavior:

Clone the "oas-error" branch in the ks-api repo: https://github.com/pafmon/ks-api/tree/oas-error
Try to run it with: npm install ; npm start
See error

><EMAIL_ADDRESS>start
> node index.js

2023-01-25 10:01:81 [oas-tools] WARN: This initialization is deprecated and will be removed in the future. Please read the docs.
2023-01-25 10:01:82 [oas-tools] WARN: Ignored ./.dockerignore when searching for OASDoc location. Could't read file or directory
2023-01-25 10:01:82 [oas-tools] ERROR: ValidationError: Specification file at /home/pablofm/devel/github/ks-api/api/oas-file.yaml not found
    at validateOASFile (/home/pablofm/devel/github/ks-api/node_modules/@oas-tools/commons/dist/utils/modules/validator.js:13:15)
    at file:///home/pablofm/devel/github/ks-api/node_modules/oas-tools/src/index.js:37:7
    at async initialize (file:///home/pablofm/devel/github/ks-api/node_modules/oas-tools/src/index.js:31:5)
    at async file:///home/pablofm/devel/github/ks-api/node_modules/oas-tools/src/index_old.js:41:9
npm notice
npm notice New major version of npm available! 8.19.3 -> 9.3.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.3.1
npm notice Run npm install -g<EMAIL_ADDRESS>to update!
npm notice

If I try to rename the file to oas-file.yaml, another error occurs:
> npm start

><EMAIL_ADDRESS>start
> node index.js

node:internal/fs/utils:348
    throw err;
    ^

Error: ENOENT: no such file or directory, open '/home/pablofm/devel/github/ks-api/api/oas-doc.yaml'
    at Object.openSync (node:fs:600:3)
    at Object.readFileSync (node:fs:468:35)
    at Object.<anonymous> (/home/pablofm/devel/github/ks-api/index.js:20:15)
    at Module._compile (node:internal/modules/cjs/loader:1218:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1272:10)
    at Module.load (node:internal/modules/cjs/loader:1081:32)
    at Module._load (node:internal/modules/cjs/loader:922:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:23:47 {
  errno: -2,
  syscall: 'open',
  code: 'ENOENT',
  path: '/home/pablofm/devel/github/ks-api/api/oas-doc.yaml'
}

Node.js v18.13.0

Related to #357

This issue has been fixed at 8bb0aa5 and will be closed once the new version is released.


[BUG] configmap formatting breaking on creation/edit

Rancher Server Setup

Rancher version: 2.7.5
Installation option (Docker install/Helm Chart):
If Helm Chart, Kubernetes Cluster and version (RKE1, RKE2, k3s, EKS, etc): Helm

Information about the Cluster

Kubernetes version: v1.24.15
Cluster Type (Local/Downstream): Downstream

If downstream, what type of cluster? (Custom/Imported or specify provider for Hosted/Infrastructure Provider): EKS

User Information

What is the role of the user logged in? Admin

If custom, define the set of permissions:

Describe the bug
Creating or modifying a configmap from UI breaks formatting/adds empty lines
To Reproduce
Create a configmap
Add a key-value pair, with a long enough value (around 1000 lines seems to be enough to trigger)
Save the changes
Read the configmap value
Result
Configmap value formatting is different, line breaks get added randomly.
Expected Result
Configmap value should be exactly as input.
Screenshots
Left is input, right is what Rancher stored in the configmap

"I encountered the same problem!"

The issue is not limited to configmaps, seems like any large enough resources, or with long lines, cause the issue, could reproduce using an ingress:
result from kubectl

when clicking on edit yaml

seems like long lines with comma separated values or single quotes may trigger the bug more frequently

Same problem.

I'm pretty sure this is caused by this line which calls this.

Updated to version 2.7.6; it keeps happening

Just encountered this issue after updating to 2.7.6 from 2.6.4.

Same problem

I'm pretty sure this is caused by this line which calls this added in rancher/dashboard#7670.
Possibly related nodeca/js-yaml#464. Changing the steve/actions.js line to the below appears to avoid the line wrapping issue.
return jsyaml.dump(obj, { lineWidth: -1 });

I'm still trying to understand what fields steve is adding that requires this function, but this seems like it could have been avoided if steve passed these parameters separately without modifying the YAML output.

Correct. The line break is after 80 chars. Same as in dumper.js

Same question. I have no confidence in editing ConfigMap through Rancher UI but I have to use kubectl to edit it. I hope this can be addressed asap.

Is there any update on this issue? I see there have been two releases since 2.7.6 but this ticket is not part of the bug fix and 2.8.0 is at the door.

Can we please still get this fixed in a 2.7.x release? Because it basically means that you cannot reliably edit a config map in Rancher UI on any version after 2.7.4. Same goes for the related issue https://github.com/rancher/dashboard/issues/9841

Same problem

const parsed = jsyaml.dump(data);  change to  const parsed = jsyaml.dump(data, { lineWidth: -1 });       https://github.com/rancher/dashboard/blob/01eeb0548fe3b9326961ad58a7dc43cd266e6e0c/shell/utils/create-yaml.js
i test it`s ok


Implement change tracking for array types

With the recent added support for ValueComparers, it should now be possible to define comparison behavior on arrays that would compare contents rather than reference equality.

Done, with the following caveats:

Multidimensional arrays not yet supported (#314)
In some cases boxing will occur when comparing (and snapshotting) the elements (https://github.com/aspnet/EntityFrameworkCore/issues/11072)

This value comparer seems to trigger an error: see https://github.com/aspnet/EntityFrameworkCore/issues/11077.
Reopening to track.


set number of lines for cellBottomLabel

Pull request checklist

[X] All tests pass. Demo project builds and runs.
[X] I have resolved any merge conflicts.
[X] I have followed the coding style, and reviewed the contributing guidelines. Confirmation: 💪😎👊

This fixes issue #1730
What's in this pull request?

Default number of lines to 0 so the label adjusts to the text inserted.

[Current coverage][cc-pull] is 60.94%

Merging [#1736][cc-pull] into [develop][cc-base-branch] will increase coverage by 0.02%

@@            develop      #1736   diff @@
==========================================
  Files            62         62
  Lines          2221       2222     +1
  Methods         612        612
  Messages          0          0
  Branches        134        134
==========================================
+ Hits           1353       1354     +1
  Misses          793        793
  Partials         75         75

[][cc-pull]

Powered by Codecov. Last updated by [ed88adf...7352ff9][cc-compare]
[cc-base-branch]: https://codecov.io/gh/jessesquires/JSQMessagesViewController/branch/develop?src=pr
[cc-compare]: https://codecov.io/gh/jessesquires/JSQMessagesViewController/compare/ed88adfc027bd59dbc8812b43d010d67562f5dd4...7352ff95f048f4d4bb8010e05716d0ac6227503c?src=pr
[cc-pull]: https://codecov.io/gh/jessesquires/JSQMessagesViewController/pull/1736?src=pr

👍 🎉
Let's do this for cellTopLabel and messageBubbleTopLabel too 😄

do you want me to add it in this one or new pr.

I decided same pr. 🤑

🎉


Would PRs to this repository count towards hacktoberfest 2021?

I am new to open source contribution and this repository looks like a good place to start. Will PRs to this repository count towards hacktoberfest 2021?

@basic-bhavya Yes genuine PR's will count towards Hacktoberfest 2021. Please read the Readme, Code of Conduct and the Contributing guide and you can start contributing! 😀✌

@basic-bhavya Just create a PR containing the solution to an Algorithmic Problem and I will merge it in due time.


nomachine

Why is nomachine saying "No X server detected"?

P.S I installed nomachine after accessing through VNC. Created password for the root account and restarted the nomachine service. But still I got the same error I stated above.

Sorry, I didn't tried it with NX yet, so I cannot answer the question at the moment. Have you tested it also with the newer images accetto/xubuntu-vnc or accetto/xubuntu-vnc-novnc?

No root user by default in  accetto/xubuntu-vnc-novnc?

Nope. Nomachine is not working in "accetto/xubuntu-vnc-novnc" too. Is there any alternative to VNC? I want to run pycharm on my server. My local machine is not too powerful. Any alternative so that I can login via VNC and install the alternate software and continue with my work?

The NX says it cannot detect any X server running. XFCE4 is an X server, right?

Oh man, I got it working now. This is the command I used. Tried with consol image, and it worked. So I added SYS_PTRACE additionally to the docker command while using your image and I got it working. Don't know why it worked. But I am happy. If you know why it worked, please let me know. Thanks!

PS: Oops! This is the command.
docker run -d --name desktop --restart unless-stopped -p 4800:4800 -e VNC_PW=vncpassword -e VNC_RESOLUTION=1920x1080 -e HOME=/root -p 10000:5901 -p 31415:31415 -p 4000:4000 -p 10001:6901 -v /mnt/sysdisk:/mnt/sysdisk --cap-add=SYS_PTRACE --shm-size 4g accetto/ubuntu-vnc-xfce

No root user by default in accetto/xubuntu-vnc-novnc?

All accetto/xubuntu-vnc and accetto/xubuntu-vnc-novnc containers run intentionally under a non-root account by default. However, you can easily override that by using the --user 0:0 or --user root:root argument with docker run. Please note that the home folder would still be /home/homeless, until you explicitely override it by setting the related environment variable.

Any alternative so that I can login via VNC and install the alternate software and continue with my work?

You can always connect to all containers using any VNC viewer. You can also connect via any web browser to all containers that include noVNC.
All accetto/xubuntu-vnc and accetto/xubuntu-vnc-novnc containers support sudo, so you can install any software you wish. The default password for sudo is headless. If you want to install from Ubuntu's repositories, then do not forget to update them first using sudo apt-get update. Please note that accetto/ubuntu-vnc-xfce containers do not support sudo. You have to run them as root to install anything new.
The NX says it cannot detect any X server running. XFCE4 is an X server, right?
Not exactly, but it's part of the Xfce4 installation.
I'm glad that you've found a way around. It's kind of a hack, but if it works then it works. :) Only be sure that your environment is secure.
I did a few quick experiments, trying to find some alternatives, but with no success yet, unfortunately. However, I find it interesting, so I think that I'll come to it later, when I'll have more time.
It would help, if you would describe your scenario, what are you trying to achieve and why you don't want to use VNC. Then I could develop some new containers supporting it.

I want to run PyCharm on my server since my local machine is less powerful. And I found VNC to be slow to work with pycharm.


How to sync with several databases

The open function only accepts a single address. How to sync with several databases? Do I have to open several DBs and monitor each individually? Are all the changes from other DBs then synced to the local orbitDB (I name it "FooBar" in the follows)? What if the other DBs are syncing in turn with this orbitDB "FooBar"? Is an infinite replication loop the result or is all data uniquely identified by an hash to prevent this? Will the individual database per node still scale if there are over hundred peers?

Do I have to open several DBs and monitor each individually?

Yes.
const orbitdb = await OrbitDB(...)
const db1 = await orbitdb.open('db1')
const db2 = await orbitdb.open('db2')
// etc

Is an infinite replication loop the result or is all data uniquely identified by an hash to prevent this?

No, it will only replicate records added to other dbs, not its own records which have been replicated on other dbs. The db is an append only log of entries. See https://github.com/orbitdb/orbitdb/blob/main/docs/OPLOG.md if you are interested in the mechanics of the oplog.

Will the individual database per node still scale if there are over hundred peers?

We haven't benchmarked a large number of dbs across a large number of peers but have plans to. However, this is probably more a question about how the underlying IPFS scales (it should scale).
It's natural to misunderstand how p2p replication works. Remember, I might have 1000 peers but  if all peers are sync-ing each other's data, I only need to be connected to one other peer to eventually retrieve all records and get to a consistent state. The mantra of a p2p network is "eventual consistency", not "real-time replication" although good uptime and fast nodes can look like "almost real-time replication".

Thanks a lot.

One follow up here:

It's natural to misunderstand how p2p replication works. Remember, I might have 1000 peers but if all peers are sync-ing each other's data, I only need to be connected to one other peer to eventually retrieve all records and get to a consistent state. The mantra of a p2p network is "eventual consistency", not "real-time replication" although good uptime and fast nodes can look like "almost real-time replication".

How to achieve this? Is this automatically the case or is it necessary to manually create such a sparse network? If I do not pass all known peer addresses and then some of the peers fail, couldn't I get an isolated network partitioning?

How your nodes find one another is reliant on your libp2p configuration. How libp2p peers find each other is up to your requirements; for example, an intranet-only configuration would probably only require mdns for peers to find one another. Peers behinds NATs and needing to connect across the internet would probably need something more complex (or even a mixture of peer discovery mechanisms).
Unfortunately, the process is quite convoluted and as such a custom approach that meets the needs of the software is required. However, we are working on simplifying this for 3rd party developers using preconfigured solutions and maybe even configuration tools. At this stage it is a question of time, money and resources.

Thanks, also always great answer.


Visibility incorrectly parsed as wind speed, visibility not included in output

Raw METAR:
VIDP 270200Z 00000KT 0050 R27/0450 R29L/0650 R29R/0150 FG VV/// 12/11 Q1021 NOSIG

metar-taf-parser wind output (link to full output)
	"wind": {
	  "speed": 50,
	  "direction": "N",
	  "degrees": 0,
	  "unit": "KT"
	}

It looks like the parser incorrectly includes the visibility part of the METAR in the wind. Additionally, it also looks like the visibility is left out entirely, as it is not mentioned in the parsed output.

python-metar-taf-parser wind output:
Wind: Speed : 0 KT Direction : North | 0°

Looks like it correctly identified that the visibility was not part of the wind. However, there is also no indication that it successfully parsed the visibility, as the output does not include any visibility readings.

This project seems to be able to parse it correctly: https://e6bx.com/metar-decoder/
I'll try to dig in and see if I can help find a solution to this!

Ok, so I dug a bit deeper. The culprit seems to be the double zero-digit matcher in the beginning of the regex.
It seems to be there in order to satisfy this test case, which includes an invalid METAR string according to the specifications I can find. As usual, most are not too explicit on the matter but this is one example:

Wind speeds (ff) are two digits (or three digits if required), in knots.
https://meteocentre.com/doc/metar.html

So I guess this is a case of choosing which case to support? If we change the regex by adding an additional required zero:
(VRB|000|[0-3]\d{2})(\d{2})G?(\d{2,3})?(KT|MPS|KM\/H)?

The result is much better, solving several issues:

Wind unit is correctly registered
Wind speed is correctly registered (not that it matters, it's all zeros anyway)
Visibility is no longer incorrectly matched

The downside is that the test case will start to fail. Is the METAR included in that test case a common occurrence? I mean, is it common for real-world METAR reports to report winds calm with only four digits?


Keys track 2 readme

Track 2 Key client readme
Closes: #5054
cc: @Azure/adp-keyvault

Can one of the admins verify this patch?


Fix code scanning alert - Token-Permissions

Tracking issue for:

[ ] https://github.com/pfichtner/SipDoorbell/security/code-scanning/13

Fixed


Documentation doesn't mention eager initialisation of Providers

Describe what scenario you think is uncovered by the existing examples/articles
It seems, providers are initialised lazily only when needed, possibly never. This isn't mentioned in documentation, so I assumed they are created eagerly, specially since they are defined globally. I might be alone in this assumption but I suspect I'm not. At glance it looks like init() method should be called as soon as this file is loaded by Dart VM but it's not:
final notificationProvider = Provider<NotificationProvider>(
  (ref) {
    return NotificationProvider()..init();
  },
);

Describe why existing examples/articles do not cover this case
I read through entire documentation (Concepts and Guides, really) and didn't find it mentioned. Also using integrated search to look up "eager" or "lazy" words yielded nothing. I don't think I missed that information.

Note that this is the behavior of all global variables.

I was about to open same issue. I need to initialize some providers(especially StreamProviders, best example would be FirebaseAuth.userChanges()) even before RunApp. Because during transitions I want make sure the data is loaded user shouldn't be wait extra.
I'm open to any workaround for now if there is.

As a comeback to this, because of #225 – If you want to initialize/read providers inside your main, you can do:
final greeting = Provider<String>((ref) => "hello world");

void main() {
  final container = ProviderContainer();

  print(container.read(greeting)); // "hello world"

  runApp(
    UncontrolledProviderScope(
      container: container,
      child: MyApp(),
    ),
  );
}

can you provide more info on the behavior of "UncontrolledProviderScope"
I'm guessing this tells Riverpod to keep state, not in the widget tree, but in some other area of global memory??

I'm guessing this tells Riverpod to keep state, not in the widget tree, but in some other area of global memory??

No, this stores the state in ProviderContainer
This class is always where the state of your providers is stored.
Using ProviderScope is equivalent to a StatefulWidget that instantiate a ProviderContainer and inserts it in the widget tree with UncontrolledProviderScope

@rrousselGit Can ProviderScope be added anywhere in the tree? instead of as the root widget?
I'm creating an internal package for my team and I'm planning to use riverpod, but not all the apps use riverpod.

Not having ProviderScope as the root of the app is not ideal
if the ProviderScope is somehow destroyed, that'll destroy your app state.

so I'll create a widget that exposes ProviderScope then and have them add it to the root. Would you agree?

Yes

Is this possible to make this into a feature request?
If you wrap something like Firebase/Firestore/Any cloud DB; you sometimes want eager init, to hide server latency.

It's not doable, because global/static variables in Dart are lazy-loaded.
Providers aren't created until you read them for the first time, so Riverpod can't initialize them even if it wanted to

Maybe have something like:
ProviderScope(
 child: myApp(),
 eager: [...listOfProviders],
)

All I'm really asking for is some official mechanism to achieve what you demonstrated in https://github.com/rrousselGit/river_pod/issues/202#issuecomment-731585273

The official mechanism to achieve  is the official mechanism.
It's not a workaround. That's the actual solution

 final greeting = Provider<String>((ref) => "hello world");

void main() {
  final container = ProviderContainer();

  print(container.read(greeting)); // "hello world"

  runApp(
    UncontrolledProviderScope(
      container: container,
      child: MyApp(),
    ),
  );
}

With respect to this @rrousselGit, what if we wanted to override values of Providers with this UncontrolledProviderScope as well? ProviderScope allowed overrideWithValue but this does not. What is the workaround in that case?

To give more context, this is related to initialising SharedPreferences in main, where earlier I had
var sharedPreferencesServiceProvider = Provider<SharedPreferenceService>((_) => throw UnimplementedError());
And after getting the instance of SP, I could override the value this way
final sharedPreferences = await SharedPreferences.getInstance();

runApp(
      ProviderScope(
         overrides: [
            sharedPreferencesServiceProvider.overrideWithValue(SharedPreferenceService(sharedPreferences)),
         ],
        child: UniApp(),
      ),
    ),

But now if I use UncontrolledProviderScope to solve another problem,
and to override, if I try
container.updateOverrides([
    sharedPreferencesServiceProvider.overrideWithValue(SharedPreferenceService(sharedPreferences)),
  ]);

This ^ does not allow me to override null with ValueProvider<Object?, SharedPreferenceService>.
Actual error: Replaced the override of type Null with an override of type ValueProvider<Object?, SharedPreferenceService>, which is different.
Didn't have this error during ProviderScope overriding. I'm on version 0.14.0+3

With respect to this^ @rrousselGit, what if we wanted to override values of Providers with this UncontrolledProviderScope as well? ProviderScope allowed overrideWithValue but this does not. What is the workaround in that case?

The constructor of ProviderContainer has the observers and overrides parameter that you find on ProviderScope. So you can use those

Maybe have something like:
ProviderScope(
 child: myApp(),
 eager: [...listOfProviders],
)

All I'm really asking for is some official mechanism to achieve what you demonstrated in #202 (comment)

This approach would have the benefit of being easier to discover and document, it was also where I first looked for this functionality before I had to go through GitHub issues.

Surprised me, too. Would be really nice if you can give this a mention.
|Global variables are always lazy-loaded. This is a specificity of how Dart behaves.
We've only ever used global variables because of Riverpod!

This topic should be addressed in the documentation rework. Maybe inside the "notable Cookbooks examples" section. such guide in particular should be cross-referenced in the "migration from Provider" quickstart.

It does now https://docs-v2.riverpod.dev/docs/essentials/eager_initialization

As a comeback to this, because of #225 – If you want to initialize/read providers inside your main, you can do:
final greeting = Provider<String>((ref) => "hello world");

void main() {
  final container = ProviderContainer();

  print(container.read(greeting)); // "hello world"

  runApp(
    UncontrolledProviderScope(
      container: container,
      child: MyApp(),
    ),
  );
}

Hey @rrousselGit,
so when using this for a StateNotifier and also changing the state with something like container.read(greeting).changeGreeting('hello riverpod)
directly in the main before running the app,
then when using this provider later on in some widget tree and watching its value with something like
Text(ref.watch(greeting))
it will still show the old greeting 'hello world'.
But if I print the new greeting value after setting it to a new one in main, it does give me the updated value. Only the UI seems to miss it.
If I update the state again from a button press, it does work like intended and the text updates to the new value.
Can you explain why this is and if this is intended or how we can fix the UI to be in sync with the provider state from the beginning?

@tobiasbentin I know you didn't ask me, but please read the new documentation, it basically answers your question, but to put it shortly AVOID doing shenanigans with container before ProviderScope and initialize directly into a dedicated page.

@lucavenir No. That's not an issue with how the page works.

@lucavenir thanks for your answer. of course for this simple case I would do it differently but basically what I wanted to achieve is what is shown in this example but for a StateNotifierProvider instead of a normal Provider. Is there a good way to do that? Currently I am making use of the requireValue getter but I thought it would be nice to have it overwritten so it can be sync.
And I would like to know if using the method described above is fine for initialising stuff like firebase, deeplinks etc.? Just as shown at the end here


streamline the snap installation logic with the official snap.v2 operator

The charm currently installs its required dependencies using many subprocess calls like:
subprocess.run(
       ["snap", "install", "lxd", f"--channel={lxd_channel}"] + cohort,
)

Instead, we want to manage the snaps using https://charmhub.io/operator-libs-linux/libraries/snap

Lets do this one now as part of the initial PR https://github.com/canonical/charm-microcloud/pull/2

@tomponline I updated #2 to make use of the snap operator


Add Support to Send Notification to Admins when Virtual Card is Used

Resolve https://github.com/opencollective/opencollective/issues/5696
⚠ Not ready to be merged. See https://github.com/opencollective/opencollective-api/pull/7815#issuecomment-1208464028

@kewitz : This PR is not ready to be merged. We need to test this by paying with a virtual card in test mode. I don't have the setup necessary for this test, and when you are back we can discuss.
cc: @Betree

The code looks like it won't work (missing async/await) in its current version.
Can we add a test in test/cron/hourly/reconcile-transactions.test.ts, mocking the Stripe API when needed? It looks like this is a sensitive script that is going to stay, would be great to cover its behavior and that will allow us to test your changes even without access to the Stripe API.

@Betree : I've added the tests for both Stripe as well as Privacy. Let me know if there's anything missing. 😃

@kewitz : I've changed this implementation as per our discussion. Now we send the email when an authorization is made on the stripe account rather than on the reconciliation.
cc: @Betree

Make sure the tests are passing before merging it.


more than 2000 db

Hi,
First of all - great stuff!
I would like to ask about efficiency when it comes to higher number of instances - e.g. over 2000 - (with low traffic). Does anybody tested what is the limit?
Can anybody tell how this is working in such (big) projects ?
I also did not find an answer to these questions, maybe someone could help:

Is there possible to have directory structure something similar like this: storage/app/tenancy/tenants/123/12345 for ID 12345 ? The point is - when you have big amount of accounts - it will be hard to store them in just one directory.

Is it possible to have additional accounts in project (e.g. freemiums) which will not have own subdomains - just sign in on main project domain - and then based on that - load specific tenant configuration ?

Thanks

In terms of scalability, hyn currently offers:

ability to use multiple database servers using the managing connection.
in terms of disk/file system storage, I personally believe that 2000 subdirectories shouldn't be much of a problem as long as you don't try to read a directory list, also read here and here.
you can roll your own tenant identification, in fact this has been done before by identifying based on path. But consider the pain of supporting it versus just allowing freemiums their own subdomain..

There are several projects running in production already, check the Spotlight section on our homepage.

@luceos , first of all, great job with the package. Would be great if developers or companies could send you his own showcases using this package (like meteor does).
I must admit, at first i didn't trust at all that this package do all that in my application. I searched laravel applications using this package but didn't find one.

About this issue, i'm currently facing the same doubt. Any idea how can we generate automatically N numbers of tenants with low effort?

Check the spotlight section on the site which mentions a few apps in production or ask on the discord server, plenty of people are already using it.


feat(*): command framework

Disploy Command Framework
This implements a command manager to Disploy. This PR also makes Disploy more like the Next.js of Discord application frameworks, where configuration is not something you really handle.
To-do

This list will grow the more suggestions

[x] Handle commands
[x] Register commands to the Discord API (through the CLI)
[x] Build app
[x] Make the builder make a temp dir and rollup commands inside of there instead of virtual modules, which allows importing files inside the commands.
[x] Instead of reading Disploy config from package.json implement a disploy.json
[x] Add Cloudflare build target.
[x] Implement better user output in the CLI instead of throwing errors and pino logs.
[x] Dev mode for starting a background express server and watching files with hot reloading.
[x] Dev mode fetches registered commands once at start and caches them so it knows when hot reloading if it needs to register commands.


Show passed test results if debug == true

I think it could be helpful to be able to see the passed tests logs as well.
I was between creating a new method, logPassedTests, or updating logFailedTests to logTests and having it be passed in test results.
I also didn't know if I should create a new flag, or use the existing debug flag. I went with the existing debug flag since it was easier.
I made the passedTests logs appear first, so the failed tests were easier to see (since they'd be at the bottom of the console).

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Shawn Mccarthy seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


InvalidOperationException when inserting array of data into database table

I have an Instruction class which contains a list of Borrower objects. I am trying to pass through an array of Borrower objects through a JSON string which can then be added into my database. However when I try and pass the JSON through this exception is raised.
The above below is produced when I attempt to insert an array of data into an SQL server using Entity Framework.
Below is the JSON array that I am attempting to insert into the database, the array contains two elements and I believe the error is being caused by entity framework inserting the two array elements into the database with the same ID. If I remove one element from the array then the data is inserted as normal. The fact that a single element is inserted correctly also suggests that the problem is not with the data currently held inside the database.
Exception message: System.InvalidOperationException: 'The instance of entity type 'Borrower' cannot be tracked because another instance with the key value '{BorrowerId: -2147482647}' is already being tracked. When attaching existing entities, ensure that only one entity instance with a given key value is attached.'
Stack trace:

System.InvalidOperationException
  HResult=0x80131509
  Message=The instance of entity type 'Borrower' cannot be tracked because another instance with the key value '{BorrowerId: -2147482647}' is already being tracked. When attaching existing entities, ensure that only one entity instance with a given key value is attached.
  Source=Microsoft.EntityFrameworkCore
  StackTrace:
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.IdentityMap`1.ThrowIdentityConflict(InternalEntityEntry entry)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.IdentityMap`1.Add(TKey key, InternalEntityEntry entry, Boolean updateDuplicate)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.StartTracking(InternalEntityEntry entry)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry.SetEntityState(EntityState oldState, EntityState newState, Boolean acceptChanges)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.EntityGraphAttacher.PaintAction(EntityEntryGraphNode node, Boolean force)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.EntityEntryGraphIterator.TraverseGraph[TState](EntityEntryGraphNode node, TState state, Func`3 handleNode)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.EntityEntryGraphIterator.TraverseGraph[TState](EntityEntryGraphNode node, TState state, Func`3 handleNode)
   at Microsoft.EntityFrameworkCore.DbContext.SetEntityStates(IEnumerable`1 entities, EntityState entityState)
   at SolicitorApi.Data.InstructionRepository.CreateInstruction(SolicitorInstruction instruction) in C:\source\SolicitorApi\SolicitorApi.Data\InstructionRepository.cs:line 25
   at SolicitorApi.Controllers.SolicitorController.SendInstruction(SolicitorInstruction si) in C:\source\SolicitorApi\SolicitorApi\Controllers\SolicitorController.cs:line 31
   at Microsoft.Extensions.Internal.ObjectMethodExecutor.Execute(Object target, Object[] parameters)
   at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeActionMethodAsync>d__12.MoveNext()

Steps to reproduce
Include a complete code listing (or project/solution) that we can run to reproduce the issue.
JSON input:
{
  "instructionType": 2,
  "applicationId": 1,
  "dateLogged": "2018-10-17T09:22:00.421",
  "additionalInformation": {
    "furtherComments": "string"
  },
  "borrowerBank": null,
  "broker": {
    "address": {
      "houseNum": "string",
      "houseName": "string",
      "streetName": "string",
      "locality": "string",
      "town": "string",
      "county": "string",
      "postcode": "ne11en"
    },
    "companyName": "string",
    "brokerReference": "string",
    "email"<EMAIL_ADDRESS>  },
  "property": {
    "referenceNumber": "10000004",
    "caseOwner": "stg",
    "amountBorrowed": 10,
    "security": {
      "houseNum": "string",
      "houseName": "string",
      "streetName": "string",
      "locality": "string",
      "town": "string",
      "county": "string",
      "postcode": "ne11en"
    },
    "correspondence": {
      "houseNum": "string",
      "houseName": "string",
      "streetName": "string",
      "locality": "string",
      "town": "string",
      "county": "string",
      "postcode": "ne11en"
    },
    "occupier": [
      {
        "title": 1,
        "firstName": "string",
        "lastName": "string",
        "dob": "2018-10-17T09:22:00.422",
        "relationship": "string"
      }
    ],
    "tenure": 1,
    "jurisdiction": 1,
    "funder": 1
  },
  "solicitor": {
    "companyName": "string",
    "solicitorReference": "string",
    "address": {
      "houseNum": "string",
      "houseName": "string",
      "streetName": "string",
      "locality": "string",
      "town": "string",
      "county": "string",
      "postcode": "ne11en"
    }
  },
  "borrower": [
    {
      "address": {
        "houseNum": "string",
        "houseName": "string",
        "streetName": "string",
        "locality": "string",
        "town": "string",
        "county": "string",
        "postcode": "NE11NE"
      },
      "title": 1,
      "firstName": "string",
      "lastName": "string",
      "dob": "2018-10-17T09:22:00.422",
      "homeNumber": "01212122222",
      "workNumber": "01212122222",
      "mobileNumber": "01212122222",
      "email"<EMAIL_ADDRESS>    },
	{
      "address": {
        "houseNum": "string",
        "houseName": "string",
        "streetName": "string",
        "locality": "string",
        "town": "string",
        "county": "string",
        "postcode": "NE11NE"
      },
      "title": 1,
      "firstName": "string",
      "lastName": "string",
      "dob": "2018-10-17T09:22:00.422",
      "homeNumber": "01212122222",
      "workNumber": "01212122222",
      "mobileNumber": "01212122222",
      "email"<EMAIL_ADDRESS>    }
  ],
  "currentLender": [
    {
      "name": "string",
      "currentLenderAccountNumber": "01234567",
      "estimatedAmount": 10000,
      "deedsLocation": "UNKNOWN"
    }
  ]
}

The methods being called in this situation are relatively simple and therefore should not be the source of the error, but I have included them below for clarity.
Send Instruction
[HttpPost]
        public IActionResult SendInstruction([FromBody]SolicitorInstruction si)
        {
			//Validate
			ValidationController controller = new ValidationController();
	        bool instructionIsValid = controller.ValidateInstruction(si);

	        if (instructionIsValid)
	        {
		        _instructionRepo.CreateInstruction(si);
		        Console.WriteLine("\nInstruction successfully inserted into database records.\n");
				return Ok("Successfully added instruction into database.");
			}

			Console.WriteLine("\nInvalid Data: Insert into database records aborted.\n");
	        return BadRequest(controller.ErrorMessages);
        }

Create Instruction
public void CreateInstruction(SolicitorInstruction instruction)
	    {
			_context.SolicitorInstructions.Add(instruction);
		    _context.SaveChanges();
	    }

DbContext - Used to create the EF model.
public class SolicitorContext : DbContext
	{

		public DbSet<AdditionalInformation> AdditionalInformations { get; set; }
		public DbSet<Address> Addresses { get; set; }
		public DbSet<Borrower> Borrowers { get; set; }
		public DbSet<BorrowerBank> BorrowerBanks { get; set; }
		public DbSet<Broker> Brokers { get; set; }
		public DbSet<CurrentLender> CurrentLender { get; set; }
		public DbSet<Occupier> Occupiers { get; set; }
		public DbSet<Property> Properties { get; set; }
		public DbSet<Solicitor> Solicitors { get; set; }
		public DbSet<SolicitorInstruction> SolicitorInstructions { get; set; }

		public SolicitorContext(DbContextOptions<SolicitorContext> options)
			: base(options)
		{

		}
	}

Instruction table
public class SolicitorInstruction
	{
		[Key]
		public int SolicitorInstructionId { get; set; }
		public InstructionTypes InstructionType { get; set; }
		public int ApplicationId { get; set; }
		public DateTime DateLogged { get; set; }
		[ForeignKey("AdditionalInformationId")]
		public AdditionalInformation AdditionalInformation { get; set; }
		[ForeignKey("BorrowerBankId")]
		public BorrowerBank BorrowerBank { get; set; }
		[ForeignKey("BrokerId")]
		public Broker Broker { get; set; }
		[ForeignKey("PropertyId")]
		public Property Property { get; set; }
		[ForeignKey("SolicitorId")]
		public Solicitor Solicitor { get; set; }
		[ForeignKey("BorrowerId")]
		public List<Borrower> Borrower { get; set; }
		[ForeignKey("CurrentLenderId")]
		public List<CurrentLender> CurrentLender { get; set; }
	}

Borrower table
[Table("Borrower")]
    public partial class Borrower
	{
		[Key]
		public int BorrowerId { get; set; }
		[ForeignKey("AddressId")]
		public Address Address { get; set; }
		//public bool BorrowerAddressIsCorrespondenceAddress { get; set; }
		public Honorifics Title { get; set; }
		[StringLength(32)]
		public string FirstName { get; set; }
		[StringLength(32)]
		public string LastName { get; set; }
		public DateTime Dob { get; set; }
		[StringLength(32)]
		public string HomeNumber { get; set; }
		[StringLength(32)]
		public string WorkNumber { get; set; }
		[StringLength(32)]
		public string MobileNumber { get; set; }
		[StringLength(64)]
		public string Email { get; set; }
	}

Further technical details
EF Core version:  2.1.4
Database Provider: Microsoft.EntityFrameworkCore.SqlServer 2.1.4
Operating system: Win 10
IDE: Visual Studio 2017 15.8.6

Duplicate of #13714


fix (assumed) typo

Upon a clone and running the examples, getting this undefined errors

It would be great to add a test for this case, would you like to help out with providing it too?

How the hell...


Removed more dead telemetry

Codecov Report

Merging #11233 (96bbbc4) into main (66457ed) will decrease coverage by 0%.
The diff coverage is n/a.

@@          Coverage Diff           @@
##            main   #11233   +/-   ##
======================================
- Coverage     63%      63%   -1%
======================================
  Files        477      477
  Lines      33981    33978    -3
  Branches    5515     5515
======================================
- Hits       21436    21429    -7
- Misses     10494    10496    +2
- Partials    2051     2053    +2

Impacted Files
Coverage Δ

src/telemetry.ts
5% <ø> (+<1%)
:arrow_up:

src/kernels/jupyter/baseKernelConnectionWrapper.ts
35% <0%> (-3%)
:arrow_down:

src/standalone/api/kernelApi.ts
72% <0%> (-2%)
:arrow_down:

.../notebooks/controllers/vscodeNotebookController.ts
81% <0%> (-2%)
:arrow_down:

src/kernels/kernelProvider.base.ts
95% <0%> (-1%)
:arrow_down:

src/kernels/common/baseJupyterSession.ts
80% <0%> (-1%)
:arrow_down:

src/platform/msrCrypto/msrCrypto.js
16% <0%> (-1%)
:arrow_down:

src/kernels/installer/productInstaller.node.ts
78% <0%> (ø)

src/kernels/raw/launcher/kernelProcess.node.ts
72% <0%> (+<1%)
:arrow_up:

src/notebooks/debugger/kernelDebugAdapterBase.ts
78% <0%> (+1%)
:arrow_up:


feat: implement the test suite for 0x53 - MSTORE8 opcode

### Tasks
- [ ] Create the trait for the MSTORE8 opcode category
- [ ] Create the MSTORE8 opcode function, write it only as a panic_with_felt252('MSTORE8 not implement yet')
- [ ] Create the test suite for MSTORE8, taking Geth's examples
- [ ] Create the test suite for MSTORE8 taking Kakarot cairo0 examples
- [ ] Create the test suite for MSTORE8 taking the evm.codes examples

Important update: we are gathering some bugs in the Kakarot v0 codebase, we need to make sure each issue and each PR in Kakarot-ssj is aware of the lists of known bugs. Look at this link everytime you take an issue and check your issue isn't targeted by a known bug.

Important update: we are gathering some bugs in the Kakarot v0 codebase, we need to make sure each issue and each PR in Kakarot-ssj is aware of the lists of known bugs. Look at this tracking issue everytime you take an issue and check your issue isn't targeted by a known bug. Will add this reminder in many places to make sure we keep track of known bugs.


chore: update gradle image version

Checklist

[x] the individual contributor license agreement is signed
[x] commit message follows commit guidelines

Description of change

LGTM :+1:


Potted plants can noclip through doors

Description
You can cause potted plants to phase through closed doors/airlocks while dragging it and when you push it into a door.
Reproduction

Find a potted plant
Drag potted plant to an airlock
Use the hotkey to push the potted plant into the airlock
The potted plant will noclip through the airlock

also works with bodybags to smuggle people into somewhere

This issue seems to be resolved. I can no longer push potted plants through closed airlocks.


Risky starts_with() Contract Source Code Verification Method

Introduction
The current contract source code verification is mainly done by compiling the contract and comparing it with the Creation Tx Input, but note that the comparison here is not verbatim. Instead, it determines whether the compiled result is the beginning of the on-chain contract. The details can be seen in the following code.
    fn compare_creation_tx_inputs(
        remote_bytecode: &Bytecode<T>,
        local_bytecode: &LocalBytecode<T>,
    ) -> Result<MatchType, VerificationErrorKind> {
        let remote_creation_tx_input = remote_bytecode.bytecode();
        let local_creation_tx_input = local_bytecode.bytecode();

        if remote_creation_tx_input.starts_with(local_creation_tx_input) {
            // If local compilation bytecode is prefix of remote one,
            // metadata parts are the same and we do not need to compare bytecode parts.
            return Ok(MatchType::Full);
        }

link
RISK
This approach makes an assumption that the compiler's compilation results are harder to control and that we cannot construct a source code so that its bytecode matches the beginning of other contract bytecodes, but there is a possible risk in this assumption!
POC
BASE CONTRACT
Here we give a base contract, which has an inline assembly return in the constructor. The final bytecode often contains only a very simple and controlled part of the creation code, there is no Runtime Code and Metadata, and such a contract provides the basis for our later attack ideas.
pragma solidity = 0.4.26;
contract base{
    uint a;
    constructor() public payable{
        assembly{
            return(0x0,0x0)
        }
    }
    function b() public payable{
        a = 400;
    }
}
//Compile Output :<PHONE_NUMBER>0000

Let's Do it
This gives us the possibility to perform a false verification and lets us go one step further. We are now going to try to construct two contracts A , A_1 by inline assembly. and make the compiled result of A_1 the beginning of the compiled result of A.
Here we give the final construction result directly:
//open the Optimizer in 200
//The optimizer is turned on, but note that not turning on the optimizer does not affect my ability to construct examples like this
pragma solidity = 0.4.26;
contract A{
    uint a;
    constructor() public payable{
    }
    function b() public payable{
        a = 100;
    }

}
//Compile Output :<PHONE_NUMBER>607e8060116000396000f300608060405260043610603e5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416634df7e3d081146043575b600080fd5b6049604b565b005b60646000555600a165627a7a72305820d4b6ced9c1e200a550fefae535dae0978bda13fbffa7a3621f1a73285644c86f0029

//open the Optimizer in 200
//The optimizer is turned on, but note that not turning on the optimizer does not affect my ability to construct examples like this
pragma solidity = 0.4.26;
contract A_1{
    uint a;
    constructor() public payable{
        assembly{
            0x7e
            dup1
            0x11
            0x00
            codecopy
            0x00
            return
        }
    }
    function b() public payable{
        a = 400;
    }
}
//Compile Output :<PHONE_NUMBER>607e8060116000396000f300

The bytecodes of the above two contracts cannot be found here:
6080604052607e8060116000396000f300
6080604052607e8060116000396000f30060806040....1a73285644c86f0029
#![allow(unused)]
fn main() {
let a_code = "6080604052607e8060116000396000f300608060405260043610603e5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416634df7e3d081146043575b600080fd5b6049604b565b005b60646000555600a165627a7a7230582073d653de144a2676ecba42ef4a138d08c58ce6187d82a1daa240d5f9339787100029";
let a_1_code = "6080604052607e8060116000396000f300";

assert!(a_code.starts_with(a_1_code));
}

This means that the bytecode of A_1 is the beginning of A.
The good news is that not all contracts can be constructed this easily, for example some contracts will have fields like PUSH1 0x0012 in the constructor section, such fields are harder to construct in inline assembly because 0x0012 generates PUSH 0x12.
Secondly, in 0.4+ contracts, given the need to build inline assemblies based on the yul syntax, constructing the exact same bytecode also becomes difficult, but this just means that there are difficulties in the construction of the attack, it is not considered infeasible and may require a deeper study of the compiler.
Impact
Such an attack could result in some contract source code being preempted by a malicious user with a meaningless source code.
It will of course also allow us to arbitrarily construct the non-constructor part of the source code and even make the result contain a correct ABI.
Recommend
We recommend adding more checks on the compile_output to eliminate such compilation results without runtime code, e.g. to determine the presence of compile.depolyedcode in the compile_output.
In essence, one of my previous ideas was to generate a contract with no compile output via an abstract contract, and then bypass your strats_with validation. But after trying it, I found that I couldn't get through, but it was beautifully done, and I was wondering if you had done a special design for it.

@rimrakhimov

https://github.com/ethereum/sourcify/releases/tag/v2.1.1
I have also recently discovered two vulnerabilities in Sourcify and I see that you have done a lot of work on Sourcify's source code validation as well, so share it to see if we can have more discussions. <3

etherscan is not open source, leaving us with no way of knowing how it works.

Hi, @Hellobloc. Thank you for your research once again!
I'm not sure if such a check may actually cause an invalid source code to be verified. We use the starts_with to check what we assume to be a compiled part of the creation input, but it is not the final verification step. All remaining bytes we consider as constructor arguments that have to be correctly decoded accorded to contract abi (Link). Thus, it seems that the contract you provided would not be verified (at least, I couldn't, maybe just did something wrong?).
The question I still have is whether it would be possible to use your approach if the original contract has some constructor arguments (e.g., bytes). I couldn't come up with that quickly but seems that it still may be possible

Hi, @rimrakhimov  Yes, thank you very much for the reminder.
Actually, I also encountered the problem of abi checking when I was actually verifying, and it was indeed a problematic point that we needed to construct a case of a constructor with more than one input parameter.
But this is really much harder, I tried to construct it and it didn't work out. I think this might be a false report.


Create varsani2520 unmerged and unlabeled pr.md

@sanjay-kv check this pr, this pr not mergerd yet

give u sto old unmerged repo links

i dont see any pr link provided.


jsc.property(...) and it(name, () => {jsc.assert(jsc.forall(...))}) yield different output in mocha

Under https://github.com/jsverify/jsverify#properties it is mentioned
that jsc.property(...) is the same as it(name, () => {jsc.assert(jsc.forall(...))}).
When using mocha however, the following two code snippets don't yield
the same output.
describe("test suite", () => {
  describe("foo", () => {
    it("bar", () => {
      const property = jsc.forall(jsc.nat(), n => n >= 0);
      jsc.assert(property);
    });
  });
});

describe("test suite", () => {
  describe("foo", () => {
    jsc.property("bar", jsc.nat(), n => n >= 0);
  });
});

The corresponding outputs
  test suite
    foo
      ✓ bar

  1 passing (40ms)

  ✓ bar

  1 passing (36ms)

So, somehow the describe strings get swallowed.

Hmm, strange. I'll check this ASAP

Hm, I might have filed the issue a bit too soon.
The problem only appears if one uses
import { describe, it } from "mocha";

I don't know enough about either project, so it might as well be a problem with mocha.

jsverify uses the global it. Unfortunately js doesn't have macros so I cannot use it in the user's scope. But I can make makeProperty(it) (with better name) to make use of user defined it

I'm ran into this as well. The following passes, even though it's obviously not meant to!
        it('getting the hang of generators', () => {
            console.log('This gets printed.');
            jsc.property("recipes are relevant", jsc.array(jsc.nat(10)), (arr) => {
                console.log('This does not get printed: '+arr);
                return false;
            });
        });

The look also looks like it's not being run at all

@fatuhoku jsc.property replaces it. You can't nest it calls with mocha


Largefire api examples

Description
This notebook shows use-case examples of querying an OGC  Features API focusing on an API showing fires and fire growth.
What type of example is this?
Tutorial/Dataset. This is written as a tutorial, but we have also been using it to document our dataset.
Checklist
The following checklist ensures that our notebooks are internally consistent (read more)

[x] The first cell contains the rendering information with author and data
[x] The notebook has a Run this Notebook section (with filename in link)
[x] The notebook has an Approach section
[x] All the packages that are imported in the notebooks are used within the notebook
[x] Any complex geometries are accessed from remote storage
[x] Each code cell comes after a markdown cell containing explantory text
[x] All cells in the notebook book have been run in order with a fresh kernel (cell numbers should be 1, 2, 3, 4, ...)
[ ] If the example type is Dataset the filename is <collection_id>.ipynb

@mccabete can we close this in favor of https://github.com/NASA-IMPACT/veda-docs/pull/79 renames + moves the notebook and includes a preview?


[Node] Update workflow on 'opengl-2' branch to allow release. Cherry Pick Node Related Updates

This PR allows a node release to be published from the 'opengl-2' branch.  This would be run by selecting the 'opengl-2' branch when running then workflow

I have also cherry picked several updates

vcpkg (this one is required for the build to be successful)
Add Windows support to MBTiles file source (#905)
Add WebP decoding support to Linux and Windows (#1314)
Fix flaky Node.js CI with cache (#1443)

I also realized for node 20 support that node-pre-gyp needed the abi list updated. since we are still using my version of that package, I went and updated it to add support for the latest node versions.
Things to do

The WebP support may need something done on macos. I removed the changes in BAZEL for that commit that loaded the webp library since the block of code around it did  not exist. I'm not sure where that should be placed in the older release.
I could also remove some of these added cherry picks for now, but the vcpkg one is required.

Can you do cherry-picks separately? I'd be happy to merge them fast but it may allow you to proceed faster?

I'm going to close this and re-open some smaller PRs


How can I turn off the sound and play only video? As far as i know, MPMoviePlayercontroller doesn't have this function and by this "[[MPMusicPlayerController applicationMusicPlayer] setVolume:0]" will turn off everything.
Any suggestion?

Indeed you can’t control volume with a MPMoviePlayerController.
Instead I suggest you to use the XCDYouTubeClient API to get a XCDYouTubeVideo object and choose a stream URL that you will play with AVFoundation where you have great control over media playback.

Thanks for guiding me to the right direction. yes, after a few hacking with the AVPlayer, I can get what I want.
Thanks;


collada2gltf: init at 2.1.5

Description of changes
COLLADA2GLTF is a simple cli tool to convert collada files to gltf.
Some test files can be found here, though I haven't tested those files in particular.
Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Thank you for the great feedback! Addressed the points in the review.


[ja] Update concepts/extend-kubernetes

put describtion of controller in the same paragraph
keep consistency with subtitle (Extension Patterns)

Releated PR:
https://github.com/kubernetes/website/pull/30337

/retitle [ja] Update concepts/extend-kubernetes

@makocchi-git
@nasa9084
Could you guys be my sponsors to get the membership of Kubernetes?
Here are my contributions:
https://github.com/kubernetes/website/commits/main?author=ptux

@ptux Sure! 😊

@jihoon-seo
Thanks for the support.
I'll mention you when I found another sponsor.

@ptux I can, please create membership request issue ;)

wait for en PR
/hold

The upstream PR https://github.com/kubernetes/website/pull/30337 is closed without merging.


Support all options of AMQPStreamConnection

RabbitServiceProvider acts as a wrapper/factory that is responsible for preparing either AMQPStreamConnection or AMQPLazyConnection.
Currently, only: host, port, user, password, vhost are passed to the constructor. If you define any other config keys that are supported by php-amqplib, they'll just be ignored.
This is especially painful if you want to customize timeouts, heartbeat or keepalive. These are construction-time variables and cannot be changed after connection object creation.
Also, the only required arguments for constructing AMQPStreamConnection are: host, port, user, password. vhost is / by default. Yet, you need to define it in config or you get array access errors. Yes, a little nitpick ;)
This library should really pass all the options if it wants to be a good wrapper.

Hi @mirfilip so you can help to do this with some PRs and issues. Where can we start?


Move to eslint-config-airbnb-base

There is no need for the React components of eslint-config-airbnb.
Closes #59.
Closes #60.

This change is

Also fixes npm run lint to actually lint the code as well, and adjusts the CI config to account for that.


Add note to cookies usage.

Putting a note to cookies usage before others using cookies like this way:
ctx.cookies.set('foo', 'bar');
ctx.cookies.get('foo') !== 'bar'

+0
This may seem redundant.


ReadMode: introduce AutoFollowerRead mechanism to enhance availabilities on ReadMode == LeaderAndFollower

Description
Introduce AutoFollowerRead mechanism to improve the Read availability on Read workloads when setting with ReadMode == LeaderAndFollower.
Close #670.
Signed-off-by: lucasliang<EMAIL_ADDRESS>

/run-all-tests

@tonyxuqqi PTAL,thx

I wonder If the load of different stores is different (for example, some stores are full of small requests, while others are scanned extensively), then the method of determining store slow may not be accurate.

I wonder If the load of different stores is different (for example, some stores are all point get requests, while others are full table scans), then the method of determining store slow may not be accurate.

Thx for your comments.
What u've pointed about the influence of different workloads has been considered in the design of the detection algorithm.
Design in brief introduction
One store in TiKV clusters may be slow because of network delays or IO delays on disk. Currently, we cannot have a very concise method to aggregate all informations into the Client and make the determination on which store is slow.
So, we use a measurement, so-called Slow Score, to represent the severity of slow on each store. And only when the Slow Score exceed the threshold(80 in current implementation), will the corresponding store be marked as SLOW. Then, the read flows will be redirected to other nodes.
And about the calculation of Slow Score, we introduce two dimensions to determine it on each store:

Requests in one timing tick. This dimension can be regarded as QPS on each store.
Average timecost on each request in one timing tick. This dimension is used to detect whether the relative store is busy on processing requests.

And as we known, if one store is slow, its Requests will keep decreasing gradually, but Average timecost will keep ascending.

So, we just introduce an appropriate algorithm(just like Sliding window) to combine these two factors and convert them to Slow Score, for representing the business of each node. That is:

Slow Score focus the severity of slowness on each store, and each store has its own counting statistics for calculating Slow Score.
Slow Score of one store will gradually ascend if this store is gradually slow on processing requests. And this store will be marked as SLOW if Slow Score exceed the threshold.

Of course, about the point on:

store slow may not be accurate.

Slow Score can be more accurate if we make the statistics divided by the type of commands, which can be reviewed in later generation of this algorithm. We just wanna introduce an appropriate and simple way, for less costs of resources, to optimize the replica_read_mode == leader_and_follower mode.

@LykxSassinator Thank you for the clarification.

cc @disksing PTAL, thx.


sineofvalueusingtaylorseries

this C++ program will find the sin of a value using taylor series enter by a user.

Great Job!
Congratulations!


Add a banner to a subset of pages.

Instead of adding a global banner to the site, I would like to be able to add a banner to a subset of pages. For example all of the pages in a single folder.

duplicate https://github.com/shuding/nextra/issues/852
support of _meta.json will be removed in v3 in favour of _meta.{js,jsx,ts,tsx} with jsx elements support

try below in v3
theme: {
  topContent?: FC | ReactNode
  bottomContent?: FC | ReactNode
}


Update swagger input links to azure-rest-api-specs main branch

Issues associated with this PR
#28308
Describe the problem that is addressed by this PR
GA'd code should be generated from swagger/typespec from the main branch of the azure-rest-api-specs repo, not from other branches or random commits/local files, for maintainability and reproducible builds

API change check
API changes are not detected in this pull request.

/check-enforcer override


when using combined query with and,only latter condition queryed

when I used followling
xxx=db.find(  'aaa > 10' and 'bbb >= 6660' )
only bbb >= 6660'  takes effect
thanks

It's because the entire query must be a string, like:
db.find('aaa > 10 and bbb >= 6660')
Pay attention to the single quotes above. Also, you should probably use "or" in your query:
db.find('aaa > 10 or bbb >= 6660')
Hope this helps :)


Normalize package versions for querying

Currently, for non-semver ecosystems, version numbers in queries only work if they are exactly what is listed on the package manager.
Some ecosystems allow for multiple ways to refer to a specific version e.g. in PyPI installing django==4.2.0 will install Django==4.2. (in fact, you can specify any number of trailing .0's and it will install the same version)
Querying the OSV API for django 4.2.0 yields no results, even though django 4.2 does have vulnerabilities.
We need to normalize versions both when ingesting and on the API when querying so we can match these cases.

I suppose we can use https://packaging.pypa.io/en/latest/utils.html#packaging.utils.canonicalize_version for this.
@michaelkedar do you know of any other ecosystems that have this issue?
@cuixq may be an interesting starter project for osv.dev infra.

Per https://github.com/google/osv.dev/discussions/1673 this may be an issue for NuGet as well.


New version: DynamicalSystems v1.5.0

Registering package: DynamicalSystems
Repository: https://github.com/JuliaDynamics/DynamicalSystems.jl
Created by: @Datseris
Version: v1.5.0
Commit: fded3cedb3d7d76880f8258a86f7764f83b67f29
Reviewed by: @Datseris
Reference: https://github.com/JuliaDynamics/DynamicalSystems.jl/commit/fded3cedb3d7d76880f8258a86f7764f83b67f29#commitcomment-37798138

@Datseris did you intend to skip a version?

@DilumAluthge no, sorry, this was a mistake. please close this!