youtube: one specific video fails

Checklist

[X] I'm reporting a broken site
[X] I've verified that I'm running yt-dlp version 2022.02.04. (update instructions)
[X] I've checked that all provided URLs are alive and playable in a browser
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[ ] I've read about sharing account credentials and I'm willing to share it if required

Region
Germany
Description
When trying to download the video https://www.youtube.com/watch?v=FVe3Ga0D4N4 it fails with a number of retries.
Interestingly, every other video (from that channel) works just fine.
 Retrying (attempt 1 of 10) ...
[download] Got server HTTP error: HTTP Error 503: Service Unavailable. Retrying (attempt 2 of 10) ...
[download] Got server HTTP error: HTTP Error 503: Service Unavailable. Retrying (attempt 3 of 10) ...
[download] Got server HTTP error: HTTP Error 503: Service Unavailable. Retrying (attempt 4 of 10) ...
[download] Got server HTTP error: HTTP Error 503: Service Unavailable. Retrying (attempt 5 of 10) ...
[download] Got server HTTP error: HTTP Error 503: Service Unavailable. Retrying (attempt 6 of 10) ...
[download] Got server HTTP error: HTTP Error 503: Service Unavailable. Retrying (attempt 7 of 10) ...
[download] Got server HTTP error: HTTP Error 503: Service Unavailable. Retrying (attempt 8 of 10) ...
[download] Got server HTTP error: HTTP Error 503: Service Unavailable. Retrying (attempt 9 of 10) ...
[download] Got server HTTP error: HTTP Error 503: Service Unavailable. Retrying (attempt 10 of 10) ...
ERROR: giving up after 10 retries
  File "/usr/bin/yt-dlp", line 33, in <module>
    sys.exit(load_entry_point('yt-dlp==2022.2.4', 'console_scripts', 'yt-dlp')())
  File "/usr/lib/python3/dist-packages/yt_dlp/__init__.py", line 858, in main
    _real_main(argv)
  File "/usr/lib/python3/dist-packages/yt_dlp/__init__.py", line 848, in _real_main
    retcode = ydl.download(all_urls)
  File "/usr/lib/python3/dist-packages/yt_dlp/YoutubeDL.py", line 3212, in download
    self.__download_wrapper(self.extract_info)(
  File "/usr/lib/python3/dist-packages/yt_dlp/YoutubeDL.py", line 3185, in wrapper
    res = func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/yt_dlp/YoutubeDL.py", line 1372, in extract_info
    return self.__extract_info(url, self.get_info_extractor(ie_key), download, extra_info, process)
  File "/usr/lib/python3/dist-packages/yt_dlp/YoutubeDL.py", line 1381, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/yt_dlp/YoutubeDL.py", line 1465, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/lib/python3/dist-packages/yt_dlp/YoutubeDL.py", line 1517, in process_ie_result
    ie_result = self.process_video_result(ie_result, download=download)
  File "/usr/lib/python3/dist-packages/yt_dlp/YoutubeDL.py", line 2607, in process_video_result
    self.process_info(new_info)
  File "/usr/lib/python3/dist-packages/yt_dlp/YoutubeDL.py", line 3068, in process_info
    partial_success, real_download = self.dl(fname, new_info)
  File "/usr/lib/python3/dist-packages/yt_dlp/YoutubeDL.py", line 2801, in dl
    return fd.download(name, new_info, subtitle)
  File "/usr/lib/python3/dist-packages/yt_dlp/downloader/common.py", line 440, in download
    ret = self.real_download(filename, info_dict)
  File "/usr/lib/python3/dist-packages/yt_dlp/downloader/dash.py", line 56, in real_download
    return self.download_and_append_fragments_multiple(*args)
  File "/usr/lib/python3/dist-packages/yt_dlp/downloader/fragment.py", line 381, in download_and_append_fragments_multiple
    return self.download_and_append_fragments(*args[0], pack_func=pack_func, finish_func=finish_func)
  File "/usr/lib/python3/dist-packages/yt_dlp/downloader/fragment.py", line 514, in download_and_append_fragments
    frag_content, frag_index = download_fragment(fragment, ctx)
  File "/usr/lib/python3/dist-packages/yt_dlp/downloader/fragment.py", line 448, in download_fragment
    success, frag_content = self._download_fragment(ctx, fragment['url'], info_dict, headers)
  File "/usr/lib/python3/dist-packages/yt_dlp/downloader/fragment.py", line 133, in _download_fragment
    success = ctx['dl'].download(fragment_filename, fragment_info_dict)
  File "/usr/lib/python3/dist-packages/yt_dlp/downloader/common.py", line 440, in download
    ret = self.real_download(filename, info_dict)
  File "/usr/lib/python3/dist-packages/yt_dlp/downloader/http.py", line 385, in real_download
    self.report_error('giving up after %s retries' % retries)
  File "/usr/lib/python3/dist-packages/yt_dlp/downloader/common.py", line 177, in report_error
    self.ydl.report_error(*args, **kargs)
  File "/usr/lib/python3/dist-packages/yt_dlp/YoutubeDL.py", line 930, in report_error
    self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
  File "/usr/lib/python3/dist-packages/yt_dlp/YoutubeDL.py", line 860, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())

I should perhaps add, that this happens for some days now (changed my IP several times)... only always this specific video... any others seem to download just fine.

Try --check-formats

With that it works:
 yt-dlp --check-formats --verbose https://www.youtube.com/watch?v=Sp4N2fy32Zk
[debug] Command-line config: ['--check-formats', '--verbose', 'https://www.youtube.com/watch?v=Sp4N2fy32Zk']
[debug] User config "/home/user/.config/yt-dlp/config": ['--abort-on-error', '--abort-on-unavailable-fragment', '--no-ignore-no-formats-error', '--no-overwrites', '--mtime', '--restrict-filenames', '--output', '%(title)s__[%(extractor)s:%(id)s].%(ext)s', '--no-cookies-from-browser', '--no-split-chapters', '--no-remove-chapters', '--no-force-keyframes-at-cuts', '--no-prefer-free-formats', '--no-sponsorblock', '--embed-chapters', '--no-embed-metadata', '--no-embed-info-json', '--no-embed-subs', '--no-embed-thumbnail', '--write-description', '--write-info-json', '--no-write-comments', '--no-clean-infojson', '--write-all-thumbnails', '--write-subs', '--sub-langs', 'all', '--write-annotations', '--write-playlist-metafiles']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, err utf-8, pref UTF-8
[debug] yt-dlp version 2022.02.04 [c1653e9ef]
[debug] Python version 3.9.10 (CPython 64bit) - Linux-5.15.0-3-amd64-x86_64-with-glibc2.33
[debug] exe versions: ffmpeg 4.4.1-3 (setts), ffprobe 4.4.1-3, rtmpdump 2.4
[debug] Optional libraries: Cryptodome, mutagen, sqlite, websockets
[debug] Proxy map: {}
[debug] [youtube] Extracting URL: https://www.youtube.com/watch?v=Sp4N2fy32Zk
[youtube] Sp4N2fy32Zk: Downloading webpage
[youtube] Sp4N2fy32Zk: Downloading android player API JSON
[youtube] Sp4N2fy32Zk: Downloading MPD manifest
[youtube] Sp4N2fy32Zk: Downloading MPD manifest
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, codec:vp9.2, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), acodec, lang, proto, filesize, fs_approx, tbr, vbr, abr, asr, vext, aext, hasaud, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] Testing format 248
[dashsegments] Total fragments: 1
[download] Destination: /tmp/tmp8tnj0766.tmp
ERROR: giving up after 0 retries
  File "/usr/bin/yt-dlp", line 33, in <module>
    sys.exit(load_entry_point('yt-dlp==2022.2.4', 'console_scripts', 'yt-dlp')())
  File "/usr/lib/python3/dist-packages/yt_dlp/__init__.py", line 858, in main
    _real_main(argv)
  File "/usr/lib/python3/dist-packages/yt_dlp/__init__.py", line 848, in _real_main
    retcode = ydl.download(all_urls)
  File "/usr/lib/python3/dist-packages/yt_dlp/YoutubeDL.py", line 3212, in download
    self.__download_wrapper(self.extract_info)(
  File "/usr/lib/python3/dist-packages/yt_dlp/YoutubeDL.py", line 3185, in wrapper
    res = func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/yt_dlp/YoutubeDL.py", line 1372, in extract_info
    return self.__extract_info(url, self.get_info_extractor(ie_key), download, extra_info, process)
  File "/usr/lib/python3/dist-packages/yt_dlp/YoutubeDL.py", line 1381, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/yt_dlp/YoutubeDL.py", line 1465, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/lib/python3/dist-packages/yt_dlp/YoutubeDL.py", line 1517, in process_ie_result
    ie_result = self.process_video_result(ie_result, download=download)
  File "/usr/lib/python3/dist-packages/yt_dlp/YoutubeDL.py", line 2580, in process_video_result
    formats_to_download = list(format_selector(ctx))
  File "/usr/lib/python3/dist-packages/yt_dlp/YoutubeDL.py", line 2116, in selector_function
    yield from f(ctx)
  File "/usr/lib/python3/dist-packages/yt_dlp/YoutubeDL.py", line 2209, in final_selector
    return selector_function(ctx_copy)
  File "/usr/lib/python3/dist-packages/yt_dlp/YoutubeDL.py", line 2127, in selector_function
    picked_formats = list(f(ctx))
  File "/usr/lib/python3/dist-packages/yt_dlp/YoutubeDL.py", line 2136, in selector_function
    for pair in itertools.product(selector_1(ctx), selector_2(ctx)):
  File "/usr/lib/python3/dist-packages/yt_dlp/YoutubeDL.py", line 2199, in selector_function
    yield matches[format_idx - 1]
  File "/usr/lib/python3/dist-packages/yt_dlp/utils.py", line 2731, in __getitem__
    self.__cache.extend(itertools.islice(self.__iterable, n))
  File "/usr/lib/python3/dist-packages/yt_dlp/YoutubeDL.py", line 2108, in _check_formats
    yield from self._check_formats(formats)
  File "/usr/lib/python3/dist-packages/yt_dlp/YoutubeDL.py", line 1879, in _check_formats
    success, _ = self.dl(temp_file.name, f, test=True)
  File "/usr/lib/python3/dist-packages/yt_dlp/YoutubeDL.py", line 2801, in dl
    return fd.download(name, new_info, subtitle)
  File "/usr/lib/python3/dist-packages/yt_dlp/downloader/common.py", line 440, in download
    ret = self.real_download(filename, info_dict)
  File "/usr/lib/python3/dist-packages/yt_dlp/downloader/dash.py", line 56, in real_download
    return self.download_and_append_fragments_multiple(*args)
  File "/usr/lib/python3/dist-packages/yt_dlp/downloader/fragment.py", line 381, in download_and_append_fragments_multiple
    return self.download_and_append_fragments(*args[0], pack_func=pack_func, finish_func=finish_func)
  File "/usr/lib/python3/dist-packages/yt_dlp/downloader/fragment.py", line 514, in download_and_append_fragments
    frag_content, frag_index = download_fragment(fragment, ctx)
  File "/usr/lib/python3/dist-packages/yt_dlp/downloader/fragment.py", line 448, in download_fragment
    success, frag_content = self._download_fragment(ctx, fragment['url'], info_dict, headers)
  File "/usr/lib/python3/dist-packages/yt_dlp/downloader/fragment.py", line 133, in _download_fragment
    success = ctx['dl'].download(fragment_filename, fragment_info_dict)
  File "/usr/lib/python3/dist-packages/yt_dlp/downloader/common.py", line 440, in download
    ret = self.real_download(filename, info_dict)
  File "/usr/lib/python3/dist-packages/yt_dlp/downloader/http.py", line 385, in real_download
    self.report_error('giving up after %s retries' % retries)
  File "/usr/lib/python3/dist-packages/yt_dlp/downloader/common.py", line 177, in report_error
    self.ydl.report_error(*args, **kargs)
  File "/usr/lib/python3/dist-packages/yt_dlp/YoutubeDL.py", line 930, in report_error
    self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
  File "/usr/lib/python3/dist-packages/yt_dlp/YoutubeDL.py", line 860, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())

