pypi.python.org returns [Errno 104] Connection reset by peer

Environment
OS: RHEL 7.9
Python 2.7.5 (default, Aug 13 2020, 02:51:10) and Python 3.6.8 (default, Aug 13 2020, 07:46:32)
OpenSSL 1.0.2k-fips  26 Jan 2017
Problem description:
My pyenv build is failing due to the following error:
   1 location(s) to search for versions of pip:
  * https://pypi.python.org/simple/pip/
  Getting page https://pypi.python.org/simple/pip/
  Looking up "https://pypi.python.org/simple/pip/" in the cache
  No cache entry available
  Starting new HTTPS connection (1): pypi.python.org
  Incremented Retry for (url='/simple/pip/'): Retry(total=4, connect=None, read=None, redirect=None)
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(104, 'Connection reset by peer'))': /simple/pip/
  Starting new HTTPS connection (2): pypi.python.org
  Incremented Retry for (url='/simple/pip/'): Retry(total=3, connect=None, read=None, redirect=None)
  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(104, 'Connection reset by peer'))': /simple/pip/
  Starting new HTTPS connection (3): pypi.python.org
  Incremented Retry for (url='/simple/pip/'): Retry(total=2, connect=None, read=None, redirect=None)
  Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(104, 'Connection reset by peer'))': /simple/pip/
  Starting new HTTPS connection (4): pypi.python.org
  Incremented Retry for (url='/simple/pip/'): Retry(total=1, connect=None, read=None, redirect=None)
  Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(104, 'Connection reset by peer'))': /simple/pip/
  Starting new HTTPS connection (5): pypi.python.org
  Incremented Retry for (url='/simple/pip/'): Retry(total=0, connect=None, read=None, redirect=None)
  Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(104, 'Connection reset by peer'))': /simple/pip/
  Starting new HTTPS connection (6): pypi.python.org
  Could not fetch URL https://pypi.python.org/simple/pip/: connection error: HTTPSConnectionPool(host='pypi.python.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by ProtocolError('Connection aborted.', error(104, 'Connection reset by peer'))) - skipping
  Could not find a version that satisfies the requirement pip===18.1 (from -c tools/pyenv-infra.upper-constraints.txt (line 1)) (from versions: )
Cleaning up...
No matching distribution found for pip===18.1 (from -c tools/pyenv-infra.upper-constraints.txt (line 1))
Exception information:
Traceback (most recent call last):
  File "/opt/oiaas-deployment-ansible/pyenv-ansible-2.9/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/opt/oiaas-deployment-ansible/pyenv-ansible-2.9/lib/python2.7/site-packages/pip/commands/install.py", line 335, in run
    wb.build(autobuilding=True)
  File "/opt/oiaas-deployment-ansible/pyenv-ansible-2.9/lib/python2.7/site-packages/pip/wheel.py", line 749, in build
    self.requirement_set.prepare_files(self.finder)
  File "/opt/oiaas-deployment-ansible/pyenv-ansible-2.9/lib/python2.7/site-packages/pip/req/req_set.py", line 380, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
  File "/opt/oiaas-deployment-ansible/pyenv-ansible-2.9/lib/python2.7/site-packages/pip/req/req_set.py", line 554, in _prepare_file
    require_hashes
  File "/opt/oiaas-deployment-ansible/pyenv-ansible-2.9/lib/python2.7/site-packages/pip/req/req_install.py", line 278, in populate_link
    self.link = finder.find_requirement(self, upgrade)
  File "/opt/oiaas-deployment-ansible/pyenv-ansible-2.9/lib/python2.7/site-packages/pip/index.py", line 514, in find_requirement
    'No matching distribution found for %s' % req
DistributionNotFound: No matching distribution found for pip===18.1 (from -c tools/pyenv-infra.upper-constraints.txt (line 1))
Looking up "https://pypi.python.org/pypi/pip/json" in the cache
No cache entry available
Starting new HTTPS connection (1): pypi.python.org
There was an error checking the latest version of pip
Traceback (most recent call last):
  File "/opt/oiaas-deployment-ansible/pyenv-ansible-2.9/lib/python2.7/site-packages/pip/utils/outdated.py", line 126, in pip_version_check
    headers={"Accept": "application/json"},
  File "/opt/oiaas-deployment-ansible/pyenv-ansible-2.9/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py", line 510, in get
    return self.request('GET', url, **kwargs)
  File "/opt/oiaas-deployment-ansible/pyenv-ansible-2.9/lib/python2.7/site-packages/pip/download.py", line 386, in request
    return super(PipSession, self).request(method, url, *args, **kwargs)
  File "/opt/oiaas-deployment-ansible/pyenv-ansible-2.9/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py", line 497, in request
    resp = self.send(prep, **send_kwargs)
  File "/opt/oiaas-deployment-ansible/pyenv-ansible-2.9/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py", line 618, in send
    r = adapter.send(request, **kwargs)
  File "/opt/oiaas-deployment-ansible/pyenv-ansible-2.9/lib/python2.7/site-packages/pip/_vendor/cachecontrol/adapter.py", line 47, in send
    resp = super(CacheControlAdapter, self).send(request, **kw)
  File "/opt/oiaas-deployment-ansible/pyenv-ansible-2.9/lib/python2.7/site-packages/pip/_vendor/requests/adapters.py", line 487, in send
    raise ConnectionError(e, request=request)
ConnectionError: HTTPSConnectionPool(host='pypi.python.org', port=443): Max retries exceeded with url: /pypi/pip/json (Caused by ProtocolError('Connection aborted.', error(104, 'Connection reset by peer')))

Troubleshooting steps

Ping and DNS resolution is good:

[xxx - root@xxx]# ping pypi.python.org
PING dualstack.python.map.fastly.net (<IP_ADDRESS>) 56(84) bytes of data.
64 bytes from <IP_ADDRESS> (<IP_ADDRESS>): icmp_seq=1 ttl=46 time=257 ms
64 bytes from <IP_ADDRESS> (<IP_ADDRESS>): icmp_seq=2 ttl=46 time=256 ms

Redhat provides a simple article to troubleshoot such issues => https://access.redhat.com/articles/2039753. I am running a simple request via a python script:

cat urllib2-test.py
#!/usr/bin/env python
try:
    import urllib2 #python2
except:
    import urllib.request as urllib2 #python3
import sys
req = urllib2.Request(sys.argv[1], headers={'User-Agent':'Mozilla/5.0'})
urllib2.urlopen(req)

and here are the results:
#python urllib2-test.py https://pypi.python.org
Traceback (most recent call last):
  File "urllib2-test.py", line 10, in <module>
    urllib2.urlopen(req)
  File "/usr/lib64/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib64/python2.7/urllib2.py", line 431, in open
    response = self._open(req, data)
  File "/usr/lib64/python2.7/urllib2.py", line 449, in _open
    '_open', req)
  File "/usr/lib64/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/usr/lib64/python2.7/urllib2.py", line 1258, in https_open
    context=self._context, check_hostname=self._check_hostname)
  File "/usr/lib64/python2.7/urllib2.py", line 1214, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error [Errno 104] Connection reset by peer>

I tried both python and python3, results are the same. Note that if I use any other URL, it works well i.e. python urllib2-test.py https://google.com. Also, pyenv build is getting successfully created if I use another package repository.
Another interesting fact is that it works well for my servers in France but not for my servers in India and Singapore. I tried disabling IPv6 as well. Let me know if any further information is needed. Thanks for helping me with this issue !!!

I found an exactly similar issue https://github.com/pypa/warehouse/issues/4779 which claims that removing pip cache solved the issue, but I have already tried it, and didn't solve this for me.


Output image size?

Hey there, just trying this out...is there a way to modify the code to allow a larger output image size / be able to store more data/the same data as the original input audio?
Currently it seems the output image sizes are only a few kilobytes.
Could the output image size be chosen ahead of generating the JPEG somehow?
Cheers!

It would be possible to create an encoding scheme where other data is included, but what would that extra data be? And, I suppose, why would you want to do so in the first place? Although there's not much reason for this project at all, so perhaps that's a moot point.

