Installation problem

Hello, I tried to install pyfda on my Mac by issuing this command pip3 install pyfda
and this is what I got
Collecting pyfda
Downloading https://files.pythonhosted.org/packages/63/19/39e1392353bc0eb74213a6abf57d1ae4fe009a93e629bd81144cb543f40f/pyfda-0.1.5.tar.gz (311kB)
100% |################################| 317kB 3.5MB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-vjyrn7wy/pyfda/setup.py", line 19, in
exec(fp.read(), version_nr)
File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 126: ordinal not in range(128)
----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-vjyrn7wy/pyfda/

Best Regards

Dear Christian,
Thnak’s for your answer. I tried yous solution but id does not work :
pip3 install pyfda==0.2rc4
Collecting pyfda==0.2rc4
Downloading https://files.pythonhosted.org/packages/9c/3e/edbe2771af31252ddb4b52f8859e4090f813117a4cf47b561416502a34e8/pyfda-0.2rc4.tar.gz (331kB)
100% |################################| 337kB 2.0MB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-9cfskjex/pyfda/setup.py", line 9, in
with open(path.join(here, 'README_PYPI.rst'), encoding='utf-8') as f:
File "/usr/lib/python3.6/codecs.py", line 897, in open
file = builtins.open(filename, mode, buffering)
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-build-9cfskjex/pyfda/README_PYPI.rst'
----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-9cfskjex/pyfda/
Best Reagrds
Michel Kocher
Prof. Michel Kocher
HEIG-VD, Département TIN
University of Applied Science
Route de Cheseaux 1
1401, Yverdon-les-bains
Tel:+41 24 55 76 411
Email:michel.kocher<EMAIL_ADDRESS>On 11 Oct 2019, at 13:07, Christian Münker <notifications<EMAIL_ADDRESS>wrote:
pyfda==0.2rc4

Dear Michel,
I'm sorry, that's my fault. PyPI is driving me nuts - I'll try to fix
the issue with the missing file on the weekend and release a new version.
Cheers,
Christian
Am 11.10.19 um 14:24 schrieb michelkocher55:

Dear Christian,
Thnak’s for your answer. I tried yous solution but id does not work :
pip3 install pyfda==0.2rc4
Collecting pyfda==0.2rc4
Downloading
https://files.pythonhosted.org/packages/9c/3e/edbe2771af31252ddb4b52f8859e4090f813117a4cf47b561416502a34e8/pyfda-0.2rc4.tar.gz
(331kB)
100% |################################| 337kB 2.0MB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-9cfskjex/pyfda/setup.py", line 9, in
with open(path.join(here, 'README_PYPI.rst'), encoding='utf-8') as f:
File "/usr/lib/python3.6/codecs.py", line 897, in open
file = builtins.open(filename, mode, buffering)
FileNotFoundError: [Errno 2] No such file or directory:
'/tmp/pip-build-9cfskjex/pyfda/README_PYPI.rst'

Command "python setup.py egg_info" failed with error code 1 in
/tmp/pip-build-9cfskjex/pyfda/
Best Reagrds
Michel Kocher
Prof. Michel Kocher
HEIG-VD, Département TIN
University of Applied Science
Route de Cheseaux 1
1401, Yverdon-les-bains
Tel:+41 24 55 76 411
Email:michel.kocher<EMAIL_ADDRESS>On 11 Oct 2019, at 13:07, Christian Münker
<notifications<EMAIL_ADDRESS>wrote:
pyfda==0.2rc4
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/chipmuenk/pyfda/issues/154?email_source=notifications&email_token=ABDH55AD2Z54I5J2Y724H3DQOBV75A5CNFSM4I7H2UPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEA72NZA#issuecomment-541042404,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABDH55FJ26VNR7FBYGXC6XDQOBV75ANCNFSM4I7H2UPA.

--

Dr. Christian Muenker	08142-6690099 privat
Pfarrer-Bendert-Str. 2	 0179-5275523  mobil
82140 Olching

Issue should be fixed (together with some small improvements) in release 0.2rc5 - please test!

Dear Christian,
Thank’s for your effort, pyfda is now working on my computer and it is really good !
The only problem I have is that I could install PyQt5 and pyfda on a terminal but not in a docker I use for my lecture with JupyterLab. This is the message I get when I try to install pyfda, with 2 different versions :
pip3 install PyQt5
Collecting PyQt5
Downloading https://files.pythonhosted.org/packages/12/63/a7a32557fdce42b1ddf2353d9e2a576143376046ead0b1918fd4cfe01b90/PyQt5-5.13.1-5.13.1-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl (62.1MB)
100% |################################| 62.2MB 25kB/s
Collecting PyQt5_sip<13,>=4.19.19 (from PyQt5)
Downloading https://files.pythonhosted.org/packages/69/d2/92d85b0865fe68755488a30eec1c2b1b14da6c96c74441dc1c88e0659397/PyQt5_sip-12.7.0-cp36-cp36m-manylinux1_x86_64.whl (260kB)
100% |################################| 266kB 2.9MB/s
Installing collected packages: PyQt5-sip, PyQt5
Successfully installed PyQt5-5.13.1 PyQt5-sip-12.7.0
pip3 install pyfda
Collecting pyfda
Downloading https://files.pythonhosted.org/packages/e9/3a/6a77b4a26edd5ed2725ee4213a1e4c1229d454ea02e125220f59cabd2056/pyfda-0.2.tar.gz (334kB)
100% |################################| 337kB 2.0MB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-79nuxh78/pyfda/setup.py", line 15, in
exec(fp.read(), version_nr)
File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 130: ordinal not in range(128)
----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-79nuxh78/pyfda/
pip3 install pyfda==0.2rc5
Collecting pyfda==0.2rc5
Downloading https://files.pythonhosted.org/packages/e1/d3/dc6f158cee8984df0b687eed84ddc16076587b9434cb991581851a39ce0c/pyfda-0.2rc5.tar.gz (333kB)
100% |################################| 337kB 2.5MB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-l9irzg7z/pyfda/setup.py", line 15, in
exec(fp.read(), version_nr)
File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 130: ordinal not in range(128)
----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-l9irzg7z/pyfda/
pip3 install pyfda==0.2rc4
Collecting pyfda==0.2rc4
Downloading https://files.pythonhosted.org/packages/9c/3e/edbe2771af31252ddb4b52f8859e4090f813117a4cf47b561416502a34e8/pyfda-0.2rc4.tar.gz (331kB)
100% |################################| 337kB 3.9MB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-uj333fk1/pyfda/setup.py", line 9, in
with open(path.join(here, 'README_PYPI.rst'), encoding='utf-8') as f:
File "/usr/lib/python3.6/codecs.py", line 897, in open
file = builtins.open(filename, mode, buffering)
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-build-uj333fk1/pyfda/README_PYPI.rst'
----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-uj333fk1/pyfda/

Any idea what to do ?
Best regards and, again, thank’s for your work !
Michel
On 24 Oct 2019, at 11:46, Christian Münker <notifications<EMAIL_ADDRESS>wrote:
Closed #154https://github.com/chipmuenk/pyfda/issues/154.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/chipmuenk/pyfda/issues/154?email_source=notifications&email_token=AH3AYXTNLQOGPCR67734DXDQQFVHHA5CNFSM4I7H2UPKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOUNJHLWA#event-2740090328, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AH3AYXVMJOXMA53NQSNSAIDQQFVHHANCNFSM4I7H2UPA.

Dear Michel,
that's bad, seems like I have an invisible non-ASCII character like a
non-breaking space in my "version.py" which chokes "setup.py". Thanks a
lot for the log files and sorry for the inconvenience - I'll make the
routine more robust against unicode and do an update tomorrow.
If you have the time, you could download the zipped package, extract it
to a temp directory and run "python setup.py install" from the package
top directory (as explained in https://github.com/chipmuenk/pyFDA). If
you get the same error as before, you could try to open "version.py" and
save it in plain ASCII format. This would help me; for some reason I
don't get the error (and the automatic conda tests didn't complain
either) so I cannot verify if I've really fixed the error. Which OS are
you working on?
Cheers,
Christian
Am 29.10.19 um 06:42 schrieb michelkocher55:

Dear Christian,
Thank’s for your effort, pyfda is now working on my computer and it is
really good !
The only problem I have is that I could install PyQt5 and pyfda on a
terminal but not in a docker I use for my lecture with JupyterLab.
This is the message I get when I try to install pyfda, with 2
different versions :
pip3 install PyQt5
Collecting PyQt5
Downloading
https://files.pythonhosted.org/packages/12/63/a7a32557fdce42b1ddf2353d9e2a576143376046ead0b1918fd4cfe01b90/PyQt5-5.13.1-5.13.1-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl
(62.1MB)
100% |################################| 62.2MB 25kB/s
Collecting PyQt5_sip<13,>=4.19.19 (from PyQt5)
Downloading
https://files.pythonhosted.org/packages/69/d2/92d85b0865fe68755488a30eec1c2b1b14da6c96c74441dc1c88e0659397/PyQt5_sip-12.7.0-cp36-cp36m-manylinux1_x86_64.whl
(260kB)
100% |################################| 266kB 2.9MB/s
Installing collected packages: PyQt5-sip, PyQt5
Successfully installed PyQt5-5.13.1 PyQt5-sip-12.7.0
pip3 install pyfda
Collecting pyfda
Downloading
https://files.pythonhosted.org/packages/e9/3a/6a77b4a26edd5ed2725ee4213a1e4c1229d454ea02e125220f59cabd2056/pyfda-0.2.tar.gz
(334kB)
100% |################################| 337kB 2.0MB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-79nuxh78/pyfda/setup.py", line 15, in
exec(fp.read(), version_nr)
File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position
130: ordinal not in range(128)
Any idea what to do ?
Best regards and, again, thank’s for your work !
Michel

I think I have found the problem:
https://stackoverflow.com/questions/2276200/changing-default-encoding-of-python
talks about sys.setdefaultencoding() - maybe the default encoding is ASCII in your Docker environment and UTF-8 on your computer. In this case it should help to change setup.py to
enforce utf-8 encoding
with open("pyfda/version.py", encoding='utf-8') as fp:
exec(fp.read(), version_nr)