[info] Unable to download format 248.
WARNING: Requested formats are incompatible for merge and will be merged into mkv
[debug] Invoking downloader on "https://rr2---sn-hoxu-h0jz.googlevideo.com/videoplayback?expire=1644121154&ei=4vf-YZuoLdvDx_AP5aac8A4&ip=2001%3Aa61%3A3a38%3Aec01%3A152e%3Aeb14%3Ab803%3Ab021&id=o-AOw7Soh5ypToGuQGNnBal8ubK2EX6CxsIqo7w0V2U_MA&itag=137&source=youtube&requiressl=yes&mh=hr&mm=31%2C29&mn=sn-hoxu-h0jz%2Csn-h0jelnes&ms=au%2Crdu&mv=m&mvi=2&pl=40&initcwndbps=1306250&vprv=1&mime=video%2Fmp4&gir=yes&clen=20590942&dur=76.960&lmt=1612164368652850&mt=1644099414&fvip=2&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&txp=5432432&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAOEplRf5DXNpdo7FXAccBGsn8mzGnkH_EUStWUmP_WScAiEAlcOrbccu4blMx2nYrcIkPl_i-dK1AWXnqR5Z9jpyaVA%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhANf9E-6Wk8CbDRoSXOrmBdkUZnu3mvDRGGBcS8aPgsTZAiEAxtWqrS9guh6ibC6a7u4dECw-iTxIHMILnexCgLAmpzA%3D"
[download] Destination: Diethyl_Ether_extra_footage__[youtube:Sp4N2fy32Zk].f137.mp4
[download]  20.4% of 19.64MiB at  5.01MiB/s ETA 00:03^C

So I guess that means the video is just not available in the format selected per default (respectively that is wrongly displayed as being there)?
Thanks.

The video url you posted at the top (which downloads without any issues) is different from the problematic url in your log.
Yeah there seems to be a problem with the vp9 streams for this video. Even in the browser the YouTube player for this video is showing the avc stream with opus audio rather than the vp9 stream.

I think this is the same thing as #502

The video url you posted at the top (which downloads without any issues) is different from the problematic url in your log.

Sorry... there must have been some copy&paste accident... corrected it.


Install script for Raspbian Buster - first steps and help appreciated!

Hi everybody,
Thanks to @ckuetbach and @AdmiralVS I got something to work with when making a new one-line-install-script for the latest rapsbian release: buster.
It's currently only on the develop branch. How to use this version of the "one line install" see below or go straight to the wiki.
Help would be welcome to test and improve it. And even more welcome to migrate the new version to the +Spotify edition of the Phoniebox.
Things which might soon be known issues, at the moment the script works for me, though:

file upload does not work, because the php.ini was not replaced
static IP address assignment
... add your findings here in the thread

Phoniebox Classic (buster):
cd; rm buster-install-*; wget https://raw.githubusercontent.com/MiczFlor/RPi-Jukebox-RFID/develop/scripts/installscripts/buster-install-default.sh; chmod +x buster-install-default.sh; ./buster-install-default.sh

The short version: Success! The slightly longer one: I didn't run the installer directly but executed all steps after the software installation one by one and got a box that was working; at least to the point where I can access the web interface and play music from there. I didn't try anything else, yet, and might not get around to doing so within the next weeks.
So: Thanks once more for another great piece of work!

Well.. did this today without knowing that one..
Issues i had:
php packages --> Change to 7.3 instead of 7.0
modipy packag source --> changed to buster
lighttp --> config broken, fixed that with default values AND modified php-fpm to use php 7.3 socket

Hi @dMopp
did you use the spotify version? I haven't made a spotify version for the install script.

Yes,
It’s not complete (l didn’t modify the lighttpd part) but at least the package part
Mit freundlichen Grüßen
Daniel Quolke

Am 28.09.2019 um 09:28 schrieb Micz Flor<EMAIL_ADDRESS>
Hi @dMopp
did you use the spotify version? I haven't made a spotify version for the install script.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

It works, but there are some quirks.
It e.g. sets the ownership of files in RPi-Jukebox-RFID/ to root. As a result logging wasn't working properly. As a fix i just chowned the complete folder after creation with:
sudo chown pi:pi RPi-Jukebox-RFID/

First I want so say "Thank you" for all the time youve spent for this amazing project. Ive started some days ago with an raspi 4 and tried the buster image... now I am totally confused and tried to install the spotify version several times without success.
My understanding was, that the one-line installation script with spotify for buster should work now, right?
I`ve used raspbian lite for the pi and found no GIT installation by default, so the script fails. after installation of GIT, some more steps working, but still a lot of failures. Before I go on, I would like to ask, if the spotify version is already "ready to go" or still to develop for buster? And if is should be based on raspbian lite, because of the missing git package?
I am new to raspi and programming....

@JoeyRamone
At the current state there is a problem with incompatible library versions. See https://github.com/MiczFlor/RPi-Jukebox-RFID/issues/688#issuecomment-570145271
I still try to find a workaround by using older versions of Mopidy but until now I had no success.

@Squelsh Thanks for the info. I've just opened a new issue, before I saw your comment. Good to know.

@MiczFlor I have opend a pull request, which might solve some problems with mopidy3 #701

As there's #721 this could be fixed.


Week 3 Report Meeting

Done-ish. Not sure if the meeting counts as week 2 or week 3. Either way, there shouldn't be an issue with missing anything due to my position in the project.


Basic "Similar Papers" function

This is available in ICLR2020, but we will need to re-run the model.

Is there any resource where we can get more details about the model?

Is there any resource where we can get more details about the model?
I could find a method to convert abstracts to embeddings at https://github.com/Mini-Conf/Mini-Conf/tree/master/scripts. Do we plan to use the same?

@Chandrahasd Let's start with the same method. I updated the description with some actionable items. Please let me know if you have more questions.

Hi all,
I extracted the embeddings and saved them to this drive link, if anybody needs them:
https://drive.google.com/file/d/1BM-HtX5dOpiO3M_yDf-shVY-KMH72wwt/view?usp=sharing

I used the pretrained model from iclr.github.io and produced some paper recommendations.

@georgepar This is great! We probably will have a pretrained model on ACL2020 papers which may work better. I'll keep you posted about this.

@vladdy @Chandrahasd @kaushal0494 @dpappas @ninell-oldenburg I un-assigned you from this issue because @georgepar has started working on it.
I now added a "Number of Volunteers" section at the beginning for each issue. Sorry for the confusion. I'll also send a clarification email to our mailing list soon.
But if you have already started working on this and get some update, please post here and we can see if we can merge a version soon. Thanks!


append to an array by emplacement

Appender.emplacePut, to construct elements as they are appended. Works
for classes/structs that disable their this(this) copy constructor, and
cannot be copied.

This is a very important enhancement. I think all containers should support emplacement insertion of non-copyable types.
It's important enough, that I think that support for move-only types should be part of the OutputRange concept/interface.
BTW, in my project I added an put(auto ref E elem) method  for this purpouse. Internally it uses std.algorithm.move. It works like this:
// 1)
UniqueRef!T myLvalue:
arr.put(myLvalue); // calls the by-ref version
// internally steals the payload `T` from myLvalue
assert (!myLvalue);

// 2)
arr.put(UniqueRef!T(args); // calls the by-value version

Note that phobos uses 4-space indentation -- you appear to have a mix of tabs and 2-space indents.

Sorry, my editor hides that sort of thing. I think I disabled it from adding tabs. Will try to reformat it later...

Will try to reformat it later...

Did you manage to reformat it?

Alright, I reformatted it.

ping @cyisfor - did you see that your PR still contains tabs and is failing on auto-tester?

Ping @cyisfor

OK, nice. I'll set the automerge in waiting for the tab fixes.

Auto-merge toggled on

Ping @cyisfor

Auto-merge toggled off

Turned off automerge because it was consuming the autotester's time when other PRs are waiting to be tested. Turn automerge back on when the tabs are fixed.

Does someone want to adopt this? It has already been approved and just needs the whitespace fixes.
Unfortunately @cyisfor seems to unavailable since quite some time :/

@wilzbach
alright, I added in all those spaces... again. Don't know why it went wrong before. I just did a search and replace.

alright, I added in all those spaces... again. Don't know why it went wrong before. I just did a search and replace.

Ehm - you still have tabs:
https://auto-tester.puremagic.com/show-run.ghtml?projectid=1&runid=2156651&isPull=true
What editor do you use?
Btw for the future you might also want to setup editorconfig

Ehm - you still have tabs:

@cyisfor this has been stalled for quite some time now. Do you mind retrying to replace your tabs with spaces?
Alternatively you can also enable push access for maintainers - then we can help you.

@wilzbach think you could take over this PR?

@wilzbach think you could take over this PR?

-> https://github.com/dlang/phobos/pull/4953 (just a mere rebase + the style fixes)


gdb like 'fin' command to run until finished with function

godebug is working really nicely now(!)
stepping through code, one thing I miss is the 'fin' command from gdb. Small feature request would be to add it to godebug.  'fin' lets you continue running until the current function returns.

(maybe just abbreviated as 'f'; these one character commands are really nice)

btw printing expressions totally rocks!

Is this the same as #49?

Printing expressions: I know, right?! :) I've been using it a lot. I find myself wanting to store local variables and write loops, too. I may add statement evaluation later.
The original issue: Yes, this is a dup of #49.


How to use the installed cityscapesScripts module?

how to use the tools like csDownload, csViewer of the installed module?
for example,
I tried:
'csDownload cityscapes'
No doubt, it doesn't work

besides, I downloaded the gtFine dataset manually, I tried: csViewer .../berlin...png  or csViewer .../berlin...json, and it doesn't work too.

Set your environment variable CITYSCAPES_DATASET to the path of the dataset and then run csViewer.
https://github.com/mcordts/cityscapesScripts/blob/master/cityscapesscripts/viewer/cityscapesViewer.py#L1404


Occasionally jasmine.JUnitXMLReporter is not defined with jasmine1 and<EMAIL_ADDRESS>module

Since upgrading my project from 0.8.2 to 0.9.2 with jasmine1, noticed that occasionally when running many tests at the same time, that I am getting random failures related to<EMAIL_ADDRESS>in the testsetup.js file:
 FAIL  __tests__/api/setters-test.js
● Runtime Error
TypeError: jasmine.JUnitXmlReporter is not a function
    at Object.<anonymous> (/Users/sterpe/git/Video/vpaid/scripts/testsetup.js:11:30)
    at handle (/Users/sterpe/git/Video/vpaid/node_modules/worker-farm/lib/child/index.js:41:8)
    at process.<anonymous> (/Users/sterpe/git/Video/vpaid/node_modules/worker-farm/lib/child/index.js:47:3)
    at emitTwo (events.js:87:13)
    at process.emit (events.js:172:7)
    at handleMessage (internal/child_process.js:689:10)
    at Pipe.channel.onread (internal/child_process.js:440:11)

Here's that test setup file:
/* global
  jasmine
*/

require('jasmine-reporters')

var TEST_REPORTS_DIR = process.env.JEST_JUNIT_REPORTS_DIR

jasmine.VERBOSE = !!process.env.JEST_JASMINE_VERBOSE

jasmine.getEnv().addReporter(new jasmine
  .JUnitXmlReporter(TEST_REPORTS_DIR))

You can assume that the environmental variables are defined when the test are run.
Running the tests individually will allow the test to pass.
I ended up adding <rootDir>/node_modules/jasmin-reporters/ to "unmockedModulePathPatterns" and that seems to clear up the issue.  Don't know if that's a feature?  :P

Changed the title for future searchability.

<EMAIL_ADDRESS><EMAIL_ADDRESS>fwiw.

Yeah it shouldn't be mocked, that is probably the fix. Would it be possible for you to provide a repository with this code so I can see for myself what you are doing here? :)

This I can't actually -- enterprise github.  It's just weird because it happens very inconsistently.  I'll see if I have a situation in some personal project where I can flesh this out again in the next few weeks.

I'm gonna close this but will be happy to reopen once we have a repro :)

Where the solution?


Installing a package

I tried to install mathexam, when I compile it gives an error telling mathexam.sty not found.
This is how I installed it.
 /workspace ▓▒░ tlmgr install mathexam
tlmgr: package repository https://mirrors.concertpass.com/tex-archive/systems/texlive/tlnet (verified)
===============================================================================
tlmgr itself needs to be updated.
Please do this via either
  tlmgr update --self
or by getting the latest updater for Unix-ish systems:
  http://mirror.ctan.org/systems/texlive/tlnet/update-tlmgr-latest.sh
and/or Windows systems:
  http://mirror.ctan.org/systems/texlive/tlnet/update-tlmgr-latest.exe
Then continue with other updates as usual.
===============================================================================
tlmgr: Terminating; please see warning above!
 /workspace ▓▒░ tlmgr update --self
tlmgr: package repository https://mirrors.concertpass.com/tex-archive/systems/texlive/tlnet (verified)
[1/1, ??:??/??:??] update: texlive.infra [223k] (55776 -> 56587) ... done
running mktexlsr ...
done running mktexlsr.
tlmgr: package log updated: /usr/local/texlive/2020/texmf-var/web2c/tlmgr.log
 /workspace ▓▒░ tlmgr install mathexam
tlmgr: package repository https://mirrors.concertpass.com/tex-archive/systems/texlive/tlnet (verified)
[1/1, ??:??/??:??] install: mathexam [2k]
TLPDB::_install_data: unsupported container format xz for https://mirrors.concertpass.com/tex-archive/systems/texlive/tlnet/archive/mathexam.tar.xz
tlmgr: package log updated: /usr/local/texlive/2020/texmf-var/web2c/tlmgr.log
 /workspace ▓▒░ texhash      ░▒▓ ✔  at 22:19:25
tty: ignoring all arguments
/dev/pts/0
texhash: Updating /usr/local/texlive/2020/texmf-config/ls-R...
texhash: Updating /usr/local/texlive/2020/texmf-dist/ls-R...
texhash: Updating /usr/local/texlive/2020/texmf-var/ls-R...
texhash: Updating /usr/local/texlive/texmf-local/ls-R...
texhash: Done.

This is the LaTeX compiler output:
Rc files read:
  NONE
Latexmk: This is Latexmk, John Collins, 13 September 2020, version: 4.70a.
Rule 'pdflatex': The following rules & subrules became out-of-date:
      'pdflatex'
------------
Run number 1 of rule 'pdflatex'
------------
------------
Running 'pdflatex  -synctex=1 -interaction=nonstopmode -file-line-error -recorder -output-directory="/workspace"  "/workspace/percent.tex"'
------------
Set environment variable BIBINPUTS='/workspace:'
Set environment variable TEXINPUTS='/workspace:'
Latexmk: applying rule 'pdflatex'...
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(/workspace/percent.tex
LaTeX2e <2020-02-02> patch level 5
L3 programming layer <2020-09-06> (/usr/local/texlive/2020/texmf-dist/tex/latex/base/article.cls
Document Class: article 2019/12/20 v1.4l Standard LaTeX document class
(/usr/local/texlive/2020/texmf-dist/tex/latex/base/fleqn.clo) (/usr/local/texlive/2020/texmf-dist/tex/latex/base/size11.clo)) (/usr/local/texlive/2020/texmf-dist/tex/latex/geometry/geometry.sty (/usr/local/texlive/2020/texmf-dist/tex/latex/graphics/keyval.sty) (/usr/local/texlive/2020/texmf-dist/tex/generic/iftex/ifvtex.sty (/usr/local/texlive/2020/texmf-dist/tex/generic/iftex/iftex.sty)))

! LaTeX Error: File `mathexam.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name:
/workspace/percent.tex:4: Emergency stop.
<read *>