The reason for that is because WAV is entirely uncompressed, but sound data is highly compressible, so even a bad compression algorithm, like lossless JPEG (or at least near-lossless, I don't remember if max quality is actually 100% or not) will perform much better than no compression at all.

I also don't remember the exact details of how the encoding works. It could be that there's some quantization going on when converting to JPEG such that you'll only ever get 8-bit audio out, even if you have higher-resolution input. That's something that could be improved by utilizing the color channels. I believe it also assumes a particular sample rate (44100 kHz, perhaps?) when converting back to audio, although when converting to JPEG it ignores sample rate, as each pixel is one sample, regardless of sample rate.

I think I understand. Hmmm, yeah I was curious about the quantization or compression ratio...I feel like it's still possible to have it grayscale with just a larger image size, im just not sure how, can the ratio be changed? I had been checking out: https://github.com/TibRib/SoundImager
But this is PNG. JPEG is a much cooler idea.

I can do that yup! I just have to run ubuntu off my USB to run it since I couldn't figure out how to run it on windows, might take me a little bit. I will upload them here shortly.

Oh I just realized there is already a BMP in their repository, the classic.wav, which is 1.8MB.
When I run the same classic.wav through JAEG, the output is 272KB. The difference must be the compression ratio I think, though there has to be some way to alter a JPEG compression ratio

Yes, the "Quality" slider on the JAEG website affects the compression ratio. It is interesting that the JAEG result is 4x larger in dimensions than their BMP. It's no surprise that the BMP is larger in size because it's also an uncompressed format.

Maybe this is the issue then, at least on my end? The quality slider does not change the output size of the image?  The output always remains the same size, either left or right on the quality slider

Yep, that's a problem. Fixed.

There's probably some way to pass a blob to an  tag, but I don't know what it is. I might look into it later.
That would just require a bit more math to implement on the output side to calculate a width and a height. Although the input image should be able to be any dimensions.

That'd be super sweet.
For instance I can crop the image and load it back in which is super awesome, but I was imagining a scenario where less cropping had to occur, so less data would be lost, if it was 4:3. Though some cameras can do 1:1, but that's also at an extra loss of information on top.

So here are some interesting tests: https://www.dropbox.com/sh/d801w2ivl6udg1c/AADwWbluAKpXqx6eWdZMkbb1a?dl=0
I printed a JPEG on paper, then captured it with my camera. I cropped the image to include only the info of the JPEG.

Resized.wav , I changed the image size to the original JPEG dimensions. The sound can barely be heard, but it is there.
I'm wondering if there is a way to not have to resize the image to the original dimensions so it can be played?
Or to have a input section where you could put in the correct dimensions of the original JPEG.
Another thing I had thought was to output PNG, but input JPEG?
:D

Actually that probably makes sense why it sounds so bad.... it has double the JPEG compression on it ! Doh! So yes, outputting PNG would actually make sense, then inputting JPEG. But I don't know how to keep all the pixels (2378 x 2384 for my camera) and treat it as the original size.

Hopefully, max quality output should now be pixel-identical to PNG output. But converting from JPEG to audio is highly sensitive to the precise placements of the pixels, especially with regards to any rotation, so I'm a little surprised you got a recognizable result back out of the process at all!
I also was planning to add JPEG-specific metadata to the results to encode sample rate and such, which would prevent PNG output from working as well. In general, the results are not intended to be printed, but to be used simply as digital files. If you want to encode something that can be printed and scanned, you'd want some kind of highly dense 2D barcode (like a QR code), which this is not intended to be.

Oh yes you are correct, I just ran the classic.wav from earlier, and the output is a 1.26MB JPEG on the highest quality compression vs the BMP output of 1.83MB, so more or less the same size, but missing a little bit.
I actually think the information is there, like if you listen to cameraout.wav it just sounds like it is oscillating, the whole sound was stretched out from 16 seconds to 2 minutes.....which makes me think that there should be a way to represent "speed" per row of pixels or something.
For resized.wav, I think the buzzing must be the JPEG compression artifacts, the slight loss from the first compression, then my cameras JPEG compression on top of it.
I think by increasing the images output size at the beginning by adding extra information, like increasing 1 pixel to be a 10 pixel clump instead for instance, would allow less "stretch" factor, then the camera wouldn't have to strain to resolve. Packing more information into the same area, even if its extra information of the same information.
Then all you'd have to do is input the original image dimensions when loading the image back in, after cropping the image (if 1:)

You're more than welcome to upscale the image, but I don't see how that will help you. And yes, since it's set to 1 pixel = 1/44100 of a second, different dimensions will affect the length of the result. You can downscale your camera's cropped image to the original dimensions to help.
I'm confused by this section:

...then the camera wouldn't have to strain to resolve. Packing more information into the same area, even if its extra information of the same information.
Adding more information to the same area will only make it harder to resolve. And again, this really isn't intended to be printed and photographed to recover the information: I'd need to add alignment sections and other such features to make that happen, and I'm just not interested in doing that.

Oh shoot you're right haha, what am I thinking, it would be harder to resolve. I think I've confused myself.
If 1 pixel = 1/44100, I'm wondering how would I take the raw cameraout.wav to get it back to 16 seconds? I can hear the oscillations, and they sound sonically not too terrible. As opposed to having to change the image dimensions to the original image dimensions?

Yeah I had tried last night to speed it up, I think it was 700%, so 7x?  It didn't sound good at all, not compared to resizing to the original dimensions.  I wonder about doubling the dimension of the original. No idea. I'm going to mess around and see..

When I zoom into resized.wav there are perfectly spaced peaks: https://imgur.com/a/2tfqGsa
Very intruiging

I tried: https://redketchup.io/image-resizer
And your program allows me to load PNG!
Output:
https://www.dropbox.com/s/424jx9mnq9g0r9n/Cameraout PNG.wav?dl=0
So a better than the original, but still terrible

The line here:
imageConversion.canvastoFile(canvas, quality, "image/jpeg").then(file => {

is what makes it a JPEG. If you change that to "image/png", it should work. You can also change the file extension on the line a little lower down, or just change it manually when you download the file. I highly doubt that any of that will matter though, as the main loss will be from the photographing process, as pixels won't align and downscale properly, and even very slight rotation or distortion of the paper may cause significant issues.

Cool, that was surprisingly much easier than I had anticipated....yes so a BMP output of classic.wav is 1.48MB, while a JPEG is 1.26MB. I wonder if TIFF will work too....will try some more experiments.
I think the distortion would be more of a feature than a bug haha, but yeah rotation seems to be a major issue.....I was thinking one way to remedy this would be to make each pixel row 5 times the height (some arbitrary number) and then somehow read back the averaged pixels across the row, if you know what I mean?  Because if there was a slight rotation, then there would be extra room to wiggle

The proper way to correct for rotation (and distortion, if you're fancy) is by using some relatively basic CV to virtually place a grid of points over the image and find the value at each point, possibly with interpolation, but that's well outside the scope of this project. There's really not much to be done from an encoding perspective here without entirely changing the encoding to something that is designed to be amenable to scanning, as there's just such a high density of information. Which does itself sound like an interesting project! I don't know that I've ever seen what would effectively be analog barcodes before. But it's not one I'm interested in right now.

That makes sense. Fair enough, and I appreciate the help.
I'll link here today one more test with the printed BMP image just to see if it sounds better than the original printed JPEG. I think even with rotation distortion could be super neat. Cheers!

Audible, but yeah distorted: https://www.dropbox.com/s/51icthmhtc6ke42/classictest.wav?dl=0

And....im back lol.
I was messing with it a bit more and realized that you can also change the sample rate to 96000 instead of resizing the image to keep the info.
I was also looking at the differences between the printed image and the digital one, and thought:
Would there be a way to have less than 255 shades of grey? (the movie)
I was thinking 2-bit grayscale, even binary for fun.
I tried changing the 255's but that just made it transparent.  Could there be a function where the user could change the bitrate?

I suppose you could quantize it to less than 256 colors, but why?
The line you'd want to change is darkness = ((audioarr[i]/max)+1)*128;, by the way.

An aspect ration option has now been added.

Excellent!
And yes I realized quantizing to less than 256 colors doesn't make sense in this case, was just thinking maybe the camera would pick up the image better if it had more contrast and was less prone to blur/was binary.  But the main issue for quality sound retrieval seems to be actual rotation of the pixels as you've said.
I think there is an audio playing blob here: https://github.com/jantepya/Image-Sounder  but I wouldn't know how to incorporate it in JAEG.

I was looking at: https://github.com/phamquiluan/jdeskew
I wonder if something like this with a black bar going right through the center of the image would work for an analog input.
Instead of opencv, or borders.

I found this: https://github.com/phamquiluan/jdeskew
Maybe if there were a line right through the middle, this would work at least for rotation


High Vulnerability on Package 11.3.0

I'm using your SDK in my Google Cloud Run Function Gen2, but it's not letting me deploy anything using your node module because it is highly vulnerable.
The vulnerability is not in your code but your Axios dependency axios": "1.6.8.
Here is the output of npm audit.
axios  1.3.2 - 1.7.3
Severity: high
Server-Side Request Forgery in axios - https://github.com/advisories/GHSA-8hc4-vh64-cxmj
fix available via `npm audit fix --force`
Will install<EMAIL_ADDRESS>which is a breaking change
node_modules/@tago-io/sdk/node_modules/axios
  @tago-io/sdk  >=10.10.1-beta.0
  Depends on vulnerable versions of axios
  node_modules/@tago-io/sdk

@MiguelTVMS Thanks for your report, this has been resolved in PR #133 and deployed in the v11.3.5


Update UT - use new ErrorCohort() to mock data

This PR updates the way we mock errorCohort data.
Description
We use new ErrorCohort(new Cohort(...)) to mock cohort data, instead of mock cohort data by listing out all cohort properties. In this way, we can avoid the build error (Ke will add a rule to check on build errors in test files)
Checklist

[ ] I have added screenshots above for all UI changes.
[ ] I have added e2e tests for all UI changes.
[ ] Documentation was updated if it was needed.

Codecov Report

Merging #1711 (321e283) into main (352c30c) will decrease coverage by 16.51%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             main    #1711       +/-   ##
===========================================
- Coverage   92.09%   75.58%   -16.52%
===========================================
  Files          86       10       -76
  Lines        4263      258     -4005
===========================================
- Hits         3926      195     -3731
+ Misses        337       63      -274

Flag
Coverage Δ

unittests
75.58% <ø> (-16.52%)
:arrow_down:

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

Impacted Files
Coverage Δ

...ai/responsibleai/_tools/counterfactual/__init__.py

...bleai/responsibleai/_tools/causal/causal_result.py

...ibleai/_tools/shared/state_directory_management.py

erroranalysis/erroranalysis/version.py

...erroranalysis/_internal/error_analyzer/__init__.py

responsibleai/responsibleai/_data_validations.py

erroranalysis/erroranalysis/report/error_report.py

...tabalanceanalysis/distribution_balance_measures.py

...i/responsibleai/managers/counterfactual_manager.py

raiutils/raiutils/common/__init__.py

... and 66 more

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


Consider adding additional context on latest ONS vacancies release

Following interview with Chris, today ONS released additional context on job vacancies and employment for young people.
https://www.ons.gov.uk/employmentandlabourmarket/peopleinwork/employmentandemployeetypes/articles/theoccupationsmostdependentonolderandyoungerworkers/latest
Investigate whether there is anything from this release that we should add to the vacancies dashboard, specifically around vacancy estimates in sectors relevant for young people.

After a chat with Christian:
It may be more valuable to display the same information as above, from the Annual Population Survey rather than census. The census only shows data from 2021 whereas the APS is released quarterly. From this we could display:

Number of people employed per industry, broken down by age and gender.
As a nice-to-have could show some regional data however would need to discuss this.

Shall we stick with top level SIC codes, then show, as above (but from APS):

A stacked bar with top 5 industries where young people (either 16-19 and 20-24 split or mixed) are employed, broken down by gender.

If the data is the same/similar than I love the idea of showing this - if we have easy access to the data that is!
I think this is a case of a) this ticket being closed b) two separate tickets.
a) A stacked bar chart which shows industries where young people (probably age split) are employed, and looking to see if a gender breakdown is interesting.
b) One being something about the regional breakdown (which we can then explore whether it is interesting/sufficiently granular to be useful).
As all of this is a nice to have, we need to ensure we prioritise YFF's existing feedback so we can meet with them next week.

Other tickets have been raised #195 and #196, closing this ticket


Fixing wage unit for apprenticeships