Dear Christian,
It is better now, you are right, I changed my docker environment to utf-8. I still have a problem during installation because PyQt4 is required. Should I install it ?
Best Regards
Michel Kocher
Prof. Michel Kocher
HEIG-VD, Département TIN
University of Applied Science
Route de Cheseaux 1
1401, Yverdon-les-bains
Tel:+41 24 55 76 411
Email:michel.kocher<EMAIL_ADDRESS>On 29 Oct 2019, at 09:46, Christian Münker <notifications<EMAIL_ADDRESS>wrote:
I think I have found the problem:
https://stackoverflow.com/questions/2276200/changing-default-encoding-of-python
talks about sys.setdefaultencoding() - maybe the default encoding is ASCII in your Docker environment and UTF-8 on your computer. In this case it should help to change setup.py to
enforce utf-8 encoding
with open("pyfda/version.py", encoding='utf-8') as fp:
exec(fp.read(), version_nr)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/chipmuenk/pyfda/issues/154?email_source=notifications&email_token=AH3AYXUCUJ3F7GSLCIRQIXDQQ7Z6DA5CNFSM4I7H2UPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECPWBPQ#issuecomment-547315902, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AH3AYXW6VOWKLR535EMY6TLQQ7Z6DANCNFSM4I7H2UPA.

If anyone else runs into this chain of problems: PyQt5 needs to be installed manually before trying to install pyfda. See README file for details.


Telemtry notice is displayed even when building with disableMetrics

Even when calling ./bootstrap-vcpkg.sh -disableMetrics, the bootstrap script prints the notification about telemetry data and that you can deactivate it by using -disableMetrics. That is a bit confusing, because at first I thought I misspelled the option or that the switch wouldn't actually do anything (didn't dive into the sources, but it does get passed to cmake, so I guess it is fine).

Telemetry
vcpkg collects usage data in order to help us improve your experience. The data collected by Microsoft is anonymous. You can opt-out of telemetry by re-running bootstrap-vcpkg.sh with -disableMetrics
Read more about vcpkg telemetry at docs/about/privacy.md

I think that banner should be supressed when -disableMetrics flag is used.
Btw.: Same behavior on windows with bootstrap-vcpkg.bat