l.4 \usepackage
               {amsmath}^^M
/workspace/percent.tex:4:  ==> Fatal error occurred, no output PDF file produced!
Transcript written on /workspace/percent.log.
Latexmk: Missing input file: 'mathexam.sty' from line
  '! LaTeX Error: File `mathexam.sty' not found.'
Collected error summary (may duplicate other messages):
  pdflatex: Command for 'pdflatex' gave return code 1
      Refer to '/workspace/percent.log' for details
Latexmk: Use the -f option to force complete processing,
 unless error was exceeding maximum runs, or warnings treated as errors.
Latexmk: Examining '/workspace/percent.log'
=== TeX engine is 'pdfTeX'
Latexmk: Errors, so I did not complete making targets

And this is my tex file. It worked with MacTeX:
\documentclass[fleqn, a4paper, 11pt]{article}
\usepackage[left=0.3in, right=0.3in, top=0.7in, bottom=0.7in]{geometry}
\usepackage{mathexam}
\usepackage{amsmath}
\usepackage{setspace}
\usepackage{graphicx}
\usepackage[export]{adjustbox}
\usepackage{enumitem}

\newcommand{\imagescale}{0.7}

\ExamClass{CANADIAN ACADEMY Grade 6 Math}
\ExamName{Percentage and Using percentages}

\let\ds\displaystyle

\begin{document}
\parbox[b][3cm][c]{12cm}{

	\textbf{First Name (Print):} \hrulefill \\
	\\
	\textbf{Last Name (Print):}  \hrulefill }

\begin{enumerate}
	% Q1
	\item Write as percentages.
	      \begin{enumerate}[itemsep=0.5in]
		      \item $\frac{69}{100}$
		      \item $\frac{530}{1000}$
		      \item $\frac{38}{50}$
		      \item $\frac{9}{20}$
		      \item $\frac{12}{25}$
	      \end{enumerate}
	      \vspace{1in}

	\item Express as fractions in lowest terms.
	      \begin{enumerate}[itemsep=0.5in]
		      \item 37\%
		      \item 25\%
		      \item 80\%
		      \item 125\%
		      \item 95\%
	      \end{enumerate}

	      \newpage

	\item Express as fractions in lowest terms.
	      \begin{enumerate}[itemsep=0.7in]
		      \item 0.5\%
		      \item 310\%
		      \item 28.5\%
		      \item 0.025\%
		      \item 180\%

	      \end{enumerate}
	      \vspace{1in}

	\item Write as a decimal.
	      \begin{enumerate}[itemsep=0.7in]
		      \item 60\%
		      \item 4\%
		      \item 7.5\%
		      \item $6\frac{1}{2}\%$
		      \item $\frac{3}{4}\%$
	      \end{enumerate}
	      \vspace{1in}
	      \newpage

	\item Write as a percentage.
	      \begin{enumerate}[itemsep=0.7in]
		      \item 0.09
		      \item 0.61
		      \item 2.13
		      \item 0.0007
		      \item 0.000104

	      \end{enumerate}
	      \vspace{1in}

	\item Express the first quantity as a percentage of the second.
	      \begin{enumerate}[itemsep=0.7in]
		      \item 3m, 4m
		      \item 30cm, 2m
		      \item 450m, 3km
		      \item 68kg, 1 tonne
		      \item 5mm, 1m
	      \end{enumerate}
	      \vspace{1in}
	      \newpage

	\item Which is the larger amount?
	      \begin{enumerate}[itemsep=0.7in]
		      \item 40\% of 300 or $\frac{1}{3}$ of 330
		      \item 33\% of 1kg or $\frac{1}{3}$ of 1kg
		      \item 20\% of one meter or $\frac{1}{4}$ of 1.6 meter
		      \item 25\% of one hour or or $\frac{1}{10}$ of 3 hours
		      \item 50\% of 420 or 25\% of 800

	      \end{enumerate}
	      \vspace{1in}

	\item Find
	      \begin{enumerate}[itemsep=0.7in]
		      \item 20\% of 300
		      \item $0.5\%$ of 2km
		      \item 130\% of 12 hours
		      \item 85\% of \$ 250
		      \item \$ $10.9\%$ of \$ 50000

	      \end{enumerate}
	      \vspace{1in}
	      \newpage
	\item You bought an item for \$240 and sold it for \$300. Find
	      \begin{enumerate}[itemsep=0.7in]
		      \item Do you have profit or loss?
		      \item Express the profit/loss as a percentage of the cost price.
	      \end{enumerate}
	      \vspace{1in}

	\item John bought a chair for \$ 360 and then sold it for a 20\% profit.
	      \begin{enumerate}[itemsep=0.7in]
		      \item Find the profit.
		      \item The selling price of the chair.

	      \end{enumerate}
	      \vspace{1in}

	\item The price of a TV is \$ 1800. If a 22\% discount is offered, find the actual selling price of the TV.

	      \vspace{1in}
	\item A bicycle shop sells bicycles for \$ 180 plus a tax of 12.5\%.
	      \begin{enumerate}[itemsep=0.7in]
		      \item What is the tax amount to be added"
		      \item How much will customers have to pay for a bicycle?

	      \end{enumerate}
	      \vspace{1in}
	      \newpage

	\item Find the total amount to repay on a loan of
	      \begin{enumerate}[itemsep=1.5in]
		      \item \$ 3400 for 5 years at 8\% p.a. simple interest.
		      \item \$ 5200 for 3 years and 3 month at 6\% p.a. simple interest.

	      \end{enumerate}
	      \vspace{1.7in}

	\item Find answers to:
	      \begin{enumerate}[itemsep=1.5in]
		      \item Find the percentage of numbers from 1 to 100 inclusive, which contain the digit 8.
		      \item 180g is 9\% of x g. Find x.
		      \item 40\% of x meter is 2.2m. Find x.

	      \end{enumerate}
	      \vspace{1in}

\end{enumerate}
\end{document}

Hello there, unfortunately, I cannot fix up the Docker image build with the current texlive (because its install sucks really, sadly).
But running the current Docker image built, you can do:
tlmgr update --self
sudo apk add xz
tlmgr install mathexam

which does work. The image is really just missing that xz package which I can't add anymore, I'll retry in a few weeks

Thanks, it works.
I'd like to add packages in Dockerfile.
Do you think this looks ok? I change line 56 and 57 in your Dockerfile to this one.
RUN tlmgr install latexindent latexmk  && \
sudo apk add xz && tlmgr install mathexam setspace adjustbox xkeyval collectbox enumitem lastpage && \
    texhash