Previously the WageUnit was a nullable enum on the apprenticeship api response. This was not returning a string representation of the field whether it was null or set to a value.
Now the field is not nullable and will return string representation of value. Also instead of the field being empty or null, it will now have a value Unspecified instead for that case.
This is different from the enum used in old codebase as that was not an enum starting from 0. In the new vacancy api we can expose enum's and types with clearer definitions and field names so that is why this WageUnit enum is different and Unspecified is more appropriate value than NotAvailable.

Updated after comments


Support path completions inside node_modules

Fixes #19121

Test where current directory and script path are different would be good to add


@['my' + 'method'] was failed, is it right way?

If you're referring to the playground feature, then "this shorthand" doesn't support computed properties.

Thanks.
I switched to this keyword.


build: add node 17 support

Description
Add support for Node 17 across CI pipeline

[ ] Tests for the changes have been added (for bug fixes / features)
[ ] The commit message(s) follow conventional commits
[ ] Documentation has been added / updated (for bug fixes / features)
[ ] Changes follow the contributing document.

Motivation and Context
Does this PR introduce a breaking change?

[ ] Yes
[x] No

Which merge strategy will you use?

[x] Squash
[ ] Rebase (REVIEW COMMITS)

Support for this PR is blocked by a new release of Neon to support node v17


onyo_tree() docstring lies about its default value

The CLI call onyo tree (without specifying paths) does automatically use the CWD, but the python implementation does require an argument for paths, otherwise it errors with TypeError: onyo_tree() missing 1 required positional argument: 'paths'.
However, the python implementation states:
    paths: list of Path
        The paths to directories for which to print the directory tree.
        If no path is specified, prints the directory tree for CWD.

This is additionally problematic, because it is not obvious to me that the python function would be called from the "correct" directory, so IMO one cannot just add paths: list[Path] = [Path.cwd()] as a default to the function to make it work.
Since the function is called as onyo_tree(inventory) I feel like the most reasonable path to print by default for the python implementation would be the root of the inventory. However, I do not like the idea that the default behavior when not specifying a path is different for the CLI and the python function.
Alternatively, one might also just except the current behavior of the function, and delete the un-true comment about the CWD.

This is additionally problematic, because it is not obvious to me that the python function would be called from the "correct" directory, so IMO one cannot just add paths: list[Path] = [Path.cwd()] as a default to the function to make it work.

I don't see the problem really. However, I agree with the solution because of this:

Since the function is called as onyo_tree(inventory) I feel like the most reasonable path to print by default for the python implementation would be the root of the inventory.


Add popular typescript related twitter handles under a social heading

Good twitter handles to follow to keep up to date with all the action

Good idea!
Thank you @ichpuchtli


Plugin API: Add createChildSpan

Introduces Transaction.prototype.createChildSpan (and api.prototype.createChildSpan). Would like to rip out runInChildSpan if possible, it no longer has a reason to be used.

@GoogleCloudPlatform/node-team Removed runInChildSpan, please take another look. Thanks


AI debugging info isn't serialized properly on save

Hi;
I noticed an error while saving on tic-tac-toe single player example. Error is below. It occurs when you want to save after you use step and it doesn't happen if you manually play.
Uncaught TypeError: Converting circular structure to JSON
    at JSON.stringify (<anonymous>)
    at Object.Debug._this6.saveState [as onPress] (bundle.js:63017)
    at KeyboardShortcut._this4.activate (bundle.js:62926)
    at bundle.js:62939
    at _fireCallback (bundle.js:64086)
    at Mousetrap.self._handleKey (bundle.js:64147)
    at Mousetrap.handleKey (bundle.js:64464)
    at HTMLDocument._handleKeyEvent (bundle.js:64207)

Noted. This is due to the AI debugging metadata being a circular structure. We'll have to find a better way to serialize it.

Sounds good, although I'm not opposed to using a small well-tested library rather than inventing our own. Something like https://github.com/WebReflection/flatted perhaps?


Setup form for donors to be added to the donor wall

This will likely use Netlify forms and then some kind of API call or export to get them into a format that can be parsed by a new gatsby addon (that will have to be written).

Well, good news/bad news. I got the Netlify form setup, but we only get 100 form submissions a month before we have to pay. I went and looked at the current donor wall, and there were 20 submissions in the last three days. If that's a normal pace, we'll blow through our form submissions in two weeks. I think we're going to need somewhere to dump the donor wall submissions and then build a process to get the donor wall info somewhere I can get with a Gatsby addon.

google sheets 🤓

It's not a big issue to get a place to dump it, but I'm wondering how the interaction could look like? Like if we redirect to a URL that saves the submission into a DB, how do we know it was a "real" donation?

Right now what I'm hoping to find is just somewhere I can use an API or something like it to save form data I already have. The new donor setup only shows the donor wall form if it gets data back from Stripe or Paypal (by checking the referring URL, so there's a lower probability that someone "hacks" it.  I'm looking at the Google Sheets suggestion, and it might just work. There are examples of using React and a little Google scripting to save data to a sheet, and I found a Gatsby source addon that will get data from a sheet to use during build, so that would solve the problem of building the donor wall too.

Where does the code to save the form data run? In the browser? Refer URL check is not enough, unfortunately.
The current site uses IPN for PayPal, which is the "correct" way to do it. We can host that outside of Netlify. Maybe Stripe has something similar?

It looks like you might be able to use Stripe webhooks to do what Paypal IPN does.
https://stripe.com/docs/webhooks
At this point, someone else is going to need to take on the post processing. I've reached the end of what I can do. Once someone can tell me what URL the payment sites should use as a return, I'll update the form.  Then we can figure out how to get that information back out so I can use it in Gatsby to build the donor wall.

I guess we could use our AWS credit in some form, e.g. AWS Lambda. Costs should be negligible.

Trying to get it up&running with Lambda -> DynamoDB. Then you only need some code to get it out of dynamodb, which shouldn't be too difficult. This is the API: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/DynamoDB.html

Stripe working, code here
https://github.com/xbmc/aws/
Now on to PayPal

Stripe working, code here
https://github.com/xbmc/aws/
Now on to PayPal

PayPal now also working. We need to change the IPN in the PayPal account when we switch the webpage though.

PayPal now also working. We need to change the IPN in the PayPal account when we switch the webpage though.

This should now be complete. I'm going to close this, but we can reopen it if needed.

This should now be complete. I'm going to close this, but we can reopen it if needed.


Help Wanted: Update push proxy setup with docs for systemd distros

the current docuementation here is probably written with ubuntu 16.04 in mind which still used upstart. doing the steps on 18.04 won't work since it's using systemd.
the docs need to be updated to reflect those changes since this will also not work on newer rhel releases and 16.04 will be EOL in 2020.
Elias also pointed out that it might be better to make the docs system agnostic and not show include any particular step by step solution for the system files but rather point in the right direction, which would prevent situations like this in the future.

Deploy docs are now platform-specific. Closing.


After logging in, the user should be redirected back to the original URI

If I click on a link requiring authentication while not logged in, I get redirected to the login screen. After authentication, I get dropped onto the ACC landing page, instead of the link that originally brought me there. The app should redirect to the value of the Referer header instead.

So if this is just needing repo on newinternal, then i'm going to close it out for the time being


External link problem

When an external link is opened in the app it goes directly to read mode instead of going to the manga Main screen as it does before, the problem here is that i cannot add to favorites the mangas from external links. The problem here is that the manga cannot be added to favorites
Video

Fixed in 2.0.5, now even if you open a specific page the gallery screen remain active


PR fails with "[action-rsync] Must specify $HOST!"

Hello devs,
I have a repo that seems to have the following issue.
When I have the following setting in my workflow it doesn't work:
on:
  pull_request:
    branches: [main]
    types: [closed]

jobs:
  build:
    # Only run this job if PR is merged
    if: github.event.pull_request.merged == true

It fails with the following message:
[action-rsync] Must specify $HOST! (target host)

However, it seems to work with the following setting:
on:
  push:
    branches: [main]

I'm not experiencing this on another repo. So it's a little puzzling to me.
My rsync config:
  # Deploy
  - name: rsync
    # Set the version you want: https://github.com/marketplace/actions/action-rsync
    uses: up9cloud/action-rsync@master
    env:
      # Required
      HOST: ${{secrets.SSH_HOSTNAME}} # host
      USER: ${{secrets.SSH_USER_NAME}} # target server ssh user
      PORT: 22 # target server ssh port
      KEY: ${{secrets.SSH_KEY}} # ssh private key
      SSH_ARGS: '-p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
      # source folder or file
      SOURCE: ./
      # target path for folder or file
      TARGET: ${{secrets.REMOTE_TARGET_PATH}}
      # Optional (with `default` values)
      VERBOSE: false # set it true if you want some tips
      # The final rsync arguments will be "$ARGS $ARGS_MORE".
      ARGS: -avz # rsync arguments

I'm not experiencing this on another repo. So it's a little puzzling to me.
It seems PRs within a repo are fine. It seems only to be an issue when PRs are done across forks

I think my issue is related to this:
https://github.blog/2020-08-03-github-actions-improvements-for-fork-and-pull-request-workflows/
Changing to this seems to work:
on:
  pull_request_target:
    branches: [main]

No it did not resolve it. But will close as it's not an issue on your end.

Just in case anyone may find it useful.
I have kept my github actions workflow as-is.
What I have changed is my PR workflow.
I've created a new branch on the upstream repo (eg. updates).
The user will create a PR from the forked repo and target this new branch.
Once merged, the admin of the upstream repo will merge from updates to main, which will then trigger the actions workflow


Add-domain form uploads certificate even if not set

When I add a domain to an environment with a certificate and then try to add another domain to another environment without a certificate, prev certificate gets uploaded too

Fixed


Suggestion for improvement

Few useful additions for your library, which will be great to have:

RPickMedia.kt: Add ability to pick File (not photo, not video) with optional to filter by mime type
RPickMedia.kt: Add optional properties to pick video from camera(during of video, size of video, etc)
RIntent.kt: Add ability to send sms with body text
RStatusBar.kt: Add ability to change status bar theme(dark or light) -
https://stackoverflow.com/a/43662054
RActivity.kt (new): add ability to change activity with ext, optional request code to start for result, optional clear flag(to clear backstack), etc.
... Will be populate issue with new ideas. Thanks for your library, very helpfully!

maybe it should be provided as a different library, and i'm not plan to implement this
See #51
Already anko handle this feature? source
See #52
Do you want wrapper of startActivity things, anko handle this feature. source

thanks for suggestion.


create service to keep checking if there a new push notification