This particular feature badly undermines the trust in this otherwise great tool.
It gives the impression that either the argument doesn't have any effect, or that the user has accidentally somehow managed to failed to type the parameter name (even when copy-pasting) correctly, because it doesn't seem to have any effect.
I had to actually read through the bootstrap script to be sure that it really is disabling telemetry when `-disableMetrics' is specified, as my initial assumption was that there was a bug in there.
Please do suppress the banner when -disableMetrics is used, and output "Telemetry data collection disabled." or something instead.

Thanks

That was fast. Thanks!


Abrupt random crash when using --impersonate

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

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

Region
Uzbekistan
Provide a description that is worded well enough to be understood
I think yt-dlp crashes abruptly (no error, the process just exists during a video download) when I use --impersonate Chrome-110:Windows-10 maybe along with some other options causing this.
I tried to craft a minimal reproductible command, and ended up with this:
yt-dlp.exe -vU --format "mp4" --format-sort "res:360" --cookies-from-browser firefox --impersonate Chrome-110:Windows-10 -- "https://www.youtube.com/@thisishorosho/videos"
The crash also happens with https://www.youtube.com/@lyrica-live/videos channel for example (not at the very first video) for me.
I saw this on at least two machines, both Windows10.
Each crash creates a yt-dlp.exe.PID.dmp minidump file in AppData\Local\CrashDumps
I can upload one if it is needed.
In the logs below, I show a batch file with the command, and its complete output. It is obvious that yt-dlp had cashed in the middle of the very first download, despite it was up to downloading a thousand of videos!
Even if this is related to an "ongoing YouTube block in Russia", the crash itself is very strange. I started using --impersonate because I feel this way yt-dlp downloads faster than normally (for me it often stuck at ≈43 KiB/s otherwise).
Can anybody confirm the crash with my batch file? I'm afraid it might be related to download speed / throttle pattern specific to Uzbekistan, which makes is harder to reproduce. It really happens randomly during the download.
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[ ] If using API, add 'verbose': True to YoutubeDL params instead
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
echo on
yt-dlp.exe -vU --format "mp4" --format-sort "res:360" --impersonate Chrome-110:Windows-10 -- "https://www.youtube.com/@thisishorosho/videos"
echo ERRORLEVEL=%errorlevel%
pause

↓

D:\test>echo on

D:\test>yt-dlp.exe -vU --format "mp4" --format-sort "res:360" --impersonate Chrome-110:Windows-10 -- "https://www.youtube.com/@thisishorosho/videos"
[debug] Command-line config: ['-vU', '--format', 'mp4', '--format-sort', 'res:360', '--impersonate', 'Chrome-110:Windows-10', '--', 'https://www.youtube.com/@thisishorosho/videos']
[debug] Encodings: locale cp1251, fs utf-8, pref cp1251, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version<EMAIL_ADDRESS>from yt-dlp/yt-dlp-nightly-builds [4b69e1b53] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19043-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: ffmpeg N-103655-g1dd3ab4876-20210917 (setts), ffprobe N-103655-g1dd3ab4876-20210917
[debug] Optional libraries: Cryptodome-3.20.0, brotli-1.1.0, certifi-2024.07.04, curl_cffi-0.5.10, mutagen-1.47.0, requests-2.32.3, sqlite3-3.35.5, urllib3-2.2.2, websockets-12.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets, curl_cffi
[debug] Loaded 1829 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-nightly-builds/releases/latest
Latest version<EMAIL_ADDRESS>from yt-dlp/yt-dlp-nightly-builds
yt-dlp is up to date<EMAIL_ADDRESS>from yt-dlp/yt-dlp-nightly-builds)
[youtube:tab] Extracting URL: https://www.youtube.com/@thisishorosho/videos
[youtube:tab] @thisishorosho/videos: Downloading webpage
[debug] [youtube:tab] Selected tab: 'videos' (videos), Requested tab: 'videos'
[download] Downloading playlist: This is Хорошо - Videos
[youtube:tab] UCPT9_sNLoBLjH1uea7zpVIA page 1: Downloading API JSON
[youtube:tab] UCPT9_sNLoBLjH1uea7zpVIA page 2: Downloading API JSON
[youtube:tab] UCPT9_sNLoBLjH1uea7zpVIA page 3: Downloading API JSON
[youtube:tab] UCPT9_sNLoBLjH1uea7zpVIA page 4: Downloading API JSON
[youtube:tab] UCPT9_sNLoBLjH1uea7zpVIA page 5: Downloading API JSON
[youtube:tab] UCPT9_sNLoBLjH1uea7zpVIA page 6: Downloading API JSON
[youtube:tab] UCPT9_sNLoBLjH1uea7zpVIA page 7: Downloading API JSON
[youtube:tab] UCPT9_sNLoBLjH1uea7zpVIA page 8: Downloading API JSON
[youtube:tab] UCPT9_sNLoBLjH1uea7zpVIA page 9: Downloading API JSON
[youtube:tab] UCPT9_sNLoBLjH1uea7zpVIA page 10: Downloading API JSON
[youtube:tab] UCPT9_sNLoBLjH1uea7zpVIA page 11: Downloading API JSON
[youtube:tab] UCPT9_sNLoBLjH1uea7zpVIA page 12: Downloading API JSON
[youtube:tab] UCPT9_sNLoBLjH1uea7zpVIA page 13: Downloading API JSON
[youtube:tab] UCPT9_sNLoBLjH1uea7zpVIA page 14: Downloading API JSON
[youtube:tab] UCPT9_sNLoBLjH1uea7zpVIA page 15: Downloading API JSON
[youtube:tab] UCPT9_sNLoBLjH1uea7zpVIA page 16: Downloading API JSON
[youtube:tab] UCPT9_sNLoBLjH1uea7zpVIA page 17: Downloading API JSON
[youtube:tab] UCPT9_sNLoBLjH1uea7zpVIA page 18: Downloading API JSON
[youtube:tab] UCPT9_sNLoBLjH1uea7zpVIA page 19: Downloading API JSON
[youtube:tab] UCPT9_sNLoBLjH1uea7zpVIA page 20: Downloading API JSON
[youtube:tab] UCPT9_sNLoBLjH1uea7zpVIA page 21: Downloading API JSON
[youtube:tab] UCPT9_sNLoBLjH1uea7zpVIA page 22: Downloading API JSON
[youtube:tab] UCPT9_sNLoBLjH1uea7zpVIA page 23: Downloading API JSON
[youtube:tab] UCPT9_sNLoBLjH1uea7zpVIA page 24: Downloading API JSON
[youtube:tab] UCPT9_sNLoBLjH1uea7zpVIA page 25: Downloading API JSON
[youtube:tab] UCPT9_sNLoBLjH1uea7zpVIA page 26: Downloading API JSON
[youtube:tab] UCPT9_sNLoBLjH1uea7zpVIA page 27: Downloading API JSON
[youtube:tab] UCPT9_sNLoBLjH1uea7zpVIA page 28: Downloading API JSON
[youtube:tab] UCPT9_sNLoBLjH1uea7zpVIA page 29: Downloading API JSON
[youtube:tab] UCPT9_sNLoBLjH1uea7zpVIA page 30: Downloading API JSON
[youtube:tab] UCPT9_sNLoBLjH1uea7zpVIA page 31: Downloading API JSON
[youtube:tab] UCPT9_sNLoBLjH1uea7zpVIA page 32: Downloading API JSON
[youtube:tab] UCPT9_sNLoBLjH1uea7zpVIA page 33: Downloading API JSON
[youtube:tab] UCPT9_sNLoBLjH1uea7zpVIA page 34: Downloading API JSON
[youtube:tab] UCPT9_sNLoBLjH1uea7zpVIA page 35: Downloading API JSON
[youtube:tab] UCPT9_sNLoBLjH1uea7zpVIA page 36: Downloading API JSON
[youtube:tab] Playlist This is Хорошо - Videos: Downloading 1096 items of 1096
[download] Downloading item 1 of 1096
[youtube] Extracting URL: https://www.youtube.com/watch?v=LcVux8CuLuE
[youtube] LcVux8CuLuE: Downloading webpage
WARNING: [youtube] Webpage contains broken formats (poToken experiment detected). Ignoring initial player response
[youtube] LcVux8CuLuE: Downloading ios player API JSON
[youtube] LcVux8CuLuE: Downloading player 250a2ff7
[youtube] LcVux8CuLuE: Downloading web player API JSON
[debug] Loading youtube-nsig.250a2ff7 from cache
[debug] [youtube] Decrypted nsig -gpiDHpXVGKhSclQ6AJdY5 => f1FN1_eEwn5ANQ
[debug] Loading youtube-nsig.250a2ff7 from cache
[debug] [youtube] Decrypted nsig 5akAn0hlwapUV9r_rlJbA4 => eV7gpd_5E9YaHA
[youtube] LcVux8CuLuE: Downloading m3u8 information
[debug] Sort order given by user: res:360
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec:vp9.2, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, res:360(360.0), quality, fps, hdr:12(7), source, vcodec:vp9.2(10), channels, acodec, lang, proto, size, br, asr, vext, aext, hasaud, id
[info] LcVux8CuLuE: Downloading 1 format(s): 18
[debug] Invoking http downloader on "https://rr6---sn-01oxu-u5nd.googlevideo.com/videoplayback?expire=1722449929&ei=qSuqZoeZHLC5v_IPlY_suA8&ip=<IP_ADDRESS>&id=o-AHgzNM42HtHxv5dqD0wLhQf5rqoyAMR3Tgg1OZJO7qss&itag=18&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&mh=jk&mm=31%2C29&mn=sn-01oxu-u5nd%2Csn-n8v7znsk&ms=au%2Crdu&mv=m&mvi=6&pl=22&initcwndbps=1107500&bui=AXc671LiNoGAF5ajUlTsrqPujazda9HQUP5sK-M3Ex9hpOAJFoUepB0burk9YwlM4_QP6ZIhDNSNIgxo&spc=NO7bAZIk5Z2z-QnUQNyn73b9PCee2ZgW6H7g883uxh7HLpAHcIjWYI3LZgJOiv4&vprv=1&svpuc=1&mime=video%2Fmp4&ns=nE7CD0VtV3ONjlJwq1KtMssQ&rqh=1&gir=yes&clen=77370720&ratebypass=yes&dur=936.019&lmt=1721917275950254&mt=1722427783&fvip=7&c=WEB&sefc=1&txp=5538434&n=f1FN1_eEwn5ANQ&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Crqh%2Cgir%2Cclen%2Cratebypass%2Cdur%2Clmt&sig=AJfQdSswRQIgZ5NlujvH4RikgkWDSc4jP-UidEWvi4T9tKhBhmxW90kCIQDxu986UGmFlvF0zHwxjl9FQaim0H1rkxfMlQVfsPFujA%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AGtxev0wRgIhAIH11WH5SeYgxFfuxy_iKxhZEVU5Rkq6ujw5sT9HsPpoAiEA_wa51mdmsh6qdoSPdx5T4TBYwd9beDbVMOFvhAcjUHo%3D"
[debug] File locking is not supported. Proceeding without locking
[download] Destination: ПОЧЕМУ ПСИХОЛОГИ РЕКОМЕНДУЮТ D&D？ ｜  Скандал с Nestle ｜ Препарат по продлению жизни [LcVux8CuLuE].mp4
[download]  36.6% of   73.79MiB at    4.99MiB/s ETA 00:09
D:\test>echo ERRORLEVEL=-1073740940
ERRORLEVEL=-1073740940

D:\test>pause
Для продолжения нажмите любую клавишу . . .

This is a known problem with curl_cffi. Using --impersonate for regular usage is not recommended as it will force all traffic through curl_cffi. From the readme:

Note that forcing impersonation for all requests may have a detrimental impact on download speed and stability

yt-dlp will automatically use curl_cffi when required. There is no use in forcing it.


Deleting a user does not remove their ownership from package registrations without packages

When deleting a package, if you choose to hard-delete the package, you are given an option to either remove the registration (if the registration has no other versions) or leave it.

If you leave the registration and then delete the user, the user will still own the registration, even though the user has IsDeleted true.

Data was cleaned.


Fix DeployAccount Example using RPCv2 instead of gateway

https://github.com/NethermindEth/starknet.go/tree/CreateDeployAcntExample

Depends on : https://github.com/NethermindEth/starknet.go/issues/254


Proposal:  #[serde(base = "other_entity.aggregate.count")]

Give a json:
{
  "id": 123,
  "other_entity": {
    "aggregate": {
       "count": 456
    }
  }
}

I want to deserialize to :
#[derive(Deserialize)
struct Entity {
  id: usize,
  #[serde(base = "other_entity.aggregate.count")]
  other_count: usize,
}

I know flatten can help, but a inline declaration is prefered.

I think I would prefer not to build something for this into serde_derive. But it would be reasonable for someone else to make a different crate to make deserializing this kind of data easier.

The serde_query crate does what is required

https://github.com/pandaman64/serde-query/issues/6#issuecomment-1448268869
It seems that serde_query is not actively maintaining, and I hoped serde_query's features are integrated into serde_derive.
I know your opinion now, and appreciate the reply.


SSL Compatability?

Through development while adding Bük to our authentication portal (iFrame), it appears some web browsers (chrome in this case) panic when trying to insert non-SSL content into an SSL protected page. Is there some way to SSL-enable the wiki?

Just a quick bump - any ideas?

Whoops my bad! Got caught up and skipped this one...
Truth is, I don't think there is a way to "SSL-enable" Bük. Since the outputted files can basically be self-hosted on your own server (from within the dist folder), you should be able to distribute them in https.
There are resources on stackoverflow as of how to do this, for example : https://stackoverflow.com/questions/18327314/how-to-allow-http-content-within-an-iframe-on-a-https-site

Thanks for the reply and link! I will see what we can figure out - I've already requested getting some more details, so I'll see if I can narrow it down. I will keep the thread updated just in case!

Closing this - turns out it wasn't an issue with Bük, and was more of a problem with the software we were using. Thanks for the help!


-Zmiri-tag-raw-pointers causes a simple copy_nonoverlapping to fail

I was trying out -Zmiri-strict-provenance on my library https://github.com/AaronKutch/awint and it lead to tests failing. I looked at the other things strict provenance turns on, and the problems start with -Zmiri-tag-raw-pointers. I think I have minimized it to:
fn main() {
    let mut x: [u64; 4] = [0, 1, 2, 3];
    unsafe {
        ptr::copy_nonoverlapping(x.as_ptr(), x.as_mut_ptr().add(2), 2);
    }
    assert_eq!(x, [0, 1, 0, 1]);
}

which fails with
error: Undefined Behavior: attempting a read access using <1670> at alloc776[0x0], but that tag does not exist in the borrow stack for this location
    --> C:\Users\aaron\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\intrinsics.rs:2103:14
     |
2103 |     unsafe { copy_nonoverlapping(src, dst, count) }
     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     |              |
     |              attempting a read access using <1670> at alloc776[0x0], but that tag does not exist in the borrow stack for this location
     |              this error occurs as part of an access at alloc776[0x0..0x10]
     |
     = help: this indicates a potential bug in the program: it performed an invalid operation, but the rules it violated are still experimental
     = help: see https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md for further information

     = note: inside `std::intrinsics::copy_nonoverlapping::<u64>` at C:\Users\aaron\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\intrinsics.rs:2103:14

Yeah, when you call x.as_mut_ptr() that creates a mutable reference to x and thus invalidates all previously created pointers, including the raw pointer that was returned by x.as_ptr(). So, this is expected.
See https://github.com/rust-lang/unsafe-code-guidelines/issues/133 for the underlying issue. I am going to close the Miri side of this.
The fix is to not use any references when you do raw ptr shenanigans:
let mut x: [u64; 4] = [0, 1, 2, 3];
let ptr = x.as_mut_ptr();
ptr::copy_nonoverlapping(ptr, ptr.add(2), 2);

Interestingly the following works, too
fn main() {
    let mut x: [u64; 4] = [0, 1, 2, 3];
    unsafe {
        let dest = x.as_mut_ptr().add(2);
        std::ptr::copy_nonoverlapping(x.as_ptr(), dest, 2);
    }
    assert_eq!(x, [0, 1, 0, 1]);
}

Ok, kind of makes sense


Problem with init

All init methods call [super initWithCollectionViewLayout:...]
This is a big problem. When the view is loaded from Storyboard, "initWithCoder" is called and must call "[super initWithCoder]". The way it is done now, the view controller loses necessary information to build the layout.

It should be an easy fix then, all you have to do after the super initWithCoder is to instantiate the custom layout and then call the simpleCalendarCommonInit method. Would you like to submit a PR?


Saga 7249

Changes proposed here are meant to enable development on this valqueries pr. We're mainly looking for a way to run SchemaBuilder.build() on a different datasource than the one injected in it's SchemaExecutor.
This is part of SAGA-7249

Missing tests, otherwise looks good +1

Not much room for meaningful tests, but I added one


Hosting Client ID Document on Solid Storage

Ac currently defined Client ID Document MUST use normative JSON-LD @context, so it has to be compacted with it. Solid Storage doesn't guarantee that compaction is being preserved for RDF-Sources.
We need to double-check if Solid Storage could guarantee that. At the same time, we should gather feedback from existing implementation on how important that feature is for them. Most (all?) plain OIDC implementation doesn't support client registrations published externally as a resource on the web. Fetching them needs to be implemented as a custom future, possibly this extra functionality could take care of parsing RDF and compacting it with provided JSON-LD @context. Personally, I find it more practical to let consumers take care of compacting with a @context they rely on.

There is a relevant conversation in https://github.com/solid/notifications/issues/105
I would also like to reference example of Metadata with RP's Entity Configuration from OpenID Connect Federation 1.0 - draft 22
{
      "iss": "https://openid.sunet.se",
      "sub": "https://openid.sunet.se",
      "iat":<PHONE_NUMBER>,
      "exp":<PHONE_NUMBER>,
      "metadata": {
        "openid_relying_party": {
          "application_type": "web",
          "redirect_uris": [
            "https://openid.sunet.se/rp/callback"
          ],
          "organization_name": "SUNET",
          "logo_uri": "https://www.sunet.se/sunet/images/32x32.png",
          "grant_types": [
            "authorization_code",
            "implicit"
          ],
          "signed_jwks_uri": "https://openid.sunet.se/rp/jwks.jose"
        }
      },
      "jwks": {
        "keys": [
          {
            "alg": "RS256",
            "e": "AQAB",
            "key_ops": [
              "verify"
            ],
            "kid": "key1",
            "kty": "RSA",
            "n": "pnXBOusEANuug6ewezb9J_...",
            "use": "sig"
          }
        ]
      },
      "authority_hints": [
        "https://edugain.org/federation"
      ]
    }

Which is also referenced from Self-Issued OpenID Provider v2: 6.  Discovery and Registration
If we would want to use something directly from OIDC pool of specifications, we should probably use this format.
Given that we already diverge from the existing spec, and existing OP implementations need to be extended to support Solid-OIDC Client ID Document. I think we should reconsider removing requirements which are not guaranteed for a RDF Source hosted in Solid Storage.

@dteleguin I recall that you might have been implementing Solid-OIDC in Keycloak, if that's the case your implementation experience with handling Client ID documents would be very helpful, especially if handing them as RDF would make a significant impact on implementation. For example, getting JSON-LD without any specific @context or structure and for example, simply compacting it with the @context currently provided by the spec on the consumer side. /cc @justinwb

It seems that CSS already supports Client IDs as plain RDF Sources https://github.com/CommunitySolidServer/CommunitySolidServer/blob/d2908480960b9708460ad71c010ea11e86497968/src/identity/storage/WebIdAdapterFactory.ts#L72
I asked for confirmation, but my current take is that this would not impact CSS OIDC Provider implementation at all.

Thinking about #199, I'd like to consider another option, related to #26
If we define solid claim, we could use it in the following way:
"solid": {
  "user": "https://alice.example/"
  "application": "https://projectron.example"
}

Where we provide the WebID of the end-user and the WebID of the application. This way client_id would be an IRI resolving to entity-statement+jwt and wouldn't be used to identify the application outside of the OIDC flow.
We still would need to define how the application includes its WebID in its Entity Statement.


Always use virtMeta.json for proxy URLs

The URLs are provided by virt-operator via virtMeta.json file, so the proxified URLs shouldn't be hard coded in the UI. This pull request makes the proxy always use virtMeta values.
It also enabled debug mode for the proxy if DEBUG environment variable is set to *, i.e. enables debug for proxy at the same time as Node.
It also sets the secure attribute to true for clusterApi, as the CA certificate is configured at Node level. Not sure it will works.

Closing: (bad) duplicate of https://github.com/konveyor/virt-ui/pull/230.


SQLEXEC can have zero arguments

The second DIM statement should probably not be flagged as a warning, the reason appears to be the SQLEXEC with no parameter (which is valid):
rem regular DIM works:
dim somestring$:"C(10*)"

rem but dim in SQL is flagged:
sqlopen (1)"ChileCompany"
sqlprep (1)"GET TABLE INFO FOR CUSTOMER"
sqlexec (1)
dim x$:sqltmpl(1)
x$=sqlfetch(1)
tpl$ = x.template$
f$=x.filename$

This one is tricky. I have a solution in mind, but that one is quite complex when you want to implement it. I asked Mark from my team. Maybe he has a better idea.

Done.


Do not run a task from an include build more than once

Currently it is possible for Gradle to run a given task more than once, when an included build is used to build some element of a build script classpath and later also used to build some production dependencies as well.
Instead, Gradle should run a given task no more than once, from any build in a composite (including buildSrc). This is to avoid the performance cost associated with doing this unnecessary work, the confusion that arises from this behaviour, and the complexity of accounting for the duplicated work in metrics and performance reports.
Expected Behavior
Gradle should run a given task no more than once. Currently Gradle does this for backwards compatibility reasons, so that the contracts of certain hooks such as taskGraphReady() are not broken. We should replace these hooks with alternatives whose contracts allow tasks to be added to the task graph for a particular build after some tasks have started executing for that build.
Gradle should also load, configure and tear down a build no more than once.

Fixed via https://github.com/gradle/gradle/pull/6793


DCOS-22126: Don't validate forms until submit

Background
Form controllers that are affected by this change are FramworkConfiguration and CreateServiceModal. They now need to trigger validation after submitting and not at all times.
Unfortunately, these two forms have different lifecycles with respect to real time validation:

[x] CreateServiceModal performs validation during the render phase with calls to getAllErrors that validate the serviceSpec state. This same method is used to short-circuit the button handler.

[x] FrameworkConfiguration uses a standard react-jsonschema-form and depends on liveValidation={true}. The existence of form errors that are derived whenever the form changes (when live validation is on) determines whether the Review & Run button is enabled.  This form is not wired up for submission and therefore react-jsonschema-form does not ever validate when liveValidation is turned off. The approach allows the modal's owned Review & Run button to trigger the form submit externally, as illustrated here https://jsfiddle.net/spacebaboon/g5a1re63/

Testing
CreateServiceModal:

Create a single container service
clear Service ID
observe no validation errors
click Review & Run
observe validation errors

FrameworkConfiguration:

Create a cassandra service
clear name
observe no validation errors
click Review & Run
observe validation errors

Trade-offs
This change introduces some damage and workarounds in FrameworkConfigurationForm due to the limitations of react-jsonschema-form
Observations

On FrameworkConfiguration, the JSONEditor does not display errors until Review & Run is clicked. This is probably not desirable.

On CreateServiceModal, we don't currently display the number of form validation issues as a badge next to each tab.

Dependencies
None

For me cassandra still displays error as soon as the name is deleted.

@GeorgiSTodorov that worries me that I did not find all the forms... That was not my experience when installing from the catalog. Were you editing the config in some other way?

@brandonc, no.

Feedback addressed-- @GeorgiSTodorov sorry I can't seem to find the issue can we do a zoom tomorrow after sync?

@brandonc We have another meeting after sync today. If it works for everyone else then it might be a problem on my end, so no worries.

@brandonc Nice work! Looks good on my end.

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


Unable to import large openAPI spec

Insomnia Version: latest
Operating System: Mac OS X

Details
I'm just giving your product a whirl, and I'm unable to import a large open-api spec. Specifically, I'm trying to import Stripe's Open API spec:
https://github.com/stripe/openapi/blob/master/openapi/spec3.json.
Another example
From #5591: https://stoplight.io/api/v1/projects/shopware/admin-api/nodes/adminapi.json
The electron app hangs for a bit and a mac notification pops up with a "Insomnia is unresponsive" message.
Hoping a solution can be found.

Thanks for linking the spec here @ttmarek! I'll make sure this gets looked at

@gschier don't you think that the performance bottleneck is in the way json is parsed

am currently trying all options I have in my arsenal to get this done and closed

the issue comes from const resources = await importer.convert(contents); it returns a null value

I need to import the same specs (Stripe's Open API specs) into Insomnia and it's still failing on latest v2021.1.1 (Windows) with message "Insomnia has become unresponsive. Do you want to reload?".
Bug 1: Clicking on reload just restarts the process it seems, as I get the error message again.
Bug 2: Clicking on cancel does nothing. Application hangs, while the loading indicator in the top nav still rolls.
Those two import methods generates the same behavior described above:
From Settings > Data > Import data > From File
From Settings > Data > Import data > From URL
Any quick hack I can do from my side until this is actually fixed from your side @gschier ?

Hi @ftrudeau-pelcro, unfortunately we haven't been able to look at this yet, but luckily there does exist a workaround!
The importing logic within insomnia is actually exposed via NPM and can be run from the CLI - see insomnia-importers.
If you convert the spec to an insomnia workspace using that package, you can then just import the workspace directly into Insomnia, which in theory should be more efficient.
Let me know how you get on!

Still an issue. After trying the method that @dimitropoulos described above I was still experiencing hangs and slowdowns and couldn't actually get to the point of making any calls.

Sorry folks! This was incorrectly tagged as a feature request along with other bugs. I'm going back through and cleaning up, sorry for the inconvenience.

Having this issue as well.

I'm experiencing this same hanging issue on a large schema import. Proprietary so I can't link here.

When this does happen, how can I purge the problematic schema? Killing and reopening the app ends up in the same unresponsive state.

@aquillano Try uninstalling, removing Insomnia's data and reinstalling. I can't recall where Insomnia saves its stuff, but a system search for "insomnia" should get you there.

Anything on this? Been 4+ years


Deposit Button not clickable?

Ehm it works for me tho.

Mozilla problem
tested in chrome and get me to : http://www.csgolowbet.com/href
will fix it in a second, but still mozilla dont show anything

Sounds like you have blocked the sweetalert javascript and css it uses to save the trade offer url...
Way to fix this is to host that javascript and css local on your hosting.
Try the site in incognito mode with all extensions disabled first if that works ok do that i say above.

https://gyazo.com/536db65821a5f9c45259fa5e0e742066  sweertalet is fine for me

a friend of me also got that problem with mozilla, i didnt checked it out now, i got chrome, its working fine.

yap same problem for some guys dont work


Docker URL

Question
If i use docker to deploy Leon it try to connect to localhost:1337.
Is it possible to give leon the correct URL and port?

Hello @gruessung,
Thanks for opening this issue. During the installation process, Leon will duplicate the .env.sample file to a .env file.
As you can see in those files, you have several environment variables already setup such as:
# Server
LEON_SERVER_HOST=localhost
LEON_SERVER_PORT=1337

# Web app
LEON_WEBAPP_HOST=localhost
LEON_WEBAPP_PORT=4242

Try to edit the:

.env.sample file
docker:run script in the package.json file by replacing 1337:1337 to your new LEON_SERVER_PORT

Then execute docker:build and docker:run.
Let me know if that worked or not.

I close this issue as the answer has been provided.


First release for X-NUCLEO-IKS02A1-Audio

OK for me. I've fix a small typo in the README.md so created a second commit. Think to squash and merge instead of Merge pull request.


Is it possible to auto hide the scrollbar when no mouse action?

Currently the scrollbar will be hide when the mouse move out the scrollbar container, is it possible to auto hide the scrollbar when no mouse action such as in 5 seconds?
Make sure these boxes are checked before submitting your issue -- thank you!

[x] Check FAQ and Caveats
[x] Search if there's already one reported in Issues
[ ] Prepare a JSFiddle reproducing the issue

perfect-scrollbar JSFiddle

[ ] Provide a page or source code where the issue can be checked

A very good question.
another question - is it possible to not hide it, but make always visible?

@seyfer If you wanted to force the scrollbar to always be visible you can do that by overriding the class, e.g. for the vertical scrollbar:
.ps__rail-y {
    display: block !important;
    opacity: 0.6 !important;
}

You could do the same for the horizontal scrollbar too using the .ps__rail-x class


Add cors middleware

Closes #12

It works! ALSO, maybe we should find a way to not need to set response headers in every single handler, seems like that's the goal of using middle-wares, so maybe there's something missing

Yeah. Added.

It works perfectly! The we can remove the line adding header in each handler as it's useless now! But perfect ;)

I did it in a new commit. Also included the 'content-type' header in the same middleware, as we alsways use it. Let me know what you think ;)

Yeah cool, was gonna suggest it but didn't know if you had other content plans :)


mpd: bumped to 0.22.6

Existing package

[x] I am the maintainer of this package.


add git tips

a few tips on using git. that will give us nicer git history :)

I believe a little guidance on git can be useful here.
However, I am wondering if this is actually a good idea to have "so much" about git in there. Maybe we should only have a couple one-liners about fetch dev and rebase and not try to replicate possible other thorough git guidance/howtos?

I don't think it's useful to add too basic information about git because this is already known by most and easy to find out
the other stuff isn't that easy to find, although when put together it's not all that complicated

i'd be glad to just point to an article that explains just that if it exists  but i've learnt that after reading a pretty long article.


feat: discord's updated ban endpoint

What type of pull request is this?

[ ] Non-breaking code change
[x] Breaking code change
[ ] Documentation change/addition
[ ] Tests change

Description

Discord updated their ban endpoint to be paginator for who knows what so the endpoint has been updated.
Changes

Updated fetch_bans
Updated HTTP get_guild_bans

Notes
If someone wants to add the async iterator go ahead :)
Going to count this as breaking because that is what Discord said.
Checklist

[x] I've formatted my code with Black
[x] I've ensured my code works on Python 3.10.x
[x] I've tested my code

What breaking change did discord mention?

Look at API announcements channel on the developer server


usage unclear

hey, I think it's really unclear how to use this, is anybody able to post an example or explain how to use this?

got it, it's acually prety simple, here's  some sample code:
`var mainCtrl = app.controller('MainCtrl', function($scope, $ionicPlatform)
{
var Datagram; var socket ;
$ionicPlatform.ready(function()
{
Datagram = cordova.require("cordova-plugin-dgram.dgram");
socket = Datagram.createSocket('udp4', 25000);
})
$scope.BroadcastMessage = function(text)
{
socket.send(text, '<IP_ADDRESS>', 25000);
}
})`


Dropdown: Dynamic items not updating as expected

Info
Issue reported by Sven Luedemann
If you implement the below code:
import { GoADropdown, GoADropdownItem, GoAFormItem } from "@abgov/react-components";
import { useState } from "react";

export function DropdownRoute() {
  const parents = ["One", "Two", "Three"];
  const childrenOne = ["Alpha", "Beta"];
  const childrenTwo = ["Alpha", "Beta", "Gamma"];
  const childrenThree = ["Alpha", "Gamma"];
  const [children, setChildren] = useState<string[]>([]);

  const loadSchemas = (name: string, values: string[] | string) => {
    if (typeof values === "string") {
      if (values === "One") setChildren(childrenOne);
      else if (values === "Two") setChildren(childrenTwo);
      else setChildren(childrenThree);
    }
  };

  const log = () => {
    console.log("Children Changed");
  };

  return (
    <main>
      <GoAFormItem label="Parent" requirement="optional">
        <GoADropdown name="parent" placeholder="Select a value" onChange={loadSchemas}>
          {parents.map((parent) => (
            <GoADropdownItem key={parent} value={parent} label={parent} />
          ))}
        </GoADropdown>
      </GoAFormItem>
      <GoAFormItem label="Children" requirement="optional">
        <GoADropdown name="children" placeholder="Select a value" onChange={log}>
          {" "}
          {children.map((child, index) => (
            <GoADropdownItem
              key={child}
              value={child}
              label={child}
              mountType={index === 0 ? "reset" : "append"}
            />
          ))}
        </GoADropdown>
      </GoAFormItem>
    </main>
  );
}

And then test it by selecting different items in the parent dropdown, the child dropdown should show the items in the different arrays. Instead what happens is the data gets confused by what should be shown, and starts duplicating items. If you make a minor change:
const childrenOne = ["Alpha", "Beta"];
const childrenTwo = [
  "Something Completely Different",
  "Something Completely Different 2",
  "Something Completely Different 3",
];
const childrenThree = ["Not the Same", "Not the Same 2"];

And just change all of the data to be very very different, it works as expected. In addition, if you implement the code in the following way instead:
import { GoAFormItem } from "@abgov/react-components";
import { useState } from "react";

export function DropdownRoute() {
  const parents = ["One", "Two", "Three"];
  const childrenOne = ["Alpha", "Beta"];
  const childrenTwo = ["Alpha", "Beta", "Gamma"];
  const childrenThree = ["Alpha", "Gamma"];
  const [children, setChildren] = useState<string[]>(childrenOne);

  const loadSchemas = (parent: string) => {
    if (parent === "One") setChildren(childrenOne);
    else if (parent === "Two") setChildren(childrenTwo);
    else setChildren(childrenThree);
  };

  return (
    <main>
      <GoAFormItem label="Parent" requirement="optional">
        <select name="parent" onChange={(e) => loadSchemas(e.target.value)}>
          {parents.map((parent) => (
            <option key={parent} value={parent}>
              {parent}
            </option>
          ))}
        </select>
      </GoAFormItem>
      <GoAFormItem label="Children" requirement="optional">
        <select name="children">
          {children.map((child) => (
            <option key={child} value={child}>
              {child}
            </option>
          ))}
        </select>
      </GoAFormItem>
    </main>
  );
}

By changing our component out for a basic HTML select element, it also works as expected. This also isn't a React only issue and can be replicated in Angular as well with the following code:
<div [formGroup]="changeForm">
  <goa-form-item label="Parent" requirement="optional">
    <goa-dropdown goaValue formControlName="parentDropdown" placeholder="Select a value">
      <goa-dropdown-item *ngFor="let parent of parents" [value]="parent" [label]="parent" />
    </goa-dropdown>
  </goa-form-item>
  <goa-form-item label="Children" requirement="optional">
    <goa-dropdown name="children" placeholder="Select a value">
      <goa-dropdown-item
        *ngFor="let child of children; index as i"
        [value]="child"
        [label]="child"
        [mount]="i === 0 ? 'reset' : 'append'"
      />
    </goa-dropdown>
  </goa-form-item>
</div>

import { Component } from '@angular/core';
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';

@Component({
  selector: 'abgov-dropdown',
  templateUrl: './dropdown.component.html',
  styleUrls: ['./dropdown.component.css'],
})

export class DropdownComponent {
  changeForm = new FormGroup({
    parentDropdown: new FormControl(''),
    childDropdown: new FormControl('')
  });
  parents = ["One", "Two", "Three"];
  children = [""];

  childrenOne = ["Alpha", "Beta"];
  childrenTwo = ["Alpha", "Beta", "Gamma"];
  childrenThree = ["Alpha", "Gamma"];

  ngOnInit() {
    this.onChange();
  }

  onChange() {
    this.changeForm.get("parentDropdown")?.valueChanges.subscribe(
      value => {
        if (value === "One") this.children = this.childrenOne
        else if (value === "Two") this.children = this.childrenTwo
        else this.children = this.childrenThree
      }
    );
  }
}

Acceptance Criteria:

Dynamically changing similar data should change the data accurately

No code change is required. Just need to add an example for the docs site.


Add macros to assembly.

Fixes https://github.com/powdr-org/powdr/issues/309

I'll rewrite this using some more visitors, but shouldn't take long.

Rebased


Update readme

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Moving this into https://github.com/awslabs/aws-sdk-rust/pull/321


[plearn] Add plearn strategy

Changes proposed in this pull request:

Add a voting strategy for the Plearn project, which calculates voting power based on holdings of the project(pools, token).

@jeeraponnnnnnnn could you resolve conflicts please :)


Update images version and support for cert-manager

Updated docker images for nexus-server and nexus-backup.
Added support for cert-manager instead of kube-lego.

Thanks a lot @TAvardit ! 👏


Getting the balance of an address is incorrect

0x0000000000000000000000000000000000000100 ERC20 balance is zero, but the balance of address > 0

Hello @xyz36018937,
Visit our dedicated 24/7 support page to initiate a chat with an agent to rectify this error via Help center.
Regards


 Simple) verb implementations.

I approve of this message.


vite-kirby-plugin enhancements

Hi @arnoson, I'm back with some improvement ideas :)
Issues

The current vite.config file generates with an '' path separator which I found that on some of my projects, it has to be '/' in order to find the right directory path
Let's say you modify the vite.config file to your needs but every time you run vite the config file overrides itself

Fixes

By using sep from the path module, the script will automatically use the appropriate separator for the operating system. This ensures that the outDir path will be formatted correctly for the current OS
I added a try-catch block around the access function to check the vite.config file already exists. If the file exists, it will skip the automatic override. This way, if you manually edit the file, the script won't override the changes.

Let me know your thoughts on these changes :)

Hi @bogdancondorachi, thanks for the PR and fixing directory seperators, I have to admit I never tested them on windows...
The PR looks good but I'm not sure about issue 2. For me the vite.config.js is the only source of truth and all config should happen there. The generated vite.config.php just shares this config with PHP, so it should be always overwritten to be in sync. Maybe a header comment could be added to vite.config.php to make this more clear, like // this is an auto-generated file, please make all configuration in your vite.config.js. Is there any scenario where would need diverging config files?

Yeah, tbh I didn't have the issue on Windows with this path as it was the correct one for the OS, just on a client Linux server where it had to be '/' on Unix in order to find the correct path to the outDir.
Regarding the rewriting of the vite.config, you're right, I've also thought of it after the PR that it can cause further inconsistency issues. Certainly, it should contain a commit to specify the purpose of the file. Also, I think it does not make sense to generate unnecessary writes if the file exists and the values are the same.
I've added another commit where we check if the file exists already & has the same contents before attempting to write it, and the specific purpose commit.
Let me know your thoughts and if you need a new cleaner PR :)

Thanks :) Made some minor code changes and had to run the release script again, because the git tag somehow got lost in the PR

LGTM, thank you for pushing this :)


fix(tests): Fixing broken integration tests

:tada: This PR is included in version 6.5.5 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Keybind ⌘F to focus search

⌘F currently just activates the browser's find dialog, which is not very useful.  Instead it should focus iD's search field:

There are cases where searching the page text is useful, such as long tag lists and help text. I think overriding default browser shortcuts should probably be avoided in general, but I would guess Cmd/ctrl-F specifically is used commonly enough for page navigation than changing behavior could frustrate a lot of people.

I think overriding default browser shortcuts should probably be avoided in general, but I would guess Cmd/ctrl-F specifically is used commonly enough for page navigation than changing behavior could frustrate a lot of people.

This is a fair point, and it's good to avoid overriding common browser key shortcuts.  We had some discussion on #4081 about this where I agreed that if we are going to override a common shortcut, it should be only if the user is doing the same kind of thing (copy, paste, save).
Anyway, if people really hate this idea, I'm ok with not doing it.

Personally, I like this idea. Unlike many other Web applications, iD is centered around non-textual content. The browser’s find bar ends up searching for text in iD’s UI, which I think is less intuitive than searching for visible features by name. It’d extremely rare to need to search through help text, but for that the browser still has a Find in Page command in the menu.

Yes, it's useful to have a shortcut for this.  It's not nice to hijack a frequently-used browser shortcut for it.
As an example, many years of Linux command-line use have instilled upon me that control-U deletes text from the start of the line to the cursor.  Imagine my joy that browers on Linux kowtow to Internet Exploder's convention that control-U means view source.  Guess how many times I've tried to delete the entire text from the URL box or the search box (without having to type morse on the mouse) and ended up viewing source.  Guess how often I've cursed that behaviour.
After decades I've still not completely trained myself out of it when using a browser.  Because it works the way I expect not just on the command line but within just about every other app.  The browser is the exception, and it's a pain in the donkey.  As it stands, control-F does the same thing in all apps and all web pages.  Having it behave differently on just one web page in one app (a browser) is not something I'd advocte.  If it were an obscure browser shortcut that almost nobody ever uses, then maybe.

I agree that it’s poor form to hijack a browser shortcut for altogether different functionality. As a Firefox user, it certainly bothers me whenever a webpage assumes I’m using Chrome and overrides ⌘K to insert a link instead of focusing the search bar. But this isn’t about hijacking a browser function, it’s about giving ⌘F (Ctrl+F) something meaningful to find.
When the user presses ⌘F, their intent is to find content in the current document. In this case, the document is the map and its contents are map features. ⌘F currently searches through UI text, which isn’t what ⌘F normally does in any application. It isn’t uncommon for Web applications, especially word processors, to override this shortcut for a custom find feature, because the browser’s find function doesn’t have enough context to do anything useful.

I agree to override Ctrl-F for a map feature search at least when the map is focused, but it should generate more benefit than just being a replacement for one or two mouse clicks:

When in mode select the user should be able to use the shortcut to search a map feature to be added to the selection. Currently it is impossible to add features to the selection which needs to be searched.
When the map is hoovered while pressing the shortcut, we should prefer nearby features to this position in the search results.

Maybe, Ctrl-F can have a different search behavior when the sidebar is focussed, for example searching a field to be added, or searching in the member list of a relation.

⌘F currently just activates the browser's find dialog, which is not very useful. Instead it should focus iD's search field:

I did this, and it's ok.  It would be much better if we get up/down arrow working on the preset and feature lists (#4324), but this is a good start.


Double inclusion of cost / technology assumption for 'battery (dis-)charger'

Costs and efficiencies for home battery inverters are added here:
https://github.com/PyPSA/pypsa-eur-sec/blob/098281b432c69d51c502a9d515494867059191bf/scripts/prepare_sector_network.py#L734-L752
The technology-data repository based on DEA numbers contains cost and RTE for a bidirectional inverter.
For the RTE this is considered by taking the sqrt (**0.5) on the efficiency.
For the capital_cost it does not seem to be considered, i.e. shouldn't the capital_cost be half (* 0.5)?
(Same applies for grid batteris)

We get around this by having the capital cost only on the charger. There is extra_functionality in solve_network.py which forces the charger and discharger to have the same p_nom_opt. Does that answer your question?

We get around this by having the capital cost only on the charger. There is extra_functionality in solve_network.py which forces the charger and discharger to have the same p_nom_opt. Does that answer your question?

Yes, answers the question. Thanks!

Yes, answers the question. Thanks!


Refactor case parser

Implemented the state design pattern on the case parser. This cleans up some of the logic and will make it easier to extend in the future.
Fixes #70

Thanks @a-ilango  - No, the tests don't need to be updated in this case. Usually when a state design refactoring is done the tests need to be updated because the calling method is different due to the different states that can be invoked, however in this case the parser automatically invokes the state not the user/tests.
Also the observable behavior has not changed only the implementation, and therefore no "new" tests are needed as the pre-existing behavior is already under test.


Is angular2-json-schema-form AOT compatible?

Getting error while implementing i18n and it seems libraries used in the application are not AOT compatible. Please let me know whether  angular2-json-schema-form is AOT compatible?

Yes angular2-json-schema-form is now AOT compatible.
It wasn't compatible when you posted this, but the latest version uses a completely overhauled build process, which should be fully AOT compatible.

is angular4-json-schema-form is upgraded version of angular2-json-schema-form ? and Is angular4-json-schema-form AOT compatible?


[Enhancement] Damage command

Is your feature request related to a problem? Please describe.
Nope
Describe the solution you'd like
So i suggest a new command in plugin that deal damage to target entity without using skill's mechanic like: /class damage <caster(Optional)> <target(Use entity UUID or player's name)>  <ignoreArmor:TRUE/ FALSE> <preventknockback:TRUE/ FALSE> <Classifier(For skill damage)[Optional]> <Damage_cause>
Describe alternatives you've considered
.
Additional context
.

I'm a little confused why this is necessary? If you could give some context, that would be awesome. What exactly are you trying to accomplish?

I'm a little confused why this is necessary? If you could give some context, that would be awesome. What exactly are you trying to accomplish?

Oh my bad, sorry for the lack of information. It's just that I'm trying to deal damage through mobs in MM but with skillapi mechanics. I know that the plugin already provides a command that allows mobs to use skillapi's skills but because MM has quite a lot of mechanics that it has so I can't directly use skillapi's skills. Then I have a suggestion to add a damage command and I also need the Damage Mechanic's Classifier from the skillapi to do some Took Skill Damage Condition related stuff. Sorry I use google translate.

And why can't you use the /class mobcast command?

And why can't you use the /class mobcast command?

Yes I know that, but as mentioned above I already know this command exists and can't use it directly. If there is this command, it will help with something related to quests, events. It will also be very flexible.

Why can't you use it directly? Both solutions involve running a command

Why can't you use it directly? Both solutions involve running a command

Since I use the mechanic from MM and I want to deal damage to the target from the MM, I can't use the target from Skillapi because it's not related. So if there is this command, it will be very convenient.

Are you sure? In what way does it not work? Does it not work on enemy target or on both enemy and ally

Are you sure? In what way does it not work? Does it not work on enemy target or on both enemy and ally

Well, because I use both MM and SkillAPI plugins, but when I use MM's skills, it has a different target than the target from SkillAPI's system. So I wanted a command to deal damage to the MM's target but still use the correct SkillAPI damage mechanics since it has Classifier to do elemental damage, also use the Took Skill Damage Condition function to identify what type of damage was done received from Classifier.

So the targetters work, they are just not in a shape you want? What shape are you trying to pull off exactly, because it should be possible (or at least very similar)

So the targetters work, they are just not in a shape you want? What shape are you trying to pull off exactly, because it should be possible (or at least very similar)

I can make the targeter work by some tricks like summoning mobs to the target and having that mob use mobcast command to deal damage, but the accuracy doesn't seem to be high so if there is such a command then everything is easier and reduce lag caused by too many mobs.
And also because I have to use some conditions from MM to activate the skill (from MM) and choose targets, so choosing the wrong target will not be okay.


Rev 3 of milestones to breakdown of notional goals and deliverables

Follow-on to #72

[x] Revisit user stories and address gaps
[ ] Devise a framework for how we can scope work within the working group
[ ] Revisit personas and abstract out to user behaviors
[x] Identify additional activity to involve members during the first meeting

@edwardbarraza is charting the personnas in airtable.
He's going to meet with the senior designer to discuss the behavior part.

@edwardbarraza is working on the working group meeting organization with activities generally used for workshops (e.g. speak your mind). The idea is to start from the working group inputs.


issue-219: redhat-init: override racy check for process running

the redhat provided status function checks that
the pid in a given pidfile exists. if a process
is killed or crashes without using the service
script, a new process could take the pid, falsely
indicating the process is running. this change
overrides the provided functions in favor of ones
that can also check that the command line in /proc
matches the program name

Hey @nhardt, sorry for the delay. I'm fine with fixing this in principle, but this looks like black magic. Is it based on code from somewhere else? Is it possible to instead call the system-provided status, then just have an additional check that the process running with that pid has the right name?

Mentioning #219 for GitHub to link them.

This is Scale developed black magic. Your solution makes sense, since we are managing several daemons we patched /etc/init.d/functions in our distro. It might be preferable to just convert the whole thing to a systemd init file. I'm ok with not merging this.

Ok, reopen if it's making your life difficult. I agree the right long term thing is probably a systemd file, though I haven't gone through the learning curve on those yet.


documentation: leading 0s

jq and gojq handle leading 0s differently.  Has this been documented?
$ gojq  . <<< 0862
0
862

$ jq  . <<< 0862
jq  . <<< 0862
862
$

This is definitely worth noting because gojq is somewhat inconsistent in its treatment of leading 0s:
$ gojq -n 0862
862

This is considered as the instance of difference on the JSON parser strictness. I don't like the jq behavior handles invalid JSONs.

Is gojq's internal inconsistency noted?

There is no inconsistency because jq query and JSON have different syntax.


FAQ += re: package managers (pragmatic tips, while you're learning ML)

This needs additional revision! But I recently answered this for someone and I wanted to jot something based on that, here. A lot of folks are still unsure which thing they should use, and I've opted to link to other good blog posts, but maybe I can put a paragraph or something, to give a fast answer.
But yeah it needs some revision. (As-is, it might not be worth merging.)

Might incorporate into another branch but it needs further revision anyways...


Update ports for endpoints sample.

Need to switch ports of containers to match other languages.
gcr.io/google-samples/echo-go:1.0 is updated and pushed to listen on 8080.

hopefully the new commit message is accurate


build failure with latest version of flutter

I've just upgraded flutter, and I received the following error
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.
The following dependencies do not satisfy the required version:
project ':search_choices' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50

Can you update the kotlin plugin version from 1.3.50 to 1.5.20?
Thanks

Hello @wutsi , thanks a lot for letting me know.
I will reproduce the issue, update the code for correction, run the automated testing and publish the changes as soon as possible.

Hi again @wutsi ,
I was not able to reproduce this issue yet with the latest version of Flutter.
Here is the output of flutter doctor -v:
[✓] Flutter (Channel stable, 3.3.4, on Ubuntu 22.04.1 LTS 5.15.0-47-generic, locale en_US.UTF-8)
    • Flutter version 3.3.4 on channel stable at /X/flutter/common/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision eb6d86ee27 (2 days ago), 2022-10-04 22:31:45 -0700
    • Engine revision c08d7d5efc
    • Dart version 2.18.2
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /X/Android/Sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: /X/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop
    • clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
    • cmake version 3.10.2
    • ninja version 1.8.2
    • pkg-config version 0.29.1

[✓] Android Studio (version 2021.2)
    • Android Studio at /X/android-studio
    • Flutter plugin version 69.0.2
    • Dart plugin version 212.5744
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] VS Code
    • VS Code at /snap/code/current
    • Flutter extension version 3.44.0

[✓] Connected device (3 available)
    • SM A037F (mobile) • R9ZRC075ZAN • android-arm64  • Android 12 (API 31)
    • Linux (desktop)   • linux       • linux-x64      • Ubuntu 22.04.1 LTS 5.15.0-47-generic
    • Chrome (web)      • chrome      • web-javascript • Google Chrome 105.0.5195.125

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

I updated the kotlin version numbers anyway from 1.3.50 to 1.7.20 with version 2.1.4 of the search_choices plugin. Waiting for the Flutster automated testing to complete successfully before publishing to pub.dev .

Release 2.1.14 of search_choices was successfully automatically tested with this video and thus released to pub.dev . Thanks @wutsi for bringing this issue to my attention!
You can close this issue if you consider everything is fine. Otherwise, I will probably close it myself in a few days.

I start having this issue since I've added flutter_chat_ui into my project. Let me check and re-confirm

confirmed - everything is fined
Thanks

Thank you very much @wutsi for the explanation and confirmation!

I'm having issues building for Android as well after upgrading to the latest flutter stable AND search_choices: ^2.1.4
My flutter doctor output:
[[✓] Flutter (Channel stable, 3.3.4, on macOS 12.6 21G115 darwin-arm, locale en-US)
• Flutter version 3.3.4 on channel stable at /Users/Developer/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision eb6d86ee27 (4 days ago), 2022-10-04 22:31:45 -0700
• Engine revision c08d7d5efc
• Dart version 2.18.2
• DevTools version 2.15.0
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at /Users/Library/Android/sdk
• Platform android-33, build-tools 31.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 14.0)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 14A309
• CocoaPods version 1.11.3
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2021.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
[✓] VS Code (version 1.72.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.50.0
[✓] Connected device (3 available)
• sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64  • Android 12 (API 32) (emulator)
• macOS (desktop)             • macos         • darwin-arm64   • macOS 12.6 21G115 darwin-arm
• Chrome (web)                • chrome        • web-javascript • Google Chrome 105.0.5195.125
[✓] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!
]
My android/build.gradle is:
`buildscript {
ext.kotlin_version = '1.6.20'
repositories {
google()
jcenter()
}
dependencies {
    classpath 'com.android.tools.build:gradle:4.1.3'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    classpath 'com.google.gms:google-services:4.3.5'
}

}
allprojects {
repositories {
google()
jcenter()
}
}
rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}
task clean(type: Delete) {
delete rootProject.buildDir
}`
and my android/app/build.gradle is:
`def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}
def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}
def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
    keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}