Unfortunately the current Dockerfile doesn't rebuild properly, I'll investigate how to fix it more in the coming days/weeks.
However, for now you can write your own Dockerfile with for example
FROM qmcgaw/latexdevcontainer
USER root
RUN apk add --no-cache xz && \
         tlmgr install latexindent latexmk && \
         tlmgr install mathexam setspace adjustbox xkeyval collectbox enumitem lastpage texhash

And build the image with for example
docker build -t yourimagename .

Excellent.
Thank you.
I will give it a go.

I tried this Dockerfile.
FROM qmcgaw/latexdevcontainer
USER root
RUN apk add --no-cache xz && \
    tlmgr update --self && \
    tlmgr install latexindent latexmk && \
    tlmgr install mathexam setspace adjustbox xkeyval collectbox enumitem lastpage texhash
USER ${USERNAME}

This is the result:
docker build -t shinokada/latexdevcontainer .
Sending build context to Docker daemon  10.75kB
Step 1/4 : FROM qmcgaw/latexdevcontainer
 ---> 85b911aaea3e
Step 2/4 : USER root
 ---> Running in c9295584d347
Removing intermediate container c9295584d347
 ---> dd102b659b76
Step 3/4 : RUN apk add --no-cache xz &&     tlmgr update --self &&     tlmgr install latexindent latexmk &&     tlmgr install mathexam setspace adjustbox xkeyval collectbox enumitem lastpage texhash
 ---> Running in d21f162e464a
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz
(1/2) Installing xz-libs (5.2.5-r0)
(2/2) Installing xz (5.2.5-r0)
Executing busybox-1.31.1-r16.trigger
OK: 111 MiB in 71 packages
tlmgr: package repository https://mirrors.concertpass.com/tex-archive/systems/texlive/tlnet (verified)
[1/1, ??:??/??:??] update: texlive.infra [223k] (55776 -> 56587) ... done
running mktexlsr ...
done running mktexlsr.
tlmgr: package log updated: /usr/local/texlive/2020/texmf-var/web2c/tlmgr.log
tlmgr: package repository https://mirrors.concertpass.com/tex-archive/systems/texlive/tlnet (verified)
tlmgr install: package already present: latexindent
tlmgr install: package already present: latexmk
tlmgr install: package texhash not present in repository.
tlmgr: package repository https://mirrors.concertpass.com/tex-archive/systems/texlive/tlnet (verified)
[1/7, ??:??/??:??] install: adjustbox [14k]
[2/7, 00:01/00:04] install: collectbox [3k]
[3/7, 00:01/00:03] install: enumitem [14k]
[4/7, 00:02/00:03] install: lastpage [4k]
[5/7, 00:03/00:04] install: mathexam [2k]
[6/7, 00:03/00:04] install: setspace [8k]
[7/7, 00:04/00:05] install: xkeyval [13k]
tlmgr: action install returned an error; continuing.
running mktexlsr ...
done running mktexlsr.
tlmgr: An error has occurred. See above messages. Exiting.
tlmgr: package log updated: /usr/local/texlive/2020/texmf-var/web2c/tlmgr.log
The command '/bin/sh -c apk add --no-cache xz &&     tlmgr update --self &&     tlmgr install latexindent latexmk &&     tlmgr install mathexam setspace adjustbox xkeyval collectbox enumitem lastpage texhash' returned a non-zero code: 1

And finding images:
docker images
REPOSITORY                 TAG                 IMAGE ID            CREATED             SIZE
<none>                     <none>              dd102b659b76        3 minutes ago       382MB
qmcgaw/latexdevcontainer   latest              85b911aaea3e        3 weeks ago         382MB
tianon/latex               latest              c48044117b73        18 months ago       2.91GB

Obviously, it didn't create a proper image.
Do you have any suggestions?

It all worked well.
I just needed to change .devcontainer/docker-composer.yml's image field to select my image.
version: "3.7"

services:
  vscode:
    image: shinokada/latexdevcontainer
    volumes:
... All same here

Thank you for your great repo and help.
:smiley: :smiley: :smiley: :smiley: :smiley:

Yep sorry for rushing my answer.
Also you might need to use USER vscode instead of USER ${USERNAME}, except if you pass a build argument ARG USERNAME=vscode beforehand.
Have fun!

Thank you for your tip/support.
Yes, I'm having fun.

With the newer image, you no longer need xz. You can place a Dockerfile in .devcontainer/ with
FROM qmcgaw/latexdevcontainer
RUN tlmgr install mathexam setspace adjustbox xkeyval collectbox enumitem lastpage && \
        texhash

And change the .devcontainer/docker-compose.yml to
version: "3.7"

services:
  vscode:
    build: .
    image: mylatexdevcontainer
    volumes:
      - ../:/workspace
      - ~/.ssh:/home/vscode/.ssh:ro
      - ~/.ssh:/root/.ssh:ro
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      - TZ=
    security_opt:
      - seccomp:unconfined
    entrypoint: zsh -c "while sleep 1000; do :; done"

Such that if you open the VSCode command palette and select Rebuild and reopen in container, this will re-build using your Dockerfile 😉 If you want to update the base image qmcgaw/latexdevcontainer, you still need to re-pull it though, there are update instructions in the readme now.

Thanks.
As you instructed, I created a new image using this Dockerfile:
FROM qmcgaw/latexdevcontainer
ARG USERNAME=vscode
USER root
RUN tlmgr install mathexam setspace adjustbox xkeyval collectbox enumitem lastpage algpseudocodex listings && \
    texhash
USER ${USERNAME}

Then, I used the following docker-compose.yml:
version: "3.7"

services:
  vscode:
    build: .
    image: shinokada/latexexam
    volumes:
      - ../:/workspace
      - ~/.ssh:/home/vscode/.ssh:ro
      - ~/.ssh:/root/.ssh:ro
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      - TZ=
    security_opt:
      - seccomp:unconfined
    entrypoint: zsh -c "while sleep 1000; do :; done"

When I use Open in Container, I get the following error:

Thanks, it worked.


Changing the default voice

How do i change the default voice in the code? I'm unsure how to approach it

Try hacking around in /src/App.vue on line 212 speech.voiceURI = 'native'
Documentation: https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisVoice/voiceURI


Not able to change status code for error response

How to simulate response with status other than 200.
**Below is the success.json file.**
<%

var data = {};

var init = params.id;

    switch (init) {
        case '1':
        data = response[init];
        console.log("I am "+ init);
        break;
        case '2':
        data = response['error'];
        console.log("I am "+ init);
        break;
        default:
        data= response['error-401'];
            break;
    }
%>

<%-JSON.stringify(data);%>

In all the case the response is going with 200 as status code. But for error response , am expecting status code as 400.
Please help with some code snippet through which we can change status code based on scenarios.

@smollweide please can you guide us here, we are stuck with this current scenario

Hi @kumar88kanishk,
good point. Sounds like an case for the middleware:
readme middleware. But I will take care on your solution later on.
Greetings

The middleware is the only way to solve this.


[GH-208] Add node-ipc for wallet.

https://github.com/input-output-hk/cardano-shell/issues/208
termed "DaedalusIPC"

this PR is now rotting for almost two weeks! and it's getting complicated with the proposed changes by @rvl being in another PR against this one. Could this be sped up a bit, please!

I have merged in the clean ups from #213. The PR #221 adds a nodejs test case.

This is ready to merge. @ksaric @CodiePP
The Hydra failures are due to broken MacOS builders. The tests.ipc.x86_64-darwin job has already been failing on master, so the failure is not caused by this code change.


swayr: 0.20.0 -> 0.20.1

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/swayr/versions.
meta.description for swayr is: "A window switcher (and more) for sway"
meta.homepage for swayr is: "https://git.sr.ht/~tsdh/swayr"
meta.changelog for swayr is: ""
Updates performed

Rust version update

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.20.1 with grep in /nix/store/j585zbqnhzv1n7x63d1dzafgwrrzm7wj-swayr-0.20.1
found 0.20.1 in filename of file in /nix/store/j585zbqnhzv1n7x63d1dzafgwrrzm7wj-swayr-0.20.1

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
swayr

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/j585zbqnhzv1n7x63d1dzafgwrrzm7wj-swayr-0.20.1 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A swayr https://github.com/r-ryantm/nixpkgs/archive/f2c42a583b19183be047b28482adf1403a86f108.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/j585zbqnhzv1n7x63d1dzafgwrrzm7wj-swayr-0.20.1
ls -la /nix/store/j585zbqnhzv1n7x63d1dzafgwrrzm7wj-swayr-0.20.1/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

swayr

Maintainer pings
cc @Artturin for testing.

Result of nixpkgs-review pr 187041 run on x86_64-linux 1

1 package built:

swayr


Mapping Value to serializable structs

Hello, pardon me.
Is there any way to convert a toml::Value to a struct with #[derive(Serialize)?
Thanks.

Ops, sorry. I found.
struct::deserialize(value)


Relation changes - Work in progress

This branch includes many changes for the NFR functionality , specifically around provisions, variables, and relations between entities. Document generation is roughly working right now.

DEV deployments have completed successfully!
Backend available
Frontend available


Trade history is missing

I needed to manually refresh the pg after 5 mins to get the trade history to appear

@Chwy5  need a scenario. not enough information to do anything

Screenshots not working...shouldve showed it
Do an actual trade.....after it is completed the trade history(under the order book) on the market pg does not update....I need to refresh the pg for it to show up

verified that UI is calling getter but the same payload is returned. so market trade history doesn't show the new trade.

Trade history still not working....My fills is

Seeing issues with this. Lots of delay between order being confirmed and appearing in the trade history. One order wasn't showing up after a few minutes so I left the market and came back and much of my previous trade history had vanished. You can see from my bell alerts that there should be a lot more trades on Jul 10

Tested and working correctly now


Transfer-Encoding: chunked

It is impossible to implement a controller able to handle chunked HTTP request. This is a kind of requests sent by WSO2 ESB by default.
Consider this example. It results in a 400 Bad Request response with details "JSON decoding error: Syntax error, malformed JSON".
POST / HTTP/1.1
rabbitmq.message.id: urn:uuid:1e91658a-1a15-4ebd-a9da-06b7554614c6
Content-Type: application/json; charset=UTF-8
SOAPAction:
Transfer-Encoding: chunked
Host: xxx
Connection: Keep-Alive
User-Agent: Synapse-PT-HttpComponents-NIO

78
{"type":"xxx","event":"{\"noLogin\":xxx,\"companyId\":xxx,\"userId\":xxx,\"eventDate\":null}"}
0

This repository has been closed and moved to laminas-api-tools/api-tools-content-negotiation; a new issue has been opened at https://github.com/laminas-api-tools/api-tools-content-negotiation/issues/10.


build fails with aeson-2.0