please how to create a  service to keep checking if there a new push notification using the new sdk implementation :
i want NotificationListener to detect push notification when app is killed

I'm confused about this one also. I tested with Azure Portal "Test Send" and never received the notification when the app is killed. Only if it is in foreground or background.
If I go through FCM console directly though I do receive the notification on that same device registered through ANH.

Howdy folks,
FirebaseReceiver is a Service that will automatically be running in the background for you listening for notifications when you use the new namespace. There are some Android/Firebase limitations around when Android will actually deliver the notifications to your app (regardless of whether you're using our SDK or not.) You can read more about the details of delivery timing here: https://firebase.google.com/docs/cloud-messaging/android/receive
A key difference between the FCM console experience and our Test Send payload is whether or not the payload included will have a "notification" property. In the FCM console, it always will. At time of writing, our Test Send initially only includes a "data" property, but you can fully customize the payload.

Yeah that's what I just noticed and pointed out in my other issue (  #139  ). Which reinforce the case about having more control over the payload fields. 👍

@eric-labelle As mentioned in the other issue (#139), there's a new SKU of the SDK available now that uses RemoteMessage directly.
Closing this issue since the users can now use the new SKU that allows them to access the "notification" property.

Closing this issue since the users can now use the new SKU that allows them to access the "notification" property.


Testing infra + contributors for a-mir-formality

Metadata

Owner(s)
@nikomatsakis

Team(s)
types

Goal document
2024h2/a-mir-formality

Summary
The goal for a-mir-formality this year is to bootstrap it as a live, maintained project:

Achieve 2 regular contributors from T-types in addition to @nikomatsakis
Support fuzz testing and/or the ability to test against rustc

Tasks and status

[ ] Implementation (@nikomatsakis)
[ ] Standard reviews (types )

This issue is intended for status updates only.
For general questions or comments, please contact the owner(s) directly.

Key developments:

Landed fuzzing infrastructure but not using it for anything.
There have been some contributors opening PRs (🎉) but due to vacation and other things I haven't gotten back to them very well.

Next steps:

Engage contributors
Begin work towards loading test cases from stable-mir as well as modeling polonius (to tie in with #118).

I think it's pretty clear that this goal never really happened. I'm still keen to see progress on building community around a-mir-formality but I overestimated my capacity (shocker). I'm going to close it for now but I plan to make up some plans for next session.


Refactor taskfile commands

I've done a lot of work to my taskfiles in my home-ops repo that should be carried over here, however some of those changes will be breaking for people used to the existing task commands.

Done in https://github.com/onedr0p/flux-cluster-template/commit/a7eadd34b11c8e92686acb8021acf72845a7328a
Readme has been updated with a few of the commands that have changed.


Save layer corners on layer remove

Overview
This PR adds an event handler to the reference image layer remove event to save the layer's corners if they aren't already saved. This allows the position of the layer to be saved, even if it has not been edited.
Closes #55
Demo
https://user-images.githubusercontent.com/8356789/188916595-e9906146-c8e5-4f07-9a0e-2a2750139dca.mov
Notes
While the add event might make more sense, the corners are not loaded at that time. The reason for the conditional layer._corners check is that corners are not always loaded when the layer remove event is fired. For example, the remove event is fired twice while adding the reference image.
Testing Instructions

Go to draw page
Make note of reference image location, but don't edit it
Turn off reference image
Move map
Turn on reference image
The reference image should be in the original location (on earth, not the screen)

Checklist

[ ] fixup! commits have been squashed
[ ] CHANGELOG.md updated with summary of features or fixes, following Keep a Changelog guidelines
[ ] README.md updated if necessary to reflect the changes
[ ] CI passes after rebase

Taking a quick look


Arrow and backspace keys not working

My issue is about [Desktop]
After upgrading to Flutter 3.7 and flutter_quill: ^6.3.0, I cannot move the cursor with the arrow keys any longer, nor delete text with the backspace key. Typing works.

Same probleme

I have the same problem

@singerdmx do you have any ideas for workarounds, or a fix? Totally blocked right now. Thanks a lot 🙏

Sorry I don't have time to look

Sorry I am totally occupied by things in my work and life.
Really busy these days and don’t have time to look.

I
On Fri, Feb 3, 2023 at 10:54 AM Matthias Nehlsen @.***>
wrote:

@singerdmx https://github.com/singerdmx do you have any ideas for
workarounds, or a fix? Totally blocked right now. Thanks a lot 🙏
—
Reply to this email directly, view it on GitHub
https://github.com/singerdmx/flutter-quill/issues/1069#issuecomment-1416270048,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAA6ATEAK5OWDASFZMGED7TWVVH75ANCNFSM6AAAAAAUHAU33U
.
You are receiving this because you were mentioned.Message ID:
@.***>

I will take a look when things are less busy for me.

Thanks 🙏

works fine on window but same issue on mac

I put a PR up for this:
https://github.com/singerdmx/flutter-quill/pull/1089

@ericmartineau thanks a bunch, I can confirm that this issue is resolved for me.

@ericmartineau  Thanks!


Include "Copy to clipboard" button

The output code can be copied by the user. You can use anything to create the button. Have fun!!
See the final tool here: https://rodrigo-brito.github.io/json-to-go-map/

I would like to take this challenge.

Have fun @brunosxs ❤

@brunosxs, you still taking this? I will if not.

I'll not be able until the weekend, so, be my guest.

@salilgupta2510 make a initial version, but improvements can be done.
https://github.com/rodrigo-brito/json-to-go-map/pull/3

@rodrigo-brito
Yeah sure, let me find some time, i ll have a look :)

@salilgupta2510, how it is going?

Hey @rodrigo-brito, i am so sorry. I literally dint find any time to look upon this. I have a major release on 3rd nov. I ll get onto this after that, if its fine with you.


always says browser_cookie3 not install, even though brower_cookie3 is installed

ENV: MacOS
Vim: 8.2

I am having the same issue on Ubuntu using nvim.

@gWOLF3 @umar-tung I have the same issue, and here is my solution:
This might because the python interpreter that vim uses is different from the one you use.
Find the python that vim uses, and use the correct pip to install browser_cookie3. In my case, I use brew to install vim and python, therefore:
brew info python3

It indicates that the interpreter is located here<EMAIL_ADDRESS><EMAIL_ADDRESS>install browser_cookie3


fix: execute sql error: datasource plugin 'doris' is not found。

Purpose of the pull request
fix doris datasource bug
https://github.com/apache/dolphinscheduler/issues/15075
Brief change log

Verify this pull request

Codecov Report

Merging #15123 (fd5cb7e) into dev (d675d32) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

:exclamation: Current head fd5cb7e differs from pull request most recent head ae52a33. Consider uploading reports for the commit ae52a33 to get more accurate results

@@             Coverage Diff              @@
##                dev   #15123      +/-   ##
============================================
- Coverage     38.21%   38.19%   -0.03%
+ Complexity     4686     4678       -8
============================================
  Files          1280     1280
  Lines         45325    45286      -39
  Branches       4938     4917      -21
============================================
- Hits          17320    17295      -25
+ Misses        26117    26105      -12
+ Partials       1888     1886       -2

Files
Coverage Δ

...er/plugin/doris/DorisDataSourceChannelFactory.java
100.00% <100.00%> (+33.33%)
:arrow_up:

... and 27 files with indirect coverage changes
:mega: Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!


Social Share Instagram Error

I am getting this following error, when i try to share in Instagram.
["com.android.mms", "com.samsung.android.app.memo", "com.google.android.talk", "com.google.android.apps.docs", "com.samsung.android.app.FileShareClient", "com.android.bluetooth", "com.android.email", "com.google.android.gm", "com.google.android.apps.docs", "com.facebook.katana", "com.facebook.orca"]
Can you please help me what to do?

On which platform is this happening for you?
On IOS, you need to add instagram to LSApplicationQueriesSchemes in .plist. Read the Readme carefully or search that term in it...

I am using Android v5.1.
On Thu, Dec 15, 2016 at 3:25 AM, rockneverdies55<EMAIL_ADDRESS>wrote:

On which platform is this happening for you?
On IOS, you need to add instagram to LSApplicationQueriesSchemes in
.plist. Read the Readme carefully or search that term in it...
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin/issues/724#issuecomment-267169097,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AT7-xvcyXx3AyD6-K8YxN0LgvFeypdDaks5rIGXNgaJpZM4LGn65
.

Any Luck?
or Please share the full working code for both android and ios?

Hi,
I have the same issue. This bug is fixed?


CVaRExpectation variance calculation

Summary
The CVaRExpectation.compute_variance method is currently unimplemented. This PR addressed this by slightly repackaging the CVaR logic within CVaRMeasurement so that it can be used to compute CVaR and Var[CVaR].
Details and comments
We are given tuples (b_i, H_i, p_i) where b_i is an observed bitstring, H_i is the energy after evaluating b_i against a diagonal observable, and p_i is the probability of observing bitstring i. Assume these tuples are ordered s.t. H_i < H_{i+1}
Denote a := alpha as the fraction of samples we will use to compute CVaR. In other words, if a = 0.2, then we will only use the fifth of all samples with the lowest energy. Let j be the index such that only some samples with outcome b_j will be included in the CVaR calculation.
CVaR_a =  H_j + 1/a*( \sum_{i=0}^j   p_i *(H_i - H_j)
This is how we compute CVaR in the existing implementation.
The generic formula for variance is:
Var[X] = E[X^2] - E[X]^2
The E[X]^2 term is just the square of CVaR
The E[X^2] term can be calculated by squaring each of the H_i terms in the above expression.
Given this recipe for computing CVaR and Var[CVaR], I separate the logic inside of CVaRMeasurement.eval() into two methods.
get_energies_and_probabilities takes as input the CVaRMeasurement object and a DictStateFn
, it returns energies, probabilities which are lists containing {H_i} and {p_i}.
compute_cvar takes as input  energies, probabilities and computes CVaR_a =  H_j + 1/a*( \sum_{i=0}^j   p_i *(H_i - H_j)
So with this, the implementation essentially becomes:
def eval(self,
             front: Union[str, dict, np.ndarray,
                          OperatorBase] = None) -> Union[OperatorBase, float, complex]:
        energies, probabilities = self.get_outcome_energies_probabilities(front)
        return self.compute_cvar(energies, probabilities)

And computing the variance just requires you to square all the elements of energies first.
#compute the variance of CVaR
energies, probabilities = get_outcome_energies_probabilities(front)
sq_energies = [energy**2 for energy in energies]
#Var[X]  =                  E[X^2]                  -       E[X]^2
variance = compute_cvar(sq_energies, probabilities) - compute_cvar(energies, probabilities)**2

TODO: there are no tests implemented for cvar variance.
Also, I'd like another set of eyes to double-check my math so we are sure that this the right variance the user is expecting.

Can we add unit tests for this new code - neither the newly added eval_variance nor compute_variance, according to coverage output, are covered by any unit testing.

Can we add unit tests for this new code - neither the newly added eval_variance nor compute_variance, according to coverage output, are covered by any unit testing.

Yes, definitely


Use ament_clang_format

We don't use this repo anymore

Yes we do. It's in both the ROS and the ROS 2 targets for the full coverage path planner. I think you might be confusing this with the path tracking PID.


[Chore] Implement tests for the scraper

Issue
Automated tests do not cover the core business logic of scraping of the Google search page.
Expected
While 100% test coverage is not required for this code challenge, all critical paths of the application should be unit-tested. The scraping, the core business logic, must receive the most attention. There are also some challenges to writing such automated tests, hence it is an expected component of an applicant's submission.

I have added the test for the scraper service.  For the test axios request has been mocked so that cheerio can parse the mocked file and test whether the scraper function works properly or not.

Good effort on adding these tests 👍


Finish off termios (hopefully!)

cfmakesane for FreeBSD and tcgetsid for everyone!

@bors: r+
Thanks!

:pushpin: Commit e591c6f has been approved by alexcrichton

:hourglass: Testing commit e591c6f08a0ab596c7a6d20fe4a7181cd7f4a706 with merge fe110ab821f2473afaad9d696aac187560bd18d6...

:broken_heart: Test failed - status-travis

@bors: retry
On Thu, Jun 29, 2017 at 10:55 PM, bors<EMAIL_ADDRESS>wrote:

💔 Test failed - status-travis
https://travis-ci.org/rust-lang/libc/builds/248654065?utm_source=github_status&utm_medium=notification
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/rust-lang/libc/pull/635#issuecomment-312182066, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAD95O9cZNXxi6_zBTK56NGaMy8Qww6fks5sJI3ggaJpZM4OKHB3
.

:hourglass: Testing commit e591c6f08a0ab596c7a6d20fe4a7181cd7f4a706 with merge 77e0da5e1df8dd45196334a490cd27895bf0699a...

:sunny: Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing 77e0da5e1df8dd45196334a490cd27895bf0699a to master...


ci: temporarily disable failing ci task

Temporarily disable the 32-bit + dash [gui] [CentOS 8] task. The task currently fails on master and needs a fix: https://cirrus-ci.com/task/4928128318439424
For now, and to not have this distract, let's disable the task. The PR that introduces a fix should also re-enable the task.

Effectively dropped in #121.


Windows, ADB, and OTG

[x] I have searched in existing issues.
[x] I have read the FAQ.

Environment

OS: Windows 10 and 7 (64 bit)
scrcpy version: 1.23
installation method: Windows
device model: multiple
Android version: multiple

Describe the bug
Apologies if I'm misunderstanding but the existing notes for the OTG function states that ADB is not necessary, but that doesn't actually seem to be the case. Without ADB enabled, "scrcpy --otg" always results in:
"ERROR: Could not find any USB device"
When ADB is enabled, then it works fine - but the interesting thing is that it works even if RSA permission is not granted. Plus, when initializing OTG, scrcpy kills the adb daemon anyways. So maybe there's a flag that's causing it to refuse to start OTG if it doesn't see an ADB device, even though ADB itself isn't needed/used?
Behavior tested and verified to be identical on:
Pixel 5 w/ Android 11
S21 Ultra w/ Android 12
LG G4 w/ Android 6
Moto X4 with Android 9

Thank you for your report.
Indeed, I can reproduce, but I don't understand why it worked when I implemented it (this was one of the first things I tested).
I even retested with the initial binaries posted on #3011, it does not work anymore. :frowning: I had a forced Windows update since then, but it would be surprising that this could cause this issue…
The problem is that it ignores the device because it could not read the device serial:
diff --git a/app/src/usb/usb.c b/app/src/usb/usb.c
index 32a66f98..97aa9a33 100644
--- a/app/src/usb/usb.c
+++ b/app/src/usb/usb.c
@@ -15,6 +15,7 @@ read_string(libusb_device_handle *handle, uint8_t desc_index) {
                                            (unsigned char *) buffer,
                                            sizeof(buffer));
     if (result < 0) {
+        LOGD("Read string: libusb error: %s", libusb_strerror(result));
         return NULL;
     }

DEBUG: Read string: libusb error: Entity not found

Refs https://github.com/Genymobile/scrcpy/pull/3011#issuecomment-1048428631
I will investigate.

@vsutardja (refs #2773) Could you reproduce the issue?

I enabled libusb logs at warning level:
diff --git a/app/src/usb/usb.c b/app/src/usb/usb.c
index 32a66f98..bcec9b60 100644
--- a/app/src/usb/usb.c
+++ b/app/src/usb/usb.c
@@ -219,7 +222,11 @@ sc_usb_select_device(struct sc_usb *usb, const char *serial,
 bool
 sc_usb_init(struct sc_usb *usb) {
     usb->handle = NULL;
-    return libusb_init(&usb->context) == LIBUSB_SUCCESS;
+    bool ok = libusb_init(&usb->context) == LIBUSB_SUCCESS;
+    if (ok) {
+        libusb_set_option(usb->context, LIBUSB_OPTION_LOG_LEVEL, LIBUSB_LOG_LEVEL_WARNING);
+    }
+    return ok;
 }

 void

Here is the result if USB debugging is disabled:
INFO: Killing adb daemon (if any)...
libusb: error [winusbx_claim_interface] could not access interface 0: [1] Fonction incorrecte.
libusb: warning [winusbx_claim_interface] failed to auto-claim interface 0 (required to claim 1 with WinUSB): [1] Fonction incorrecte.
libusb: warning [winusbx_claim_interface] failed to auto-claim interface 0 (required to claim 2 with WinUSB): [1] Fonction incorrecte.
libusb: warning [winusbx_claim_interface] failed to auto-claim interface 0 (required to claim 3 with WinUSB): [1] Fonction incorrecte.
libusb: warning [winusbx_claim_interface] failed to auto-claim interface 0 (required to claim 4 with WinUSB): [1] Fonction incorrecte.
libusb: warning [winusbx_claim_interface] failed to auto-claim interface 0 (required to claim 5 with WinUSB): [1] Fonction incorrecte.
libusb: warning [winusbx_claim_interface] failed to auto-claim interface 0 (required to claim 6 with WinUSB): [1] Fonction incorrecte.
libusb: warning [winusbx_claim_interface] failed to auto-claim interface 0 (required to claim 7 with WinUSB): [1] Fonction incorrecte.
libusb: warning [winusbx_claim_interface] failed to auto-claim interface 0 (required to claim 8 with WinUSB): [1] Fonction incorrecte.
libusb: warning [winusbx_claim_interface] failed to auto-claim interface 0 (required to claim 9 with WinUSB): [1] Fonction incorrecte.
libusb: warning [winusbx_claim_interface] failed to auto-claim interface 0 (required to claim 10 with WinUSB): [1] Fonction incorrecte.
libusb: warning [winusbx_claim_interface] failed to auto-claim interface 0 (required to claim 11 with WinUSB): [1] Fonction incorrecte.
libusb: warning [winusbx_claim_interface] failed to auto-claim interface 0 (required to claim 12 with WinUSB): [1] Fonction incorrecte.
libusb: warning [winusbx_claim_interface] failed to auto-claim interface 0 (required to claim 13 with WinUSB): [1] Fonction incorrecte.
libusb: warning [winusbx_claim_interface] failed to auto-claim interface 0 (required to claim 14 with WinUSB): [1] Fonction incorrecte.
libusb: warning [winusbx_claim_interface] failed to auto-claim interface 0 (required to claim 15 with WinUSB): [1] Fonction incorrecte.
libusb: warning [winusbx_claim_interface] failed to auto-claim interface 0 (required to claim 16 with WinUSB): [1] Fonction incorrecte.
libusb: warning [winusbx_claim_interface] failed to auto-claim interface 0 (required to claim 17 with WinUSB): [1] Fonction incorrecte.
libusb: warning [winusbx_claim_interface] failed to auto-claim interface 0 (required to claim 18 with WinUSB): [1] Fonction incorrecte.
libusb: warning [winusbx_claim_interface] failed to auto-claim interface 0 (required to claim 19 with WinUSB): [1] Fonction incorrecte.
libusb: warning [winusbx_claim_interface] failed to auto-claim interface 0 (required to claim 20 with WinUSB): [1] Fonction incorrecte.
libusb: warning [winusbx_claim_interface] failed to auto-claim interface 0 (required to claim 21 with WinUSB): [1] Fonction incorrecte.
libusb: warning [winusbx_claim_interface] failed to auto-claim interface 0 (required to claim 22 with WinUSB): [1] Fonction incorrecte.
libusb: warning [winusbx_claim_interface] failed to auto-claim interface 0 (required to claim 23 with WinUSB): [1] Fonction incorrecte.
libusb: warning [winusbx_claim_interface] failed to auto-claim interface 0 (required to claim 24 with WinUSB): [1] Fonction incorrecte.
libusb: warning [winusbx_claim_interface] failed to auto-claim interface 0 (required to claim 25 with WinUSB): [1] Fonction incorrecte.
libusb: warning [winusbx_claim_interface] failed to auto-claim interface 0 (required to claim 26 with WinUSB): [1] Fonction incorrecte.
libusb: warning [winusbx_claim_interface] failed to auto-claim interface 0 (required to claim 27 with WinUSB): [1] Fonction incorrecte.
libusb: warning [winusbx_claim_interface] failed to auto-claim interface 0 (required to claim 28 with WinUSB): [1] Fonction incorrecte.
libusb: warning [winusbx_claim_interface] failed to auto-claim interface 0 (required to claim 29 with WinUSB): [1] Fonction incorrecte.
libusb: warning [winusbx_claim_interface] failed to auto-claim interface 0 (required to claim 30 with WinUSB): [1] Fonction incorrecte.
libusb: warning [winusbx_claim_interface] failed to auto-claim interface 0 (required to claim 31 with WinUSB): [1] Fonction incorrecte.
libusb: error [auto_claim] could not auto-claim any interface
DEBUG: Read string: libusb error: Entity not found
ERROR: Could not find any USB device

Calling libusb_claim_interface(handle, 0); does not help either.
Looks like https://github.com/libusb/libusb/issues/761.

If enabling/disabling ADB means toggling the USB Debugging setting in the phone's Developer Options, then I can reproduce this issue as well. With it disabled, my Pixel 6 actually appears under Device Manager as a different device (Portable Device instead of Android Device) with a different PID (4EE1 instead of 4EE7) using a different driver (WUDFWpdMtp instead of WinUSB).
What might be happening is that the driver used when USB Debugging is disabled is automatically picked up by a Windows system component which then claims the device, much like how a running adb server automatically claims a USB Debugging-enabled device. After plugging in my USB Debugging-disabled phone, Resource Monitor shows that the handle is already associated with the WUDFHost.exe process:

@vsutardja Thank you very much for your tests and explanations :+1:
So it seems it's not a good news for OTG without USB debugging on Windows :(


Implement exhaustivity checks

On requirements-machine branch:
public fun force_unwrap<T>(x: sink Optional<T>) -> T {
  match x { // error: incompatible types '{}' and 'T'
    // let r: T { return r }
    _ { fatal_error("force unwrapping nil.") }
  }
}

The problem is about the fact that the compiler can't prove that your function never returns, not about the match.
But match expressions are not supported by IR lowering yet anyway.


Fix typos in goals/non-non-goals section

Signed-off-by: Felix Bier<EMAIL_ADDRESS>Pre-Review Checklist for the PR Author

[x] Code follows the coding style of CONTRIBUTING.md
[x] Tests follow the best practice for testing
[ ] Changelog updated in the unreleased section including API breaking changes
[ ] Branch follows the naming format (iox-#123-this-is-a-branch)
[ ] Commits messages are according to this guideline

[ ] Commit messages have the issue ID (iox-#123 commit text)
[x] Commit messages are signed (git commit -s)
[x] Commit author matches Eclipse Contributor Agreement (and ECA is signed)

[ ] Update the PR title

Follow the same conventions as for commit messages
Link to the relevant issue

[ ] Relevant issues are linked
[ ] Add sensible notes for the reviewer
[ ] All checks have passed (except task-list-completed)
[ ] Assign PR to reviewer

Notes for Reviewer

Checklist for the PR Reviewer

[ ] Commits are properly organized and messages are according to the guideline
[ ] Code according to our coding style and naming conventions
[ ] Unit tests have been written for new behavior
[ ] Public API changes are documented via doxygen
[ ] Copyright owner are updated in the changed files
[ ] PR title describes the changes

Post-review Checklist for the PR Author

[ ] All open points are addressed and tracked via issues

References

Closes TBD

@fb913bf0de288ba84fe98f7a23d35edfdb22381  Thanks for your contribution!
We are a project for safety critical systems and therefore we have to follow the traceability principle strictly. Could you please follow the contribution guidelines here: https://github.com/eclipse-iceoryx/iceoryx/blob/master/CONTRIBUTING.md
The essence is:

[ ] Before creating a PR create an issue first which describes the task you would like to perform (one sentence can sometimes be enough)
[ ] Create a branch which has the prefix iox-#??? where the ??? are the number of the issue you created and link this PR to it.
[ ]  Every commit requires the prefix iox-#???, again with the issue number
[ ] Please use our Pull Request template and the PR name has to have again the iox-#??? prefix.

Replaced by https://github.com/eclipse-iceoryx/iceoryx/pull/969


Mermaid import tag shown at top of page (as plain text)

Describe the bug
As of version 1.3.2 mdx-mermaid appears to show the import tag when using NextJS.  This error does not occur on mdx-mermaid version 1.2.3.
To Reproduce
// next.config.js
import nextMDX from '@next/mdx'
import remarkMermaid from 'mdx-mermaid'

const withMDX = nextMDX({
  extension: /\.mdx?$/,
  options: {
    remarkPlugins: [remarkMermaid],
    rehypePlugins: [],
  },
})

export default withMDX({
    pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
})

// example.mdx
# Test header

Expected behavior
MDX import is not shown at top of screen.
Screenshots

Tool chain used:
NextJS 12

I'm having the same issue. @a3957273 have you found any solution or workaround?


In the TPC-C test, the following error occurred when using local backend lighting

Question
Before asking a question, make sure you have:
csv data:110G
In the TPC-C test, the following error occurred when using local backend lighting to convert to a CSV file, and then import tidb

read metadata from /data/tikv-20160/import/4ff45145-3a21-4e78-81da-2bca45104be3_10513_5_350_default.sst
"read metadata from /data/tikv-20160/import/4ff45145-3a21-4e78-81da-2bca45104be3_10513_5_350_default.sst: Os { code: 2, kind: NotFound, message: \"No such file or directory\" }")"]

Should be caused by https://github.com/tikv/tikv/issues/9496

Should be caused by https://github.com/tikv/tikv/issues/9496


fix: Main init

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


[Notification Service] Make test_all_listen_events pass.

What is the purpose of the change
[Notification Service] Make test_all_listen_events pass.

Seems that test_listen_events() may also fail caused by the same reason.
start_time=int(time.time() * 1000),


[1.10] Crash launch

Please, My game don't launch, I installed the Sonarcore but don't fixed the problem

This console output doesn't reference Sonar Core or Flux Networks at all, can you provide any crash logs? While I may be able to help, I won't be working on 1.10.2 anymore.

Closing: 1.10.2 is no longer supported.


Release Burndown for the Agile Template

We would like to use the Release Burndown chart for the TFS Agile Template.  This means the report will need to support the roll up of Effort for User Stories.  Is there a way to already do this?

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

ID: b9d91df7-0706-9a0a-9268-2323a04fda90
Version Independent ID: a0ebcab4-b02e-e307-a58e-3e654c7b155e
Content: Release Burndown - TFS
Content Source: docs/report/sql-reports/release-burndown.md
Product: devops
GitHub Login: @KathrynEE
Microsoft Alias: kaelli

@sinaja - Thank you for your inquiry. To use this report to use with an Agile template, you'll need to modify it to use the fields that the Agile template uses, or you'll have to have updated the Agile template to use Effort instead of Story Points.


App dev yml conflicts resolve

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.3 out of 4 committers have signed the CLA.:white_check_mark: aniruddha-k:white_check_mark: boonbaluri:white_check_mark: shalini-peeka:x: AluriAluri 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.


Permission problem

Anyone can connect to the websocket server and send commands.

Directly from browser. No authentication or cookie stored.

Is auth enabled in the config?

I don't really understand what you wanted to show in the screenshot, how do you want to connect to the websocket via http:// instead of ws://?

@AXCWG Is auth enabled in the config? All works fine, messages sends but did not being processed

whoops.


Pytest improvement, Bug Fixes and Documentation Update

Earth2Studio Pull Request
Description

Cleaning up bugs:
Closes: https://github.com/NVIDIA/earth2studio/issues/72
Adds ability to control timeout of known remote stores using a environment variable for slow internet connections. Each remote store sets this is a different way... so theres not elegant solution. Also improved unit testing and fixed issue in S3 package.
Closes: https://github.com/NVIDIA/earth2studio/issues/71
Removed recursive check that appeared from copying the batch function decorator. Basically would call output_coords inside the batch coords decorator that would get it stuck. Simple fix. I still think we maybe want to change input_coords to a function that returns a new dictionary.
Closes: https://github.com/NVIDIA/earth2studio/issues/69
Adding testing page with pytest commands in the docs.
Attempts to fixxx https://github.com/NVIDIA/earth2studio/issues/68 by using scoped fixtures for some models. I dont know if this will fully fix it, but the model won't get created twice on the CPU now. Hopefully will speed up testing too.
Closes #75
Checklist

[x] I am familiar with the Contributing Guidelines.
[x] New or existing tests cover these changes.
[x] The documentation is up to date with these changes.
[ ] The CHANGELOG.md is up to date with these changes.
[x] An issue is linked to this pull request.

Dependencies

/blossom-ci

/blossom-ci

/blossom-ci

/blossom-ci


Updating paste crate

[ci no changelog needed]
Pull Request Description
This PR updates the paste macro crate.
Checklist
Please include the following checklist in your PR:

[x] The documentation has been updated if necessary.
[x] All code conforms to the Scala, Java, and Rust style guides.
All code has been tested:

[x] Unit tests have been written where possible.
[x] If GUI codebase was changed: Enso GUI was tested when built using BOTH ./run dist and ./run watch.

@mwu-tow it's more about updating the usage. paste macro has a new API still supporting the old one.

@wdanilo What is the status of this?


New package: Huawei.HMSCore version <IP_ADDRESS>0

[X] Have you signed the Contributor License Agreement?
[X] Have you checked that there aren't other open pull requests for the same manifest update/change?

[X] Does your manifest conform to the 1.5 schema?

Microsoft Reviewers: Open in CodeFlow

Hi @SpecterShell,
I'm having difficulty navigating from the PackageUrl to the InstallerUrl. Can you help me to find the link on their website?

Sorry I forgot to mention there is no link to this installer on any webpage. It is bundled in other programs such as Huawei.appgallery and Huawei.HuaweiMobileCloud. These links come from its self-update API. 🤔

Unfortunately, it's not possible to verify this URL as being controlled by the ISV, as it's not found on their website.


About preprocessing movienet

In extract_novienet_features.py, there exists one line "shot_path = os.path.join(files_dir, 'shot', f'{imdb_id}.txt')". However, i don't found such shot folder in MovieNet.tar.gz, how can i solve it?

Hello, the shot.zip can be found here.
You can unzip this file and move it to LLaMA-VID/data/LLaMA-VID-Finetune/movienet/files.

Hi, the link you provided says "This link has been removed". Could you provide another available link? Thanks!


body function not supported everywhere  onbeforeunload

Please create this function stats available .
SO i can get confidence on production purpose.
Thanks

Duplicate of #1391


kube-client-agent: Allow empty --ipaddrs flag.

For peer cert request, we don't need ip address flag since we always
use dns name to contact the peer.

--ipaddrs="" caused Error executing kube-client-agent: invalid ipaddress:  as splitting empty string still returns an array of length 1 and we would try parsing empty string to ip address.

@rithujohn191 Addressed the comments.


fix flaky BalancerHandlerTest#testReport

BalancerHandlerTest > testReport() FAILED
[503](https://github.com/skiptests/astraea/actions/runs/3350470875/jobs/5551294953#step:5:504)
    org.opentest4j.AssertionFailedError: expected: not equal but was: <0>
[504](https://github.com/skiptests/astraea/actions/runs/3350470875/jobs/5551294953#step:5:505)
        at app//org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:39)
[505](https://github.com/skiptests/astraea/actions/runs/3350470875/jobs/5551294953#step:5:506)
        at app//org.junit.jupiter.api.AssertNotEquals.failEqual(AssertNotEquals.java:276)
[506](https://github.com/skiptests/astraea/actions/runs/3350470875/jobs/5551294953#step:5:507)
        at app//org.junit.jupiter.api.AssertNotEquals.assertNotEquals(AssertNotEquals.java:265)
[507](https://github.com/skiptests/astraea/actions/runs/3350470875/jobs/5551294953#step:5:508)
        at app//org.junit.jupiter.api.AssertNotEquals.assertNotEquals(AssertNotEquals.java:260)
[508](https://github.com/skiptests/astraea/actions/runs/3350470875/jobs/5551294953#step:5:509)
        at app//org.junit.jupiter.api.Assertions.assertNotEquals(Assertions.java:2127)
[509](https://github.com/skiptests/astraea/actions/runs/3350470875/jobs/5551294953#step:5:510)
        at app//org.astraea.app.web.BalancerHandlerTest.lambda$testReport$1(BalancerHandlerTest.java:90)
[510](https://github.com/skiptests/astraea/actions/runs/3350470875/jobs/5551294953#step:5:511)
        at java.base@11.0.17/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
[511](https://github.com/skiptests/astraea/actions/runs/3350470875/jobs/5551294953#step:5:512)
        at java.base@11.0.17/java.util.AbstractList$RandomAccessSpliterator.forEachRemaining(AbstractList.java:720)
[512](https://github.com/skiptests/astraea/actions/runs/3350470875/jobs/5551294953#step:5:513)
        at java.base@11.0.17/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658)
[513](https://github.com/skiptests/astraea/actions/runs/3350470875/jobs/5551294953#step:5:514)
        at java.base@11.0.17/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:274)
[514](https://github.com/skiptests/astraea/actions/runs/3350470875/jobs/5551294953#step:5:515)
        at java.base@11.0.17/java.util.AbstractList$RandomAccessSpliterator.forEachRemaining(AbstractList.java:720)
[515](https://github.com/skiptests/astraea/actions/runs/3350470875/jobs/5551294953#step:5:516)
        at java.base@11.0.17/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
[516](https://github.com/skiptests/astraea/actions/runs/3350470875/jobs/5551294953#step:5:517)
        at java.base@11.0.17/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
[517](https://github.com/skiptests/astraea/actions/runs/3350470875/jobs/5551294953#step:5:518)
        at java.base@11.0.17/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
[518](https://github.com/skiptests/astraea/actions/runs/3350470875/jobs/5551294953#step:5:519)
        at java.base@11.0.17/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
[519](https://github.com/skiptests/astraea/actions/runs/3350470875/jobs/5551294953#step:5:520)
        at java.base@11.0.17/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
[520](https://github.com/skiptests/astraea/actions/runs/3350470875/jobs/5551294953#step:5:521)
        at java.base@11.0.17/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
[521](https://github.com/skiptests/astraea/actions/runs/3350470875/jobs/5551294953#step:5:522)
        at app//org.astraea.app.web.BalancerHandlerTest.testReport(BalancerHandlerTest.java:90)

@garyparrot 有機會的話幫忙看一下


DISTX-128. Create HA Data Mart cluster template

Add a flavor of the Data Mart template (being renamed from Data Science in #5018) configured for HA for components that already support it.
Note: Oozie supports HA, but CM requires a load balancer to be manually set up for that.  The load balancer will be added later, so Oozie is not HA yet in this template.

FYI do not be surprised that DM gets temporarily removed / reverted; see #5058. An updated template will be re-added with just the minimally needed services. Once that happens, this HA variant shall be updated accordingly.
CC @bergerdenes

only Hue and Impala (and the necessary dependencies)

I think this template only contains such services.  Oozie and Hive are required for Hue, Yarn and Spark for Hive (and Oozie), HDFS and ZooKeeper for most others.

We will not need Spark, rather Hive on Tez, and the latter as HS2 execution engine.


[BUG] Disable Pool Creation for Zero-Balance Accounts

Overview
Users with zero balance should not be allowed to create liquid staking pools.

[ ] Disable Create Pool button if zero balance.

https://github.com/user-attachments/assets/393042f9-ddca-48e5-8f3f-449e7542c583

The bond amount required for creating pools can possibly be zero, depending on the network storage config, which is why I decided to skip the zero check, as it's not absolute. I believe this only applies to testnets or local net though.

@yurixander, should we reopen this?

@yurixander, should we reopen this?

@devpavan04 Yes, I think what I'll do is first fetch and check the min. bond required for creating a pool. If the amount inputted is less than that, then show an input error.


Clarifications to Contributing docs, from Greg

- [ ] Add gif to valid image types

[x] Mention only one image allowed
[x] Fix typo in the readme instructions on the "preview" page:
localhost:4321/ossi-webiste/projects/YOUR-PROJECT-NAME
[x] project file names should be lowercase
- [ ] add note to put empty "" to leave string fields empty
[x] take out instructions about labels

Removed two to-do items:

I will wait to see if gifs are something others ask about before putting specific info
I re-emphasized that optional fields should be deleted or commented out. This should remove the need to add empty quotes on string fields the user wishes to leave empty.

Closed by #207


FCP only work in Chrome？

Works anywhere the PerformanceObserver supports it; at the moment only Chrome if I recall, but Safari is working right now on supporting the first iteration.


Scala incremental compile task outcome is not UP-TO-DATE when no recompilation necessary

Expected Behavior
When a Scala compile task runs but no recompilation is necessary, then it's task outcome should be UP-TO-DATE.
Current Behavior
It's not UP-TO-DATE but SUCCESS.
Context
Trying to diagnose incremental compilation. With this bug, the only way to know that no recompilation was necessary it to look at the Zinc logs.
Steps to Reproduce (for bugs)

Build once
Change a non-source file, a classpath resource will do

We delegate incremental compilation to Zinc. Need to find a way to know if any recompilation was necessary from Zinc api.


tensorflow.keras saving weights?

I have a model that is run on a time series train set trying to predict stock prices. I never save or load the model or the weights but every time i run it with the save hyperparameters it keeps decreasing in accuracy. I don't understand why, is tensorflow.keras saving the weights or something?

@oskar347567
please provide ius with simple stand alone code to replicate the issue faced by you on our local, along with the Tensorflow version on which issue is faced.
Also share the error logs for us to help you resolve the issue.

@oskar347567
please update on the above comment.


black formatting

Before 0.13.0 release:

run black on the codebase to make the formatting consistent
Consider setting up a GitHub Action to handle this on new PRs

See this example from NetworkX, from @MridulS
https://github.com/networkx/networkx/blob/main/.pre-commit-config.yaml

@alanlujan91 did you go ahead and do this with #1216 ? Shall we close this issue?

Some open questions here:

It is possible to use black for formatting notebooks and maybe even docs. Do we want to enforce black on all these materials, or just the library code?
Do we want to automatically run black?

We could have black run automatically on PRs with GitHub actions.
We could also have black run automatically as a 'pre-commit hook', which would happen in local development before pushing a branch to GitHub to be a PR.

We probably don't need black both as a pre-commit hook and a GitHub Action.
On the other hand, I've seen in another project that @MridulS swapped out black for ruff, which looks...fast
https://github.com/charliermarsh/ruff
Do we need to revisit the choice of black now that ruff is cool?


supporting charmm_openmm

Description
We should be able to support Charmm_OpenMM as well
Todos

[ ] Analysis script needs to be adapted

Status

[ ] psf_correction function, now also corrects the NUMLP section
[ ] charmm scripts for the production are modified

Codecov Report

Merging #53 (8155712) into master (e2135b2) will increase coverage by 0.13%.
The diff coverage is 89.28%.


Sidebar Menu Configuration Triggering Unexpectedly in Edit Mode

Description:
When Edit mode is enabled, clicking any item on the sidebar menu unexpectedly triggers the Sidebar Menu Configuration dialog.
Expected Result:
The Sidebar Menu Configuration dialog should only open when the Edit Sidebar Menu button is clicked. This allows users to access individual menu items and configure them without needing to toggle Edit mode on and off.
Steps to Reproduce:

Enable Edit Mode.
Click any item on the sidebar menu.
Observe that the Sidebar Menu Configuration dialog is triggered immediately.

Expected Behavior:
The Sidebar Menu Configuration dialog should not open unless the Edit Sidebar Menu button is specifically clicked.
Video:
Screen Recording

That's the correct functionality. The edit button will be removed. @Tshepiso-R

Related Item #2405
We need to discuss this item with the entire team to find an alternative solution to accommodate the public portal. Currently it is difficult to access the menu items while on an edit mode


Logo of the BlogWeet website

Related Issue
Made the professional logo of website.
Closes: #[issue number]
#457
Description of Changes

Added the png of the new logo.
Changed css and js code for Sidebar and SidebarOnDesktop to fit the logo.

Checklist:

[x] My code adheres to the established style guidelines of this project.
[x] I have conducted a self-review of my code.
[x] I have included comments in areas that may be difficult to understand.
[ ] I have made corresponding updates to the project documentation.
[x] My changes have not introduced any new warnings.

Screenshots

Original
Updated

What do I have to the documentation for the logo?? @AKD-01

@AKD-01 please review and merge this.


Performance Optimization

I'm sure it would be better to send this PR to https://github.com/grumpydev/TinyIoC :smile:

Heheh yep. You are right. IsClass property has to much proccess time. And we have too much interface.  I optimize it for Nancy. Others libraries may be not use too much interfaces and it's take too much time for process on my code.


Rulings are sometimes in wrong order

Scryfall's ordering of rulings is incorrect and makes little sense. For example, Humility should have a ruling from 2006-02-01, one from 2007-02-01, and then two from 2009-10-01. Scryfall's has the date sorting reversed but seemingly keeps rulings from the same date in the correct order.

Fixed in 32607df23f9cc622677588bb7d64399006e561d0


Are these credentials ok to be here?

https://github.com/80maker/vuepress-theme-maker/blob/b22b86a8db06754b263420811387b63b9bf64851/blog/.vuepress/config/plugins.js#L85
I am not familiar with this system. From the OAuth-looking interface, these should be changed with an and environmental variable lookup; and if they are in use, the credentials should be rotated.

Oh, you are right. Vssue is a Vue component / plugin, which can enable comments for your static pages. You can refer to it here. Also, you can see Theme Doc--basic config items for more details.


No value returned from seetalert2, undefined

Let's say I have this code:
Confirm function
function confirmFn() {
return  swal({
            title: 'Confirmation',
            html: ' Are you sure? ',
            type: 'warning',
            showCancelButton: true,
            closeOnConfirm: true,
            closeOnCancel: true
        }, function (isConfirm) {
            if (isConfirm) {
                return true;
            } else {
                return false;
            }
        });
}

If you call the function, the return value should be true or false
var reternedValue = confirmFn() ;

alert(reternedValue);  // undefined

Then sweetalert popups correctly but it doesn't hold the script waiting for the user's action, confirm or cancel.

You should read and understand what are callbacks in JS: http://dreamerslab.com/blog/en/javascript-callbacks/
TLDR: return  swal(…) will always return undefined BEFORE function (isConfirm) { … } is even called. So you need to refactor you app to work correctly with swal2 callback.

Thank you :)

Still dont really get how I should work with that . Can you please provide an example ?
Sorry for the stupid question :/

@paschalidi This issue is very old, from back before the library moved to using Promises instead. The same basic problem still applies though - you're trying to use swal({ ... }) as a synchronous function, while user input by definition is an asynchronous action.
Here's an example of how to work with the "new" Promise API:
swal({ ... })
    .then(function(){
        alert("The confirm button was clicked");
    }).catch(function(reason){
        alert("The alert was dismissed by the user: "+reason);
    });

A bunch more examples are in the readme.

Thanks for the fast reply @birjolaxew  really appreciated :)

So you think it is possible to POST an ajax request when
.then(function (isConfirm) {     //ajaxPOST() }

@paschalidi RTFM.
@birjolaxew don't waste your precious time answering such low-quality questions.

On a closing note: this has little to do with SweetAlert2, and more to do with Promises. You should read up on those instead of asking here.


mm/arch: user space device mapping defs

Summary
This patch introduces definitions needed to support userspace device mappings so that to enable userspace device access to frame buffer or nerual network accelerators etc.
It extends existing user space virtual memory allocation region by adding ARCH_UDEV_NPAGES config that helps to revise the definition of ARCH_SHM_END so that both device mapping and share memory features can share the same virtual memory allocation region.
It also introduces the MM_UMAPconfig so that to enable the convenient supporting functions vm_map_region() and vm_unmap_region() for device drivers' convenience.
To reduces confusions in the future, it is better to do some renamings following this patch:

rename ARCH_SHM_VBASE to ARCH_UMAP_VBASE so that it means the base for whole user space mapping region, not only for SHM, but also for UDEV.
rename some function names accordingly so that they are no longer tied with SHM but with UMAP.

However, as renaming could be a breaking change, thus should be discussed beforehand.
Also note that this patch assumes the size limitation in mm_gran has been removed.
Impact
None
Testing
CI checks

@pussuw thanks for the explanations.
did you mean that we only

reuse the vm_alloc_region() and vm_alloc_release() for virtual address allocation.
reuse the up_shmat() and up_shmdt() for mapping/unmapping.
and don't use anything in "mm/shm"?

The memory mapping zone is defined by ARCH_SHM_NPAGES and ARCH_SHM_MAXREGIONS etc, as long as the virtual zone is big enough to hold both shared memory and device mapping requirements, we don't need worry about affecting the shared memory use cases as the device memory mappings don't occupy any shmid. Is this correct?
As vm_alloc_region() has limitations and can't do 640x480x4=1228800 frame buffer yet, maybe we can use static virtual address plan for devices now? If so, should the static address space be separated from the dynamic space?

@pussuw thanks for the explanations.
did you mean that we
* reuse the `vm_alloc_region()` and `vm_alloc_release()` for virtual address allocation.

* reuse the `up_shmat()` and `up_shmdt()` for mapping/unmapping.

* don't use anything in `mm/shm` or `fs/shm`.

Yes, this should work. It is not clear to me what you are trying to do in user space, but I think you will use mmap() to map some device ?

The memory mapping virtual address zone is defined by ARCH_SHM_NPAGES and ARCH_SHM_MAXREGIONS etc, as long as this zone is big enough, we can use it for both shared memory and device mappings. We also don't need worry about affecting the shared memory use cases as the device mappings don't occupy any shmid. Is this correct?

Yes, especially you do not need to worry about SHM_MAXREGIONS, that is only used by SysV shared memory, maybe you can familiarize yourself with the implementation of that, I'm not too familiar with the details. I obviously encountered it when shared memory support was implemented for risc-v. ARCH_SHM_NPAGES defines the amount of virtual memory that is allocated for shared memory objects (really, for ANY objects mapped to user virtual memory).

As vm_alloc_region() has limitations now and can't do 640x480x4=1228800 frame buffer yet, maybe we can use static virtual address plan for devices? If so, should the static address space be separated from the above space for dynamic mapping?
What are the limitations ? I don't understand why this is an issue ?

@pussuw the limitation is that no more than 32 granules can be allocated now.

@pussuw
Yes I plan to use mmap() from user space to gain access to the device memory range, like gaining a pointer to frame buffer and drawing the pixels.
The limitation is that no more than 32 granules can be allocated now. If only dynamic virtual address is allowed, then we must remove the limitation.

Of course, I forgot gran_alloc uses a bitmask. I'm not sure what you mean by static allocation, currently the granule allocator's bitmask is the only information about virtual memory areas that are free / used. How did you plan to add static allocations on top of this ? It sounds quite unscalable to me, but then again I don't know what you mean.

@pussuw static allocation can be done via Kconfig like:

System wide a virtual zone for device mapping can be defined by ARCH_UDEV_VBASE and ARCH_UDEV_NPAGES.
Then a device's range can be defined by FB_VBASE and constrained in the static zone.

This isn't scalable but not so hard. Later once the granule limitation is removed, all static configuration can be optional.

A third option is to use something else than the granule allocator for user vm area bookkeeping.
Do you see such a thing?

A third option is to use something else than the granule allocator for user vm area bookkeeping.

Do you see such a thing? I was thinking to remove the limitation.

Whatever you prefer of course, there are many options for implementing such an allocator.

@pussuw  and @xiaoxiang781216 as for up_addrenv_map(), I am fine to drop it from nuttx/arch.h. This however implies that we may need a similar thing likely in mm/map to wrap the up_shmat() as it can be shared between framebuffer and other drivers. Actually the up_shmat() parameter model lacks the prot argument and it is may be hard for implementation to use larger PTE entries as its input pages might be incontinuous pages. Maybe having up_addrenv_map() there it also worth as its parameter model is more generic and implementations can choose to use non-leaf PTE entries if the size is bigger?

When you mmap a device, the driver needs to implement mmap, this is where the call to up_shmat etc should go to ?
As per the "prot" parameter, what is this needed for ? You can always simply add it, or overload the functions, whichever you prefer.

as its input pages might be scattered pages.

Of course, the function does not expect them to be contiguous ?

implementations can also choose to use non-leaf PTE entries if the size is bigger

You mean to use giga/megapages instead of 4K pages for mapping ? I don't think this is a good idea. For kernel mapped memory sure, but for user mappings, I would not do it.

For kernel mapped memory sure, but for user mappings, I would not do it.

Is this due to user space page table design limiations (e.g. some non-leaf page tables are shared among processes) or for some other reasons?

@pussuw, @xiaoxiang781216 and @jlaitine I've updated patch description above as well as the commit by assuming gran allocation limitation is removed. Please take a look.

@pussuw, @xiaoxiang781216 and @jlaitine I've updated patch description above as well as the commit by assuming gran allocation limitation is removed. Please take a look. many thanks!

@pussuw, @xiaoxiang781216 and @jlaitine，assuming gran allocation limitation will be removed, I've updated patch description above and the commit itself. Please take a look.

For kernel mapped memory sure, but for user mappings, I would not do it.

@pussuw Is this due to user space page table design limiations (e.g. some non-leaf page tables might be shared among processes) or for some other reasons?
@pussuw and @xiaoxiang781216, on the other side, it seems that we still need wrap page-oriented up_shmat() to byte oriented function like xxx_map(uintptr_t vaddr, uinptr_t paddr, size_t size) as it is more convenient to use in drivers like video/fb.c or alike. Where should we put this wrapped function? I don't think that we need duplicate the wrapping code everywhere.

tthe unit of mmap is page size, why do we need byte unit?

tthe unit of mmap is page size, why do we need byte unit?

This helper function is for device drivers to use, where using byte unit is  more natural. The "mmap()" function defined in <sys/mman.h> is also using byte unit for length parameter. using byte unit is more convenient for the callers.

tthe unit of mmap is page size, why do we need byte unit?

This helper function is for device drivers to use,using byte unit there seems more conveninent. The "mmap()" function in <sys/mman.h> is also using byte unit.

Yes, the caller pass byte unit, but it is round up to page unit internally.

Yes, the caller pass byte unit, but it is round up to page unit internally.

This helper is for callers like fb_mmap() to use, where byte unit looks more natural. The helper can do VM allocation, unit conversion and do looping call to up_shmat internally, these processing may take a dozen of LOCs. By wrapping them in the helper, the caller side can be simpler.

@xiaoxiang781216 and @pussuw, I've updated the patch, please take a look.


Quick Fix feature of ESLint has stopped working in latest June 2109 update

I just upgraded to the June 2019 version and the ESLint Quick Fix selection to repair errors is not working. When you have an error in the code, it is redlined. When you right click the redlined code, shows a Quick Fix tab that comes up with many options. One of the option would be a solution to the Fix the error (like Fix no Trailing spaces) and the others would be eslint code to ignore the error. When you choose any of the choices, it doesn't do anything. so the Quick Fix of ESLint extension in VS code has stopped working in the latest update. This is very frustrating.

VSCode Version: 1.36.1
OS Version: Windows_NT x64 10.0.17134

Steps to Reproduce:

Does this issue occur when all extensions are disabled?: Yes

Duplicate of #77018