compileSdkVersion 33

sourceSets {
    main.java.srcDirs += 'src/main/kotlin'
}

lintOptions {
    disable 'InvalidPackage'
}

defaultConfig {
    // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
    applicationId "redacted.coolapp"
    minSdkVersion 26
    targetSdkVersion 33
    multiDexEnabled true
    versionCode flutterVersionCode.toInteger()
    versionName flutterVersionName
}

signingConfigs {
    release {
        keyAlias keystoreProperties['keyAlias']
        keyPassword keystoreProperties['keyPassword']
        storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
        storePassword keystoreProperties['storePassword']
    }
}

buildTypes {
    release {
        // TODO: Add your own signing config for the release build.
        // Signing with the debug keys for now, so ``flutter` run --release` works.
        signingConfig signingConfigs.release
    }
}

}
flutter {
source '../..'
}
apply plugin: 'com.google.gms.google-services'
dependencies {
implementation platform('com.google.firebase:firebase-bom:26.8.0')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.google.firebase:firebase-analytics'
}`
And the error when building is:
`💪 Building with sound null safety 💪
FAILURE: Build failed with an exception.

What went wrong:
A problem occurred configuring project ':search_choices'.

Could not resolve all artifacts for configuration ':search_choices:classpath'.
Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20.
Required by:
project :search_choices
The consumer was configured to find a runtime of a component compatible with Java 11, packaged as a jar, and its dependencies declared externally. However we cannot choose between the following variants of org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20:
- gradle70JavadocElements
- gradle70RuntimeElements
- gradle70SourcesElements
- gradle71JavadocElements
- gradle71RuntimeElements
- gradle71SourcesElements
- javadocElements
- runtimeElementsWithFixedAttribute
- sourcesElements
All of them match the consumer attributes:
- Variant 'gradle70JavadocElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20 declares a runtime of a component, and its dependencies declared externally:
- Unmatched attributes:
- Provides documentation but the consumer didn't ask for it
- Provides javadocs but the consumer didn't ask for it
- Doesn't say anything about its target Java version (required compatibility with Java 11)
- Doesn't say anything about its elements (required them packaged as a jar)
- Provides attribute 'org.gradle.plugin.api-version' with value '7.0' but the consumer didn't ask for it
- Provides release status but the consumer didn't ask for it
- Variant 'gradle70RuntimeElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20 declares a runtime of a component compatible with Java 8, packaged as a jar, and its dependencies declared externally:
- Unmatched attributes:
- Provides a library but the consumer didn't ask for it
- Provides attribute 'org.gradle.jvm.environment' with value 'standard-jvm' but the consumer didn't ask for it
- Provides attribute 'org.gradle.plugin.api-version' with value '7.0' but the consumer didn't ask for it
- Provides release status but the consumer didn't ask for it
- Variant 'gradle70SourcesElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20 declares a runtime of a component, and its dependencies declared externally:
- Unmatched attributes:
- Provides documentation but the consumer didn't ask for it
- Provides sources but the consumer didn't ask for it
- Doesn't say anything about its target Java version (required compatibility with Java 11)
- Doesn't say anything about its elements (required them packaged as a jar)
- Provides attribute 'org.gradle.plugin.api-version' with value '7.0' but the consumer didn't ask for it
- Provides release status but the consumer didn't ask for it
- Variant 'gradle71JavadocElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20 declares a runtime of a component, and its dependencies declared externally:
- Unmatched attributes:
- Provides documentation but the consumer didn't ask for it
- Provides javadocs but the consumer didn't ask for it
- Doesn't say anything about its target Java version (required compatibility with Java 11)
- Doesn't say anything about its elements (required them packaged as a jar)
- Provides attribute 'org.gradle.plugin.api-version' with value '7.1' but the consumer didn't ask for it
- Provides release status but the consumer didn't ask for it
- Variant 'gradle71RuntimeElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20 declares a runtime of a component compatible with Java 8, packaged as a jar, and its dependencies declared externally:
- Unmatched attributes:
- Provides a library but the consumer didn't ask for it
- Provides attribute 'org.gradle.jvm.environment' with value 'standard-jvm' but the consumer didn't ask for it
- Provides attribute 'org.gradle.plugin.api-version' with value '7.1' but the consumer didn't ask for it
- Provides release status but the consumer didn't ask for it
- Variant 'gradle71SourcesElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20 declares a runtime of a component, and its dependencies declared externally:
- Unmatched attributes:
- Provides documentation but the consumer didn't ask for it
- Provides sources but the consumer didn't ask for it
- Doesn't say anything about its target Java version (required compatibility with Java 11)
- Doesn't say anything about its elements (required them packaged as a jar)
- Provides attribute 'org.gradle.plugin.api-version' with value '7.1' but the consumer didn't ask for it
- Provides release status but the consumer didn't ask for it
- Variant 'javadocElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20 declares a runtime of a component, and its dependencies declared externally:
- Unmatched attributes:
- Provides documentation but the consumer didn't ask for it
- Provides javadocs but the consumer didn't ask for it
- Doesn't say anything about its target Java version (required compatibility with Java 11)
- Doesn't say anything about its elements (required them packaged as a jar)
- Provides release status but the consumer didn't ask for it
- Variant 'runtimeElementsWithFixedAttribute' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20 declares a runtime of a component compatible with Java 8, packaged as a jar, and its dependencies declared externally:
- Unmatched attributes:
- Provides a library but the consumer didn't ask for it
- Provides attribute 'org.gradle.jvm.environment' with value 'standard-jvm' but the consumer didn't ask for it
- Provides release status but the consumer didn't ask for it
- Variant 'sourcesElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20 declares a runtime of a component, and its dependencies declared externally:
- Unmatched attributes:
- Provides documentation but the consumer didn't ask for it
- Provides sources but the consumer didn't ask for it
- Doesn't say anything about its target Java version (required compatibility with Java 11)
- Doesn't say anything about its elements (required them packaged as a jar)
- Provides release status but the consumer didn't ask for it
The following variants were also considered but didn't match the requested attributes:
- Variant 'apiElementsWithFixedAttribute' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20 declares a component compatible with Java 8, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares an API of a component and the consumer needed a runtime of a component
- Variant 'gradle70ApiElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20 declares a component compatible with Java 8, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares an API of a component and the consumer needed a runtime of a component
- Variant 'gradle71ApiElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20 declares a component compatible with Java 8, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares an API of a component and the consumer needed a runtime of a component
Failed to notify project evaluation listener.
Could not get unknown property 'android' for project ':search_choices' of type org.gradle.api.Project.
Could not get unknown property 'android' for project ':search_choices' of type org.gradle.api.Project.

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Get more help at https://help.gradle.org