servant-tracing> /tmp/stack-a8a2947c29e1c1a7/servant-tracing-<IP_ADDRESS>/src/Tracing/DataDog.hs:44:42: error:
servant-tracing>     • Couldn't match type ‘T.Text’ with ‘Key’
servant-tracing>       Expected: [aeson-<IP_ADDRESS>:Data.Aeson.Types.Internal.Pair]
servant-tracing>         Actual: [(T.Text, Value)]
servant-tracing>     • In the second argument of ‘($)’, namely
servant-tracing>         ‘["trace_id" .= (unTrace . traceId $ context span),
servant-tracing>           "span_id" .= (unSpan . spanId $ context span),
servant-tracing>           "name" .= unOp (operationName span),
servant-tracing>           "resource" .= unOp (operationName span), ....]
servant-tracing>            <> parentId (relations span)’
servant-tracing>       In the expression:
servant-tracing>         object
servant-tracing>           $ ["trace_id" .= (unTrace . traceId $ context span),
servant-tracing>              "span_id" .= (unSpan . spanId $ context span),
servant-tracing>              "name" .= unOp (operationName span),
servant-tracing>              "resource" .= unOp (operationName span), ....]
servant-tracing>               <> parentId (relations span)
servant-tracing>       In an equation for ‘toJSON’:
servant-tracing>           toJSON (DataDogSpan span)
servant-tracing>             = object
servant-tracing>                 $ ["trace_id" .= (unTrace . traceId $ context span),
servant-tracing>                    "span_id" .= (unSpan . spanId $ context span),
servant-tracing>                    "name" .= unOp (operationName span), ....]
servant-tracing>                     <> parentId (relations span)
servant-tracing>             where
servant-tracing>                 toNanos = (*)<PHONE_NUMBER>
servant-tracing>                 unOp (OpName n) = n
servant-tracing>                 unSpan (SpanId sid) = sid
servant-tracing>                 unTrace (TraceId tid) = tid
servant-tracing>                 ....
servant-tracing>    |
servant-tracing> 44 |     toJSON (DataDogSpan span) = object $ [
servant-tracing>    |                                          ^...

This should be all set with version <IP_ADDRESS>

Haven't had a chance to test, but thank you!


set snapshot version before publishing snapshot to SonaType

Using a Micronaut Framework 3.x snapshot means you use core snapshot  and a fix version of modules dependencies.
This PR sets every micronaut version (core and modules) to SNAPSHOT just before publishing a platform snapshot.

I am unclear what we're trying to achieve here

What we are trying to achieve is for users the ability to use a Micronaut Snapshot version.
In Micronaut Framework 3.x, you could set your micronautVersion to the next snapshot and you were using core snapshot.
With the move to platform, if you set micronautVersion to a snapshot currently you will get only fixed versions. platform snapshot does not contain snapshot versions.
I don't want platform libs.version.toml to contain SNAPSHOT versions because it would be a nightmare to do releases. We will have to  set every version of every module each time. I would prefer to do the change on-the-fly as this PR does.

I am not convinced that's the right thing to do. If you set micronautVersion to a SNAPSHOT version, then you would get the SNAPSHOT version of the platform, not core, which matches the new semantics (and this is what the Gradle plugin does).
If you blindly change all versions to SNAPSHOTs, what you will get is not the current state of core or modules, but the _latest snapshot published with the version prefix`. There are a couple issues with this:

we cannot guarantee that the latest published SNAPSHOT is more recent than the release version (or milestone) version found in the platform. For example, every time you do a release, say micronaut-foo-1.0.0-M1, then M1 is more recent than the latest snapshot of foo.
the latest snapshot version of a module, after releases, will not match the version number found in the libs.versions.toml file. For example, if we release micronaut-core-4.0.0 final, then the next SNAPSHOT version is not 4.0.0-SNAPSHOT but 4.0.1-SNAPSHOT. Which means that your script doesn't work for this use case. And this is just one module in the long list here.

So we should be much clearer what we want users to be able to try:

a snapshot version of the platform, in which case this platform can include newer releases, or snapshots
a snapshot version of individual modules, including core, in which case we can either document how to add dependency rules to do this, or provide convenience in the plugins to use snapshots of modules

@sdelamo I have been thinking about this, and have created #204. With it, if you want a particular version of core, you just set micronaut.core.version as you would do with any other module. micronaut.version is left for the Platform version.
That said, I also agree that Platform 4.0.0-SNAPSHOT should contain snapshot versions if they are newer than any other release. Now, how to get there is something that I would prefer @melix to answer

Platform 4.0.0-SNAPSHOT should contain snapshot versions if they are newer than any other release

And that is far from easy. For example, if we release 4.0.0-M1, then we revert to 4.0.0-SNAPSHOT after the release, which immediately publishes a new SNAPSHOT release which makes no sense to include in the platform, since we want it to be ready for release! That's the reason why we get many irrelevant PRs from renovate, which try to revert back to SNAPSHOTs...
I am actually unsure that the snapshot platform should depend on snapshots. Just like when we build a SNAPSHOT version of a module, we don't make it depend on SNAPSHOT versions of all its dependencies. The situations now is a bit messy because we're in the process of releasing a new major version so it's kind of the case that we want to depend on the latest core snapshot, but it seems to be an exception rather than the rule.

@sdelamo I have been thinking about this, and have created https://github.com/micronaut-projects/micronaut-platform/pull/204. With it, if you want a particular version of core, you just set micronaut.core.version as you would do with any other module. micronaut.version is left for the Platform version.

@alvarosanchez This may work in Maven where you see the dependencies and we are going to have two properties:
micronaut.core.version and micronaut.version (for platform).
However, Micronaut Gradle plugin adds multiple dependencies to the classpath and you can only specifiy micronaut.versionwhich is platform. Should we add to the gradle plugin the ability to define a micronaut.coreVersion ?

Should we add to the gradle plugin the ability to define a micronaut.coreVersion

We can do this, or maybe we can do something in a generic way so that you can override any Micronaut module version.

Should we add to the gradle plugin the ability to define a micronaut.coreVersion

We can do this, or maybe we can do something in a generic way so that you can override any Micronaut module version.

It's not that we can, but that we have to.

I am going to close this PR and create an issue in the gradle plugin repository. It seems we are in a agreement we don't need to change platform or the maven plugin.

Issue link https://github.com/micronaut-projects/micronaut-gradle-plugin/issues/689


[Documentation] Build tensorflow library from source lacks needed scripts

Hi,
I'm building tensorrt-inference-server from source on a Centos 6.3 server (Building with Docker apparently supports only Centos 7+).
The documentation here seems to suggest building Tensorflow library following the build steps on Dockerfile found at root of tensorrt-inference-server repo
At last stage, there's
RUN ./nvbuild.sh --python3.6

I guess nvbuild.sh along with nvbuildopts is in nvcr.io/nvidia/tensorflow:19.09-py3 image. But since I'm on Centos6.3, I cannot install nvidia-docker2, hence cannot pull that image to local.
Is nvbuild.sh accessable on github or somewhere else, so that I can use it to continue my source build,  thanks.

For pulling and building you don't need to use nvidia-docker, you can just use docker. But perhaps that is not available on Centos6.3 either. Do you have access to another system that does support docker? You can pull the image on that system and then copy out the files you need.

OK I'll try

Closing. Reopen if you encounter more issues.


Add Microsoft.StorageTasks Service | Swagger API Review (Ring 0 Service)

ARM (Control Plane) API Specification Update Pull Request
Purpose of this PR
What's the purpose of this PR? Check all that apply. This is mandatory!

[x] New API version. (Such PR should have been generated with OpenAPI Hub, per this wiki doc.)
[ ] Update existing version for a new feature. (This is applicable only when you are revising a private preview API version.)
[ ] Update existing version to fix swagger quality issues in S360.
[ ] Other, please clarify:

edit this with your clarification

Due diligence checklist
To merge this PR, you must go through the following checklist and confirm you understood
and followed the instructions by checking all the boxes:

[x] I have reviewed the general guidance on the spec PR review process: https://aka.ms/specprreview.
[x] I confirm this PR is modifying Azure Resource Manager (ARM) related specifications, and not data-plane related specifications.
[x] I commit to follow the Breaking Change Policy.
[x] I have reviewed following Resource Provider guidelines, including
ARM resource provider contract and
REST guidelines (estimated time: 4 hours).
I understand this is required before I can request review from an ARM API Review board.

ARM API changes review

If you want for the ARM team to review this PR, you must add the ARMReview label.
The automation may automatically add the ARMReview label, if appropriate.
If this happens, proceed according to guidance given in GitHub comments also added by the automation.

Breaking change review
If you have any breaking changes as defined in the Breaking Change Policy,
follow the process outlined in the High-level Breaking Change Process doc.
Getting help

For guidance on fixing this PR CI check failures, see the hyperlinks provided in given failure
and https://aka.ms/ci-fix.
For additional help, see https://aka.ms/azsdk/support/spectools.

Hi @HimanshuChhabra This PR was flagged for introducing a new RP namespace that is not being onboarded with RPaaS. Merging this PR to the main branch will be blocked as RPaaS is required for new RPs. To resolve this and allow the PR to be merged into the main branch, please use RPaaS to onboard the new RP.
This is a ring 0 service, a component of Storage RP

Hi, @HimanshuChhabra, our workflow has detected that there is no management SDK ever released for your RP, to further process SDK onboard for your RP, you should have the SDK client library name of your RP reviewed and approved. Action Required:

Follow this guidance Naming for new initial management or client libraries (new SDKs) - Overview (azure.com) to create an issue for management client library name arch board review.
Paste the issue link that you created in step 1 in this PR

Impact: SDK release owner will take the approved management client library name to release SDK. No client library name approval will leads to SDK release delayed.

Followed the instructions and opened an issue - https://github.com/Azure/azure-sdk-pr/issues/1205

Please provide evidence that you have received an exception to not be on RpaaS for the review to proceed.

Note to ARM API reviewer: This is a ring 0 service and so they have an exception to not be on RPaaS> Please continue with the review.


linkpoolio -> smartcontractkit/develop

Catches up the linkpool fork to chainlink

I get a ts error from the finage adapter saying it can't find @chainlink/external-adapter when i run yarn setup

@christianagnew I'll take a look at that one, as well as updating some of the imports on the adapters we built as they renamed the core packages.


Repackaging of egeria distribution & dependency streamlining

We have made a number of changes to reduce unnecessary dependency chains & ensure Egeria can more easily be actually run in the flexible ways the architecture supports.
Very recent changes have included ensuring the connection factory loads connectors dynamically, rather than having hard dependencies (maven), as well as offering an optional profile for building the server chassis without all OMASs etc in place, rather depending on runtime scanning of classes. We also have a growing number of connectors being developed externally which need to be easy to build and deploy
Currently the main egeria distribution

uses our 'full' server chassis
packages many connectors wil all dependencies

This issue is opened to streamline this such that we:

use our 'thin' server chassis
package connectors in a thinner form (without egeria dependencies)

The end result should be that the assembly can be used as today.
We will also need to handle side effects from this change, such as how developers run and test code, the execution of FVTs, changes to container deployment, error handling, documentation, whilst also working within restrictions of various tools such as maven
Benefits include

More flexible deployments matched with architecture
Potential Lower security attack service
Quicker & smaller build

Current list of potential tasks:

[ ] Add all dependencies for servers & clients into distribution (harmless, enabler)

[ ] Repackage connectors without dependencies (harmless, enabler)

[ ] Reapackage clients/samples without dependencies - update readme/docs as needed

[ ] Use skinny version of server chassis which will also require

[ ] Ensure FVTs work
[ ] Check impact on developers
[ ] Ensure container deployment works

[ ] Cleanup - Review samples/utilities (In distribution only where useful)

[ ] Cleanup - Check dependency chains

[ ] Update docs on writing connectors

[ ] Full Run through usual pre-release tests (charts, samples etc)

[ ] Test a custom connector works ok

[ ] Ensure changes work through maven (likely 1tst) and gradle (to follow)

Open related issues:
#1607 Rethink ConnectorConfigurationFactory < much of this is now likely addressed
#4455 investigate use/recommendation of 'provided' scope for connectors - this is a technical aid in some areas where a compile time dependency is needed ie for a connector, but where we know the runtime is present
#4280 Distribution open connector archives appears in both samples & utilities < just a cleanup
#3370 Gradle Build prototype < will continue this work. Currently need to get FVTs working
#2671 Cassandra Dependency < not tightly dependent, but somewhat related
cc: @mandy-chessell @lpalashevski @bogdan-sava

@lpalashevski Are you currently working on any aspects in this area? Or do you have any additional input or related issues to link to?

Not at the momenet. I remember Bogdan was still testing some aspects with maven depencenes and the slim build for server chassis I believe its related to 4455. Lets align on the call today and plan how we continue work on specific areas.

@bogdan-sava assigning this to you as I believe you were running with this.

The list of egeria connectors:

audit-log-console-connector

audit-log-event-topic-connector

audit-log-file-connector

audit-log-slf4j-connector

avro-file-connector

basic-file-connector

cassandra-metadata-extractor-connector

cohort-registry-file-store-connector

configuration-encrypted-file-store-connector

configuration-file-store-connector

csv-file-connector

data-engine-proxy-connector

data-folder-connector

elasticsearch-integration-connector

graph-repository-connector

inmemory-open-metadata-topic-connector

inmemory-repository-connector

janus-connector

kafka-integration-connector

kafka-open-metadata-topic-connector

omrs-rest-repository-connector

open-lineage-janus-connector

open-metadata-archive-file-connector

openapi-integration-connector

readonly-repository-connector

security-manager-tag-connector

security-officer-tag-connector

spring-rest-client-connector

As a first step I'll remove dependency for elasticsearch-integration-connector and graph-repository-connector, and add jar-with-dependencies for them.
And place the jars with dependencies in ./lib of distribution


🌐 Add Persian translation for docs/fa/docs/index.md and tweak right-to-left CSS

Hi
This is a PR to start the Persian documentation translation (lang=fa).
It includes only files generated by running python ./scripts/docs.py new-lang fa according to the Development - Contributing > Docs > Translations > New Language
You can track Persian translations on this issue: #2041
Thanks a lot.

Added index page translation to this PR.

A very good idea 👌

Whe  it can be merged?

Thank you @mohsen-mahmoodi! :bow: :rocket:
And thanks for the reviews @rabbitix, @onionj, @SepehrRasouli, @TorhamDev :cake: :coffee:


Incorrect transform when the condition is not fulfilled on dynamic style

Description
i'm using osmicsx 1.1.1, and i want to make dynamic styling based on some conditions. for example :
apply("bg-blue-500", disabled && "opacity-50")

so, when the  disabled value is true . the output is correct :
[{ backgroundColor: "blue" }, { opacity: 0.5 }]

but, when the disabled is false. the  output is correct :
[{ backgroundColor: "blue" }, false]

How to Reproduce

Use apply method
Write dynamic style with some condition is required
Set condition false

hi,
thanks for your contribution, I've merge your PR


Add github app move

Pull Request Test Coverage Report for Build 1560

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 99.728%

Totals

Change from base Build 1558:
0.0%

Covered Lines:
733

Relevant Lines:
735

💛  - Coveralls


Optimized DefaultMQProducerImpl#checkConfig, remove unused check

below code, null == this.defaultMQProducer.getProducerGroup() is redundancy, i wanna remove it.
in org.apache.rocketmq.client.Validators#checkGroup has checked groupName is null.

https://github.com/apache/rocketmq/pull/4363


Is it possible to add the model of deepseek-ai/deepseek-moe-16b-chat moe

Model description
This is the address of his huggingface deepseek-ai/deepseek-moe-16b-chat, MIT protocol, fully open weight.
Open source status

[X] The model implementation is available
[X] The model weights are available

Provide useful links for the implementation
No response

+1, would be awesome


ElastoDyn: Allow one-blade turbine model

Ready to be merged.
Feature or improvement description
Allows NumBld=1 in ElastoDyn
Impacted areas of the software
ElastoDyn
Additional supporting information
The only changes needed from what I could see were about disactivating some output channels. The total number of DOF being reduced, if statements that relied on the Teeter DOF being at position 22 needed to be changed since this index is out of bounds for a 1 bladed rotor (max number of DOF being 18).
Extending to more blades (>3) would require a rework of the outputs and the DOF indexing.

Thanks, @ebranlard.  These ElastoDyn changes all make sense to me.  I'm a bit concerned that there are likely necessary changes outside of ElastoDyn that require changes as well (given that NumBl is an initialization output of ElastoDyn for use by AeroDyn, ServoDyn, and the C++ interface).  Did you check these modules for any necessary changes as well?

Thanks for the review.
I haven't seen any issue with AeroDyn, apart from hard coded number of blade inputs in the input file (3 blade files), but only then. The same is found for ServoDyn, where most of the InputFileData variables are hardcoded to 3 blades (TipManS, PitManRat, BlPitchF), but the rest of code loops through NumBl, or the min between 3 and NumBl. To be safe, I've added a bit more "array" bounds when I thought it would either be necessary, or to increase readability in ServoDyn.
I've tested this with AeroDyn and ServoDyn for 1,2 and 3 blades, and the results seemed to make sense. I wouldn't be surprised if there is a corner case that I've missed, but we can hopefully easily spot and fix such array bound. Hopefully the r-test will pass..

@ebranlard Do you have 1-blade test case?

I don't really have a test (I mostly did this to have only one blade for the elliptical wing of OLAF, which is "inelastic".
An easy and more or less relevant one would be to simply duplicate this one, and changing the number of blade to 1 in ElastoDyn input file (that will affect AeroDyn and ServoDyn):
https://github.com/OpenFAST/r-test/tree/dev/glue-codes/openfast/5MW_Land_DLL_WTurb

The test case for this will be added in PR #648.


Tautulli component: lot of failures connection !

Home Assistant release with the issue: since 0.83.3 (currently running 0.84.3)
Last working Home Assistant release (if known): N/A as it was first release where component was usable !
Operating environment (Hass.io/Docker/Windows/etc.): Hass.io (supervisor 141 HaasOS 1.13)
Component/platform: https://www.home-assistant.io/components/sensor.tautulli/
Description of problem: generates a lot of noise in logs with problem of connection all the time (unless my Tautulli server is running fine all the time and same for HA and everything is on same LAN). The component still works in front-office but with all these errors of connection all the time in logs
Can not load data from Tautulli: http://<IP_ADDRESS>:8181/api/v2?apikey=XXXXXXXX&cmd=get_activity -
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
sensor:
  - platform: tautulli
    api_key: myapikeyishere
    host: <IP_ADDRESS>
    monitored_conditions:
      - ip_address # local IP for client
      - ip_address_public # Public IP for client
      - player # Player name

I have had this running since the introduction and other than during restarts I have not seen this error, how often does it occur?

Sorry for late answer but I had to reinstall my config for some other reasons ;) The problem still appears but it's completely randomly (well have not found yet the link with something else !). It can sometimes make the error few times in a raw in logs and some days without anything !
I'll keep an eye on it and try to find if it's linked with something else...

It looks definitively like a too short timeout on API request ! Is there a way to correct that easily ? It fills my HA logs just with these time-out errors all the time !!

Is there a way to correct that easily ?

yes, run HA and tautulli on better HW and/or use IP and not DNS names if you are not.

It fills my HA logs just with these time-out errors all the time !!

You can "disable" that by setting the logger level to critical for pytautulli
https://www.home-assistant.io/components/logger/

Protip @vincegre: Your usage of ! in your messages can be interpited as you "screaming" to us, the people investing our limited spare time to add features/fix bugs ;)

yes, run HA and tautulli on better HW and/or use IP and not DNS names if you are not.

Tautulli is running already on a very powerful server where Plex server is running too and HA is on a dedicated Pi 3B+ and I use only IP for config and setup never DNS or mdns names..

You can "disable" that by setting the logger level to critical for pytautulli
https://www.home-assistant.io/components/logger/

Thanks for the info, will do that to keep it more quiet !

Protip @vincegre: Your usage of ! in your messages can be interpited as you "screaming" to us, the people investing our limited spare time to add features/fix bugs ;)

Sorry it was not my goal, and didn't expect two ! to be understood like that :(


[stdlib] Fixed IntervalType.overlaps for empty interval case

Good catch!  Could you re-format the patch to 80 columns?

@swift-ci Please test


Enable automatic audio playback device switching

OWT Win SDK will move from audio_device_core_win core_audio_xxx impl.

Shall we merge it to 83-sdk branch? I think it's up to application to decide the behavior for device switching.

It should be merged. This does not change default stack behavior. We don't expose audio device selection API so always default communication device will be used. This patch is handling the default communication device change.


Add System monitoring component

Description:
This is a limited prototype/proposal for a system_monitoring component. As mentioned in #10118 should this help us to avoid the issue with the naming as the names are handled by the component through a dict lookup. Also, units of measurement and icons would be identical across platforms.
Depends on: #10555
Related issue (if applicable): fixes #10118
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#<home-assistant.github.io PR number goes here>
Example entry for configuration.yaml (if applicable):
system_monitoring:
  - platform: cpuspeed
  - platform: demo

Checklist:
If user exposed functionality or configuration variables are added/changed:

[ ] Documentation added/updated in home-assistant.github.io

If the code communicates with devices, web services, or third-party tools:

[ ] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[ ] New dependencies have been added to the REQUIREMENTS variable (example).
[ ] New dependencies are only imported inside functions that use them (example).
[ ] New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[ ] New files were added to .coveragerc.

If the code does not interact with devices:

[ ] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[ ] Tests have been added to verify that the new code works.

I'm not a fan of this approach. I don't see any benefit compared to the sensor component. If we want names and units to be consistent, can't we just have system monitoring platforms do that? (also, how many system platform monitoring components do we need?)

We have system monitoring sensor platforms for that and we use them. With the introduction of this component we would have been capable to offload the whole conversion and round process from the platforms to the component. Also, it would have been possible for users set the unit of measurement  according their needs.

also, how many system platform monitoring components do we need?

The more interesting questions is not how many platforms we need but how many we already have and can profit. The cpuspeed platform is boring as there is only the frequency of the chip which comes in Hz. The netdata platform is quite limited because of it's hard-coded entities and the systemmonitor has to perform calculations on some values.
I will not forget this and re-open it in 2018 when I spend more time thinking about additional benefits.


inflate: make use of  enable-dfa-jump-thread

Refactor so that the llvm enable-dfa-jump-thread has an effect. The numbers are really good for the small chunk sizes

We're now on-par for a chunk size of 4 with zlib-ng, and doing very well overall.

It really is a massive jump for chunk sizes 4 and 5, (20% and 12% resp.) and then matters less and less for bigger chunk sizes.
NOTE: these benchmarks are run with -Cllvm-args=-enable-dfa-jump-thread; this commit does not enable that flag in any way, it (for now) has to be enabled manually via rustflags.

Does this regress performance when not enabling the LLVM flag or is it perf neutral?


Useful tool for nbQA: docformatter

The following works with nbQA (1.5.2) and docformatter (1.5.0).
nbqa docformatter -i example.ipynb

The -i option is needed to tell docformatter to modify the notebook in-place.
For those using pre-commit, the following configuration can be used:
repos:
- repo: https://github.com/nbQA-dev/nbQA
  rev: "1.5.2"
  hooks:
    - id: nbqa
      entry: nbqa docformatter -i
      name: nbqa-docformatter
      alias: nbqa-docformatter
      additional_dependencies: [docformatter==1.5.0]

It might be useful to support docformatter out of the box in nbQA, or to show this example in the documentation. (The documentation already explains how to get custom tools to work, but a working example is always nice to have.)
Here is an example notebook to try out the above setup: example_nbqa_docformatter.zip

sure, PRs welcome

What do you think is the best way to go?

Add docformatter as an example of a custom tool.
Built-in support for docformatter in nbQA.

The first would be easy. The second will take a bit longer, but should not be too hard either.

If it's added as an example, there should be tests - do you want to go about adding them? There's examples of other tools, a simple one with --nbqa-diff should be fine

Sure thing. I wouldn't mind adding tests too. I'll see how the example idea works out and make a PR for it.

closing for now as there's been no activity here in several months, but feel free to open a PR if you'd still like this


Query Parameters do not validate correctly when special characters used - [ ]

Describe the bug
We have been trying to use prism the last week. However our org has a standard for our REST endpoints, such that when we use query parameters, they generally look like the following format filter[userId]. When trying to run a test against a mocked out api, we seem to be running into issues where the query parameter validation is not working as expected. I.e even when we pass in seemingly correct query parameters, it does not think we have the parameters required by the spec
I believe this is an issue with url encoding specifically, as if we change the query parameter to userId on its own, it works fine
To Reproduce
For example if i make a GET request to http://<IP_ADDRESS>:4010/api/v1/resource?filter[userId]=0613a91d-c1ae-4c14-afb9-33b86ceffa19 I would expect this to be a valid request as set out in my oas schema.

 OpenAPI Spec
{
	"components": {
		"examples": {},
		"headers": {},
		"parameters": {},
		"requestBodies": {},
		"responses": {},
		"schemas": {
			"StatusDto": {
				"enum": [
					"Processing",
					"Failed",
					"Complete"
				],
				"type": "string"
			},
			"ResourceDto": {
				"properties": {
					"status": {
						"$ref": "#/components/schemas/StatusDto",
						"description": "The status of the resource"
					},
					"amount": {
						"type": "string",
						"description": "The amount",
						"example": 0.0002314
					}
				},
				"required": [
					"status",
					"amount"
				],
				"type": "object",
				"additionalProperties": false
			},
			"ApiBodyDtoArray": {
				"properties": {
					"data": {
						"items": {
							"$ref": "#/components/schemas/ResourceDto"
						},
						"type": "array"
					}
				},
				"required": [
					"data"
				],
				"type": "object",
				"additionalProperties": false
			},
			"UUID": {
				"type": "string",
				"description": "RFC 4122 UUID",
				"pattern": "^\\b[0-9a-f]{8}\\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\\b[0-9a-f]{12}\\b$"
			}
		},
		"securitySchemes": {}
	},
	"info": {
		"title": "api",
		"version": "0.0.0",
		"contact": {}
	},
	"openapi": "3.0.0",
	"paths": {
		"/api/v1/resource": {
			"get": {
				"operationId": "GetResource",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ApiBodyDtoArray"
								}
							}
						}
					}
				},
				"security": [],
				"parameters": [
					{
						"in": "query",
						"name": "filter[userId]",
						"required": true,
						"schema": {
							"$ref": "#/components/schemas/UUID"
						}
					}
				]
			}
		}
	},
	"servers": [
		{
			"url": "/"
		}
	]
}

Run any of the following

http://<IP_ADDRESS>:4010/api/v1/resource?filter[userId]=0613a91d-c1ae-4c14-afb9-33b86ceffa19
http://<IP_ADDRESS>:4010/api/v1/resource?filter[userid]=0613a91d-c1ae-4c14-afb9-33b86ceffa19
http://<IP_ADDRESS>:4010/api/v1/resource?filter%5buserId%5d=0613a91d-c1ae-4c14-afb9-33b86ceffa19
http://<IP_ADDRESS>:4010/api/v1/resource?filter%5BuserId%5D=0613a91d-c1ae-4c14-afb9-33b86ceffa19

This should give you the error
{
    "type": "https://stoplight.io/prism/errors#UNPROCESSABLE_ENTITY",
    "title": "Invalid request",
    "status": 422,
    "detail": "Your request is not valid and no HTTP validation response was found in the spec, so Prism is generating this error for you.",
    "validation": [
        {
            "location": [
                "query"
            ],
            "severity": "Error",
            "code": "required",
            "message": "must have required property 'filter%5buserid%5d'"
        }
    ]
}

Expected behavior
Expect response to be as it would be if we did not have the special characters in the url (i.e. [ ])
{
    "data": [
        {
            "status": "Processing",
            "amount": 0.0002314
        }
    ]
}

Additional context
Attempted with docker image and with cli directly
Environment (remove any that are not applicable):

Library version: 4.8.0
OS: macOS

Hi again @NoahDaveySwyftx ! I'm going to presume this is resolved, but if that's incorrect or you have further questions, feel free to reopen or comment. Thanks!


Upload E2E test not working in this CI

For some reason, one specific E2E test has been failing only in the CI of atomic-data-browser.
It's the download, upload test. It works fine locally, and the rust build works fine, too.
322: waiting for selector "[data-test]:has-text("testimage.svg")"

And here the screenshots:

Seems like the first screenshot is showing a failed upload, I suspect the cookie not to be sent.
EDIT: has to do with #253. Cookie auth is not working cross origin, which is used when uploading the file.

Yup, turning on signed HTTP requests for uploads fixed the issue. #253 (cross-origin cookies) would fix this.


[7.0 Beta] Selection bug

Step 1. Select several days.

Step 2. Deselect one in the middle, in my case it's "9"

It happens, because cells after "9" are not updated.
https://github.com/patchthecode/JTAppleCalendar/blob/7.0.0/Sources/UICollectionViewDelegates.swift#L106
My code on which you can test it:
func calendar(_ calendar: JTAppleCalendarView, didSelectDate date: Date, cell: JTAppleCell?, cellState: CellState){
    var selectedDates = calendar.selectedDates
    selectedDates.remove(date)
    calendar.deselectAllDates(triggerSelectionDelegate: false)

    if selectedDates.count == 0{
        calendar.selectDates([date], triggerSelectionDelegate: false)
    }else{
        if date < selectedDates.first!{
            calendar.selectDates(from: date, to: selectedDates.last!, triggerSelectionDelegate: false)
        }else{
            calendar.selectDates(from: selectedDates.first!, to: date, triggerSelectionDelegate: false)
        }
    }
}

func calendar(_ calendar: JTAppleCalendarView, didDeselectDate date: Date, cell: JTAppleCell?, cellState: CellState){
    var selectedDates = calendar.selectedDates
    selectedDates.append(date)
    selectedDates = selectedDates.sorted()

    if calendar.selectedDates.count != 0 && selectedDates.first != date && selectedDates.last != date{
        calendar.deselectAllDates(triggerSelectionDelegate: false)

        if abs(date.timeIntervalSince1970 - selectedDates.first!.timeIntervalSince1970) > abs(date.timeIntervalSince1970 - selectedDates.last!.timeIntervalSince1970){
            calendar.selectDates(from: date, to: selectedDates.last!, triggerSelectionDelegate: false)
        }else{
            calendar.selectDates(from: selectedDates.first!, to: date, triggerSelectionDelegate: false)
        }
    }else{
        handleSelection(cell: cell, cellState: cellState, date: date)
    }
}

func handleSelection(cell: JTAppleCell?, cellState: CellState, date: Date) {
    let customCell = cell as! CalendarCell

    if date < endDate{
        switch cellState.selectedPosition() {
        case .none: customCell.position = .off
        case .full: customCell.position = .single
        case .left: customCell.position = .left
        case .right: customCell.position = .right
        case .middle: customCell.position = .middle
        }

        customCell.isUserInteractionEnabled = true
    }else{
        customCell.position = .disabled
        customCell.isUserInteractionEnabled = false
    }
}

I've simplified example, deselection doesn't trigger batch updates.
    let dateFormatter = DateFormatter(dateFormat: "dd-MM-yyyy")
    let firstMarch = dateFormatter.date(from: "01-03-2017")!
    let seventhMarch = dateFormatter.date(from: "07-03-2017")!
    calendar.selectDates(from: firstMarch, to: seventhMarch, triggerSelectionDelegate: false)
    calendar.deselectAllDates(triggerSelectionDelegate: false)

Let me know is this is fix.

Awesome, works like a charm.


"Extra attributes from the server" and other hydration warnings

Browser extensions mess w/ <html> and <body> sometimes and React hates it, and kicks out errors in the console.
Definitely to document what this is about and how to suppress these (and avoid issues with plugins messing w/ your document):
<html suppressHydrationWarnings>

And maybe add that to the starter boilerplate.

This can be closed as d0b61e4 is in main I guess?


Kubectl top nodes/pods background url

I wanted to know how kubectl top nodes or kubectl top pods fetches the information as in what api does it hit. i couldn't find it in the kubernetes api docs : https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.11/
neither there is any function in the library : https://github.com/kubernetes-client/python/blob/master/kubernetes/README.md

run kubectl with --v=10 and you can see all the HTTP requests being sent


Cilium にて cannot patch resource "nodes/status" in API group が発生する

cilium status にて forbidden: User "system:serviceaccount:kube-system:cilium" cannot patch resource "nodes/status" in API group " というエラーが発生している。
$ cilium status
    /¯¯\
 /¯¯\__/¯¯\    Cilium:         6 errors
 \__/¯¯\__/    Operator:       OK
 /¯¯\__/¯¯\    Hubble:         disabled
 \__/¯¯\__/    ClusterMesh:    disabled
    \__/

DaemonSet         cilium             Desired: 6, Ready: 6/6, Available: 6/6
Deployment        cilium-operator    Desired: 2, Ready: 2/2, Available: 2/2
Containers:       cilium             Running: 6
                  cilium-operator    Running: 2
Cluster Pods:     59/65 managed by Cilium
Image versions    cilium             quay.io/cilium/cilium:v1.11.5: 6
                  cilium-operator    quay.io/cilium/operator-generic:v1.12.2@sha256:00508f78dae5412161fa40ee30069c2802aef20f7bdd20e91423103ba8c0df6e: 2
Errors:           cilium             cilium-mdbbr    controller update-k8s-node-annotations is failing since 1m4s (67x): nodes "k8s-worker02" is forbidden: User "system:serviceaccount:kube-system:cilium" cannot patch resource "nodes/status" in API group "" at the cluster scope
                  cilium             cilium-sqj95    controller update-k8s-node-annotations is failing since 31s (68x): nodes "k8s-master01" is forbidden: User "system:serviceaccount:kube-system:cilium" cannot patch resource "nodes/status" in API group "" at the cluster scope
                  cilium             cilium-w9gfg    controller update-k8s-node-annotations is failing since 49s (67x): nodes "k8s-worker03" is forbidden: User "system:serviceaccount:kube-system:cilium" cannot patch resource "nodes/status" in API group "" at the cluster scope
                  cilium             cilium-gbnfv    controller update-k8s-node-annotations is failing since 21s (67x): nodes "k8s-wk-amd-02" is forbidden: User "system:serviceaccount:kube-system:cilium" cannot patch resource "nodes/status" in API group "" at the cluster scope
                  cilium             cilium-mh84x    controller update-k8s-node-annotations is failing since 33s (68x): nodes "k8s-wk-amd-01" is forbidden: User "system:serviceaccount:kube-system:cilium" cannot patch resource "nodes/status" in API group "" at the cluster scope
                  cilium             cilium-cgk4r    controller update-k8s-node-annotations is failing since 15s (68x): nodes "k8s-worker01" is forbidden: User "system:serviceaccount:kube-system:cilium" cannot patch resource "nodes/status" in API group "" at the cluster scope
$

ここに記載の方法を試したら直った: https://github.com/cilium/cilium/issues/19816
$ cat << __EOT__ > cilium-workaround.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: cilium-node-patcher
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: "system:node"
subjects:
- apiGroup: ""
  kind: ServiceAccount
  name: cilium
  namespace: kube-system
  __EOT__
$ kubectl apply -f cilium-workaround.yaml

上記コメントの操作を実施後、 cilium を v1.12.3 にバージョンアップした状態での cilium status の結果が下記。
$ cilium status
    /¯¯\
 /¯¯\__/¯¯\    Cilium:         OK
 \__/¯¯\__/    Operator:       OK
 /¯¯\__/¯¯\    Hubble:         disabled
 \__/¯¯\__/    ClusterMesh:    disabled
    \__/

DaemonSet         cilium             Desired: 6, Ready: 6/6, Available: 6/6
Deployment        cilium-operator    Desired: 2, Ready: 2/2, Available: 2/2
Containers:       cilium             Running: 6
                  cilium-operator    Running: 2
Cluster Pods:     59/65 managed by Cilium
Image versions    cilium             quay.io/cilium/cilium:v1.12.3: 6
                  cilium-operator    quay.io/cilium/operator-generic:v1.12.3: 2
$


http4s clients do not send Accept header

While trying to write an integration with https://icanhazdadjoke.com/ for a presentation, I discovered that the http4s client does not correctly send the Accept header for known Content-Type's.

A workaround is to
      Client.apply({ req =>
        // Forcibly inject `Accept: application/*` header to work around https://github.com/guardrail-dev/guardrail/issues/1424
        val newRequest = req.withHeaders(Accept(MediaRangeAndQValue.withDefaultQValue(MediaRange.`application/*`)))
        emberClient.run(newRequest)
      })

where emberClient is the underlying Client[F] that will service the request


Added Vendure search input variables for getAllProducts

@michaelbromley I let Michael review this one

It needs updating with the current master after that big refactor. Toms - pull the latest version and you'll find the get-all-products.ts file now in the /vendure/api/operations/ dir.
It looks fine technically - as in it will pass the correct data to the Vendure API. The only thing I'm not sure of is whether the Vercel team intend to be able to define arbitrary variables in the operations API like this, or are you planning a common interface so that the front-end components won't need to change when switching providers? Because as it is, this PR includes exposes some quite Vendure-specific variables.

Closing the PR as it's outdated and doesn't fit our current structure.


Release v2.23.0

Enhancements

Allow installation on Laravel 9 projects
jdanio
#470
#477
Allow installing Bugsnag PSR Logger v2. This adds support for PSR Log v3
#471

When this will be merged and released?

@imjoehaines 👍


theme: refactor facets styling

continued in https://github.com/inveniosoftware/invenio-app-rdm/pull/1396


Disabling automatic re-subscribe?

I've noticed that when I have multiple live subscriptions (via node_redis) to a running redis-server instance and then kill the server, the client seems to automatically resubscribe to all channels it had previously been subscribed to when the server is brought back online.
I'm not overly knowledgeable in Redis, but I am assuming that this something the client is doing. If so, is there any way to disable the auto-resubscribe functionality?

This is implemented in newer versions


Mandated Nix version

The README states:  you will need Nix 2.4
So, is that exactly that version, or at least that version?
Hopefully it's the latter, being that nix is already at 2.7

This is badly-phrased. You're right about it being a minimum version bound: we need at least 2.4 for flakes.

Fixed in this commit.


inlineAttachment.attachToInput is not a function error in Angular demo

Hi, I tried your angularjs demo and I get this error.
inlineAttachment.attachToInput is not a function.
Haven't had much time to look what is the problem exactly.
Cheers

fixed in #59


Tex output

Coverage remained the same at 100.0% when pulling be3aed1474054b7c7227b5c1cac28636d235faa5 on tex-output into c42440826ff014e943b00573c47c235983d91884 on master.


Allow to change variable name with converter

sometimes the name of a route parameter does not fit exactly for the name of the converted object, this allows to optionally set a new name for a converted variable
usage:
$app->get('/user/:username', function(UserInterface $user) {
    // ...
})->convert('username', 'provider.user: loadUserByUsername', 'user');

The first argument of the converter is actually the variable of the controller, not the one in the route. And indeed, there such an example in the documentation:
$callback = function ($post, Request $request) {
    return new Post($request->attributes->get('slug'));
};

$app->get('/blog/{id}/{slug}', function (Post $post) {
    // ...
})->convert('post', $callback);

oh, I didn't saw that the Request was given to the converter. still, it is a bit cumbersome to use the Request in converter (especially if those are services like the provider.user in my last exemple)
currently, the first parameter of the converter is null if the controller parameter name does not exists in the route. would you be open to another approach where the third parameter can overwrite which route parameter is given to the converter ?
which would be used like that :
$app->get('/user/:username', function(UserInterface $user) {
    // ...
})->convert('user', 'provider.user: loadUserByUsername', 'username');


Error: Failed to execute git

VSCode Version: 1.10.2
OS Version: ubuntu 14.04 64bit Chinese Version
GIT Version: 2.11.0

Steps to Reproduce:

Type "code" to run vscode.
Open a folder without the ".git"
Try to edit a C source file.

Any errors in the console?
Run Developer: Toggle Developer Tools to open the console

@ramya-rao-a @joaomoreno
Bug here: https://github.com/Microsoft/vscode/blob/7f0f3103ee5fe1b50d11520bd999bacb34d9853f/src/vs/workbench/parts/git/node/git.lib.ts#L190
Git error message will change according to build local language

Can you prove that the error message you get is not in English? We make sure to always run git in English:
https://github.com/Microsoft/vscode/blob/7f0f3103ee5fe1b50d11520bd999bacb34d9853f/src/vs/workbench/parts/git/node/git.lib.ts#L234
Can you give our Insiders release a try?

@ramya-rao-a @joaomoreno My Ubuntu language is simplified Chinese, so Git is also the Chinese version, stderr is also Chinese, it means: not a git repository (or any parent directory)

@joaomoreno The Insiders release version has the same error message.

@uli2k In the Gnome Terminal, can you cd to that folder and then run:
git status

Then, run:
LANG="en_US.UTF-8" git status

What's the output of both commands?

@joaomoreno
zhang@zhang-ThinkPad:~$ cd projects/jjj/
zhang@zhang-ThinkPad:~/projects/jjj$ ls -l
总用量 16
drwxrwxr-x 9 zhang zhang 4096  2月  6 08:29 build
drwxrwxr-x 4 zhang zhang 4096  2月  6 08:29 devel
drwxrwxr-x 2 zhang zhang 4096  1月  7 09:44 devel_isolated
drwxrwxr-x 4 zhang zhang 4096  1月  9 08:58 src
zhang@zhang-ThinkPad:~/projects/jjj$ git status
fatal: 不是一个 git 仓库（或者任何父目录）：.git
zhang@zhang-ThinkPad:~/projects/jjj$ LANG="en_US.UTF-8" git status
fatal: 不是一个 git 仓库（或者任何父目录）：.git
zhang@zhang-ThinkPad:~/projects/jjj$
Does it help you?Screenshot below.

Uh-hoh!!!
How about:

LC_ALL="en_US. UTF-8" git status
LC_ALL="en_US" git status
LANG="en_US" git status

Awesome, pushing a fix for this.

@uli2k can you please validate if it works on the latest insiders?

@michelkaporin yeah, it worked at code-insiders_1.12.0-1491545409_amd64.deb


getJSON function for laps or other fit sections

Is it possible to have new getJSON functions for other FIT sections? This function extracts only data from "record" section, but I need also an extractor for "lap" section.
Thank you so much for this helpful lib!

Hi @lnovali - off the top of my head it should be fairly straightforward to enable this. It might have to be through a call like getJSON("lap") or getJSON("all") to prevent breaking the API for others.
I'm very busy these days with other projects, but I'll try get round to this soon.

@lnovali have a look at the getJSONLap() method I just added in f6427a0ad9997b4af053019d46ea3feb0326318c
I've this meets your purpose then I'll roll into a new release.
Initially I tried to create something more generic, but got tied-up in knots.


Improve Grist home page

Better access to Help Center content (videos, tutorials, webinars)
Show progress bar for tutorial
Clearer way to create documents
Test & improve how documents and workspaces are listed
Better overall content hierarchy: for new users, existing users, non-signed-in users.

I've made new mocks for icon and name thumbnail settings https://www.figma.com/design/wcpetFt6aOKzTszcvPPWLQ/[05%2F24]-Grist-Design?node-id=1440-41359&t=IjvyMAI5LZD2VBzt-1


Bug: Application group not working

📜 Description
The application group is not working after upgrading the Devtron stack from the 0.6.22 version to 0.6.26. Previously it was working fine.
Criticality
None
Impact on Enterprise
OSS
👟 Steps to replicate the Issue

Upgrade the Devtron stack from 0.6.22 to 0.6.26.

👍 Expected behavior
It should work fine after upgrading the Devtron stack
👎 Actual Behavior
Showing application count 0 for each environment even applications are deployed on environments.
☸ Kubernetes version
1.27
Cloud provider

AWS EKS

🌍 Browser
Chrome
🧱 Your Environment
No response
✅ Proposed Solution
No response
👀 Have you spent some time to check if this issue has been raised before?

[X] I checked and didn't find any similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

AB#8247

@pawan-59 Is this issue still there or resolved?

yes @abhibhaw this is resolved now. Closing the issue.


Removing file name from the file full path

Using the below, I extracted the full working path (including file name), and from it, I was able to extract the file name, now I need to subtract the file file name form the full bath to get the working directory name!
How can I get it using RegEx?
fn main() {
    use std::env;
    // Get the executed file full path
    let path = env::current_dir().unwrap();
    let execution_path = match env::current_exe() {
        Ok(exe_path) => format!("{}", exe_path.display()),
        Err(e) => format!("failed to get current exe path: {}", e),
    };

    // Get the executed file name
    let file_name = match path.file_name() {
        Some(name) => name,
        _ => panic!()
    };
    let re = Regex::new(file).unwrap();

    // How can I get the existing working directory without the file name,
    // i.e. execution_path - file_name
}

I thought the above code is enough, well. by running the above I get the below:
execution_path = "/Users/hasan/Documents/PycharmProjects/hello-rocket/target/debug/hello-rocket"
file_name =  "hello-rocket"
I need to apply RegEx, that give:
directory = execution_path - file_name
that is:
= "/Users/hasan/Documents/PycharmProjects/hello-rocket/target/debug/hello-rocket" - "hello-rocket"
= "/Users/hasan/Documents/PycharmProjects/hello-rocket/target/debug/"
hope this helps


Update  article

https://developers.google.com/web/updates/2017/12/modulepreload
Target Live Date: asap
CC: @petele

Whoops!
There were 6 warnings that will prevent this PR from being merged. Please take a look, and either fix, or provide a justification for why they can't be fixed.
WARNINGS
src/content/en/updates/2017/12/modulepreload.md#L73 - '

Whoops!
There were 6 warnings that will prevent this PR from being merged. Please take a look, and either fix, or provide a justification for why they can't be fixed.
WARNINGS
src/content/en/updates/2017/12/modulepreload.md#L73 - '

Whoops!
There were 5 warnings that will prevent this PR from being merged. Please take a look, and either fix, or provide a justification for why they can't be fixed.
WARNINGS
src/content/en/updates/2017/12/modulepreload.md#L73 - '