BUILD FAILED in 1s
Running Gradle task 'bundleRelease'...                           2,600ms
Gradle task bundleRelease failed with exit code 1
`

Hello @samumzizi ,
Thanks for reaching out on this.
I would try to follow the recommendation on this StackOverflow answer.
Try replacing Jcenter() by mavenCentral() in the android/build.gradle.
I hope this will solve your issue.

Hi @lcuis,
I tried the solution on stack overflow and I still have the same problem.
my android/build.gradle now looks like this per the stack overflow solution:
`buildscript {
ext.kotlin_version = '1.6.20'
repositories {
google()
mavenCentral()
}
dependencies {
    classpath 'com.android.tools.build:gradle:4.1.3'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    classpath 'com.google.gms:google-services:4.3.5'
}

}
allprojects {
repositories {
google()
mavenCentral()
}
}
rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}
task clean(type: Delete) {
delete rootProject.buildDir
}`
and the last part of the error I get still looks like this:
`> Failed to notify project evaluation listener.

Could not get unknown property 'android' for project ':search_choices' of type org.gradle.api.Project.
Could not get unknown property 'android' for project ':search_choices' of type org.gradle.api.Project.
`

Hi @samumzizi ,
Sorry for the inconvenience.
Maybe this StackoverFlow answer would be a better solution then?
In your android/build.gradle, try replacing the gradle dependency classpath by this:
classpath 'com.android.tools.build:gradle:7.0.0'

In your android/gradle/wrapper/gradle-wrapper.properties, try replacing the distribution url as follows:
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip

Hi @samumzizi ,
Sorry for the inconvenience.
Maybe this StackoverFlow answer would be a better solution then?
In your android/build.gradle, try replacing the gradle dependency classpath by this:
classpath 'com.android.tools.build:gradle:7.0.0'

In your android/gradle/wrapper/gradle-wrapper.properties, try replacing the distribution url as follows:
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip

Thanks for your help. I tried that and it still didn't work in the sense that it gave me more errors. So I researched the new errors and found the new solution here: https://github.com/flutter/flutter/issues/73852#issuecomment-759494547.

Great if it worked at the end. Thanks for letting me know @samumzizi !


Adding Tuya Scenes

Will Tuya scenes be added to the new integration?
Currently you can access created Tuya scenes using the existing integration.

@MarkWattTech We will consider it.

+1

Scenes are good for users with IR devices, so +1 here.

+1

+1

+1

Scenes were added in release v1.4.0.

Scheduled and Tap-to-run scenes do not appear in my HA integration. All devices from my Smart Life account are present and working in HA under the v2 Integration.  I am running v1.4.2. Can someone please assist me?

Try rebooting HA after you create the Scenes in the Smart Life app.
Alternatively you can use the dev tools to force a tuya update.
The scenes will then show up :)
On Thu, Aug 5, 2021 at 10:30 AM gkyprios @.***> wrote:

Scheduled and Tap-to-run scenes do not appear in my HA integration. All
devices from my Smart Life account are present and working in HA under the
v2 Integration. I am running v1.4.2. Can someone please assist me?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tuya/tuya-home-assistant/issues/30#issuecomment-893310620,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASFC42ZBLQZIAEVUEFO2QNLT3JK4FANCNFSM47SMB27Q
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email
.

Thanks Mark. I followed your video to set this up! I thought I restarted HA earlier but I've done it again now. No change. I have 3 scenes for my air purifier in the Smart Life app - 1 x timed and 2 x tap-to-run. None of them appear in the HA integration. I added the Smart Home Scene Linkage API into my Tuya2 Cloud Project too, just in case. Is there anything else I can try? Remove and reinstall in HACS maybe?

I've resolved this. I setup a new Cloud Project in Tuya IoT and linked it to Tuya v2. All the scenes appeared after that. I didnt have to do any reinstalls. Happy days.


nRF52840 support?

When will this example support the nRF52840 SoC that has internal 802.15.4 capability?

ARM Internal Ref: IOTCELL-2466


Background scroll after input focus in modal

Bug description:
I have a modal window with a lot of input fields in it. At the bottom of this window I have a submit button. When I try to scroll down I get background side scrolled instead of modal window.
This issue happens only when I focus on any input with the time or any select in IOS Safari
Link to minimally-working plunker that reproduces the issue:
https://embed.plnkr.co/kB2h6UEQkA3VIX8KJSAS/
Version of Angular, and Bootstrap
Angular: 1.5.0
Bootstrap: 1.3.1

I'm experiencing a similar issue in a directive that checks for invalid inputs, then scrolls to the input ID and sets focus to the field. When I remove firstInvalid.focus(); it works, when that line is present iOS has seems to confuse its position, sometimes rendering the top half of the modal as scrollable and bottom as fixed. Other times scrolling within the modal is removed..

Also, $anchorScroll.yOffset does not work as expected in the modal

This seems to patch the focus issue for me:
$timeout( function(){ 									document.getElementById( invalidFieldId ).focus(); 								}, 500 ); 							}
But, I still can't get the yOffset to work.


fix(bootstrap): enable debug info before setting defer label

Note that in most cases, this should not have surfaced as an issue because
the base test mock modules will also try to turn on debug info.
Closes #3009

@sjelin sanity check please!

Closed with d3bd170.


Render answers from Google Docs / Coda

We are moving our "database" of questions and answers from MediaWiki to Coda and GDocs...
First step for the UI is to render a test document, e.g. let's try the export feature

we decided to read Rich Text markdown field from Coda, so we don't need to merge rendering directly from GDoc

exploring Coda: https://coda.io/developers/apis/v1#tag/Tables, and looks like GET requests work from browser when I am logged in to UI
list of tables in our doc id: https://coda.io/apis/v1/docs/fau7sl2hmG/tables
Initial questions:  https://coda.io/apis/v1/docs/fau7sl2hmG/tables/Initial questions/rows?valueFormat=simpleWithArrays&useColumnNames=true
filter by tag: https://coda.io/apis/v1/docs/fau7sl2hmG/tables/Answers/rows?valueFormat=simpleWithArrays&useColumnNames=true&query=Tags:"superintelligence"
filter by status: https://coda.io/apis/v1/docs/fau7sl2hmG/tables/Answers/rows?valueFormat=simpleWithArrays&useColumnNames=true&query=Status:"Live on site"

I added CODA_TOKEN to https://github.com/StampyAI/stampy-ui/settings/secrets/actions while writing README instructions for local development with Coda.

the new canonically answered canonical questions list is 99.9% going to be https://coda.io/d/AI-Safety-Info_dfau7sl2hmG/Aiming-for-Exceptional_suCgH#_lu0xQ

Thanks for keeping these helpful notes for getting "up to speed" on Coda!
It looks like the Manage answers view includes all canonical questions even if they don't have canonical answers yet (see rows 1-24) that have Status like "Not started", "In progress", "In review", etc. So it probably still needs to get filter/queried by Status as "Live on site"?

I will leave it up to @plexish to explain, he had some half-baked notes on Discord that made me feel I understand the intention, but I am not sure any more 🤔

Hi!
Manage answers (should probably be renamed All answers API, will doing that break things @Aprillion? or is it queried by table ID?) is meant as the big table with most of the information on all of the answers, Answers is the megatable with virtually all the columns. There are other tables for various subsets of answers, which are editor and reviewer interfaces.
It might be best to have all the UI API stuff talking to one coda view and filtering in the query, to reduce the number of places coda changing could break the UI, which would point towards using Manage answers. Unless there's a significant penalty for querying an unfiltered table, in which case.. probably we want to make subpages of Manage answers with each view that we want to talk to over the API? I've set up an example here: https://coda.io/d/AI-Safety-Info_dfau7sl2hmG/On-site-API_su5gl#On-site-answers-API_tu_mN/r161 with the table "On-site answers API" to compare.
Very happy to make more views or teach people how easy it is to do them on coda :)

I prefer to fetch by table name, thus rename would break things if we were already in production, but we aren't in production yet, so still time to rename everything without too much trouble, just tell me via Discord when you do.
API does not support filtering by more than 1 criteria (as far as I could tell few days ago .. they might add such feature one day), and fetching big-ass tables with all columns might not scale in the future if we have more thousands of records - though that way should be fine for "beta" I guess.
When we switch the production to Coda, any changes in table will have to be more controlled - ideally by creating new view, testing it in non-prod environment, then switching to new view by renaming the old one with some _old suffix and renaming the new one to the official name used by UI.

Okay, that makes sense. We can stabilize column names before prod, and make views in coda with not too many columns for each API call we want


Updates changelog for 4.3.1 release.

4.3.1 was just released; this PR gets the changelog ready for 4.3.2, which I've created in iTunesConnect (required for the next beta).

Made redundant by #2271.


[BUG] Multiple Types of variable in TypeScript

From @cwberick on July 14, 2016 13:22

VSCode Version: 1.3.1
OS Version: Windows 10
TypeScript

I created interfaces on my project and  applied multiple types on variable using operator | (or) but on body of class he throw new error: "Property 'Usuario' does not exist on type 'IUsuarioStorage__Dados | boolean'." and not return options of interface.
See the image:

Copied from original issue: Microsoft/vscode#9282

From @cwberick on July 14, 2016 14:7
@egamma

Moving to TypeScript for comment.

thanks @egamma!

Your if condition is only checking that dados !== false, but dados : IUsuarioStorage__Dados | boolean could also be true. You have to check that it is neither true nor false before you can assume it is of type IUsuarioStorage__Dados.
To do that, use typeof dados !== 'boolean' (dados !== true && dados !== false doesn't seem to work).
I recommend using null instead of false for this purpose, especially with TypeScript 2.0. Replace IUsuarioStorage__Dados (or IUsuarioStorage__Dados | null in TypeScript 2.0 with strictNullChecks) in place of IUsuarioStorage__Dados | boolean and use return null and dados !== null instead of return false and dados !== false.

@jesseschalken very nice!
I got it and i do.
all right!
thanks!

@egamma close this issue pls!
thanks


Manager::finderByNullable shall not return an anonymous lambdas as a result

anonymous lambdas prevents the optimizer from acting on fileds in the future.

A new Interface FindFromNullable is now created. We need to generate a number of implementing classes like FindFromNullableInt and FindFromNullableLong though. Also, we need to write AbstractFindFromNullable


Use function quote for all :bind in use-package

This is a followup to #204. N.B., while the original issue manifested on emacs-27.2 with @matthewpersico's personal customisation on Linux, I can see the issue that caused customisation to fail to load on my emacs-28.3-rc1 on my Mac. That is: without quoting (as fixed in #204) the fringe-helper-define is not defined. With quoting it is defined.
The original idea was to have the same syntax for all bindings. Unfortunately, the simplest form (just function symbol name) does not always work and fails in subtle ways. I decided to use a short version of function everywhere to avoid surprises like the aforementioned one.

N.B. CI is broken ATM with an upstream issue: https://github.com/purcell/setup-emacs/issues/33


Search for team

need filter for team

Now, you can search by your team ID.
Click team ID/icon on battle list, details page or "daily report".


Navigating to error line number in Rider from Godot editor debugger console is off-by-one.

The error line number in the Godot editor debugger console that is referencing an attached script in Rider in the stack trace is correct, but double clicking the specific stack trace item containing a file name and line number (.i.e., ScriptName.cs:LineNumber @ method signature) navigates to the error line minus one in Rider.

It happens for me too, i hope it gets addressed.

It happens for me too, i hope it gets addressed.

Could you please add some step-by-step instruction on how I can show that debugger console with some stacktrace?

Could you please add some step-by-step instruction on how I can show that debugger console with some stacktrace?

Create a Simple script with more than one line that throws an exception, let it run in the scene, navigate to the Debugger -> Errors panel and double click the respecting output.

Create a Simple script with more than one line that throws an exception, let it run in the scene, navigate to the Debugger -> Errors panel and double click the respecting output.


bump versions

Bumps version to prep for release to address following issues

https://github.com/microsoft/vscode-dev-containers/issues/1617
https://github.com/devcontainers/images/pull/103

Si supiera con gusto lo aprobara
Obtener Outlook para iOShttps://aka.ms/o0ukef

De: Edmundo Gonzalez @.>
Enviado: Tuesday, September 6, 2022 4:28:45 PM
Para: devcontainers/images @.>
Cc: Subscribed @.***>
Asunto: Re: [devcontainers/images] bump versions (PR #104)
@edgonmsft approved this pull request.
LGTM
—
Reply to this email directly, view it on GitHubhttps://github.com/devcontainers/images/pull/104#pullrequestreview-1098266479, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A2MQ5G4RWSTD2NZDRTID7QLV46ZQ3ANCNFSM6AAAAAAQGGNVBY.
You are receiving this because you are subscribed to this thread.Message ID: @.***>


Add functions converting to and from numbers and roman numerals

Goes along with #25

Done in upcoming commit